|
@@ -5,7 +5,7 @@
|
|
|
<u-swiper :list="list3" previousMargin="0" nextMargin="100" circular :autoplay="false" bgColor="#ffffff" />
|
|
|
<view class="carousel-item">
|
|
|
<view class="mark">
|
|
|
- <view class="mark-item">5.00分</view>
|
|
|
+ <view class="mark-item">{{merchant.score}}分</view>
|
|
|
<u-rate :count="count" v-model="value" active-color="#fff" inactive-color="#fff" :size="12" />
|
|
|
</view>
|
|
|
<view class="good-item">近期有6266个购买者给了给好评</view>
|
|
@@ -15,16 +15,16 @@
|
|
|
<!-- 商家信息 -->
|
|
|
<view class="merchant-info">
|
|
|
<view class="info-title">
|
|
|
- <view>养车工场店(襄阳五中店)</view>
|
|
|
- <text class="info-mark">1.5w+单</text>
|
|
|
+ <view>{{merchant.name}}</view>
|
|
|
+ <text class="info-mark">{{merchant.sale/10000}}w+单</text>
|
|
|
</view>
|
|
|
<view class="info-tag">商家信息</view>
|
|
|
<view class="info-item">
|
|
|
<view class="info-text">
|
|
|
- <view>营业时间:9:00 ~ 24:00</view>
|
|
|
- <view>电话号码:18285564342</view>
|
|
|
- <view>贵州省贵阳市榕江县栽麻乡小利村三组</view>
|
|
|
- <view class="distance">距离您1.84km</view>
|
|
|
+ <view>营业时间:{{merchant.opening}}</view>
|
|
|
+ <view>电话号码:{{merchant.mobile}}</view>
|
|
|
+ <view>{{merchant.address}}</view>
|
|
|
+ <view class="distance">{{(merchant.distance/1000).toFixed(2)}}km</view>
|
|
|
</view>
|
|
|
<view class="info-icon">
|
|
|
<view class="info-map">
|
|
@@ -39,10 +39,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <service />
|
|
|
- <service />
|
|
|
- <service />
|
|
|
- <service />
|
|
|
+ <service ></service>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -53,37 +50,25 @@ import { getSellerDetails } from '@/api/business.js'
|
|
|
export default {
|
|
|
onLoad(option) {
|
|
|
getSellerDetails(option.id).then(res => {
|
|
|
- console.log(res)
|
|
|
+ this.merchant = res.data.merchant
|
|
|
+ this.goods = res.data.goods,
|
|
|
+ this.list3 = res.data.merchant.banners.map(h => h.url)
|
|
|
})
|
|
|
},
|
|
|
components: {
|
|
|
service,
|
|
|
},
|
|
|
data() {
|
|
|
- return {
|
|
|
+ return {
|
|
|
+ merchant:{},
|
|
|
+ goods:[],
|
|
|
count: 5,
|
|
|
value: 3,
|
|
|
- list3: [
|
|
|
- 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
|
|
|
- 'https://cdn.uviewui.com/uview/swiper/swiper2.png',
|
|
|
- 'https://cdn.uviewui.com/uview/swiper/swiper1.png',
|
|
|
- ],
|
|
|
- list1: [
|
|
|
- { name: '全部' },
|
|
|
- { name: '养车' },
|
|
|
- { name: '维修' },
|
|
|
- { name: '改装' },
|
|
|
- { name: '补胎' },
|
|
|
- { name: '补胎' },
|
|
|
- { name: '其他' },
|
|
|
- ],
|
|
|
+ list3: [],
|
|
|
};
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
- click(item) {
|
|
|
- console.log('item', item);
|
|
|
- },
|
|
|
},
|
|
|
};
|
|
|
</script>
|