merchant-verification.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>商户验证</title>
  6. <meta name="keywords" content="商户验证">
  7. <meta name="description" content="商户验证">
  8. <meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,shrink-to-fit=no,user-scalable=no" name="viewport" viewport="cover">
  9. <meta name="apple-mobile-web-app-capable" content="yes">
  10. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  11. <meta content="telephone=no" name="format-detection">
  12. <meta content="email=no" name="format-detection">
  13. <meta name="apple-mobile-web-app-title" content="商户验证">
  14. <meta http-equiv="Cache-Control" content="no-siteapp">
  15. <link rel="stylesheet" href="./static/css/main.css">
  16. </head>
  17. <body class="pt0 pb0" style="padding-top:0;">
  18. <div class="index_current merchant-verification" id="app" v-cloak>
  19. <van-nav-bar :title="pageTitle" @click-left="back" v-if="toptitleisshow">
  20. <template #left="">
  21. <van-icon name="cross" color="#333" size=".5333rem"></van-icon>
  22. </template>
  23. </van-nav-bar>
  24. <van-form class="formWarp" validate-first @failed="onFailed" validate-trigger="onSubmit" @submit="onSubmit" :show-error-message="false" :show-error="false">
  25. <div class="label">
  26. <div class="f14">商户姓名</div>
  27. <van-field v-model="formInfo.MerRealName" name="MerRealName" placeholder="请输入该机具的商户姓名" :rules="[{ required: true, message: '请填写姓名' }]"></van-field>
  28. </div>
  29. <div class="label">
  30. <div class="f14">商户手机号</div>
  31. <van-field v-model.number="formInfo.MerchantMobile" name="MerchantMobile" placeholder="请输入该机具绑定的手机号" :rules="[{ pattern:telPattern, message: '手机号格式错误' }]"></van-field>
  32. </div>
  33. <div class="label">
  34. <div class="f14">身份证号</div>
  35. <van-field v-model="formInfo.MerIdcardNo" name="MerIdcardNo" placeholder="请输入身份证号" :rules="[{ pattern:IDPattern , message: '身份证号格式错误' }]"></van-field>
  36. </div>
  37. <van-button class="btn" round block type="info" color="#FDD500" native-type="submit">查询</van-button>
  38. <div class="tips">查询结果为非新商户,若继续开机仅可获得循环资格,无法获得奖励。</div>
  39. <div class="tips">提示:功能上线前未完善资料的部分商户可能存在查询结果仍为新商户,故商户验证结果仅供参考,验证后请与商户进行二次确认,奖励规则将以商户实际情况为准</div>
  40. </van-form>
  41. <van-popup class="pop" v-model="show" style="padding:24px;"><img class="db" src="./static/images/success.png" alt="成功">
  42. <div class="f16 c333 tc" style="margin-bottom: .3733rem;">恭喜您!</div>
  43. <div class="f14 c666 tc">该商户尚未开通机具,快去进件领取奖励吧!
  44. <van-button class="btn" round block type="info" color="#FDD500" @click="show=false">确定</van-button>
  45. </div>
  46. </van-popup>
  47. </div>
  48. </body>
  49. <script src="./static/js/klm-vv.min.js"></script>
  50. <script src="./static/js/appfunc.min.js"></script>
  51. <script src="./static/js/klm-axios-config.js"></script>
  52. <script src="./static/js/publicfn.js"></script>
  53. <script>
  54. Vue.use(vant.Lazyload)
  55. Vue.use(vant.Dialog);
  56. let app = new Vue({
  57. el:'#app',
  58. name:'possDetail',
  59. data(){
  60. return {
  61. pageTitle:'商户验证',
  62. toptitleisshow,
  63. show:false,
  64. formInfo:{
  65. MerRealName:'',
  66. MerchantMobile:'',
  67. MerIdcardNo:'',
  68. },
  69. telPattern:/^((13[0-9])|(14(0|[5-7]|9))|(15([0-3]|[5-9]))|(16(2|[5-7]))|(17[0-8])|(18[0-9])|(19([0-3]|[5-9])))\d{8}$/,
  70. IDPattern:/^[1-9]\d{5}(?:18|19|20)\d{2}(?:0[1-9]|10|11|12)(?:0[1-9]|[1-2]\d|30|31)\d{3}[\dXx]$/,
  71. }
  72. },
  73. created(){
  74. },
  75. methods:{
  76. back(){
  77. PublicLib.GoBack({Leval:1});
  78. },
  79. onFailed(errorInfo) {
  80. console.log('failed', errorInfo);
  81. tips(errorInfo.errors[0].message);
  82. },
  83. onFailed1(errorInfo) {
  84. console.log('failed', errorInfo);
  85. tips(errorInfo.errors[0].message);
  86. },
  87. async onSubmit1(values) {
  88. console.log(values);
  89. },
  90. async onSubmit(values) {
  91. let res = await getRequest('api/v1/pos/posmerchantinfo/checkmerchantinfo?t='+Math.random(6),JSON.stringify(this.formInfo));
  92. if(res.status !== '1') return tips(res.info);
  93. //- if(res.data.Exist == 0){
  94. //- vant.Dialog.alert({ title: '恭喜您', message: '该商户还未入驻,快去领取奖励吧!',theme: 'round-button',confirmButtonColor:'#FDD500',className:'pftDialog'}).then(()=>{})
  95. //- }
  96. if(res.data.Exist == 0){
  97. this.show = true
  98. }
  99. if(res.data.Exist == 1){
  100. vant.Dialog.alert({ message: '该商户非新商户,开通后将仅可获得循环资格,无法获得奖励',theme: 'round-button',confirmButtonColor:'#FDD500',className:'pftDialog'}).then(()=>{})
  101. }
  102. },
  103. },
  104. })
  105. </script>
  106. </html>