Browse Source

11111

master
guoxing 1 year ago
parent
commit
004d650c6e
  1. 6
      main.js
  2. 4
      pages/bind/bind_pickUpCard.vue
  3. 4
      pages/bind/bind_pickUpCard2.vue
  4. 27
      pages/cloud/detail_cloudCard.vue
  5. 76
      pages/cloud/optionalCard.vue
  6. 29
      pages/detail/detail_affeection.vue
  7. 25
      pages/detail/detail_affeection2.vue
  8. 21
      pages/detail/detail_enterprise.vue
  9. 31
      pages/detail/detail_enterprise2.vue
  10. 29
      pages/detail/detail_family.vue
  11. 25
      pages/detail/detail_family2.vue
  12. 4
      pages/home/cloudCard.vue
  13. 77
      pages/home/pickUpCard.vue
  14. 4
      pages/home/recordList.vue
  15. 6
      pages/home/recordList2.vue

6
main.js

@ -35,10 +35,16 @@ import bus from './common/bus.js';
//挂载到this上
Vue.prototype.$bus = bus;
import {pay} from './uni_modules/common-pay/utils/pay.js'
//挂载到this上
Vue.prototype.$pay = pay;
import {convertPrice} from './common/price.js'
//挂载到this上
Vue.prototype.convertPrice = convertPrice;
const app = new Vue({
store,
...App

4
pages/bind/bind_pickUpCard.vue

@ -2,7 +2,7 @@
<view style="display: flex;flex-direction: column;background-color: #fff;">
<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">
</NavBar>
<view>
@ -42,7 +42,7 @@
<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: #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>
<text style="margin-left: 8px;font-size: 14px;color: #333;margin-top: 20px;">提货编码</text>

4
pages/bind/bind_pickUpCard2.vue

@ -5,7 +5,7 @@
<view style="display: flex;flex-direction: column;background-color: #fff;">
<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">
</NavBar>
<view>
@ -45,7 +45,7 @@
<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: #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>
<text style="margin-left: 8px;font-size: 14px;color: #333;margin-top: 20px;">提货编码</text>

27
pages/cloud/detail_cloudCard.vue

@ -16,7 +16,7 @@
<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="background: #FF9900; 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 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"
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>
@ -43,7 +43,7 @@
<view
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%;">
@ -54,20 +54,20 @@
</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
style="display: flex;flex-direction: row;justify-content:space-between;margin-top: 5px;">
<view style="display: flex;flex-direction: row;">
<text style="border: 1px #EE752F solid; border-radius: 10px; color:#EE752F ; font-size: 14px;
margin-right: 20px;padding: 0px 8px;">{{item.jprice}}/{{item.specificationUnit}}</text>
<text style="border: 1px #EE752F solid; border-radius: 10px; color:#EE752F ; font-size: 10px;
margin-right: 20px;padding: 0px 5px;">{{item.jprice}}/{{item.specificationUnit}}</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>
<text style="color: #FF5006;font-size: 14px;">{{item.totalValue}}</text>
<text style="color: #FF5006;font-size: 15px;">{{item.totalValue}}</text>
</view>
@ -140,8 +140,17 @@
this.page.endHeight = info.windowWidth * 0.8
this.request()
uni.$on("pay", (e) => {
uni.switchTab({
url: '/pages/home/pickUpCard'
})
})
},
onUnload() {
uni.$off('pay');
},
onPageScroll(res) {
//
this.$refs.nav.defaultColorBgAlpha(res)

76
pages/cloud/optionalCard.vue

@ -16,7 +16,7 @@
<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
style="display: flex;flex-direction: row;align-items: center; justify-content: space-between;">
@ -28,23 +28,17 @@
</view>
<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"
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 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 v-for="(item,index) in data" :key="index" @click="itemClick(item.goodsSid)"
style="display: flex;flex-direction: column;margin-top: 14px; ">
style="display: flex;flex-direction: column;margin-top: 14px;">
<view :style="{'border-bottom':(index===data.length-1 ? 'none':'1px #EFEFEF solid')}" style="display: flex;flex-direction: column;
margin-left: 20px;margin-right: 20px;padding-bottom: 10px;">
@ -52,7 +46,7 @@
<view
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%;">
@ -71,14 +65,14 @@
style="display: flex;flex-direction: row;justify-content:space-between;margin-top: 5px;">
<view style="display: flex;flex-direction: row;">
<text style="border: 1px #EE752F solid; border-radius: 10px; color:#EE752F ; font-size: 14px;
margin-right: 20px;padding: 0px 8px;">{{item.jprice}}/{{item.specificationUnit}}</text>
<text style="border: 1px #EE752F solid; border-radius: 10px; color:#EE752F ; font-size: 10px;
margin-right: 20px;padding: 0px 5px;">{{item.jprice}}/{{item.specificationUnit}}</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>
<text style="color: #FF5006;font-size: 14px;">{{item.price}}</text>
<text style="color: #FF5006;font-size: 15px;">{{item.price}}</text>
</view>
@ -92,26 +86,38 @@
</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;
display: flex;flex-direction: row; width: 100%;flex-shrink: 1;">
<view style="background-color: #fff;position: fixed;bottom: 0;overflow:hidden;
display: flex;flex-direction: column; width: 100%;flex-shrink: 1;">
<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="flex: 1; display: flex;flex-direction: row;align-items: center; margin-right: 30px;
<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;">
<view style="display: flex;flex-direction: row;align-items: center;">
<text style="color: #888;font-size: 14px;">合计</text>
<text style="color: #F0752F;font-size: 18px;">{{page.price}}</text>
<view style="display: flex;flex-direction: row;align-items: center;">
<text style="color: #888;font-size: 14px;">合计</text>
<text style="color: #F0752F;font-size: 18px;">{{page.price}}</text>
</view>
</view>
</view>
<text
style="background: #EE752F; text-align: center; color: #fff; border-radius: 5px;padding: 5px 20px; margin-right: 40px; "
@click="settlement()">结算</text>
<text
style="background: #EE752F; text-align: center; color: #fff; border-radius: 5px;padding: 5px 20px; margin-right: 40px; "
@click="settlement()">结算</text>
</view>
</view>
</loading-state>
</view>
@ -149,8 +155,17 @@
this.page.endHeight = info.windowWidth * 0.8
this.request()
uni.$on("pay", (e) => {
uni.switchTab({
url: '/pages/home/pickUpCard'
})
})
},
onUnload() {
uni.$off('pay');
},
methods: {
itemClick(goodsSid) {
uni.navigateTo({
@ -191,7 +206,7 @@
let num = 0;
for (var i = 0; i < this.data.length; i++) {
num += Number(this.data[i].jprice) * Number(this.data[i].goodsNumber)* Number(this.data[i].weight);
num += Number(this.data[i].jprice) * Number(this.data[i].goodsNumber) * Number(this.data[i].weight);
}
console.log("num", num)
@ -244,8 +259,8 @@
})
}
// console.log("ddd", list);
if(list.length==0){
if (list.length == 0) {
this.shortToast('请添加商品')
return
}
@ -262,9 +277,8 @@
_this.$api.createOrder(params).then((resp) => {
// console.log("resp", resp);
this.$pay(resp)
}).catch(e => {
})
this.$pay(resp)
}).catch(e => {})
}

