diff --git a/pages/payment/qrcode.vue b/pages/payment/qrcode.vue
index 9137cea..aecb103 100644
--- a/pages/payment/qrcode.vue
+++ b/pages/payment/qrcode.vue
@@ -1,80 +1,3 @@
-
@@ -82,19 +5,17 @@
:titleStyle="{color:'#fff',fontWeight:'bold',fontSize:'32rpx'}">
-
-
+
+
+ 店铺:{{userInfo.mer_info.mer_name || '-'}}
+
-
- {{userInfo.mer_info.mer_name}}
+
-
保存二维码
@@ -108,20 +29,21 @@
data() {
return {
img: '',
- userInfo: {}
+ userInfo: {}
}
},
onLoad(opt) {
- let user = this.$store.state.app.userInfo;
- if(typeof user =='string') user = JSON.parse(user);
- this.userInfo = user;
- this.getQrcode(user.service.mer_id)
+ console.log(123);
+ let user = this.$store.state.app.userInfo;
+ if (typeof user == 'string') user = JSON.parse(user);
+ this.userInfo = user;
+ this.getQrcode(user.service.mer_id)
},
methods: {
// 获取二维码
getQrcode(merid) {
qrcode({
- mer_id: merid || 7
+ mer_id: merid
}).then(res => {
this.img = res.data.url;
})
@@ -173,4 +95,59 @@
}
}
}
-
\ No newline at end of file
+
+
\ No newline at end of file