Commit c3a7aa45 authored by Mac's avatar Mac

店铺信息

parent da9e3391
<template>
<view class="Sbox"
:style="{ 'background-image': 'url('+ad.backgroundPicUrl+')', backgroundSize: '100% 80px' }"
v-if="Id==0"
:style="{ 'background-image': 'url('+ad.backgroundPicUrl+')', backgroundSize: '100% 86px' }"
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>
<view class="shopbox_l_text">
<text style=" font-size: 30rpx;color: #111111;width: 100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">{{shopData.Name}}</text>
<text style=" font-size: 24rpx;color: #878787;width: 100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">{{shopData.Notice}}</text>
<text class="item_text" :style=" {'font-size': '30rpx','color': ad.fontColor,'font-size':'Bold'}">{{shopData.Name}}</text>
<text class="item_text" :style=" {'font-size': '24rpx','color': ad.fontColor,}">{{shopData.Notice}}</text>
</view>
</view>
<button class="fx" open-type="share">
<image
mode="aspectFit"
src="../../static/images/icon/img-share-status.png"
:src="ad.bottonImg"
style="height:100%;width: 100%;"
/>
</button>
......@@ -34,7 +34,10 @@ export default {
},
created() {
this.Id = uni.getStorageSync("mall_UserInfo") ? uni.getStorageSync("mall_UserInfo").UserSmallShopId: 0;
this.getSmallShopById()
if(this.Id!=0){
this.getSmallShopById()
}
console.log(this.ad,'this.ad')
},
methods:{
......@@ -44,8 +47,7 @@ export default {
{
url: '/api/AppletUser/GetSmallShopById',
data: {
// Id: this.Id
Id: 5
Id: this.Id
}
},
res => {
......@@ -62,7 +64,7 @@ export default {
<style>
.Sbox{
width: 100%;
height: 80px;
height: 86px;
padding: 0 30px;
display: flex;
flex-direction: row;
......@@ -87,4 +89,7 @@ export default {
margin: 0;
line-height: unset;
}
.Sbox .item_text{
font-size: 24rpx;color: #878787;width: 100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;
}
</style>
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