Commit a351e4a9 authored by IvyXia123's avatar IvyXia123

支付宝

parent ec4a9013
......@@ -11,4 +11,4 @@
position: fixed;
background: #f4f4f4;
}
/* html{font-size: 1px;} */</style><link href=static/css/app.f983055a19b69eb54137ee36031e8a72.css rel=stylesheet></head><body><div id=app></div><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js></script><script></script><script type=text/javascript src=static/js/manifest.3f3180d025f5798d7194.js></script><script type=text/javascript src=static/js/vendor.0c1d6ebbba685002d59c.js></script><script type=text/javascript src=static/js/app.c2f1a60bb847b70749cd.js></script></body></html>
\ No newline at end of file
/* html{font-size: 1px;} */</style><link href=static/css/app.f983055a19b69eb54137ee36031e8a72.css rel=stylesheet></head><body><div id=app></div><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js></script><script></script><script type=text/javascript src=static/js/manifest.926dd3a849ddcdba4d0c.js></script><script type=text/javascript src=static/js/vendor.5af9774cd57a16d7dc8b.js></script><script type=text/javascript src=static/js/app.f6db6e76e4cde288b5a5.js></script></body></html>
\ No newline at end of file
<template>
<div class="group-buy">
<guidelines></guidelines>
<guidelines v-if="guidelinesShow"></guidelines>
<div :style="{backgroundImage:`url('${lineImage}')`}" class="main-background">
<div class="title-top">
......@@ -216,8 +216,7 @@ export default {
{ icon: zhifubao, title: '支付宝支付', value: 1 }
],
payIndex: 0,
payUrl: '',
ui: ''
guidelinesShow: false
};
},
mounted() {
......@@ -423,13 +422,8 @@ export default {
let data = { pay_type: 'ALI', return_url: window.location.href, buy_type: this.groupDetail.goods_type }
let dataObj = Object.assign({}, data, json)
postPayBillApi(dataObj).then(res => {
this.payUrl = res.pay_url;
this.$router.push({
path: 'guidelines',
query: {
url: res.pay_url
}
})
this.guidelinesShow = true;
window.localStorage.pay_url = res.pay_ur
})
}
return ;
......
<template>
<div>
<guidelines v-if="guidelinesNum === 1"></guidelines>
<div style="height: 100vh;overflow: auto">
<div class="group-index" ref="index" v-if="groupDetail" style="min-height: 120vh">
<swiper :options="swiperOption" class="banner" ref="mySwiper">
......@@ -213,6 +214,8 @@
import comment from "../../util/common";
import { Toast } from "vant";
import orderCancelDialog from "./orderCancelDialog";
import guidelines from './guidelines'
import {
getwechatParam,
getGoodsDetailApi,
......@@ -239,6 +242,7 @@
import couponBg from "../../assets/activity/popup@2x.png";
import closeImg from "../../assets/activity/close.png";
import couponTip from "../../assets/activity/popup_btn.png";
import common from "../../util/common"
export default {
name: "index",
components: {
......@@ -246,7 +250,8 @@
swiperSlide,
loginPage,
[Popup.name]: Popup,
orderCancelDialog
orderCancelDialog,
guidelines
},
data() {
return {
......@@ -299,17 +304,20 @@
closeImg: closeImg,
couponTipImg: couponTip,
closeStatus: false,
saleObj:null
};
saleObj:null,
guidelinesNum: 0
}
},
mounted() {
console.log(comment.getUrlParam().gdt_vid, 989898)
this.getDetail();
Toast.loading({
mask: true,
message: ''
});
this.guidelinesNum = common.isWeixinBrowser();
// document.body.addEventListener('focusout', () => { //软键盘关闭事件
// document.documentElement.scrollTop = 0
// document.body.scrollTop = 0
......
......@@ -626,6 +626,8 @@ router.beforeEach((to, from, next) => {
localStorage.setItem('redeem_code', common.getUrlParam().cct_user_id);
// localStorage.setItem('redeem_code', common.getParamhref().redeem_code);
}
// extensionV1Shop
// extensionV1
if (to.name === 'spcShop' || to.name === 'mpShop' || to.name === 'extensionV1Shop' || to.name === 'extensionV1' || to.name === 'author' || to.name === 'bindMobile' || to.name === 'noWechat' || to.name === 'inspectorActivit' || to.name === 'buyDetail'|| to.name === 'passShop'|| to.name === 'ybIndex' ) {
......
......@@ -118,5 +118,16 @@ export default {
}
}
return newObj;
},
isWeixinBrowser() {
var ui = 0
var ua = navigator.userAgent.toLowerCase();
var result = (/micromessenger/.test(ua)) ? true : false;
if (result) {
ui = 0
} else {
ui = 1
}
return ui;
}
}
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