Browse Source

修改开店申请第二步页面样式

shenjj 7 years ago
parent
commit
c549a192c0

+ 2 - 2
components/mobile/MobileFooter.vue

@@ -101,8 +101,8 @@
         this.url = url
         if (this.user.logged) {
           if (isSelf && (!this.user.data.enterprise.uu || this.user.data.enterprise.isVendor !== 313)) {
-            // this.onRemind('请前往账户中心【我】进行开店申请')
-            this.onRemind('请前往PC端申请开店')
+            this.onRemind('请前往账户中心【我】进行开店申请')
+            // this.onRemind('请前往PC端申请开店')
           } else {
             this.$router.push(url)
           }

+ 43 - 37
components/mobile/register-saler/register/StepThird.vue

@@ -104,7 +104,7 @@
                 </div>
                 <div class="brand-small-upload clearfix" style="margin: 0.1rem 0.25rem 0 0.25rem">
                   <div class="brand-small-img">
-                    <upload :typeData="index" @uploadAction="onUpload"></upload>
+                    <upload :typeData="index" @uploadAction="onUpload" :NopassThree="true"></upload>
                   </div>
                   <div class="file-text">品牌logo/商标注册原件/授权说明书</div>
                   <div v-show="brands.length > 1" @click="deleteBrand(index)" class="delete" title="删除"><i class="fa fa-trash"></i></div>
@@ -127,7 +127,7 @@
                   <div class="wrap-title"><span class="line"></span>营业执照</div>
                   <div class="clearfix" style="margin: 0 0.25rem">
                     <div class="show_image_area show_image pull-left">
-                      <upload :typeData="'BUSINESS_LICENSE'" :url="businessLicenseUrl" @uploadAction="onUpload"></upload>
+                      <upload :typeData="'BUSINESS_LICENSE'" :url="businessLicenseUrl" @uploadAction="onUpload" :NopassThree="true"></upload>
                     </div>
                     <div class="pull-left infoTextMobile" style="width: 5.1rem;margin-left: 0.2rem">
                       <em style="color: #FF0000;">*</em>如已上传最新版营业执照(三证合一),则其他两证无需上传;仅支持上传JPG、PNG、GIF、PDF格式,每张大小超过3M
@@ -141,7 +141,7 @@
                   <div class="wrap-title"><span class="line"></span>纳税人证明</div>
                   <div class="" style="margin: 0 0.25rem">
                     <div class="show_image_area show_image">
-                      <upload  :typeData="'TAX_PAYER'" @uploadAction="onUpload"></upload>
+                      <upload  :typeData="'TAX_PAYER'" @uploadAction="onUpload" :NopassThree="true"></upload>
                   </div>
                   </div>
                 </div>
@@ -149,7 +149,7 @@
                   <div class="wrap-title"><span class="line"></span>税务登记证</div>
                   <div class="" style="margin: 0 0.25rem">
                     <div class="show_image_area show_image">
-                      <upload :typeData="'TAX_REGISTRATION'" @uploadAction="onUpload"></upload>
+                      <upload :typeData="'TAX_REGISTRATION'" @uploadAction="onUpload" :NopassThree="true"></upload>
                     </div>
                     <!--<div class="col-md-5" style="padding: 0;">-->
                       <!--<span style="margin-top: 50%;padding-right: 20px;">税务登记证</span>-->
@@ -188,7 +188,7 @@
                 </div>
                 <div class="brand-small-upload clearfix"  style="margin: 0.1rem 0.25rem 0 0.25rem">
                   <div class="brand-small-img">
-                    <upload :typeData="index" @uploadAction="onUpload"></upload>
+                    <upload :typeData="index" @uploadAction="onUpload" :NopassThree="true"></upload>
                   </div>
                   <div class="file-text">代理资格证/代理授权书</div>
                   <div v-show="brands.length > 1" @click="deleteBrand(index)" class="delete" title="删除"><i class="fa fa-trash"></i></div>
@@ -214,7 +214,7 @@
                   <div class="wrap-title"><span class="line"></span>营业执照</div>
                   <div class="clearfix" style="margin: 0 0.25rem">
                     <div class="show_image_area show_image pull-left">
-                      <upload :typeData="'BUSINESS_LICENSE'" :url="businessLicenseUrl" @uploadAction="onUpload"></upload>
+                      <upload :typeData="'BUSINESS_LICENSE'" :url="businessLicenseUrl" @uploadAction="onUpload" :NopassThree="true"></upload>
                     </div>
                     <div class="pull-left infoTextMobile" style="width: 5.1rem;margin-left: 0.2rem">
                       <em style="color: #FF0000;">*</em>如已上传最新版营业执照(三证合一),则其他两证无需上传;仅支持上传JPG、PNG、GIF、PDF格式,每张大小超过3M
@@ -228,7 +228,7 @@
                   <div class="wrap-title"><span class="line"></span>纳税人证明</div>
                   <div class="" style="margin: 0 0.25rem">
                     <div class="show_image_area show_image">
-                      <upload  :typeData="'TAX_PAYER'" @uploadAction="onUpload"></upload>
+                      <upload  :typeData="'TAX_PAYER'" @uploadAction="onUpload" :NopassThree="true"></upload>
                     </div>
                   </div>
                 </div>
@@ -236,7 +236,7 @@
                   <div class="wrap-title"><span class="line"></span>税务登记证</div>
                   <div class="" style="margin: 0 0.25rem">
                     <div class="show_image_area show_image">
-                      <upload :typeData="'TAX_REGISTRATION'" @uploadAction="onUpload"></upload>
+                      <upload :typeData="'TAX_REGISTRATION'" @uploadAction="onUpload" :NopassThree="true"></upload>
                     </div>
                     <!--<div class="col-md-5" style="padding: 0;">-->
                       <!--<span style="margin-top: 50%;padding-right: 20px;">税务登记证</span>-->
@@ -442,6 +442,7 @@
         e.target.setAttribute('class', '')
       },
       submitApply: function () {
+        // 个人
         if (this.loginData.isSelf) {
           if (!this.registerData.isValidRegister) {
             // this.$message.error('请输入正确的注册信息')
@@ -452,37 +453,41 @@
             this.collectResult = '您还没有勾选相关条款'
             this.timeoutCount++
           } else {
+            // 注册企业,并提交申请
             this.registerSelf()
           }
         } else {
+          // 企业
           if (!this.checkData.checked) {
             // this.$message.error('您还没有勾选相关条款')
             this.collectResult = '您还没有勾选相关条款'
             this.timeoutCount++
           } else {
+            // 提交申请
             this.storeApply(this.loginData.enterprise.uu)
           }
         }
       },
