liuzhihui лет назад: 2
Родитель
Сommit
6f45f280ca

+ 0 - 20
CallCenterWeb.UI/RMYY/src/views/dashboard/index.vue

@@ -194,17 +194,6 @@
194 194
             confirmButtonText: '确定',
195 195
             callback: action => {
196 196
               this.dialogTableVisible = true
197
-              // this.$layer.iframe({
198
-              //   content: {
199
-              //     content: permsgEdit, // 传递的组件对象
200
-              //     parent: this, // 当前的vue对象
201
-              //     data: {}, // props
202
-              //   },
203
-              //   closeBtn: 0,
204
-              //   type:1,
205
-              //   area: ["50%", "70%"],
206
-              //   title: "个人中心",
207
-              // });
208 197
             }
209 198
           });
210 199
         }
@@ -219,15 +208,6 @@
219 208
                 confirmButtonText: '确定',
220 209
                 callback: action => {
221 210
                   this.dialogTableVisible = true
222
-                  // this.$layer.iframe({
223
-                  //   content: {
224
-                  //     content: permsgEdit, // 传递的组件对象
225
-                  //     parent: this, // 当前的vue对象
226
-                  //     data: {}, // props
227
-                  //   },
228
-                  //   area: ["50%", "70%"],
229
-                  //   title: "个人中心",
230
-                  // });
231 211
                 }
232 212
               });
233 213
             }

+ 0 - 3
CallCenterWeb.UI/RMYY/src/views/login/index.vue

@@ -212,9 +212,6 @@
212 212
       ) {
213 213
         this.handleOAlogin();
214 214
       }
215
-      // if (window.localStorage.getItem('changePwdFlag') == 1) {
216
-      //   this.isLongPass()
217
-      // }
218 215
     },
219 216
     methods: {
220 217
       init() {

+ 13 - 1
CallCenterWeb.UI/RMYYAPP/pages/login/login.vue

@@ -25,6 +25,7 @@
25 25
 	import md5 from '@/static/js/md5/md5.js'
26 26
 	// import { encrypt, decrypt } from "@/utils/jsencrypt";
27 27
 	import pageData from '../myTask/repairList/addRepair/pageData.js'
28
+	import { getCode } from '@/utils/dd'
28 29
 	const sm2 = require('sm-crypto').sm2
29 30
 	const cipherMode = 0 // 1 - C1C3C2,0 - C1C2C3,默认为1
30 31
 	const publicKey =
@@ -50,10 +51,21 @@
50 51
 			wButton,
51 52
 		},
52 53
 		onLoad() {
53
-			// this.$mHelper.toast(process.env.NODE_ENV)
54
+			this.init()//判断是不是钉钉环境
54 55
 		},
55 56
 
56 57
 		methods: {
58
+			init() {
59
+				getCode((type,code) => {
60
+					if(type == 'H5') {
61
+						if(code == 'fail'){
62
+							uni.navigateTo({
63
+								url: '/pages/index/index'
64
+							});
65
+						}						
66
+					}
67
+				})
68
+			},
57 69
 			updatePass() {
58 70
 				const reg = /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,20}$/;
59 71
 				const pass = uni.getStorageSync('loginpass');