问题描述:
代客下单一直显示支付中。

解决方法:
uniapp
修改文件:pages/behalf/order_confirm/index.vue,修改SubOrder方法。

SubOrder: function (e) {
let that = this,
data = {};
data = {
real_name: that.shippingType == 0 ? that.addressInfo.real_name : that.userInfo.real_name,
phone: that.shippingType == 0 ? that.addressInfo.phone : that.userInfo.phone,
address:
that.shippingType == 0 ? that.addressInfo.province + that.addressInfo.city + that.addressInfo.district + that.addressInfo.street + that.addressInfo.detail : '',
addressId: that.deliveryType == 2 ? 0 : that.addressInfo.id,
couponId: that.priceGroup.couponPrice == 0 ? 0 : that.couponId,
useIntegral: that.useIntegral,
mark: that.mark,
shipping_type: that.$util.$h.Add(that.shippingType, 1),
cartId: that.cartId,
store_id: that.deliveryType == 1 ? 0 : that.store_id,
};
uni.showLoading({
title: '订单支付中'
});
that.payment(data);
},修改完成后需要重新打包, 打包教程

