|
@@ -14,7 +14,7 @@
|
|
|
<view class="ms">很不错的店铺 值得推荐!</view>
|
|
|
<view class="wqmBox">
|
|
|
<view class="ewmLeft">
|
|
|
- <image :src="userInfo.headImg" mode="" class="ewmImg"></image>
|
|
|
+ <image :src="img" mode="" class="ewmImg"></image>
|
|
|
</view>
|
|
|
<view class="ewmRight">
|
|
|
<view class="ewmRight1">长按二维码立即关注</view>
|
|
@@ -36,18 +36,43 @@
|
|
|
headImg: '',
|
|
|
themeColor:'',
|
|
|
userInfo:'',
|
|
|
+ type:'',
|
|
|
+ wxOpenData:'',
|
|
|
+ ext:'',
|
|
|
+ img:'',
|
|
|
}
|
|
|
},
|
|
|
onLoad(opt) {
|
|
|
this.themeColor = uni.getStorageSync("themeColor");
|
|
|
this.userInfo = uni.getStorageSync("userInfo");
|
|
|
-
|
|
|
+ this.wxOpenData=this.$store.state.wxOpenData;
|
|
|
+ this.ext=this.$common.getExtStoreId();
|
|
|
+ this.type=opt.type;
|
|
|
+ //if(this.type==1){
|
|
|
+ this.openShareQrCode()
|
|
|
+ //}
|
|
|
},
|
|
|
onShow() {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
-
|
|
|
+ openShareQrCode(){
|
|
|
+ uni.showLoading({
|
|
|
+ title: '加载中'
|
|
|
+ })
|
|
|
+ this.$request.httpBinary('openShareQrCode/create', {
|
|
|
+ bizType:this.type,
|
|
|
+ openId:this.wxOpenData.openid,
|
|
|
+ unionId:this.ext.unionId,
|
|
|
+ shopId:this.ext.shopId
|
|
|
+ }, 'GET').then(res => {
|
|
|
+ uni.hideLoading();
|
|
|
+ this.img = 'data:image/png;base64,'+uni.arrayBufferToBase64(res);
|
|
|
+ //this.img= uni.arrayBufferToBase64(res)
|
|
|
+ //console.log('list+=', this.queryShopList);
|
|
|
+
|
|
|
+ })
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
}
|
|
@@ -97,13 +122,13 @@
|
|
|
color: #FFAF18;font-size: 30rpx;padding-top: 16rpx;text-align: center;
|
|
|
}
|
|
|
.wqmBox{
|
|
|
- border-top:1px solid #EEEEEE;margin-top: 40rpx;
|
|
|
+ border-top:1px solid #EEEEEE;margin-top: 20rpx;
|
|
|
display: flex;
|
|
|
- padding: 30rpx 0 0 70rpx;
|
|
|
+ padding: 30rpx 0 0 30rpx;
|
|
|
}
|
|
|
.ewmImg{
|
|
|
- width: 148rpx;
|
|
|
- height: 148rpx;
|
|
|
+ width: 200rpx;
|
|
|
+ height: 200rpx;
|
|
|
}
|
|
|
.ewmRight1{
|
|
|
color: #999999;font-size: 24rpx;padding-top: 30rpx;padding-left: 24rpx;
|