+      // 个人用户,先注册企业,成功后,提交开店申请
       registerSelf: function () {
         this.showLoading = true
         this.$http.post('/basic/enterprise/register?filePath=' + this.registerData.url, this.registerData.enterprise)
           .then(response => {
             if (response.data.success) {
               this.isSelfRegisterSuccess = true
+              // 删除保存的缓存企业信息
               this.$http.delete('basic/user/userCacheEnterprise')
-              this.$http.get('/user/authentication/reflash')
-                .then(() => {
-                  this.$http.get(`/user/authentication/` + response.data.data.enuu).then(() => {
-                    this.$store.dispatch('loadUserInfo')
-                    this.loginData.isSelf = false
-                    this.loginData.enterprise.uu = response.data.data.enuu
-                    this.storeApply(response.data.data.enuu)
+              // 把当前用户登录企业信息切换为注册的企业
+              this.$http.get(`/user/authentication/` + response.data.data.enuu).then(() => {
+                // 重新获取登录用户信息
+                this.$store.dispatch('loadUserInfo')
+                this.loginData.isSelf = false
+                this.loginData.enterprise.uu = response.data.data.enuu
+                // 提交开店申请
+                this.storeApply(response.data.data.enuu)
 //                    window.location.reload()
-                    this.showLoading = false
-                  })
-                }
-              )
+                this.showLoading = false
+              })
             } else {
               this.isSelfRegisterSuccess = false
               this.showLoading = false
@@ -541,6 +546,7 @@
                 tmpBrands.push(item)
               }
             })
+            // 申请开店
             this.$http.post('/store-service/applications', {
               brands: tmpBrands,
               qualifications: qualifications,
@@ -561,20 +567,10 @@
               }
               this.$http.post('/basic/enterprise/openVendor/' + enuu)
                 .then(() => {
-                  this.$http.get('/user/authentication/reflash')
-                    .then(() => {
-                      this.$http.get(`/user/authentication/` + enuu).then(() => {
-                        this.$store.dispatch('loadUserInfo')
-                        setTimeout(() => {
-                          this.$router.push('/mobile/user')
-                        }, 3000)
-                      })
-                    })
+                  setTimeout(() => {
+                    this.$router.push('/mobile/user')
+                  }, 3000)
                 })
-
-              // window.setTimeout(function () {
-                // window.location.href = '/vendor#/store-apply/wait'
-              // }, 3000)
             }, err => {
               console.log(err)
               this.$http.post('/basic/enterprise/openVendorSetRead/' + enuu)
@@ -632,9 +628,13 @@
       goProduct: function (baseUrl) {
         if (this.loginData.isSelf) {
           if (!this.registerData.isValidRegister) {
-            this.$message.error('请输入正确的注册信息')
+            this.collectResult = '请输入正确的注册信息'
+            this.timeoutCount++
+            // this.$message.error('请输入正确的注册信息')
           } else if (!this.checkData.checked) {
-            this.$message.error('您还没有勾选相关条款')
+            this.collectResult = '您还没有勾选相关条款'
+            this.timeoutCount++
+            // this.$message.error('您还没有勾选相关条款')
           } else {
             this.showLoading = true
             this.$http.post('/basic/enterprise/register?filePath=' + this.registerData.url, this.registerData.enterprise)
@@ -645,19 +645,25 @@
                   this.reflashEnterprise(response.data.data.enuu, baseUrl || '/vendor#/vendor_upload')
                 } else {
                   this.isSelfRegisterSuccess = false
-                  this.$message.error(response.data.message || '企业注册失败,请重新填写信息')
+                  this.collectResult = response.data.message || '企业注册失败,请重新填写信息'
+                  this.timeoutCount++
+                  // this.$message.error(response.data.message || '企业注册失败,请重新填写信息')
                 }
                 this.showLoading = false
               }, err => {
                 console.log(err)
                 this.isSelfRegisterSuccess = false
                 this.showLoading = false
-                this.$message.error('企业注册失败,请重新填写信息')
+                this.collectResult = '企业注册失败,请重新填写信息'
+                this.timeoutCount++
+                // this.$message.error('企业注册失败,请重新填写信息')
               })
           }
         } else {
           if (!this.checkData.checked) {
-            this.$message.error('您还没有勾选相关条款')
+            this.collectResult = '您还没有勾选相关条款'
+            this.timeoutCount++
+            // this.$message.error('您还没有勾选相关条款')
           } else {
             this.reflashEnterprise(this.loginData.enterprise.uu, baseUrl || '/vendor#/vendor_upload')
           }

+ 4 - 4
components/register-saler/register/StepSecond.vue

@@ -1,6 +1,6 @@
 <template>
   <!--阅读服务协议-->
-  <div class="section">
+  <div class="section sectionSeconds">
     <div class="agreement">
       <div class="join_xieyi">
         <div class="article-flag">
@@ -22,9 +22,9 @@
       </label>
     </div>
     <div class="row next-btn step-two-btn" style="margin-top: 20px">
-      <button @click="sectionChange(1)" class="btn">上一步</button>
-      <button @click="sectionChange(3)" class="btn" :style="!checkData.checked ? 'opacity: .65;':''">下一步</button>
-    </div>
+    <button @click="sectionChange(1)" class="btn">上一步</button>
+    <button @click="sectionChange(3)" class="btn" :style="!checkData.checked ? 'opacity: .65;':''">下一步</button>
+  </div>
   </div>
 </template>
 <script>

+ 1 - 2
pages/mobile/store/index.vue

@@ -236,7 +236,6 @@
     margin: 0.2rem 0.2rem;
     border-radius: 5px;
     background: #fff;
-    overflow: hidden;
   }
   .mobile-join_xieyi div.article-flag {
     width: 100%;
@@ -268,7 +267,7 @@
   }
 
   .mobile-join_xieyi div.text-area {
-    height: 8rem;
+    max-height: calc(100vh - 0.72rem - 0.4rem - 0.88rem - 0.98rem - 1.85rem);
     overflow: auto;
     word-break: break-all;
     outline: none;

+ 19 - 19
pages/mobile/user/index.vue

@@ -26,20 +26,20 @@
         <span class="l-right">{{currentEnName}}</span>
       </div>
       <!--v-if="storeStatus.uuid"-->
-      <div class="line" @click="go('/mobile/user/storeinfo')" >
+      <div class="line" @click="go('/mobile/user/storeinfo')" v-if="storeStatus.uuid">
         <div class="img-wrap">
           <img src="/images/mobile/user/icon_02.png" alt="">
         </div>
         <span>店铺信息</span>
         <i class="iconfont icon-xiangyou"></i>
       </div>
-      <!--<div class="line" @click="go('/mobile/user/storeinfo')" v-else>-->
-        <!--<div class="img-wrap">-->
-          <!--<img src="/images/mobile/user/apply-store.png" alt="">-->
-        <!--</div>-->
-        <!--<span>开店申请</span>-->
-        <!--<i class="iconfont icon-xiangyou"></i>-->
-      <!--</div>-->
+      <div class="line" @click="go('/mobile/user/storeinfo')" v-else>
+        <div class="img-wrap">
+          <img src="/images/mobile/user/apply-store.png" alt="">
+        </div>
+        <span>开店申请</span>
+        <i class="iconfont icon-xiangyou"></i>
+      </div>
       <div class="line block-line" @click="go('/mobile/user/enterpriseinfo')">
         <div class="img-wrap">
           <img src="/images/mobile/user/icon_03.png" alt="">
@@ -160,17 +160,17 @@
           if (this.storeStatus.uuid) {
             this.$router.push(url)
           } else {
-            this.setRemindText('请前往PC端申请开店')
-            // if (this.applyStatus === 'PREPARE') {
-            //   this.setRemindText('您的申请已提交,请耐心工作人员审核(2-3个工作日)')
-            // } else {
-            //   if (!this.$store.state.option.user.data.enterprise.uu) {
-            //     // 进入个人绑定企业页面
-            //     this.$router.push('/mobile/store/register')
-            //   } else {
-            //     this.$router.push('/mobile/store')
-            //   }
-            // }
+            // this.setRemindText('请前往PC端申请开店')
+            if (this.applyStatus === 'PREPARE') {
+              this.setRemindText('您的申请已提交,请耐心工作人员审核(2-3个工作日)')
+            } else {
+              if (!this.$store.state.option.user.data.enterprise.uu) {
+                // 进入个人绑定企业页面
+                this.$router.push('/mobile/store/register')
+              } else {
+                this.$router.push('/mobile/store')
+              }
+            }
           }
         } else if (!this.user.data.enterprise.uu || this.user.data.enterprise.isVendor !== 313) {
           this.setRemindText('请先前往pc端完善企业信息')