wangjiahai 1 year ago
parent
commit
46aed4eb5d
  1. 41
      pages/detail/detail_enterprise.vue

41
pages/detail/detail_enterprise.vue

@ -36,7 +36,7 @@
<text v-if="data.notRese"
style="background: #fff ; border-radius: 25px;color: #FF7201;padding: 3px 10px;"
@click="showDialog">转赠亲友</text>
<text v-if="!data.notRese"
style="background: #F1F2F3 ; border-radius: 25px;color: #ccc;padding: 3px 10px;">转赠亲友</text>
</view>
@ -89,7 +89,7 @@
<view style="margin-bottom: 10px;">
<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;">
<view style="display: flex;flex-direction: column;background-color: #fff;
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;">
@ -121,11 +121,11 @@
<view style=" display: flex;flex-direction: row;align-items: center;margin-top: 8px;">
<text style="color: #999; font-size: 12px;">- {{item.goods}}</text>
</view>
</view>
</view>
</view>
<view style="background-color: #fff;margin-top: 10px;padding: 10px 15px;" id='the-id'>
@ -157,7 +157,8 @@
<view
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"
open-type="share">分享卡</button>
@ -246,7 +247,7 @@
<view style="display: flex;align-items: center;margin-top: 6px;">
<input placeholder="请输入"
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;
line-height: 20px;padding: 10px;
white-space: pre-wrap;
@ -476,9 +477,9 @@
})
},
pageScroll() {
//使 #xxxviewid
wx.createSelectorQuery().select('#page').boundingClientRect(function(rect) {
console.log('rect', rect);
@ -488,10 +489,10 @@
scrollTop: rect.height
})
}).exec()
},
save() {
this.pageScroll()
this.colseDialog2()
@ -593,9 +594,23 @@
console.log("data", res.target.dataset)
var data = res.target.dataset.info
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 {
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
success: function(res) {
console.log('aaaa', "分享成功")

Loading…
Cancel
Save