Commit d1c5bc7b by 谢中龙

Merge branch 'dev_7.2.0' of ssh://gitlab.bigaka.net:2287/gaoshq/7-Eleven into dev_7.2.0

parents 7c71f559 3afe6987
...@@ -27,6 +27,7 @@ wxService.page({ ...@@ -27,6 +27,7 @@ wxService.page({
noMoreFlag: false, noMoreFlag: false,
myShareCount:'', myShareCount:'',
extendProBanner: '', extendProBanner: '',
explain:[],//文案
scene: '', //触点参数 scene: '', //触点参数
proData : [] proData : []
}, },
...@@ -199,7 +200,7 @@ wxService.page({ ...@@ -199,7 +200,7 @@ wxService.page({
}else{ }else{
this.setData({ this.setData({
cardTitle: this.data.proData[0].productName, cardTitle: this.data.explain ? this.data.explain : this.data.proData[0].productName,
cardUrl: this.data.proData[0].productImgUrl, cardUrl: this.data.proData[0].productImgUrl,
pagePath: path, pagePath: path,
scene: scene scene: scene
...@@ -318,7 +319,8 @@ wxService.page({ ...@@ -318,7 +319,8 @@ wxService.page({
const { result, data } = res.data const { result, data } = res.data
if (result == 0 && data) { if (result == 0 && data) {
this.setData({ this.setData({
extendProBanner: data.backgroundImgUrl extendProBanner: data.backgroundImgUrl,
explain: data.explain
}, () => { }, () => {
}) })
......
export default class InviteFriends { export default class InviteFriends {
palette(posterImg, qrcodeImg, userName, avatarUrl,options) { palette(posterImg, qrcodeImg, userName, avatarUrl, options, explain) {
//获取图片的长宽 //获取图片的长宽
let posterImgWidth = 0, posterImgHeight = 280; let posterImgWidth = 0, posterImgHeight = 280;
let windowWidth = options.windowWidth; let windowWidth = options.windowWidth;
...@@ -49,7 +49,31 @@ export default class InviteFriends { ...@@ -49,7 +49,31 @@ export default class InviteFriends {
}, },
{ {
type: 'text', type: 'text',
text: userName + '邀请您一起成为会员,共享优惠,赶快扫码加入吧~。', text: userName + explain[0],
css: {
width: '180rpx',
left: '82rpx',
bottom: '83rpx',
fontSize: '18rpx',
color: '#333333'
},
},
{
type: 'text',
text: explain[1],
css: {
width: '180rpx',
left: '82rpx',
bottom: '63rpx',
fontSize: '18rpx',
color: '#333333'
},
},
{
type: 'text',
text: explain[2],
css: { css: {
width: '180rpx', width: '180rpx',
left: '82rpx', left: '82rpx',
...@@ -57,6 +81,7 @@ export default class InviteFriends { ...@@ -57,6 +81,7 @@ export default class InviteFriends {
fontSize: '18rpx', fontSize: '18rpx',
color: '#333333' color: '#333333'
}, },
}, },
], ],
}); });
......
...@@ -24,6 +24,7 @@ wxService.page({ ...@@ -24,6 +24,7 @@ wxService.page({
nextmargin: '142rpx',//后边距 nextmargin: '142rpx',//后边距
posterImgData:[], posterImgData:[],
currentPosterImg: '', currentPosterImg: '',
explain: [],
codeImg:'', //二维码 codeImg:'', //二维码
template :{} template :{}
}, },
...@@ -85,7 +86,7 @@ wxService.page({ ...@@ -85,7 +86,7 @@ wxService.page({
posterImgHeight: posterImgHeight , posterImgHeight: posterImgHeight ,
windowWidth: system.windowWidth, windowWidth: system.windowWidth,
windowHeight: system.windowHeight windowHeight: system.windowHeight
}), }, _this.data.explain),
}); });
} }
}) })
...@@ -99,10 +100,11 @@ wxService.page({ ...@@ -99,10 +100,11 @@ wxService.page({
if (res) { if (res) {
const { result, data } = res.data const { result, data } = res.data
if (result == 0) { if (result == 0) {
let initiatorPage = JSON.parse(data.initiatorPage) let initiatorPage = JSON.parse(data.initiatorPage)
let explain = JSON.parse(data.explain)
this.setData({ this.setData({
posterImgData: initiatorPage posterImgData: initiatorPage,
explain: explain
}) })
} }
} }
...@@ -146,7 +148,7 @@ wxService.page({ ...@@ -146,7 +148,7 @@ wxService.page({
posterImgHeight: posterImgHeight, posterImgHeight: posterImgHeight,
windowWidth: system.windowWidth, windowWidth: system.windowWidth,
windowHeight: system.windowHeight windowHeight: system.windowHeight
}), }, _this.data.explain),
}); });
} }
}) })
......
...@@ -15,7 +15,10 @@ ...@@ -15,7 +15,10 @@
</view> </view>
<view class="poster-title"> <view class="poster-title">
<open-data type="userNickName"></open-data> <open-data type="userNickName"></open-data>
<text>邀请您一起成为会员,共享优惠,赶快扫码加入吧~。</text> <text>{{explain[0]}}</text>
<view>{{explain[1]}}</view>
<view>{{explain[2]}}</view>
<!-- <view>邀请您一起成为会员,共享优惠,赶快扫码加入吧~。</view> -->
</view> </view>
<image class="code-img" src="{{codeImg}}"></image> <image class="code-img" src="{{codeImg}}"></image>
</view> </view>
......
...@@ -99,8 +99,8 @@ class Http { ...@@ -99,8 +99,8 @@ class Http {
url, url,
method: 'GET', method: 'GET',
header: { header: {
// 'tunnel-token': 'aa8a1bfb7f6c5031d172d94b6574293ef954a6f2d4e16657da008e0cc15588feD', // 测试 'tunnel-token': 'aa8a1bfb7f6c5031d172d94b6574293ef954a6f2d4e16657da008e0cc15588feD', // 测试
'tunnel-token' : 'd6db651f8b9c7db4176465accfc1c913843fd9ad328cd5f4fe201d918072c9e8', // 生产 // 'tunnel-token' : 'd6db651f8b9c7db4176465accfc1c913843fd9ad328cd5f4fe201d918072c9e8', // 生产
'tunnel-token' : 'brand1001', // 开发 'tunnel-token' : 'brand1001', // 开发
'tentacle-content': this.getTentacle(), 'tentacle-content': this.getTentacle(),
// 'tentacle-content': '{"id":"621346354647797760","tentacleType":3,"tentacleId":"611969009872691200","contentType":1}' // 'tentacle-content': '{"id":"621346354647797760","tentacleType":3,"tentacleId":"611969009872691200","contentType":1}'
...@@ -135,8 +135,8 @@ class Http { ...@@ -135,8 +135,8 @@ class Http {
url, url,
method: 'POST', method: 'POST',
header: { header: {
// 'tunnel-token': 'aa8a1bfb7f6c5031d172d94b6574293ef954a6f2d4e16657da008e0cc15588feD', // 测试 'tunnel-token': 'aa8a1bfb7f6c5031d172d94b6574293ef954a6f2d4e16657da008e0cc15588feD', // 测试
'tunnel-token' : 'd6db651f8b9c7db4176465accfc1c913843fd9ad328cd5f4fe201d918072c9e8', // 生产 // 'tunnel-token' : 'd6db651f8b9c7db4176465accfc1c913843fd9ad328cd5f4fe201d918072c9e8', // 生产
'tunnel-token' : 'brand1001', // 开发 'tunnel-token' : 'brand1001', // 开发
'tentacle-content': this.getTentacle() 'tentacle-content': this.getTentacle()
// 'tentacle-content': '{"id":"621346354647797760","tentacleType":3,"tentacleId":"611969009872691200","contentType":1}' // 'tentacle-content': '{"id":"621346354647797760","tentacleType":3,"tentacleId":"611969009872691200","contentType":1}'
......
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