瀏覽代碼

1.修改线上路径
2.修改授权布局,添加授权默认头像

306132416@qq.com 6 年之前
父節點
當前提交
e495961268
共有 3 個文件被更改,包括 16 次插入5 次删除
  1. 2 2
      App.vue
  2. 0 1
      pages/index/index.vue
  3. 14 2
      pages/selfInfo/selfInfo.vue

+ 2 - 2
App.vue

@@ -1,8 +1,8 @@
 <script>
 	var md5 = require("./common/md5.js");
 	export default {
-		globalData: {
-			shareUrl: 'https://stock.xazhima.com/api/api.php', //开发环境全局接口域名 线上:http://guolu.xazhima.com/
+		globalData: {  //https://stock.xazhima.com/
+			shareUrl: 'https://guolu.xazhima.com/api/api.php', //开发环境全局接口域名 线上:http://guolu.xazhima.com/
 			glbalHeight:'',
 			globalTimestamp: (Date.now()).toString(),
 			user_id: '',

+ 0 - 1
pages/index/index.vue

@@ -209,7 +209,6 @@
 								if(page === 1){
 									that.scrollRequestEnable = true;
 									that.talkList  = ((res.data.msg).reverse());
-									console.log(1,that.talkList)
 									setTimeout(()=>{
 										that.scrollToBottom()	
 									},100)

+ 14 - 2
pages/selfInfo/selfInfo.vue

@@ -5,7 +5,9 @@
 			<image :src='userHeadUrl' mode="aspectFit"></image>
 			<text>{{userName}}</text>
 		</view>
-		<button class="login-button-pos" v-if="isShowAuthBtn" open-type="getUserInfo" @getuserinfo="getUserInfo">未授权,请点击获取信息</button>
+		<button class="login-button-pos" v-if="isShowAuthBtn" open-type="getUserInfo" @getuserinfo="getUserInfo">
+			<image src="/static/icon/power-head.png" class="power-head-img" />未授权,请点击获取信息
+		</button>
 		<view class="self-search-box">
 			<view class="search-content">
 				<view class="search-content-value">{{userTime}}</view>
@@ -182,7 +184,17 @@
 		line-height: 120upx;
 		width: 100%;
 		background:#27BCEF;
-		color:#fff
+		color:#fff;
+		display: flex;
+		align-items: center;
+		font-size: 28upx;
+		padding-left: 50upx;
+
+	}
+	.power-head-img {
+		width: 85upx;
+		height: 85upx;
+        margin-right: 3%;
 	}
 	.self-title-box image {
 		width: 90rpx;