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.'
const dropdownList = params => {
params.method = `scrm.api.shopmall.tencentcloudmedia.dropdown.list`
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -22,7 +22,7 @@ const dropdownList = params => {
const tencentcloudmediaDelete = params => {
params.method = `scrm.api.shopmall.tencentcloudmedia.delete`
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -42,7 +42,7 @@ const tencentcloudmediaUpdate = params => {
const tencentcloudmediaDetail = params => {
params.method = `scrm.api.shopmall.tencentcloudmedia.detail`
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -62,7 +62,7 @@ const tencentcloudmediaPage = params => {
const getActivityDetailApi = params => {
params.method = `${defaultPath}detail`
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -73,7 +73,7 @@ const getActivityDetailApi = params => {
const toggleStatus = params => {
params.method = `${defaultPath}toggle.status`
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -83,7 +83,7 @@ const toggleStatus = params => {
const deleteApi = params => {
params.method = `${defaultPath}delete`
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -93,7 +93,7 @@ const deleteApi = params => {
const pageAllApi = params => {
params.method = `scrm.api.shopmall.all.bulge.activity.page`
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -102,7 +102,7 @@ const pageAllApi = params => {
const pageApi = params => {
params.method = `scrm.api.shopmall.bulge.activity.page`
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -111,7 +111,7 @@ const pageApi = params => {
const updateApi = params => {
params.method = `${defaultPath}bulge.add.or.update`
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -120,7 +120,7 @@ const updateApi = params => {
const getShared = params => {
params.method = `scrm.api.shopmall.bulge.activity.get.shared`
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -130,7 +130,7 @@ const getShared = params => {
const activityPage = params => {
params.method = `scrm.api.shopmall.history.activity.page`
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......
......@@ -22,7 +22,7 @@ const pictureUpload = params => {
const getMerchantStaff = params => {
params.method = 'scrm.api.shopmall.crowd.funding.staff.get'
return http({
url: '/rop-scrm-shopmall/router',
url: '/http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -82,7 +82,7 @@ const getCrowdfundingOrderConfig = (params = {}) => {
params.method = 'scrm.api.shopmall.crowd.funding.order.config'
params.requestType = 1 //0:门店;1:运营版
return http({
url: '/rop-scrm-shopmall/router',
url: '/http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......
......@@ -66,7 +66,7 @@ const equityMerchant = params => {
const packageAdd = params => {
params.method = 'scrm.api.shopmall.activity.coupon.package.add.or.update'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -76,7 +76,7 @@ const packageAdd = params => {
const packageList = params => {
params.method = 'scrm.api.shopmall.activity.coupon.package.list'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -86,7 +86,7 @@ const packageList = params => {
const packageDetail = params => {
params.method = 'scrm.api.shopmall.activity.coupon.package.detail'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -96,7 +96,7 @@ const packageDetail = params => {
const packageDefault = params => {
params.method = 'scrm.api.shopmall.activity.coupon.package.default'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-29 16:16:03
* @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
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -108,7 +108,7 @@ const EntWechatQrCode = params => {
const activityDetail = params => {
params.method = 'scrm.api.shopmall.activity.detail'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -134,7 +134,15 @@ const registerSso = params => {
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 {
viewData,
getChatGPTList,
......@@ -144,6 +152,7 @@ export default {
getRobotList,
findMerchantStaffList,
createSuperMarketing,
updateApi,
activityDetail,
findActivityInfo,
registerSso,
......
......@@ -3,7 +3,7 @@ const defaultPath = 'scrm.api.shopmall.'
const getListApi = params => {
params.method = `${defaultPath}order.page`
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -12,7 +12,7 @@ const getListApi = params => {
const getCountApi = params => {
params.method = `${defaultPath}order.count`
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -21,7 +21,7 @@ const getCountApi = params => {
const getOrderDetailApi = params => {
params.method = `${defaultPath}order.detail`
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -30,7 +30,7 @@ const getOrderDetailApi = params => {
const orderExportApi = params => {
params.method = `${defaultPath}order.export`
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -40,7 +40,7 @@ const orderExportApi = params => {
const writeOffApi = params => {
params.method = `${defaultPath}order.verfication`
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
......@@ -51,7 +51,7 @@ const writeOffApi = params => {
const crowdFundWriteOffApi = params => {
params.method = 'scrm.api.shopmall.crowd.funding.order.verfication'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
......@@ -62,7 +62,7 @@ const crowdFundWriteOffApi = params => {
const crowdFundRefundApi = params => {
params.method = 'scrm.api.shopmall.crowd.funding.order.refund'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
......@@ -73,7 +73,7 @@ const crowdFundRefundApi = params => {
const addDeliveryApi = params => {
params.method = `${defaultPath}order.addDelivery`
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
......@@ -84,7 +84,7 @@ const addDeliveryApi = params => {
const examineDetailApi = params => {
params.method = `${defaultPath}orderRefund.detail`
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -94,7 +94,7 @@ const examineDetailApi = params => {
const examineAllowApi = params => {
params.method = `${defaultPath}orderRefund.allow`
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
......@@ -105,7 +105,7 @@ const examineAllowApi = params => {
const confirmReceiptGoodsApi = params => {
params.method = `${defaultPath}order.refund.confirmReceiptGoods`
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
......@@ -116,7 +116,7 @@ const confirmReceiptGoodsApi = params => {
const checkMerchartApi = params => {
params.method = 'scrm.api.shopmall.import.merchant.check'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -126,7 +126,7 @@ const checkMerchartApi = params => {
const orderAppointer = params => {
params.method = 'scrm.api.shopmall.order.appointer.update'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -136,7 +136,7 @@ const orderAppointer = params => {
const orderDetail = params => {
params.method = 'scrm.api.shopmall.order.detail'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -146,7 +146,7 @@ const orderDetail = params => {
const orderPage = params => {
params.method = 'scrm.api.shopmall.order.page'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -156,7 +156,7 @@ const orderPage = params => {
const goldRefund = params => {
params.method = 'scrm.api.shopmall.expanded.gold.refund'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -165,7 +165,7 @@ const goldRefund = params => {
const orderUpdate = params => {
params.method = 'scrm.api.shopmall.order.type.update'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -174,7 +174,7 @@ const orderUpdate = params => {
const orderExport = params => {
params.method = 'scrm.api.shopmall.order.export'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......
......@@ -4,7 +4,7 @@ const defaultPath = 'scrm.api.shopmall.activity.'
const getActivityPageApi = params => {
params.method = `${defaultPath}page`
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -14,7 +14,7 @@ const getActivityPageApi = params => {
const getCrowdfundListApi = params => {
params.method = 'scrm.api.shopmall.all.crowdfunding.activity.page'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -24,7 +24,7 @@ const getCrowdfundListApi = params => {
const exportCrowdfundApi = params => {
params.method = 'scrm.api.shopmall.all.crowdfunding.activity.export'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -34,7 +34,7 @@ const exportCrowdfundApi = params => {
const getBrowseListApi = params => {
params.method = 'scrm.api.shopmall.customer.browse.records'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -44,7 +44,7 @@ const getBrowseListApi = params => {
const getVisitorListApi = params => {
params.method = 'scrm.api.shopmall.customer.visitor.records'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -54,7 +54,7 @@ const getVisitorListApi = params => {
const getSharedListApi = params => {
params.method = 'scrm.api.shopmall.customer.shared.records'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -64,7 +64,7 @@ const getSharedListApi = params => {
const getPurposeListApi = params => {
params.method = 'scrm.api.shopmall.gh.customer.purpose.page'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -73,7 +73,7 @@ const getPurposeListApi = params => {
const updateFollow = params => {
params.method = 'scrm.api.shopmall.gh.customer.record.update.follow.up.flag'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -89,7 +89,7 @@ const exportBrowseApi = (params, TYPE = 1) => {
3: 'scrm.api.shopmall.customer.shared.records.export'
}[TYPE]
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -99,7 +99,7 @@ const exportBrowseApi = (params, TYPE = 1) => {
const addOrUpdateActivityApi = params => {
params.method = `${defaultPath}add.or.update`
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
......@@ -110,7 +110,7 @@ const addOrUpdateActivityApi = params => {
const getActivityDetailApi = params => {
params.method = `${defaultPath}detail`
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -120,7 +120,7 @@ const getActivityDetailApi = params => {
const toggleStatusApi = params => {
params.method = `${defaultPath}toggle.status`
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
......@@ -131,7 +131,7 @@ const toggleStatusApi = params => {
const deleteActivityApi = params => {
params.method = `${defaultPath}delete`
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
......@@ -142,7 +142,7 @@ const deleteActivityApi = params => {
const topActivityApi = params => {
params.method = `${defaultPath}top`
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
......@@ -153,7 +153,7 @@ const topActivityApi = params => {
const getSharedApi = params => {
params.method = `${defaultPath}get.shared`
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -163,7 +163,7 @@ const getSharedApi = params => {
const getCrowdSharedApi = params => {
params.method = 'scrm.api.shopmall.crowdfunding.activity.get.shared'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -173,7 +173,7 @@ const getCrowdSharedApi = params => {
const getLiveListApi = params => {
params.method = 'scrm.api.shopmall.livebroadcast.dropdown.list'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -193,7 +193,7 @@ const getPayMerchatListApi = params => {
const getPayListApi = params => {
params.method = 'scrm.api.shopmall.activity.payment.account.list'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -203,7 +203,7 @@ const getPayListApi = params => {
const getRankListApi = params => {
params.method = 'scrm.api.shopmall.activity.ranking.page'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -213,7 +213,7 @@ const getRankListApi = params => {
const exportRankListApi = params => {
params.method = 'scrm.api.shopmall.activity.ranking.export'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -223,7 +223,7 @@ const exportRankListApi = params => {
const getDataBoardApi = params => {
params.method = 'scrm.api.shopmall.activity.statdata'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -233,7 +233,7 @@ const getDataBoardApi = params => {
const getDailyOrderQuantityStatistics = params => {
params.method = 'scrm.api.shopmall.activity.daily.order.quantity'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -243,7 +243,7 @@ const getDailyOrderQuantityStatistics = params => {
const exportDailyOrderQuantityStatistics = params => {
params.method = 'scrm.api.shopmall.activity.daily.order.quantity.export'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -253,7 +253,7 @@ const exportDailyOrderQuantityStatistics = params => {
const liveroomDetailexport = params => {
params.method = 'scrm.api.shopmall.activity.liveroom.detailexport'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -262,7 +262,7 @@ const liveroomDetailexport = params => {
const purposeExport = params => {
params.method = 'scrm.api.shopmall.gh.customer.purpose.page.export'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -273,7 +273,7 @@ const purposeExport = params => {
const liveroomDetailpage = params => {
params.method = 'scrm.api.shopmall.activity.liveroom.detailpage'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -283,7 +283,7 @@ const liveroomDetailpage = params => {
const liveroomOverview = params => {
params.method = 'scrm.api.shopmall.activity.liveroom.overview'
return http({
url: 'rop-scrm-shopmall/router',
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
method: 'POST',
data: params,
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 {
},
{
label: '剩余库存',
prop: 'residueAmount'
prop: 'residueAmount',
formatter: cellValue => {
return '无限制'
}
}
]
},
......
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-05-16 17:13:33
* @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
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -49,6 +49,11 @@ export default {
},
// 设置活动信息
SET_ACTIVITY_INFO(state, data) {
if (data.activityBigImg) {
data.codeId = null
}
data.backgroundImage = data.activityBigImg
data.merchantAddress = data.activityAddressDetailName
state.activityInfo = Object.assign({}, data)
},
SET_KET_WORDs(state, data) {
......
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-11-23 11:06:49
* @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
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*
......@@ -48,6 +48,13 @@ export function downloadUrl(url) {
link.click()
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()) {
let startTime = new Date(time1) //开始时间
let endTime = new Date(time2) //结束时间
......
......@@ -116,7 +116,7 @@
<div class="gift-content">
<div class="gift-item" v-for="(subItem, subIndex) in selectedEquityList" :key="subIndex">
<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>
</div>
</div>
......
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-29 15:18:24
* @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
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -12,7 +12,7 @@
{{ item.title }}:
<span>{{ viewDataDetail[item.name] }}</span>
</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>
</template>
......@@ -54,7 +54,7 @@ export default {
<style lang="scss" scoped>
.import-base {
height: 48px;
background: #e4e3ff;
background: #d5f5e3;
border-radius: 4px;
display: flex;
align-items: center;
......@@ -65,11 +65,13 @@ export default {
.import-item {
margin-right: 80px;
span {
color: #5850ff;
color: #333333ff;
}
}
.import-btn {
margin-left: auto;
color: #685bff;
cursor: pointer;
}
}
</style>
<template>
<div class="activity-container">
<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>
<div class="acitity-content">
......@@ -214,6 +216,7 @@ export default {
display: flex;
height: auto;
position: relative;
margin-bottom: 16px;
.show-case-btn {
cursor: pointer;
position: absolute;
......@@ -222,22 +225,24 @@ export default {
right: 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 {
display: inline-block;
cursor: pointer;
line-height: 40px;
height: 40px;
border-radius: 4px 4px 0px 0px;
border: 1px solid #e5e5e5;
margin-right: 1px;
padding: 0 32px;
box-sizing: border-box;
background: #f8f8f8;
}
.active {
color: #5850ff;
background: #ffffff;
border-bottom: 1px solid #fff;
color: #685bff;
background: rgba(104, 91, 255, 0.15);
font-weight: 600;
}
}
......
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-29 21:24:27
* @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
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -37,6 +37,7 @@
<script>
import selectInsure from './SelectInsure.vue'
import getUploadImgColor from '@/utils/color'
import { mapState, mapActions } from 'vuex'
export default {
components: {
......@@ -189,7 +190,7 @@ export default {
marketingSubtitle: [{ required: true, message: '请输入营销副标题', trigger: 'input' }],
activityTime: [{ required: true, message: '请选择活动时间', trigger: 'input' }],
backgroundImage: [{ required: true, message: '请选择主题背景图', trigger: 'change' }],
detailImage: [{ required: true, message: '请选择内容图', trigger: 'change' }],
detailImage: [{ required: false, message: '请选择内容图', trigger: 'change' }],
activityPrice: [{ required: true, message: '请输入活动参与价格/元:', trigger: 'input' }],
goodsStock: [{ required: true, message: '请输入库存', trigger: 'input' }],
merchantname: [{ required: true, message: '请输入门店名称', trigger: 'input' }],
......@@ -208,10 +209,8 @@ export default {
},
subscribe(val) {
if (val == 5) {
this.editRule.detailImage[0].required = false
this.editFormData[0].isHide = false
} else {
this.editRule.detailImage[0].required = true
this.editFormData[0].isHide = true
}
},
......@@ -227,6 +226,11 @@ export default {
deep: true
},
'editForm.backgroundImage'(val) {
getUploadImgColor(val, color => {
this.editForm.mainColor = color
})
},
activityInfo: {
handler(info) {
if (Object.keys(info).length == 0) {
......@@ -241,10 +245,16 @@ export default {
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) {
this.setDetail(info)
return
}
this.editForm = Object.assign({ merchantLog: '' }, this.$common.utils.deepClone(info))
if (info.activityName) {
this.$set(this.editForm, 'marketingTitle', info.activityName)
......@@ -262,9 +272,6 @@ export default {
if (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
}
......@@ -297,6 +304,7 @@ export default {
param.endtime = d[1]
}
delete param.createdTime
delete param.activityPrice
return param
},
handleSave() {
......
......@@ -15,7 +15,7 @@
<div v-show="currentIndex == 1" class="car-table">
<GLTable :hasPage="false" v-loading="loading" ref="carRef" :tableData="carList" :tableParams="carTableParams" @refreshTable="getCarList" @select="handleSelectionCarTable">
<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>
</GLTable>
<div class="car-gift flex-space-between">
......@@ -85,6 +85,7 @@
<script>
// import addGift from './AddGift'
import gift from '@/mixins/gift'
import { openTab } from '@/utils/index'
import { mapActions, mapState } from 'vuex'
export default {
mixins: [gift],
......@@ -97,7 +98,8 @@ export default {
isInit: true,
giftValue: '',
editForm: {
giftList: 1
giftList: 1,
activityPrice: ''
},
totalPrice: 0,
giftName: '',
......@@ -150,7 +152,7 @@ export default {
this.selectedCarList = info.serviceMerchantPackageConfigDTOS.map(item => {
return {
packageCode: item.packageCode,
packageAmount: item.packageAmount
packageAmount: item.packageName
}
})
}
......@@ -165,7 +167,10 @@ export default {
this.selectedGoodsList = 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()
})
},
......@@ -188,6 +193,8 @@ export default {
this.goodsList = []
this.selectedGoodsList = []
this.isInit = true
this.totalPrice = 0
this.editForm.activityPrice = ''
this.$refs['carRef'].$refs['listMutiTable'].clearSelection()
this.$refs['goodsRef' + this.goodsIndex][0].$refs['listMutiTable'].clearSelection()
this.$refs['serviceRef' + this.serviceIndex][0].$refs['listMutiTable'].clearSelection()
......@@ -202,6 +209,16 @@ export default {
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() {
if (!this.editForm.activityPrice) {
this.$message.error('输入活动价格')
......@@ -218,7 +235,7 @@ export default {
}
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 => {
console.log(item)
return {
......@@ -233,6 +250,7 @@ export default {
packageAmount: i.packageAmount
}
})
const params = {}
params.serviceMerchantPackageConfigDTOS = serviceMerchantPackageConfigDTOS
const equityServices = this.selectedCarList.map(i => i.packageCode)
params.equityServices = equityServices.join(',')
......@@ -298,9 +316,10 @@ export default {
return
}
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) {
......@@ -308,33 +327,31 @@ export default {
if (selection && selection.find(item => item && item.id == row.id)) {
this.addRows(this.selectedServiceList, [row], 'id')
} else {
this.deleteRows(this.selectedServiceList, [row], 'id')
this.selectedServiceList = this.deleteRows(this.selectedServiceList, [row], 'id')
}
console.log(this.selectedServiceList)
// this.selectedServiceList = val
this.setPackage(Object.assign(this.packageList, { selectedServiceList: this.selectedServiceList }))
},
// 选择/取消 生活权益
handleSelectionGoodsTable(selection, row) {
if (selection && selection.find(item => item && item.id == row.id)) {
this.addRows(this.selectedGoodsList, [row], 'id')
} else {
this.deleteRows(this.selectedGoodsList, [row], 'id')
this.selectedGoodsList = this.deleteRows(this.selectedGoodsList, [row], 'id')
}
console.log(this.selectedGoodsList)
this.setPackage(Object.assign(this.packageList, { selectedGoodsList: this.selectedGoodsList }))
},
// 选择/取消 用车权益
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')
} 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() {
this.$history.push('/marketing/couponManage/index')
openTab('/marketing/couponManage/index')
},
getList() {
switch (+this.currentIndex) {
......@@ -373,12 +390,12 @@ export default {
},
//用车权益
async getCarList() {
console.log(this.selectedCarList)
let equities = {}
if (this.isInit) {
let res = await this.$apis.giftBag.packageDefault({ merchantId: this.merchantId, activitySubscribe: this.subscribe })
equities = JSON.parse(res.equities)
}
this.isInit = false
var params = {
...this.searchForm,
merchantId: this.merchantId
......@@ -389,19 +406,32 @@ export default {
.then(res => {
this.loading = false
const packageConfigs = res.packageConfigs || []
if (this.isInit) {
this.selectedCarList = []
}
packageConfigs.forEach(p => {
// for (let k in equities) {
// if (k == p.packageCode) {
// p.packageAmount = equities[k]
// }
// }
for (let k in equities) {
if (k == p.packageCode) {
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 => {
if (p.packageCode == s.packageCode) {
p.packageAmount = s.packageAmount
}
})
this.calcCarValue()
})
console.log(this.selectedCarList)
this.carList = packageConfigs
this.selectedPreExisting(this.selectedCarList, this.carList, 'packageCode', this.$refs['carRef'])
})
......@@ -444,7 +474,6 @@ export default {
//判断row是存在当前tableData
list.forEach(i => {
if (i[val] == row[val]) {
console.log(i)
refTabel.$refs['listMutiTable'].toggleRowSelection(i, true)
}
})
......@@ -485,13 +514,12 @@ export default {
return
}
this.$apis.giftBag.packageDetail({ id: this.giftValue }).then(res => {
this.init()
this.$nextTick(() => {
if (res.serviceMerchantPackageConfigDTOS && res.serviceMerchantPackageConfigDTOS.length) {
this.selectedCarList = res.serviceMerchantPackageConfigDTOS.map(item => {
return {
packageCode: item.packageCode,
packageAmount: item.packageAmount
packageAmount: item.packageName
}
})
}
......
......@@ -13,7 +13,7 @@
<i class="el-icon-arrow-down"></i>
</div>
</div>
<div class="task-box" :style="{ height: item.expand ? 'auto' : '0px' }">
<div class="task-box">
<template v-if="item.isFinish">
<div class="task-box-form">
<label>导入文档:</label>
......@@ -52,7 +52,7 @@
<label>导入文档:</label>
<span>成功导入客户数</span>
</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-num-item flex-column-center">
<label>分配方式:</label>
......@@ -70,7 +70,7 @@
</el-table-column>
<el-table-column label="操作" width="260">
<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>
</el-table-column>
......@@ -89,7 +89,7 @@
<el-button @click="handleCancel" size="medium">跳过营销任务</el-button>
<el-button type="primary" @click="handleConfirm" size="medium">保存营销任务</el-button>
</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-link">邀请跟进人注册链接</div>
<div class="img" v-loading="imgLoading">
......@@ -299,64 +299,58 @@ export default {
this.setProcess({ 0: true })
},
handleConfirm() {
const customerRequestList = this.$common.utils.deepClone(this.taskList).map(item => {
return {
batchNo: item.batchNo,
excelUrl: item.excelUrl,
staffList: item.staffList,
assignType: item.assignType,
key: item.key
}
})
customerRequestList.forEach(item => {
item.staffList = item.staffList.map(item => {
if (this.vaildTask()) {
const customerRequestList = this.$common.utils.deepClone(this.taskList).map(item => {
return {
lastStaffFlag: item.lastCustomerNum ? 1 : 0,
lastCustomerNum: item.lastCustomerNum,
merchantId: item.merchantNo,
staffPhone: item.staffPhone,
staffName: item.staffName,
staffUuid: item.uuid,
id: item.id,
messageContent: item.messageContent,
registerStatus: item.registerStatus,
talkId: item.talkId,
createdBy: item.createdBy
batchNo: item.batchNo,
excelUrl: item.excelUrl,
staffList: item.staffList,
assignType: item.assignType,
key: item.key
}
})
})
console.log(customerRequestList)
if (this.vaildTask())
customerRequestList.forEach(item => {
item.staffList = item.staffList.reduce((result, i) => {
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({
0: {
customerRequestList
}
})
}
},
//验证配置任务,及分配人员
vaildTask() {
let len = this.taskList.length
const task = this.taskList[len - 1]
const task = this.taskList[this.taskList.length - 1]
const staffListLength = task.staffList.length
//获取上次跟进人总数
console.log(task.staffList)
let lastCustomerNum = task.staffList.reduce((prev, cur) => {
return prev + cur.lastCustomerNum || 0
}, 0)
console.log(lastCustomerNum, 'lastCustomerNum')
if (task.assignType == 0) lastCustomerNum = 0
if (task.excelUrl && task.staffList.length) {
const lastCustomerNum = task.assignType == 0 ? 0 : task.staffList.reduce((total, { lastCustomerNum }) => total + (lastCustomerNum || 0), 0)
if (task.excelUrl && staffListLength) {
task.isFinish = true
const customerNumTotal = task.customerNumTotal - lastCustomerNum || 0 // 去除上次跟进人总数
console.log(customerNumTotal, 'customerNumTotal')
const length = task.staffList.length
let avag = Math.ceil(customerNumTotal / length)
let residue = customerNumTotal
let residue = task.customerNumTotal - lastCustomerNum || 0
let avag = Math.ceil(residue / staffListLength)
task.staffList.forEach((item, i) => {
const lastNum = task.assignType == 0 ? 0 : item.lastCustomerNum
console.log(lastNum, 'lastNum')
this.$set(item, 'customerNum', residue > avag ? (lastNum || 0) + avag : (lastNum || 0) + residue)
residue = residue - avag
avag = Math.ceil(residue / (length - i - 1))
const lastNum = task.assignType == 0 ? 0 : item.lastCustomerNum || 0
this.$set(item, 'customerNum', residue > avag ? lastNum + avag : lastNum + residue)
residue -= avag
avag = Math.ceil(residue / (staffListLength - i - 1))
})
return true
} else {
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-15 15:08:32
* @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
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -46,38 +46,38 @@
<img :src="detail.activityBigImg" v-if="detail.activityBigImg" />
</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)">
<!-- 权益服务 -->
<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 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 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 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>
</div>
<div class="review-address" v-if="detail.merchantname">
......@@ -137,7 +137,7 @@
<div class="goods-item" v-for="(item, index) in detail.selectedGoodsList" :key="index">
<div class="service-desc">
<div class="title">{{ item.brandName }}{{ item.goodsName }}</div>
<div class="content">x{{ item.couponAmount }} 抵扣券</div>
<div class="content">x1 抵扣券</div>
</div>
<div class="service-price">
{{ item.couponAnticipatedCost || item.denomination }}
......@@ -150,7 +150,7 @@
<div class="service-time">{{ discount[item.discountType] }}</div>
<div class="service-title">
<span>{{ item.couponName }}</span>
<span>x{{ item.couponAmount }}</span>
<span>x1</span>
</div>
</div>
</div>
......@@ -308,38 +308,41 @@ export default {
}
},
watch: {
packageList: {
handler(val) {
console.log(val, 8888)
this.detail = { ...this.detail, ...val }
},
deep: true,
immediate: true
},
// packageList: {
// handler(val) {
// console.log(val, 8888)
// this.detail = { ...this.detail, ...val }
// },
// deep: true,
// immediate: true
// },
process: {
async handler(val) {
handler(val) {
this.detail = { ...this.detail, ...val[2] }
this.isFestival = false
this.isRenewal = false
if (!this.detail) return
if (RENEWAL.includes(this.detail.codeId)) {
this.modelNum = this.detail.codeId
this.isRenewal = true
this.backgroundHeight = await this.getImgH(this.detail.backgroundImage)
try {
const style1 = JSON.parse(this.detail.titleStyle)
const style2 = JSON.parse(this.detail.subTitleStyle)
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)
this.detailCoupon = this.$common.utils.deepClone(this.packageList)
console.log(this.detailCoupon)
this.$nextTick(async () => {
this.isFestival = false
this.isRenewal = false
if (!this.detail) return
if (RENEWAL.includes(this.detail.codeId)) {
this.modelNum = this.detail.codeId
this.isRenewal = true
this.backgroundHeight = await this.getImgH(this.detail.backgroundImage)
try {
const style1 = JSON.parse(this.detail.titleStyle)
const style2 = JSON.parse(this.detail.subTitleStyle)
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)) {
this.isFestival = true
this.logoInfo = await this.getImgWH(this.detail.merchantLog)
}
console.log(this.detail, this.isRenewal)
if (FESTIVAL.includes(this.detail.codeId)) {
this.isFestival = true
this.logoInfo = await this.getImgWH(this.detail.merchantLog)
}
})
},
deep: true,
immediate: true
......
......@@ -16,6 +16,8 @@
</template>
<script>
const RENEWAL = [1, 2, 3, 4, 5, 6, 7, 8]
const FESTIVAL = [9, 10]
import { mapState, mapMutations } from 'vuex'
import phoneView from './PhoneView'
import draw from '@/mixins/draw'
......@@ -70,28 +72,45 @@ export default {
detail: { backgroundImage },
draggableList
} = this.$refs.viewForm
let url
if (params.codeId) {
let url = backgroundImage
if (RENEWAL.includes(params.codeId)) {
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)
}
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.bigImage = url
params.source = 1
this.$apis.marketing
.createSuperMarketing(params)
this.$apis.marketing[origin](params)
.then(res => {
if (res) {
this.loading = false
this.init()
this.$message.success('操作成功')
if (params.id) this.$router.push('/activityLink/index')
}
})
.finally(() => {
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: {
......
<template>
<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="choseItem" :class="{ active: currentIndex == item.type }" v-for="(item, index) in tabList" :key="index" @click="tabClick(item.type)">{{ item.label }}</div>
</div>
......@@ -20,9 +20,11 @@
请扫码添加小管家,并组群获得支持
</div>
</div>
<div class="scene-item-box" slot="reference">
<div class="scene-item-title">
<div class="scene-item_box" slot="reference">
<div class="scene-item-icon">
<img :src="require(`@/assets/marketing/s${index + 1}.png`)" alt="" />
</div>
<div class="scene-item-title">
{{ item.title }}
</div>
<div class="scene-item-content">{{ item.content }}</div>
......@@ -30,8 +32,10 @@
</el-popover>
</div>
<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="" />
</div>
<div class="scene-item-title">
{{ item.title }}
</div>
<div class="scene-item-content">{{ item.content }}</div>
......@@ -178,34 +182,46 @@ export default {
width: 16.7%;
display: flex;
align-items: center;
position: relative;
z-index: 1;
&-box {
z-index: 1;
cursor: pointer;
width: calc(100% - 30px);
height: 0;
padding-bottom: 50%;
padding-bottom: 50%;
background-image: url('../../../assets/marketing/scence-bg.png');
background-size: 100% 100%;
padding-left: 8%;
padding-right: 8%;
.scene-item-icon {
text-align: center;
margin-top: 0.5vw;
img {
width: 1.7vw;
vertical-align: middle;
}
}
.scene-item-title {
text-align: center;
color: #333333;
margin-top: 8%;
margin-top: 1%;
font-size: 1.1vw;
font-weight: 700;
transform: scale(0.6);
-webkit-transform-origin-x: 0;
width: 165%;
img {
width: 1.7vw;
vertical-align: middle;
}
}
.scene-item-content {
font-size: 1vw;
line-height: 1.2vw;
transform: scale(0.6);
color: #999999;
color: #6c6c6c;
-webkit-transform-origin-x: 0;
display: inline-block;
width: 165%;
margin-top: -5px;
}
}
&-next {
......@@ -251,17 +267,14 @@ export default {
cursor: pointer;
line-height: 40px;
height: 40px;
border-radius: 4px 4px 0px 0px;
border: 1px solid #e5e5e5;
margin-right: 1px;
padding: 0 32px;
box-sizing: border-box;
background: #f8f8f8;
background: #e8effa;
}
.active {
color: #5850ff;
background: #ffffff;
border-bottom: 1px solid #fff;
color: #fff;
background: #5092ff;
font-weight: 600;
}
}
......
......@@ -13,7 +13,7 @@
<div class="service-time">{{ discount[item.discountType] }}</div>
<div class="service-title">
<span>{{ item.couponName }}</span>
<span>x{{ item.couponAmount }}</span>
<span>x1</span>
</div>
</div>
</div>
......
<template>
<div class="wrap" v-if="serviceList.length>0">
<div class="wrap" v-if="serviceList.length > 0">
<div class="container-panel">
<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="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-title">{{ item.packageName }}</div>
<div class="service-time">
{{ item.price }}
{{ item.packageAmount }}
<span>元</span>
</div>
</div>
......@@ -17,20 +17,21 @@
export default {
data() {
return {
serviceList:[]
serviceList: []
}
},
props: {
detail: {
type: Object,
default:()=> {}
default: () => {}
}
},
watch: {
detail: {
handler(n) {
const serviceList = n.selectedCarList
this.serviceList =serviceList
console.log(serviceList)
this.serviceList = serviceList
},
deep: true,
immediate: true
......
......@@ -10,7 +10,7 @@
<div class="service-logo"></div>
<div class="service-desc">
<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 class="service-price">
{{ item.price }}
......@@ -45,7 +45,8 @@ export default {
const serviceList = n.selectedGoodsList || []
serviceList.length > 0 &&
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
},
......@@ -79,7 +80,7 @@ export default {
font-size: 16px;
color: #ffffff;
text-shadow: 0 2px 3px #d89410;
padding-left: 41px;
padding-left: 21px;
padding-top: 5px;
position: relative;
display: inline-block;
......
<template>
<div class="wrap" v-if="serviceList.length>0">
<div class="wrap" v-if="serviceList.length > 0">
<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" />
<div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-time">{{ discount[item.discountType] }}</div>
<div class="service-title">
<div class="service-couponName">{{ item.couponName }}</div>
<div class="service-amount">x{{ item.couponAmount }}</div>
<div class="service-amount">x1</div>
</div>
</div>
</div>
......@@ -49,8 +49,8 @@ export default {
.container-panel {
background: #ffffff;
border-radius: 12px;
padding: 39px 10px 16px;
border-radius: 6px;
padding: 10px 5px 8px;
position: relative;
.header-panel {
......@@ -58,17 +58,17 @@ export default {
top: -15px;
left: 50%;
transform: translateX(-50%);
width: 246.5px;
height: 41px;
width: 146.5px;
height: 26px;
}
.service-item {
margin-top: 10px;
display: flex;
height: 67px;
height: 33px;
background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_4/get_b.png');
background-size: 100% 100%;
border-radius: 8px;
border-radius: 4px;
align-items: center;
&:first-child {
......@@ -78,30 +78,30 @@ export default {
.service-title {
flex: 1;
display: flex;
border-radius: 0px 8px 8px 0px;
border-radius: 0px 4px 8px 0px;
.service-couponName {
font-size: 14px;
font-size: 10px;
color: #5a3c36;
margin-left: 50px;
margin-left: 25px;
}
.service-amount {
font-size: 14px;
font-size: 10px;
color: #5a3c36;
margin-left: auto;
margin-right: 20px;
margin-right: 10px;
}
}
.service-time {
box-sizing: border-box;
font-size: 15px;
font-size: 10px;
color: #763510;
line-height: 11px;
position: relative;
border-radius: 50%;
margin-left: 15px;
margin-left: 8px;
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>
<div class="wrap" v-if="serviceList.length>0">
<div class="wrap" v-if="serviceList.length > 0">
<div class="container-panel">
<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-title">{{ item.packageName }}</div>
<div class="service-time">
1
<text>元</text>
{{ item.packageAmount }}
<span>元</span>
</div>
</div>
</div>
......@@ -16,20 +24,20 @@
export default {
data() {
return {
serviceList:[]
serviceList: []
}
},
props: {
detail: {
type: Object,
default:()=> {}
default: () => {}
}
},
watch: {
detail: {
handler(n) {
const serviceList = n.selectedCarList
this.serviceList =serviceList
this.serviceList = serviceList
},
deep: true,
immediate: true
......@@ -40,12 +48,12 @@ export default {
<style scoped lang="scss">
.wrap {
padding: 0px 8px;
margin-bottom: 41px;
margin-bottom: 21px;
.container-panel {
background: #ffffff;
border-radius: 12px;
padding: 39px 10px 16px;
border-radius: 4px;
padding: 20px 5px 8px;
position: relative;
.header-panel {
......@@ -53,19 +61,19 @@ export default {
top: -15px;
left: 50%;
transform: translateX(-50%);
width: 246.5px;
height: 41px;
width: 146.5px;
height: 26px;
}
.service-item {
height: 49px;
height: 30px;
background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_4/rob_b.png');
background-size: 100% 100%;
border-radius: 4px;
margin-bottom: 8px;
display: flex;
align-items: center;
padding: 0px 28.5px 0px 16px;
padding: 0px 18.5px 0px 8px;
&:first-child {
margin-top: 0px;
......@@ -73,17 +81,17 @@ export default {
.service-title {
flex: 1;
font-size: 14px;
font-size: 10px;
color: #5a3c36;
}
.service-time {
text-align: center;
font-size: 26px;
font-size: 13px;
color: #fe455d;
span {
font-size: 12px;
font-size: 10px;
color: #fe455d;
}
}
......
......@@ -6,7 +6,7 @@
<div class="service-logo"></div>
<div class="service-desc">
<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 class="service-price">
{{ item.price }}
......@@ -41,7 +41,8 @@ export default {
const serviceList = n.selectedGoodsList || []
serviceList.length > 0 &&
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
},
......@@ -54,12 +55,12 @@ export default {
<style scoped lang="scss">
.wrap {
padding: 0px 10px;
margin-bottom: 41px;
margin-bottom: 21px;
.container-panel {
background: #ffffff;
border-radius: 12px;
padding: 39px 10px 16px;
padding: 20px 5px 8px;
position: relative;
.header-panel {
......@@ -67,8 +68,8 @@ export default {
top: -15px;
left: 50%;
transform: translateX(-50%);
width: 246.5px;
height: 41px;
width: 126.5px;
height: 26px;
}
.service-item {
......@@ -91,27 +92,27 @@ export default {
.service-desc {
.service-title {
font-size: 12px;
font-size: 10px;
color: #5a3c36;
}
.service-content {
margin-top: 3px;
font-size: 11px;
font-size: 10px;
color: #e16578;
}
}
.service-price {
margin-left: auto;
margin-right: 16px;
font-size: 15px;
margin-right: 8px;
font-size: 10px;
color: #ff5c67;
font-weight: 700;
white-space: nowrap;
span {
font-size: 12px;
font-size: 10px;
}
}
}
......
......@@ -10,7 +10,7 @@
<div class="service-time">{{ discount[item.discountType] }}</div>
<div class="service-title">
<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>
......
......@@ -10,7 +10,7 @@
<div class="service-logo"></div>
<div class="service-desc">
<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 class="service-price">
{{ item.price }}
......@@ -47,7 +47,8 @@ export default {
const serviceList = n.selectedGoodsList || []
serviceList.length > 0 &&
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
},
......
<template>
<div class="wrap" v-if="serviceList.length>0">
<div class="wrap" v-if="serviceList.length > 0">
<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" />
<div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-time">{{ discount[item.discountType] }}</div>
<div class="service-title">
<div class="service-couponName">{{ item.couponName }}</div>
<div class="service-amount">x{{ item.couponAmount }}</div>
<div class="service-amount">x1</div>
</div>
</div>
</div>
......@@ -58,7 +58,7 @@ export default {
top: -27.5px;
left: 50%;
transform: translateX(-50%);
width: 241px;
width: 221px;
height: 50px;
}
......
......@@ -40,7 +40,7 @@ export default {
<style scoped lang="scss">
.wrap {
padding: 0px 5px;
margin-bottom: 41px;
margin-bottom: 21px;
.container-panel {
background: #ffffff;
......
......@@ -6,7 +6,7 @@
<div class="service-logo"></div>
<div class="service-desc">
<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 class="service-price">
{{ item.price }}
......@@ -41,7 +41,8 @@ export default {
const serviceList = n.selectedGoodsList || []
serviceList.length > 0 &&
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
},
......@@ -54,7 +55,7 @@ export default {
<style scoped lang="scss">
.wrap {
padding: 0px 5px;
margin-bottom: 41px;
margin-bottom: 21px;
.container-panel {
background: #ffffff;
......
......@@ -123,7 +123,7 @@
<img class="server-type" :src="require(`@/assets/coupon/equity.png`)" />
<div class="gift-content">
<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>
</div>
</div>
......
......@@ -14,7 +14,7 @@
<div class="gift-detail flex-wrap">
<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`)" />
<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>
</div>
</div>
......@@ -39,7 +39,7 @@
<div class="link-item" v-for="(item, index) in linkCode" :key="index">
<div class="link-item-l">
<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 class="link-item-r"><el-image :src="linkInfo[item.name]" alt=""></el-image></div>
</div>
......@@ -47,7 +47,7 @@
<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">{{ 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 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!