29
pages/detail/detail_affeection.vue

@ -12,7 +12,7 @@
</view>
<view
style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;box-sizing: border-box;">
{{data.serialNumber}}
{{data.serialNumber}}
</view>
<view style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;">
{{data.time}}
@ -153,7 +153,7 @@
<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.remarks}}</text>
@ -162,7 +162,7 @@
<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>
open-type="share">分享</button>
<button v-show="item.isShare=='2'" class='sharebtn2' :data-info="item"
open-type="share">已分享</button>
<button v-show="item.isShare=='3'" class='sharebtn3'>转赠成功</button>
@ -289,9 +289,9 @@
<view style="display: flex;flex-direction: column;margin: 20px;">
<text>卡券数量</text>
<text>菜窖数量</text>
<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;"
type="number" :value="info.count" @input="onKeyInput3" />
</view>
@ -588,9 +588,26 @@
console.log("data", res.target.dataset)
var data = res.target.dataset.info
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 {
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', "分享成功")

25
pages/detail/detail_affeection2.vue

@ -12,7 +12,7 @@
</view>
<view
style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;box-sizing: border-box;">
{{data.serialNumber}}
{{data.serialNumber}}
</view>
<view style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;">
{{data.time}}
@ -149,7 +149,7 @@
<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.remarks}}</text>
@ -159,7 +159,7 @@
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>
open-type="share">分享</button>
<button v-show="item.isShare=='2'" class='sharebtn2' :data-info="item"
open-type="share">已分享</button>
<button v-show="item.isShare=='3'" class='sharebtn3'>转赠成功</button>
@ -256,9 +256,26 @@
console.log("data", res.target.dataset)
var data = res.target.dataset.info
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 {
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', "分享成功")

21
pages/detail/detail_enterprise.vue

@ -12,7 +12,7 @@
</view>
<view
style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;box-sizing: border-box;">
{{data.serialNumber}}
{{data.serialNumber}}
</view>
<view style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;">
{{data.time}}
@ -68,7 +68,7 @@
<text
style="font-size: 12px;color: #666666;margin-right: 10px;">总数{{item.num}}{{item.unitName}}
</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>
@ -151,7 +151,7 @@
<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.remarks}}</text>
@ -161,7 +161,7 @@
{{item.goods}}</text>
<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"
open-type="share">已分享</button>
<button v-show="item.isShare=='3'" class='sharebtn3'>转赠成功</button>
@ -215,9 +215,9 @@
</view> -->
<view style="display: flex;flex-direction: column;margin: 20px;">
<text>卡券数量</text>
<text>菜窖数量</text>
<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;"
type="number" :value="info.count" @input="onKeyInput1" />
</view>
@ -559,7 +559,8 @@
let _this = this
_this.$api.empcardBookingSave(this.data).then((resp) => {
bus.$emit('order', "监听回调");
uni.navigateBack()
// uni.navigateBack()
_this.$refs.nav.clickIcon()
}).catch(e => {
_this.shortToast(e.msg)
@ -597,6 +598,8 @@
//
let shareData = JSON.stringify({
//
params: {
code: data.code,
codeKey: data.codeKey,
@ -604,6 +607,10 @@
},
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)

31
pages/detail/detail_enterprise2.vue

@ -12,7 +12,7 @@
</view>
<view
style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;box-sizing: border-box;">
{{data.serialNumber}}
{{data.serialNumber}}
</view>
<view style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;">
{{data.time}}
@ -64,7 +64,7 @@
<text
style="font-size: 12px;color: #666666;margin-right: 10px;">总数{{item.num}}{{item.unitName}}
</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>
@ -147,7 +147,7 @@
<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.remarks}}</text>
@ -157,7 +157,7 @@
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>
open-type="share">分享</button>
<button v-show="item.isShare=='2'" class='sharebtn2' :data-info="item"
open-type="share">已分享</button>
<button v-show="item.isShare=='3'" class='sharebtn3'>转赠成功</button>
@ -252,16 +252,33 @@
console.log("data", res.target.dataset)
var data = res.target.dataset.info
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 {
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',"分享成功")
console.log('aaaa', "分享成功")
},
fail: function(res) {
//
console.log('aaaa',"用户点击了取消")
console.log('aaaa', "用户点击了取消")
}
}
},

