Browse Source

验证和调整签名页面

yangguanjin 1 ngày trước cách đây
mục cha
commit
24bc8520a2
2 tập tin đã thay đổi với 5 bổ sung5 xóa
  1. 1 1
      src/pages/sign/components/PushOrderPopup.vue
  2. 4 4
      src/pages/sign/index.vue

+ 1 - 1
src/pages/sign/components/PushOrderPopup.vue

@@ -12,7 +12,7 @@
           class="row-input"
           v-model="phoneModel"
           type="number"
-          maxlength="11"
+          :maxlength="11"
           placeholder="请输入接收人手机号"
         />
       </view>

+ 4 - 4
src/pages/sign/index.vue

@@ -219,8 +219,8 @@ const closePushPopup = () => {
 }
 
 const handlePushOrderSubmit = () => {
-  const f = flow.value
-  if (!f) return
+  const currentFlow = flow.value
+  if (!currentFlow) return
 
   if (!inputName.value || !inputPhone.value) {
     return uni.showToast({ title: '请输入接收人姓名和手机号', icon: 'none' })
@@ -234,8 +234,8 @@ const handlePushOrderSubmit = () => {
     receiver: inputName.value,
     receiverPhone: inputPhone.value,
     // ZXXX 不传邮箱,其它类型使用路由带入的接收邮箱
-    receiverEmail: f.pushEmailDisabled ? '' : receiverEmail.value,
-    businessType: f.businessType,
+    receiverEmail: currentFlow.pushEmailDisabled ? '' : receiverEmail.value,
+    businessType: currentFlow.businessType,
     signUrl: getSignUrl(),
     orderItemId: orderItemId.value || undefined,
     securityCheckId: securityCheckId.value,