商家部分
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
<template>
|
||||
<view class="details">
|
||||
<view class="top">
|
||||
<image></image>
|
||||
<view class="name">店铺名称</view>
|
||||
<view class="info">创建时间:2020年04月10日 | 浙江金华市</view>
|
||||
<image :src="info.store_avatar"></image>
|
||||
<view class="name">{{info.store_name}}</view>
|
||||
<view class="info">创建时间:{{store_addtime|date}} | {{info.live_store_address}}</view>
|
||||
<view class="num">
|
||||
<view>
|
||||
<view class="value">23435</view>
|
||||
<view class="value">{{info.store_collect}}</view>
|
||||
<view class="title">粉丝数</view>
|
||||
</view>
|
||||
<view>
|
||||
@@ -14,7 +14,7 @@
|
||||
<view class="title">评价</view>
|
||||
</view>
|
||||
<view>
|
||||
<view class="value">23435</view>
|
||||
<view class="value">{{info.store_credit}}</view>
|
||||
<view class="title">信用等级</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -25,7 +25,7 @@
|
||||
<image></image>
|
||||
</view>
|
||||
<view class="image-list">
|
||||
<image></image>
|
||||
<image :src="info.business_licence_number_electronic"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -33,7 +33,15 @@
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {}
|
||||
return {
|
||||
info:{}
|
||||
}
|
||||
},
|
||||
onLoad(){
|
||||
this.$u.api.getStoreInfo({id:1}).then((res)=>{
|
||||
console.log(res)
|
||||
this.info = res.data
|
||||
})
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user