浏览代码

全局修改图片的mode

郭宇琦 2 天之前
父节点
当前提交
1727797c17

+ 1 - 1
component/carPlan/carPlan.vue

@@ -3,7 +3,7 @@
 		<view class="more-info">
 			<view class="flex-row model-title">
 				<view style="margin-right: 24rpx;">
-					<image style="width: 160rpx;height: 160rpx;border-radius: 16rpx;" :src="image" mode="aspectFill"></image>
+					<image style="width: 160rpx;height: 160rpx;border-radius: 16rpx;" :src="image" mode="aspectFit"</image>
 					</view>
 				<view class="car-model-detail flex-row">
 					<!-- <priceTool :price="58" :font_size="40"/> -->

+ 1 - 1
component/uploaders/uploaders.vue

@@ -4,7 +4,7 @@
 			<view class="list-item" @longpress="bindDelImage" :data-idx="index"
 				v-for="(item, index) in imgList" :key="item.unique">
 				<!-- <image  class="img-item-demo" :src="item.url"></image> -->
-				<image  class="img-item" :src="item.url" mode="aspectFill"></image>
+				<image  class="img-item" :src="item.url" mode="aspectFit"></image>
 				<!-- <view class="img_text">{{ item.title? item.title : '车辆照片'}}</view> -->
 			</view>
 			<view v-if="imgList.length < max" class="list-item" @tap="bindUpImg">

+ 2 - 2
components/navBar/navigation.vue

@@ -6,11 +6,11 @@
 					<view class="pos">
 						<view   class="car-detail-style">
 							<image  class="return-view"
-								src="https://qiniu.bms16.com/FnHXbzly7aXi8zLghrTU5BZdwH5_" mode="aspectFill"></image>
+								src="https://qiniu.bms16.com/FnHXbzly7aXi8zLghrTU5BZdwH5_" mode="aspectFit"></image>
 						</view>
 						<view :style="{opacity:1 - opacity,background:`rgba(0,0,0,0.4)`}" class="car-detail-style">
 							<image  class="return-view"
-								src="https://qiniu.bms16.com/Fjpnr3cH9ZqTQrGlw3Ywp3qbJGIG" mode="aspectFill"></image>
+								src="https://qiniu.bms16.com/Fjpnr3cH9ZqTQrGlw3Ywp3qbJGIG" mode="aspectFit"></image>
 						</view>
 					</view>
 				</view>

+ 1 - 1
pages/aboutMy/aboutMy.vue

@@ -2,7 +2,7 @@
 	<view class="container">
 		<navBar name="关于我们"></navBar>
 		<view class="header_view flex-row flex-column">
-			<image class="header_img" :src="app_logo" mode="aspectFill"></image>
+			<image class="header_img" :src="app_logo" mode="aspectFit"></image>
 			<view class="header_title">{{appName}}</view>
 			<view class="version">{{"V " + app_version}}</view>
 		</view>

+ 2 - 2
pages/activation/activation.vue

@@ -38,7 +38,7 @@
 					<view>照片:</view>
 					<view style="display: flex;align-items: center;" class="">
 						<image style="margin-right: 10rpx;" v-for="(item,index) of carInfoData.model_images"
-							:key="index" class="img" :src="item" mode="aspectFill"></image>
+							:key="index" class="img" :src="item" mode="aspectFit"></image>
 					</view>
 				</view>
 			</view>
@@ -60,7 +60,7 @@
 					<view class="list-item" @click="bindUpImg(index)" @longpress="bindDelImage(index)" :data-idx="index" v-for="(item, index) in shopList.flk_hire_return_car_img"
 						:key="item.unique">
 						<image v-if="!item.imgUrl"  class="img-item-demo" :src="item.url"></image>
-						<image v-else class="img-item" :src="item.imgUrl" mode="aspectFill"></image>
+						<image v-else class="img-item" :src="item.imgUrl" mode="aspectFit"></image>
 						<view class="img_text">{{ item.title? item.title : '车辆照片'}}</view>
 						<view v-if="!item.imgUrl" class="empity-item">+</view>
 					</view>

+ 1 - 1
pages/cabinetDetail/cabinetDetail.vue

@@ -5,7 +5,7 @@
 			<swiper v-if="shop_image.length!=0" class="swiper" :indicator-dots="true" :autoplay="true" :interval="2000"
 				indicator-color="rgba(0, 0, 0, 0.3)" indicator-active-color="#000000" :duration="1000" circular>
 				<swiper-item class="swiper-item" v-for="(item,index) in shop_image" :key="index">
