|
@@ -20,7 +20,7 @@
|
|
|
<!-- 底部高度撑开 -->
|
|
|
<view class="contentBottomHeight"></view>
|
|
|
<!-- 底部操作菜单 -->
|
|
|
- <product-bottom @buy="buy" :goodsObjact="goodsObjact" :goodsid="goodsid" @specOPne="specOPne" :is_gold="is_gold"></product-bottom>
|
|
|
+ <product-bottom @buy="buy" :goodsObjact="goodsObjact" :goodsid="goodsid" @specOPne="specOPne" :is_gold="is_gold" :is_integral="is_integral"></product-bottom>
|
|
|
<!-- 规格-模态层弹窗 -->
|
|
|
<view class="popup spec" :class="specClass" @touchmove.stop.prevent="stopPrevent" @click="toggleSpec">
|
|
|
<!-- 遮罩层 -->
|
|
@@ -114,6 +114,7 @@ export default {
|
|
|
list: '', //商品详情的数据
|
|
|
type: 1, //默认支付方式add为
|
|
|
is_gold: 0,//是否是金豆商品
|
|
|
+ is_integral:0,//是否是金券商品
|
|
|
goodsType: 0,
|
|
|
goodsNumber: 1, //购买数量
|
|
|
goodsid: '', //商品id
|
|
@@ -172,6 +173,11 @@ export default {
|
|
|
//保存商品id
|
|
|
this.goodsid = options.id;
|
|
|
this.goodsType = options.type;
|
|
|
+
|
|
|
+ // 判断是否是金券商品
|
|
|
+ if (options.is_integral){
|
|
|
+ obj.is_integral = options.is_integral
|
|
|
+ }
|
|
|
// 判断是否是金豆商品
|
|
|
if (options.is_gold){
|
|
|
obj.is_gold = options.is_gold
|
|
@@ -335,6 +341,7 @@ export default {
|
|
|
let obj = this;
|
|
|
// 创建传值对象
|
|
|
let data = {
|
|
|
+ is_integral:obj.is_integral,//是否是金券商品
|
|
|
cartNum: obj.goodsNumber, //商品数量
|
|
|
new: 1,
|
|
|
productId: obj.goodsid, //商品编号
|
|
@@ -351,7 +358,7 @@ export default {
|
|
|
if (obj.type == 1) {
|
|
|
// 跳转到支付页
|
|
|
uni.navigateTo({
|
|
|
- url: '/pages/order/createOrder?id=' + da.cartId + '&is_gold=' + obj.is_gold
|
|
|
+ url: '/pages/order/createOrder?id=' + da.cartId + '&is_gold=' + obj.is_gold + '&is_integral=' + obj.is_integral
|
|
|
});
|
|
|
}
|
|
|
if (obj.type == 2) {
|