Commit 909d1e01 by 高淑倩

分享文案

parent 34d4f9e2
...@@ -25,6 +25,7 @@ wxService.page({ ...@@ -25,6 +25,7 @@ wxService.page({
contentList:[], contentList:[],
currentShareContent: null, currentShareContent: null,
contentPermission: false, contentPermission: false,
validContentSetExplain: '',
scene: '' scene: ''
}, },
...@@ -79,11 +80,22 @@ wxService.page({ ...@@ -79,11 +80,22 @@ wxService.page({
plus: 0 plus: 0
}) })
} }
this.getValidContentSetExplain() // 获取有效的种草配置文案
this.getCategoryList() this.getCategoryList()
this.getContentPermission() this.getContentPermission()
this.data.currentShareContent = null; 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) { getReadyOrForwardNumber(params) {
wxService.post(`/merchant/contentMobileTerminal/operationSave`, params).then(res => { wxService.post(`/merchant/contentMobileTerminal/operationSave`, params).then(res => {
......
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
show-card-modal="{{showCardModal}}" show-card-modal="{{showCardModal}}"
card-title="{{cardTitle}}" card-title="{{cardTitle}}"
card-url="{{cardUrl}}" card-url="{{cardUrl}}"
card-explain="{{validContentSetExplain}}"
page-path="{{pagePath}}" page-path="{{pagePath}}"
scene="{{scene}}" scene="{{scene}}"
/> />
......
...@@ -72,7 +72,7 @@ wxService.page({ ...@@ -72,7 +72,7 @@ wxService.page({
plus: 0 plus: 0
}) })
} }
// this.getValidContentSetExplain() // 获取有效的种草配置文案 this.getValidContentSetExplain() // 获取有效的种草配置文案
this.getBannerInfo() this.getBannerInfo()
this.getContentPermission() this.getContentPermission()
this.data.currentShareContent = null; 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