|
|
@@ -1,5 +1,5 @@
|
|
|
// pages/orders/order-detail.ts
|
|
|
-import { api_executeOrder, api_executePayment, api_queryByParamName, api_userPaymentOrderDetail, api_userPaymentOrderUnpaid } from "../../api/login";
|
|
|
+import { api_executeOrderV2, 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";
|
|
|
|
|
|
@@ -28,6 +28,7 @@ Page({
|
|
|
name: '',
|
|
|
phoneNumber: ''
|
|
|
},
|
|
|
+ userNote: '', // 手机号
|
|
|
userBeneficiaryId: '', // 添加购买人信息
|
|
|
userBeneficiaryInfo: {
|
|
|
name: '',
|
|
|
@@ -101,6 +102,7 @@ Page({
|
|
|
this.setData({
|
|
|
goodsInfo: infos,
|
|
|
userBeneficiaryId: options.userBeneficiaryId,
|
|
|
+ userNote: options.userNote,
|
|
|
status: options.status || '',
|
|
|
hasInstrument
|
|
|
}, () => {
|
|
|
@@ -233,7 +235,7 @@ Page({
|
|
|
this.onPayError()
|
|
|
}
|
|
|
} else {
|
|
|
- const { data } = await api_executeOrder({
|
|
|
+ const { data } = await api_executeOrderV2({
|
|
|
orderType: "WECHAT_MINI",
|
|
|
paymentType: this.data.paymentType,
|
|
|
paymentCashAmount: allSalePrice,
|
|
|
@@ -243,6 +245,7 @@ Page({
|
|
|
goodsInfos: goodsInfos,
|
|
|
receiveAddress: this.data.receiveAddress,
|
|
|
userBeneficiaryId: this.data.userBeneficiaryId,
|
|
|
+ userNote: this.data.userNote,
|
|
|
orderName: name,
|
|
|
orderDesc: name
|
|
|
})
|