Browse Source

auto commit

gcz 4 years ago
parent
commit
2b01e8ad07
1 changed files with 4 additions and 4 deletions
  1. 4 4
      pages/index/index.vue

+ 4 - 4
pages/index/index.vue

@@ -78,7 +78,7 @@
 				<view class="product-list">
 				<view class="product-list">
 					<custom-nodata v-if="productList.length<=0"></custom-nodata>
 					<custom-nodata v-if="productList.length<=0"></custom-nodata>
 					<view class="product-list-item" v-for="(item, index) in productList" :key="index" @click="productClick(item)">
 					<view class="product-list-item" v-for="(item, index) in productList" :key="index" @click="productClick(item)">
-						<image :src="$onlineImg + item.goodsImages | firstImg" class="product-img" mode="heightFix"></image>
+						<image :src="$onlineImg + item.goodsImages | firstImg" class="product-img" mode="scaleToFill"></image>
 						<view class="product-text">{{item.goodsName}}</view>
 						<view class="product-text">{{item.goodsName}}</view>
 					</view>
 					</view>
 				</view>
 				</view>
@@ -210,9 +210,9 @@
 			uni.getStorage({
 			uni.getStorage({
 				key : 'userInfo',
 				key : 'userInfo',
 				success:function(res){
 				success:function(res){
-					console.log('userInfo customerType',res.data.customerType);
+					// console.log('userInfo customerType',res.data.customerType);
 					if(res.data.customerType =='1'){
 					if(res.data.customerType =='1'){
-						console.log('个人用户');
+						// console.log('个人用户');
 						uni.setTabBarItem({
 						uni.setTabBarItem({
 						  index: 1,
 						  index: 1,
 						  text: '普惠商城',
 						  text: '普惠商城',
@@ -261,7 +261,7 @@
 				this.getRank(type);
 				this.getRank(type);
 			},
 			},
 			getRank(){
 			getRank(){
-				let params = {"type":this.rankType,"pageSize":4};
+				let params = {"type":this.rankType};
 				// console.log('this.thetoken',this.thetoken);
 				// console.log('this.thetoken',this.thetoken);
 				this.$api.http.get(this.config.apiBaseurl+'/carbon-h5/wap/carbonVal/getCustomerCarbonValRank',{params:params,header: {Authorization:this.thetoken}}).then(res => {
 				this.$api.http.get(this.config.apiBaseurl+'/carbon-h5/wap/carbonVal/getCustomerCarbonValRank',{params:params,header: {Authorization:this.thetoken}}).then(res => {
 					if(!res.data.retBody){
 					if(!res.data.retBody){