Commit 83fa06b1 by ym

map

1 parent 82df2c3e
......@@ -136,6 +136,7 @@ export default {
window.vm.track.collect(logs);
},
jumpDEJ() {
this.tabHideShow(1);
let { sessionId } = this.$store.state;
let para = {
sessionId
......
......@@ -108,20 +108,20 @@ export default {
WX.chooseWXPay(timeStamp, nonceStr, packages, signType, paySign).then(res => {
if(res) {
this.payCollect(orderCode,1);
if (this.appearance == 2) {
let productName = this.brandName + this.businessList[this.typeSno].productName + this.denomination.denomination
window.vm.$router.push({
name: 'commodity.process', query: {
rechargeNumber: this.rechargeNumber,
productName
}
})
} else {
window.vm.$router.replace({ name: 'commodity.success', query: { price: this.selectData.salesPrice } })
}
}else {
this.payCollect(orderCode,0);
}
if (this.appearance == 2) {
let productName = this.brandName + this.businessList[this.typeSno].productName + this.denomination.denomination
window.vm.$router.push({
name: 'commodity.process', query: {
rechargeNumber: this.rechargeNumber,
productName
}
})
} else {
window.vm.$router.replace({ name: 'commodity.success', query: { price: this.selectData.salesPrice } })
}
})
},
payCollect(orderCode,status) {
......
......@@ -139,11 +139,11 @@ export default {
WX.chooseWXPay(timeStamp, nonceStr, packages, signType, paySign).then(
(res) => {
if(res) {
self.getCardInfo();
self.payCollect(1);
}else {
self.payCollect(0);
}
self.getCardInfo();
}
);
} else {
......
......@@ -214,13 +214,12 @@ export default {
});
geolocation.getCurrentPosition(function (status, result) {
if (status == "complete") {
// self.addressInfo = {
// longitude: result.position.lng,
// latitude: result.position.lat,
// address: result.formattedAddress,
// cityCode: result.addressComponent.adcode,
// };
// self.$store.commit("setAddress", self.addressInfo);
self.addressInfo = {
longitude: result.position.lng,
latitude: result.position.lat,
address: result.formattedAddress,
cityCode: result.addressComponent.adcode,
};
}
});
});
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!