Commit c3a7aa45 authored by Mac's avatar Mac

店铺信息

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