提交 5d48c4ad 编写于 作者: guofeng.chen's avatar guofeng.chen

修改参数

上级 f3918ab7
...@@ -119,6 +119,11 @@ export default { ...@@ -119,6 +119,11 @@ export default {
if (token && !info.id) { if (token && !info.id) {
this.$store.dispatch('getUserInfo'); this.$store.dispatch('getUserInfo');
} }
// 微信内先去授权
if (isWechat && !this.wxInfo.openid) {
wxOauth();
return;
}
// 数量加减 // 数量加减
this.curtGoodsNum = this.goodsNum; this.curtGoodsNum = this.goodsNum;
this.countTotalPrice = debounce(this.getTotalPrice, 500); this.countTotalPrice = debounce(this.getTotalPrice, 500);
...@@ -258,11 +263,6 @@ export default { ...@@ -258,11 +263,6 @@ export default {
this.goLogin(); this.goLogin();
return; return;
} }
// 微信内先去授权
if (isWechat && !this.wxInfo.openid) {
wxOauth();
return;
}
const { id, couponDTO, isSale } = this.goods; const { id, couponDTO, isSale } = this.goods;
const { preferentialPrice, costPrice } = this.totalPrice; const { preferentialPrice, costPrice } = this.totalPrice;
// if (!id || isSale !== 1) { // if (!id || isSale !== 1) {
...@@ -328,6 +328,7 @@ export default { ...@@ -328,6 +328,7 @@ export default {
const payData = { const payData = {
...res.data, ...res.data,
appid: res.data.appId, appid: res.data.appId,
timestamp: res.data.timeStamp,
success: function() { success: function() {
let query = { orderId }; let query = { orderId };
if (that.projectId) { if (that.projectId) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册