Selaa lähdekoodia

首页轮播样式修改和登录修改

zaijin 3 vuotta sitten
vanhempi
commit
9cd62289d1

+ 9 - 9
common/config.js

@@ -1,10 +1,10 @@
 const config = {
-	// wxAppid:'wxbe90cc7c5233dd84',// 测试wxAppid 
-	wxAppid: 'wx45c3cf2b632f5fd5', // 正式公众号
-	// baseUrl:'http://wx.hw.hongweisoft.com/parking/client',//64
+	wxAppid:'wxbe90cc7c5233dd84',// 测试wxAppid 
+	// wxAppid: 'wx45c3cf2b632f5fd5', // 正式公众号
+	baseUrl:'http://wx.hw.hongweisoft.com/parking/client',//64
 	// baseUrl:'http://wx.hw.hongweisoft.com/parking/client',//殷登顺
 	// 正式接口访问地址
-	baseUrl:'http://parking.pdzhtc.com/client',
+	// baseUrl:'http://parking.pdzhtc.com/client',
 	
 	
 	//登录链接
@@ -13,13 +13,13 @@ const config = {
 	// imgUrl:"http://qny.gzsdtfp.com/",
 	
 	// 登录重定向首页地址
-	jumpHomeUrl: 'http://h5.pdzhtc.com/', // 正式服务器地址
-	// jumpHomeUrl: 'http://wx.hw.hongweisoft.com/wxpaydemoh5/', // 64服务器地址
-	// jumpHomeUrl: 'http://172.16.90.127:8080/', // 本地地址
+	// jumpHomeUrl: 'http://h5.pdzhtc.com/#/', // 正式服务器地址
+	// jumpHomeUrl: 'http://wx.hw.hongweisoft.com/wxpaydemoh5/#/', // 64服务器地址
+	jumpHomeUrl: 'http://172.16.90.127:8080/#/', // 本地测试地址
 	// 重定位登录页
-	jumpLoginUrl: 'http://h5.pdzhtc.com/#/pages/center/phoneLogin/phoneLogin', // 正式环境地址
+	// jumpLoginUrl: 'http://h5.pdzhtc.com/#/pages/center/phoneLogin/phoneLogin', // 正式环境地址
 	// jumpLoginUrl: 'http://wx.hw.hongweisoft.com/wxpaydemoh5/#/pages/center/phoneLogin/phoneLogin', // 64环境地址
-	// jumpLoginUrl: 'http://172.16.90.127:8080/#/pages/center/phoneLogin/phoneLogin', // 本地环境地址
+	jumpLoginUrl: 'http://172.16.90.127:8080/#/pages/center/phoneLogin/phoneLogin', // 本地环境地址
 	
 }
 export {

+ 6 - 1
pages/center/index.vue

@@ -2,7 +2,7 @@
 	<view>
 		<u-navbar title-color="#fff" :custom-back="customBack" :border-bottom="false" back-icon-color="#CCE8FF" :background="{background: '#008CFF' }" title="我的"></u-navbar>
 		<view class="u-flex user-box u-p-l-30 u-p-r-20 u-p-b-30">
-			<view class="u-m-r-24" @click="logoutPop = true">
+			<view class="u-m-r-24" @click="clickHead">
 				<u-avatar :src="userInfo.headImgUrl || userInfo.avatar||pic" size="140"></u-avatar>
 			</view>
 			<view class="u-flex-1" @click="login($store.state.vuex_hasLogin)">
@@ -172,6 +172,11 @@
 						url: 'pages/center/phoneLogin/phoneLogin'
 					});
 				}, 500)
+			},
+			clickHead() {
+				if (this.$store.state.vuex_hasLogin) {
+					this.logoutPop = true
+				}
 			}
 			// 贵州银行支付
 			// guizhouPay(){

+ 7 - 6
pages/center/phoneLogin/phoneLogin.vue

@@ -167,12 +167,13 @@ export default {
 		},
 		// 微信登录
 		wechatLogin() {
-			const openId = this.$store.state.vuex_wxinfo.openId
-			if (openId) {
-				this.jumpIndex()
-			} else {
-				this.getCode()
-			}
+			this.jumpIndex()
+			// const openId = this.$store.state.vuex_wxinfo.openId
+			// if (openId) {
+			// 	this.jumpIndex()
+			// } else {
+			// 	this.getCode()
+			// }
 		},
 		// 微信已登录则跳转到首页
 		jumpIndex() {

+ 2 - 2
pages/index/index.scss

@@ -248,8 +248,8 @@ page{background-color: $my-page-bg-color;}
 			background-color: #AAD8FF;
 		}
 		/deep/ .u-indicator-item-round-active {
-			background-color: #008CFF;
-			width: 20rpx;
+			background-color: #FFFFFF;
+			// width: 20rpx;
 		}
 	}
 }

+ 1 - 1
pages/index/index.vue

@@ -10,7 +10,7 @@
 			<!-- <u-icon class="scan" name="scan" color="#fff" size="48" @click="$refs.uToast.show({title: '建设中'})"></u-icon> -->
 		</view>
 		
-		<u-swiper :list="bannerList" border-radius="0"></u-swiper>
+		<u-swiper :list="bannerList" border-radius="0" mode="none"></u-swiper>
 		
 		<u-city-select v-model="cityOpen" @city-change="cityChange" :areaCode='["52", "5201"]' ></u-city-select>