Ver código fonte

样式修改

郭宇琦 1 semana atrás
pai
commit
c741f3aba5

+ 1 - 1
main.js

@@ -9,7 +9,7 @@ Polyfill.init();
 import Mixin from './polyfill/mixins';
 import i18n from './locale/index'
 import uView from "uview-ui";
-
+Vue.use(uView)
 
 import gyq_utils from '@/utils/gyq_utils'
 Vue.use(gyq_utils)

+ 1 - 2
pages/index/index.vue

@@ -1,7 +1,7 @@
 <template>
 	<view>
 		<!-- #ifdef APP -->
-		<u-no-network @retry='retry'></u-no-network>
+		<u-no-network  zIndex='9999' @retry='retry'></u-no-network>
 		<!-- #endif -->
 		<view v-if="isConnected">
 			<block v-if="isLogin && car_info.car_sn">
@@ -241,7 +241,6 @@
 		 */
 		onShow: function() {
 			this.init()
-
 		},
 		
 		// 分享给好友

+ 36 - 31
pages/service/components/leaseType/leaseType.vue

@@ -1,42 +1,47 @@
 <template>
     <view class="container-view-contril">
-		<u-popup v-model="showLeaseType" :mask-close-able='false' :closeable="false" mode="bottom" border-radius="32">
+		<u-popup zIndex='9999' v-model="showLeaseType" :mask-close-able='false' :closeable="false" mode="bottom" border-radius="32">
 		    <view class="bottom-popup">
 		        <view class="title">{{ selectType == 'cabinet' ? '车辆类型' : '用车方案' }}</view>
-		        <view class="item-wrap">
-					<view
-					    :class="['item', leaseType == 100 && 'checked']"
-					    @click="leaseType = 100"
-					>
-					    全部
-					</view>
-                    <template v-if="selectType == 'cabinet'">
-                        <view 
-                            v-for="(item, index) in modelTypeList" 
-                            :class="['item', leaseType == item.id && 'checked']"
-                            :key="index"
-                            @click="leaseType = item.id"
-                        >
-                            {{ item.name }}
-                        </view>
-                    </template>
-                    <template v-if="selectType == 'store'" >
-                        <view 
-                            v-for="(item, index) in LEASE_TYPE_ARR" 
-                            :class="['item', leaseType == item.value && 'checked']"
-                            :key="index"
-                            @click="leaseType = item.value"
-                        >
-                            {{ item.label }}
-                        </view>
-                        <view class="item" style="opacity: 0;"></view>
-                    </template>
-		        </view>
-		        <view class="options-wrap">
+		        <scroll-view style="max-height: 700rpx;" scroll-y>
+		        	<view class="item-wrap">
+		        		<view
+		        		    :class="['item', leaseType == 100 && 'checked']"
+		        		    @click="leaseType = 100"
+		        		>
+		        		    全部
+		        		</view>
+		        	    <template v-if="selectType == 'cabinet'">
+		        	        <view 
+		        	            v-for="(item, index) in modelTypeList" 
+		        	            :class="['item', leaseType == item.id && 'checked']"
+		        	            :key="index"
+		        	            @click="leaseType = item.id"
+		        	        >
+		        	            {{ item.name }}
+		        	        </view>
+		        	    </template>
+		        	    <template v-if="selectType == 'store'" >
+		        	        <view 
+		        	            v-for="(item, index) in LEASE_TYPE_ARR" 
+		        	            :class="['item', leaseType == item.value && 'checked']"
+		        	            :key="index"
+		        	            @click="leaseType = item.value"
+		        	        >
+		        	            {{ item.label }}
+		        	        </view>
+		        	        <view class="item" style="opacity: 0;"></view>
+		        	    </template>
+		        	</view>
+		        </scroll-view>
+				
+				<view class="options-wrap">
 		            <view class="btn cancle" @click="closeLeaseType">取消</view>
 		            <view class="btn confirm" @click="chooseLeaseType">确定</view>
 		        </view>
+				<view style="height: 170rpx;"></view>
 		    </view>
+		
 		</u-popup>
     </view>
 </template>

+ 1 - 1
pages/service/service.vue

@@ -11,7 +11,7 @@
 					{{ item.available_cnt }}
 				</cover-view>
 			</block>
-		</map>
+		</map>	
 		<!-- #endif -->
 
 		<!-- #ifdef APP -->