Commit b8df9b6f by 杨明

fixed

1 parent 95b9cc5c
Showing 39 changed files with 398 additions and 289 deletions
...@@ -12,7 +12,7 @@ const defaultPath = 'scrm.api.shopmall.activity.' ...@@ -12,7 +12,7 @@ const defaultPath = 'scrm.api.shopmall.activity.'
const dropdownList = params => { const dropdownList = params => {
params.method = `scrm.api.shopmall.tencentcloudmedia.dropdown.list` params.method = `scrm.api.shopmall.tencentcloudmedia.dropdown.list`
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -22,7 +22,7 @@ const dropdownList = params => { ...@@ -22,7 +22,7 @@ const dropdownList = params => {
const tencentcloudmediaDelete = params => { const tencentcloudmediaDelete = params => {
params.method = `scrm.api.shopmall.tencentcloudmedia.delete` params.method = `scrm.api.shopmall.tencentcloudmedia.delete`
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -42,7 +42,7 @@ const tencentcloudmediaUpdate = params => { ...@@ -42,7 +42,7 @@ const tencentcloudmediaUpdate = params => {
const tencentcloudmediaDetail = params => { const tencentcloudmediaDetail = params => {
params.method = `scrm.api.shopmall.tencentcloudmedia.detail` params.method = `scrm.api.shopmall.tencentcloudmedia.detail`
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -62,7 +62,7 @@ const tencentcloudmediaPage = params => { ...@@ -62,7 +62,7 @@ const tencentcloudmediaPage = params => {
const getActivityDetailApi = params => { const getActivityDetailApi = params => {
params.method = `${defaultPath}detail` params.method = `${defaultPath}detail`
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
...@@ -73,7 +73,7 @@ const getActivityDetailApi = params => { ...@@ -73,7 +73,7 @@ const getActivityDetailApi = params => {
const toggleStatus = params => { const toggleStatus = params => {
params.method = `${defaultPath}toggle.status` params.method = `${defaultPath}toggle.status`
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
...@@ -83,7 +83,7 @@ const toggleStatus = params => { ...@@ -83,7 +83,7 @@ const toggleStatus = params => {
const deleteApi = params => { const deleteApi = params => {
params.method = `${defaultPath}delete` params.method = `${defaultPath}delete`
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
...@@ -93,7 +93,7 @@ const deleteApi = params => { ...@@ -93,7 +93,7 @@ const deleteApi = params => {
const pageAllApi = params => { const pageAllApi = params => {
params.method = `scrm.api.shopmall.all.bulge.activity.page` params.method = `scrm.api.shopmall.all.bulge.activity.page`
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -102,7 +102,7 @@ const pageAllApi = params => { ...@@ -102,7 +102,7 @@ const pageAllApi = params => {
const pageApi = params => { const pageApi = params => {
params.method = `scrm.api.shopmall.bulge.activity.page` params.method = `scrm.api.shopmall.bulge.activity.page`
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -111,7 +111,7 @@ const pageApi = params => { ...@@ -111,7 +111,7 @@ const pageApi = params => {
const updateApi = params => { const updateApi = params => {
params.method = `${defaultPath}bulge.add.or.update` params.method = `${defaultPath}bulge.add.or.update`
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -120,7 +120,7 @@ const updateApi = params => { ...@@ -120,7 +120,7 @@ const updateApi = params => {
const getShared = params => { const getShared = params => {
params.method = `scrm.api.shopmall.bulge.activity.get.shared` params.method = `scrm.api.shopmall.bulge.activity.get.shared`
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -130,7 +130,7 @@ const getShared = params => { ...@@ -130,7 +130,7 @@ const getShared = params => {
const activityPage = params => { const activityPage = params => {
params.method = `scrm.api.shopmall.history.activity.page` params.method = `scrm.api.shopmall.history.activity.page`
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
......
...@@ -22,7 +22,7 @@ const pictureUpload = params => { ...@@ -22,7 +22,7 @@ const pictureUpload = params => {
const getMerchantStaff = params => { const getMerchantStaff = params => {
params.method = 'scrm.api.shopmall.crowd.funding.staff.get' params.method = 'scrm.api.shopmall.crowd.funding.staff.get'
return http({ return http({
url: '/rop-scrm-shopmall/router', url: '/http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -82,7 +82,7 @@ const getCrowdfundingOrderConfig = (params = {}) => { ...@@ -82,7 +82,7 @@ const getCrowdfundingOrderConfig = (params = {}) => {
params.method = 'scrm.api.shopmall.crowd.funding.order.config' params.method = 'scrm.api.shopmall.crowd.funding.order.config'
params.requestType = 1 //0:门店;1:运营版 params.requestType = 1 //0:门店;1:运营版
return http({ return http({
url: '/rop-scrm-shopmall/router', url: '/http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
......
...@@ -66,7 +66,7 @@ const equityMerchant = params => { ...@@ -66,7 +66,7 @@ const equityMerchant = params => {
const packageAdd = params => { const packageAdd = params => {
params.method = 'scrm.api.shopmall.activity.coupon.package.add.or.update' params.method = 'scrm.api.shopmall.activity.coupon.package.add.or.update'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -76,7 +76,7 @@ const packageAdd = params => { ...@@ -76,7 +76,7 @@ const packageAdd = params => {
const packageList = params => { const packageList = params => {
params.method = 'scrm.api.shopmall.activity.coupon.package.list' params.method = 'scrm.api.shopmall.activity.coupon.package.list'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -86,7 +86,7 @@ const packageList = params => { ...@@ -86,7 +86,7 @@ const packageList = params => {
const packageDetail = params => { const packageDetail = params => {
params.method = 'scrm.api.shopmall.activity.coupon.package.detail' params.method = 'scrm.api.shopmall.activity.coupon.package.detail'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -96,7 +96,7 @@ const packageDetail = params => { ...@@ -96,7 +96,7 @@ const packageDetail = params => {
const packageDefault = params => { const packageDefault = params => {
params.method = 'scrm.api.shopmall.activity.coupon.package.default' params.method = 'scrm.api.shopmall.activity.coupon.package.default'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-29 16:16:03 * @Date: 2023-06-29 16:16:03
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-11 20:11:32 * @LastEditTime: 2023-07-12 10:17:48
* @FilePath: \scrm-micro-link\src\api\modules\marketing.js * @FilePath: \scrm-micro-link\src\api\modules\marketing.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
...@@ -108,7 +108,7 @@ const EntWechatQrCode = params => { ...@@ -108,7 +108,7 @@ const EntWechatQrCode = params => {
const activityDetail = params => { const activityDetail = params => {
params.method = 'scrm.api.shopmall.activity.detail' params.method = 'scrm.api.shopmall.activity.detail'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -134,7 +134,15 @@ const registerSso = params => { ...@@ -134,7 +134,15 @@ const registerSso = params => {
sign: true sign: true
}) })
} }
const updateApi = params => {
params.method = `scrm.api.shopmall.activity.bulge.add.or.update`
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
export default { export default {
viewData, viewData,
getChatGPTList, getChatGPTList,
...@@ -144,6 +152,7 @@ export default { ...@@ -144,6 +152,7 @@ export default {
getRobotList, getRobotList,
findMerchantStaffList, findMerchantStaffList,
createSuperMarketing, createSuperMarketing,
updateApi,
activityDetail, activityDetail,
findActivityInfo, findActivityInfo,
registerSso, registerSso,
......
...@@ -3,7 +3,7 @@ const defaultPath = 'scrm.api.shopmall.' ...@@ -3,7 +3,7 @@ const defaultPath = 'scrm.api.shopmall.'
const getListApi = params => { const getListApi = params => {
params.method = `${defaultPath}order.page` params.method = `${defaultPath}order.page`
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
...@@ -12,7 +12,7 @@ const getListApi = params => { ...@@ -12,7 +12,7 @@ const getListApi = params => {
const getCountApi = params => { const getCountApi = params => {
params.method = `${defaultPath}order.count` params.method = `${defaultPath}order.count`
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
...@@ -21,7 +21,7 @@ const getCountApi = params => { ...@@ -21,7 +21,7 @@ const getCountApi = params => {
const getOrderDetailApi = params => { const getOrderDetailApi = params => {
params.method = `${defaultPath}order.detail` params.method = `${defaultPath}order.detail`
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
...@@ -30,7 +30,7 @@ const getOrderDetailApi = params => { ...@@ -30,7 +30,7 @@ const getOrderDetailApi = params => {
const orderExportApi = params => { const orderExportApi = params => {
params.method = `${defaultPath}order.export` params.method = `${defaultPath}order.export`
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
...@@ -40,7 +40,7 @@ const orderExportApi = params => { ...@@ -40,7 +40,7 @@ const orderExportApi = params => {
const writeOffApi = params => { const writeOffApi = params => {
params.method = `${defaultPath}order.verfication` params.method = `${defaultPath}order.verfication`
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
...@@ -51,7 +51,7 @@ const writeOffApi = params => { ...@@ -51,7 +51,7 @@ const writeOffApi = params => {
const crowdFundWriteOffApi = params => { const crowdFundWriteOffApi = params => {
params.method = 'scrm.api.shopmall.crowd.funding.order.verfication' params.method = 'scrm.api.shopmall.crowd.funding.order.verfication'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
...@@ -62,7 +62,7 @@ const crowdFundWriteOffApi = params => { ...@@ -62,7 +62,7 @@ const crowdFundWriteOffApi = params => {
const crowdFundRefundApi = params => { const crowdFundRefundApi = params => {
params.method = 'scrm.api.shopmall.crowd.funding.order.refund' params.method = 'scrm.api.shopmall.crowd.funding.order.refund'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
...@@ -73,7 +73,7 @@ const crowdFundRefundApi = params => { ...@@ -73,7 +73,7 @@ const crowdFundRefundApi = params => {
const addDeliveryApi = params => { const addDeliveryApi = params => {
params.method = `${defaultPath}order.addDelivery` params.method = `${defaultPath}order.addDelivery`
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
...@@ -84,7 +84,7 @@ const addDeliveryApi = params => { ...@@ -84,7 +84,7 @@ const addDeliveryApi = params => {
const examineDetailApi = params => { const examineDetailApi = params => {
params.method = `${defaultPath}orderRefund.detail` params.method = `${defaultPath}orderRefund.detail`
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
...@@ -94,7 +94,7 @@ const examineDetailApi = params => { ...@@ -94,7 +94,7 @@ const examineDetailApi = params => {
const examineAllowApi = params => { const examineAllowApi = params => {
params.method = `${defaultPath}orderRefund.allow` params.method = `${defaultPath}orderRefund.allow`
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
...@@ -105,7 +105,7 @@ const examineAllowApi = params => { ...@@ -105,7 +105,7 @@ const examineAllowApi = params => {
const confirmReceiptGoodsApi = params => { const confirmReceiptGoodsApi = params => {
params.method = `${defaultPath}order.refund.confirmReceiptGoods` params.method = `${defaultPath}order.refund.confirmReceiptGoods`
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
...@@ -116,7 +116,7 @@ const confirmReceiptGoodsApi = params => { ...@@ -116,7 +116,7 @@ const confirmReceiptGoodsApi = params => {
const checkMerchartApi = params => { const checkMerchartApi = params => {
params.method = 'scrm.api.shopmall.import.merchant.check' params.method = 'scrm.api.shopmall.import.merchant.check'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -126,7 +126,7 @@ const checkMerchartApi = params => { ...@@ -126,7 +126,7 @@ const checkMerchartApi = params => {
const orderAppointer = params => { const orderAppointer = params => {
params.method = 'scrm.api.shopmall.order.appointer.update' params.method = 'scrm.api.shopmall.order.appointer.update'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -136,7 +136,7 @@ const orderAppointer = params => { ...@@ -136,7 +136,7 @@ const orderAppointer = params => {
const orderDetail = params => { const orderDetail = params => {
params.method = 'scrm.api.shopmall.order.detail' params.method = 'scrm.api.shopmall.order.detail'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -146,7 +146,7 @@ const orderDetail = params => { ...@@ -146,7 +146,7 @@ const orderDetail = params => {
const orderPage = params => { const orderPage = params => {
params.method = 'scrm.api.shopmall.order.page' params.method = 'scrm.api.shopmall.order.page'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -156,7 +156,7 @@ const orderPage = params => { ...@@ -156,7 +156,7 @@ const orderPage = params => {
const goldRefund = params => { const goldRefund = params => {
params.method = 'scrm.api.shopmall.expanded.gold.refund' params.method = 'scrm.api.shopmall.expanded.gold.refund'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -165,7 +165,7 @@ const goldRefund = params => { ...@@ -165,7 +165,7 @@ const goldRefund = params => {
const orderUpdate = params => { const orderUpdate = params => {
params.method = 'scrm.api.shopmall.order.type.update' params.method = 'scrm.api.shopmall.order.type.update'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -174,7 +174,7 @@ const orderUpdate = params => { ...@@ -174,7 +174,7 @@ const orderUpdate = params => {
const orderExport = params => { const orderExport = params => {
params.method = 'scrm.api.shopmall.order.export' params.method = 'scrm.api.shopmall.order.export'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
......
...@@ -4,7 +4,7 @@ const defaultPath = 'scrm.api.shopmall.activity.' ...@@ -4,7 +4,7 @@ const defaultPath = 'scrm.api.shopmall.activity.'
const getActivityPageApi = params => { const getActivityPageApi = params => {
params.method = `${defaultPath}page` params.method = `${defaultPath}page`
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
...@@ -14,7 +14,7 @@ const getActivityPageApi = params => { ...@@ -14,7 +14,7 @@ const getActivityPageApi = params => {
const getCrowdfundListApi = params => { const getCrowdfundListApi = params => {
params.method = 'scrm.api.shopmall.all.crowdfunding.activity.page' params.method = 'scrm.api.shopmall.all.crowdfunding.activity.page'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
...@@ -24,7 +24,7 @@ const getCrowdfundListApi = params => { ...@@ -24,7 +24,7 @@ const getCrowdfundListApi = params => {
const exportCrowdfundApi = params => { const exportCrowdfundApi = params => {
params.method = 'scrm.api.shopmall.all.crowdfunding.activity.export' params.method = 'scrm.api.shopmall.all.crowdfunding.activity.export'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
...@@ -34,7 +34,7 @@ const exportCrowdfundApi = params => { ...@@ -34,7 +34,7 @@ const exportCrowdfundApi = params => {
const getBrowseListApi = params => { const getBrowseListApi = params => {
params.method = 'scrm.api.shopmall.customer.browse.records' params.method = 'scrm.api.shopmall.customer.browse.records'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
...@@ -44,7 +44,7 @@ const getBrowseListApi = params => { ...@@ -44,7 +44,7 @@ const getBrowseListApi = params => {
const getVisitorListApi = params => { const getVisitorListApi = params => {
params.method = 'scrm.api.shopmall.customer.visitor.records' params.method = 'scrm.api.shopmall.customer.visitor.records'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
...@@ -54,7 +54,7 @@ const getVisitorListApi = params => { ...@@ -54,7 +54,7 @@ const getVisitorListApi = params => {
const getSharedListApi = params => { const getSharedListApi = params => {
params.method = 'scrm.api.shopmall.customer.shared.records' params.method = 'scrm.api.shopmall.customer.shared.records'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
...@@ -64,7 +64,7 @@ const getSharedListApi = params => { ...@@ -64,7 +64,7 @@ const getSharedListApi = params => {
const getPurposeListApi = params => { const getPurposeListApi = params => {
params.method = 'scrm.api.shopmall.gh.customer.purpose.page' params.method = 'scrm.api.shopmall.gh.customer.purpose.page'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
...@@ -73,7 +73,7 @@ const getPurposeListApi = params => { ...@@ -73,7 +73,7 @@ const getPurposeListApi = params => {
const updateFollow = params => { const updateFollow = params => {
params.method = 'scrm.api.shopmall.gh.customer.record.update.follow.up.flag' params.method = 'scrm.api.shopmall.gh.customer.record.update.follow.up.flag'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
...@@ -89,7 +89,7 @@ const exportBrowseApi = (params, TYPE = 1) => { ...@@ -89,7 +89,7 @@ const exportBrowseApi = (params, TYPE = 1) => {
3: 'scrm.api.shopmall.customer.shared.records.export' 3: 'scrm.api.shopmall.customer.shared.records.export'
}[TYPE] }[TYPE]
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -99,7 +99,7 @@ const exportBrowseApi = (params, TYPE = 1) => { ...@@ -99,7 +99,7 @@ const exportBrowseApi = (params, TYPE = 1) => {
const addOrUpdateActivityApi = params => { const addOrUpdateActivityApi = params => {
params.method = `${defaultPath}add.or.update` params.method = `${defaultPath}add.or.update`
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
...@@ -110,7 +110,7 @@ const addOrUpdateActivityApi = params => { ...@@ -110,7 +110,7 @@ const addOrUpdateActivityApi = params => {
const getActivityDetailApi = params => { const getActivityDetailApi = params => {
params.method = `${defaultPath}detail` params.method = `${defaultPath}detail`
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
...@@ -120,7 +120,7 @@ const getActivityDetailApi = params => { ...@@ -120,7 +120,7 @@ const getActivityDetailApi = params => {
const toggleStatusApi = params => { const toggleStatusApi = params => {
params.method = `${defaultPath}toggle.status` params.method = `${defaultPath}toggle.status`
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
...@@ -131,7 +131,7 @@ const toggleStatusApi = params => { ...@@ -131,7 +131,7 @@ const toggleStatusApi = params => {
const deleteActivityApi = params => { const deleteActivityApi = params => {
params.method = `${defaultPath}delete` params.method = `${defaultPath}delete`
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
...@@ -142,7 +142,7 @@ const deleteActivityApi = params => { ...@@ -142,7 +142,7 @@ const deleteActivityApi = params => {
const topActivityApi = params => { const topActivityApi = params => {
params.method = `${defaultPath}top` params.method = `${defaultPath}top`
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
...@@ -153,7 +153,7 @@ const topActivityApi = params => { ...@@ -153,7 +153,7 @@ const topActivityApi = params => {
const getSharedApi = params => { const getSharedApi = params => {
params.method = `${defaultPath}get.shared` params.method = `${defaultPath}get.shared`
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
...@@ -163,7 +163,7 @@ const getSharedApi = params => { ...@@ -163,7 +163,7 @@ const getSharedApi = params => {
const getCrowdSharedApi = params => { const getCrowdSharedApi = params => {
params.method = 'scrm.api.shopmall.crowdfunding.activity.get.shared' params.method = 'scrm.api.shopmall.crowdfunding.activity.get.shared'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
...@@ -173,7 +173,7 @@ const getCrowdSharedApi = params => { ...@@ -173,7 +173,7 @@ const getCrowdSharedApi = params => {
const getLiveListApi = params => { const getLiveListApi = params => {
params.method = 'scrm.api.shopmall.livebroadcast.dropdown.list' params.method = 'scrm.api.shopmall.livebroadcast.dropdown.list'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
...@@ -193,7 +193,7 @@ const getPayMerchatListApi = params => { ...@@ -193,7 +193,7 @@ const getPayMerchatListApi = params => {
const getPayListApi = params => { const getPayListApi = params => {
params.method = 'scrm.api.shopmall.activity.payment.account.list' params.method = 'scrm.api.shopmall.activity.payment.account.list'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
...@@ -203,7 +203,7 @@ const getPayListApi = params => { ...@@ -203,7 +203,7 @@ const getPayListApi = params => {
const getRankListApi = params => { const getRankListApi = params => {
params.method = 'scrm.api.shopmall.activity.ranking.page' params.method = 'scrm.api.shopmall.activity.ranking.page'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
...@@ -213,7 +213,7 @@ const getRankListApi = params => { ...@@ -213,7 +213,7 @@ const getRankListApi = params => {
const exportRankListApi = params => { const exportRankListApi = params => {
params.method = 'scrm.api.shopmall.activity.ranking.export' params.method = 'scrm.api.shopmall.activity.ranking.export'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -223,7 +223,7 @@ const exportRankListApi = params => { ...@@ -223,7 +223,7 @@ const exportRankListApi = params => {
const getDataBoardApi = params => { const getDataBoardApi = params => {
params.method = 'scrm.api.shopmall.activity.statdata' params.method = 'scrm.api.shopmall.activity.statdata'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
...@@ -233,7 +233,7 @@ const getDataBoardApi = params => { ...@@ -233,7 +233,7 @@ const getDataBoardApi = params => {
const getDailyOrderQuantityStatistics = params => { const getDailyOrderQuantityStatistics = params => {
params.method = 'scrm.api.shopmall.activity.daily.order.quantity' params.method = 'scrm.api.shopmall.activity.daily.order.quantity'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -243,7 +243,7 @@ const getDailyOrderQuantityStatistics = params => { ...@@ -243,7 +243,7 @@ const getDailyOrderQuantityStatistics = params => {
const exportDailyOrderQuantityStatistics = params => { const exportDailyOrderQuantityStatistics = params => {
params.method = 'scrm.api.shopmall.activity.daily.order.quantity.export' params.method = 'scrm.api.shopmall.activity.daily.order.quantity.export'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -253,7 +253,7 @@ const exportDailyOrderQuantityStatistics = params => { ...@@ -253,7 +253,7 @@ const exportDailyOrderQuantityStatistics = params => {
const liveroomDetailexport = params => { const liveroomDetailexport = params => {
params.method = 'scrm.api.shopmall.activity.liveroom.detailexport' params.method = 'scrm.api.shopmall.activity.liveroom.detailexport'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -262,7 +262,7 @@ const liveroomDetailexport = params => { ...@@ -262,7 +262,7 @@ const liveroomDetailexport = params => {
const purposeExport = params => { const purposeExport = params => {
params.method = 'scrm.api.shopmall.gh.customer.purpose.page.export' params.method = 'scrm.api.shopmall.gh.customer.purpose.page.export'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -273,7 +273,7 @@ const purposeExport = params => { ...@@ -273,7 +273,7 @@ const purposeExport = params => {
const liveroomDetailpage = params => { const liveroomDetailpage = params => {
params.method = 'scrm.api.shopmall.activity.liveroom.detailpage' params.method = 'scrm.api.shopmall.activity.liveroom.detailpage'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -283,7 +283,7 @@ const liveroomDetailpage = params => { ...@@ -283,7 +283,7 @@ const liveroomDetailpage = params => {
const liveroomOverview = params => { const liveroomOverview = params => {
params.method = 'scrm.api.shopmall.activity.liveroom.overview' params.method = 'scrm.api.shopmall.activity.liveroom.overview'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
......

1.16 KB | W: | H:

1.06 KB | W: | H:

src/assets/marketing/next.png
src/assets/marketing/next.png
src/assets/marketing/next.png
src/assets/marketing/next.png
  • 2-up
  • Swipe
  • Onion skin

700 Bytes | W: | H:

2.12 KB | W: | H:

src/assets/marketing/s1.png
src/assets/marketing/s1.png
src/assets/marketing/s1.png
src/assets/marketing/s1.png
  • 2-up
  • Swipe
  • Onion skin

712 Bytes | W: | H:

2.27 KB | W: | H:

src/assets/marketing/s2.png
src/assets/marketing/s2.png
src/assets/marketing/s2.png
src/assets/marketing/s2.png
  • 2-up
  • Swipe
  • Onion skin

736 Bytes | W: | H:

1.94 KB | W: | H:

src/assets/marketing/s3.png
src/assets/marketing/s3.png
src/assets/marketing/s3.png
src/assets/marketing/s3.png
  • 2-up
  • Swipe
  • Onion skin

777 Bytes | W: | H:

2.46 KB | W: | H:

src/assets/marketing/s4.png
src/assets/marketing/s4.png
src/assets/marketing/s4.png
src/assets/marketing/s4.png
  • 2-up
  • Swipe
  • Onion skin

834 Bytes | W: | H:

3.2 KB | W: | H:

src/assets/marketing/s5.png
src/assets/marketing/s5.png
src/assets/marketing/s5.png
src/assets/marketing/s5.png
  • 2-up
  • Swipe
  • Onion skin

763 Bytes | W: | H:

2.28 KB | W: | H:

src/assets/marketing/s6.png
src/assets/marketing/s6.png
src/assets/marketing/s6.png
src/assets/marketing/s6.png
  • 2-up
  • Swipe
  • Onion skin

5.26 KB | W: | H:

5.96 KB | W: | H:

src/assets/marketing/scence-bg.png
src/assets/marketing/scence-bg.png
src/assets/marketing/scence-bg.png
src/assets/marketing/scence-bg.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -69,7 +69,10 @@ export default { ...@@ -69,7 +69,10 @@ export default {
}, },
{ {
label: '剩余库存', label: '剩余库存',
prop: 'residueAmount' prop: 'residueAmount',
formatter: cellValue => {
return '无限制'
}
} }
] ]
}, },
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-05-16 17:13:33 * @Date: 2023-05-16 17:13:33
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-11 19:17:57 * @LastEditTime: 2023-07-12 11:25:34
* @FilePath: \scrm-micro-home\src\store\modules\marketing.js * @FilePath: \scrm-micro-home\src\store\modules\marketing.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
...@@ -49,6 +49,11 @@ export default { ...@@ -49,6 +49,11 @@ export default {
}, },
// 设置活动信息 // 设置活动信息
SET_ACTIVITY_INFO(state, data) { SET_ACTIVITY_INFO(state, data) {
if (data.activityBigImg) {
data.codeId = null
}
data.backgroundImage = data.activityBigImg
data.merchantAddress = data.activityAddressDetailName
state.activityInfo = Object.assign({}, data) state.activityInfo = Object.assign({}, data)
}, },
SET_KET_WORDs(state, data) { SET_KET_WORDs(state, data) {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2022-11-23 11:06:49 * @Date: 2022-11-23 11:06:49
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-06-29 14:48:46 * @LastEditTime: 2023-07-12 14:23:04
* @FilePath: \live\src\utils\index.js * @FilePath: \live\src\utils\index.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* *
...@@ -48,6 +48,13 @@ export function downloadUrl(url) { ...@@ -48,6 +48,13 @@ export function downloadUrl(url) {
link.click() link.click()
document.body.removeChild(link) document.body.removeChild(link)
} }
export function openTab(url) {
const link = document.createElement('a')
link.href = url
link.target = '_blank'
link.rel = 'opener'
link.click()
}
export function GetDateDiff(time1, time2 = new Date()) { export function GetDateDiff(time1, time2 = new Date()) {
let startTime = new Date(time1) //开始时间 let startTime = new Date(time1) //开始时间
let endTime = new Date(time2) //结束时间 let endTime = new Date(time2) //结束时间
......
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
<div class="gift-content"> <div class="gift-content">
<div class="gift-item" v-for="(subItem, subIndex) in selectedEquityList" :key="subIndex"> <div class="gift-item" v-for="(subItem, subIndex) in selectedEquityList" :key="subIndex">
<span class="circle"></span> <span class="circle"></span>
<p :class="['gift-coupon-name']">{{ subItem.packageName }}</p> <p :class="['gift-coupon-name']">{{ subitem.packageName }}</p>
<i class="el-icon-delete" style="color: #c6c6c6" @click="handleEquityDelete(subIndex)"></i> <i class="el-icon-delete" style="color: #c6c6c6" @click="handleEquityDelete(subIndex)"></i>
</div> </div>
</div> </div>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-29 15:18:24 * @Date: 2023-06-29 15:18:24
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-06-29 17:05:49 * @LastEditTime: 2023-07-12 17:15:00
* @FilePath: \scrm-micro-link\src\views\activityLink\components\ImportCoustom.vue * @FilePath: \scrm-micro-link\src\views\activityLink\components\ImportCoustom.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
{{ item.title }}: {{ item.title }}:
<span>{{ viewDataDetail[item.name] }}</span> <span>{{ viewDataDetail[item.name] }}</span>
</div> </div>
<el-button class="import-btn" :size="size" type="primary" @click="jumpUrl" icon="el-icon-download">导入</el-button> <a class="import-btn" @click="jumpUrl">导入</a>
</div> </div>
</template> </template>
...@@ -54,7 +54,7 @@ export default { ...@@ -54,7 +54,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.import-base { .import-base {
height: 48px; height: 48px;
background: #e4e3ff; background: #d5f5e3;
border-radius: 4px; border-radius: 4px;
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -65,11 +65,13 @@ export default { ...@@ -65,11 +65,13 @@ export default {
.import-item { .import-item {
margin-right: 80px; margin-right: 80px;
span { span {
color: #5850ff; color: #333333ff;
} }
} }
.import-btn { .import-btn {
margin-left: auto; margin-left: auto;
color: #685bff;
cursor: pointer;
} }
} }
</style> </style>
<template> <template>
<div class="activity-container"> <div class="activity-container">
<div class="choseRow"> <div class="choseRow">
<div class="choseItem" :class="{ active: step == index + 1 }" v-for="(item, index) in tabList" :key="index" @click="tabClick(index + 1)">{{ item.label }}</div> <div class="choseRow-item">
<div class="choseItem" :class="{ active: step == index + 1 }" v-for="(item, index) in tabList" :key="index" @click="tabClick(index + 1)">{{ item.label }}</div>
</div>
<div @click="showCase" class="show-case-btn" v-if="addOrEdit == 'add'">历史营销方案</div> <div @click="showCase" class="show-case-btn" v-if="addOrEdit == 'add'">历史营销方案</div>
</div> </div>
<div class="acitity-content"> <div class="acitity-content">
...@@ -214,6 +216,7 @@ export default { ...@@ -214,6 +216,7 @@ export default {
display: flex; display: flex;
height: auto; height: auto;
position: relative; position: relative;
margin-bottom: 16px;
.show-case-btn { .show-case-btn {
cursor: pointer; cursor: pointer;
position: absolute; position: absolute;
...@@ -222,22 +225,24 @@ export default { ...@@ -222,22 +225,24 @@ export default {
right: 10px; right: 10px;
top: 10px; top: 10px;
} }
.choseRow-item {
height: 36px;
background: #ffffff;
border: 1px solid rgba(88, 80, 255, 0.51);
border-radius: 4px;
line-height: 36px;
}
.choseItem { .choseItem {
display: inline-block; display: inline-block;
cursor: pointer; cursor: pointer;
line-height: 40px;
height: 40px;
border-radius: 4px 4px 0px 0px;
border: 1px solid #e5e5e5;
margin-right: 1px; margin-right: 1px;
padding: 0 32px; padding: 0 32px;
box-sizing: border-box; box-sizing: border-box;
background: #f8f8f8;
} }
.active { .active {
color: #5850ff; color: #685bff;
background: #ffffff; background: rgba(104, 91, 255, 0.15);
border-bottom: 1px solid #fff;
font-weight: 600; font-weight: 600;
} }
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-29 21:24:27 * @Date: 2023-06-29 21:24:27
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-11 19:23:47 * @LastEditTime: 2023-07-12 20:34:56
* @FilePath: \scrm-micro-link\src\views\activityLink\components\MarketingContent.vue * @FilePath: \scrm-micro-link\src\views\activityLink\components\MarketingContent.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
<script> <script>
import selectInsure from './SelectInsure.vue' import selectInsure from './SelectInsure.vue'
import getUploadImgColor from '@/utils/color'
import { mapState, mapActions } from 'vuex' import { mapState, mapActions } from 'vuex'
export default { export default {
components: { components: {
...@@ -189,7 +190,7 @@ export default { ...@@ -189,7 +190,7 @@ export default {
marketingSubtitle: [{ required: true, message: '请输入营销副标题', trigger: 'input' }], marketingSubtitle: [{ required: true, message: '请输入营销副标题', trigger: 'input' }],
activityTime: [{ required: true, message: '请选择活动时间', trigger: 'input' }], activityTime: [{ required: true, message: '请选择活动时间', trigger: 'input' }],
backgroundImage: [{ required: true, message: '请选择主题背景图', trigger: 'change' }], backgroundImage: [{ required: true, message: '请选择主题背景图', trigger: 'change' }],
detailImage: [{ required: true, message: '请选择内容图', trigger: 'change' }], detailImage: [{ required: false, message: '请选择内容图', trigger: 'change' }],
activityPrice: [{ required: true, message: '请输入活动参与价格/元:', trigger: 'input' }], activityPrice: [{ required: true, message: '请输入活动参与价格/元:', trigger: 'input' }],
goodsStock: [{ required: true, message: '请输入库存', trigger: 'input' }], goodsStock: [{ required: true, message: '请输入库存', trigger: 'input' }],
merchantname: [{ required: true, message: '请输入门店名称', trigger: 'input' }], merchantname: [{ required: true, message: '请输入门店名称', trigger: 'input' }],
...@@ -208,10 +209,8 @@ export default { ...@@ -208,10 +209,8 @@ export default {
}, },
subscribe(val) { subscribe(val) {
if (val == 5) { if (val == 5) {
this.editRule.detailImage[0].required = false
this.editFormData[0].isHide = false this.editFormData[0].isHide = false
} else { } else {
this.editRule.detailImage[0].required = true
this.editFormData[0].isHide = true this.editFormData[0].isHide = true
} }
}, },
...@@ -227,6 +226,11 @@ export default { ...@@ -227,6 +226,11 @@ export default {
deep: true deep: true
}, },
'editForm.backgroundImage'(val) {
getUploadImgColor(val, color => {
this.editForm.mainColor = color
})
},
activityInfo: { activityInfo: {
handler(info) { handler(info) {
if (Object.keys(info).length == 0) { if (Object.keys(info).length == 0) {
...@@ -241,10 +245,16 @@ export default { ...@@ -241,10 +245,16 @@ export default {
merchantAddress: this.merchantInfo.merchantAddress merchantAddress: this.merchantInfo.merchantAddress
}) })
} }
if ([9, 10].includes(info.codeId)) {
this.editRule.detailImage[0].required = true
} else {
this.editRule.detailImage[0].required = false
}
if (info.subTitle) { if (info.subTitle) {
this.setDetail(info) this.setDetail(info)
return return
} }
this.editForm = Object.assign({ merchantLog: '' }, this.$common.utils.deepClone(info)) this.editForm = Object.assign({ merchantLog: '' }, this.$common.utils.deepClone(info))
if (info.activityName) { if (info.activityName) {
this.$set(this.editForm, 'marketingTitle', info.activityName) this.$set(this.editForm, 'marketingTitle', info.activityName)
...@@ -262,9 +272,6 @@ export default { ...@@ -262,9 +272,6 @@ export default {
if (info.activityAddressProvinceName || info.activityAddressCityName) { if (info.activityAddressProvinceName || info.activityAddressCityName) {
this.$refs.editFormRef.$refs.provinceForm[0].init(info.activityAddressProvinceName, info.activityAddressCityName) this.$refs.editFormRef.$refs.provinceForm[0].init(info.activityAddressProvinceName, info.activityAddressCityName)
} }
if (info.activityPrice) {
this.$set(this.editForm, 'activityPrice', info.activityPrice / 100)
}
}, },
deep: true deep: true
} }
...@@ -297,6 +304,7 @@ export default { ...@@ -297,6 +304,7 @@ export default {
param.endtime = d[1] param.endtime = d[1]
} }
delete param.createdTime delete param.createdTime
delete param.activityPrice
return param return param
}, },
handleSave() { handleSave() {
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<div v-show="currentIndex == 1" class="car-table"> <div v-show="currentIndex == 1" class="car-table">
<GLTable :hasPage="false" v-loading="loading" ref="carRef" :tableData="carList" :tableParams="carTableParams" @refreshTable="getCarList" @select="handleSelectionCarTable"> <GLTable :hasPage="false" v-loading="loading" ref="carRef" :tableData="carList" :tableParams="carTableParams" @refreshTable="getCarList" @select="handleSelectionCarTable">
<template slot="price" slot-scope="scope"> <template slot="price" slot-scope="scope">
<el-input v-model="scope.scope.packageAmount" placeholder="请输入" oninput="value=value.match(/\d+\.?\d{0,2}/, '')"></el-input> <el-input v-model="scope.scope.packageAmount" @blur="calcCarValue" placeholder="请输入" oninput="value=value.match(/\d+\.?\d{0,2}/, '')"></el-input>
</template> </template>
</GLTable> </GLTable>
<div class="car-gift flex-space-between"> <div class="car-gift flex-space-between">
...@@ -85,6 +85,7 @@ ...@@ -85,6 +85,7 @@
<script> <script>
// import addGift from './AddGift' // import addGift from './AddGift'
import gift from '@/mixins/gift' import gift from '@/mixins/gift'
import { openTab } from '@/utils/index'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
export default { export default {
mixins: [gift], mixins: [gift],
...@@ -97,7 +98,8 @@ export default { ...@@ -97,7 +98,8 @@ export default {
isInit: true, isInit: true,
giftValue: '', giftValue: '',
editForm: { editForm: {
giftList: 1 giftList: 1,
activityPrice: ''
}, },
totalPrice: 0, totalPrice: 0,
giftName: '', giftName: '',
...@@ -150,7 +152,7 @@ export default { ...@@ -150,7 +152,7 @@ export default {
this.selectedCarList = info.serviceMerchantPackageConfigDTOS.map(item => { this.selectedCarList = info.serviceMerchantPackageConfigDTOS.map(item => {
return { return {
packageCode: item.packageCode, packageCode: item.packageCode,
packageAmount: item.packageAmount packageAmount: item.packageName
} }
}) })
} }
...@@ -165,7 +167,10 @@ export default { ...@@ -165,7 +167,10 @@ export default {
this.selectedGoodsList = activityCoupon.filter(i => i.discountType == 8) this.selectedGoodsList = activityCoupon.filter(i => i.discountType == 8)
this.selectedServiceList = activityCoupon.filter(i => i.discountType != 8) this.selectedServiceList = activityCoupon.filter(i => i.discountType != 8)
} }
console.log(this.selectedCarList, this.selectedGoodsList, this.selectedServiceList, 11111111) if (info.activityPrice) {
this.editForm.activityPrice = info.activityPrice / 100
}
this.getList() this.getList()
}) })
}, },
...@@ -188,6 +193,8 @@ export default { ...@@ -188,6 +193,8 @@ export default {
this.goodsList = [] this.goodsList = []
this.selectedGoodsList = [] this.selectedGoodsList = []
this.isInit = true this.isInit = true
this.totalPrice = 0
this.editForm.activityPrice = ''
this.$refs['carRef'].$refs['listMutiTable'].clearSelection() this.$refs['carRef'].$refs['listMutiTable'].clearSelection()
this.$refs['goodsRef' + this.goodsIndex][0].$refs['listMutiTable'].clearSelection() this.$refs['goodsRef' + this.goodsIndex][0].$refs['listMutiTable'].clearSelection()
this.$refs['serviceRef' + this.serviceIndex][0].$refs['listMutiTable'].clearSelection() this.$refs['serviceRef' + this.serviceIndex][0].$refs['listMutiTable'].clearSelection()
...@@ -202,6 +209,16 @@ export default { ...@@ -202,6 +209,16 @@ export default {
this.giftList = res || [] this.giftList = res || []
}) })
}, },
calcCarValue() {
this.totalPrice = 0
for (let i = 0; i < this.selectedCarList.length; i++) {
if (!this.selectedCarList[i].packageAmount) {
this.$message.error('输入用车权益价格')
return
}
this.totalPrice = this.totalPrice + parseFloat(this.selectedCarList[i].packageAmount)
}
},
handleSaveGift() { handleSaveGift() {
if (!this.editForm.activityPrice) { if (!this.editForm.activityPrice) {
this.$message.error('输入活动价格') this.$message.error('输入活动价格')
...@@ -218,7 +235,7 @@ export default { ...@@ -218,7 +235,7 @@ export default {
} }
this.totalPrice = this.totalPrice + parseFloat(this.selectedCarList[i].packageAmount) this.totalPrice = this.totalPrice + parseFloat(this.selectedCarList[i].packageAmount)
} }
const params = {} this.setPackage(Object.assign({}, { selectedServiceList: this.$common.utils.deepClone(this.selectedServiceList), selectedCarList: this.$common.utils.deepClone(this.selectedCarList), selectedGoodsList: this.$common.utils.deepClone(this.selectedGoodsList) }))
const selectedGoodsList = [...this.selectedGoodsList, ...this.selectedServiceList].map(item => { const selectedGoodsList = [...this.selectedGoodsList, ...this.selectedServiceList].map(item => {
console.log(item) console.log(item)
return { return {
...@@ -233,6 +250,7 @@ export default { ...@@ -233,6 +250,7 @@ export default {
packageAmount: i.packageAmount packageAmount: i.packageAmount
} }
}) })
const params = {}
params.serviceMerchantPackageConfigDTOS = serviceMerchantPackageConfigDTOS params.serviceMerchantPackageConfigDTOS = serviceMerchantPackageConfigDTOS
const equityServices = this.selectedCarList.map(i => i.packageCode) const equityServices = this.selectedCarList.map(i => i.packageCode)
params.equityServices = equityServices.join(',') params.equityServices = equityServices.join(',')
...@@ -298,9 +316,10 @@ export default { ...@@ -298,9 +316,10 @@ export default {
return return
} }
rows.forEach(row => { rows.forEach(row => {
selectedItems = selectedItems.filter(item => item[val] == row[val]) selectedItems = selectedItems.filter(item => item[val] != row[val])
}) })
// return selectedItems console.log(selectedItems)
return selectedItems
}, },
// 选择/取消 门店服务 // 选择/取消 门店服务
handleSelectionServiceTable(selection, row) { handleSelectionServiceTable(selection, row) {
...@@ -308,33 +327,31 @@ export default { ...@@ -308,33 +327,31 @@ export default {
if (selection && selection.find(item => item && item.id == row.id)) { if (selection && selection.find(item => item && item.id == row.id)) {
this.addRows(this.selectedServiceList, [row], 'id') this.addRows(this.selectedServiceList, [row], 'id')
} else { } else {
this.deleteRows(this.selectedServiceList, [row], 'id') this.selectedServiceList = this.deleteRows(this.selectedServiceList, [row], 'id')
} }
console.log(this.selectedServiceList) console.log(this.selectedServiceList)
// this.selectedServiceList = val // this.selectedServiceList = val
this.setPackage(Object.assign(this.packageList, { selectedServiceList: this.selectedServiceList }))
}, },
// 选择/取消 生活权益 // 选择/取消 生活权益
handleSelectionGoodsTable(selection, row) { handleSelectionGoodsTable(selection, row) {
if (selection && selection.find(item => item && item.id == row.id)) { if (selection && selection.find(item => item && item.id == row.id)) {
this.addRows(this.selectedGoodsList, [row], 'id') this.addRows(this.selectedGoodsList, [row], 'id')
} else { } else {
this.deleteRows(this.selectedGoodsList, [row], 'id') this.selectedGoodsList = this.deleteRows(this.selectedGoodsList, [row], 'id')
} }
console.log(this.selectedGoodsList) console.log(this.selectedGoodsList)
this.setPackage(Object.assign(this.packageList, { selectedGoodsList: this.selectedGoodsList }))
}, },
// 选择/取消 用车权益 // 选择/取消 用车权益
handleSelectionCarTable(selection, row) { handleSelectionCarTable(selection, row) {
if (selection && selection.find(item => item && item.id == row.id)) { if (selection && selection.find(item => item && item.packageCode == row.packageCode)) {
this.addRows(this.selectedCarList, [row], 'packageCode') this.addRows(this.selectedCarList, [row], 'packageCode')
} else { } else {
this.deleteRows(this.selectedCarList, [row], 'packageCode') this.selectedCarList = this.deleteRows(this.selectedCarList, [row], 'packageCode')
} }
this.setPackage(Object.assign(this.packageList, { selectedCarList: this.selectedCarList })) this.calcCarValue()
}, },
addCoupon() { addCoupon() {
this.$history.push('/marketing/couponManage/index') openTab('/marketing/couponManage/index')
}, },
getList() { getList() {
switch (+this.currentIndex) { switch (+this.currentIndex) {
...@@ -373,12 +390,12 @@ export default { ...@@ -373,12 +390,12 @@ export default {
}, },
//用车权益 //用车权益
async getCarList() { async getCarList() {
console.log(this.selectedCarList)
let equities = {} let equities = {}
if (this.isInit) { if (this.isInit) {
let res = await this.$apis.giftBag.packageDefault({ merchantId: this.merchantId, activitySubscribe: this.subscribe }) let res = await this.$apis.giftBag.packageDefault({ merchantId: this.merchantId, activitySubscribe: this.subscribe })
equities = JSON.parse(res.equities) equities = JSON.parse(res.equities)
} }
this.isInit = false
var params = { var params = {
...this.searchForm, ...this.searchForm,
merchantId: this.merchantId merchantId: this.merchantId
...@@ -389,19 +406,32 @@ export default { ...@@ -389,19 +406,32 @@ export default {
.then(res => { .then(res => {
this.loading = false this.loading = false
const packageConfigs = res.packageConfigs || [] const packageConfigs = res.packageConfigs || []
if (this.isInit) {
this.selectedCarList = []
}
packageConfigs.forEach(p => { packageConfigs.forEach(p => {
// for (let k in equities) {
// if (k == p.packageCode) {
// p.packageAmount = equities[k]
// }
// }
for (let k in equities) { for (let k in equities) {
if (k == p.packageCode) { if (k == p.packageCode) {
p.packageAmount = equities[k] p.packageAmount = equities[k]
console.log(p.packageAmount) this.selectedCarList.push(p)
} }
} }
console.log(this.selectedCarList, 'this.selectedCarList')
this.isInit = false
this.selectedCarList.forEach(s => { this.selectedCarList.forEach(s => {
if (p.packageCode == s.packageCode) { if (p.packageCode == s.packageCode) {
p.packageAmount = s.packageAmount p.packageAmount = s.packageAmount
} }
}) })
this.calcCarValue()
}) })
console.log(this.selectedCarList)
this.carList = packageConfigs this.carList = packageConfigs
this.selectedPreExisting(this.selectedCarList, this.carList, 'packageCode', this.$refs['carRef']) this.selectedPreExisting(this.selectedCarList, this.carList, 'packageCode', this.$refs['carRef'])
}) })
...@@ -444,7 +474,6 @@ export default { ...@@ -444,7 +474,6 @@ export default {
//判断row是存在当前tableData //判断row是存在当前tableData
list.forEach(i => { list.forEach(i => {
if (i[val] == row[val]) { if (i[val] == row[val]) {
console.log(i)
refTabel.$refs['listMutiTable'].toggleRowSelection(i, true) refTabel.$refs['listMutiTable'].toggleRowSelection(i, true)
} }
}) })
...@@ -485,13 +514,12 @@ export default { ...@@ -485,13 +514,12 @@ export default {
return return
} }
this.$apis.giftBag.packageDetail({ id: this.giftValue }).then(res => { this.$apis.giftBag.packageDetail({ id: this.giftValue }).then(res => {
this.init()
this.$nextTick(() => { this.$nextTick(() => {
if (res.serviceMerchantPackageConfigDTOS && res.serviceMerchantPackageConfigDTOS.length) { if (res.serviceMerchantPackageConfigDTOS && res.serviceMerchantPackageConfigDTOS.length) {
this.selectedCarList = res.serviceMerchantPackageConfigDTOS.map(item => { this.selectedCarList = res.serviceMerchantPackageConfigDTOS.map(item => {
return { return {
packageCode: item.packageCode, packageCode: item.packageCode,
packageAmount: item.packageAmount packageAmount: item.packageName
} }
}) })
} }
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<i class="el-icon-arrow-down"></i> <i class="el-icon-arrow-down"></i>
</div> </div>
</div> </div>
<div class="task-box" :style="{ height: item.expand ? 'auto' : '0px' }"> <div class="task-box">
<template v-if="item.isFinish"> <template v-if="item.isFinish">
<div class="task-box-form"> <div class="task-box-form">
<label>导入文档:</label> <label>导入文档:</label>
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<label>导入文档:</label> <label>导入文档:</label>
<span>成功导入客户数</span> <span>成功导入客户数</span>
</div> </div>
<div class="task-box-desc"> <div class="task-box-desc" :style="{ height: item.expand ? 'auto' : '0px' }">
<div class="task-box-num">成功导入客户数</div> <div class="task-box-num">成功导入客户数</div>
<div class="task-num-item flex-column-center"> <div class="task-num-item flex-column-center">
<label>分配方式:</label> <label>分配方式:</label>
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" width="260"> <el-table-column label="操作" width="260">
<div class="config-panel flex" slot-scope="scope"> <div class="config-panel flex" slot-scope="scope">
<div class="config-msg" v-if="item.assignType == 1 && scope.row.registerStatus === 0" @click="showRegister">邀请人员注册</div> <div class="config-msg" v-if="scope.row.registerStatus === 0" @click="showRegister">邀请人员注册</div>
<div class="config-msg" @click="handleConfig(item.batchNo, scope)">配置话术 / 短信</div> <div class="config-msg" @click="handleConfig(item.batchNo, scope)">配置话术 / 短信</div>
</div> </div>
</el-table-column> </el-table-column>
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
<el-button @click="handleCancel" size="medium">跳过营销任务</el-button> <el-button @click="handleCancel" size="medium">跳过营销任务</el-button>
<el-button type="primary" @click="handleConfirm" size="medium">保存营销任务</el-button> <el-button type="primary" @click="handleConfirm" size="medium">保存营销任务</el-button>
</div> </div>
<GLDialog class="qr-dialog" title="邀请人员注册" mode="mid" :hasFooter="false" :visible.sync="isQrcodeVisible" @onCancel="isQrcodeVisible = false"> <GLDialog class="qr-dialog" title="邀请人员注册" mode="mid" :hasFooter="false" :before-close="(isQrcodeVisible = fasle)" :visible.sync="isQrcodeVisible" @onCancel="isQrcodeVisible = false">
<div class="qrcode-body"> <div class="qrcode-body">
<div class="qrcode-link">邀请跟进人注册链接</div> <div class="qrcode-link">邀请跟进人注册链接</div>
<div class="img" v-loading="imgLoading"> <div class="img" v-loading="imgLoading">
...@@ -299,64 +299,58 @@ export default { ...@@ -299,64 +299,58 @@ export default {
this.setProcess({ 0: true }) this.setProcess({ 0: true })
}, },
handleConfirm() { handleConfirm() {
const customerRequestList = this.$common.utils.deepClone(this.taskList).map(item => { if (this.vaildTask()) {
return { const customerRequestList = this.$common.utils.deepClone(this.taskList).map(item => {
batchNo: item.batchNo,
excelUrl: item.excelUrl,
staffList: item.staffList,
assignType: item.assignType,
key: item.key
}
})
customerRequestList.forEach(item => {
item.staffList = item.staffList.map(item => {
return { return {
lastStaffFlag: item.lastCustomerNum ? 1 : 0, batchNo: item.batchNo,
lastCustomerNum: item.lastCustomerNum, excelUrl: item.excelUrl,
merchantId: item.merchantNo, staffList: item.staffList,
staffPhone: item.staffPhone, assignType: item.assignType,
staffName: item.staffName, key: item.key
staffUuid: item.uuid,
id: item.id,
messageContent: item.messageContent,
registerStatus: item.registerStatus,
talkId: item.talkId,
createdBy: item.createdBy
} }
}) })
}) customerRequestList.forEach(item => {
console.log(customerRequestList) item.staffList = item.staffList.reduce((result, i) => {
if (this.vaildTask()) if (i.customerNum) {
result.push({
lastStaffFlag: i.lastCustomerNum ? 1 : 0,
lastCustomerNum: i.lastCustomerNum,
merchantId: i.merchantNo,
staffPhone: i.staffPhone,
staffName: i.staffName,
messageContent: i.messageContent,
registerStatus: i.registerStatus,
talkId: i.talkId,
createdBy: i.createdBy
})
}
return result
}, [])
})
console.log(customerRequestList)
this.setProcess({ this.setProcess({
0: { 0: {
customerRequestList customerRequestList
} }
}) })
}
}, },
//验证配置任务,及分配人员 //验证配置任务,及分配人员
vaildTask() { vaildTask() {
let len = this.taskList.length const task = this.taskList[this.taskList.length - 1]
const task = this.taskList[len - 1] const staffListLength = task.staffList.length
//获取上次跟进人总数 //获取上次跟进人总数
console.log(task.staffList) const lastCustomerNum = task.assignType == 0 ? 0 : task.staffList.reduce((total, { lastCustomerNum }) => total + (lastCustomerNum || 0), 0)
let lastCustomerNum = task.staffList.reduce((prev, cur) => { if (task.excelUrl && staffListLength) {
return prev + cur.lastCustomerNum || 0
}, 0)
console.log(lastCustomerNum, 'lastCustomerNum')
if (task.assignType == 0) lastCustomerNum = 0
if (task.excelUrl && task.staffList.length) {
task.isFinish = true task.isFinish = true
const customerNumTotal = task.customerNumTotal - lastCustomerNum || 0 // 去除上次跟进人总数 let residue = task.customerNumTotal - lastCustomerNum || 0
console.log(customerNumTotal, 'customerNumTotal') let avag = Math.ceil(residue / staffListLength)
const length = task.staffList.length
let avag = Math.ceil(customerNumTotal / length)
let residue = customerNumTotal
task.staffList.forEach((item, i) => { task.staffList.forEach((item, i) => {
const lastNum = task.assignType == 0 ? 0 : item.lastCustomerNum const lastNum = task.assignType == 0 ? 0 : item.lastCustomerNum || 0
console.log(lastNum, 'lastNum') this.$set(item, 'customerNum', residue > avag ? lastNum + avag : lastNum + residue)
this.$set(item, 'customerNum', residue > avag ? (lastNum || 0) + avag : (lastNum || 0) + residue) residue -= avag
residue = residue - avag avag = Math.ceil(residue / (staffListLength - i - 1))
avag = Math.ceil(residue / (length - i - 1))
}) })
return true return true
} else { } else {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-15 15:08:32 * @Date: 2023-05-15 15:08:32
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-11 20:35:40 * @LastEditTime: 2023-07-13 10:05:36
* @FilePath: \scrm-micro-home\src\views\home\components\Marketing\MarketingRight.vue * @FilePath: \scrm-micro-home\src\views\home\components\Marketing\MarketingRight.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -46,38 +46,38 @@ ...@@ -46,38 +46,38 @@
<img :src="detail.activityBigImg" v-if="detail.activityBigImg" /> <img :src="detail.activityBigImg" v-if="detail.activityBigImg" />
</div> </div>
</div> </div>
<div class="main-body" style="background: #DEEAF2;"> <div class="main-body" :style="{ background: detail.mainColor || '#DEEAF2' }">
<template v-if="[1, 2, 3].includes(modelNum)"> <template v-if="[1, 2, 3].includes(modelNum)">
<!-- 权益服务 --> <!-- 权益服务 -->
<equity-one :detail="detail"></equity-one> <equity-one :detail="detailCoupon"></equity-one>
<!-- 商品券 --> <!-- 商品券 -->
<goods-one :detail="detail"></goods-one> <goods-one :detail="detailCoupon"></goods-one>
<!-- 服务券 --> <!-- 服务券 -->
<coupon-one :detail="detail"></coupon-one> <coupon-one :detail="detailCoupon"></coupon-one>
</template> </template>
<template v-if="[4].includes(modelNum)"> <template v-if="[4].includes(modelNum)">
<!-- 权益服务 --> <!-- 权益服务 -->
<equity-two :detail="detail"></equity-two> <equity-two :detail="detailCoupon"></equity-two>
<!-- 商品券 --> <!-- 商品券 -->
<goods-two :detail="detail"></goods-two> <goods-two :detail="detailCoupon"></goods-two>
<!-- 服务券 --> <!-- 服务券 -->
<coupon-two :detail="detail"></coupon-two> <coupon-two :detail="detailCoupon"></coupon-two>
</template> </template>
<template v-if="[5, 6, 7].includes(modelNum)"> <template v-if="[5, 6, 7].includes(modelNum)">
<!-- 权益服务 --> <!-- 权益服务 -->
<equity-three :detail="detail"></equity-three> <equity-three :detail="detailCoupon"></equity-three>
<!-- 商品券 --> <!-- 商品券 -->
<goods-three :detail="detail"></goods-three> <goods-three :detail="detailCoupon"></goods-three>
<!-- 服务券 --> <!-- 服务券 -->
<coupon-three :detail="detail"></coupon-three> <coupon-three :detail="detailCoupon"></coupon-three>
</template> </template>
<template v-if="[8].includes(modelNum)"> <template v-if="[8].includes(modelNum)">
<!-- 权益服务 --> <!-- 权益服务 -->
<equity-four :detail="detail"></equity-four> <equity-four :detail="detailCoupon"></equity-four>
<!-- 商品券 --> <!-- 商品券 -->
<goods-four :detail="detail"></goods-four> <goods-four :detail="detailCoupon"></goods-four>
<!-- 服务券 --> <!-- 服务券 -->
<coupon-four :detail="detail"></coupon-four> <coupon-four :detail="detailCoupon"></coupon-four>
</template> </template>
</div> </div>
<div class="review-address" v-if="detail.merchantname"> <div class="review-address" v-if="detail.merchantname">
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
<div class="goods-item" v-for="(item, index) in detail.selectedGoodsList" :key="index"> <div class="goods-item" v-for="(item, index) in detail.selectedGoodsList" :key="index">
<div class="service-desc"> <div class="service-desc">
<div class="title">{{ item.brandName }}{{ item.goodsName }}</div> <div class="title">{{ item.brandName }}{{ item.goodsName }}</div>
<div class="content">x{{ item.couponAmount }} 抵扣券</div> <div class="content">x1 抵扣券</div>
</div> </div>
<div class="service-price"> <div class="service-price">
{{ item.couponAnticipatedCost || item.denomination }} {{ item.couponAnticipatedCost || item.denomination }}
...@@ -150,7 +150,7 @@ ...@@ -150,7 +150,7 @@
<div class="service-time">{{ discount[item.discountType] }}</div> <div class="service-time">{{ discount[item.discountType] }}</div>
<div class="service-title"> <div class="service-title">
<span>{{ item.couponName }}</span> <span>{{ item.couponName }}</span>
<span>x{{ item.couponAmount }}</span> <span>x1</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -308,38 +308,41 @@ export default { ...@@ -308,38 +308,41 @@ export default {
} }
}, },
watch: { watch: {
packageList: { // packageList: {
handler(val) { // handler(val) {
console.log(val, 8888) // console.log(val, 8888)
this.detail = { ...this.detail, ...val } // this.detail = { ...this.detail, ...val }
}, // },
deep: true, // deep: true,
immediate: true // immediate: true
}, // },
process: { process: {
async handler(val) { handler(val) {
this.detail = { ...this.detail, ...val[2] } this.detail = { ...this.detail, ...val[2] }
this.isFestival = false this.detailCoupon = this.$common.utils.deepClone(this.packageList)
this.isRenewal = false console.log(this.detailCoupon)
if (!this.detail) return this.$nextTick(async () => {
if (RENEWAL.includes(this.detail.codeId)) { this.isFestival = false
this.modelNum = this.detail.codeId this.isRenewal = false
this.isRenewal = true if (!this.detail) return
this.backgroundHeight = await this.getImgH(this.detail.backgroundImage) if (RENEWAL.includes(this.detail.codeId)) {
try { this.modelNum = this.detail.codeId
const style1 = JSON.parse(this.detail.titleStyle) this.isRenewal = true
const style2 = JSON.parse(this.detail.subTitleStyle) this.backgroundHeight = await this.getImgH(this.detail.backgroundImage)
Object.assign(this.draggableList[0], { content: this.detail.marketingTitle, ...style1, color: style1.style.color, font: style1.font }) try {
Object.assign(this.draggableList[1], { content: this.detail.marketingSubtitle, ...style1, color: style2.style.color, font: style2.font }) const style1 = JSON.parse(this.detail.titleStyle)
} catch (e) { const style2 = JSON.parse(this.detail.subTitleStyle)
console.log(e) Object.assign(this.draggableList[0], { content: this.detail.marketingTitle, ...style1, color: style1.style.color, font: style1.font })
Object.assign(this.draggableList[1], { content: this.detail.marketingSubtitle, ...style1, color: style2.style.color, font: style2.font })
} catch (e) {
console.log(e)
}
} }
} if (FESTIVAL.includes(this.detail.codeId)) {
if (FESTIVAL.includes(this.detail.codeId)) { this.isFestival = true
this.isFestival = true this.logoInfo = await this.getImgWH(this.detail.merchantLog)
this.logoInfo = await this.getImgWH(this.detail.merchantLog) }
} })
console.log(this.detail, this.isRenewal)
}, },
deep: true, deep: true,
immediate: true immediate: true
......
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
</template> </template>
<script> <script>
const RENEWAL = [1, 2, 3, 4, 5, 6, 7, 8]
const FESTIVAL = [9, 10]
import { mapState, mapMutations } from 'vuex' import { mapState, mapMutations } from 'vuex'
import phoneView from './PhoneView' import phoneView from './PhoneView'
import draw from '@/mixins/draw' import draw from '@/mixins/draw'
...@@ -70,28 +72,45 @@ export default { ...@@ -70,28 +72,45 @@ export default {
detail: { backgroundImage }, detail: { backgroundImage },
draggableList draggableList
} = this.$refs.viewForm } = this.$refs.viewForm
let url let url = backgroundImage
if (params.codeId) { if (RENEWAL.includes(params.codeId)) {
url = await this.createMain(backgroundHeight, backgroundImage, draggableList) url = await this.createMain(backgroundHeight, backgroundImage, draggableList)
} }
if (params.templateId && !params.codeId) { if (FESTIVAL.includes(params.codeId)) {
url = await this.createBig(this.$refs.viewForm.detail, this.logoInfo, draggableList) url = await this.createBig(this.$refs.viewForm.detail, this.logoInfo, draggableList)
} }
let origin = 'createSuperMarketing'
if (params.id) {
origin = 'updateApi'
params.activityName = params.marketingTitle
params = { ...params, ...this.addProperties(params) }
params = this.deleteKeys(params, ['serviceMerchantPackageConfigDTOS', 'activityActionReport', 'couponList', 'superMarketingCouponRelRequestList'])
}
params.subscribe = this.subscribe params.subscribe = this.subscribe
params.bigImage = url params.bigImage = url
params.source = 1 this.$apis.marketing[origin](params)
this.$apis.marketing
.createSuperMarketing(params)
.then(res => { .then(res => {
if (res) { if (res) {
this.loading = false this.loading = false
this.init() this.init()
this.$message.success('操作成功') this.$message.success('操作成功')
if (params.id) this.$router.push('/activityLink/index')
} }
}) })
.finally(() => { .finally(() => {
this.loading = false this.loading = false
}) })
},
deleteKeys(obj, keys) {
const filteredEntries = Object.entries(obj).filter(([key]) => !keys.includes(key))
return Object.fromEntries(filteredEntries)
},
addProperties(obj) {
return {
...obj,
marketingType: 5,
couponCreateRequests: obj.superMarketingCouponRelRequestList
}
} }
}, },
computed: { computed: {
......
<template> <template>
<div class="scene-container"> <div class="scene-container">
<el-button :size="size" type="primary" @click="handleAdd" class="el-icon-plus" v-if="addOrEdit == 'add'">新建营销方案</el-button> <el-button :size="size" type="success" plain @click="handleAdd" class="el-icon-plus" v-if="addOrEdit == 'add'">新建营销方案</el-button>
<div class="choseRow"> <div class="choseRow">
<div class="choseItem" :class="{ active: currentIndex == item.type }" v-for="(item, index) in tabList" :key="index" @click="tabClick(item.type)">{{ item.label }}</div> <div class="choseItem" :class="{ active: currentIndex == item.type }" v-for="(item, index) in tabList" :key="index" @click="tabClick(item.type)">{{ item.label }}</div>
</div> </div>
...@@ -20,9 +20,11 @@ ...@@ -20,9 +20,11 @@
请扫码添加小管家,并组群获得支持 请扫码添加小管家,并组群获得支持
</div> </div>
</div> </div>
<div class="scene-item-box" slot="reference"> <div class="scene-item_box" slot="reference">
<div class="scene-item-title"> <div class="scene-item-icon">
<img :src="require(`@/assets/marketing/s${index + 1}.png`)" alt="" /> <img :src="require(`@/assets/marketing/s${index + 1}.png`)" alt="" />
</div>
<div class="scene-item-title">
{{ item.title }} {{ item.title }}
</div> </div>
<div class="scene-item-content">{{ item.content }}</div> <div class="scene-item-content">{{ item.content }}</div>
...@@ -30,8 +32,10 @@ ...@@ -30,8 +32,10 @@
</el-popover> </el-popover>
</div> </div>
<div class="scene-item-box" v-else @click="handleStep(index)"> <div class="scene-item-box" v-else @click="handleStep(index)">
<div class="scene-item-title"> <div class="scene-item-icon">
<img :src="require(`@/assets/marketing/s${index + 1}.png`)" alt="" /> <img :src="require(`@/assets/marketing/s${index + 1}.png`)" alt="" />
</div>
<div class="scene-item-title">
{{ item.title }} {{ item.title }}
</div> </div>
<div class="scene-item-content">{{ item.content }}</div> <div class="scene-item-content">{{ item.content }}</div>
...@@ -178,34 +182,46 @@ export default { ...@@ -178,34 +182,46 @@ export default {
width: 16.7%; width: 16.7%;
display: flex; display: flex;
align-items: center; align-items: center;
position: relative;
z-index: 1;
&-box { &-box {
z-index: 1;
cursor: pointer; cursor: pointer;
width: calc(100% - 30px); width: calc(100% - 30px);
height: 0; height: 0;
padding-bottom: 50%; padding-bottom: 50%;
padding-bottom: 50%;
background-image: url('../../../assets/marketing/scence-bg.png'); background-image: url('../../../assets/marketing/scence-bg.png');
background-size: 100% 100%; background-size: 100% 100%;
padding-left: 8%; padding-left: 8%;
padding-right: 8%; padding-right: 8%;
.scene-item-icon {
text-align: center;
margin-top: 0.5vw;
img {
width: 1.7vw;
vertical-align: middle;
}
}
.scene-item-title { .scene-item-title {
text-align: center;
color: #333333; color: #333333;
margin-top: 8%; margin-top: 1%;
font-size: 1.1vw; font-size: 1.1vw;
font-weight: 700;
transform: scale(0.6); transform: scale(0.6);
-webkit-transform-origin-x: 0; -webkit-transform-origin-x: 0;
width: 165%; width: 165%;
img {
width: 1.7vw;
vertical-align: middle;
}
} }
.scene-item-content { .scene-item-content {
font-size: 1vw; font-size: 1vw;
line-height: 1.2vw;
transform: scale(0.6); transform: scale(0.6);
color: #999999; color: #6c6c6c;
-webkit-transform-origin-x: 0; -webkit-transform-origin-x: 0;
display: inline-block; display: inline-block;
width: 165%; width: 165%;
margin-top: -5px;
} }
} }
&-next { &-next {
...@@ -251,17 +267,14 @@ export default { ...@@ -251,17 +267,14 @@ export default {
cursor: pointer; cursor: pointer;
line-height: 40px; line-height: 40px;
height: 40px; height: 40px;
border-radius: 4px 4px 0px 0px;
border: 1px solid #e5e5e5;
margin-right: 1px; margin-right: 1px;
padding: 0 32px; padding: 0 32px;
box-sizing: border-box; box-sizing: border-box;
background: #f8f8f8; background: #e8effa;
} }
.active { .active {
color: #5850ff; color: #fff;
background: #ffffff; background: #5092ff;
border-bottom: 1px solid #fff;
font-weight: 600; font-weight: 600;
} }
} }
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<div class="service-time">{{ discount[item.discountType] }}</div> <div class="service-time">{{ discount[item.discountType] }}</div>
<div class="service-title"> <div class="service-title">
<span>{{ item.couponName }}</span> <span>{{ item.couponName }}</span>
<span>x{{ item.couponAmount }}</span> <span>x1</span>
</div> </div>
</div> </div>
</div> </div>
......
<template> <template>
<div class="wrap" v-if="serviceList.length>0"> <div class="wrap" v-if="serviceList.length > 0">
<div class="container-panel"> <div class="container-panel">
<img class="angle" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/rob.png?v=1.0.2" /> <img class="angle" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/rob.png?v=1.0.2" />
<div class="title">用车权益</div> <div class="title">用车权益</div>
<div class="service-item" v-for="(item, index) in serviceList" :key="index"> <div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-title">{{ item.packageName }}</div> <div class="service-title">{{ item.packageName }}</div>
<div class="service-time"> <div class="service-time">
{{ item.price }} {{ item.packageAmount }}
<span>元</span> <span>元</span>
</div> </div>
</div> </div>
...@@ -17,20 +17,21 @@ ...@@ -17,20 +17,21 @@
export default { export default {
data() { data() {
return { return {
serviceList:[] serviceList: []
} }
}, },
props: { props: {
detail: { detail: {
type: Object, type: Object,
default:()=> {} default: () => {}
} }
}, },
watch: { watch: {
detail: { detail: {
handler(n) { handler(n) {
const serviceList = n.selectedCarList const serviceList = n.selectedCarList
this.serviceList =serviceList console.log(serviceList)
this.serviceList = serviceList
}, },
deep: true, deep: true,
immediate: true immediate: true
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<div class="service-logo"></div> <div class="service-logo"></div>
<div class="service-desc"> <div class="service-desc">
<div class="service-title">{{ item.brandName }}{{ item.goodsName }}</div> <div class="service-title">{{ item.brandName }}{{ item.goodsName }}</div>
<div class="service-content">x{{ item.couponAmount }} 抵扣券</div> <div class="service-content">x1 抵扣券</div>
</div> </div>
<div class="service-price"> <div class="service-price">
{{ item.price }} {{ item.price }}
...@@ -45,7 +45,8 @@ export default { ...@@ -45,7 +45,8 @@ export default {
const serviceList = n.selectedGoodsList || [] const serviceList = n.selectedGoodsList || []
serviceList.length > 0 && serviceList.length > 0 &&
serviceList.forEach(item => { serviceList.forEach(item => {
item.price = (item.couponAnticipatedCost / 100).toFixed(2).replace(/\.[0]+$/, '') const price = item.couponAnticipatedCost || item.denomination
item.price = (price / 100).toFixed(2).replace(/\.[0]+$/, '')
}) })
this.serviceList = serviceList this.serviceList = serviceList
}, },
...@@ -79,7 +80,7 @@ export default { ...@@ -79,7 +80,7 @@ export default {
font-size: 16px; font-size: 16px;
color: #ffffff; color: #ffffff;
text-shadow: 0 2px 3px #d89410; text-shadow: 0 2px 3px #d89410;
padding-left: 41px; padding-left: 21px;
padding-top: 5px; padding-top: 5px;
position: relative; position: relative;
display: inline-block; display: inline-block;
......
<template> <template>
<div class="wrap" v-if="serviceList.length>0"> <div class="wrap" v-if="serviceList.length > 0">
<div class="container-panel"> <div class="container-panel">
<img class="header-panel" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_4/get.png?v=1.0.2" /> <img class="header-panel" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_4/get.png?v=1.0.2" />
<div class="service-item" v-for="(item, index) in serviceList" :key="index"> <div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-time">{{ discount[item.discountType] }}</div> <div class="service-time">{{ discount[item.discountType] }}</div>
<div class="service-title"> <div class="service-title">
<div class="service-couponName">{{ item.couponName }}</div> <div class="service-couponName">{{ item.couponName }}</div>
<div class="service-amount">x{{ item.couponAmount }}</div> <div class="service-amount">x1</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -49,8 +49,8 @@ export default { ...@@ -49,8 +49,8 @@ export default {
.container-panel { .container-panel {
background: #ffffff; background: #ffffff;
border-radius: 12px; border-radius: 6px;
padding: 39px 10px 16px; padding: 10px 5px 8px;
position: relative; position: relative;
.header-panel { .header-panel {
...@@ -58,17 +58,17 @@ export default { ...@@ -58,17 +58,17 @@ export default {
top: -15px; top: -15px;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
width: 246.5px; width: 146.5px;
height: 41px; height: 26px;
} }
.service-item { .service-item {
margin-top: 10px; margin-top: 10px;
display: flex; display: flex;
height: 67px; height: 33px;
background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_4/get_b.png'); background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_4/get_b.png');
background-size: 100% 100%; background-size: 100% 100%;
border-radius: 8px; border-radius: 4px;
align-items: center; align-items: center;
&:first-child { &:first-child {
...@@ -78,30 +78,30 @@ export default { ...@@ -78,30 +78,30 @@ export default {
.service-title { .service-title {
flex: 1; flex: 1;
display: flex; display: flex;
border-radius: 0px 8px 8px 0px; border-radius: 0px 4px 8px 0px;
.service-couponName { .service-couponName {
font-size: 14px; font-size: 10px;
color: #5a3c36; color: #5a3c36;
margin-left: 50px; margin-left: 25px;
} }
.service-amount { .service-amount {
font-size: 14px; font-size: 10px;
color: #5a3c36; color: #5a3c36;
margin-left: auto; margin-left: auto;
margin-right: 20px; margin-right: 10px;
} }
} }
.service-time { .service-time {
box-sizing: border-box; box-sizing: border-box;
font-size: 15px; font-size: 10px;
color: #763510; color: #763510;
line-height: 11px; line-height: 11px;
position: relative; position: relative;
border-radius: 50%; border-radius: 50%;
margin-left: 15px; margin-left: 8px;
white-space: nowrap; white-space: nowrap;
} }
} }
......
<!--
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-07-08 09:40:43
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-13 09:30:21
* @FilePath: \scrm-micro-link\src\views\activityLink\components\model\model_2\equity\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template> <template>
<div class="wrap" v-if="serviceList.length>0"> <div class="wrap" v-if="serviceList.length > 0">
<div class="container-panel"> <div class="container-panel">
<img class="header-panel" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_4/rob.png" /> <img class="header-panel" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_4/rob.png" />
<div class="service-item" v-for="(item, index) in serviceList" :key="index"> <div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-title">{{ item.packageName }}</div> <div class="service-title">{{ item.packageName }}</div>
<div class="service-time"> <div class="service-time">
1 {{ item.packageAmount }}
<text>元</text> <span>元</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -16,20 +24,20 @@ ...@@ -16,20 +24,20 @@
export default { export default {
data() { data() {
return { return {
serviceList:[] serviceList: []
} }
}, },
props: { props: {
detail: { detail: {
type: Object, type: Object,
default:()=> {} default: () => {}
} }
}, },
watch: { watch: {
detail: { detail: {
handler(n) { handler(n) {
const serviceList = n.selectedCarList const serviceList = n.selectedCarList
this.serviceList =serviceList this.serviceList = serviceList
}, },
deep: true, deep: true,
immediate: true immediate: true
...@@ -40,12 +48,12 @@ export default { ...@@ -40,12 +48,12 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.wrap { .wrap {
padding: 0px 8px; padding: 0px 8px;
margin-bottom: 41px; margin-bottom: 21px;
.container-panel { .container-panel {
background: #ffffff; background: #ffffff;
border-radius: 12px; border-radius: 4px;
padding: 39px 10px 16px; padding: 20px 5px 8px;
position: relative; position: relative;
.header-panel { .header-panel {
...@@ -53,19 +61,19 @@ export default { ...@@ -53,19 +61,19 @@ export default {
top: -15px; top: -15px;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
width: 246.5px; width: 146.5px;
height: 41px; height: 26px;
} }
.service-item { .service-item {
height: 49px; height: 30px;
background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_4/rob_b.png'); background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_4/rob_b.png');
background-size: 100% 100%; background-size: 100% 100%;
border-radius: 4px; border-radius: 4px;
margin-bottom: 8px; margin-bottom: 8px;
display: flex; display: flex;
align-items: center; align-items: center;
padding: 0px 28.5px 0px 16px; padding: 0px 18.5px 0px 8px;
&:first-child { &:first-child {
margin-top: 0px; margin-top: 0px;
...@@ -73,17 +81,17 @@ export default { ...@@ -73,17 +81,17 @@ export default {
.service-title { .service-title {
flex: 1; flex: 1;
font-size: 14px; font-size: 10px;
color: #5a3c36; color: #5a3c36;
} }
.service-time { .service-time {
text-align: center; text-align: center;
font-size: 26px; font-size: 13px;
color: #fe455d; color: #fe455d;
span { span {
font-size: 12px; font-size: 10px;
color: #fe455d; color: #fe455d;
} }
} }
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<div class="service-logo"></div> <div class="service-logo"></div>
<div class="service-desc"> <div class="service-desc">
<div class="service-title">{{ item.brandName }}{{ item.goodsName }}</div> <div class="service-title">{{ item.brandName }}{{ item.goodsName }}</div>
<div class="service-content">x{{ item.couponAmount }} 抵扣券</div> <div class="service-content">x1 抵扣券</div>
</div> </div>
<div class="service-price"> <div class="service-price">
{{ item.price }} {{ item.price }}
...@@ -41,7 +41,8 @@ export default { ...@@ -41,7 +41,8 @@ export default {
const serviceList = n.selectedGoodsList || [] const serviceList = n.selectedGoodsList || []
serviceList.length > 0 && serviceList.length > 0 &&
serviceList.forEach(item => { serviceList.forEach(item => {
item.price = (item.couponAnticipatedCost / 100).toFixed(2).replace(/\.[0]+$/, '') const price = item.couponAnticipatedCost || item.denomination
item.price = (price / 100).toFixed(2).replace(/\.[0]+$/, '')
}) })
this.serviceList = serviceList this.serviceList = serviceList
}, },
...@@ -54,12 +55,12 @@ export default { ...@@ -54,12 +55,12 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.wrap { .wrap {
padding: 0px 10px; padding: 0px 10px;
margin-bottom: 41px; margin-bottom: 21px;
.container-panel { .container-panel {
background: #ffffff; background: #ffffff;
border-radius: 12px; border-radius: 12px;
padding: 39px 10px 16px; padding: 20px 5px 8px;
position: relative; position: relative;
.header-panel { .header-panel {
...@@ -67,8 +68,8 @@ export default { ...@@ -67,8 +68,8 @@ export default {
top: -15px; top: -15px;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
width: 246.5px; width: 126.5px;
height: 41px; height: 26px;
} }
.service-item { .service-item {
...@@ -91,27 +92,27 @@ export default { ...@@ -91,27 +92,27 @@ export default {
.service-desc { .service-desc {
.service-title { .service-title {
font-size: 12px; font-size: 10px;
color: #5a3c36; color: #5a3c36;
} }
.service-content { .service-content {
margin-top: 3px; margin-top: 3px;
font-size: 11px; font-size: 10px;
color: #e16578; color: #e16578;
} }
} }
.service-price { .service-price {
margin-left: auto; margin-left: auto;
margin-right: 16px; margin-right: 8px;
font-size: 15px; font-size: 10px;
color: #ff5c67; color: #ff5c67;
font-weight: 700; font-weight: 700;
white-space: nowrap; white-space: nowrap;
span { span {
font-size: 12px; font-size: 10px;
} }
} }
} }
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<div class="service-time">{{ discount[item.discountType] }}</div> <div class="service-time">{{ discount[item.discountType] }}</div>
<div class="service-title"> <div class="service-title">
<div class="service-couponName">{{ item.couponName }}</div> <div class="service-couponName">{{ item.couponName }}</div>
<div class="service-amount">x{{ item.couponAmount }} {{ discount[item.discountType] }}</div> <div class="service-amount">x1 {{ discount[item.discountType] }}</div>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<div class="service-logo"></div> <div class="service-logo"></div>
<div class="service-desc"> <div class="service-desc">
<div class="service-title">{{ item.brandName }}{{ item.goodsName }}</div> <div class="service-title">{{ item.brandName }}{{ item.goodsName }}</div>
<div class="service-content">x{{ item.couponAmount }} 抵扣券</div> <div class="service-content">x1 抵扣券</div>
</div> </div>
<div class="service-price"> <div class="service-price">
{{ item.price }} {{ item.price }}
...@@ -47,7 +47,8 @@ export default { ...@@ -47,7 +47,8 @@ export default {
const serviceList = n.selectedGoodsList || [] const serviceList = n.selectedGoodsList || []
serviceList.length > 0 && serviceList.length > 0 &&
serviceList.forEach(item => { serviceList.forEach(item => {
item.price = (item.couponAnticipatedCost / 100).toFixed(2).replace(/\.[0]+$/, '') const price = item.couponAnticipatedCost || item.denomination
item.price = (price / 100).toFixed(2).replace(/\.[0]+$/, '')
}) })
this.serviceList = serviceList this.serviceList = serviceList
}, },
......
<template> <template>
<div class="wrap" v-if="serviceList.length>0"> <div class="wrap" v-if="serviceList.length > 0">
<div class="container-panel"> <div class="container-panel">
<img class="header-panel" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_8/get.png?v=1.0.2" /> <img class="header-panel" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_8/get.png?v=1.0.2" />
<div class="service-item" v-for="(item, index) in serviceList" :key="index"> <div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-time">{{ discount[item.discountType] }}</div> <div class="service-time">{{ discount[item.discountType] }}</div>
<div class="service-title"> <div class="service-title">
<div class="service-couponName">{{ item.couponName }}</div> <div class="service-couponName">{{ item.couponName }}</div>
<div class="service-amount">x{{ item.couponAmount }}</div> <div class="service-amount">x1</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -58,7 +58,7 @@ export default { ...@@ -58,7 +58,7 @@ export default {
top: -27.5px; top: -27.5px;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
width: 241px; width: 221px;
height: 50px; height: 50px;
} }
......
...@@ -40,7 +40,7 @@ export default { ...@@ -40,7 +40,7 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.wrap { .wrap {
padding: 0px 5px; padding: 0px 5px;
margin-bottom: 41px; margin-bottom: 21px;
.container-panel { .container-panel {
background: #ffffff; background: #ffffff;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<div class="service-logo"></div> <div class="service-logo"></div>
<div class="service-desc"> <div class="service-desc">
<div class="service-title">{{ item.brandName }}{{ item.goodsName }}</div> <div class="service-title">{{ item.brandName }}{{ item.goodsName }}</div>
<div class="service-content">x{{ item.couponAmount }} 抵扣券</div> <div class="service-content">x1 抵扣券</div>
</div> </div>
<div class="service-price"> <div class="service-price">
{{ item.price }} {{ item.price }}
...@@ -41,7 +41,8 @@ export default { ...@@ -41,7 +41,8 @@ export default {
const serviceList = n.selectedGoodsList || [] const serviceList = n.selectedGoodsList || []
serviceList.length > 0 && serviceList.length > 0 &&
serviceList.forEach(item => { serviceList.forEach(item => {
item.price = (item.couponAnticipatedCost / 100).toFixed(2).replace(/\.[0]+$/, '') const price = item.couponAnticipatedCost || item.denomination
item.price = (price / 100).toFixed(2).replace(/\.[0]+$/, '')
}) })
this.serviceList = serviceList this.serviceList = serviceList
}, },
...@@ -54,7 +55,7 @@ export default { ...@@ -54,7 +55,7 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.wrap { .wrap {
padding: 0px 5px; padding: 0px 5px;
margin-bottom: 41px; margin-bottom: 21px;
.container-panel { .container-panel {
background: #ffffff; background: #ffffff;
......
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
<img class="server-type" :src="require(`@/assets/coupon/equity.png`)" /> <img class="server-type" :src="require(`@/assets/coupon/equity.png`)" />
<div class="gift-content"> <div class="gift-content">
<div class="gift-item" v-for="(subItem, subIndex) in selectedEquityList" :key="subIndex"> <div class="gift-item" v-for="(subItem, subIndex) in selectedEquityList" :key="subIndex">
<p :class="['gift-coupon-name']">{{ subItem.packageName }}</p> <p :class="['gift-coupon-name']">{{ subitem.packageName }}</p>
<i class="el-icon-delete" style="color: #c6c6c6" @click="handleEquityDelete(subIndex)"></i> <i class="el-icon-delete" style="color: #c6c6c6" @click="handleEquityDelete(subIndex)"></i>
</div> </div>
</div> </div>
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<div class="gift-detail flex-wrap"> <div class="gift-detail flex-wrap">
<div class="gift-item" v-for="(item, index) in filterCouponList(scope.scope.couponList)" :key="index"> <div class="gift-item" v-for="(item, index) in filterCouponList(scope.scope.couponList)" :key="index">
<img :src="require(`@/assets/coupon/icon-${attrToIcon[item.discountType]}.png`)" /> <img :src="require(`@/assets/coupon/icon-${attrToIcon[item.discountType]}.png`)" />
<p :class="['gift-coupon-name', item.status == '3' ? ' txt-grey' : '']">{{ item.couponName }} × {{ item.couponAmount }}</p> <p :class="['gift-coupon-name', item.status == '3' ? ' txt-grey' : '']">{{ item.couponName }} × 1</p>
<p v-show="item.status == '3'" class="gift-tips">已失效</p> <p v-show="item.status == '3'" class="gift-tips">已失效</p>
</div> </div>
</div> </div>
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<div class="link-item" v-for="(item, index) in linkCode" :key="index"> <div class="link-item" v-for="(item, index) in linkCode" :key="index">
<div class="link-item-l"> <div class="link-item-l">
<div class="link-title">{{ item.title }}</div> <div class="link-title">{{ item.title }}</div>
<div class="link-save"><el-button :size="size" type="primary" @click="downloadIamge">保存图片</el-button></div> <div class="link-save"><el-button :size="size" type="primary" @click="downloadIamge(linkInfo[item.name])">保存图片</el-button></div>
</div> </div>
<div class="link-item-r"><el-image :src="linkInfo[item.name]" alt=""></el-image></div> <div class="link-item-r"><el-image :src="linkInfo[item.name]" alt=""></el-image></div>
</div> </div>
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<div class="link-address-box" v-for="(item, index) in linkValue" :key="index"> <div class="link-address-box" v-for="(item, index) in linkValue" :key="index">
<div class="link-address-title">{{ item.title }}</div> <div class="link-address-title">{{ item.title }}</div>
<div class="link-address">{{ linkInfo[item.name] }}</div> <div class="link-address">{{ linkInfo[item.name] }}</div>
<div class="link-clone"><el-button :size="size" type="primary" @click="cloneText(item, url)">复制链接</el-button></div> <div class="link-clone"><el-button :size="size" type="primary" @click="cloneText(linkInfo[item.name])">复制链接</el-button></div>
</div> </div>
</div> </div>
<div class="qrcode-body" v-else> <div class="qrcode-body" v-else>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!