|
|
@@ -1,5 +1,5 @@
|
|
|
// pages/orders/order-detail.ts
|
|
|
-import { api_executeOrderV2, api_executePayment, api_queryByParamName, api_userPaymentOrderDetail, api_userPaymentOrderUnpaid } from "../../api/login";
|
|
|
+import { api_executeOrder, api_executePayment, api_queryByParamName, api_userPaymentOrderDetail, api_userPaymentOrderUnpaid } from "../../api/login";
|
|
|
import { api_sysAreaQueryAllProvince, api_userReceiveAddressPage, api_userReceiveAddressSave } from "../../api/new";
|
|
|
import { formatPrice, GRADE_ENUM } from "../../utils/util";
|
|
|
|
|
|
@@ -30,7 +30,6 @@ Page({
|
|
|
phoneNumber: ''
|
|
|
},
|
|
|
userBeneficiaryId: '', // 添加购买人信息
|
|
|
- userNote: '', // 购买人手机号
|
|
|
userBeneficiaryInfo: {
|
|
|
name: '',
|
|
|
phoneNumber: '',
|
|
|
@@ -125,7 +124,6 @@ Page({
|
|
|
this.setData({
|
|
|
goodsInfo: infos,
|
|
|
userBeneficiaryId: options.userBeneficiaryId,
|
|
|
- userNote: options.userNote,
|
|
|
status: options.status || '',
|
|
|
hasInstrument
|
|
|
}, () => {
|
|
|
@@ -153,7 +151,6 @@ Page({
|
|
|
phoneNumber: addresses?.phoneNumber
|
|
|
},
|
|
|
userBeneficiaryId: beneficiary.schoolAreaId, // 添加购买人信息
|
|
|
- userNote: beneficiary.userNote, // 添加购买人手机号
|
|
|
userBeneficiaryInfo: {
|
|
|
name: beneficiary.name,
|
|
|
phoneNumber: beneficiary.phone,
|
|
|
@@ -254,7 +251,7 @@ Page({
|
|
|
this.onPayError()
|
|
|
}
|
|
|
} else {
|
|
|
- const { data } = await api_executeOrderV2({
|
|
|
+ const { data } = await api_executeOrder({
|
|
|
orderType: "WECHAT_MINI",
|
|
|
paymentType: this.data.paymentType,
|
|
|
paymentCashAmount: allSalePrice,
|
|
|
@@ -263,8 +260,7 @@ Page({
|
|
|
openId: app.globalData.userInfo?.liteOpenid,
|
|
|
goodsInfos: goodsInfos,
|
|
|
receiveAddress: this.data.receiveAddress,
|
|
|
- // userBeneficiaryId: this.data.userBeneficiaryId,
|
|
|
- userNote: this.data.userNote,
|
|
|
+ userBeneficiaryId: this.data.userBeneficiaryId,
|
|
|
orderName: name,
|
|
|
orderDesc: name
|
|
|
})
|