he2802 3 жил өмнө
parent
commit
0794b5a210

+ 1 - 0
common/methodTool.js

@@ -22,6 +22,7 @@ export default {
 	},
 	isLogout() {
 		uni.removeStorageSync('user_account')
+		uni.removeStorageSync('token')
 	},
 	//提示
 	showToast(title, icon = 'none', time = 2000) {

+ 1 - 1
common/request.js

@@ -4,7 +4,7 @@ import store from '@/store/index.js'
 import api from './api.js'
 var num = 1
 
-export const BASE_URL = 'http://192.168.1.222:5055' //接口api  http://42.192.164.187:19005 http://192.168.1.222:5055
+export const BASE_URL = 'http://42.192.164.187:19005' //接口api  http://42.192.164.187:19005 http://192.168.1.222:5055
 
 
 export const BASE_IMG_URL = 'https://file-dev.xyyxt.net/' //图片上传api  'https://file.xyyxt.net/

+ 2 - 2
pages/index/index.vue

@@ -97,7 +97,7 @@
 				</navigator>
 			</view>
 			<view class="course-list" v-show="tabCurrent==1">
-				<navigator class="item" v-for="(item,index) in list2" :url="'/pages2/bank/detail?id='+item.goodsId">
+			 	<navigator class="item" v-for="(item,index) in list2" :url="'/pages2/bank/detail?id='+item.goodsId">
 					<view class="img">
 						<image :src="$method.splitImgHost(item.coverUrl, true)"></image>
 						<view class="time">{{item.year?item.year:''}}</view>
@@ -113,7 +113,7 @@
 						</view>
 					</view>
 					
-				</navigator>
+				</navigator> 
 			</view>
 		</view>
 	</view>

+ 11 - 15
pages2/wd/info.vue

@@ -1,14 +1,12 @@
 <template>
 	<view >
 	<image mode="widthFix" src="/static/wd_bg_login.jpg" class="login_full_img"></image>
-	<u-navbar  title="我的资料" :border-bottom="false" background="{ background: '#ffffff',opacity:0.4; }" title-color="#ffffff" back-icon-color="#ffffff">
-		
-	</u-navbar>
+	
 	
 	<view  class="loginBox">
 		<view style="display: flex;height: 160rpx;justify-content: center;" >
 			<view style="text-align: center;">
-				<image @click="editAvatar"  :src="$method.splitImgHost(form.avatar, true)" class="avatar"></image>
+				<image @click="editAvatar"  :src="form.avatar?$method.splitImgHost(form.avatar, true):''" class="avatar"></image>
 				<view class="nick">{{form.realname}}</view>
 				<view>
 					<view class="item">
@@ -72,6 +70,9 @@
 			<u-input v-model="idCard" placeholder="请输入身份证" />
 		</view>
 	</u-modal>
+	<u-navbar   title="我的资料" :border-bottom="false" background="{ background: '#ffffff',opacity:0.4; }" title-color="#ffffff" back-icon-color="#ffffff">
+		
+	</u-navbar>
 	</view>
 </template>
 
@@ -80,7 +81,7 @@
 export default {
 	data() {
 		return {
-			form:{},
+			form:{avatar:''},
 			array_sex: ['男', '女'],
 			n_show:false,
 			defaultRegionCode: '440112',
@@ -294,12 +295,6 @@ export default {
 </style>
 
 <style scope>
-	.avatar{
-		height: 70rpx;
-		width: 70rpx;
-		border-radius: 50%;
-		
-	}
 	.slot-content{
 		margin: 30rpx;
 		color: #606266;
@@ -328,16 +323,17 @@ export default {
 	}
 	.loginBox{
 		position: relative;
-		top: -108px;
+		top: -80rpx;
 	}
 	.avatar{
-		width: 80px;
-		height: 80px;
+		width: 160rpx;
+		height: 160rpx;
+		border-radius: 50%;
 	}
 	.login_full_img {
 		display: block;
 		width: 100%;
-		height: 280rpx !important;
+		height: 140px !important;
 		z-index: -999;
 		top: 0;
 	}

BIN
static/logo.png


BIN
static/logo2.png