-					<image class="swiper-item-img" :src="item" mode="aspectFill"></image>
+					<image class="swiper-item-img" :src="item" mode="aspectFit"></image>
 				</swiper-item>
 			</swiper>
 			<img v-else class="bg-img" src="https://qiniu.bms16.com/FhRnr7rADHHsOFfpWO4duD15SgIt" alt="">

+ 1 - 1
pages/message/detail.vue

@@ -3,7 +3,7 @@
 		<navBar name="信息详情"></navBar>
 		<view class="title">{{info.title}}</view>
 		<view>{{info.overview}}</view>
-		<image v-if="info.cover" :src="info.cover" class="img" mode="aspectFill" />
+		<image v-if="info.cover" :src="info.cover" class="img" mode="aspectFit" />
 		<rich-text :nodes="info.content"></rich-text>
 		<location v-if="latlng.latitude && latlng.longitude" :latlng="latlng" />
 	</view>

+ 1 - 1
pages/orderStatus/orderStatus.vue

@@ -163,7 +163,7 @@
 						</view>
 					</view>
 				</view>
-				<image mode="aspectFill" v-if="orderInfo.model_images" :src="orderInfo.model_images"></image>
+				<image mode="aspectFit" v-if="orderInfo.model_images" :src="orderInfo.model_images"></image>
 				<image v-else src="https://qiniu.bms16.com/FhEvnKUckAHPtWaC04mi2s53IEVj" mode=""></image>
 			</view>
 			<!-- <view class="exchange-info">

+ 1 - 1
pages/powerSetting/powerSetting.vue

@@ -2,7 +2,7 @@
 		<view class="power-setting-main">
 			<navBar name="权限设置" bgColor="transparent"></navBar>
 			<view class="flex-row power-setting-head">
-				<image class="head-img" :src="headimg" mode="aspectFill"></image>
+				<image class="head-img" :src="headimg" mode="aspectFit"></image>
 				<view class="head-name">{{nickname}}</view>
 				<text class="head-email">{{form.email}}</text>
 			</view>

+ 1 - 1
pages/purchaseOrder/purchaseOrder.vue

@@ -11,7 +11,7 @@
 		</view>
 		<view class="car-info-view">
 			<view class="flex-row align-center">
-				<image style="width: 160rpx;height: 160rpx;border-radius: 16rpx;" :src="modelInfo.model_images" mode="aspectFill"></image>
+				<image style="width: 160rpx;height: 160rpx;border-radius: 16rpx;" :src="modelInfo.model_images" mode="aspectFit"></image>
 				<view class="flex-row car-info-grow">
 					<view class="flex-row align-center">
 						<view class="car-name">{{modelInfo.car_model_name}}</view>

+ 3 - 3
pages/storeDetails/storeDetails.vue

@@ -7,10 +7,10 @@
 				:interval="2000" indicator-color="rgba(0, 0, 0, 0.3)" indicator-active-color="#000000" :duration="1000"
 				circular>
 				<swiper-item class="swiper-item" v-for="(item,index) in shop_image" :key="index">
-					<image class="swiper-item-img" :src="item" mode="aspectFill"></image>
+					<image class="swiper-item-img" :src="item" mode="aspectFit"></image>
 				</swiper-item>
 			</swiper>
-			<image v-else class="bg-img" src="https://qiniu.bms16.com/FhRnr7rADHHsOFfpWO4duD15SgIt" mode="aspectFill">
+			<image v-else class="bg-img" src="https://qiniu.bms16.com/FhRnr7rADHHsOFfpWO4duD15SgIt" mode="aspectFit">
 			</image>
 
 		</view>
@@ -124,7 +124,7 @@
 					@click="srcFn(`/pages/carDetail/carDetail?model_id=${item.model_id}&shop_type=${tagId}&hire_price=${item.money * 100}`)" :key="index"
 					class="car-info-view align-center flex-row">
 					<!-- <img class="car-img" src="https://qiniu.bms16.com/FsxOysJT2V3KNYev2YWadvjyKn2j" alt=""> -->
-					<image class="car-img" :src="item.model_images[0]" mode="aspectFill"></image>
+					<image class="car-img" :src="item.model_images[0]" mode="aspectFit"></image>
 					<view class="car-info">
 						<view class="car-name flex-row">{{item.model_name}}</view>
 						<view class="car-model-info">续航{{item.endurance}}km|重量{{item.weight}}kg</view>

+ 1 - 1
pages/travelingTrack/travelingTrack.vue

@@ -27,7 +27,7 @@
 				<view>
 					<image class="img"
 						:src="carInfo.model_images || 'https://qiniu.bms16.com/FguJzvAGtd4AdhDKXVLUo7XiMxWQ'"
-						mode="aspectFill"></image>
+						mode="aspectFit"></image>
 				</view>
 			</view>
 			<view class="ctime">{{time}}</view>