29
pages/detail/detail_family.vue

@ -12,7 +12,7 @@
</view>
<view
style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;box-sizing: border-box;">
{{data.serialNumber}}
{{data.serialNumber}}
</view>
<view style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;">
{{data.time}}
@ -151,7 +151,7 @@
<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.remarks}}</text>
@ -160,7 +160,7 @@
<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>
open-type="share">分享</button>
<button v-show="item.isShare=='2'" class='sharebtn2' :data-info="item"
open-type="share">已分享</button>
<button v-show="item.isShare=='3'" class='sharebtn3'>转赠成功</button>
@ -286,9 +286,9 @@
" bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll">
<view style="display: flex;flex-direction: column;margin: 20px;">
<text>卡券数量</text>
<text>菜窖数量</text>
<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;"
type="number" :value="info.count" @input="onKeyInput3" />
</view>
@ -591,9 +591,26 @@ this.colseDialog2()
console.log("data", res.target.dataset)
var data = res.target.dataset.info
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 {
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', "分享成功")

25
pages/detail/detail_family2.vue

@ -12,7 +12,7 @@
</view>
<view
style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;box-sizing: border-box;">
{{data.serialNumber}}
{{data.serialNumber}}
</view>
<view style="font-size: 12px;color: white;line-height: 7vw;height: 7vw;color: #fff;">
{{data.time}}
@ -150,7 +150,7 @@
<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.remarks}}</text>
@ -160,7 +160,7 @@
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>
open-type="share">分享</button>
<button v-show="item.isShare=='2'" class='sharebtn2' :data-info="item"
open-type="share">已分享</button>
<button v-show="item.isShare=='3'" class='sharebtn3'>转赠成功</button>
@ -257,9 +257,26 @@
console.log("data", res.target.dataset)
var data = res.target.dataset.info
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 {
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', "分享成功")

4
pages/home/cloudCard.vue

@ -19,7 +19,7 @@
<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;
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="background: #FF9900; 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>
<text style="color: #FF5006;font-size: 14px;">{{item.price}}</text>
<text style="color: #FF5006;font-size: 14px;">{{this.convertPrice(item.price) }}</text>
</view>

77
pages/home/pickUpCard.vue

@ -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>
</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>
@ -54,7 +57,7 @@
<view style="flex: 1;display: flex;flex-direction: column;">
<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"
style="font-size: 12px;color: #999;margin-top: 5px;width: calc(100vw - 182px);">
{{item.time}}</text>
@ -76,18 +79,17 @@
<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;">
<image src="../../static/tck_mx_icon.png" style="width: 9px;height: 9px;"></image>
<view
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;">
剩余4份/共10份</view>
<view style="font-size: 11px;color: #E99D42;flex-shrink: 0;margin-left: 23px;">5/
{{child.content}}</view>
<view style="font-size: 11px;color: #E99D42;flex-shrink: 0;margin-left: 23px;">{{child.remarks}}
</view>
</view>
</view>
</view>
@ -123,7 +125,7 @@
<view style="flex: 1;display: flex;flex-direction: column;">
<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"
style="font-size: 12px;color: #999;margin-top: 5px;width: calc(100vw - 182px);">
{{item.time}}</text>
@ -179,7 +181,7 @@
<view style="flex: 1;display: flex;flex-direction: column;">
<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"
style="font-size: 12px;color: #999;margin-top: 5px;width: calc(100vw - 182px);">
{{item.time}}</text>
@ -373,52 +375,79 @@
.item {
width: calc(100% - 5px);
border-radius: 8px;
background-color: rgba(255, 251, 248, 1);
background-color: rgba(255, 248, 248, 1);
color: rgba(16, 16, 16, 1);
box-shadow: 2px 3px 6px 0px rgba(238, 117, 47, 0.15);
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-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);
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);
}
.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%;
width: calc(100% - 5px);
/* background-size: 100% 100%; */
/* 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 {
/* 加载背景图 */
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%;
width: calc(100% - 5px);
/* background-size: 100% 100%; */
/* 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 {
/* 加载背景图 */
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);
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 {
/* 加载背景图 */
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);
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);
}

