|
@@ -32,7 +32,7 @@
|
|
|
<view class="ranking row aCenter" @click.stop="routerRanking">
|
|
|
<image src="/static/images/ranking.png" class="ranking-icon"></image>
|
|
|
<view class="ranking-title">排行榜</view>
|
|
|
- <view class="flex-all-1 row ranking-introduce line-1">店铺商品热榜<text v-if="item.rankTexts" :class="{'ranking-prominent':cItem.active}" v-for="(cItem,index) in item.rankTexts" :key="index">{{cItem.label}}</text></view>
|
|
|
+ <view class="flex-all-1 row ranking-introduce line-1">商品热榜<text v-if="item.rankTexts" :class="{'ranking-prominent':cItem.active}" v-for="(cItem,index) in item.rankTexts" :key="index">{{cItem.label}}</text></view>
|
|
|
<text class="iconfont iconfont-more ranking-more"></text>
|
|
|
</view>
|
|
|
<!-- 服务类型 -->
|
|
@@ -70,6 +70,7 @@
|
|
|
v-for="(item,index) in comment"
|
|
|
:key="index"
|
|
|
:item="item"
|
|
|
+ goDetail
|
|
|
></layout-comment>
|
|
|
|
|
|
<view v-if="!loadingStatus && item.evaluate.count<=0" class="comment-content-empty">此商品暂无评论</view>
|
|
@@ -102,7 +103,7 @@
|
|
|
<view
|
|
|
v-for="(item,index) in productControl"
|
|
|
:key="index"
|
|
|
- class="flex-all-1 center"
|
|
|
+ class="flex-all-1 center relative"
|
|
|
@click="trigger(item)"
|
|
|
>
|
|
|
<button v-if="item.type" :open-type="item.type" class="flex-all-1 clear-button flex center">
|
|
@@ -112,13 +113,14 @@
|
|
|
<template v-else>
|
|
|
<image :src="item.icon" mode="aspectFit" class="control-icon"></image>
|
|
|
<view class="control-label">{{item.label}}</view>
|
|
|
+ <dot v-if="item.carDot" class="control-label-dot absolute" :value="car.carNumber"></dot>
|
|
|
</template>
|
|
|
|
|
|
</view>
|
|
|
<view v-if="failMessage" class="control-button-group center control-fail-button overflow"><view class="line-1">{{failMessage}}</view></view>
|
|
|
<view class="control-button-group row overflow" v-else-if="isLogin">
|
|
|
- <view @click="triggerBuyType(2)" class="control-button control-button-car center">加入购物车</view>
|
|
|
- <view @click="triggerBuyType(1)" class="control-button center">立即购买</view>
|
|
|
+ <view @click="triggerBuyType(2)" v-if="!item.is_datebuy" class="control-button control-button-car center">加入购物车</view>
|
|
|
+ <view @click="triggerBuyType(1)" :class="{'flex-1': item.is_datebuy}" class="control-button center">立即购买</view>
|
|
|
</view>
|
|
|
<view @click="routerLogin" class="control-button-group control-button-group-login center" v-else>授权登录</view>
|
|
|
</view>
|
|
@@ -162,14 +164,14 @@
|
|
|
<v-image :src="item.image" class="shop-buy-image"></v-image>
|
|
|
<view class="flex-all-1 shop-buy-content">
|
|
|
<view class="shop-buy-title line-2 overflow">{{item.title}}</view>
|
|
|
- <text class="shop-buy-price-group"><text>¥</text><text>{{buyType===1?rulesPriceNumber:priceNumber}}</text></text>
|
|
|
+ <text class="shop-buy-price-group"><text>¥</text><text>{{buyType===1 && item.is_datebuy?rulesPriceNumber:priceNumber}}</text></text>
|
|
|
</view>
|
|
|
<view class="shop-buy-close">
|
|
|
<view @click="cancelRuleModal" class="iconfont iconfont-close shop-buy-close-icon"></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 规格 -->
|
|
|
- <view v-show="buyType===1" class="flex-all-1 overflow">
|
|
|
+ <view v-show="buyType===1" v-if="item.is_datebuy" class="flex-all-1 overflow">
|
|
|
<scroll-view
|
|
|
scroll-y
|
|
|
class="screen_all"
|
|
@@ -198,7 +200,7 @@
|
|
|
</scroll-view>
|
|
|
</view>
|
|
|
<!-- 数量 -->
|
|
|
- <view v-show="buyType!==1" class="row aCenter shop-step">
|
|
|
+ <view class="row aCenter shop-step">
|
|
|
<view class="flex-all-1">数量</view>
|
|
|
<v-step :value="buyNumber" @input="changeBuyNumber"></v-step>
|
|
|
</view>
|
|
@@ -235,6 +237,7 @@
|
|
|
import layoutUseCoupon from '@/layout/layout-use-coupon/main.vue';
|
|
|
import vImage from '@/components/v-image/main';
|
|
|
import poster from '@/components/poster/poster';
|
|
|
+ import dot from '@/components/dot/main';
|
|
|
export default {
|
|
|
mixins,
|
|
|
components: {
|
|
@@ -246,10 +249,11 @@
|
|
|
vImage,
|
|
|
vStep,
|
|
|
layoutUseCoupon,
|
|
|
- poster
|
|
|
+ poster,
|
|
|
+ dot
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapState(['config']),
|
|
|
+ ...mapState(['config','car']),
|
|
|
}
|
|
|
}
|
|
|
</script>
|