111
This commit is contained in:
@@ -36,7 +36,7 @@
|
|||||||
<text v-if="data.notRese"
|
<text v-if="data.notRese"
|
||||||
style="background: #fff ; border-radius: 25px;color: #FF7201;padding: 3px 10px;"
|
style="background: #fff ; border-radius: 25px;color: #FF7201;padding: 3px 10px;"
|
||||||
@click="showDialog">转赠亲友</text>
|
@click="showDialog">转赠亲友</text>
|
||||||
|
|
||||||
<text v-if="!data.notRese"
|
<text v-if="!data.notRese"
|
||||||
style="background: #F1F2F3 ; border-radius: 25px;color: #ccc;padding: 3px 10px;">转赠亲友</text>
|
style="background: #F1F2F3 ; border-radius: 25px;color: #ccc;padding: 3px 10px;">转赠亲友</text>
|
||||||
</view>
|
</view>
|
||||||
@@ -89,7 +89,7 @@
|
|||||||
<view style="margin-bottom: 10px;">
|
<view style="margin-bottom: 10px;">
|
||||||
<view v-for="(item,index) in data.orderCardVoList" :key="index"
|
<view v-for="(item,index) in data.orderCardVoList" :key="index"
|
||||||
style="display: flex;flex-direction: row;background-color: #fff;padding-left: 10px;padding-right: 10px;">
|
style="display: flex;flex-direction: row;background-color: #fff;padding-left: 10px;padding-right: 10px;">
|
||||||
|
|
||||||
<view style="display: flex;flex-direction: column;background-color: #fff;
|
<view style="display: flex;flex-direction: column;background-color: #fff;
|
||||||
border-bottom: 1px #F1F2F3 solid; width: 100%;padding-left: 20px;padding-bottom: 10px;">
|
border-bottom: 1px #F1F2F3 solid; width: 100%;padding-left: 20px;padding-bottom: 10px;">
|
||||||
<view style="display: flex;flex-direction: row;align-items: center;margin-top: 10px;">
|
<view style="display: flex;flex-direction: row;align-items: center;margin-top: 10px;">
|
||||||
@@ -121,11 +121,11 @@
|
|||||||
<view style=" display: flex;flex-direction: row;align-items: center;margin-top: 8px;">
|
<view style=" display: flex;flex-direction: row;align-items: center;margin-top: 8px;">
|
||||||
<text style="color: #999; font-size: 12px;">- {{item.goods}}</text>
|
<text style="color: #999; font-size: 12px;">- {{item.goods}}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view style="background-color: #fff;margin-top: 10px;padding: 10px 15px;" id='the-id'>
|
<view style="background-color: #fff;margin-top: 10px;padding: 10px 15px;" id='the-id'>
|
||||||
@@ -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>
|
||||||
@@ -246,7 +247,7 @@
|
|||||||
<view style="display: flex;align-items: center;margin-top: 6px;">
|
<view style="display: flex;align-items: center;margin-top: 6px;">
|
||||||
<input placeholder="请输入"
|
<input placeholder="请输入"
|
||||||
style="font-size: 30rpx;flex: 1;background: #F8F8F8;border-radius: 5px;height: 40px;line-height: 40px;padding-left: 10px;padding-right: 10px;"
|
style="font-size: 30rpx;flex: 1;background: #F8F8F8;border-radius: 5px;height: 40px;line-height: 40px;padding-left: 10px;padding-right: 10px;"
|
||||||
:value="info.remarks" @input="onKeyInput2" />
|
:value="info.remarks" @input="onKeyInput2" />
|
||||||
<!-- <textarea placeholder="请输入" :disable-default-padding='true' :fixed="true" style="font-size: 30rpx;flex: 1;background: #F8F8F8;border-radius: 5px;
|
<!-- <textarea placeholder="请输入" :disable-default-padding='true' :fixed="true" style="font-size: 30rpx;flex: 1;background: #F8F8F8;border-radius: 5px;
|
||||||
line-height: 20px;padding: 10px;
|
line-height: 20px;padding: 10px;
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
@@ -476,9 +477,9 @@
|
|||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
pageScroll() {
|
pageScroll() {
|
||||||
|
|
||||||
//获取容器高度,使页面滚动到容器底部 #xxx就是view的id名
|
//获取容器高度,使页面滚动到容器底部 #xxx就是view的id名
|
||||||
wx.createSelectorQuery().select('#page').boundingClientRect(function(rect) {
|
wx.createSelectorQuery().select('#page').boundingClientRect(function(rect) {
|
||||||
console.log('rect', rect);
|
console.log('rect', rect);
|
||||||
@@ -488,10 +489,10 @@
|
|||||||
scrollTop: rect.height
|
scrollTop: rect.height
|
||||||
})
|
})
|
||||||
}).exec()
|
}).exec()
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
save() {
|
save() {
|
||||||
this.pageScroll()
|
this.pageScroll()
|
||||||
this.colseDialog2()
|
this.colseDialog2()
|
||||||
@@ -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