|
@@ -14,8 +14,8 @@
|
|
|
<view class="content-body">
|
|
|
<view class="store-image flex flex_column justify_center align_center">
|
|
|
<u-image :src="pageInfo.reverseReceiveAddress && pageInfo.reverseReceiveAddress.headerImageList? pageInfo.reverseReceiveAddress.headerImageList[0]:'/static/index/def_home_shop.png'" width="172" height="172" ></u-image>
|
|
|
- <text v-if="isHasRider.haveBindRider && pageInfo.name">{{pageInfo.name}}</text>
|
|
|
- <text v-else>{{mobile}}</text>
|
|
|
+ <text v-if="pageInfo.name">{{pageInfo.name}}</text>
|
|
|
+ <text v-else>{{mobile?mobile:pageInfo.mobile}}</text>
|
|
|
</view>
|
|
|
|
|
|
<!-- 表单 -->
|
|
@@ -64,12 +64,16 @@
|
|
|
<view class="rubbishType-type">
|
|
|
{{rubbishPaperName ? rubbishPaperName :''}}
|
|
|
</view>
|
|
|
- <view class="flex rubbish">
|
|
|
- <view v-for="item in rubbishPaperList" class="rubbishType-item">
|
|
|
- <u-image :src="item.image" width="92" height="92"></u-image>
|
|
|
- <span>{{item.name ? item.name :''}}</span><span>{{item.customerPrice ? (item.customerPrice).toFixed(2)/1+'元/kg' :''}} </span>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+ <swiper class="swiper" :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval" :duration="duration">
|
|
|
+ <swiper-item v-for="(item,index) in rubbishPaperList" :key="index">
|
|
|
+ <view class="flex rubbish">
|
|
|
+ <view v-for="key in item" class="rubbishType-item">
|
|
|
+ <u-image :src="key.image" width="92" height="92"></u-image>
|
|
|
+ <span>{{key.name ? key.name :''}}</span><span>{{key.customerPrice ? (key.customerPrice).toFixed(2)/1+'元/kg' :''}} </span>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </swiper-item>
|
|
|
+ </swiper>
|
|
|
</view>
|
|
|
<!-- 塑料类 -->
|
|
|
<view class="statistics-box" v-if="rubbishSLList.length">
|
|
@@ -182,6 +186,10 @@
|
|
|
orderCreateTime:'',
|
|
|
orderId:'',
|
|
|
imageHeader:'', // 门头照
|
|
|
+ indicatorDots: true,
|
|
|
+ autoplay: false,
|
|
|
+ interval: 2000,
|
|
|
+ duration: 500
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
@@ -306,7 +314,7 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- // 扫码下单
|
|
|
+ // 扫码下单 自主下单
|
|
|
getSaomaInfo(){
|
|
|
saomaOrder().then(res=>{
|
|
|
if(res.status==200){
|
|
@@ -375,25 +383,42 @@
|
|
|
const d= res.data.find(item=>item.code=='METAL')
|
|
|
/* 纸张类 */
|
|
|
this.rubbishPaperList=a.rubbishTypeVOList
|
|
|
- this.rubbishPaperList.map(item=>{
|
|
|
- if(item.code=='YELLOW_PAPER'){
|
|
|
- item.image='/static/index/icon_aper_yellow.png'
|
|
|
- }
|
|
|
- if(item.code=='COLOUR_PAPER'){
|
|
|
- item.image='/static/index/icon_aper_flower.png'
|
|
|
- }
|
|
|
- if(item.code=='BOOK_PAPER'){
|
|
|
- item.image='/static/index/icon_book.png'
|
|
|
- }
|
|
|
- if(item.code=='MAGAZINE'){
|
|
|
- item.image='/static/index/icon_magazine.png'
|
|
|
- }
|
|
|
- if(item.code=='OTHER_PAPER'){
|
|
|
- item.image='/static/index/icon_aper_miscellaneous.png'
|
|
|
- }
|
|
|
- if(item.code=='NEWS_PAPER'){
|
|
|
- item.image='/static/index/icon_newspaper.png'
|
|
|
+ if (a.rubbishTypeVOList.length > 4) {
|
|
|
+ this.indicatorDots=true
|
|
|
+ let num=Math.ceil(a.rubbishTypeVOList.length/4)
|
|
|
+ let arr = []
|
|
|
+ for (var i = 0; i < num; i++) {
|
|
|
+ arr[i]=a.rubbishTypeVOList.slice(i*4,(i+1)*4)
|
|
|
+ console.log(arr,'===========arr')
|
|
|
}
|
|
|
+ this.rubbishPaperList= arr
|
|
|
+ } else {
|
|
|
+ this.rubbishPaperList = a.rubbishTypeVOList.length?[a.rubbishTypeVOList]:[]
|
|
|
+ }
|
|
|
+ console.log(this.rubbishPaperList, '--------aaaaaa')
|
|
|
+ // this.rubbishPaperList=a.rubbishTypeVOList
|
|
|
+ this.rubbishPaperList.map(item=>{
|
|
|
+ item.map(item=>{
|
|
|
+ if(item.code=='YELLOW_PAPER'){
|
|
|
+ item.image='/static/index/icon_aper_yellow.png'
|
|
|
+ }
|
|
|
+ if(item.code=='COLOUR_PAPER'){
|
|
|
+ item.image='/static/index/icon_aper_flower.png'
|
|
|
+ }
|
|
|
+ if(item.code=='BOOK_PAPER'){
|
|
|
+ item.image='/static/index/icon_book.png'
|
|
|
+ }
|
|
|
+ if(item.code=='MAGAZINE'){
|
|
|
+ item.image='/static/index/icon_magazine.png'
|
|
|
+ }
|
|
|
+ if(item.code=='OTHER_PAPER'){
|
|
|
+ item.image='/static/index/icon_aper_miscellaneous.png'
|
|
|
+ }
|
|
|
+ if(item.code=='NEWS_PAPER'){
|
|
|
+ item.image='/static/index/icon_newspaper.png'
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
})
|
|
|
// 塑料类
|
|
|
this.rubbishSLList=b.rubbishTypeVOList
|