|
@@ -33,11 +33,16 @@
|
|
|
|
|
|
|
|
<view class="introduce-section">
|
|
<view class="introduce-section">
|
|
|
<text class="title" v-if="goodsType == 1">{{ goodsObjact.title }}</text>
|
|
<text class="title" v-if="goodsType == 1">{{ goodsObjact.title }}</text>
|
|
|
- <view class="price-box" v-if="goodsType == 0">
|
|
|
|
|
|
|
+ <view class="price-box" v-if="goodsType == 0 && (is_bk != 0 || is_xf != 0)">
|
|
|
<text class="price-tip">¥</text>
|
|
<text class="price-tip">¥</text>
|
|
|
<text class="price">{{ goodsObjact.price }}</text>
|
|
<text class="price">{{ goodsObjact.price }}</text>
|
|
|
<text class="m-price" v-if="goodsObjact.ot_price > goodsObjact.price">¥{{ goodsObjact.ot_price }}</text>
|
|
<text class="m-price" v-if="goodsObjact.ot_price > goodsObjact.price">¥{{ goodsObjact.ot_price }}</text>
|
|
|
- <!-- <text class="coupon-tip">7折</text> -->
|
|
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="price-box" v-if="goodsType == 0 && is_bk == 0 && is_xf == 0">
|
|
|
|
|
+ <!-- <text class="price-tip">¥</text> -->
|
|
|
|
|
+ <text class="price">{{ goodIntegral }}</text>
|
|
|
|
|
+ <text class="price-tip">积分</text>
|
|
|
|
|
+ <text class="m-price ">市场价:¥{{ goodsObjact.ot_price }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
<text class="title" v-if="goodsType == 0">{{ goodsObjact.store_name }}</text>
|
|
<text class="title" v-if="goodsType == 0">{{ goodsObjact.store_name }}</text>
|
|
|
</view>
|
|
</view>
|
|
@@ -93,7 +98,6 @@
|
|
|
<text class="iconfont " :class="{ iconlike: !goodsObjact.userCollect, iconlikefill: goodsObjact.userCollect }"></text>
|
|
<text class="iconfont " :class="{ iconlike: !goodsObjact.userCollect, iconlikefill: goodsObjact.userCollect }"></text>
|
|
|
<text>收藏</text>
|
|
<text>收藏</text>
|
|
|
</view> -->
|
|
</view> -->
|
|
|
-
|
|
|
|
|
<view class="action-btn-group">
|
|
<view class="action-btn-group">
|
|
|
<view class="shoucang flex" @click="toFavorite(goodsObjact)">
|
|
<view class="shoucang flex" @click="toFavorite(goodsObjact)">
|
|
|
<image src="../../static/icon/sc-ico.png" mode=""></image>
|
|
<image src="../../static/icon/sc-ico.png" mode=""></image>
|
|
@@ -136,7 +140,9 @@
|
|
|
<image :src="actionImage"></image>
|
|
<image :src="actionImage"></image>
|
|
|
<view class="right">
|
|
<view class="right">
|
|
|
<view class="good-name clamp">{{ goodsObjact.store_name }}</view>
|
|
<view class="good-name clamp">{{ goodsObjact.store_name }}</view>
|
|
|
- <text class="price">¥{{ actionPrice }}</text>
|
|
|
|
|
|
|
+ <text class="price" v-if="is_bk != 0 || is_xf != 0">¥{{ actionPrice }}</text>
|
|
|
|
|
+ <text class="price" v-if="is_bk == 0 && is_xf == 0">{{ goodIntegral }}积分</text>
|
|
|
|
|
+ <!-- <text class="price jf">{{ goodIntegral }}</text> -->
|
|
|
<!-- <text class="stock">库存:{{ goodsObjact.stock }}件</text> -->
|
|
<!-- <text class="stock">库存:{{ goodsObjact.stock }}件</text> -->
|
|
|
<!-- <view class="selected" v-if="goodsType == 0">
|
|
<!-- <view class="selected" v-if="goodsType == 0">
|
|
|
已选:
|
|
已选:
|
|
@@ -167,7 +173,7 @@
|
|
|
<button class="btn" @click.stop="buy">确定</button>
|
|
<button class="btn" @click.stop="buy">确定</button>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view :class="{ seckillBottom: goodsType == 1, goodsBottom: goodsType == 0 }"></view>
|
|
|
|
|
|
|
+ <!-- <view :class="{ seckillBottom: goodsType == 1, goodsBottom: goodsType == 0 }"></view> -->
|
|
|
<!-- 分享 -->
|
|
<!-- 分享 -->
|
|
|
<!-- <share ref="share" :contentHeight="580" :shareList="shareList"></share> -->
|
|
<!-- <share ref="share" :contentHeight="580" :shareList="shareList"></share> -->
|
|
|
</view>
|
|
</view>
|
|
@@ -249,7 +255,8 @@ export default {
|
|
|
s: '' //秒
|
|
s: '' //秒
|
|
|
},
|
|
},
|
|
|
is_bk: 0,
|
|
is_bk: 0,
|
|
|
- is_xf: 0
|
|
|
|
|
|
|
+ is_xf: 0,
|
|
|
|
|
+ goodIntegral: 0,//需要使用的积分
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
async onLoad(options) {
|
|
async onLoad(options) {
|
|
@@ -339,7 +346,8 @@ export default {
|
|
|
obj.actionPrice = goods.price; //保存默认选中商品价格
|
|
obj.actionPrice = goods.price; //保存默认选中商品价格
|
|
|
obj.actionImage = goods.image_base; //保存默认选中商品价格
|
|
obj.actionImage = goods.image_base; //保存默认选中商品价格
|
|
|
obj.goodsNumberMax = goods.stock; //保存默认选中最大可购买商品数量
|
|
obj.goodsNumberMax = goods.stock; //保存默认选中最大可购买商品数量
|
|
|
- obj.shopId = data.mer_id; //保存商店id
|
|
|
|
|
|
|
+ obj.shopId = data.mer_id; //保存商店id
|
|
|
|
|
+
|
|
|
// 保存默认选中的对象
|
|
// 保存默认选中的对象
|
|
|
obj.specSelected = []; //初始化默认选择对象
|
|
obj.specSelected = []; //初始化默认选择对象
|
|
|
for (let i = 0; i < obj.specList.length; i++) {
|
|
for (let i = 0; i < obj.specList.length; i++) {
|
|
@@ -353,7 +361,9 @@ export default {
|
|
|
let str = obj.specSelected.join(',');
|
|
let str = obj.specSelected.join(',');
|
|
|
// 设置默认值
|
|
// 设置默认值
|
|
|
obj.actionImage = obj.productValue[str].image;
|
|
obj.actionImage = obj.productValue[str].image;
|
|
|
- obj.uniqueId = obj.productValue[str].unique;
|
|
|
|
|
|
|
+ obj.uniqueId = obj.productValue[str].unique;
|
|
|
|
|
+ obj.goodIntegral = obj.productValue[str].integral
|
|
|
|
|
+ console.log(obj.goodIntegral,'obj.goodIntegral')
|
|
|
// #ifdef H5
|
|
// #ifdef H5
|
|
|
obj.shareDate();
|
|
obj.shareDate();
|
|
|
// #endif
|
|
// #endif
|
|
@@ -414,7 +424,9 @@ export default {
|
|
|
this.actionPrice = data.price;
|
|
this.actionPrice = data.price;
|
|
|
this.goodsNumberMax = data.stock;
|
|
this.goodsNumberMax = data.stock;
|
|
|
this.actionImage = data.image;
|
|
this.actionImage = data.image;
|
|
|
- this.uniqueId = data.unique;
|
|
|
|
|
|
|
+ this.uniqueId = data.unique;
|
|
|
|
|
+ this.goodIntegral = data.integral
|
|
|
|
|
+ console.log(this.goodIntegral,'xuanz')
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
//分享
|
|
//分享
|
|
@@ -518,7 +530,7 @@ page {
|
|
|
}
|
|
}
|
|
|
//默认商品底部高度
|
|
//默认商品底部高度
|
|
|
.goodsBottom {
|
|
.goodsBottom {
|
|
|
- height: 160rpx;
|
|
|
|
|
|
|
+ height: 100rpx;
|
|
|
}
|
|
}
|
|
|
.iconenter {
|
|
.iconenter {
|
|
|
font-size: $font-base + 2rpx;
|
|
font-size: $font-base + 2rpx;
|
|
@@ -634,6 +646,9 @@ page {
|
|
|
margin: 0 12rpx;
|
|
margin: 0 12rpx;
|
|
|
color: $font-color-light;
|
|
color: $font-color-light;
|
|
|
text-decoration: line-through;
|
|
text-decoration: line-through;
|
|
|
|
|
+ }
|
|
|
|
|
+ .pt {
|
|
|
|
|
+ text-decoration:none;
|
|
|
}
|
|
}
|
|
|
.coupon-tip {
|
|
.coupon-tip {
|
|
|
align-items: center;
|
|
align-items: center;
|
|
@@ -1163,5 +1178,10 @@ page {
|
|
|
font-size: $font-lg;
|
|
font-size: $font-lg;
|
|
|
line-height: 1;
|
|
line-height: 1;
|
|
|
}
|
|
}
|
|
|
|
|
+}
|
|
|
|
|
+.detail-centent {
|
|
|
|
|
+ img {
|
|
|
|
|
+ vertical-align: top;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|