|
@@ -37,53 +37,57 @@
|
|
|
<view class='title'>工厂价格</view>
|
|
|
<view style='color:#B2B3BB;' @click='more("/pages/sale/plant")'>更多</view>
|
|
|
</view>
|
|
|
- <view class='guess-section-wrap-content'>
|
|
|
- <view class='guess-section-wrap-item clearfix' v-for='item in plantList'>
|
|
|
- <view class='factory'>{{item.factory}}</view>
|
|
|
- <view class='wrap'>{{item.city}} {{item.factoryType}}</view>
|
|
|
- <view class='price'>
|
|
|
- <text class='currectprice'>{{item.price}}</text>
|
|
|
- 较昨日
|
|
|
- <image v-if='item.comparePrice>0' style="width:7.5px;height:9px;" src='../../static/img/homepage/shangsheng.png'></image>
|
|
|
- <image v-if='item.comparePrice<0' style="width:7.5px;height:9px;" src='../../static/img/homepage/xiajiang.png'></image>
|
|
|
- <text v-if='item.comparePrice>0' class='yesterday up'>{{item.comparePrice}}</text>
|
|
|
- <text v-if='item.comparePrice<0' class='yesterday down'>{{-item.comparePrice}}</text>
|
|
|
- <text v-if='item.comparePrice==0' class='yesterday'>-</text>
|
|
|
+ <scroll-view :scroll-x="true">
|
|
|
+ <view class='guess-section-wrap-content'>
|
|
|
+ <view class='guess-section-wrap-item clearfix' v-for='item in plantList'>
|
|
|
+ <view class='factory'>{{item.factory}}</view>
|
|
|
+ <view class='wrap'>{{item.city}} {{item.factoryType}}</view>
|
|
|
+ <view class='price'>
|
|
|
+ <text class='currectprice'>{{item.price}}</text>
|
|
|
+ 较昨日
|
|
|
+ <image v-if='item.comparePrice>0' style="width:7.5px;height:9px;" src='../../static/img/homepage/shangsheng.png'></image>
|
|
|
+ <image v-if='item.comparePrice<0' style="width:7.5px;height:9px;" src='../../static/img/homepage/xiajiang.png'></image>
|
|
|
+ <text v-if='item.comparePrice>0' class='yesterday up'>{{item.comparePrice}}</text>
|
|
|
+ <text v-if='item.comparePrice<0' class='yesterday down'>{{-item.comparePrice}}</text>
|
|
|
+ <text v-if='item.comparePrice==0' class='yesterday'>-</text>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </scroll-view>
|
|
|
</view>
|
|
|
<view class="guess-section-wrap">
|
|
|
<view class='flex justify-between'>
|
|
|
<view class='title'>港口价格</view>
|
|
|
<view style='color:#B2B3BB;' @click='more("/pages/sale/portprice")'>更多</view>
|
|
|
</view>
|
|
|
- <view class='guess-section-wrap-content port'>
|
|
|
- <view class='guess-section-wrap-item clearfix' v-for='item in portList'>
|
|
|
- <view class='factory'>{{item.port}}</view>
|
|
|
- <view class='wrap'>{{item.goodsName}}</view>
|
|
|
- <view class='price'>
|
|
|
- <text class='currectprice'>{{item.price}}</text>
|
|
|
- 较昨日
|
|
|
- <image v-if='item.comparePrice>0' style="width:7.5px;height:9px;" src='../../static/img/homepage/shangsheng.png'></image>
|
|
|
- <image v-if='item.comparePrice<0' style="width:7.5px;height:9px;" src='../../static/img/homepage/xiajiang.png'></image>
|
|
|
- <text v-if='item.comparePrice>0' class='yesterday up'>{{item.comparePrice}}</text>
|
|
|
- <text v-if='item.comparePrice<0' class='yesterday down'>{{-item.comparePrice}}</text>
|
|
|
- <text v-if='item.comparePrice==0' class='yesterday'>-</text>
|
|
|
- </view>
|
|
|
- <view style='color:#B2B3BB;' class='flex'>
|
|
|
- <view style='margin-right:10px;'>
|
|
|
- <image style='width:11px;height:11px;' src='../../static/img/homepage/water@3x.png'></image>
|
|
|
- <={{item.waterContent}}
|
|
|
+
|
|
|
+ <scroll-view :scroll-x="true">
|
|
|
+ <view class='guess-section-wrap-content port'>
|
|
|
+ <view class='guess-section-wrap-item clearfix' v-for='item in portList'>
|
|
|
+ <view class='factory'>{{item.port}}</view>
|
|
|
+ <view class='wrap'>{{item.goodsName}}</view>
|
|
|
+ <view class='price'>
|
|
|
+ <text class='currectprice'>{{item.price}}</text>
|
|
|
+ 较昨日
|
|
|
+ <image v-if='item.comparePrice>0' style="width:7.5px;height:9px;" src='../../static/img/homepage/shangsheng.png'></image>
|
|
|
+ <image v-if='item.comparePrice<0' style="width:7.5px;height:9px;" src='../../static/img/homepage/xiajiang.png'></image>
|
|
|
+ <text v-if='item.comparePrice>0' class='yesterday up'>{{item.comparePrice}}</text>
|
|
|
+ <text v-if='item.comparePrice<0' class='yesterday down'>{{-item.comparePrice}}</text>
|
|
|
+ <text v-if='item.comparePrice==0' class='yesterday'>-</text>
|
|
|
</view>
|
|
|
- <view>
|
|
|
- <image style='width:11px;height:11px;' src='../../static/img/homepage/unitweight@3x.png'></image>
|
|
|
- >={{item.bulkDensity}}
|
|
|
+ <view style='color:#B2B3BB;' class='flex'>
|
|
|
+ <view style='margin-right:10px;'>
|
|
|
+ <image style='width:11px;height:11px;' src='../../static/img/homepage/water@3x.png'></image>
|
|
|
+ <={{item.waterContent}}
|
|
|
+ </view>
|
|
|
+ <view>
|
|
|
+ <image style='width:11px;height:11px;' src='../../static/img/homepage/unitweight@3x.png'></image>
|
|
|
+ >={{item.bulkDensity}}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
- </view>
|
|
|
+ </scroll-view>
|
|
|
</view>
|
|
|
<view class="guess-section-wrap1">
|
|
|
<view style='padding:15px;' class='flex justify-between'>
|
|
@@ -204,11 +208,11 @@
|
|
|
this.scrollTop = e.scrollTop;
|
|
|
},
|
|
|
onReachBottom() { //上拉触底函数
|
|
|
- if (!this.isLoadMore) { //此处判断,上锁,防止重复请求
|
|
|
- this.isLoadMore = true
|
|
|
- this.pages += 1
|
|
|
- this.getIndexSaleData()
|
|
|
- }
|
|
|
+ // if (!this.isLoadMore) { //此处判断,上锁,防止重复请求
|
|
|
+ // this.isLoadMore = true
|
|
|
+ // this.pages += 1
|
|
|
+ // this.getIndexSaleData()
|
|
|
+ // }
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
this.pages = 1
|
|
@@ -471,8 +475,8 @@
|
|
|
uni.hideLoading()
|
|
|
}).then(res => {
|
|
|
let data = res.data
|
|
|
- that.newsInfo = data
|
|
|
- that.isLoadMore=false
|
|
|
+ that.newsInfo = data
|
|
|
+ that.isLoadMore=false
|
|
|
uni.hideLoading()
|
|
|
})
|
|
|
}
|