111
This commit is contained in:
@@ -157,7 +157,8 @@
|
|||||||
|
|
||||||
<view
|
<view
|
||||||
style="display: flex;flex-direction: row;margin-top: 5px;align-items: center;justify-content: space-between;width: 100%;">
|
style="display: flex;flex-direction: row;margin-top: 5px;align-items: center;justify-content: space-between;width: 100%;">
|
||||||
<text style="flex: 1;font-size: 12px; color: #A5A5A5; margin-right: 10px;">- {{item.goods}}</text>
|
<text style="flex: 1;font-size: 12px; color: #A5A5A5; margin-right: 10px;">-
|
||||||
|
{{item.goods}}</text>
|
||||||
|
|
||||||
<button v-show="item.isShare=='1'" class='sharebtn' :data-info="item"
|
<button v-show="item.isShare=='1'" class='sharebtn' :data-info="item"
|
||||||
open-type="share">分享卡</button>
|
open-type="share">分享卡</button>
|
||||||
@@ -593,9 +594,23 @@
|
|||||||
console.log("data", res.target.dataset)
|
console.log("data", res.target.dataset)
|
||||||
var data = res.target.dataset.info
|
var data = res.target.dataset.info
|
||||||
this.shareCard(data.sid)
|
this.shareCard(data.sid)
|
||||||
|
|
||||||
|
|
||||||
|
// ①
|
||||||
|
let shareData = JSON.stringify({
|
||||||
|
url: '/pages/bind/bind_pickUpCard?code=' + data.code + '&codeKey=' + data.codeKey
|
||||||
|
})
|
||||||
|
// 转码传输
|
||||||
|
let value = encodeURIComponent(shareData)
|
||||||
|
uni.redirectTo({
|
||||||
|
url: this.data.order_url.page + '?data=' +
|
||||||
|
value
|
||||||
|
})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
title: '汇融惠享-云菜窖',
|
title: '汇融惠享-云菜窖',
|
||||||
path: '/pages/bind/bind_pickUpCard?code=' + data.code + '&codeKey=' + data.codeKey,
|
// ②
|
||||||
|
path: '/pages/login/login?data=' + value,
|
||||||
imageUrl: 'https://supervise.yxtsoft.com/lpk/image/shareAffeection.png', //自定义图片路径,显示图片长宽比是 5:4。
|
imageUrl: 'https://supervise.yxtsoft.com/lpk/image/shareAffeection.png', //自定义图片路径,显示图片长宽比是 5:4。
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
console.log('aaaa', "分享成功")
|
console.log('aaaa', "分享成功")
|
||||||
|
|||||||
Reference in New Issue
Block a user