소스 검색

样式修改

lilei 4 년 전
부모
커밋
60a9ab84c0
2개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 4 4
      pages/store/StoreList.vue
  2. 2 2
      pages/store/storeDetail.vue

+ 4 - 4
pages/store/StoreList.vue

@@ -2,7 +2,7 @@
 	<view class="content">
 		<scroll-view scroll-y="true" class="scroll-Y" @scrolltolower="reachBottom" @scroll="scroll">
 			<view class="list" @click="intoDetail" v-for="item in storeList" :key="item.id">
-				<u-image width="160rpx" height="160rpx" :border-radius="10" :src="item.icon?item.icon:'../../static/img/mddef.jpg'"></u-image>
+				<u-image width="160rpx" height="160rpx" :border-radius="10" :src="item.icon?item.icon:'/static/img/mddef.jpg'"></u-image>
 				<view class="store-info">
 					<view class="name">
 						{{item.name}}
@@ -150,15 +150,15 @@
 				switch (item.status) {
 					case 0:
 						item.statusClass = 'store-off'
-						return '../../static/img/ygb.png'
+						return '/static/img/ygb.png'
 						break;
 					case 1:
 						item.statusClass = 'store-on'
-						return '../../static/img/yyz.png'
+						return '/static/img/yyz.png'
 						break;
 					case 2:
 						item.statusClass = 'store-waite'
-						return '../../static/img/dky.png'
+						return '/static/img/dky.png'
 						break;
 					default:
 						break;

+ 2 - 2
pages/store/storeDetail.vue

@@ -2,7 +2,7 @@
 	<view class="content">
 		<view class="page-content">
 			<view class="header">
-				<u-image width="160rpx" height="160rpx" :border-radius="10" src="../../static/img/mddef.jpg"></u-image>
+				<u-image width="160rpx" height="160rpx" :border-radius="10" src="/static/img/mddef.jpg"></u-image>
 				<view class="store-info">
 					<view class="name">
 						贞观路站
@@ -54,7 +54,7 @@
 			<button type="warn" @click="openLocation">立刻导航</button>
 		</view>
 		<u-popup v-model="showPop" mode="center" width="90%" height="60%" closeable>
-			<image class="pop-img" :src="'../../static/img/mddef.jpg'"></image>
+			<image class="pop-img" :src="'/static/img/mddef.jpg'"></image>
 		</u-popup>
 	</view>
 </template>