Procházet zdrojové kódy

调整样式,DEP统计功能

zhengjinyi před 1 rokem
rodič
revize
16529a001c

+ 2 - 0
src/main/resources/static/js/account/login.js

@@ -314,9 +314,11 @@ var loginPage = new Vue({
         const _self = this;
         this.openFullScreen1()
         const partnerId = CAIMEI.getUrlParam('partnerId');
+        const partnerShopId = CAIMEI.getUrlParam('shopId');
         console.log('partnerId', partnerId)
         if(partnerId){
             CAIMEI.Storage.setItem('partnerId',partnerId)
+            CAIMEI.Storage.setItem('partnerShopId',partnerShopId)
         }
         $('body').on("focus",'[needverify]:visible',function(){
             $(this).siblings('.errTips').removeClass("show").siblings('.checked').removeClass("show");

+ 7 - 2
src/main/resources/static/js/account/register-club.js

@@ -172,7 +172,7 @@
             this.$nextTick(function() {
                 if (!verifyCheack('.codeMsgButton')) { return false; }
                 UserApi.getRegisterMobileCode(params,function (response) {
-                    if(response.code == 0){
+                    if(response.code === 0){
                         _self.isCodeModel = false;
                         CAIMEI.dialog('验证短信已发送',false,function () {});
                         var TIME_COUNT = 60;
@@ -309,7 +309,12 @@
             this.isCodeModel = false;
         },
         clubLoginIndex:function(){// 跳过升级直接去个人中心
-            window.location.href = '/user/dashboard.html';
+            const partnerShopId = CAIMEI.Storage.getItem('partnerShopId')
+            if(partnerShopId){
+                window.location.href=`/supplier-${partnerShopId}.html`
+            }else{
+                window.location.href = '/user/dashboard.html';
+            }
         },
         mainProAdd: function(){
             var _self = this;

+ 2 - 2
src/main/resources/templates/account/register-club.html

@@ -240,8 +240,8 @@
                     <span class="errTips icon mIcon" tips="请选择或添加主营产品"></span>
                 </div>
                 <div class="subLine">
-                    <button class="btn-upgrade none" type="button" @click="clubLoginIndex()" onclick="_czc.push(['_trackEvent','机构注册','点击','跳过升级申请','','Um_Event_ClubUpgradeCanel'])">先跳过,以后再升级</button>
-                    <button class="btn-upgrade" :class="loginLoading ? 'disabled':''" type="button" @click="clubUpgrade()" onclick="_czc.push(['_trackEvent','机构注册','点击','确认提交升级申请','','Um_Event_ClubUpgradeConfirm'])">确认升级并提交审核</button>
+                    <button class="btn-upgrade none" type="button" @click="clubLoginIndex" onclick="_czc.push(['_trackEvent','机构注册','点击','跳过升级申请','','Um_Event_ClubUpgradeCanel'])">先跳过,以后再升级</button>
+                    <button class="btn-upgrade" :class="loginLoading ? 'disabled':''" type="button" @click="clubUpgrade" onclick="_czc.push(['_trackEvent','机构注册','点击','确认提交升级申请','','Um_Event_ClubUpgradeConfirm'])">确认升级并提交审核</button>
                 </div>
             </form>
         </div>