Commit 909d1e01 by 高淑倩

分享文案

parent 34d4f9e2
......@@ -25,6 +25,7 @@ wxService.page({
contentList:[],
currentShareContent: null,
contentPermission: false,
validContentSetExplain: '',
scene: ''
},
......@@ -79,11 +80,22 @@ wxService.page({
plus: 0
})
}
this.getValidContentSetExplain() // 获取有效的种草配置文案
this.getCategoryList()
this.getContentPermission()
this.data.currentShareContent = null;
},
// 获取有效的种草配置文案
getValidContentSetExplain() {
wxService.post(`/merchant/shareContentSet/getValidContentSetExplain`).then(res => {
if (!res) return false
const { result, data } = res.data
if (result == 0) {
this.setData({validContentSetExplain: data})
}
}).finally(() => {
})
},
// 统计阅读和转发量
getReadyOrForwardNumber(params) {
wxService.post(`/merchant/contentMobileTerminal/operationSave`, params).then(res => {
......
......@@ -48,6 +48,7 @@
show-card-modal="{{showCardModal}}"
card-title="{{cardTitle}}"
card-url="{{cardUrl}}"
card-explain="{{validContentSetExplain}}"
page-path="{{pagePath}}"
scene="{{scene}}"
/>
......
......@@ -72,7 +72,7 @@ wxService.page({
plus: 0
})
}
// this.getValidContentSetExplain() // 获取有效的种草配置文案
this.getValidContentSetExplain() // 获取有效的种草配置文案
this.getBannerInfo()
this.getContentPermission()
this.data.currentShareContent = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment