|
@@ -4,10 +4,10 @@
|
|
|
<view class="callback-blo">
|
|
<view class="callback-blo">
|
|
|
<view style="margin-bottom:50upx;">点击按钮打开二维码,识别添加店长微信</view>
|
|
<view style="margin-bottom:50upx;">点击按钮打开二维码,识别添加店长微信</view>
|
|
|
|
|
|
|
|
- <button class="button-com red" style="width:220upx;" @click="nextFn">打开二维码</button>
|
|
|
|
|
|
|
+ <button class="button-com red" style="width:220upx;" @click="openSuperWx">打开二维码</button>
|
|
|
|
|
|
|
|
- <view style="margin-top:50upx;">
|
|
|
|
|
- <button class="button-com default" style="width:220upx;" @click="nextFn">返回</button>
|
|
|
|
|
|
|
+ <view style="margin-top:50upx;" v-if="Number(account)>0">
|
|
|
|
|
+ <button class="button-com default" style="width:220upx;" @click="lookMall">逛逛商城</button>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
@@ -15,17 +15,33 @@
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
|
|
+import { getInfo } from "@/api/shop"
|
|
|
export default {
|
|
export default {
|
|
|
name: "result",
|
|
name: "result",
|
|
|
components: {},
|
|
components: {},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
constant: this.$constant,
|
|
constant: this.$constant,
|
|
|
|
|
+ superWx:'',
|
|
|
|
|
+ account:0
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ openSuperWx(){
|
|
|
|
|
+ uni.previewImage({ urls: [this.superWx] })
|
|
|
|
|
+ },
|
|
|
|
|
+ lookMall(){
|
|
|
|
|
+ this.$util.pageTo({ url: "/pages/home/index?account="+this.account, type: 2})
|
|
|
|
|
+ },
|
|
|
init() {
|
|
init() {
|
|
|
-
|
|
|
|
|
|
|
+ getInfo().then(res=>{
|
|
|
|
|
+ if(res.code == 1){
|
|
|
|
|
+ if(res.data.info.superWx && !this.$util.isEmpty(res.data.info.superWx)){
|
|
|
|
|
+ this.superWx = res.data.info.superWx
|
|
|
|
|
+ this.account = res.data.info.id
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|