Ver Fonte

跳转支付授权登录

zhoujump há 1 mês atrás
pai
commit
664f8694e6
2 ficheiros alterados com 26 adições e 22 exclusões
  1. 6 3
      src/store/modules/user.js
  2. 20 19
      src/views/components/packetList.vue

+ 6 - 3
src/store/modules/user.js

@@ -35,7 +35,8 @@ export default {
             phone: response.data.phone,
             isAdmin: isAdmin,
             app_list: response.data.app_list,
-            permission: response.data.permission
+            permission: response.data.permission,
+            sysApiToken: response.data.sys_api_token
           })
         }).catch(error => {
           console.log(error)
@@ -61,7 +62,8 @@ export default {
             phone: response.data.phone,
             isAdmin: isAdmin,
             app_list: response.data.app_list,
-            permission: response.data.permission
+            permission: response.data.permission,
+            sysApiToken: response.data.sys_api_token
           })
           if (!isAdmin) {
             reject('您没有权限访问!')
@@ -102,7 +104,8 @@ export default {
               phone: response.data.phone,
               isAdmin: isAdmin,
               app_list: response.data.app_list,
-              permission: response.data.permission
+              permission: response.data.permission,
+              sysApiToken: response.data.sys_api_token
             })
             if (payload.savePassword) {
               const savedAccount = {

+ 20 - 19
src/views/components/packetList.vue

@@ -75,33 +75,33 @@ export default Vue.extend({
           if (this.cycle === 'month') {
             this.renderInfo.STARTER.price = this.getPacketByPKey('EXPOREG_STARTER_MONTH_PACKAGE').price
             this.renderInfo.STARTER.button = FullBasePacket !== 'EXPOREG_STARTER' ? '升级权益' : '续费'
-            this.renderInfo.STARTER.url = this.payCenterUrl + '/packet/info?app_code=EXPOREG&key=&packet_key=EXPOREG_STARTER_MONTH_PACKAGE&type=2'
+            this.renderInfo.STARTER.url = this.payCenterUrl + '/third-part-login?token=' + this.user.sysApiToken + '&lang=zh-cn&redirect=/packet/info?app_code=EXPOREG%26key=%26packet_key=EXPOREG_STARTER_MONTH_PACKAGE%26type=2'
             this.renderInfo.PRO.price = this.getPacketByPKey('EXPOREG_PRO_MONTH_PACKAGE').price
             this.renderInfo.PRO.button = FullBasePacket !== 'EXPOREG_PRO' ? '升级权益' : '续费'
-            this.renderInfo.PRO.url = this.payCenterUrl + '/packet/info?app_code=EXPOREG&key=&packet_key=EXPOREG_PRO_MONTH_PACKAGE&type=2'
+            this.renderInfo.PRO.url = this.payCenterUrl + '/third-part-login?token=' + this.user.sysApiToken + '&lang=zh-cn&redirect=/packet/info?app_code=EXPOREG%26key=%26packet_key=EXPOREG_PRO_MONTH_PACKAGE%26type=2'
           } else {
             this.renderInfo.STARTER.price = this.getPacketByPKey('EXPOREG_STARTER_YEAR_PACKAGE').price
             this.renderInfo.STARTER.button = FullBasePacket !== 'EXPOREG_STARTER' ? '升级权益' : '续费'
-            this.renderInfo.STARTER.url = this.payCenterUrl + '/packet/info?app_code=EXPOREG&key=&packet_key=EXPOREG_STARTER_YEAR_PACKAGE&type=2'
+            this.renderInfo.STARTER.url = this.payCenterUrl + '/third-part-login?token=' + this.user.sysApiToken + '&lang=zh-cn&redirect=/packet/info?app_code=EXPOREG%26key=%26packet_key=EXPOREG_STARTER_YEAR_PACKAGE%26type=2'
             this.renderInfo.PRO.price = this.getPacketByPKey('EXPOREG_PRO_YEAR_PACKAGE').price
             this.renderInfo.PRO.button = FullBasePacket !== 'EXPOREG_PRO' ? '升级权益' : '续费'
-            this.renderInfo.PRO.url = this.payCenterUrl + '/packet/info?app_code=EXPOREG&key=&packet_key=EXPOREG_PRO_YEAR_PACKAGE&type=2'
+            this.renderInfo.PRO.url = this.payCenterUrl + '/third-part-login?token=' + this.user.sysApiToken + '&lang=zh-cn&redirect=/packet/info?app_code=EXPOREG%26key=%26packet_key=EXPOREG_PRO_YEAR_PACKAGE%26type=2'
           }
         } else {
           if (this.cycle === 'month') {
             this.renderInfo.STARTER.price = this.getPacktByKey('EXPOREG_STARTER_MONTH').price
             this.renderInfo.STARTER.button = FullBasePacket !== 'EXPOREG_STARTER' ? '立即订购' : '续费'
-            this.renderInfo.STARTER.url = this.payCenterUrl + '/packet/info?app_code=EXPOREG&key=EXPOREG_STARTER_MONTH&packet_key=&type=1'
+            this.renderInfo.STARTER.url = this.payCenterUrl + '/third-part-login?token=' + this.user.sysApiToken + '&lang=zh-cn&redirect=/packet/info?app_code=EXPOREG%26key=EXPOREG_STARTER_MONTH%26packet_key=%26type=1'
             this.renderInfo.PRO.price = this.getPacktByKey('EXPOREG_PRO_MONTH').price
             this.renderInfo.PRO.button = FullBasePacket !== 'EXPOREG_PRO' ? '立即订购' : '续费'
-            this.renderInfo.PRO.url = this.payCenterUrl + '/packet/info?app_code=EXPOREG&key=EXPOREG_PRO_MONTH&packet_key=&type=1'
+            this.renderInfo.PRO.url = this.payCenterUrl + '/third-part-login?token=' + this.user.sysApiToken + '&lang=zh-cn&redirect=/packet/info?app_code=EXPOREG%26key=EXPOREG_PRO_MONTH%26packet_key=%26type=1'
           } else {
             this.renderInfo.STARTER.price = this.getPacktByKey('EXPOREG_STARTER_YEAR').price
             this.renderInfo.STARTER.button = FullBasePacket !== 'EXPOREG_STARTER' ? '立即订购' : '续费'
-            this.renderInfo.STARTER.url = this.payCenterUrl + '/packet/info?app_code=EXPOREG&key=EXPOREG_STARTER_YEAR&packet_key=&type=1'
+            this.renderInfo.STARTER.url = this.payCenterUrl + '/third-part-login?token=' + this.user.sysApiToken + '&lang=zh-cn&redirect=/packet/info?app_code=EXPOREG%26key=EXPOREG_STARTER_YEAR%26packet_key=%26type=1'
             this.renderInfo.PRO.price = this.getPacktByKey('EXPOREG_PRO_YEAR').price
             this.renderInfo.PRO.button = FullBasePacket !== 'EXPOREG_PRO' ? '立即订购' : '续费'
-            this.renderInfo.PRO.url = this.payCenterUrl + '/packet/info?app_code=EXPOREG&key=EXPOREG_PRO_YEAR&packet_key=&type=1'
+            this.renderInfo.PRO.url = this.payCenterUrl + '/third-part-login?token=' + this.user.sysApiToken + '&lang=zh-cn&redirect=/packet/info?app_code=EXPOREG%26key=EXPOREG_PRO_YEAR%26packet_key=%26type=1'
           }
         }
       } else {
@@ -109,33 +109,33 @@ export default Vue.extend({
           if (this.cycle === 'month') {
             this.renderInfo.STARTER.price = this.getPacketByPKey('EXPOREG_INVITATION_STARTER_MONTH_PACKAGE').price
             this.renderInfo.STARTER.button = FullBasePacket !== 'EXPOREG_INVITATION_STARTER' ? '立即订购' : '续费'
-            this.renderInfo.STARTER.url = this.payCenterUrl + '/packet/info?app_code=EXPOREG&key=EXPOREG_INVITATION_STARTER_MONTH&packet_key=&type=1'
+            this.renderInfo.STARTER.url = this.payCenterUrl + '/third-part-login?token=' + this.user.sysApiToken + '&lang=zh-cn&redirect=/packet/info?app_code=EXPOREG%26key=EXPOREG_INVITATION_STARTER_MONTH%26packet_key=%26type=1'
             this.renderInfo.PRO.price = this.getPacketByPKey('EXPOREG_INVITATION_PRO_MONTH_PACKAGE').price
             this.renderInfo.PRO.button = FullBasePacket !== 'EXPOREG_INVITATION_PRO' ? '立即订购' : '续费'
-            this.renderInfo.PRO.url = this.payCenterUrl + '/packet/info?app_code=EXPOREG&key=EXPOREG_INVITATION_PRO_MONTH&packet_key=&type=1'
+            this.renderInfo.PRO.url = this.payCenterUrl + '/third-part-login?token=' + this.user.sysApiToken + '&lang=zh-cn&redirect=/packet/info?app_code=EXPOREG%26key=EXPOREG_INVITATION_PRO_MONTH%26packet_key=%26type=1'
           } else {
             this.renderInfo.STARTER.price = this.getPacketByPKey('EXPOREG_INVITATION_STARTER_YEAR_PACKAGE').price
             this.renderInfo.STARTER.button = FullBasePacket !== 'EXPOREG_INVITATION_STARTER' ? '立即订购' : '续费'
-            this.renderInfo.STARTER.url = this.payCenterUrl + '/packet/info?app_code=EXPOREG&key=EXPOREG_INVITATION_STARTER_YEAR&packet_key=&type=1'
+            this.renderInfo.STARTER.url = this.payCenterUrl + '/third-part-login?token=' + this.user.sysApiToken + '&lang=zh-cn&redirect=/packet/info?app_code=EXPOREG%26key=EXPOREG_INVITATION_STARTER_YEAR%26packet_key=%26type=1'
             this.renderInfo.PRO.price = this.getPacketByPKey('EXPOREG_INVITATION_PRO_YEAR_PACKAGE').price
             this.renderInfo.PRO.button = FullBasePacket !== 'EXPOREG_INVITATION_PRO' ? '立即订购' : '续费'
-            this.renderInfo.PRO.url = this.payCenterUrl + '/packet/info?app_code=EXPOREG&key=EXPOREG_INVITATION_PRO_YEAR&packet_key=&type=1'
+            this.renderInfo.PRO.url = this.payCenterUrl + '/third-part-login?token=' + this.user.sysApiToken + '&lang=zh-cn&redirect=/packet/info?app_code=EXPOREG%26key=EXPOREG_INVITATION_PRO_YEAR%26packet_key=%26type=1'
           }
         } else {
           if (this.cycle === 'month') {
             this.renderInfo.STARTER.price = this.getPacktByKey('EXPOREG_INVITATION_STARTER_MONTH').price
             this.renderInfo.STARTER.button = FullBasePacket !== 'EXPOREG_INVITATION_STARTER' ? '升级权益' : '续费'
-            this.renderInfo.STARTER.url = this.payCenterUrl + '/packet/info?app_code=EXPOREG&key=&packet_key=EXPOREG_INVITATION_STARTER_MONTH_PACKAGE&type=2'
+            this.renderInfo.STARTER.url = this.payCenterUrl + '/third-part-login?token=' + this.user.sysApiToken + '&lang=zh-cn&redirect=/packet/info?app_code=EXPOREG%26key=%26packet_key=EXPOREG_INVITATION_STARTER_MONTH_PACKAGE%26type=2'
             this.renderInfo.PRO.price = this.getPacktByKey('EXPOREG_INVITATION_PRO_MONTH').price
             this.renderInfo.PRO.button = FullBasePacket !== 'EXPOREG_INVITATION_PRO' ? '升级权益' : '续费'
-            this.renderInfo.PRO.url = this.payCenterUrl + '/packet/info?app_code=EXPOREG&key=&packet_key=EXPOREG_INVITATION_PRO_MONTH_PACKAGE&type=2'
+            this.renderInfo.PRO.url = this.payCenterUrl + '/third-part-login?token=' + this.user.sysApiToken + '&lang=zh-cn&redirect=/packet/info?app_code=EXPOREG%26key=%26packet_key=EXPOREG_INVITATION_PRO_MONTH_PACKAGE%26type=2'
           } else {
             this.renderInfo.STARTER.price = this.getPacktByKey('EXPOREG_INVITATION_STARTER_YEAR').price
             this.renderInfo.STARTER.button = FullBasePacket !== 'EXPOREG_INVITATION_STARTER' ? '升级权益' : '续费'
-            this.renderInfo.STARTER.url = this.payCenterUrl + '/packet/info?app_code=EXPOREG&key=&packet_key=EXPOREG_INVITATION_STARTER_YEAR_PACKAGE&type=2'
+            this.renderInfo.STARTER.url = this.payCenterUrl + '/third-part-login?token=' + this.user.sysApiToken + '&lang=zh-cn&redirect=/packet/info?app_code=EXPOREG%26key=%26packet_key=EXPOREG_INVITATION_STARTER_YEAR_PACKAGE%26type=2'
             this.renderInfo.PRO.price = this.getPacktByKey('EXPOREG_INVITATION_PRO_YEAR').price
             this.renderInfo.PRO.button = FullBasePacket !== 'EXPOREG_INVITATION_PRO' ? '升级权益' : '续费'
-            this.renderInfo.PRO.url = this.payCenterUrl + '/packet/info?app_code=EXPOREG&key=&packet_key=EXPOREG_INVITATION_PRO_YEAR_PACKAGE&type=2'
+            this.renderInfo.PRO.url = this.payCenterUrl + '/third-part-login?token=' + this.user.sysApiToken + '&lang=zh-cn&redirect=/packet/info?app_code=EXPOREG%26key=%26packet_key=EXPOREG_INVITATION_PRO_YEAR_PACKAGE%26type=2'
           }
         }
       }
@@ -174,11 +174,11 @@ export default Vue.extend({
         <div class="cycle-tab">
           <div :class="['cycle-item',type==='expoReg'?'active':'']" @click="changeType('expoReg')">
             <div>展会预登记</div>
-            <div class="badge" v-if="packetData.expo">已订购</div>
+            <div v-if="packetData.expo" class="badge">已订购</div>
           </div>
           <div :class="['cycle-item',type==='invitation'?'active':'']" @click="changeType('invitation')">
             <div>签证邀请函</div>
-            <div class="badge" v-if="packetData.invitation">已订购</div>
+            <div v-if="packetData.invitation" class="badge">已订购</div>
           </div>
         </div>
       </template>
@@ -219,7 +219,8 @@ export default Vue.extend({
             <el-popover
               placement="bottom"
               width="360"
-              trigger="click">
+              trigger="click"
+            >
               <div style="text-align: center">联系销售专员获取专属定制价格</div>
               <img style="width: 100%" src="/static/image/qrcode.png" alt="">
               <div style="text-align: center">微信扫一扫</div>