Commit da9e3391 authored by Mac's avatar Mac

1

parent 58cae99b
<template>
<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;">
<u-avatar :src="shopData.Logo" size="100" slot="addBtn"></u-avatar>
......@@ -14,7 +15,6 @@
<image
mode="aspectFit"
src="../../static/images/icon/img-share-status.png"
@click="clickHandler(item.link.url)"
style="height:100%;width: 100%;"
/>
</button>
......@@ -28,20 +28,23 @@ export default {
props: ["ad"],
data() {
return {
shopData:{}
shopData:{},
Id:0
}
},
created() {
this.Id = uni.getStorageSync("mall_UserInfo") ? uni.getStorageSync("mall_UserInfo").UserSmallShopId: 0;
this.getSmallShopById()
},
methods:{
getSmallShopById(){
let Id = uni.getStorageSync("mall_UserInfo") ? uni.getStorageSync("mall_UserInfo").UserSmallShopId: 0;
this.request2(
{
url: '/api/AppletUser/GetSmallShopById',
data: {
// Id: Id
// Id: this.Id
Id: 5
}
},
......
......@@ -50,7 +50,7 @@
<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>
<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>
</view>
......
......@@ -241,6 +241,7 @@ export default {
},
pandu(item){
let flag=true;
let IsOpen = this.shopBasics.model.IsOpen?this.shopBasics.model.IsOpen:1
switch(item.link_url)
{
case "/pages/share/index/index" :
......@@ -254,7 +255,7 @@ export default {
break;
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)
{
......
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