11111
This commit is contained in:
6
main.js
6
main.js
@@ -35,10 +35,16 @@ import bus from './common/bus.js';
|
|||||||
//挂载到this上
|
//挂载到this上
|
||||||
Vue.prototype.$bus = bus;
|
Vue.prototype.$bus = bus;
|
||||||
|
|
||||||
|
|
||||||
import {pay} from './uni_modules/common-pay/utils/pay.js'
|
import {pay} from './uni_modules/common-pay/utils/pay.js'
|
||||||
//挂载到this上
|
//挂载到this上
|
||||||
Vue.prototype.$pay = pay;
|
Vue.prototype.$pay = pay;
|
||||||
|
|
||||||
|
|
||||||
|
import {convertPrice} from './common/price.js'
|
||||||
|
//挂载到this上
|
||||||
|
Vue.prototype.convertPrice = convertPrice;
|
||||||
|
|
||||||
const app = new Vue({
|
const app = new Vue({
|
||||||
store,
|
store,
|
||||||
...App
|
...App
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<view style="display: flex;flex-direction: column;background-color: #fff;">
|
<view style="display: flex;flex-direction: column;background-color: #fff;">
|
||||||
|
|
||||||
<view class="top">
|
<view class="top">
|
||||||
<NavBar ref="nav" navTitle="绑定云菜窖卡" :showIcon="true" :start-change-height="page.startHeight"
|
<NavBar ref="nav" navTitle="绑定云菜窖" :showIcon="true" :start-change-height="page.startHeight"
|
||||||
:end-change-height="page.endHeight">
|
:end-change-height="page.endHeight">
|
||||||
</NavBar>
|
</NavBar>
|
||||||
<view>
|
<view>
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
<view style="display: flex;flex-direction: row;align-items: center;">
|
<view style="display: flex;flex-direction: row;align-items: center;">
|
||||||
<view style="background: #FF9D33; border-radius: 50%;width: 12px;height: 12px;"></view>
|
<view style="background: #FF9D33; border-radius: 50%;width: 12px;height: 12px;"></view>
|
||||||
<view style="background: #FFDAB2; border-radius: 50%;width: 12px;height: 12px;"></view>
|
<view style="background: #FFDAB2; border-radius: 50%;width: 12px;height: 12px;"></view>
|
||||||
<text style="margin-left: 8px;font-size: 18px;color: #333;">绑定云菜窖卡</text>
|
<text style="margin-left: 8px;font-size: 18px;color: #333;">绑定云菜窖</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<text style="margin-left: 8px;font-size: 14px;color: #333;margin-top: 20px;">提货编码</text>
|
<text style="margin-left: 8px;font-size: 14px;color: #333;margin-top: 20px;">提货编码</text>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<view style="display: flex;flex-direction: column;background-color: #fff;">
|
<view style="display: flex;flex-direction: column;background-color: #fff;">
|
||||||
|
|
||||||
<view class="top">
|
<view class="top">
|
||||||
<NavBar ref="nav" navTitle="绑定云菜窖卡" :showIcon="true" :start-change-height="page.startHeight"
|
<NavBar ref="nav" navTitle="绑定云菜窖" :showIcon="true" :start-change-height="page.startHeight"
|
||||||
:end-change-height="page.endHeight">
|
:end-change-height="page.endHeight">
|
||||||
</NavBar>
|
</NavBar>
|
||||||
<view>
|
<view>
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
<view style="display: flex;flex-direction: row;align-items: center;">
|
<view style="display: flex;flex-direction: row;align-items: center;">
|
||||||
<view style="background: #FF9D33; border-radius: 50%;width: 12px;height: 12px;"></view>
|
<view style="background: #FF9D33; border-radius: 50%;width: 12px;height: 12px;"></view>
|
||||||
<view style="background: #FFDAB2; border-radius: 50%;width: 12px;height: 12px;"></view>
|
<view style="background: #FFDAB2; border-radius: 50%;width: 12px;height: 12px;"></view>
|
||||||
<text style="margin-left: 8px;font-size: 18px;color: #333;">绑定云菜窖卡</text>
|
<text style="margin-left: 8px;font-size: 18px;color: #333;">绑定云菜窖</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<text style="margin-left: 8px;font-size: 14px;color: #333;margin-top: 20px;">提货编码</text>
|
<text style="margin-left: 8px;font-size: 14px;color: #333;margin-top: 20px;">提货编码</text>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<view style="display: flex;flex-direction: row;
|
<view style="display: flex;flex-direction: row;
|
||||||
margin:20px 20px 0px 20px;padding-bottom: 20px; border-bottom: 2px #EFEFEF solid; justify-content: space-between;">
|
margin:20px 20px 0px 20px;padding-bottom: 10px; border-bottom: 2px #EFEFEF solid; justify-content: space-between;">
|
||||||
<view style="display: flex;flex-direction: row;align-items: center;">
|
<view style="display: flex;flex-direction: row;align-items: center;">
|
||||||
<view style="background: #FF9900; border-radius: 50%;width: 12px;height: 12px;"></view>
|
<view style="background: #FF9900; border-radius: 50%;width: 12px;height: 12px;"></view>
|
||||||
<view style="background: #FFCC7F; border-radius: 50%;width: 12px;height: 12px;"></view>
|
<view style="background: #FFCC7F; border-radius: 50%;width: 12px;height: 12px;"></view>
|
||||||
@@ -25,10 +25,10 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view style="display: flex;flex-direction: row;align-items: center;margin-right: 10px;">
|
<view style="display: flex;flex-direction: row;align-items: center;margin-right: 10px;">
|
||||||
<view style="color: #888;font-size: 12px;">我要定 </view>
|
<view style="color: #888;font-size: 12px;">定制</view>
|
||||||
<input type="number" @input="numbers" v-model="page.number" maxlength="3"
|
<input type="number" @input="numbers" v-model="page.number" maxlength="3"
|
||||||
style="font-size: 12px; border: 1px #AEAEAE solid;border-radius: 5px;text-align: center; width: 25px;margin-left: 5px;margin-right: 5px;padding-left: 3px;padding-right: 3px;" />
|
style="font-size: 12px; border: 1px #AEAEAE solid;border-radius: 5px;text-align: center; width: 25px;margin-left: 5px;margin-right: 5px;padding-left: 3px;padding-right: 3px;" />
|
||||||
<view style="color: #888;font-size: 12px;">个云菜窖</view>
|
<view style="color: #888;font-size: 12px;">个菜窖</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
<view
|
<view
|
||||||
style=" display: flex;flex-direction: row;align-items: center; margin-right: 10px;margin-top: 5px; margin-left: 10px;">
|
style=" display: flex;flex-direction: row;align-items: center; margin-right: 10px;margin-top: 5px; margin-left: 10px;">
|
||||||
|
|
||||||
<image :src='item.iconUrl' style="width: 60px;height: 70px;"></image>
|
<image :src='item.iconUrl' style="width: 70px;height: 70px;" mode="aspectFit"></image>
|
||||||
|
|
||||||
<view style="display: flex;flex-direction: column;margin-left: 20px;width: 100%;">
|
<view style="display: flex;flex-direction: column;margin-left: 20px;width: 100%;">
|
||||||
|
|
||||||
@@ -54,20 +54,20 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
<text style="color: #AEAEAE;font-size: 14px;margin-top: 5px;">{{item.remark}}</text>
|
<text style="color: #AEAEAE;font-size: 12px;margin-top: 5px;">{{item.remark}}</text>
|
||||||
|
|
||||||
<view
|
<view
|
||||||
style="display: flex;flex-direction: row;justify-content:space-between;margin-top: 5px;">
|
style="display: flex;flex-direction: row;justify-content:space-between;margin-top: 5px;">
|
||||||
|
|
||||||
<view style="display: flex;flex-direction: row;">
|
<view style="display: flex;flex-direction: row;">
|
||||||
<text style="border: 1px #EE752F solid; border-radius: 10px; color:#EE752F ; font-size: 14px;
|
<text style="border: 1px #EE752F solid; border-radius: 10px; color:#EE752F ; font-size: 10px;
|
||||||
margin-right: 20px;padding: 0px 8px;">{{item.jprice}}元/{{item.specificationUnit}}</text>
|
margin-right: 20px;padding: 0px 5px;">{{item.jprice}}元/{{item.specificationUnit}}</text>
|
||||||
<text
|
<text
|
||||||
style="border: 1px #EE752F solid; border-radius: 10px; color: #EE752F;font-size: 14px;;padding: 0px 8px;">{{item.weight}}斤/{{item.unitName}}</text>
|
style="border: 1px #EE752F solid; border-radius: 10px; color: #EE752F;font-size: 10px;;padding: 0px 5px;">{{item.weight}}斤/{{item.unitName}}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
<text style="color: #FF5006;font-size: 14px;">¥{{item.totalValue}}</text>
|
<text style="color: #FF5006;font-size: 15px;">¥{{item.totalValue}}</text>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -140,7 +140,16 @@
|
|||||||
this.page.endHeight = info.windowWidth * 0.8
|
this.page.endHeight = info.windowWidth * 0.8
|
||||||
|
|
||||||
this.request()
|
this.request()
|
||||||
|
uni.$on("pay", (e) => {
|
||||||
|
|
||||||
|
uni.switchTab({
|
||||||
|
url: '/pages/home/pickUpCard'
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
},
|
||||||
|
onUnload() {
|
||||||
|
uni.$off('pay');
|
||||||
},
|
},
|
||||||
onPageScroll(res) {
|
onPageScroll(res) {
|
||||||
// 渐变
|
// 渐变
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<view style="display: flex;flex-direction: column;
|
<view style="display: flex;flex-direction: column;
|
||||||
margin:20px 20px 0px 20px;padding-bottom: 5px; border-bottom: 2px #EFEFEF solid;">
|
margin:20px 10px 0px 20px;padding-bottom:10px; border-bottom: 2px #EFEFEF solid;">
|
||||||
|
|
||||||
<view
|
<view
|
||||||
style="display: flex;flex-direction: row;align-items: center; justify-content: space-between;">
|
style="display: flex;flex-direction: row;align-items: center; justify-content: space-between;">
|
||||||
@@ -28,19 +28,13 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view style="display: flex;flex-direction: row;align-items: center;margin-right: 10px;">
|
<view style="display: flex;flex-direction: row;align-items: center;margin-right: 10px;">
|
||||||
<view style="color: #888;font-size: 12px;">我要定 </view>
|
<view style="color: #888;font-size: 12px;">定制</view>
|
||||||
<input type="number" @input="numbers" v-model="page.number" maxlength="3"
|
<input type="number" @input="numbers" v-model="page.number" maxlength="3"
|
||||||
style="font-size: 12px; border: 1px #AEAEAE solid;border-radius: 5px;text-align: center; width: 25px;margin-left: 5px;margin-right: 5px;padding-left: 3px;padding-right: 3px;" />
|
style="font-size: 12px; border: 1px #AEAEAE solid;border-radius: 5px;text-align: center; width: 25px;margin-left: 5px;margin-right: 5px;padding-left: 3px;padding-right: 3px;" />
|
||||||
<view style="color: #888;font-size: 12px;">个云菜窖</view>
|
<view style="color: #888;font-size: 12px;">个菜窖</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view style="margin-top: 10px;display: flex;flex-direction: row;align-items: center;margin-top: 15px;">
|
|
||||||
<view style="color: #888;font-size: 12px;">您已经定制了</view>
|
|
||||||
<view style="color: #FF5006;font-size: 18px;">{{page.weight}}斤</view>
|
|
||||||
<view style="color: #888;font-size: 12px;">,满200斤可定制云菜窖</view>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view v-for="(item,index) in data" :key="index" @click="itemClick(item.goodsSid)"
|
<view v-for="(item,index) in data" :key="index" @click="itemClick(item.goodsSid)"
|
||||||
@@ -52,7 +46,7 @@
|
|||||||
<view
|
<view
|
||||||
style=" display: flex;flex-direction: row;align-items: center; margin-right: 10px;margin-top: 5px; margin-left: 10px;">
|
style=" display: flex;flex-direction: row;align-items: center; margin-right: 10px;margin-top: 5px; margin-left: 10px;">
|
||||||
|
|
||||||
<image :src='item.iconUrl' style="width: 60px;height: 70px;"></image>
|
<image :src='item.iconUrl' style="width: 70px;height: 70px;" mode="aspectFill"></image>
|
||||||
|
|
||||||
<view style="display: flex;flex-direction: column;margin-left: 20px;width: 100%;">
|
<view style="display: flex;flex-direction: column;margin-left: 20px;width: 100%;">
|
||||||
|
|
||||||
@@ -71,14 +65,14 @@
|
|||||||
style="display: flex;flex-direction: row;justify-content:space-between;margin-top: 5px;">
|
style="display: flex;flex-direction: row;justify-content:space-between;margin-top: 5px;">
|
||||||
|
|
||||||
<view style="display: flex;flex-direction: row;">
|
<view style="display: flex;flex-direction: row;">
|
||||||
<text style="border: 1px #EE752F solid; border-radius: 10px; color:#EE752F ; font-size: 14px;
|
<text style="border: 1px #EE752F solid; border-radius: 10px; color:#EE752F ; font-size: 10px;
|
||||||
margin-right: 20px;padding: 0px 8px;">{{item.jprice}}元/{{item.specificationUnit}}</text>
|
margin-right: 20px;padding: 0px 5px;">{{item.jprice}}元/{{item.specificationUnit}}</text>
|
||||||
<text
|
<text
|
||||||
style="border: 1px #EE752F solid; border-radius: 10px; color: #EE752F;font-size: 14px;;padding: 0px 8px;">{{item.weight}}斤/{{item.unitName}}</text>
|
style="border: 1px #EE752F solid; border-radius: 10px; color: #EE752F;font-size: 10px;;padding: 0px 5px;">{{item.weight}}斤/{{item.unitName}}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
<text style="color: #FF5006;font-size: 14px;">¥{{item.price}}</text>
|
<text style="color: #FF5006;font-size: 15px;">¥{{item.price}}</text>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -92,10 +86,19 @@
|
|||||||
</view>
|
</view>
|
||||||
<view v-show="data.length>0" style="height: 100px;background: #f1f2f3; "></view>
|
<view v-show="data.length>0" style="height: 100px;background: #f1f2f3; "></view>
|
||||||
|
|
||||||
<view style="background-color: #fff; padding: 10px 20px;position: fixed;bottom: 0;overflow:hidden;
|
<view style="background-color: #fff;position: fixed;bottom: 0;overflow:hidden;
|
||||||
display: flex;flex-direction: row; width: 100%;flex-shrink: 1;">
|
display: flex;flex-direction: column; width: 100%;flex-shrink: 1;">
|
||||||
|
|
||||||
<view style="flex: 1; display: flex;flex-direction: row;align-items: center; margin-right: 30px;
|
<view
|
||||||
|
style="display: flex;flex-direction: row;align-items: center; border-bottom: 1px #F0F0F0 solid;padding-top: 5px; padding-bottom: 5px;padding-left: 20px;">
|
||||||
|
<view style="color: #888;font-size: 10px;">温馨提示:已定制了</view>
|
||||||
|
<view style="color: #FF5006;font-size: 15px;">{{page.weight}}斤</view>
|
||||||
|
<view style="color: #888;font-size: 10px;">,满200斤可定制云菜窖</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view
|
||||||
|
style="display: flex;flex-direction: row;align-items: center; margin-top: 5px; padding: 10px 20px; width: 100%;">
|
||||||
|
<view style="flex: 1; display: flex;flex-direction: row;align-items: center; ;
|
||||||
justify-content: space-between;">
|
justify-content: space-between;">
|
||||||
|
|
||||||
<view style="display: flex;flex-direction: row;align-items: center;">
|
<view style="display: flex;flex-direction: row;align-items: center;">
|
||||||
@@ -111,6 +114,9 @@
|
|||||||
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</loading-state>
|
</loading-state>
|
||||||
</view>
|
</view>
|
||||||
@@ -149,7 +155,16 @@
|
|||||||
this.page.endHeight = info.windowWidth * 0.8
|
this.page.endHeight = info.windowWidth * 0.8
|
||||||
|
|
||||||
this.request()
|
this.request()
|
||||||
|
uni.$on("pay", (e) => {
|
||||||
|
|
||||||
|
uni.switchTab({
|
||||||
|
url: '/pages/home/pickUpCard'
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
},
|
||||||
|
onUnload() {
|
||||||
|
uni.$off('pay');
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
itemClick(goodsSid) {
|
itemClick(goodsSid) {
|
||||||
@@ -263,8 +278,7 @@
|
|||||||
|
|
||||||
// console.log("resp", resp);
|
// console.log("resp", resp);
|
||||||
this.$pay(resp)
|
this.$pay(resp)
|
||||||
}).catch(e => {
|
}).catch(e => {})
|
||||||
})
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view
|
<view
|
||||||
style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;box-sizing: border-box;">
|
style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;box-sizing: border-box;">
|
||||||
卡号:{{data.serialNumber}}
|
窖号:{{data.serialNumber}}
|
||||||
</view>
|
</view>
|
||||||
<view style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;">
|
<view style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;">
|
||||||
{{data.time}}
|
{{data.time}}
|
||||||
@@ -153,7 +153,7 @@
|
|||||||
|
|
||||||
<view style="display: flex;flex-direction: column;width: 100%;">
|
<view style="display: flex;flex-direction: column;width: 100%;">
|
||||||
|
|
||||||
<text style="font-size: 12px; color: #333;margin-top: 5px;">亲情卡编码:{{item.code}}</text>
|
<text style="font-size: 12px; color: #333;margin-top: 5px;">亲情窖编码:{{item.code}}</text>
|
||||||
<text style="font-size: 12px; color: #333;margin-top: 5px;">提货密码:{{item.codeKey}}</text>
|
<text style="font-size: 12px; color: #333;margin-top: 5px;">提货密码:{{item.codeKey}}</text>
|
||||||
<text style="font-size: 12px; color: #333;margin-top: 5px;">备注说明:{{item.remarks}}</text>
|
<text style="font-size: 12px; color: #333;margin-top: 5px;">备注说明:{{item.remarks}}</text>
|
||||||
|
|
||||||
@@ -162,7 +162,7 @@
|
|||||||
<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>
|
||||||
<button v-show="item.isShare=='2'" class='sharebtn2' :data-info="item"
|
<button v-show="item.isShare=='2'" class='sharebtn2' :data-info="item"
|
||||||
open-type="share">已分享</button>
|
open-type="share">已分享</button>
|
||||||
<button v-show="item.isShare=='3'" class='sharebtn3'>转赠成功</button>
|
<button v-show="item.isShare=='3'" class='sharebtn3'>转赠成功</button>
|
||||||
@@ -289,9 +289,9 @@
|
|||||||
|
|
||||||
|
|
||||||
<view style="display: flex;flex-direction: column;margin: 20px;">
|
<view style="display: flex;flex-direction: column;margin: 20px;">
|
||||||
<text>卡券数量</text>
|
<text>菜窖数量</text>
|
||||||
<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;"
|
||||||
type="number" :value="info.count" @input="onKeyInput3" />
|
type="number" :value="info.count" @input="onKeyInput3" />
|
||||||
</view>
|
</view>
|
||||||
@@ -588,9 +588,26 @@
|
|||||||
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({
|
||||||
|
params: {
|
||||||
|
code: data.code,
|
||||||
|
codeKey: data.codeKey,
|
||||||
|
customerSid: ''
|
||||||
|
},
|
||||||
|
functionName: 'bindCard',
|
||||||
|
url: '/pages/detail/detail_affeection?sid=' + data.sid
|
||||||
|
|
||||||
|
// url:'/pages/bind/bind_pickUpCard?code=' + + &codeKey=' + data.codeKey,
|
||||||
|
// FunctionName:'share!
|
||||||
|
})
|
||||||
|
// 转码传输
|
||||||
|
let value = encodeURIComponent(shareData)
|
||||||
|
|
||||||
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', "分享成功")
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view
|
<view
|
||||||
style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;box-sizing: border-box;">
|
style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;box-sizing: border-box;">
|
||||||
卡号:{{data.serialNumber}}
|
窖号:{{data.serialNumber}}
|
||||||
</view>
|
</view>
|
||||||
<view style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;">
|
<view style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;">
|
||||||
{{data.time}}
|
{{data.time}}
|
||||||
@@ -149,7 +149,7 @@
|
|||||||
|
|
||||||
<view style="display: flex;flex-direction: column;width: 100%;">
|
<view style="display: flex;flex-direction: column;width: 100%;">
|
||||||
|
|
||||||
<text style="font-size: 12px; color: #333;margin-top: 5px;">亲情卡编码:{{item.code}}</text>
|
<text style="font-size: 12px; color: #333;margin-top: 5px;">亲情窖编码:{{item.code}}</text>
|
||||||
<text style="font-size: 12px; color: #333;margin-top: 5px;">提货密码:{{item.codeKey}}</text>
|
<text style="font-size: 12px; color: #333;margin-top: 5px;">提货密码:{{item.codeKey}}</text>
|
||||||
<text style="font-size: 12px; color: #333;margin-top: 5px;">备注说明:{{item.remarks}}</text>
|
<text style="font-size: 12px; color: #333;margin-top: 5px;">备注说明:{{item.remarks}}</text>
|
||||||
|
|
||||||
@@ -159,7 +159,7 @@
|
|||||||
style="flex: 1;font-size: 12px; color: #A5A5A5; margin-right: 10px;">- {{item.goods}}</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>
|
||||||
<button v-show="item.isShare=='2'" class='sharebtn2' :data-info="item"
|
<button v-show="item.isShare=='2'" class='sharebtn2' :data-info="item"
|
||||||
open-type="share">已分享</button>
|
open-type="share">已分享</button>
|
||||||
<button v-show="item.isShare=='3'" class='sharebtn3'>转赠成功</button>
|
<button v-show="item.isShare=='3'" class='sharebtn3'>转赠成功</button>
|
||||||
@@ -256,9 +256,26 @@
|
|||||||
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({
|
||||||
|
params: {
|
||||||
|
code: data.code,
|
||||||
|
codeKey: data.codeKey,
|
||||||
|
customerSid: ''
|
||||||
|
},
|
||||||
|
functionName: 'bindCard',
|
||||||
|
url: '/pages/detail/detail_affeection?sid=' + data.sid
|
||||||
|
|
||||||
|
// url:'/pages/bind/bind_pickUpCard?code=' + + &codeKey=' + data.codeKey,
|
||||||
|
// FunctionName:'share!
|
||||||
|
})
|
||||||
|
// 转码传输
|
||||||
|
let value = encodeURIComponent(shareData)
|
||||||
|
|
||||||
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', "分享成功")
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view
|
<view
|
||||||
style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;box-sizing: border-box;">
|
style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;box-sizing: border-box;">
|
||||||
卡号:{{data.serialNumber}}
|
窖号:{{data.serialNumber}}
|
||||||
</view>
|
</view>
|
||||||
<view style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;">
|
<view style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;">
|
||||||
{{data.time}}
|
{{data.time}}
|
||||||
@@ -68,7 +68,7 @@
|
|||||||
<text
|
<text
|
||||||
style="font-size: 12px;color: #666666;margin-right: 10px;">总数:{{item.num}}{{item.unitName}}
|
style="font-size: 12px;color: #666666;margin-right: 10px;">总数:{{item.num}}{{item.unitName}}
|
||||||
</text>
|
</text>
|
||||||
<view style="font-size: 12px;color: #666666;">卡内剩余:{{item.lnum}}{{item.unitName}}</view>
|
<view style="font-size: 12px;color: #666666;">窖内剩余:{{item.lnum}}{{item.unitName}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -151,7 +151,7 @@
|
|||||||
|
|
||||||
<view style="display: flex;flex-direction: column;width: 100%;">
|
<view style="display: flex;flex-direction: column;width: 100%;">
|
||||||
|
|
||||||
<text style="font-size: 12px; color: #333;margin-top: 5px;">福礼卡编码:{{item.code}}</text>
|
<text style="font-size: 12px; color: #333;margin-top: 5px;">亲情窖编码:{{item.code}}</text>
|
||||||
<text style="font-size: 12px; color: #333;margin-top: 5px;">提货密码:{{item.codeKey}}</text>
|
<text style="font-size: 12px; color: #333;margin-top: 5px;">提货密码:{{item.codeKey}}</text>
|
||||||
<text style="font-size: 12px; color: #333;margin-top: 5px;">备注说明:{{item.remarks}}</text>
|
<text style="font-size: 12px; color: #333;margin-top: 5px;">备注说明:{{item.remarks}}</text>
|
||||||
|
|
||||||
@@ -161,7 +161,7 @@
|
|||||||
{{item.goods}}</text>
|
{{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>
|
||||||
<button v-show="item.isShare=='2'" class='sharebtn2' :data-info="item"
|
<button v-show="item.isShare=='2'" class='sharebtn2' :data-info="item"
|
||||||
open-type="share">已分享</button>
|
open-type="share">已分享</button>
|
||||||
<button v-show="item.isShare=='3'" class='sharebtn3'>转赠成功</button>
|
<button v-show="item.isShare=='3'" class='sharebtn3'>转赠成功</button>
|
||||||
@@ -215,9 +215,9 @@
|
|||||||
</view> -->
|
</view> -->
|
||||||
|
|
||||||
<view style="display: flex;flex-direction: column;margin: 20px;">
|
<view style="display: flex;flex-direction: column;margin: 20px;">
|
||||||
<text>卡券数量</text>
|
<text>菜窖数量</text>
|
||||||
<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;"
|
||||||
type="number" :value="info.count" @input="onKeyInput1" />
|
type="number" :value="info.count" @input="onKeyInput1" />
|
||||||
</view>
|
</view>
|
||||||
@@ -559,7 +559,8 @@
|
|||||||
let _this = this
|
let _this = this
|
||||||
_this.$api.empcardBookingSave(this.data).then((resp) => {
|
_this.$api.empcardBookingSave(this.data).then((resp) => {
|
||||||
bus.$emit('order', "监听回调");
|
bus.$emit('order', "监听回调");
|
||||||
uni.navigateBack()
|
// uni.navigateBack()
|
||||||
|
_this.$refs.nav.clickIcon()
|
||||||
|
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
_this.shortToast(e.msg)
|
_this.shortToast(e.msg)
|
||||||
@@ -597,6 +598,8 @@
|
|||||||
|
|
||||||
// ①
|
// ①
|
||||||
let shareData = JSON.stringify({
|
let shareData = JSON.stringify({
|
||||||
|
|
||||||
|
// 直接绑定 进入详情
|
||||||
params: {
|
params: {
|
||||||
code: data.code,
|
code: data.code,
|
||||||
codeKey: data.codeKey,
|
codeKey: data.codeKey,
|
||||||
@@ -604,6 +607,10 @@
|
|||||||
},
|
},
|
||||||
functionName: 'bindCard',
|
functionName: 'bindCard',
|
||||||
url: '/pages/detail/detail_affeection?sid=' + data.sid
|
url: '/pages/detail/detail_affeection?sid=' + data.sid
|
||||||
|
|
||||||
|
// 分享 绑卡
|
||||||
|
// url:'/pages/bind/bind_pickUpCard?code=' + + &codeKey=' + data.codeKey,
|
||||||
|
// FunctionName:'share!
|
||||||
})
|
})
|
||||||
// 转码传输
|
// 转码传输
|
||||||
let value = encodeURIComponent(shareData)
|
let value = encodeURIComponent(shareData)
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view
|
<view
|
||||||
style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;box-sizing: border-box;">
|
style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;box-sizing: border-box;">
|
||||||
卡号:{{data.serialNumber}}
|
窖号:{{data.serialNumber}}
|
||||||
</view>
|
</view>
|
||||||
<view style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;">
|
<view style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;">
|
||||||
{{data.time}}
|
{{data.time}}
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
<text
|
<text
|
||||||
style="font-size: 12px;color: #666666;margin-right: 10px;">总数:{{item.num}}{{item.unitName}}
|
style="font-size: 12px;color: #666666;margin-right: 10px;">总数:{{item.num}}{{item.unitName}}
|
||||||
</text>
|
</text>
|
||||||
<view style="font-size: 12px;color: #666666;">卡内剩余:{{item.lnum}}{{item.unitName}}</view>
|
<view style="font-size: 12px;color: #666666;">窖内剩余:{{item.lnum}}{{item.unitName}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -147,7 +147,7 @@
|
|||||||
|
|
||||||
<view style="display: flex;flex-direction: column;width: 100%;">
|
<view style="display: flex;flex-direction: column;width: 100%;">
|
||||||
|
|
||||||
<text style="font-size: 12px; color: #333;margin-top: 5px;">福礼卡编码:{{item.code}}</text>
|
<text style="font-size: 12px; color: #333;margin-top: 5px;">亲情窖编码:{{item.code}}</text>
|
||||||
<text style="font-size: 12px; color: #333;margin-top: 5px;">提货密码:{{item.codeKey}}</text>
|
<text style="font-size: 12px; color: #333;margin-top: 5px;">提货密码:{{item.codeKey}}</text>
|
||||||
<text style="font-size: 12px; color: #333;margin-top: 5px;">备注说明:{{item.remarks}}</text>
|
<text style="font-size: 12px; color: #333;margin-top: 5px;">备注说明:{{item.remarks}}</text>
|
||||||
|
|
||||||
@@ -157,7 +157,7 @@
|
|||||||
style="flex: 1;font-size: 12px; color: #A5A5A5; margin-right: 10px;">- {{item.goods}}</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>
|
||||||
<button v-show="item.isShare=='2'" class='sharebtn2' :data-info="item"
|
<button v-show="item.isShare=='2'" class='sharebtn2' :data-info="item"
|
||||||
open-type="share">已分享</button>
|
open-type="share">已分享</button>
|
||||||
<button v-show="item.isShare=='3'" class='sharebtn3'>转赠成功</button>
|
<button v-show="item.isShare=='3'" class='sharebtn3'>转赠成功</button>
|
||||||
@@ -252,9 +252,26 @@
|
|||||||
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({
|
||||||
|
params: {
|
||||||
|
code: data.code,
|
||||||
|
codeKey: data.codeKey,
|
||||||
|
customerSid: ''
|
||||||
|
},
|
||||||
|
functionName: 'bindCard',
|
||||||
|
url: '/pages/detail/detail_affeection?sid=' + data.sid
|
||||||
|
|
||||||
|
// url:'/pages/bind/bind_pickUpCard?code=' + + &codeKey=' + data.codeKey,
|
||||||
|
// FunctionName:'share!
|
||||||
|
})
|
||||||
|
// 转码传输
|
||||||
|
let value = encodeURIComponent(shareData)
|
||||||
|
|
||||||
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', "分享成功")
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view
|
<view
|
||||||
style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;box-sizing: border-box;">
|
style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;box-sizing: border-box;">
|
||||||
卡号:{{data.serialNumber}}
|
窖号:{{data.serialNumber}}
|
||||||
</view>
|
</view>
|
||||||
<view style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;">
|
<view style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;">
|
||||||
{{data.time}}
|
{{data.time}}
|
||||||
@@ -151,7 +151,7 @@
|
|||||||
|
|
||||||
<view style="display: flex;flex-direction: column;width: 100%;">
|
<view style="display: flex;flex-direction: column;width: 100%;">
|
||||||
|
|
||||||
<text style="font-size: 12px; color: #333;margin-top: 5px;">亲情卡编码:{{item.code}}</text>
|
<text style="font-size: 12px; color: #333;margin-top: 5px;">亲情窖编码:{{item.code}}</text>
|
||||||
<text style="font-size: 12px; color: #333;margin-top: 5px;">提货密码:{{item.codeKey}}</text>
|
<text style="font-size: 12px; color: #333;margin-top: 5px;">提货密码:{{item.codeKey}}</text>
|
||||||
<text style="font-size: 12px; color: #333;margin-top: 5px;">备注说明:{{item.remarks}}</text>
|
<text style="font-size: 12px; color: #333;margin-top: 5px;">备注说明:{{item.remarks}}</text>
|
||||||
|
|
||||||
@@ -160,7 +160,7 @@
|
|||||||
<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>
|
||||||
<button v-show="item.isShare=='2'" class='sharebtn2' :data-info="item"
|
<button v-show="item.isShare=='2'" class='sharebtn2' :data-info="item"
|
||||||
open-type="share">已分享</button>
|
open-type="share">已分享</button>
|
||||||
<button v-show="item.isShare=='3'" class='sharebtn3'>转赠成功</button>
|
<button v-show="item.isShare=='3'" class='sharebtn3'>转赠成功</button>
|
||||||
@@ -286,9 +286,9 @@
|
|||||||
" bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll">
|
" bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll">
|
||||||
|
|
||||||
<view style="display: flex;flex-direction: column;margin: 20px;">
|
<view style="display: flex;flex-direction: column;margin: 20px;">
|
||||||
<text>卡券数量</text>
|
<text>菜窖数量</text>
|
||||||
<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;"
|
||||||
type="number" :value="info.count" @input="onKeyInput3" />
|
type="number" :value="info.count" @input="onKeyInput3" />
|
||||||
</view>
|
</view>
|
||||||
@@ -591,9 +591,26 @@ this.colseDialog2()
|
|||||||
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({
|
||||||
|
params: {
|
||||||
|
code: data.code,
|
||||||
|
codeKey: data.codeKey,
|
||||||
|
customerSid: ''
|
||||||
|
},
|
||||||
|
functionName: 'bindCard',
|
||||||
|
url: '/pages/detail/detail_affeection?sid=' + data.sid
|
||||||
|
|
||||||
|
// url:'/pages/bind/bind_pickUpCard?code=' + + &codeKey=' + data.codeKey,
|
||||||
|
// FunctionName:'share!
|
||||||
|
})
|
||||||
|
// 转码传输
|
||||||
|
let value = encodeURIComponent(shareData)
|
||||||
|
|
||||||
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', "分享成功")
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view
|
<view
|
||||||
style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;box-sizing: border-box;">
|
style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;box-sizing: border-box;">
|
||||||
卡号:{{data.serialNumber}}
|
窖号:{{data.serialNumber}}
|
||||||
</view>
|
</view>
|
||||||
<view style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;">
|
<view style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;">
|
||||||
{{data.time}}
|
{{data.time}}
|
||||||
@@ -150,7 +150,7 @@
|
|||||||
|
|
||||||
<view style="display: flex;flex-direction: column;width: 100%;">
|
<view style="display: flex;flex-direction: column;width: 100%;">
|
||||||
|
|
||||||
<text style="font-size: 12px; color: #333;margin-top: 5px;">亲情卡编码:{{item.code}}</text>
|
<text style="font-size: 12px; color: #333;margin-top: 5px;">亲情窖编码:{{item.code}}</text>
|
||||||
<text style="font-size: 12px; color: #333;margin-top: 5px;">提货密码:{{item.codeKey}}</text>
|
<text style="font-size: 12px; color: #333;margin-top: 5px;">提货密码:{{item.codeKey}}</text>
|
||||||
<text style="font-size: 12px; color: #333;margin-top: 5px;">备注说明:{{item.remarks}}</text>
|
<text style="font-size: 12px; color: #333;margin-top: 5px;">备注说明:{{item.remarks}}</text>
|
||||||
|
|
||||||
@@ -160,7 +160,7 @@
|
|||||||
style="flex: 1;font-size: 12px; color: #A5A5A5; margin-right: 10px;">- {{item.goods}}</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>
|
||||||
<button v-show="item.isShare=='2'" class='sharebtn2' :data-info="item"
|
<button v-show="item.isShare=='2'" class='sharebtn2' :data-info="item"
|
||||||
open-type="share">已分享</button>
|
open-type="share">已分享</button>
|
||||||
<button v-show="item.isShare=='3'" class='sharebtn3'>转赠成功</button>
|
<button v-show="item.isShare=='3'" class='sharebtn3'>转赠成功</button>
|
||||||
@@ -257,9 +257,26 @@
|
|||||||
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({
|
||||||
|
params: {
|
||||||
|
code: data.code,
|
||||||
|
codeKey: data.codeKey,
|
||||||
|
customerSid: ''
|
||||||
|
},
|
||||||
|
functionName: 'bindCard',
|
||||||
|
url: '/pages/detail/detail_affeection?sid=' + data.sid
|
||||||
|
|
||||||
|
// url:'/pages/bind/bind_pickUpCard?code=' + + &codeKey=' + data.codeKey,
|
||||||
|
// FunctionName:'share!
|
||||||
|
})
|
||||||
|
// 转码传输
|
||||||
|
let value = encodeURIComponent(shareData)
|
||||||
|
|
||||||
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', "分享成功")
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
<z-paging ref="paging" v-model="data" :pagingStyle='styleObject' @query="queryList" :refresher-enabled="true">
|
<z-paging ref="paging" v-model="data" :pagingStyle='styleObject' @query="queryList" :refresher-enabled="true">
|
||||||
|
|
||||||
<view style="display: flex;flex-direction: row;justify-content: space-between;
|
<view style="display: flex;flex-direction: row;justify-content: space-between;
|
||||||
margin:5px 20px 0px 20px;padding-bottom: 20px; border-bottom: 2px #EFEFEF solid;">
|
margin:5px 20px 0px 20px;padding-bottom: 10px; border-bottom: 2px #EFEFEF solid;">
|
||||||
<view style="display: flex;flex-direction: row;align-items: center;">
|
<view style="display: flex;flex-direction: row;align-items: center;">
|
||||||
<view style="background: #FF9900; border-radius: 50%;width: 12px;height: 12px;"></view>
|
<view style="background: #FF9900; border-radius: 50%;width: 12px;height: 12px;"></view>
|
||||||
<view style="background: #FFCC7F; border-radius: 50%;width: 12px;height: 12px;"></view>
|
<view style="background: #FFCC7F; border-radius: 50%;width: 12px;height: 12px;"></view>
|
||||||
@@ -66,7 +66,7 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
<text style="color: #FF5006;font-size: 14px;">¥{{item.price}}</text>
|
<text style="color: #FF5006;font-size: 14px;">¥{{this.convertPrice(item.price) }}</text>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,10 @@
|
|||||||
style="height: 45px;line-height: 45px;font-size: 17px;font-weight: 600; text-align: center;color: #FF7100;margin-left: 11px;">绑定新卡</text>
|
style="height: 45px;line-height: 45px;font-size: 17px;font-weight: 600; text-align: center;color: #FF7100;margin-left: 11px;">绑定新卡</text>
|
||||||
</view> -->
|
</view> -->
|
||||||
<view style="flex: 1;"></view>
|
<view style="flex: 1;"></view>
|
||||||
<text style="color: #fff;margin-top: 60vw; margin-right: 25px;" @click="bind">绑定新卡</text>
|
<!-- <text style="color: #fff;margin-top: 60vw; margin-right: 25px;" @click="bind">绑定新卡</text> -->
|
||||||
|
<image @click="bind" src="https://supervise.yxtsoft.com/lpk/image/bind2.png"
|
||||||
|
style="margin-top: 60vw; margin-right: 25px;width: 20px;height: 20px;">
|
||||||
|
</image>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
@@ -54,7 +57,7 @@
|
|||||||
|
|
||||||
<view style="flex: 1;display: flex;flex-direction: column;">
|
<view style="flex: 1;display: flex;flex-direction: column;">
|
||||||
<text class="_ellipsis"
|
<text class="_ellipsis"
|
||||||
style="font-size: 13px;color: #333;width: calc(100vw - 190px);">卡号:{{item.serialNumber}}</text>
|
style="font-size: 13px;color: #333;width: calc(100vw - 190px);">窖号:{{item.serialNumber}}</text>
|
||||||
<text lass="_ellipsis"
|
<text lass="_ellipsis"
|
||||||
style="font-size: 12px;color: #999;margin-top: 5px;width: calc(100vw - 182px);">
|
style="font-size: 12px;color: #999;margin-top: 5px;width: calc(100vw - 182px);">
|
||||||
{{item.time}}</text>
|
{{item.time}}</text>
|
||||||
@@ -76,18 +79,17 @@
|
|||||||
|
|
||||||
<view style="height: 10px;"></view>
|
<view style="height: 10px;"></view>
|
||||||
|
|
||||||
<view v-for="(item,index) in 1"
|
<view v-for="(child,pos) in item.list" :key="pos"
|
||||||
style="display: flex;flex-direction: row;align-items: center;width: calc(100vw - 120px);padding-top: 5px;">
|
style="display: flex;flex-direction: row;align-items: center;width: calc(100vw - 120px);padding-top: 5px;">
|
||||||
<image src="../../static/tck_mx_icon.png" style="width: 9px;height: 9px;"></image>
|
<image src="../../static/tck_mx_icon.png" style="width: 9px;height: 9px;"></image>
|
||||||
<view
|
<view
|
||||||
style="font-size: 11px;color: #E99D42;padding-left: 5px;flex: 1;overflow: hidden;text-overflow: ellipsis;white-space: nowrap">
|
style="font-size: 11px;color: #E99D42;padding-left: 5px;flex: 1;overflow: hidden;text-overflow: ellipsis;white-space: nowrap">
|
||||||
东北大白菜东北大白菜东北大白菜东北大白菜</view>
|
{{child.goodsName}}</view>
|
||||||
<view style="font-size: 11px;color: #E99D42;flex-shrink: 0;margin-left: 23px;">
|
<view style="font-size: 11px;color: #E99D42;flex-shrink: 0;margin-left: 23px;">
|
||||||
剩余4份/共10份</view>
|
{{child.content}}</view>
|
||||||
<view style="font-size: 11px;color: #E99D42;flex-shrink: 0;margin-left: 23px;">5斤/份
|
<view style="font-size: 11px;color: #E99D42;flex-shrink: 0;margin-left: 23px;">{{child.remarks}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
@@ -123,7 +125,7 @@
|
|||||||
|
|
||||||
<view style="flex: 1;display: flex;flex-direction: column;">
|
<view style="flex: 1;display: flex;flex-direction: column;">
|
||||||
<text class="_ellipsis"
|
<text class="_ellipsis"
|
||||||
style="font-size: 13px;color: #333;width: calc(100vw - 190px);">卡号:{{item.serialNumber}}</text>
|
style="font-size: 13px;color: #333;width: calc(100vw - 190px);">窖号:{{item.serialNumber}}</text>
|
||||||
<text lass="_ellipsis"
|
<text lass="_ellipsis"
|
||||||
style="font-size: 12px;color: #999;margin-top: 5px;width: calc(100vw - 182px);">
|
style="font-size: 12px;color: #999;margin-top: 5px;width: calc(100vw - 182px);">
|
||||||
{{item.time}}</text>
|
{{item.time}}</text>
|
||||||
@@ -179,7 +181,7 @@
|
|||||||
|
|
||||||
<view style="flex: 1;display: flex;flex-direction: column;">
|
<view style="flex: 1;display: flex;flex-direction: column;">
|
||||||
<text class="_ellipsis"
|
<text class="_ellipsis"
|
||||||
style="font-size: 13px;color: #333;width: calc(100vw - 190px);">卡号:{{item.serialNumber}}</text>
|
style="font-size: 13px;color: #333;width: calc(100vw - 190px);">窖号:{{item.serialNumber}}</text>
|
||||||
<text lass="_ellipsis"
|
<text lass="_ellipsis"
|
||||||
style="font-size: 12px;color: #999;margin-top: 5px;width: calc(100vw - 182px);">
|
style="font-size: 12px;color: #999;margin-top: 5px;width: calc(100vw - 182px);">
|
||||||
{{item.time}}</text>
|
{{item.time}}</text>
|
||||||
@@ -372,6 +374,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
|
width: calc(100% - 5px);
|
||||||
|
background-color: rgba(255, 248, 248, 1);
|
||||||
|
color: rgba(16, 16, 16, 1);
|
||||||
|
box-shadow: 2px 3px 6px 0px rgba(255, 226, 222, 0.62);
|
||||||
|
}
|
||||||
|
|
||||||
|
.item2 {
|
||||||
|
/* 加载背景图 */
|
||||||
|
/* background-image: url(https://supervise.yxtsoft.com/lpk/image/home_itemBj_lose.png); */
|
||||||
|
/* 让背景图基于容器大小伸缩 */
|
||||||
|
/* background-size: 100% 100%; */
|
||||||
|
/* width: calc(100% - 5px); */
|
||||||
|
|
||||||
width: calc(100% - 5px);
|
width: calc(100% - 5px);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
background-color: rgba(255, 251, 248, 1);
|
background-color: rgba(255, 251, 248, 1);
|
||||||
@@ -379,46 +394,60 @@
|
|||||||
box-shadow: 2px 3px 6px 0px rgba(238, 117, 47, 0.15);
|
box-shadow: 2px 3px 6px 0px rgba(238, 117, 47, 0.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
.item2 {
|
|
||||||
/* 加载背景图 */
|
|
||||||
background-image: url(https://supervise.yxtsoft.com/lpk/image/home_itemBj_lose.png);
|
|
||||||
/* 让背景图基于容器大小伸缩 */
|
|
||||||
background-size: 100% 100%;
|
|
||||||
width: calc(100% - 5px);
|
|
||||||
}
|
|
||||||
|
|
||||||
.item3 {
|
.item3 {
|
||||||
/* 加载背景图 */
|
/* 加载背景图 */
|
||||||
background-image: url(https://supervise.yxtsoft.com/lpk/image/home_itemBj_affection.png);
|
/* background-image: url(https://supervise.yxtsoft.com/lpk/image/home_itemBj_affection.png); */
|
||||||
/* 让背景图基于容器大小伸缩 */
|
/* 让背景图基于容器大小伸缩 */
|
||||||
background-size: 100% 100%;
|
/* background-size: 100% 100%; */
|
||||||
width: calc(100% - 5px);
|
/* width: calc(100% - 5px); */
|
||||||
|
|
||||||
|
border-radius: 8px;
|
||||||
|
background-color: rgba(255, 254, 249, 1);
|
||||||
|
color: rgba(16, 16, 16, 1);
|
||||||
|
box-shadow: 2px 3px 6px 0px rgba(224, 218, 168, 0.24);
|
||||||
}
|
}
|
||||||
|
|
||||||
.item4 {
|
.item4 {
|
||||||
/* 加载背景图 */
|
/* 加载背景图 */
|
||||||
background-image: url(https://supervise.yxtsoft.com/lpk/image/home_itemBj_lose.png);
|
/* background-image: url(https://supervise.yxtsoft.com/lpk/image/home_itemBj_lose.png); */
|
||||||
/* 让背景图基于容器大小伸缩 */
|
/* 让背景图基于容器大小伸缩 */
|
||||||
background-size: 100% 100%;
|
/* background-size: 100% 100%; */
|
||||||
width: calc(100% - 5px);
|
/* width: calc(100% - 5px); */
|
||||||
|
|
||||||
|
width: calc(100% - 5px);
|
||||||
|
border-radius: 8px;
|
||||||
|
background-color: rgba(255, 251, 248, 1);
|
||||||
|
color: rgba(16, 16, 16, 1);
|
||||||
|
box-shadow: 2px 3px 6px 0px rgba(238, 117, 47, 0.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.item5 {
|
.item5 {
|
||||||
/* 加载背景图 */
|
/* 加载背景图 */
|
||||||
background-image: url(https://supervise.yxtsoft.com/lpk/image/home_itemBj_enterprise.png);
|
/* background-image: url(https://supervise.yxtsoft.com/lpk/image/home_itemBj_enterprise.png); */
|
||||||
/* 让背景图基于容器大小伸缩 */
|
/* 让背景图基于容器大小伸缩 */
|
||||||
background-size: 100% 100%;
|
/* background-size: 100% 100%; */
|
||||||
|
/* width: calc(100% - 5px); */
|
||||||
|
|
||||||
width: calc(100% - 5px);
|
width: calc(100% - 5px);
|
||||||
|
border-radius: 8px;
|
||||||
|
background-color: rgba(255, 251, 248, 1);
|
||||||
|
color: rgba(16, 16, 16, 1);
|
||||||
|
box-shadow: 2px 3px 6px 0px rgba(238, 117, 47, 0.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
.item6 {
|
.item6 {
|
||||||
/* 加载背景图 */
|
/* 加载背景图 */
|
||||||
background-image: url(https://supervise.yxtsoft.com/lpk/image/home_itemBj_lose.png);
|
/* background-image: url(https://supervise.yxtsoft.com/lpk/image/home_itemBj_lose.png); */
|
||||||
/* 让背景图基于容器大小伸缩 */
|
/* 让背景图基于容器大小伸缩 */
|
||||||
background-size: 100% 100%;
|
/* background-size: 100% 100%; */
|
||||||
|
/* width: calc(100% - 5px); */
|
||||||
|
|
||||||
width: calc(100% - 5px);
|
width: calc(100% - 5px);
|
||||||
|
border-radius: 8px;
|
||||||
|
background-color: rgba(255, 251, 248, 1);
|
||||||
|
color: rgba(16, 16, 16, 1);
|
||||||
|
box-shadow: 2px 3px 6px 0px rgba(238, 117, 47, 0.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -80,7 +80,7 @@
|
|||||||
<text style="color: #FE801A; font-size: 18px;">{{item.bagName}}</text>
|
<text style="color: #FE801A; font-size: 18px;">{{item.bagName}}</text>
|
||||||
|
|
||||||
<view style=" display: flex;flex-direction: row;align-items: center;margin-top: 5px;">
|
<view style=" display: flex;flex-direction: row;align-items: center;margin-top: 5px;">
|
||||||
<text style="color: #333; font-size: 14px;">卡    号:</text>
|
<text style="color: #333; font-size: 14px;">窖    号:</text>
|
||||||
<text style="color: #333; font-size: 14px;">{{item.serialNumber}}</text>
|
<text style="color: #333; font-size: 14px;">{{item.serialNumber}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view style=" display: flex;flex-direction: row;align-items: center;margin-top: 5px;">
|
<view style=" display: flex;flex-direction: row;align-items: center;margin-top: 5px;">
|
||||||
@@ -134,7 +134,7 @@
|
|||||||
<text style="color: #FE801A; font-size: 18px;">{{item.bagName}}</text>
|
<text style="color: #FE801A; font-size: 18px;">{{item.bagName}}</text>
|
||||||
|
|
||||||
<view style=" display: flex;flex-direction: row;align-items: center;margin-top: 5px;">
|
<view style=" display: flex;flex-direction: row;align-items: center;margin-top: 5px;">
|
||||||
<text style="color: #333; font-size: 14px;">卡    号:</text>
|
<text style="color: #333; font-size: 14px;">窖    号:</text>
|
||||||
<text style="color: #333; font-size: 14px;">{{item.serialNumber}}</text>
|
<text style="color: #333; font-size: 14px;">{{item.serialNumber}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view style=" display: flex;flex-direction: row;align-items: center;margin-top: 5px;">
|
<view style=" display: flex;flex-direction: row;align-items: center;margin-top: 5px;">
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
<text style="color: #FE801A; font-size: 18px;">{{item.bagName}}</text>
|
<text style="color: #FE801A; font-size: 18px;">{{item.bagName}}</text>
|
||||||
|
|
||||||
<view style=" display: flex;flex-direction: row;align-items: center;margin-top: 5px;">
|
<view style=" display: flex;flex-direction: row;align-items: center;margin-top: 5px;">
|
||||||
<text style="color: #333; font-size: 14px;">卡    号:</text>
|
<text style="color: #333; font-size: 14px;">窖    号:</text>
|
||||||
<text style="color: #333; font-size: 14px;">{{item.serialNumber}}</text>
|
<text style="color: #333; font-size: 14px;">{{item.serialNumber}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view style=" display: flex;flex-direction: row;align-items: center;margin-top: 5px;">
|
<view style=" display: flex;flex-direction: row;align-items: center;margin-top: 5px;">
|
||||||
@@ -81,7 +81,7 @@
|
|||||||
<text style="color: #FE801A; font-size: 18px;">{{item.bagName}}</text>
|
<text style="color: #FE801A; font-size: 18px;">{{item.bagName}}</text>
|
||||||
|
|
||||||
<view style=" display: flex;flex-direction: row;align-items: center;margin-top: 5px;">
|
<view style=" display: flex;flex-direction: row;align-items: center;margin-top: 5px;">
|
||||||
<text style="color: #333; font-size: 14px;">卡    号:</text>
|
<text style="color: #333; font-size: 14px;">窖    号:</text>
|
||||||
<text style="color: #333; font-size: 14px;">{{item.serialNumber}}</text>
|
<text style="color: #333; font-size: 14px;">{{item.serialNumber}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view style=" display: flex;flex-direction: row;align-items: center;margin-top: 5px;">
|
<view style=" display: flex;flex-direction: row;align-items: center;margin-top: 5px;">
|
||||||
@@ -135,7 +135,7 @@
|
|||||||
<text style="color: #FE801A; font-size: 18px;">{{item.bagName}}</text>
|
<text style="color: #FE801A; font-size: 18px;">{{item.bagName}}</text>
|
||||||
|
|
||||||
<view style=" display: flex;flex-direction: row;align-items: center;margin-top: 5px;">
|
<view style=" display: flex;flex-direction: row;align-items: center;margin-top: 5px;">
|
||||||
<text style="color: #333; font-size: 14px;">卡    号:</text>
|
<text style="color: #333; font-size: 14px;">窖    号:</text>
|
||||||
<text style="color: #333; font-size: 14px;">{{item.serialNumber}}</text>
|
<text style="color: #333; font-size: 14px;">{{item.serialNumber}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view style=" display: flex;flex-direction: row;align-items: center;margin-top: 5px;">
|
<view style=" display: flex;flex-direction: row;align-items: center;margin-top: 5px;">
|
||||||
|
|||||||
Reference in New Issue
Block a user