소스 검색

修改图片高度

achao 2 년 전
부모
커밋
eb2b628578

+ 10 - 6
xiaochengxu/pages/cardHolder/cardHolder.vue

@@ -212,15 +212,15 @@
 						</view>
 						<view class="car-bottom flex">
 							<view class="left">
-								<image src="../../static/imgs/card/home.png" mode="widthFix" style="width: 32rpx;"
+								<image src="../../static/imgs/card/home.png" mode="widthFix" style="width: 32rpx;height: auto;"
 									@click="toHome(item)"></image>
 								<text @click='switchType(item)'
 									style="color: #fff;font-size: 36rpx;font-weight: 700;">{{item.classify?item.classifyName:'默'}}</text>
 								<image v-if='item.shareCard==1' src="../../static/imgs/card/share.png" mode="widthFix"
-									style="width: 35rpx;" @click="share(item)"></image>
+									style="width: 35rpx;height: auto;" @click="share(item)"></image>
 
 								<image v-if='item.shareCard==0' src="../../static/imgs/card/share_grey.png"
-									mode="widthFix" style="width: 40rpx;"></image>
+									mode="widthFix" style="width: 40rpx;height: auto;"></image>
 							</view>
 							<view class="right">
 
@@ -258,7 +258,7 @@
 		</u-modal>
 
 		<u-popup :show="qrcodeShow" @close="qrcodeShow=false" mode="center" :round='10'>
-			<image style='margin:10px;' :src="currectData.qrCode" mode="widthFix"></image>
+			<image style='margin:10px;height: auto;' :src="currectData.qrCode" mode="widthFix"></image>
 		</u-popup>
 		<u-popup :show="popupshow" :closeOnClickOverlay='true' :overlayOpacity='0.4' @close='handleHiddenShare'
 			:round="10" mode="bottom">
@@ -330,7 +330,7 @@
 					<u-form :model="userInfo" ref="uForm">
 						<u-form-item label="头像">
 							<button class="avatar-wrapper" open-type="chooseAvatar" @chooseavatar="onChooseAvatar" slot="right">
-								<image class="avatar" :src="userInfo.head?userInfo.head:'https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0'"></image>
+								<image class="avatar" style="height: auto;" :src="userInfo.head?userInfo.head:'https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0'"></image>
 							</button>
 						</u-form-item>
 						<u-form-item label="昵称">
@@ -425,6 +425,10 @@
 		},
 		mounted() {
 
+		},
+		onShow:function(){
+			this.searchVal = uni.getStorageSync("search_val") ? uni.getStorageSync("search_val") : ''
+			if(this.searchVal) this.mescroll.resetUpScroll();
 		},
 		onLoad: function(options) {
 			that = this
@@ -438,7 +442,7 @@
 						menus: ["shareAppMessage", "shareTimeline"]
 					})
 				});
-				this.searchVal = uni.getStorageSync("search_val") ? uni.getStorageSync("search_val") : ''
+				
 			} else {
 				if (uni.getLaunchOptionsSync().scene != 1154) {
 					this.login()

+ 1 - 1
xiaochengxu/pages/cardHolder/search.vue

@@ -11,7 +11,7 @@
 				<view class="record-box">
 					<view class="record-btn-layer" v-if="tempFilePath == ''">
 						<view class="record-btn">
-							<image src="../../static/mic1.png" mode="widthFix" style="width:120rpx;"
+							<image src="../../static/mic1.png" mode="widthFix" style="width:120rpx;height: auto;"
 								@longpress="longpressBtn" @touchend="touchendBtn" @touchmove="handleTouchMove"></image>
 							<text class="text">{{longPress == '1' ? '按住说出姓名' : '松开自动识别'}}</text>
 						</view>

+ 6 - 2
xiaochengxu/pages/circle/circle.vue

@@ -82,7 +82,7 @@
 				this.canReset && this.mescroll.scrollTo(0, 0) // 重置列表数据为第一页时,建议把滚动条也重置到顶部,避免无法再次翻页的问题  
 				this.canReset = true // 过滤第一次的onShow事件,避免初始化界面时重复触发upCallback, 无需配置auto:false
 			});
