lex-wxl 18 часов назад
Родитель
Сommit
9430d3a8cf
3 измененных файлов с 14 добавлено и 3 удалено
  1. 9 0
      miniprogram/api/login.ts
  2. 3 1
      miniprogram/pages/index/index.wxml
  3. 2 2
      miniprogram/pages/orders/order-detail.ts

+ 9 - 0
miniprogram/api/login.ts

@@ -49,6 +49,15 @@ export const api_executeOrder = (params: any) => {
   } as any);
   } as any);
 };
 };
 
 
+export const api_executeOrderV2 = (params: any) => {
+  return request({
+    url: `/edu-app/userPaymentOrder/miniProgramExecuteOrderV2`,
+    method: "post",
+    data: params,
+  } as any);
+};
+
+
 /** 用户下单 */
 /** 用户下单 */
 export const api_executePayment = (params: any) => {
 export const api_executePayment = (params: any) => {
   return request({
   return request({

+ 3 - 1
miniprogram/pages/index/index.wxml

@@ -107,7 +107,9 @@
         <image src="https://oss.dayaedu.com/ktyq/01/1767886728137.png" mode="widthFix" class="top-vip-img"></image>
         <image src="https://oss.dayaedu.com/ktyq/01/1767886728137.png" mode="widthFix" class="top-vip-img"></image>
         <!-- 添加手机号 -->
         <!-- 添加手机号 -->
         <view class="addPhone">
         <view class="addPhone">
-          <van-field border="{{false}}" model:value="{{ userNote }}" maxlength="11" type="number" placeholder="请输入权益人手机号" />
+          <van-field border="{{false}}" model:value="{{ userNote }}" maxlength="11" type="number" placeholder="请输入权益人手机号" >
+            <view class="required" slot="label">手机号码</view>
+          </van-field>
         </view>
         </view>
         <!-- 添加权益人 -->
         <!-- 添加权益人 -->
         <!-- <view class="addBuyer" bind:tap="onSelectBuyer">
         <!-- <view class="addBuyer" bind:tap="onSelectBuyer">

+ 2 - 2
miniprogram/pages/orders/order-detail.ts

@@ -1,5 +1,5 @@
 // pages/orders/order-detail.ts
 // 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 { api_sysAreaQueryAllProvince, api_userReceiveAddressPage, api_userReceiveAddressSave } from "../../api/new";
 import { formatPrice, GRADE_ENUM } from "../../utils/util";
 import { formatPrice, GRADE_ENUM } from "../../utils/util";
 
 
@@ -254,7 +254,7 @@ Page({
           this.onPayError()
           this.onPayError()
         }
         }
       } else {
       } else {
-        const { data } = await api_executeOrder({
+        const { data } = await api_executeOrderV2({
           orderType: "WECHAT_MINI",
           orderType: "WECHAT_MINI",
           paymentType: this.data.paymentType,
           paymentType: this.data.paymentType,
           paymentCashAmount: allSalePrice,
           paymentCashAmount: allSalePrice,