商家部分

This commit is contained in:
2020-07-21 21:01:42 +08:00
parent c96f5ca95d
commit 063da7bef3
4 changed files with 37 additions and 60 deletions

View File

@@ -14,11 +14,11 @@
<view>我的</view>
</view>
</view>
<view class="top">
<image></image>
<view class="top" :style="{'background-image':'url(' + info.store_banner + ')'}">
<image :src="info.store_avatar"></image>
<view class="info">
<view class="name u-line-1">小米官方旗舰店</view>
<view class="num">粉丝数234</view>
<view class="name u-line-1">{{info.store_name}}</view>
<view class="num">粉丝数{{info.store_collect}}</view>
</view>
<view class="btn">
<image></image>
@@ -85,7 +85,8 @@ export default {
cur: 0,
list:[],
indexlist:[],
indextop:[]
indextop:[],
info:{}
}
},
components:{
@@ -111,6 +112,10 @@ export default {
this.indextop = [res.data[0],res.data[1]]
this.indexlist = res.data.slice(2,)
})
this.$u.api.getStoreInfo({id:1}).then((res)=>{
console.log(res)
this.info = res.data
})
}
};
</script>