dever 4 years ago
parent
commit
7cca73c55e
6 changed files with 9 additions and 6 deletions
  1. 3 4
      lib/dever/config.js
  2. 1 1
      main.js
  3. 1 1
      pages.json
  4. 1 0
      pages/index/index.vue
  5. 3 0
      pages/user/login.vue
  6. BIN
      static/logo.png

+ 3 - 4
lib/dever/config.js

@@ -4,15 +4,14 @@ const base = {
 }
 
 const im = {
-	host : 'ws://192.168.33.10:8282'
+	host : 'ws://dl.shemic.com:8282'
 }
 
 //http request请求配置
 const request = {
 	//	服务器接口地址
-
-	host: "http://192.168.2.70/dreamland/",
-	host: "http://192.168.33.10/dreamland/",
+	host: "http://dl.shemic.com/",
+	host: "http://dev.shemic.com/dreamland/",
 	
 	//	请求的参数	
 	data: {},

+ 1 - 1
main.js

@@ -56,7 +56,7 @@ Vue.prototype.Dever.setPostLoading(function(self) {
 });
 
 //设置switchTab
-Vue.prototype.Dever.switchTab = ['index/index'];
+Vue.prototype.Dever.switchTab = ['/pages/index/index',];
 
 //自定义switchTab页面回调,因为switchTab执行后不会自动刷新页面,这里需要做个回调
 Vue.prototype.Dever.switchTabCall = {

+ 1 - 1
pages.json

@@ -106,7 +106,7 @@
 	"globalStyle": {
 		"navigationBarTextStyle": "white",
 		"navigationBarBackgroundColor": "#0081ff",
-		"navigationBarTitleText" : "幻境",
+		"navigationBarTitleText" : "合小记",
 		"enablePullDownRefresh": true,
 		"scrollIndicator": "none",
 		"navigationStyle": "custom",

+ 1 - 0
pages/index/index.vue

@@ -30,6 +30,7 @@ export default{
 		}
 	},
 	onLoad() {
+		this.Dever.checkLogin();
 		this.getData();
 	},
 	// 重新加载

+ 3 - 0
pages/user/login.vue

@@ -125,6 +125,9 @@
 					self.Dever.alert(t);
 				});
 			},
+			login_weixin : function() {
+				this.Dever.alert('暂未开通');
+			},
 		    startLogin() {
 				if(self.isRotate){
 					//判断是否加载中,避免重复点击请求

BIN
static/logo.png