Browse Source

图片压缩

aleyds 3 years ago
parent
commit
fb650bb84a

+ 2 - 2
common/config.js

@@ -1,5 +1,5 @@
-const host = 'http://wx.hw.hongweisoft.com/parking';//本地
-// const host = 'http://parking.pdzhtc.com';//正式
+// const host = 'http://wx.hw.hongweisoft.com/parking';//本地
+const host = 'http://parking.pdzhtc.com';//正式
 // const host = 'http://172.16.90.64:7000';
 const config = {
 	wxAppid:'wxbe90cc7c5233dd84',// wxAppid 

+ 12 - 13
pages/index/index.vue

@@ -12,7 +12,7 @@
 						{{ theRoad.roadName || '暂无' }}
 					</view>
 				</view>
-				<view class="u-m-l-10 u-p-10" @click="openPage('pages/roadlist/roadlist')">
+				<view class="u-m-l-10 u-p-10" @click="openPage('/pages/roadlist/roadlist')">
 					<u-icon name="arrow-right" color="rgba(255,255,255,.7)" size="28"></u-icon>
 				</view>
 			</view>	
@@ -20,7 +20,7 @@
 				<view class="u-p-r-60">
 					车位:{{ spaceInfo.spaceBusy }}/{{ spaceInfo.spaceTotal}}
 				</view>
-				<view class="" @click="openPage('pages/getout/getout')">
+				<view class="" @click="openPage('/pages/getout/getout')">
 					需确认:{{ spaceInfo.spaceConfirm}}
 				</view>
 			</view>
@@ -45,15 +45,15 @@
 					<u-image width="160rpx" height="160rpx" src="/static/img/index-feature-04.png"></u-image>
 					<view class="feature-item-text">车位管理</view>
 				</view> -->
-				<view class="feature-item" @click="openPage('pages/parking/parking')">
+				<view class="feature-item" @click="openPage('/pages/parking/parking')">
 					<u-image width="160rpx" height="160rpx" src="/static/img/index-feature-05.png"></u-image>
 					<view class="feature-item-text">车辆入场</view>
 				</view>
-				<view class="feature-item" @click="openPage('pages/getout/getout')">
+				<view class="feature-item" @click="openPage('/pages/getout/getout')">
 					<u-image width="160rpx" height="160rpx" src="/static/img/index-feature-06.png"></u-image>
 					<view class="feature-item-text">车辆出场</view>
 				</view>
-				<view class="feature-item" @click="openPage('pages/attence/attence')">
+				<view class="feature-item" @click="openPage('/pages/attence/attence')">
 					<u-image width="160rpx" height="160rpx" src="/static/img/index-feature-01.png"></u-image>
 					<view class="feature-item-text">签到打卡</view>
 				</view>
@@ -61,15 +61,15 @@
 					<u-image width="160rpx" height="160rpx" src="/static/img/index-feature-07.png"></u-image>
 					<view class="feature-item-text">密码修改</view>
 				</view> -->
-				<view class="feature-item" @click="openPage('pages/ownersquery/ownersquery')">
+				<view class="feature-item" @click="openPage('/pages/ownersquery/ownersquery')">
 					<u-image width="160rpx" height="160rpx" src="/static/img/index-feature-10.png"></u-image>
 					<view class="feature-item-text">车主查询</view>
 				</view>	
-				<view class="feature-item" @click="openPage('pages/performance/performance')">
+				<view class="feature-item" @click="openPage('/pages/performance/performance')">
 					<u-image width="160rpx" height="160rpx" src="/static/img/index-feature-11.png"></u-image>
 					<view class="feature-item-text">我的业绩</view>
 				</view>	
-				<view class="feature-item" @click="openPage('pages/setting/setting')">
+				<view class="feature-item" @click="openPage('/pages/setting/setting')">
 					<u-image width="160rpx" height="160rpx" src="/static/img/index-feature-08.png"></u-image>
 					<view class="feature-item-text">设置</view>
 				</view>
@@ -127,7 +127,7 @@
 				console.log('this.userInfo',this.userInfo);
 			}else{
 				this.userInfo = [];
-				this.openPage('pages/login/login');
+				this.openPage('/pages/login/login');
 			};
 			
 		},
@@ -160,16 +160,15 @@
 				})
 			},
 			openPage(path) {
-				// console.log('path',path);
-				this.$u.route({ 
-					url: path
+				uni.navigateTo({
+				    url: path
 				});
 			},
 			//登录判断
 			login(status){
 				if(!status){
 					console.log('config',this.config);
-					this.openPage('pages/login/login');
+					this.openPage('/pages/login/login');
 					// window.location.replace(this.config.loginUrl)
 				}
 			},

BIN
static/car-selected.png


BIN
static/car.png


BIN
static/center-selected.png


BIN
static/center.png


BIN
static/img/choose-image.png


BIN
static/img/default-car.png


BIN
static/img/default-portrait.png


BIN
static/img/index-feature-01.png


BIN
static/img/index-feature-02.png


BIN
static/img/index-feature-03.png


BIN
static/img/index-feature-04.png


BIN
static/img/index-feature-05.png


BIN
static/img/index-feature-06.png


BIN
static/img/index-feature-07.png


BIN
static/img/index-feature-08.png


BIN
static/img/index-feature-09.png


BIN
static/img/index-feature-10.png


BIN
static/img/index-feature-11.png


BIN
static/img/index-header-bg.png


BIN
static/img/login-btn.png


BIN
static/img/payway-qr.png


BIN
static/img/payway-scan.png


BIN
static/img/payway-xj.png


BIN
static/img/tip.png


BIN
static/index-selected.png


BIN
static/index.png