Sfoglia il codice sorgente

1.添加图片比例适应
2.添加提现判断展示

zizhong.wang 5 anni fa
parent
commit
a2133edf28

+ 1 - 1
pages/index/detailPage/index.vue

@@ -1,7 +1,7 @@
 
 <template>
 	<view class="content">
-		<image class="logo" :src="detailObj.picture"></image>
+		<image class="logo" :src="detailObj.picture" mode='aspectFill'></image>
 		<view class="detail-title">
 			<text style="margin-left: 5%;">{{detailObj.desc}}</text>
 		    <text class="price-style">¥{{detailObj.money}}</text> 

+ 1 - 1
pages/index/index.vue

@@ -32,7 +32,7 @@
 		<!--  <s-pull-scroll ref="pullScroll" :back-top="true" :pullDown="pullDown" :pullUp="loadData"> -->
 			<view class="recommend-box">
 				<view class="product-box" v-for="item in productList" :key="item.id"  @click="goDetail(item.id)">
-					<image :src="item.picture"></image>
+					<image :src="item.picture" mode='aspectFill'></image>
 					<view class="detail-box">
 						<view>{{item.desc || '-'}}</view>
 						<view style="color: #999;">¥{{item.money || '-'}}</view>

+ 4 - 3
pages/selfCenter/cashoutPage/applyPage/index.vue

@@ -58,7 +58,7 @@ export default {
 		},
 		getCash(){
 			  let that = this;
-			  if(that.money > 0){
+			  if(that.money > 0 && that.money <= that.userInfoObj.nowmoney){
 			  	 uni.request({
 					url: getApp().globalData.shareUrl, //需要设置为全局
 					method: 'POST',
@@ -91,10 +91,11 @@ export default {
 					}
 			  	});
 			  }else {
+				  that.money = '';
 				  uni.showToast({
-				  	title: '您的提现金额不足',
+				  	title: '可提现金额不足,请重新填写',
 				  	icon: 'none',
-					duration:2000
+					duration:3000
 				  });
 			  }
 				

+ 1 - 0
pages/selfCenter/helpPage/index.vue

@@ -46,6 +46,7 @@
 		},
 		methods: {
 	     goHelpDetail(content){
+			 console.log(content)
 			 uni.navigateTo({
 			 	url: '/pages/selfCenter/helpPage/helpDetail/index?qId='+content,
 			 	success: res => {},