liuzhihui 2 yıl önce
ebeveyn
işleme
6f45f280ca

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

194
             confirmButtonText: '确定',
194
             confirmButtonText: '确定',
195
             callback: action => {
195
             callback: action => {
196
               this.dialogTableVisible = true
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
                 confirmButtonText: '确定',
208
                 confirmButtonText: '确定',
220
                 callback: action => {
209
                 callback: action => {
221
                   this.dialogTableVisible = true
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
       ) {
212
       ) {
213
         this.handleOAlogin();
213
         this.handleOAlogin();
214
       }
214
       }
215
-      // if (window.localStorage.getItem('changePwdFlag') == 1) {
216
-      //   this.isLongPass()
217
-      // }
218
     },
215
     },
219
     methods: {
216
     methods: {
220
       init() {
217
       init() {

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

25
 	import md5 from '@/static/js/md5/md5.js'
25
 	import md5 from '@/static/js/md5/md5.js'
26
 	// import { encrypt, decrypt } from "@/utils/jsencrypt";
26
 	// import { encrypt, decrypt } from "@/utils/jsencrypt";
27
 	import pageData from '../myTask/repairList/addRepair/pageData.js'
27
 	import pageData from '../myTask/repairList/addRepair/pageData.js'
28
+	import { getCode } from '@/utils/dd'
28
 	const sm2 = require('sm-crypto').sm2
29
 	const sm2 = require('sm-crypto').sm2
29
 	const cipherMode = 0 // 1 - C1C3C2,0 - C1C2C3,默认为1
30
 	const cipherMode = 0 // 1 - C1C3C2,0 - C1C2C3,默认为1
30
 	const publicKey =
31
 	const publicKey =
50
 			wButton,
51
 			wButton,
51
 		},
52
 		},
52
 		onLoad() {
53
 		onLoad() {
53
-			// this.$mHelper.toast(process.env.NODE_ENV)
54
+			this.init()//判断是不是钉钉环境
54
 		},
55
 		},
55
 
56
 
56
 		methods: {
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
 			updatePass() {
69
 			updatePass() {
58
 				const reg = /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,20}$/;
70
 				const reg = /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,20}$/;
59
 				const pass = uni.getStorageSync('loginpass');
71
 				const pass = uni.getStorageSync('loginpass');