姜永辉 1 год назад
Родитель
Сommit
bcf4136fda
2 измененных файлов с 13 добавлено и 5 удалено
  1. 1 1
      api/pages/mst/staff.js
  2. 12 4
      package-basic-data/pages/activity/activity.js

+ 1 - 1
api/pages/mst/staff.js

@@ -28,7 +28,7 @@ module.exports = {
             staffPurview: { key: 'staffPurview', url: '/package-base-select/pages/select-staff-purview/select-staff-purview', image: 'btn-data-qua.png' },
             // 离职
             leaveOffice: { key: 'leaveOffice', method: 'leaveOffice', image: 'btn-resignation.png', question: true },
-            buy: { key: 'buy', url: '/package-basic-data/pages/activity/activity' }
+            buy: { key: 'buy', url: '/package-basic-data/pages/activity/activity?buyUser=true' ,}
         }
     }
 };

+ 12 - 4
package-basic-data/pages/activity/activity.js

@@ -300,7 +300,7 @@ Page({
         } else {
             // 判断数量是否超出续约授权
             if (currentUserCount.wxNum > summaryInfo.wxMaxNum || currentUserCount.webNum > summaryInfo.webMaxNum) {
-                let staffInfo = [{ wxMaxNum: this.data.wxMaxNum, webMaxNum: this.data.webMaxNum, title: '当前授权', wxTitle: '手机授权', webTitle: (app.globalData.company.gradeCode == Constants.gradeCode.STD) ?'':'电脑授权', code: 'current',userTitle: '当前用户'  }, { wxMaxNum: summaryInfo.wxMaxNum, webMaxNum: summaryInfo.webMaxNum, title: '续费授权', wxTitle: '手机授权', webTitle: '电脑授权', code: 'renew' }]
+                let staffInfo = [{ wxMaxNum: this.data.wxMaxNum, webMaxNum: this.data.webMaxNum, title: '当前授权', wxTitle: '手机授权', webTitle: (app.globalData.company.gradeCode == Constants.gradeCode.STD) ? '' : '电脑授权', code: 'current', userTitle: '当前用户' }, { wxMaxNum: summaryInfo.wxMaxNum, webMaxNum: summaryInfo.webMaxNum, title: '续费授权', wxTitle: '手机授权', webTitle: '电脑授权', code: 'renew' }]
                 this.save({ saveFlag: false, url: '/package-basic-data/pages/activity/detail/detail?staffInfo=' + JSON.stringify(staffInfo) });
             } else {
                 this.save({});
@@ -538,9 +538,17 @@ Page({
                 upgradeFlag: true
             })
         } else {
-            wx.setNavigationBarTitle({
-                title: mixins.$t('reNew'),
-            })
+            // 购买授权 和续费
+            if (options.buyUser) {
+                wx.setNavigationBarTitle({
+                    title: mixins.$t('buyUser'),
+                })
+            } else {
+                wx.setNavigationBarTitle({
+                    title: mixins.$t('reNew'),
+                })
+            }
+
             this.setData({
                 gradeCode: app.globalData.company.gradeCode
             })