4
pages/home/recordList.vue

@ -80,7 +80,7 @@
<text style="color: #FE801A; font-size: 18px;">{{item.bagName}}</text>
<view style=" display: flex;flex-direction: row;align-items: center;margin-top: 5px;">
<text style="color: #333; font-size: 14px;">&ensp;&ensp;&ensp;&ensp;</text>
<text style="color: #333; font-size: 14px;">&ensp;&ensp;&ensp;&ensp;</text>
<text style="color: #333; font-size: 14px;">{{item.serialNumber}}</text>
</view>
<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>
<view style=" display: flex;flex-direction: row;align-items: center;margin-top: 5px;">
<text style="color: #333; font-size: 14px;">&ensp;&ensp;&ensp;&ensp;</text>
<text style="color: #333; font-size: 14px;">&ensp;&ensp;&ensp;&ensp;</text>
<text style="color: #333; font-size: 14px;">{{item.serialNumber}}</text>
</view>
<view style=" display: flex;flex-direction: row;align-items: center;margin-top: 5px;">

6
pages/home/recordList2.vue

@ -25,7 +25,7 @@
<text style="color: #FE801A; font-size: 18px;">{{item.bagName}}</text>
<view style=" display: flex;flex-direction: row;align-items: center;margin-top: 5px;">
<text style="color: #333; font-size: 14px;">&ensp;&ensp;&ensp;&ensp;</text>
<text style="color: #333; font-size: 14px;">&ensp;&ensp;&ensp;&ensp;</text>
<text style="color: #333; font-size: 14px;">{{item.serialNumber}}</text>
</view>
<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>
<view style=" display: flex;flex-direction: row;align-items: center;margin-top: 5px;">
<text style="color: #333; font-size: 14px;">&ensp;&ensp;&ensp;&ensp;</text>
<text style="color: #333; font-size: 14px;">&ensp;&ensp;&ensp;&ensp;</text>
<text style="color: #333; font-size: 14px;">{{item.serialNumber}}</text>
</view>
<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>
<view style=" display: flex;flex-direction: row;align-items: center;margin-top: 5px;">
<text style="color: #333; font-size: 14px;">&ensp;&ensp;&ensp;&ensp;</text>
<text style="color: #333; font-size: 14px;">&ensp;&ensp;&ensp;&ensp;</text>
<text style="color: #333; font-size: 14px;">{{item.serialNumber}}</text>
</view>
<view style=" display: flex;flex-direction: row;align-items: center;margin-top: 5px;">

Loading…
Cancel
Save