|
@@ -78,7 +78,7 @@
|
|
|
<view class="product-list">
|
|
|
<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)">
|
|
|
- <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>
|
|
|
</view>
|
|
@@ -210,9 +210,9 @@
|
|
|
uni.getStorage({
|
|
|
key : 'userInfo',
|
|
|
success:function(res){
|
|
|
- console.log('userInfo customerType',res.data.customerType);
|
|
|
+ // console.log('userInfo customerType',res.data.customerType);
|
|
|
if(res.data.customerType =='1'){
|
|
|
- console.log('个人用户');
|
|
|
+ // console.log('个人用户');
|
|
|
uni.setTabBarItem({
|
|
|
index: 1,
|
|
|
text: '普惠商城',
|
|
@@ -261,7 +261,7 @@
|
|
|
this.getRank(type);
|
|
|
},
|
|
|
getRank(){
|
|
|
- let params = {"type":this.rankType,"pageSize":4};
|
|
|
+ let params = {"type":this.rankType};
|
|
|
// 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 => {
|
|
|
if(!res.data.retBody){
|