Commit bd0af7ae authored by wangwei's avatar wangwei

投放 去除客服

parent 31bd8272
...@@ -9,7 +9,9 @@ ...@@ -9,7 +9,9 @@
<title>唱唱启蒙英语</title> <title>唱唱启蒙英语</title>
<link rel="stylesheet" href="https://at.alicdn.com/t/font_822651_g9r2j7kybxu.css"> <link rel="stylesheet" href="https://at.alicdn.com/t/font_822651_g9r2j7kybxu.css">
<style> <style>
.mint-toast{
z-index: 10001 !important;
}
</style> </style>
</head> </head>
<body> <body>
......
...@@ -12,6 +12,9 @@ ...@@ -12,6 +12,9 @@
*{ *{
-webkit-overflow-scrolling:touch; -webkit-overflow-scrolling:touch;
} }
.mint-toast{
z-index: 10001 !important;
}
</style> </style>
</head> </head>
<body> <body>
......
...@@ -42,17 +42,17 @@ ...@@ -42,17 +42,17 @@
</div> </div>
<footer> <footer>
<!--<div v-if="groupDetail.is_real !== 1" class="phone-block">--> <!--<div v-if="groupDetail.is_real !== 1" class="phone-block">-->
<!--<input placeholder="请输入手机号" class="phone-input" v-model="mobile"/>--> <!--<input placeholder="请输入手机号" class="phone-input" v-model="mobile"/>-->
<!--</div>--> <!--</div>-->
<div class="sub-block"> <div class="sub-block">
合计金额: 合计金额:
<span>{{priceTotal}}</span> <span>{{priceTotal}}</span>
<div class="pay-btn" @click="payOrder(orderFlag)">提交订单</div> <div class="pay-btn" @click="payOrder(orderFlag)">确认支付</div>
</div> </div>
</footer> </footer>
<transition name="slide-fade"> <transition name="slide-fade">
<sale-div :salePop="salePop" @chooseSale="chooseSale"></sale-div> <sale-div :salePop="salePop" @chooseSale="chooseSale"></sale-div>
</transition> </transition>
<transition name="slide-fade"> <transition name="slide-fade">
<div v-if="addressPop" class="address-pop"> <div v-if="addressPop" class="address-pop">
...@@ -213,9 +213,9 @@ ...@@ -213,9 +213,9 @@
if(this.groupDetail.goods_type === 2 && !this.type){ if(this.groupDetail.goods_type === 2 && !this.type){
this.$router.push({name:'success',query:{out_trade_no:res.out_trade_no,invite_code:this.invite_code}}); this.$router.push({name:'success',query:{out_trade_no:res.out_trade_no,invite_code:this.invite_code}});
}else if(this.groupDetail.goods_type === 4){ }else if(this.groupDetail.goods_type === 4){
this.$router.push({name:'saleSuccess',query:{out_trade_no:res.out_trade_no,invite_code:this.invite_code}}); this.$router.push({name:'saleSuccess',query:{out_trade_no:res.out_trade_no,invite_code:this.invite_code}});
}else{ }else{
this.$router.push({name:'buySuccess',query:{out_trade_no:res.out_trade_no,invite_code:this.invite_code}}); this.$router.push({name:'buySuccess',query:{out_trade_no:res.out_trade_no,invite_code:this.invite_code}});
} }
}else{ }else{
let that = this; let that = this;
...@@ -249,63 +249,58 @@ ...@@ -249,63 +249,58 @@
this.addressPop = true this.addressPop = true
}, },
initPage(){ initPage(){
if(!JSON.parse(localStorage.getItem('userDesc')).mobile|| JSON.parse(localStorage.getItem('userDesc')).mobile === ''){ getwechatParam({api_list:'chooseWXPay'}).then(res=>{
this.$router.push({name:'bindMobile',query:{retUrl:this.$route.fullPath}}) wx.config({
}else debug: false,
{ appId: res.appId,
getwechatParam({api_list:'chooseWXPay'}).then(res=>{ timestamp: parseInt(res.timestamp),
wx.config({ nonceStr: res.nonceStr,
debug: false, signature: res.signature,
appId: res.appId, jsApiList: res.jsApiList
timestamp: parseInt(res.timestamp), });
nonceStr: res.nonceStr, });
signature: res.signature,
jsApiList: res.jsApiList
});
});
getUserAdressApi().then(res=>{ getUserAdressApi().then(res=>{
this.addressObj = res this.addressObj = res
}); });
this.shopId = this.$route.query.shopId; this.shopId = this.$route.query.shopId;
this.group_order_id = this.$route.query.group_order_id; this.group_order_id = this.$route.query.group_order_id;
getCouponListApi(this.shopId).then(res=>{ getCouponListApi(this.shopId).then(res=>{
if(res.length > 0){ if(res.length > 0){
let x = {money:0}; let x = {money:0};
for (let k = 0 ; k < res.length ; k++){ for (let k = 0 ; k < res.length ; k++){
x = res[k].money > x.money ? res[k] : x; x = res[k].money > x.money ? res[k] : x;
} }
this.saleObj = x; this.saleObj = x;
this.canSale = true this.canSale = true
} }
}); });
getStatusWechatApi({goods_id:this.shopId}).then(res=>{ getStatusWechatApi({goods_id:this.shopId}).then(res=>{
if(res.out_trade_no){ if(res.out_trade_no){
if(res.has_buy_goods_info.goods_type === 2){ if(res.has_buy_goods_info.goods_type === 2){
this.$router.push({name:'success',query:{out_trade_no:res.out_trade_no}}); this.$router.push({name:'success',query:{out_trade_no:res.out_trade_no}});
}else if(res.has_buy_goods_info.goods_type === 4){ }else if(res.has_buy_goods_info.goods_type === 4){
this.$router.push({name:'saleSuccess',query:{out_trade_no:res.out_trade_no,invite_code:this.$route.query.invite_code}}); this.$router.push({name:'saleSuccess',query:{out_trade_no:res.out_trade_no,invite_code:this.$route.query.invite_code}});
}else if(res.has_buy_goods_info.goods_type !== 5){ }else if(res.has_buy_goods_info.goods_type !== 5){
this.$router.push({name:'buySuccess',query:{out_trade_no:res.out_trade_no}}); this.$router.push({name:'buySuccess',query:{out_trade_no:res.out_trade_no}});
} }
}
});
getGoodsDetailApi(this.shopId).then(data=>{
data.desc = JSON.parse(data.desc);
data.goods_desc = JSON.parse(data.goods_desc);
data.share_desc = JSON.parse(data.share_desc);
this.groupDetail = data;
this.invite_code = this.$route.query.invite_code;
if(this.type && this.type === 0){
this.price=data.single_price/100
}else{
this.price = data.group_price/100
}
this.$nextTick(()=>{
this.orderFlag = true
})
});
} }
});
getGoodsDetailApi(this.shopId).then(data=>{
data.desc = JSON.parse(data.desc);
data.goods_desc = JSON.parse(data.goods_desc);
data.share_desc = JSON.parse(data.share_desc);
this.groupDetail = data;
this.invite_code = this.$route.query.invite_code;
if(this.type && this.type === 0){
this.price=data.single_price/100
}else{
this.price = data.group_price/100
}
this.$nextTick(()=>{
this.orderFlag = true
})
});
} }
} }
} }
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment