he2802 4 anos atrás
pai
commit
e577ecfe7c
5 arquivos alterados com 5 adições e 5 exclusões
  1. 0 1
      common/request.js
  2. 1 2
      components/home.vue
  3. 2 0
      components/my.vue
  4. 1 1
      pages2/course/read.vue
  5. 1 1
      pages2/wd/ranking.vue

+ 0 - 1
common/request.js

@@ -1,4 +1,3 @@
-
 //const BASE_URL = 'http://192.168.1.222:8088'
 // const BASE_URL = 'http://127.0.0.1:8088' 
 const BASE_URL = 'https://api.xyyxt.net' 

+ 1 - 2
components/home.vue

@@ -279,8 +279,7 @@ export default {
 					}
 				}else{
 					self.initDay()
-				}
-				 
+				}		 
 			});
 		},
 		getMonDate(){

+ 2 - 0
components/my.vue

@@ -146,6 +146,8 @@ export default {
 			self.$api.taskSignIn(data).then(res => {
 				if(res.data.code === 200){
 					self.getInfoAttached()
+					//刷新用户信息
+					self.$api.refreshUserInfo() 
 				}
 			})
 		},

+ 1 - 1
pages2/course/read.vue

@@ -1,6 +1,6 @@
 <template>
 	<view  >
-	<view style="width: 100%;">
+	<view style="width: 100%;" id="app">
 	        <web-view :src="webUrl"></web-view>
 	    </view>
 	</view>

+ 1 - 1
pages2/wd/ranking.vue

@@ -12,7 +12,7 @@
 					<view class="fie" v-if="info.rank > 0" style="display: flex;align-items: center;font-size: 28rpx;color: #0183fe;font-weight: 500;">
 						<span>第{{ info.rank }}名</span>
 						<view class="ics" style="margin: 0rpx 17rpx;width: 1rpx;height: 26rpx;background-color: #d9edff;border-radius: 1rpx;"></view>
-						<span>{{ info.hourse }}h</span>
+						<span>{{ info.hourse === null ? '0' : info.hourse}}h</span>
 					</view>
 					<view v-else style="display: flex;align-items: center;font-size: 28rpx;color: #0183fe;font-weight: 500;">
 						暂未上榜