Explorar el Código

1.修改默认用户头像
2.修改授权逻辑

306132416@qq.com hace 6 años
padre
commit
c254d86336
Se han modificado 3 ficheros con 4 adiciones y 2 borrados
  1. 3 2
      pages/index/index.vue
  2. 1 0
      pages/selfInfo/selfInfo.vue
  3. BIN
      static/userDefault.png

+ 3 - 2
pages/index/index.vue

@@ -10,12 +10,12 @@
 				您好,智能投顾很高兴为您服务!
 			</view> -->
 
-			<view class="talk-box">
+			<!-- <view class="talk-box">
 				<view class="talk-head-box">
 					<image src="../../static/rabotHead.png" mode="" class="talk-head"></image> 
 				</view>
 				<view class="talk-content">您好,欢迎您使用阿拉灯神丁。我可以给您提供股票投资建议,快来试试吧。</view>
-			</view>
+			</view> -->
 
 			<view v-for="chat in talkList" :key="chat.talkType"  class="m-item">
 				<view class="talk-box talk-box-end" v-show="chat.content">
@@ -111,6 +111,7 @@
 		},
 		onShow() {
 			this.getNowTime();
+			this.userHeadUrl = getApp().globalData.user_headUrl || '../../static/userDefault.png'
 		},
 		methods: {
 			userLogin(){

+ 1 - 0
pages/selfInfo/selfInfo.vue

@@ -104,6 +104,7 @@
 						headimg:getApp().globalData.user_headUrl
 					},
 					success: res => {
+						 that.isShowAuthBtn = res.data.msg.isauth === '0';
 						 that.userTime = res.data.msg.times;
 						 that.userTotalTime = res.data.msg.total_times;
 						 getApp().globalData.times = res.data.msg.times;

BIN
static/userDefault.png