|
|
@@ -1,5 +1,9 @@
|
|
|
<template>
|
|
|
<view >
|
|
|
+
|
|
|
+ <!-- 扫一扫错误回调 -->
|
|
|
+ <u-modal title="扫描异常" confirm-color="#dc9b21" v-model="scanNotify.scan" :content="scanNotify.scanMessage"></u-modal>
|
|
|
+
|
|
|
<view style="position: relative;">
|
|
|
<image src="../../static/img/bg.png" class="bg-img"></image>
|
|
|
<image src="../../static/img/bg-yin.png" class="shuiyin" mode=""></image>
|
|
|
@@ -17,7 +21,7 @@
|
|
|
</view>
|
|
|
|
|
|
<view class="cu-list grid col-3 no-border" style="border-radius:20rpx ;">
|
|
|
- <view class="cu-item" @click="$jump(item.path)" v-for="(item,index) in menuList" :key="index">
|
|
|
+ <view class="cu-item" @click="item.name=='扫一扫'? scanCode() :$jump(item.path)" v-for="(item,index) in menuList" :key="index">
|
|
|
<view class="grid-icon" >
|
|
|
<image style="width: 66rpx;height: 66rpx;" :src="item.icon"/>
|
|
|
</view>
|
|
|
@@ -119,19 +123,21 @@
|
|
|
|
|
|
<script>
|
|
|
export default {
|
|
|
+
|
|
|
data() {
|
|
|
return {
|
|
|
+ scanNotify:{scan: false,scanMessage:'扫描错误,请稍后重试!' },
|
|
|
toumindu: 0.00,
|
|
|
menuList:[
|
|
|
{
|
|
|
icon:'/static/icon/scan.png',
|
|
|
name:'扫一扫',
|
|
|
- path:'/pages/mine/card/card'
|
|
|
+ path:'/pages/checkstand/index'
|
|
|
},
|
|
|
{
|
|
|
icon:'/static/icon/pay.png',
|
|
|
name:'付款码',
|
|
|
- path:'/pages/mine/card/card'
|
|
|
+ path:'/pages/checkstand/pay-qrcode'
|
|
|
},
|
|
|
{
|
|
|
icon:'/static/icon/card.png',
|
|
|
@@ -184,11 +190,22 @@
|
|
|
onPageScroll(obj){
|
|
|
this.toumindu = obj.scrollTop*0.006;
|
|
|
},
|
|
|
- onLoad() {
|
|
|
|
|
|
- },
|
|
|
methods: {
|
|
|
-
|
|
|
+ scanCode(){
|
|
|
+ const _this = this;
|
|
|
+ this.$jump('/pages/checkstand/index')
|
|
|
+ // uni.scanCode({
|
|
|
+ // success: function (res) {
|
|
|
+ // _this.$jump('/pages/checkstand/index')
|
|
|
+ // },
|
|
|
+ // fail: (res) => {
|
|
|
+ // if(res.errMsg!='scanCode:fail cancel'){
|
|
|
+ // this.scanNotify = {scan: true,scanMessage: res.errMsg};
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|