-			this.searchVal = uni.getStorageSync("cirlce_search_val") ? uni.getStorageSync("cirlce_search_val") : ''
+			
 			this.$request.baseRequest('admin.unimall.cardExchangeInfo', 'list', {
 				receiveId:this.userInfo.id,
 				status:1
@@ -100,7 +100,8 @@
 			})
 		},
 		onShow() {
-		
+		this.searchVal = uni.getStorageSync("cirlce_search_val") ? uni.getStorageSync("cirlce_search_val") : ''
+		if(this.searchVal) this.mescroll.resetUpScroll();
 		},
 		methods: {
 			delSearchVal() {
@@ -249,12 +250,14 @@
 
 		.hy-search-img {
 			width: 38rpx;
+			height: auto;
 			margin-left: 40rpx;
 		}
 
 		.search-img {
 			width: 38rpx;
 			margin-right: 40rpx;
+			height: auto;
 		}
 
 		.right {
@@ -327,6 +330,7 @@
 
 	.add{
 		width:84rpx;
+		height: auto;
 		position: fixed;
 		bottom: 26rpx;
 		right: 26rpx;

+ 1 - 1
xiaochengxu/pages/circle/createCirclce.vue

@@ -28,7 +28,7 @@
 							<u-input placeholder="请输入圈子标签,2-6个字" border="none" v-model="item.labelName" @change="change"
 							:customStyle="custom">
 							<template slot="suffix">
-								<image src="../../static/imgs/mySet/del.png" mode="widthFix" style="width: 40rpx;" @click="subtract(index)"></image>
+								<image src="../../static/imgs/mySet/del.png" mode="widthFix" style="width: 40rpx;height: auto;" @click="subtract(index)"></image>
 							</template>
 							</u-input>
 						</view>

+ 2 - 2
xiaochengxu/pages/circle/detail.vue

@@ -34,7 +34,7 @@
 					</view>
 					<view class="right flex" v-if="dataObj.circleCardInfo" @click="myCardClick">
 						<image src="../../static/imgs/cirlce/account.png" mode="widthFix"
-							style="width: 36rpx;margin-right: 15rpx;"></image>我的名片
+							style="width: 36rpx;margin-right: 15rpx;height: auto;"></image>我的名片
 					</view>
 				</view>
 			</view>
@@ -63,7 +63,7 @@
 				</view>
 
 				<view class="line">
-					<image src="../../static/imgs/cirlce/line.png" mode="widthFix" style="width: 95%;"></image>
+					<image src="../../static/imgs/cirlce/line.png" mode="widthFix" style="width: 95%;height: auto;"></image>
 				</view>
 				<view class="bottom" v-if="item.scopeOfBusiness">
 					{{item.scopeOfBusiness}}

+ 1 - 0
xiaochengxu/pages/mySet/cardType.vue

@@ -226,6 +226,7 @@
 
 			.img {
 				width: 48rpx;
+				height: auto;
 				margin-left: 20rpx;
 			}
 		}

+ 1 - 1
xiaochengxu/pages/mySet/editCard.vue

@@ -3,7 +3,7 @@
 	<view class="content">
 		<view class="content1 relative">
 			<view class="relative">
-				<image :src="imgList[cardInfo.cuttentTemplate-1].dictLabel" mode="widthFix" style="width: 100%;"></image>
+				<image :src="imgList[cardInfo.cuttentTemplate-1].dictLabel" mode="widthFix" style="width: 100%;height: auto;"></image>
 			</view>
 			<view class="absolute card-content style1" v-if="cardInfo.cuttentTemplate==1">
 				<view class="left">

+ 1 - 0
xiaochengxu/pages/mySet/myCard.vue

@@ -741,6 +741,7 @@
 		.btn-img {
 			width: 28rpx;
 			margin-right: 18rpx;
+			height: auto;
 		}
 	}
 	.content2{

+ 5 - 5
xiaochengxu/pages/mySet/myInfo.vue

@@ -140,11 +140,11 @@
 						</view>
 						<view class="car-bottom flex">
 							<view class="left">
-								<image src="../../static/imgs/card/home.png" mode="widthFix" style="width: 32rpx;"
+								<image src="../../static/imgs/card/home.png" mode="widthFix" style="width: 32rpx;height: auto;"
 									@click="toHome(item)"></image>
-								<image src="../../static/imgs/card/share.png" mode="widthFix" style="width: 35rpx;"
+								<image src="../../static/imgs/card/share.png" mode="widthFix" style="width: 35rpx;height: auto;"
 									@click="share(item)"></image>
-								<image src="../../static/imgs/card/ewm.png" mode="widthFix" style="width: 32rpx;"
+								<image src="../../static/imgs/card/ewm.png" mode="widthFix" style="width: 32rpx;height: auto;"
 									@click="showCode(item)"></image>
 							</view>
 							<view class="right">
@@ -164,7 +164,7 @@
 			</view>
 			<view class="upload flex flex-all-center" @click="addCard">
 				<view class="solids flex flex-all-center">
-					<image src="../../static/imgs/card/add.png" mode="widthFix" style="width: 148rpx;"></image>
+					<image src="../../static/imgs/card/add.png" mode="widthFix" style="width: 148rpx;height: auto;"></image>
 					<text class='text'>添加新名片</text>
 				</view>
 			</view>
@@ -196,7 +196,7 @@
 			</view>
 		</u-popup>
 		<u-popup :show="isShowCode" @close="isShowCode=false" mode="center" :round='10'>
-			<image style='margin:10px;' :src="selectCode" mode="widthFix"></image>
+			<image style='margin:10px;height: auto;' :src="selectCode" mode="widthFix"></image>
 		</u-popup>
 		<u-popup :show="popupshow" :closeOnClickOverlay='true' :overlayOpacity='0.4' @close='handleHiddenShare'
 			:round="10" mode="bottom">

+ 1 - 1
xiaochengxu/pages/mySet/mySet.vue

@@ -30,7 +30,7 @@
 			</view>
 		</view>
 		<u-popup :show="isShowCode" @close="isShowCode=false" mode="center" :round='10'>
-			<image :src="selectCode" mode="widthFix"></image>
+			<image :src="selectCode" mode="widthFix" style="height: auto;"></image>
 		</u-popup>
 		<u-picker keyName="cardBusiness" :confirmType='"share"' :confirmText='"分享"' title="选择名片" @cancel="show=false"
 			closeOnClickOverlay @change="cardChange" :show="show" :columns="cardList"></u-picker>

+ 1 - 1
xiaochengxu/pages/mySet/newCard.vue

@@ -2,7 +2,7 @@
 	<view class="content">
 		<view class="content1 relative">
 			<view class="relative">
-				<image :src="imgList[selectIndex].dictLabel" mode="widthFix" style="width: 100%;"></image>
+				<image :src="imgList[selectIndex].dictLabel" mode="widthFix" style="width: 100%;height: auto;"></image>
 			</view>
 			<view class="absolute card-content style1" v-if="imgList[selectIndex].dictSort==1">
 				<view class="left">