Commit da9e3391 authored by Mac's avatar Mac

1

parent 58cae99b
<template> <template>
<view class="Sbox" <view class="Sbox"
:style="{ 'background-image': 'url(https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1597636248000_978.png)', backgroundSize: '100% 80px' }" :style="{ 'background-image': 'url('+ad.backgroundPicUrl+')', backgroundSize: '100% 80px' }"
v-if="Id==0"
> >
<view style="display: flex;flex-direction: row;align-items: center;"> <view style="display: flex;flex-direction: row;align-items: center;">
<u-avatar :src="shopData.Logo" size="100" slot="addBtn"></u-avatar> <u-avatar :src="shopData.Logo" size="100" slot="addBtn"></u-avatar>
...@@ -14,7 +15,6 @@ ...@@ -14,7 +15,6 @@
<image <image
mode="aspectFit" mode="aspectFit"
src="../../static/images/icon/img-share-status.png" src="../../static/images/icon/img-share-status.png"
@click="clickHandler(item.link.url)"
style="height:100%;width: 100%;" style="height:100%;width: 100%;"
/> />
</button> </button>
...@@ -28,20 +28,23 @@ export default { ...@@ -28,20 +28,23 @@ export default {
props: ["ad"], props: ["ad"],
data() { data() {
return { return {
shopData:{} shopData:{},
Id:0
} }
}, },
created() { created() {
this.Id = uni.getStorageSync("mall_UserInfo") ? uni.getStorageSync("mall_UserInfo").UserSmallShopId: 0;
this.getSmallShopById() this.getSmallShopById()
}, },
methods:{ methods:{
getSmallShopById(){ getSmallShopById(){
let Id = uni.getStorageSync("mall_UserInfo") ? uni.getStorageSync("mall_UserInfo").UserSmallShopId: 0;
this.request2( this.request2(
{ {
url: '/api/AppletUser/GetSmallShopById', url: '/api/AppletUser/GetSmallShopById',
data: { data: {
// Id: Id // Id: this.Id
Id: 5 Id: 5
} }
}, },
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<quicknav v-if="d.id == 'quick-nav' && d.data.navSwitch == 1" :navs="d.data" :key="di"></quicknav> <quicknav v-if="d.id == 'quick-nav' && d.data.navSwitch == 1" :navs="d.data" :key="di"></quicknav>
<pingtuan v-if="d.id == 'pintuan'" :goods="d.data" :key="di"></pingtuan> <pingtuan v-if="d.id == 'pintuan'" :goods="d.data" :key="di"></pingtuan>
<shopinfo v-if="d.id == 'shop-info' " :goods="d.data" :key="di"></shopinfo> <shopinfo v-if="d.id == 'shop-info' " :goods="d.data" :key="di"></shopinfo>
<!-- <shopinfo v-if='di==1' :goods="d.data" :key="di"></shopinfo> -->
</template> </template>
</view> </view>
......
...@@ -241,6 +241,7 @@ export default { ...@@ -241,6 +241,7 @@ export default {
}, },
pandu(item){ pandu(item){
let flag=true; let flag=true;
let IsOpen = this.shopBasics.model.IsOpen?this.shopBasics.model.IsOpen:1
switch(item.link_url) switch(item.link_url)
{ {
case "/pages/share/index/index" : case "/pages/share/index/index" :
...@@ -254,7 +255,7 @@ export default { ...@@ -254,7 +255,7 @@ export default {
break; break;
case "/pages/microShop/index/index": case "/pages/microShop/index/index":
//开启 //开启
if(this.shopBasics.model.IsOpen==2) if(IsOpen==2)
{ {
if(this.mall_UserInfo.SmallShopId==0 && this.mall_UserInfo.UserSmallShopId!=0) if(this.mall_UserInfo.SmallShopId==0 && this.mall_UserInfo.UserSmallShopId!=0)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment