Commit a0ce8ab9 authored by malin's avatar malin

final

parent 514437ae
...@@ -192,7 +192,7 @@ export default { ...@@ -192,7 +192,7 @@ export default {
.baby-form input { .baby-form input {
width: 3.96rem; width: 3.96rem;
height: 0.36rem; height: 0.4rem;
padding: 0 0.1rem; padding: 0 0.1rem;
} }
......
...@@ -191,15 +191,6 @@ export default { ...@@ -191,15 +191,6 @@ export default {
} }
}, 1000); }, 1000);
// 监听滚动,当立即支付按钮消失时,将立刻获取按钮固定
// let payBtn = document.querySelector(".pay-btn");
// let top = payBtn.offsetTop + payBtn.clientHeight;
// window.onscroll = () => {
// if (window.pageYOffset >= top) {
// console.log(111);
// }
// };
this._payConfig(); // 获取支付价格 this._payConfig(); // 获取支付价格
}, },
...@@ -229,17 +220,12 @@ export default { ...@@ -229,17 +220,12 @@ export default {
let h5LogsObj = JSON.parse(decodeURI(utils.getCookie("h5LogsObj"))); let h5LogsObj = JSON.parse(decodeURI(utils.getCookie("h5LogsObj")));
API.API_payConfig({ API.API_payConfig({
// pkg: pkg: h5LogsObj.pkg ? h5LogsObj.pkg : "com.h5game.bbqm",
// process.env.NODE_ENV == "development"
// ? "com.h5game.bbqm"
// : h5LogsObj.pkg,
pkg: "com.h5game.bbqm",
zygt: "hzwz", zygt: "hzwz",
tgtk: 1, tgtk: 1,
uid: 1008611, uid: 1008611,
}).then((res) => { }).then((res) => {
console.log("获取支付价格===", res); console.log("获取支付价格===", res);
// this.originalPrice = res.result.data.goodsList[0].originalPrice;
this.cash = res.result.data.goodsList[0].cash; this.cash = res.result.data.goodsList[0].cash;
this.originalPrice = res.result.data.goodsList[0].originalPrice; this.originalPrice = res.result.data.goodsList[0].originalPrice;
}); });
...@@ -256,15 +242,14 @@ export default { ...@@ -256,15 +242,14 @@ export default {
// 创建订单,获取orderId // 创建订单,获取orderId
let params = await API.API_createorder({ let params = await API.API_createorder({
// source:
// process.env.NODE_ENV == "development" ? "toutiao" : h5LogsObj.source,
zygt: "hzwz", zygt: "hzwz",
tgtk: 1, tgtk: 1,
pkg: "com.h5game.bbqm", pkg: h5LogsObj.pkg ? h5LogsObj.pkg : "com.h5game.bbqm",
firstName: this.$route.query.name, firstName: this.$route.query.name,
gender: this.$route.query.gender, gender: this.$route.query.gender,
datadate: this.$route.query.date, datadate: this.$route.query.date,
source: "toutiao", // source: "toutiao",
source: h5LogsObj.source ? h5LogsObj.source : "toutiao",
}); });
utils.setCookie("orderId", params.result.data.orderId, 0); // 将orderId添加到cookie中 utils.setCookie("orderId", params.result.data.orderId, 0); // 将orderId添加到cookie中
...@@ -287,7 +272,7 @@ export default { ...@@ -287,7 +272,7 @@ export default {
wxType: "H5Page", wxType: "H5Page",
orderType: 5, orderType: 5,
// pkg: h5LogsObj.pkg, // pkg: h5LogsObj.pkg,
pkg: "com.h5game.bbqm", pkg: h5LogsObj.pkg ? h5LogsObj.pkg : "com.h5game.bbqm",
outTradeNo: params.result.data.orderId, outTradeNo: params.result.data.orderId,
totalFee: 1, totalFee: 1,
}).then((res) => { }).then((res) => {
......
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