vps交流

中国移动和包app快进来改你的代码


本帖最后由 mmc199 于 2022-3-16 20:38 编辑

和包app积分商城添加收货地址 反复弹出 请确认手机号格式!
网页版  
https://m.jf.10086.cn/  

https://m.jf.10086.cn/?vCode=《本次登录六位短信验证码》#/modules/pages/myAddress/editAddress/editAddress?type=select  

问题js  

https://m.jf.10086.cn/h5/js/53.d12e09d87f8b61596c6a.js

  1. if (a)
  2.     if (/^[1]([3-9])[0-9]{9}$/.test(h) && h)
  3.         if (o && i && c && r)
  4.             if (p && !/^[0-9]{6}$/.test(p))
  5.                 this.toastModal("请确认邮编格式!");
  6.             else {
  7.                 Object(S.r)({
  8.                     "si_n": "BJDZ_BCDZ",
  9.                     "si_x": "21"
  10.                 });
  11.                 var m = {
  12.                     "custName": a,
  13.                     "custTel": h,
  14.                     "addressInfo": o,
  15.                     "provinceCode": i,
  16.                     "cityCode": c,
  17.                     "countyCode": r,
  18.                     "postCode": p,
  19.                     "addrId": u
  20.                 };
  21.                 t[u ? "update" : "create"](m).then((function(t) {
  22.                     200 === t.resultCode ? (Object(S.r)({
  23.                         "si_n": "BJDZ_BCDZ",
  24.                         "si_x": "99"
  25.                     }),
  26.                     e.toastModal("保存成功!"),
  27.                     S.cb.set("needRefresh", "true"),
  28.                     Object(S.U)()) : (Object(S.r)({
  29.                         "si_n": "BJDZ_BCDZ",
  30.                         "si_x": "-99"
  31.                     }),
  32.                     e.toastModal(t.resultMessage))
  33.                 }
  34.                 ))
  35.             }
  36.         else
  37.             this.toastModal("请完善收货地址信息后提交!");
  38.     else
  39.         this.toastModal("请确认手机号格式!");
  40. else
  41.     this.toastModal("请完善收货地址信息后提交!")

复制代码

第二个 if

  1. if (/^[1]([3-9])[0-9]{9}$/.test(h) && h)

复制代码

修改为应该

  1. if (!/^[1]([3-9])[0-9]{9}$/.test(h) && h)

复制代码

少了一个否定符号!

全球bug提交论坛,中国移动和包app快进来改你的代码中国移动和包app快进来改你的代码中国移动和包app快进来改你的代码
@中国移动
把你能得,我有理由怀疑你是在教我中国移动做事?
你在教我做事?
不搞点问题 礼品不是让你兑完了?
哈哈,老哥稳中国移动和包app快进来改你的代码
谁想收到货?  改那是不可能改的
赞(0)
版权声明:本贴采用知识共享 署名4.0国际许可协议 [BY-NC-SA] 进行授权
帖子名称:《中国移动和包app快进来改你的代码》
帖子链接:https://bbs.toot.su/89948.html