Task: 价格面议小程序端
This commit is contained in:
@@ -17,13 +17,16 @@
|
|||||||
<view>
|
<view>
|
||||||
<view class="share acea-row row-between row-middle" style="flex-wrap: nowrap;margin-top: 0;">
|
<view class="share acea-row row-between row-middle" style="flex-wrap: nowrap;margin-top: 0;">
|
||||||
<view class="money font-color-lightred acea-row v12-align-center">
|
<view class="money font-color-lightred acea-row v12-align-center">
|
||||||
<view>
|
<view v-if="!storeInfo.isNegotiable">
|
||||||
<text class="v12-font-22 v12-red-text">¥</text>
|
<text class="v12-font-22 v12-red-text">¥</text>
|
||||||
<text class=" v12-primary-text v12-font-44 v12-red-text">{{ attr.productSelect.price }}</text>
|
<text class=" v12-primary-text v12-font-44 v12-red-text">{{ attr.productSelect.price }}</text>
|
||||||
<text class="v12-ml-2 v12-font-weight-300 v12-font-22" style="color: #BBBBBB; text-decoration: line-through;">¥</text>
|
<text class="v12-ml-2 v12-font-weight-300 v12-font-22" style="color: #BBBBBB; text-decoration: line-through;">¥</text>
|
||||||
<text class="v12-mr-2 v12-font-weight-300 v12-font-22" style="color: #BBBBBB; text-decoration: line-through;">{{ attr.productSelect.otPrice }}</text>
|
<text class="v12-mr-2 v12-font-weight-300 v12-font-22" style="color: #BBBBBB; text-decoration: line-through;">{{ attr.productSelect.otPrice }}</text>
|
||||||
<text v-if="storeInfo.vipPrice && storeInfo.vipPrice > 0" class="v12-white-text v12-red v12-font-22 v12-radius-40 v12-px-1 v12-font-weight-400">会员价</text>
|
<text v-if="storeInfo.vipPrice && storeInfo.vipPrice > 0" class="v12-white-text v12-red v12-font-22 v12-radius-40 v12-px-1 v12-font-weight-400">会员价</text>
|
||||||
</view>
|
</view>
|
||||||
|
<view v-if="storeInfo.isNegotiable === 1" class="v12-primary-text v12-font-32 v12-font-weight" @click="goRoom">
|
||||||
|
价格面议
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="flex-shrink:0;" class="acea-row row-middle share-btn" @click="listenerActionSheet">
|
<view style="flex-shrink:0;" class="acea-row row-middle share-btn" @click="listenerActionSheet">
|
||||||
<image :src="webUrl+'/20210806121714655368.png'" mode="" style="width: 36rpx;height: 36rpx;"></image>
|
<image :src="webUrl+'/20210806121714655368.png'" mode="" style="width: 36rpx;height: 36rpx;"></image>
|
||||||
@@ -455,7 +458,7 @@
|
|||||||
<view
|
<view
|
||||||
class="btn-car v12-primary-text v12-primary-border"
|
class="btn-car v12-primary-text v12-primary-border"
|
||||||
:class="{
|
:class="{
|
||||||
'btn-car-disabled': (attr.productSelect.stock === 0 && attr.cartAttr) || storeInfo.stock === 0
|
'btn-car-disabled': (attr.productSelect.stock === 0 && attr.cartAttr) || storeInfo.stock === 0 || storeInfo.isNegotiable === 1
|
||||||
}"
|
}"
|
||||||
@click="joinCart"
|
@click="joinCart"
|
||||||
>
|
>
|
||||||
@@ -464,7 +467,7 @@
|
|||||||
<view
|
<view
|
||||||
class="btn-buy"
|
class="btn-buy"
|
||||||
:class="{
|
:class="{
|
||||||
'btn-buy-disabled': (attr.productSelect.stock === 0 && attr.cartAttr) || storeInfo.stock === 0
|
'btn-buy-disabled': (attr.productSelect.stock === 0 && attr.cartAttr) || storeInfo.stock === 0 || storeInfo.isNegotiable === 1
|
||||||
}"
|
}"
|
||||||
@click="tapBuy"
|
@click="tapBuy"
|
||||||
>
|
>
|
||||||
@@ -823,7 +826,7 @@ export default {
|
|||||||
goodsData: '',
|
goodsData: '',
|
||||||
seckillData: ''
|
seckillData: ''
|
||||||
}
|
}
|
||||||
const name = this.systemStore && this.systemStore.name || this.storeInfo.merName
|
const name = this.storeInfo.merName
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pkg_common/views/room?id=${this.storeInfo.merId}&name=${name}¶ms=${JSON.stringify(params)}`
|
url: `/pkg_common/views/room?id=${this.storeInfo.merId}&name=${name}¶ms=${JSON.stringify(params)}`
|
||||||
})
|
})
|
||||||
@@ -1360,7 +1363,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击加入购物车按钮
|
// 点击加入购物车按钮
|
||||||
joinCart() {
|
joinCart() {
|
||||||
if ((this.attr.productSelect.stock === 0 && this.attr.cartAttr) || this.storeInfo.stock === 0) {
|
if ((this.attr.productSelect.stock === 0 && this.attr.cartAttr) || this.storeInfo.stock === 0 || storeInfo.isNegotiable === 1) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// 0=加入购物车
|
// 0=加入购物车
|
||||||
@@ -1369,7 +1372,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 立即购买
|
// 立即购买
|
||||||
tapBuy() {
|
tapBuy() {
|
||||||
if ((this.attr.productSelect.stock === 0 && this.attr.cartAttr) || this.storeInfo.stock === 0) {
|
if ((this.attr.productSelect.stock === 0 && this.attr.cartAttr) || this.storeInfo.stock === 0 || storeInfo.isNegotiable === 1) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// 1=直接购买
|
// 1=直接购买
|
||||||
|
|||||||
Reference in New Issue
Block a user