Преглед на файлове

feat:企业分配的超级订阅,直接进入充值采购单位画像包页面,不再提示选择充值方式。

zhangsiya преди 2 години
родител
ревизия
cd4146d9e4
променени са 2 файла, в които са добавени 36 реда и са изтрити 2 реда
  1. 18 1
      src/web/staticres/common-module/portraitRecord/js/index-wx.js
  2. 18 1
      src/web/staticres/common-module/portraitRecord/js/index.js

+ 18 - 1
src/web/staticres/common-module/portraitRecord/js/index-wx.js

@@ -341,7 +341,24 @@ var vm = new Vue({
     },
     setBook() {
       if(this.ptype == 1) {
-        this.usedDialog()
+        const _this = this
+        // 当前用户企业信息接口
+        $.ajax({
+          url: '/entbase/ent/entinfo?t=' + Date.now(),
+          type: 'POST',
+          async: false,
+          success: function (res) {
+            if (res) {
+              const data =  res.data || {}
+              // 企业分配的超级订阅,直接进入充值采购单位画像包页面,不再提示选择充值方式。
+              if(data.vip_power === 1){
+                location.href = '/jy_mobile/common/order/create/buyerpack?type=1'
+              } else{
+                _this.usedDialog()
+              }
+            }
+          }
+        })
       } else {
         // location.href = '/front/vipsubscribe/upgradePage'
         location.href = '/jy_mobile/common/order/create/svip?type=upgrade'

+ 18 - 1
src/web/staticres/common-module/portraitRecord/js/index.js

@@ -342,7 +342,24 @@ var vm = new Vue({
     },
     setBook () {
       if (this.ptype == 1) {
-        this.usedDialog()
+        const _this = this
+        // 当前用户企业信息接口
+        $.ajax({
+          url: '/entbase/ent/entinfo?t=' + Date.now(),
+          type: 'POST',
+          async: false,
+          success: function (res) {
+            if (res) {
+              const data =  res.data || {}
+              // 企业分配的超级订阅,直接进入充值采购单位画像包页面,不再提示选择充值方式。
+              if(data.vip_power === 1){
+                location.href = '/jy_mobile/common/order/create/buyerpack?type=1'
+              } else{
+                _this.usedDialog()
+              }
+            }
+          }
+        })
       } else {
         //跳转清除旧套餐缓存,防止计算价格出错
         sessionStorage.removeItem('vipSub_oldBuySet')