fix: 修复bug
parent
c7b67f2aae
commit
c4fc7ec96e
|
@ -21,7 +21,7 @@
|
||||||
"env": {
|
"env": {
|
||||||
"UNI_PLATFORM": "h5",
|
"UNI_PLATFORM": "h5",
|
||||||
"isVConsole": true,
|
"isVConsole": true,
|
||||||
"APP_BASE_URL": "http://192.168.1.147:48080"
|
"APP_BASE_URL": "http://192.168.1.188:48080"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"prod": {
|
"prod": {
|
||||||
|
|
|
@ -125,7 +125,7 @@
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
if (options.order_id) this.orderId = options.order_id
|
if (options.order_id) this.orderId = options.order_id
|
||||||
if (options.from_type) this.fromType = options.from_type
|
if (options.from_type) this.fromType = options.from_type
|
||||||
// this.getCashierOrder()
|
this.getCashierOrder()
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
let options = wx.getEnterOptionsSync();
|
let options = wx.getEnterOptionsSync();
|
||||||
|
@ -175,7 +175,7 @@
|
||||||
},
|
},
|
||||||
getCashierOrder() {
|
getCashierOrder() {
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '创建订单中'
|
title: '加载中'
|
||||||
});
|
});
|
||||||
getCashierOrder(this.orderId, this.fromType).then(res => {
|
getCashierOrder(this.orderId, this.fromType).then(res => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<view class="acea-row">
|
<view class="acea-row">
|
||||||
<text class='default font-color'
|
<text class='default font-color'
|
||||||
v-if="addressInfo.isDefault">[默认]</text>
|
v-if="addressInfo.isDefault">[默认]</text>
|
||||||
<text class="line2">{{addressInfo.province}}{{addressInfo.city}}{{addressInfo.district}}{{addressInfo.detail}}</text>
|
<text class="line2">{{addressInfo.province}}{{addressInfo.city}}{{addressInfo.district}}{{addressInfo.detail}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class='addressCon' v-else>
|
<view class='addressCon' v-else>
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
<text class='iconfont icon-jiantou'></text>
|
<text class='iconfont icon-jiantou'></text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class='item acea-row row-between-wrapper'
|
<view class='item acea-row row-between-wrapper'
|
||||||
v-if="!orderInfoVo.bargainId && !orderInfoVo.combinationId && !orderInfoVo.seckillId && productType==='normal'">
|
v-if="!orderInfoVo.bargainId && !orderInfoVo.combinationId && !orderInfoVo.seckillId && productType==='normal'">
|
||||||
<view>积分抵扣</view>
|
<view>积分抵扣</view>
|
||||||
|
@ -333,11 +333,11 @@
|
||||||
*/
|
*/
|
||||||
onShow: function() {
|
onShow: function() {
|
||||||
let _this = this
|
let _this = this
|
||||||
// wx.getLaunchOptionsSync
|
// wx.getLaunchOptionsSync
|
||||||
this.textareaStatus = true;
|
this.textareaStatus = true;
|
||||||
if (this.isLogin && this.toPay == false) {
|
if (this.isLogin && this.toPay == false) {
|
||||||
//this.getaddressInfo();
|
//this.getaddressInfo();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uni.$on("handClick", res => {
|
uni.$on("handClick", res => {
|
||||||
|
@ -387,7 +387,7 @@
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 授权回调事件
|
* 授权回调事件
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
onLoadFun: function() {
|
onLoadFun: function() {
|
||||||
//this.getaddressInfo();
|
//this.getaddressInfo();
|
||||||
|
@ -485,7 +485,7 @@
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 处理点击优惠券后的事件
|
* 处理点击优惠券后的事件
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
ChangCoupons: function(e) {
|
ChangCoupons: function(e) {
|
||||||
// this.usableCoupon = e
|
// this.usableCoupon = e
|
||||||
|
@ -549,7 +549,7 @@
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 获取当前金额可用优惠券
|
* 获取当前金额可用优惠券
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
getCouponList: function() {
|
getCouponList: function() {
|
||||||
getCouponsOrderPrice(this.preOrderNo).then(res => {
|
getCouponsOrderPrice(this.preOrderNo).then(res => {
|
||||||
|
@ -617,7 +617,7 @@
|
||||||
let that = this;
|
let that = this;
|
||||||
orderCreate(data).then(res => {
|
orderCreate(data).then(res => {
|
||||||
console.log(res.data,'订单信息')
|
console.log(res.data,'订单信息')
|
||||||
that.getOrderPay(res.data.orderNo, '支付成功');
|
that.getOrderPay(res.data.columns.orderNo, '支付成功');
|
||||||
|
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
|
@ -628,6 +628,7 @@
|
||||||
},
|
},
|
||||||
getOrderPay: function(orderNo, message) {
|
getOrderPay: function(orderNo, message) {
|
||||||
let that = this;
|
let that = this;
|
||||||
|
console.log('orderNO---', orderNo)
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/goods_cashier/index?order_id=' + orderNo
|
url: '/pages/goods_cashier/index?order_id=' + orderNo
|
||||||
})
|
})
|
||||||
|
@ -674,7 +675,7 @@
|
||||||
// title: err
|
// title: err
|
||||||
// });
|
// });
|
||||||
// })
|
// })
|
||||||
|
|
||||||
// },
|
// },
|
||||||
// fail: function(e) {
|
// fail: function(e) {
|
||||||
// uni.hideLoading();
|
// uni.hideLoading();
|
||||||
|
|
Loading…
Reference in New Issue