Commit bd0af7ae authored by wangwei's avatar wangwei

投放 去除客服

parent 31bd8272
......@@ -9,7 +9,9 @@
<title>唱唱启蒙英语</title>
<link rel="stylesheet" href="https://at.alicdn.com/t/font_822651_g9r2j7kybxu.css">
<style>
.mint-toast{
z-index: 10001 !important;
}
</style>
</head>
<body>
......
......@@ -12,6 +12,9 @@
*{
-webkit-overflow-scrolling:touch;
}
.mint-toast{
z-index: 10001 !important;
}
</style>
</head>
<body>
......
......@@ -42,17 +42,17 @@
</div>
<footer>
<!--<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 class="sub-block">
合计金额:
<span>{{priceTotal}}</span>
<div class="pay-btn" @click="payOrder(orderFlag)">提交订单</div>
合计金额:
<span>{{priceTotal}}</span>
<div class="pay-btn" @click="payOrder(orderFlag)">确认支付</div>
</div>
</footer>
<transition name="slide-fade">
<sale-div :salePop="salePop" @chooseSale="chooseSale"></sale-div>
<sale-div :salePop="salePop" @chooseSale="chooseSale"></sale-div>
</transition>
<transition name="slide-fade">
<div v-if="addressPop" class="address-pop">
......@@ -213,9 +213,9 @@
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}});
}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{
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{
let that = this;
......@@ -249,63 +249,58 @@
this.addressPop = true
},
initPage(){
if(!JSON.parse(localStorage.getItem('userDesc')).mobile|| JSON.parse(localStorage.getItem('userDesc')).mobile === ''){
this.$router.push({name:'bindMobile',query:{retUrl:this.$route.fullPath}})
}else
{
getwechatParam({api_list:'chooseWXPay'}).then(res=>{
wx.config({
debug: false,
appId: res.appId,
timestamp: parseInt(res.timestamp),
nonceStr: res.nonceStr,
signature: res.signature,
jsApiList: res.jsApiList
});
});
getwechatParam({api_list:'chooseWXPay'}).then(res=>{
wx.config({
debug: false,
appId: res.appId,
timestamp: parseInt(res.timestamp),
nonceStr: res.nonceStr,
signature: res.signature,
jsApiList: res.jsApiList
});
});
getUserAdressApi().then(res=>{
this.addressObj = res
});
this.shopId = this.$route.query.shopId;
this.group_order_id = this.$route.query.group_order_id;
getCouponListApi(this.shopId).then(res=>{
if(res.length > 0){
let x = {money:0};
for (let k = 0 ; k < res.length ; k++){
x = res[k].money > x.money ? res[k] : x;
}
this.saleObj = x;
this.canSale = true
}
});
getStatusWechatApi({goods_id:this.shopId}).then(res=>{
if(res.out_trade_no){
if(res.has_buy_goods_info.goods_type === 2){
this.$router.push({name:'success',query:{out_trade_no:res.out_trade_no}});
}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}});
}else if(res.has_buy_goods_info.goods_type !== 5){
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
})
});
getUserAdressApi().then(res=>{
this.addressObj = res
});
this.shopId = this.$route.query.shopId;
this.group_order_id = this.$route.query.group_order_id;
getCouponListApi(this.shopId).then(res=>{
if(res.length > 0){
let x = {money:0};
for (let k = 0 ; k < res.length ; k++){
x = res[k].money > x.money ? res[k] : x;
}
this.saleObj = x;
this.canSale = true
}
});
getStatusWechatApi({goods_id:this.shopId}).then(res=>{
if(res.out_trade_no){
if(res.has_buy_goods_info.goods_type === 2){
this.$router.push({name:'success',query:{out_trade_no:res.out_trade_no}});
}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}});
}else if(res.has_buy_goods_info.goods_type !== 5){
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
})
});
}
}
}
......
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