|
|
@@ -15,10 +15,6 @@
|
|
|
</view>
|
|
|
<view class="price-row">
|
|
|
<text class="price">{{ formatPriceWithSymbol(displayPrice) }}</text>
|
|
|
- <view v-if="displayMemberPrice && displayMemberPrice > 0 && displayMemberPrice !== displayPrice && isMember" class="member-price-row">
|
|
|
- <text class="member-price-current">会员价 {{ formatPriceWithSymbol(displayMemberPrice) }}</text>
|
|
|
- <text class="member-price-original">原价 {{ formatPriceWithSymbol(displayPrice) }}</text>
|
|
|
- </view>
|
|
|
</view>
|
|
|
<view v-if="product.giftLevelName" class="gift-tag">购买即送 {{ product.giftLevelName }} 会员</view>
|
|
|
<view class="meta-row">
|
|
|
@@ -101,8 +97,6 @@
|
|
|
<view class="bottom-bar" v-if="!loading && product.id">
|
|
|
<view class="price-info">
|
|
|
<text class="bottom-price">{{ formatPriceWithSymbol(displayPrice) }}</text>
|
|
|
- <text v-if="displayMemberPrice && displayMemberPrice > 0 && !isMember" class="bottom-member">会员{{ formatPriceWithSymbol(displayMemberPrice) }}</text>
|
|
|
- <text v-if="displayMemberPrice && displayMemberPrice > 0 && isMember" class="bottom-member bottom-member-highlight">会员{{ formatPriceWithSymbol(displayMemberPrice) }}</text>
|
|
|
</view>
|
|
|
<view class="action-btns">
|
|
|
<view class="action-extra">
|
|
|
@@ -121,7 +115,7 @@
|
|
|
|
|
|
<script>
|
|
|
import config from '@/config.js'
|
|
|
-import { productDetail, productOrderCreate, productOrderPay, cartAdd, getShareQrCode, productSpecMap, getMyMembership, getProductCoupons, exchangeCoupon } from '@/utils/api.js'
|
|
|
+import { productDetail, productOrderCreate, productOrderPay, cartAdd, getShareQrCode, productSpecMap, getProductCoupons, exchangeCoupon } from '@/utils/api.js'
|
|
|
import MpHtml from '@/components/mp-html/mp-html.vue'
|
|
|
import ContentSharePoster from '@/components/ContentSharePoster.vue'
|
|
|
import shareMixin from '../../../components/share-mixin.js'
|
|
|
@@ -141,7 +135,6 @@ export default {
|
|
|
specGroups: [],
|
|
|
selectedSpecs: {},
|
|
|
selectedSku: null,
|
|
|
- isMember: false,
|
|
|
productCoupons: []
|
|
|
}
|
|
|
},
|
|
|
@@ -169,9 +162,6 @@ export default {
|
|
|
priceText() {
|
|
|
if (!this.product || !this.product.price) return ''
|
|
|
var txt = this.formatPriceWithSymbol(this.product.price)
|
|
|
- if (this.product.memberPrice) {
|
|
|
- txt += ' 会员' + this.formatPriceWithSymbol(this.product.memberPrice)
|
|
|
- }
|
|
|
return txt
|
|
|
},
|
|
|
productDimension() {
|
|
|
@@ -222,12 +212,6 @@ export default {
|
|
|
if (this.hasSku) return this.product.price || 0
|
|
|
return this.product.price || 0
|
|
|
},
|
|
|
- displayMemberPrice: function() {
|
|
|
- if (this.selectedSku) {
|
|
|
- return this.product.memberPrice || 0
|
|
|
- }
|
|
|
- return this.product.memberPrice || 0
|
|
|
- },
|
|
|
displayStock: function() {
|
|
|
if (this.selectedSku) return this.selectedSku.stock || 0
|
|
|
if (this.hasSku) return 0
|
|
|
@@ -254,7 +238,6 @@ export default {
|
|
|
}
|
|
|
if (pid) {
|
|
|
this.loadDetail(pid)
|
|
|
- this.checkMemberStatus()
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -347,15 +330,6 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- checkMemberStatus: function() {
|
|
|
- var that = this
|
|
|
- getMyMembership().then(function(res) {
|
|
|
- if (res.data && res.data.memberLevel) {
|
|
|
- that.isMember = res.data.memberLevel !== 'FREE'
|
|
|
- }
|
|
|
- }).catch(function() {})
|
|
|
- },
|
|
|
-
|
|
|
selectSpec: function(groupId, option) {
|
|
|
if (this.selectedSpecs[groupId] === option.id) {
|
|
|
delete this.selectedSpecs[groupId]
|
|
|
@@ -613,11 +587,6 @@ export default {
|
|
|
color: #F97316;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
-.member-price {
|
|
|
- font-size: 22rpx;
|
|
|
- color: #999;
|
|
|
- margin-top: 4rpx;
|
|
|
-}
|
|
|
.gift-tag {
|
|
|
display: inline-block;
|
|
|
margin-top: 12rpx;
|
|
|
@@ -780,27 +749,12 @@ export default {
|
|
|
.coupon-exchange-btn::after {
|
|
|
border: none;
|
|
|
}
|
|
|
-.member-price-row {
|
|
|
- margin-top: 6rpx;
|
|
|
-}
|
|
|
-.member-price-hint {
|
|
|
- font-size: 22rpx;
|
|
|
- color: #F97316;
|
|
|
- text-decoration: underline;
|
|
|
-}
|
|
|
-.member-price-original {
|
|
|
- font-size: 22rpx;
|
|
|
- color: #999;
|
|
|
- text-decoration: line-through;
|
|
|
-}
|
|
|
-.member-price-current {
|
|
|
- font-size: 22rpx;
|
|
|
- color: #F97316;
|
|
|
- font-weight: bold;
|
|
|
-}
|
|
|
-.bottom-member-highlight {
|
|
|
- color: #F97316 !important;
|
|
|
-}
|
|
|
+.member-price-row,
|
|
|
+.member-price-hint,
|
|
|
+.member-price-original,
|
|
|
+.member-price-current,
|
|
|
+.bottom-member-highlight,
|
|
|
+.bottom-member { display: none; }
|
|
|
.btn-disabled {
|
|
|
opacity: 0.5;
|
|
|
}
|