Parcourir la source

登录换正式环境

gcz il y a 4 ans
Parent
commit
dd3dfaa206
24 fichiers modifiés avec 36 ajouts et 28 suppressions
  1. 2 3
      config/config.js
  2. 11 2
      pages/login/login.vue
  3. BIN
      unpackage/dist/build/h5/h5.rar
  4. 1 1
      unpackage/dist/build/h5/index.html
  5. 0 1
      unpackage/dist/build/h5/static/index.1b8708b7.css
  6. 1 0
      unpackage/dist/build/h5/static/index.b0ff4c21.css
  7. 0 13
      unpackage/dist/build/h5/static/js/chunk-vendors.3e0a2803.js
  8. 13 0
      unpackage/dist/build/h5/static/js/chunk-vendors.d99ec735.js
  9. 1 0
      unpackage/dist/build/h5/static/js/index.43f9df4f.js
  10. 0 1
      unpackage/dist/build/h5/static/js/index.778072a2.js
  11. 1 0
      unpackage/dist/build/h5/static/js/pages-index-index.171427a6.js
  12. 0 1
      unpackage/dist/build/h5/static/js/pages-index-index.4773e0fa.js
  13. 1 0
      unpackage/dist/build/h5/static/js/pages-login-login.4dcf3030.js
  14. 0 1
      unpackage/dist/build/h5/static/js/pages-login-login.cfb1db1e.js
  15. 0 1
      unpackage/dist/build/h5/static/js/pages-roomconfirm-roomconfirm.5df71e78.js
  16. 1 0
      unpackage/dist/build/h5/static/js/pages-roomconfirm-roomconfirm.cb0335b4.js
  17. 0 1
      unpackage/dist/build/h5/static/js/pages-roomconfirm-roomconfirmitem-roomconfirmitem.8625eace.js
  18. 1 0
      unpackage/dist/build/h5/static/js/pages-roomconfirm-roomconfirmitem-roomconfirmitem.ece1575f.js
  19. 0 1
      unpackage/dist/build/h5/static/js/pages-roomconfirm-roomconfirm~pages-writeoff-writeoff.152b1a33.js
  20. 1 0
      unpackage/dist/build/h5/static/js/pages-roomconfirm-roomconfirm~pages-writeoff-writeoff.27158856.js
  21. 0 1
      unpackage/dist/build/h5/static/js/pages-writeoff-writeoff.8d182382.js
  22. 1 0
      unpackage/dist/build/h5/static/js/pages-writeoff-writeoff.ac465fcf.js
  23. 1 0
      unpackage/dist/build/h5/static/js/pages-writeoff-writeoffitem-writeoffitem.459df4fb.js
  24. 0 1
      unpackage/dist/build/h5/static/js/pages-writeoff-writeoffitem-writeoffitem.5143ffa5.js

+ 2 - 3
config/config.js

@@ -1,12 +1,11 @@
 const config = {
 	//dev
-	apiBaseurl:'http://im.t.phpim.cn/',//测试
+	apiBaseurl:'http://hd.phpim.cn/',//测试
 	
-	loginUrl:'http://ht.t.phpim.cn?backpage=http://tanhuiapp.hongweisoft.com/#/pages/index/index',//登录后跳转到测试链接
 	
 	// 密码授权令牌
 	client_id:4,
-	client_secret:'jO1XHQu0GytEdxJzNRFwcIeWmS57yCMBuA5P9yDo',
+	client_secret:'EZtnCKySfjtUPhh8owpsDuZuazqTgcA4Of1M9miY',
 
 	
 	

+ 11 - 2
pages/login/login.vue

@@ -35,8 +35,8 @@
 			return{
 				backpage:'',
 				//用户输入的内容
-				userName:"demo",
-				userPwd:"123456",
+				userName:"",
+				userPwd:"",
 				params:{
 					username: this.userName, 
 					password: this.userPwd,
@@ -86,6 +86,14 @@
 						title:res.data.message,
 						duration: 2000
 					});
+					if(res.data.state == 'error'){
+						uni.showToast({
+							icon:'none',
+							title:res.data.message,
+							duration: 2000
+						});
+						return;						
+					};
 					serf.setLogin(res.data);
 					if(serf.backpage == '' || !serf.backpage){
 						uni.redirectTo({
@@ -115,6 +123,7 @@
 				if(!this.rules[key].rule.test(this[key])){
 					//提示信息
 					uni.showToast({
+						icon:'none',
 						title:this.rules[key].msg,
 					})
 					//取反

BIN
unpackage/dist/build/h5/h5.rar


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 1
unpackage/dist/build/h5/index.html


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 1
unpackage/dist/build/h5/static/index.1b8708b7.css


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 0
unpackage/dist/build/h5/static/index.b0ff4c21.css


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 13
unpackage/dist/build/h5/static/js/chunk-vendors.3e0a2803.js


Fichier diff supprimé car celui-ci est trop grand
+ 13 - 0
unpackage/dist/build/h5/static/js/chunk-vendors.d99ec735.js


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 0
unpackage/dist/build/h5/static/js/index.43f9df4f.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 1
unpackage/dist/build/h5/static/js/index.778072a2.js


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 0
unpackage/dist/build/h5/static/js/pages-index-index.171427a6.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 1
unpackage/dist/build/h5/static/js/pages-index-index.4773e0fa.js


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 0
unpackage/dist/build/h5/static/js/pages-login-login.4dcf3030.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 1
unpackage/dist/build/h5/static/js/pages-login-login.cfb1db1e.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 1
unpackage/dist/build/h5/static/js/pages-roomconfirm-roomconfirm.5df71e78.js


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 0
unpackage/dist/build/h5/static/js/pages-roomconfirm-roomconfirm.cb0335b4.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 1
unpackage/dist/build/h5/static/js/pages-roomconfirm-roomconfirmitem-roomconfirmitem.8625eace.js


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 0
unpackage/dist/build/h5/static/js/pages-roomconfirm-roomconfirmitem-roomconfirmitem.ece1575f.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 1
unpackage/dist/build/h5/static/js/pages-roomconfirm-roomconfirm~pages-writeoff-writeoff.152b1a33.js


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 0
unpackage/dist/build/h5/static/js/pages-roomconfirm-roomconfirm~pages-writeoff-writeoff.27158856.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 1
unpackage/dist/build/h5/static/js/pages-writeoff-writeoff.8d182382.js


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 0
unpackage/dist/build/h5/static/js/pages-writeoff-writeoff.ac465fcf.js


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 0
unpackage/dist/build/h5/static/js/pages-writeoff-writeoffitem-writeoffitem.459df4fb.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 1
unpackage/dist/build/h5/static/js/pages-writeoff-writeoffitem-writeoffitem.5143ffa5.js