From ccbbf11865492708cdec59c593113fb4989fa2d3 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期二, 28 四月 2026 21:12:28 +0800
Subject: [PATCH] 支付宝支付ddd

---
 small-program/unpackage/dist/dev/mp-weixin/pages/store-apply/store-apply.js |   75 ++++++++++++++++++++++++-------------
 1 files changed, 48 insertions(+), 27 deletions(-)

diff --git a/small-program/unpackage/dist/dev/mp-weixin/pages/store-apply/store-apply.js b/small-program/unpackage/dist/dev/mp-weixin/pages/store-apply/store-apply.js
index e06afde..c8414fe 100644
--- a/small-program/unpackage/dist/dev/mp-weixin/pages/store-apply/store-apply.js
+++ b/small-program/unpackage/dist/dev/mp-weixin/pages/store-apply/store-apply.js
@@ -101,10 +101,10 @@
 try {
   components = {
     uIcon: function () {
-      return Promise.all(/*! import() | node-modules/uview-ui/components/u-icon/u-icon */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-icon/u-icon.vue */ 482))
+      return Promise.all(/*! import() | node-modules/uview-ui/components/u-icon/u-icon */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-icon/u-icon.vue */ 498))
     },
     uPicker: function () {
-      return Promise.all(/*! import() | node-modules/uview-ui/components/u-picker/u-picker */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-picker/u-picker")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-picker/u-picker.vue */ 533))
+      return Promise.all(/*! import() | node-modules/uview-ui/components/u-picker/u-picker */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-picker/u-picker")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-picker/u-picker.vue */ 549))
     },
   }
 } catch (e) {
@@ -313,6 +313,15 @@
         });
         return;
       }
+      var mobileRegex = /^1\d{10}$/;
+      var landlineRegex = /^\d{3,4}-?\d{7,8}$/;
+      if (!mobileRegex.test(this.form.linkPhone) && !landlineRegex.test(this.form.linkPhone)) {
+        uni.showToast({
+          title: '璇疯緭鍏ユ纭殑鎵嬫満鍙锋垨鍥哄畾鐢佃瘽',
+          icon: 'none'
+        });
+        return;
+      }
       if (!this.form.idcard) {
         uni.showToast({
           title: '璇疯緭鍏ヨ仈绯讳汉韬唤璇佸彿',
@@ -344,7 +353,7 @@
     submitApply: function submitApply() {
       var _this = this;
       return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
-        var res;
+        var mobileRegex, landlineRegex, res;
         return _regenerator.default.wrap(function _callee$(_context) {
           while (1) {
             switch (_context.prev = _context.next) {
@@ -413,7 +422,7 @@
                 });
                 return _context.abrupt("return");
               case 19:
-                _context.next = 45;
+                _context.next = 50;
                 break;
               case 21:
                 if (_this.form.legalPersonName) {
@@ -436,8 +445,20 @@
                 });
                 return _context.abrupt("return");
               case 27:
+                mobileRegex = /^1\d{10}$/;
+                landlineRegex = /^\d{3,4}-?\d{7,8}$/;
+                if (!(!mobileRegex.test(_this.form.legalPersonPhone) && !landlineRegex.test(_this.form.legalPersonPhone))) {
+                  _context.next = 32;
+                  break;
+                }
+                uni.showToast({
+                  title: '璇疯緭鍏ユ纭殑鎵嬫満鍙锋垨鍥哄畾鐢佃瘽',
+                  icon: 'none'
+                });
+                return _context.abrupt("return");
+              case 32:
                 if (_this.form.aliAccount) {
-                  _context.next = 30;
+                  _context.next = 35;
                   break;
                 }
                 uni.showToast({
@@ -445,9 +466,9 @@
                   icon: 'none'
                 });
                 return _context.abrupt("return");
-              case 30:
+              case 35:
                 if (_this.form.aliName) {
-                  _context.next = 33;
+                  _context.next = 38;
                   break;
                 }
                 uni.showToast({
@@ -455,9 +476,9 @@
                   icon: 'none'
                 });
                 return _context.abrupt("return");
-              case 33:
+              case 38:
                 if (_this.form.legalPersonCard) {
-                  _context.next = 36;
+                  _context.next = 41;
                   break;
                 }
                 uni.showToast({
@@ -465,9 +486,9 @@
                   icon: 'none'
                 });
                 return _context.abrupt("return");
-              case 36:
+              case 41:
                 if (_this.form.idcardImg) {
-                  _context.next = 39;
+                  _context.next = 44;
                   break;
                 }
                 uni.showToast({
@@ -475,9 +496,9 @@
                   icon: 'none'
                 });
                 return _context.abrupt("return");
-              case 39:
+              case 44:
                 if (_this.form.idcardImgBack) {
-                  _context.next = 42;
+                  _context.next = 47;
                   break;
                 }
                 uni.showToast({
@@ -485,9 +506,9 @@
                   icon: 'none'
                 });
                 return _context.abrupt("return");
-              case 42:
+              case 47:
                 if (_this.form.businessImg) {
-                  _context.next = 45;
+                  _context.next = 50;
                   break;
                 }
                 uni.showToast({
@@ -495,9 +516,9 @@
                   icon: 'none'
                 });
                 return _context.abrupt("return");
-              case 45:
+              case 50:
                 if (_this.agreed) {
-                  _context.next = 48;
+                  _context.next = 53;
                   break;
                 }
                 uni.showToast({
@@ -505,15 +526,15 @@
                   icon: 'none'
                 });
                 return _context.abrupt("return");
-              case 48:
+              case 53:
                 uni.showLoading({
                   title: '鎻愪氦涓�...',
                   mask: true
                 });
-                _context.prev = 49;
-                _context.next = 52;
+                _context.prev = 54;
+                _context.next = 57;
                 return _this.$u.api.applyShop(_this.form);
-              case 52:
+              case 57:
                 res = _context.sent;
                 uni.hideLoading();
                 if (res.code === 200) {
@@ -530,22 +551,22 @@
                     icon: 'none'
                   });
                 }
-                _context.next = 61;
+                _context.next = 66;
                 break;
-              case 57:
-                _context.prev = 57;
-                _context.t0 = _context["catch"](49);
+              case 62:
+                _context.prev = 62;
+                _context.t0 = _context["catch"](54);
                 uni.hideLoading();
                 uni.showToast({
                   title: '鎻愪氦澶辫触',
                   icon: 'none'
                 });
-              case 61:
+              case 66:
               case "end":
                 return _context.stop();
             }
           }
-        }, _callee, null, [[49, 57]]);
+        }, _callee, null, [[54, 62]]);
       }))();
     },
     getMyShopData: function getMyShopData() {

--
Gitblit v1.9.3