|  |  | 
 |  |  |             <view class="item" :class="flg==index?'cur':''" @click="go(index,item)">
 | 
 |  |  | 
 | 
 |  |  |                 <view v-if="index==0">
 | 
 |  |  |                     <image src="../../static/images/customer/footer/footer-home-1.png" class="footer-icon" v-if="flg==0"></image>
 | 
 |  |  |                     <image src="../../static/images/customer/footer/footer-home-0.png" class="footer-icon" v-if="flg!=0"></image>
 | 
 |  |  |                     <image src="../../static/images/customer/footer/footer-home-1.png" class="footer-icon"
 | 
 |  |  |                         v-if="flg==0"></image>
 | 
 |  |  |                     <image src="../../static/images/customer/footer/footer-home-0.png" class="footer-icon"
 | 
 |  |  |                         v-if="flg!=0"></image>
 | 
 |  |  |                 </view>
 | 
 |  |  |                 <view v-if="index==1">
 | 
 |  |  |                     <image src="../../static/images/customer/footer/footer-trade-1.png" class="footer-icon" v-if="flg==1"></image>
 | 
 |  |  |                     <image src="../../static/images/customer/footer/footer-trade-0.png" class="footer-icon" v-if="flg!=1"></image>
 | 
 |  |  |                     <image src="../../static/images/customer/footer/footer-trade-1.png" class="footer-icon"
 | 
 |  |  |                         v-if="flg==1"></image>
 | 
 |  |  |                     <image src="../../static/images/customer/footer/footer-trade-0.png" class="footer-icon"
 | 
 |  |  |                         v-if="flg!=1"></image>
 | 
 |  |  |                 </view>
 | 
 |  |  |                 <view v-if="index==2">
 | 
 |  |  |                     <image src="../../static/images/customer/footer/footer-shopping-1.png" class="footer-icon" v-if="flg==2">
 | 
 |  |  |                     <image src="../../static/images/customer/footer/footer-shopping-1.png" class="footer-icon"
 | 
 |  |  |                         v-if="flg==2">
 | 
 |  |  |                     </image>
 | 
 |  |  |                     <image src="../../static/images/customer/footer/footer-shopping-0.png" class="footer-icon" v-if="flg!=2">
 | 
 |  |  |                     <image src="../../static/images/customer/footer/footer-shopping-0.png" class="footer-icon"
 | 
 |  |  |                         v-if="flg!=2">
 | 
 |  |  |                     </image>
 | 
 |  |  |                 </view>
 | 
 |  |  |                 <view v-if="index==3">
 | 
 |  |  |                     <image src="../../static/images/customer/footer/footer-self-1.png" class="footer-icon" v-if="flg==3"></image>
 | 
 |  |  |                     <image src="../../static/images/customer/footer/footer-self-0.png" class="footer-icon" v-if="flg!=3"></image>
 | 
 |  |  |                     <image src="../../static/images/customer/footer/footer-self-1.png" class="footer-icon"
 | 
 |  |  |                         v-if="flg==3"></image>
 | 
 |  |  |                     <image src="../../static/images/customer/footer/footer-self-0.png" class="footer-icon"
 | 
 |  |  |                         v-if="flg!=3"></image>
 | 
 |  |  |                 </view>
 | 
 |  |  | 
 | 
 |  |  |                 <view>
 | 
 |  |  | 
 |  |  |         methods: {
 | 
 |  |  | 
 | 
 |  |  |             go(index, item) {
 | 
 |  |  |                 if (this.flg == ('' + index)) {
 | 
 |  |  |                 if (this.flg == index) {
 | 
 |  |  |                     return
 | 
 |  |  |                 }
 | 
 |  |  |                 if (index===1||index===2) {
 | 
 |  |  |                     //交易大厅和购物车,这2个可以用跳转方式 | 
 |  |  |                     uni.navigateTo({ | 
 |  |  |                         url:item.pagePath | 
 |  |  |                     }) | 
 |  |  | 					 | 
 |  |  |                 }else{ | 
 |  |  |                 uni.redirectTo({
 | 
 |  |  |                     url: item.pagePath
 | 
 |  |  | 
 | 
 |  |  |                 });
 | 
 |  |  |                 }
 | 
 |  |  | 				 | 
 |  |  |             },
 | 
 |  |  |         }
 | 
 |  |  |     }
 | 
 
 |  |  | 
 |  |  |             show() { | 
 |  |  |                 this.isOpened = true | 
 |  |  |                 setTimeout(() => { | 
 |  |  |                     this.$refs.pickerView.updateData({ | 
 |  |  |                     this.$refs.pickerView&&this.$refs.pickerView.updateData({ | 
 |  |  |                         treeData: this._treeData, | 
 |  |  |                         selected: this.selected, | 
 |  |  |                         selectedIndex: this.selectedIndex | 
 |  |  | 
 |  |  |         .tree-filter-nodes { | 
 |  |  |             padding-left: 40rpx; | 
 |  |  |             padding-right: 40rpx; | 
 |  |  |             overflow-y: scroll; | 
 |  |  |             max-height: 80vh; | 
 |  |  |  | 
 |  |  |             .tree-filter-node { | 
 |  |  |                 display: flex; | 
 
 |  |  | 
 |  |  |     "quickapp" : {}, | 
 |  |  |     /* 快应用特有相关 */ | 
 |  |  |     "mp-weixin" : { | 
 |  |  |         "appid" : "wx1441324401626290", | 
 |  |  |         "appid" : "wx3203fd935a6ffe09", | 
 |  |  |         "setting" : { | 
 |  |  |             "urlCheck" : false, | 
 |  |  |             "es6" : true, | 
 
 |  |  | 
 |  |  |         {
 | 
 |  |  |             "path": "pages/order/order-delivery-detail",
 | 
 |  |  |             "style": {
 | 
 |  |  |                 "navigationBarTitleText": "订单详情"
 | 
 |  |  |                 "navigationBarTitleText": "配送单详情"
 | 
 |  |  |             }
 | 
 |  |  |         },
 | 
 |  |  |         {
 | 
 |  |  |             "path": "pages/order/order-delivery",
 | 
 |  |  |             "style": {
 | 
 |  |  |                 "navigationBarTitleText": "订单列表"
 | 
 |  |  |                 "navigationBarTitleText": "配送单列表"
 | 
 |  |  |             }
 | 
 |  |  |         },
 | 
 |  |  |         {
 | 
 
 |  |  | 
 |  |  |     <view class=" home-banner-imgs"> | 
 |  |  |         <view class="flex" v-if="list&&list.length>=3"> | 
 |  |  |             <view class="flex1 m-r-5"> | 
 |  |  |                 <image class="p1 img100" :src="list[0].url" mode="scaleToFill"> | 
 |  |  |                 <image class="p1 img100" :src="list[0].url" mode="scaleToFill" @click="previewImg(list[0].url)"> | 
 |  |  |                 </image> | 
 |  |  |             </view> | 
 |  |  |             <view class="flex1 m-l-5"> | 
 |  |  |                 <image class="p2 img100" :src="list[1].url" mode="scaleToFill"> | 
 |  |  |                 <image class="p2 img100" :src="list[1].url" mode="scaleToFill" @click="previewImg(list[1].url)"> | 
 |  |  |                 </image> | 
 |  |  |                 <image class="p3 img100" :src="list[2].url" mode="scaleToFill"> | 
 |  |  |                 <image class="p3 img100" :src="list[2].url" mode="scaleToFill" @click="previewImg(list[2].url)"> | 
 |  |  |                 </image> | 
 |  |  |             </view> | 
 |  |  |         </view> | 
 |  |  |         <view class="flex l-2" v-else-if="list&&list.length>=2" mode="scaleToFill"> | 
 |  |  |             <view class="flex1 m-r-5"> | 
 |  |  |                 <image class="p1 img100" :src="list[0].url" mode="scaleToFill"> | 
 |  |  |                 <image class="p1 img100" :src="list[0].url" mode="scaleToFill" @click="previewImg(list[0].url)"> | 
 |  |  |                 </image> | 
 |  |  |             </view> | 
 |  |  |             <view class="flex1 m-l-5"> | 
 |  |  |                 <image class="p1 img100" :src="list[1].url" mode="scaleToFill"> | 
 |  |  |                 <image class="p1 img100" :src="list[1].url" mode="scaleToFill" @click="previewImg(list[1].url)"> | 
 |  |  |                 </image> | 
 |  |  |             </view> | 
 |  |  |         </view> | 
 |  |  |         <view class="flex l-1" v-else-if="list&&list.length>=1" mode="scaleToFill"> | 
 |  |  |             <view class="flex1 m-r-5"> | 
 |  |  |                 <image class="p1 img100" :src="list[0].url" mode="scaleToFill"> | 
 |  |  |                 <image class="p1 img100" :src="list[0].url" mode="scaleToFill" @click="previewImg(list[0].url)"> | 
 |  |  |                 </image> | 
 |  |  |             </view> | 
 |  |  |         </view> | 
 |  |  | 
 |  |  |             const { | 
 |  |  |                 data, | 
 |  |  |                 code | 
 |  |  |             } = await this.$http.request('get', '/api/pub/banner/list', { | 
 |  |  |             } = await this.$http.request('get', '/api/pub/advertisement/list', { | 
 |  |  |  | 
 |  |  |             }) | 
 |  |  |             if (code === 0) { | 
 |  |  |                 this.list = data || [] | 
 |  |  |                 for(var item of this.list){ | 
 |  |  |                     item.url = item.cover | 
 |  |  |                     try{ | 
 |  |  |                         if(item.url){ | 
 |  |  |                             var t = JSON.parse(item.url) | 
 |  |  | 
 |  |  |                     }catch(e){ | 
 |  |  |                         // console.log('error',e) | 
 |  |  |                     } | 
 |  |  |                     // item.url = item.cover | 
 |  |  |                 } | 
 |  |  |                 console.log(this.list) | 
 |  |  |             } | 
 
 |  |  | 
 |  |  | <template> | 
 |  |  |   <view class="home-top-flow"> | 
 |  |  |     <view class="item flex" v-for="(item,index) of list" :key="index"> | 
 |  |  |         <view class="item flex" v-for="(item,index) of list" :key="index" @click="toDetail(item)"> | 
 |  |  |       <view class="img"> | 
 |  |  |         <image class="img img100" | 
 |  |  |                :src="item.cover"> | 
 |  |  |                 <image class="img img100" :src="item.cover"> | 
 |  |  |         </image> | 
 |  |  |         <view class="level"> | 
 |  |  |           {{ item.levelStr}} | 
 |  |  | 
 |  |  |             {{ item.unit || 0 }} | 
 |  |  |           </view> | 
 |  |  |         </view> | 
 |  |  |                 <view class="button-buy  m-l-a m-r-0" v-if="item.status=='UP'"> | 
 |  |  |                     立即抢购 | 
 |  |  |                 </view> | 
 |  |  |       </view> | 
 |  |  |     </view> | 
 |  |  |   </view> | 
 |  |  | 
 |  |  |   data() { | 
 |  |  |     return { | 
 |  |  |       // list: [{}, {}, {}, {}] | 
 |  |  |                 query: { | 
 |  |  |                     status: 'UP' | 
 |  |  |                 } | 
 |  |  |     }; | 
 |  |  |   }, | 
 |  |  |   mounted() { | 
 |  |  | 
 |  |  |           } | 
 |  |  |         } | 
 |  |  |       } | 
 |  |  |             }, | 
 |  |  |             toDetail(item) { | 
 |  |  |                 uni.navigateTo({ | 
 |  |  |                     url: '/sub_pages/customer/trade/detail?id=' + item.id | 
 |  |  |                 }) | 
 |  |  |     } | 
 |  |  |   }, | 
 |  |  |  | 
 |  |  | 
 |  |  |     padding: 10rpx; | 
 |  |  |  | 
 |  |  |     .info-container { | 
 |  |  |                 .button-buy { | 
 |  |  |                     width: 128rpx; | 
 |  |  |                     height: 48rpx; | 
 |  |  |                     border-radius: 30rpx; | 
 |  |  |                     border: 2rpx solid #CF0000; | 
 |  |  |                     font-size: 24rpx; | 
 |  |  |                     color: #CF0000; | 
 |  |  |                     line-height: 48rpx; | 
 |  |  |                     text-align: center; | 
 |  |  |                 } | 
 |  |  |  | 
 |  |  |       .other-info { | 
 |  |  |         margin-top: 6rpx; | 
 
 |  |  | 
 |  |  |                 v-if="banners&&banners.length>0" :autoplay="true">
 | 
 |  |  |                 <swiper-item v-for="(item, index) in banners" :key="index">
 | 
 |  |  |                     <view class="swiper-item" :class="'swiper-item' + index">
 | 
 |  |  |                         <image @click="previewImg(item.imageSmall||item.image)" class="home-banner-image"
 | 
 |  |  |                             mode="aspectFit" :src="item.imageSmall||item.image">
 | 
 |  |  |                         <image @click="previewImg(item.url||item.image)" class="home-banner-image" mode="scaleToFill"
 | 
 |  |  |                             :src="item.url||item.image">
 | 
 |  |  |                         </image>
 | 
 |  |  |                     </view>
 | 
 |  |  |                 </swiper-item>
 | 
 |  |  | 
 |  |  |             //获取banner图
 | 
 |  |  |             this.$http.request('get', '/api/pub/banner/list', {}).then(res => {
 | 
 |  |  |                 if (res.code == 0) {
 | 
 |  |  |                     this.banners = res.data.records || []
 | 
 |  |  |                     this.banners = res.data || []
 | 
 |  |  |                     if (this.banners.length == 0) {
 | 
 |  |  |                         this.banners.push({
 | 
 |  |  |                             url: 'https://hmy-flower.oss-cn-shanghai.aliyuncs.com/62/62ddac6297104e369aba646be704064dbanner@2x.png'
 | 
 |  |  |                         })
 | 
 |  |  |                     } else {
 | 
 |  |  |                         for (var item of this.banners) {
 | 
 |  |  |                             // http://106.14.123.210/files/group1/e8/e1c17f7229514e5da211d8d47b09906b.jpeg
 | 
 |  |  |                             try {
 | 
 |  |  |                                 if (item.url) {
 | 
 |  |  |                                     var t = JSON.parse(item.url)
 | 
 |  |  |                                     if (Array.isArray(t)) {
 | 
 |  |  |                                         item.url = t[0] || ''
 | 
 |  |  |                                     } else {
 | 
 |  |  |                                         item.url = t.url || ''
 | 
 |  |  |                                     }
 | 
 |  |  |                                 }
 | 
 |  |  | 
 | 
 |  |  |                             } catch (e) {
 | 
 |  |  |                                 // console.log('error',e)
 | 
 |  |  |                             }
 | 
 |  |  |                         }
 | 
 |  |  |                     }
 | 
 |  |  |                 }
 | 
 |  |  |             })
 | 
 |  |  | 
 | 
 |  |  | 
 |  |  |                 if(that.currentInfo.id&&!that.address.id){
 | 
 |  |  |                     that.$http.request('get', '/api/address/default/detail').then(res=>{
 | 
 |  |  |                         if(res.data){
 | 
 |  |  |                             that.$store.commit('setDefaultAddress', {...res.data})
 | 
 |  |  |                             that.$store.commit('setDefaultAddress', {
 | 
 |  |  |                                 ...res.data
 | 
 |  |  |                             })
 | 
 |  |  |                             
 | 
 |  |  |                         }
 | 
 |  |  |                     })
 | 
 
 |  |  | 
 |  |  |  | 
 |  |  |         }, | 
 |  |  |         onReachBottom() { | 
 |  |  |             this.page.current += 1 | 
 |  |  |             this.getMore() | 
 |  |  |         }, | 
 |  |  |         async onPullDownRefresh() { | 
 
 |  |  | 
 |  |  |                     <view class="delivery-form"> | 
 |  |  |                         <view class="form-item"> | 
 |  |  |                             <view class="label">仓库名称</view> | 
 |  |  |                             <view class="value red">{{item.warehouseName}}</view> | 
 |  |  |                             <view class="value red">{{item.warehouseName || '待分配'}}</view> | 
 |  |  |                         </view> | 
 |  |  |                         <view class="form-item"> | 
 |  |  |                             <view class="label">库位名称</view> | 
 |  |  |                             <view class="value red">{{item.warehouseLocationCode}}</view> | 
 |  |  |                             <view class="value red">{{item.warehouseLocationCode || '待分配'}}</view> | 
 |  |  |                         </view> | 
 |  |  |  | 
 |  |  |                     </view> | 
 |  |  | 
 |  |  |  | 
 |  |  |         }, | 
 |  |  |         onReachBottom() { | 
 |  |  |             this.page.current += 1 | 
 |  |  |             this.getMore() | 
 |  |  |         }, | 
 |  |  |         async onShow() { | 
 
 |  |  | 
 |  |  |  | 
 |  |  |                 await this.getDetail() | 
 |  |  |                 await this.getItemList() | 
 |  |  |                 this.submitForm = { | 
 |  |  |                     orderId: this.id, | 
 |  |  |                     imageList: [], | 
 |  |  |                     videoList: [], | 
 |  |  |                     reason: [], | 
 |  |  |                     orderItems: [] | 
 |  |  |             } | 
 |  |  |             this.showSales = options.showsales && true || false | 
 |  |  |  | 
 |  |  |             } | 
 |  |  |         }, | 
 |  |  |         methods: { | 
 |  |  |  | 
 
 |  |  | 
 |  |  |         </view> | 
 |  |  |  | 
 |  |  |  | 
 |  |  |         <view class="info-container bg-white m-t-12 br-4"> | 
 |  |  |             <view v-if="dto.imageList&&dto.imageList.length>0"> | 
 |  |  |                 <view class="form-item"> | 
 |  |  |                     <view class="label">图片: | 
 |  |  |                     </view> | 
 |  |  |                 </view> | 
 |  |  |                 <view class="flex p20"> | 
 |  |  |                     <view class="m-t-12 m-r-10 " v-for="(timg,index) of dto.imageList" :key="index"> | 
 |  |  |                         <image class="check-img" :src="timg" @click.stop="previewImg(timg)"> | 
 |  |  |                         </image> | 
 |  |  |                     </view> | 
 |  |  |                 </view> | 
 |  |  |             </view> | 
 |  |  |             <view v-if="dto.imageList&&dto.imageList.length>0"> | 
 |  |  |                 <view class="form-item"> | 
 |  |  |                     <view class="label">视频: | 
 |  |  |                     </view> | 
 |  |  |                 </view> | 
 |  |  |                 <view class="flex p20"> | 
 |  |  |                     <view class="m-t-12 m-r-10 " v-for="(timg,index) of dto.videoList" :key="index"> | 
 |  |  |                         <video :src="timg" style="display: block;margin: 0 auto;"></video> | 
 |  |  |  | 
 |  |  |                     </view> | 
 |  |  |                 </view> | 
 |  |  |             </view> | 
 |  |  |  | 
 |  |  |         </view> | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     </view> | 
 |  |  | </template> | 
 |  |  | 
 |  |  |         .info-container { | 
 |  |  |             padding: 28rpx; | 
 |  |  |  | 
 |  |  |             .check-img { | 
 |  |  |                 width: 96rpx; | 
 |  |  |                 height: 96rpx; | 
 |  |  |                 border-radius: 4rpx; | 
 |  |  |                 border: 2rpx dashed #CECECE; | 
 |  |  |             } | 
 |  |  |  | 
 |  |  |             .form-item { | 
 |  |  |                 font-weight: 400; | 
 |  |  |                 font-size: 28rpx; | 
 
 |  |  | 
 |  |  |  | 
 |  |  |         }, | 
 |  |  |         onReachBottom() { | 
 |  |  |             this.page.current += 1 | 
 |  |  |             this.getMore() | 
 |  |  |         }, | 
 |  |  |         async onPullDownRefresh() { | 
 
 |  |  | 
 |  |  |             this.getList() | 
 |  |  |         }, | 
 |  |  |         onReachBottom() { | 
 |  |  |             this.page.current += 1 | 
 |  |  |             this.getMore() | 
 |  |  |         }, | 
 |  |  |         async onPullDownRefresh() { | 
 |  |  | 
 |  |  |                     </view> | 
 |  |  |                     <view class="value">{{ item.customerAddress }}</view> | 
 |  |  |                 </view> | 
 |  |  |                 <view class="desc flex" v-if="item.status!=='PENDING'"> | 
 |  |  |                 <view class="desc flex" v-if="item.statusBackend!=='PENDING'"> | 
 |  |  |                     <view class="label"> | 
 |  |  |                         支付时间: | 
 |  |  |                     </view> | 
 |  |  | 
 |  |  |                 </view> | 
 |  |  |                 <view class="line-gray"></view> | 
 |  |  |                 <view class="flex buttons"> | 
 |  |  |                     <view class="button button-0 m-l-a m-r-0" v-if="item.status==='PENDING'" | 
 |  |  |                     <view class="button button-0 m-l-a m-r-15" v-if="item.statusBackend==='PENDING'" | 
 |  |  |                         @click="buttonClick(item,'cancelOrder')">取消订单</view> | 
 |  |  |                     <view class="button button-1 m-l-15 m-r-0" v-if="item.status==='PENDING'" | 
 |  |  |                     <view class="button button-1 m-l-15 m-r-15" v-if="item.statusBackend==='PENDING'" | 
 |  |  |                         @click="buttonClick(item,'payAgain')">重新支付</view> | 
 |  |  |  | 
 |  |  |                     <view class="button button-0 m-l-a m-r-0" @click="buttonClick('refund')" v-if="item.couldRefund"> | 
 |  |  |                     <view class="button button-0 m-l-a m-r-15" @click="buttonClick('refund')" v-if="item.couldRefund"> | 
 |  |  |                         申请退款 | 
 |  |  |                     </view> | 
 |  |  |                     <view class="button button-0 m-l-a m-r-0" @click="buttonClick('confirm')" | 
 |  |  |                         v-if="item.status ==='RECEIVE'"> 确认收货 | 
 |  |  |                     <view class="button button-0 m-l-a m-r-15" @click="buttonClick('confirm')" | 
 |  |  |                         v-if="item.statusBackend ==='RECEIVE'"> 确认收货 | 
 |  |  |                     </view> | 
 |  |  |  | 
 |  |  |                     <view class="button button-1 m-l-a m-r-0" @click="toDetailSale(item)" | 
 |  |  |                         v-if=" item.status === 'EVALUATE'||item.status=='COMPLETED'"> 申请售后 | 
 |  |  |                     <view class="button button-1 m-l-a m-r-15" @click="toDetailSale(item)" | 
 |  |  |                         v-if=" item.statusBackend === 'EVALUATE'||item.statusBackend=='COMPLETED'"> 申请售后 | 
 |  |  |                     </view> | 
 |  |  |                     <view class="button button-0 m-l-a m-r-0" @click="buttonClick(item,'evaluate')" | 
 |  |  |                         v-if=" item.status === 'EVALUATE'"> 评价 | 
 |  |  |                     <view class="button button-0 m-l-a m-r-15" @click="buttonClick(item,'evaluate')" | 
 |  |  |                         v-if=" item.statusBackend === 'EVALUATE'"> 评价 | 
 |  |  |                     </view> | 
 |  |  |  | 
 |  |  |  | 
 
 |  |  | 
 |  |  |                     <view class="order-icons" style="position: relative;" @click="goto('/pages/order/order?status=PENDING',true)">
 | 
 |  |  |                         <image src="../../static/images/customer/order/order-type-1.png" class="order-icon dfk"
 | 
 |  |  |                             style="position: relative;"> | 
 |  |  |                             <view class="image-shop-number">{{order_pendding_num||''}}</view>							 | 
 |  |  |                             <view class="image-shop-number" v-if="order_pendding_num">{{order_pendding_num||''}}</view>							 | 
 |  |  |                         </image>
 | 
 |  |  |                         <view>待付款</view>
 | 
 |  |  |                     </view>
 | 
 
 |  |  | 
 |  |  |                                 message.showToast('系统异常') | 
 |  |  |                             } else if (res.data.code === '401' || res.data && res.data.code && | 
 |  |  |                                 res.data.code.startsWith('401')) { | 
 |  |  |                                 console.log('resp', res) | 
 |  |  |                                 message.showToast('登录信息失效') | 
 |  |  |                                 storage.removeItem('token') | 
 |  |  |                                 reject({ | 
 |  |  | 
 |  |  |                                 uni.reLaunch({ | 
 |  |  |                                     url: '/pages/login/supplier-login' | 
 |  |  |                                 }) | 
 |  |  |                                 // #endif | 
 |  |  |  | 
 |  |  |                             } else { | 
 |  |  |                                 if (res.data.data && typeof res.data.data === 'string') { | 
 |  |  | 
 |  |  |                         // store.dispatch('/clearUserInfo') | 
 |  |  |                         // commit('updat') | 
 |  |  |                         // store.commit('updateLogin', false) | 
 |  |  |                         console.log('401',res) | 
 |  |  |                         message.showToast('登录信息失效') | 
 |  |  |                         storage.removeItem('token') | 
 |  |  |                         reject({ | 
 |  |  |                             data: null, | 
 |  |  |                             code: 401, | 
 |  |  |                             msg: 'Unauthorized' | 
 |  |  |                         }) | 
 |  |  |                         // #ifdef H5 | 
 |  |  |                         // #ifdef PUB_CUSTOMER | 
 |  |  |                         uni.reLaunch({ | 
 |  |  |                             url: '/views/pc/login.vue' | 
 |  |  |                             url: '/pages/user/supplier-user' | 
 |  |  |                         }) | 
 |  |  |                         // #endif | 
 |  |  |                         // #ifndef H5 | 
 |  |  |                         // #ifndef PUB_CUSTOMER | 
 |  |  |                         uni.reLaunch({ | 
 |  |  |                             url: '/' | 
 |  |  |                             url: '/pages/login/supplier-login' | 
 |  |  |                         }) | 
 |  |  |                         // #endif | 
 |  |  |  | 
 
 |  |  | 
 |  |  |             state | 
 |  |  |         }, data) { | 
 |  |  |             { | 
 |  |  |                 const resp = await http.request('post', '/api/login/customer' + ((data.phoneNumber || data.tel) ? '/phone' : ''), { | 
 |  |  |                 const resp = await http.request('post', '/api/login/customer' + ((data.phoneNumber || data | 
 |  |  |                     .tel) ? '/phone' : ''), { | 
 |  |  |                     data: { | 
 |  |  |                         username: (data.phoneNumber || data.tel) ? (data.phoneNumber || | 
 |  |  |                             data.tel) : data.username, | 
 |  |  | 
 |  |  |         }, | 
 |  |  |         submitShopping: async function({ | 
 |  |  |             commit, | 
 |  |  |             dispatch | 
 |  |  |             dispatch, | 
 |  |  |             state | 
 |  |  |         }, data) { | 
 |  |  |             if(!state.currentInfo.id){ | 
 |  |  |                 message.showToast('请先登录') | 
 |  |  |                 return | 
 |  |  |             } | 
 |  |  |             //输入要添加多少个 | 
 |  |  |             const res = await message.confirm('', { | 
 |  |  |                 editable: true, | 
 |  |  |                 title: '请输入购买数目' | 
 |  |  |             }) | 
 |  |  |             if (res.content && res.confirm) { | 
 |  |  |                 var t = res.content | 
 |  |  |                 if (!isNaN(parseInt(t)) && t > 0) { | 
 |  |  |                     message.showLoading() | 
 |  |  |             const resp = await http.request('post', '/api/customer/flower/cart/change-num', { | 
 |  |  |                 data: { | 
 |  |  |                     id: data.id, | 
 |  |  |                     num: 1 | 
 |  |  |                             num: parseInt(t) | 
 |  |  |                 } | 
 |  |  |             }) | 
 |  |  |                     message.hideLoading() | 
 |  |  | 					 | 
 |  |  |             if (resp && resp.code === 0) { | 
 |  |  |                 message.showToast('添加购物车成功') | 
 |  |  |                 dispatch('sign_add', 'shopping') | 
 |  |  |                         return resp | 
 |  |  |             } else { | 
 |  |  |  | 
 |  |  |             } | 
 |  |  |             return resp | 
 |  |  |                 } else { | 
 |  |  |                     message.showToast('输入数目需要大于0') | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |  | 
 |  |  |             return { | 
 |  |  |                 code: 1, | 
 |  |  |                 data: {} | 
 |  |  |             } | 
 |  |  |         }, | 
 |  |  |         countShopping: async function({ | 
 |  |  |             commit, | 
 
 |  |  | 
 |  |  |             }, | 
 |  |  |             async submitShopping(dto) { | 
 |  |  |                 //提交到购物车中 | 
 |  |  |                 this.$message.showLoading() | 
 |  |  |                 // this.$message.showLoading() | 
 |  |  |                 await this.$store.dispatch('submitShopping', dto); | 
 |  |  |                 this.$message.hideLoading() | 
 |  |  |                 // this.$message.hideLoading() | 
 |  |  |             }, | 
 |  |  |             select_level(e) { | 
 |  |  |                 this.level_show = false | 
 |  |  | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         .trade-info-container { | 
 |  |  |             background-color: #fff; | 
 |  |  |             border-top-right-radius: 40rpx; | 
 |  |  |             border-top-left-radius: 40rpx; | 
 |  |  |             padding: 30rpx; | 
 |  |  |             overflow: hidden; | 
 |  |  |         .trade-list-container { | 
 |  |  |             min-height: calc(100vh - 300rpx); | 
 |  |  |             overflow-y: scroll; | 
 |  |  |             border-top-right-radius: 40rpx; | 
 |  |  |             border-top-left-radius: 40rpx; | 
 |  |  |             padding: 20rpx; | 
 |  |  |  | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         .trade-info-container { | 
 |  |  |             background-color: #fff; | 
 |  |  |             border-radius: 40rpx; | 
 |  |  |             margin-bottom: 20rpx; | 
 |  |  |             padding: 20rpx; | 
 |  |  |  | 
 |  |  |  | 
 |  |  |             .img { | 
 |  |  |                 width: 124rpx; | 
 
 |  |  | 
 |  |  |         methods: { | 
 |  |  |             toDetail(item) { | 
 |  |  |                 uni.navigateTo({ | 
 |  |  |                     url: '/sub_pages/customer/shop/shop?id=' + (item.id || '') | 
 |  |  |                     url: '/sub_pages/customer/shop/shop?id=' + (item.supplierId || '') | 
 |  |  |                 }) | 
 |  |  |             }, | 
 |  |  |             async clearFollow(item) { | 
 |  |  | 
 |  |  |                     code | 
 |  |  |                 } = await this.$http.request('get', `/api/follow/delete`, { | 
 |  |  |                     params: { | 
 |  |  |                         supplierId: item.id | 
 |  |  |                         supplierId: item.supplierId | 
 |  |  |                     } | 
 |  |  |                 }) | 
 |  |  |                 this.$message.hideLoading() | 
 |  |  |                 if (code === 0) { | 
 |  |  |                     //删除list里的本元素 | 
 |  |  |                     for (var i = 0; i < this.list.length; i++) { | 
 |  |  |                         if (this.list[i].id === item.id) { | 
 |  |  |                             this.list.splice(i, 1) | 
 |  |  |                         } | 
 |  |  |                     } | 
 |  |  |                     // for (var i = 0; i < this.list.length; i++) { | 
 |  |  |                     //     if (this.list[i].id === item.id) { | 
 |  |  |                     //         this.list.splice(i, 1) | 
 |  |  |                     //     } | 
 |  |  |                     // } | 
 |  |  |                     this.refreshList() | 
 |  |  |                 } | 
 |  |  |             }, | 
 |  |  |             getList_after() { | 
 |  |  |                 // uni. | 
 |  |  |             } | 
 |  |  |             // getList_after() { | 
 |  |  |             //     // uni. | 
 |  |  |             // } | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  | </script> | 
 
 |  |  | 
 |  |  |             }, | 
 |  |  |             async submitShopping(dto) { | 
 |  |  |                 //提交到购物车中 | 
 |  |  |                 this.$message.showLoading() | 
 |  |  |                 // this.$message.showLoading() | 
 |  |  |                 await this.$store.dispatch('submitShopping', dto); | 
 |  |  |                 this.$message.hideLoading() | 
 |  |  |                 // this.$message.hideLoading() | 
 |  |  |             }, | 
 |  |  |             select_level(e) { | 
 |  |  |                 this.level_show = false | 
 |  |  | 
 |  |  |                 line-height: 70rpx !important; | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         .trade-info-container { | 
 |  |  |             background-color: #fff; | 
 |  |  |         .trade-list-container { | 
 |  |  |             min-height: calc(100vh - 300rpx); | 
 |  |  |             overflow-y: scroll; | 
 |  |  |             border-top-right-radius: 40rpx; | 
 |  |  |             border-top-left-radius: 40rpx; | 
 |  |  |             padding: 30rpx; | 
 |  |  |             padding: 20rpx; | 
 |  |  | 			 | 
 |  |  |         } | 
 |  |  |         .trade-info-container { | 
 |  |  |             background-color: #fff; | 
 |  |  |             border-radius: 20rpx; | 
 |  |  |             margin-bottom: 20rpx; | 
 |  |  |             padding: 20rpx; | 
 |  |  |             overflow: hidden; | 
 |  |  |             min-height: calc(100vh - 300rpx); | 
 |  |  | 			 | 
 |  |  |             overflow-y: scroll; | 
 |  |  |  | 
 |  |  |             .img { | 
 
 |  |  | 
 |  |  |             },
 | 
 |  |  |             //update 关注
 | 
 |  |  |             async updateGz(type) {
 | 
 |  |  |                 if(!this.currentInfo.id){ | 
 |  |  |                     this.$message.showToast('请先登录') | 
 |  |  |                     return | 
 |  |  |                 }
 | 
 |  |  |                 this.$message.showLoading()
 | 
 |  |  |                 const {
 | 
 |  |  |                     code
 | 
 
 |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |                 <view class="sup-title"> | 
 |  |  |                     <radio :checked="ids.indexOf(item.id)>=0" @click="changeItem(item,'supplier')"></radio> | 
 |  |  |                     <radio :checked="ids.indexOf('supplier@'+item.supplierId)>=0" @click="changeItem(item,'supplier')"> | 
 |  |  |                     </radio> | 
 |  |  |                     {{ item.supplierName || '-' }} | 
 |  |  |                 </view> | 
 |  |  |                 <u-divider></u-divider> | 
 |  |  | 
 |  |  |                                 this.ids.push(item.id) | 
 |  |  |                             } | 
 |  |  |                         }) | 
 |  |  |                         if (this.ids.indexOf('supplier@' + dto.supplierId) < 0) { | 
 |  |  |                             this.ids.push('supplier@' + dto.supplierId) | 
 |  |  |                         } | 
 |  |  |                     }) | 
 |  |  |                     this.checkall = true | 
 |  |  |                 } | 
 |  |  | 
 |  |  |                     } else { | 
 |  |  |                         this.checkall = false | 
 |  |  |                         this.ids.splice(this.ids.indexOf('supplier@' + dto.supplierId), 1) | 
 |  |  |                         console.log('this.ids splice', this.ids) | 
 |  |  |                         dto.flowerList.forEach(item => { | 
 |  |  |                             this.ids.splice(this.ids.indexOf('supplier@' + item.supplierId), 1) | 
 |  |  |                             this.ids.splice(this.ids.indexOf(item.id), 1) | 
 |  |  |                         }) | 
 |  |  |                     } | 
 |  |  |  | 
 |  |  | 
 |  |  |                             } | 
 |  |  |                         } | 
 |  |  |                         if (has) { | 
 |  |  |                             this.ids.push(dto.supplierId) | 
 |  |  |                             if (this.ids.indexOf('supplier@' + dto.supplierId) < 0) { | 
 |  |  |                                 this.ids.push('supplier@' + dto.supplierId) | 
 |  |  |                             this.$forceUpdate() | 
 |  |  |                             } | 
 |  |  |  | 
 |  |  |                         }else{ | 
 |  |  |                             console.log('has',this.ids,dto) | 
 |  |  |                         } | 
 |  |  | 
 |  |  |                         if (this.ids.indexOf(dto.id) >= 0) { | 
 |  |  |                             this.ids.splice(this.ids.indexOf(dto.id), 1) | 
 |  |  |                         } | 
 |  |  |                         //还要删除供应商的id | 
 |  |  |                         if (this.ids.indexOf('supplier@' + dto.supplierId) >= 0) { | 
 |  |  |                             this.ids.splice(this.ids.indexOf('supplier@' + dto.supplierId), 1) | 
 |  |  |                         } | 
 |  |  |  | 
 |  |  |                     } | 
 |  |  |  | 
 |  |  |                 } | 
 
 |  |  | 
 |  |  |             </view>
 | 
 |  |  |             <view class="icon-container">
 | 
 |  |  |                 <image src="../../../static/common/icon-shop.png" @click="toShopping(dto)" class="icon-shop">
 | 
 |  |  |                     <view class="image-shop-number">{{shopnum||''}}</view>
 | 
 |  |  |                     <view class="image-shop-number" v-if="shopnum">{{shopnum||''}}</view>
 | 
 |  |  |                 </image>
 | 
 |  |  | 
 | 
 |  |  |             </view>
 | 
 |  |  | 
 |  |  |                 <view class="label">{{ param.name}}:</view>
 | 
 |  |  |                 <view class="value">{{ param.value || '-'}}</view>
 | 
 |  |  |             </view>
 | 
 |  |  |             <!--      <view class="flex m-t-8">-->
 | 
 |  |  |             <view v-if="!dto.params">
 | 
 |  |  |                 <view class="flex m-t-8">
 | 
 |  |  |                     <view class="label">暂无</view>
 | 
 |  |  |                 </view>
 | 
 |  |  |             </view>
 | 
 |  |  |             <!--      <view class="flex m-t-8">
 | 
 |  |  |             <!--        <view class="label">枝粗:</view>-->
 | 
 |  |  |             <!--        <view class="value">中等粗细</view>-->
 | 
 |  |  |             <!--      </view>-->
 | 
 |  |  | 
 |  |  |         },
 | 
 |  |  |         methods: {
 | 
 |  |  |             async refreshShopNum() {
 | 
 |  |  |                 this.shopnum = await this.$store.dispatch('submitShopping', dto);
 | 
 |  |  |                 this.shopnum = await this.$store.dispatch('countShopping');
 | 
 |  |  |             },
 | 
 |  |  |             async collectItem(dto) {
 | 
 |  |  |                 if (!this.currentInfo.id) {
 | 
 |  |  |                     this.$message.showToast('请先登录')
 | 
 |  |  |                     return
 | 
 |  |  |                 }
 | 
 |  |  |                 await this.$message.confirm(`是否${dto.collection?'移除':'添加到'}收藏`)
 | 
 |  |  |                 this.$message.showLoading()
 | 
 |  |  |                 const {
 | 
 |  |  | 
 |  |  |                             flowerId: dto.id
 | 
 |  |  |                         },
 | 
 |  |  |                         params: {
 | 
 |  |  |                             id: dto.id
 | 
 |  |  |                             flowerId: dto.id
 | 
 |  |  |                         }
 | 
 |  |  |                     })
 | 
 |  |  |                 if (code === 0) {
 | 
 |  |  | 
 |  |  |             },
 | 
 |  |  |             async submitShopping(dto) {
 | 
 |  |  |                 //提交到购物车中
 | 
 |  |  |                 this.$message.showLoading()
 | 
 |  |  |                 await this.$store.dispatch('submitShopping', dto);
 | 
 |  |  |                 this.$message.hideLoading()
 | 
 |  |  |                 // this.$message.showLoading()
 | 
 |  |  |                 const {
 | 
 |  |  |                     code
 | 
 |  |  |                 } = await this.$store.dispatch('submitShopping', dto);
 | 
 |  |  |                 // this.$message.hideLoading()
 | 
 |  |  |                 if (code == 0) {
 | 
 |  |  |                 this.refreshShopNum()
 | 
 |  |  | 
 | 
 |  |  |                 }
 | 
 |  |  |             },
 | 
 |  |  |             async getDetail() {
 | 
 |  |  |                 this.$message.showLoading()
 | 
 |  |  | 
 |  |  | <style lang="scss" scoped>
 | 
 |  |  |     .trade-detail {
 | 
 |  |  |         background-color: #FFFFFF; | 
 |  |  | 
 | 
 |  |  |         .image-shop-number { | 
 |  |  |             width: 30rpx; | 
 |  |  |             height: 30rpx; | 
 |  |  | 
 |  |  |             font-size: 24rpx; | 
 |  |  |         }
 | 
 |  |  | 
 | 
 |  |  | 
 | 
 |  |  |         .trade-info-container {
 | 
 |  |  |             padding: 46rpx 30rpx;
 | 
 |  |  |             border-radius: 40rpx 40rpx 0rpx 0rpx;
 | 
 
 |  |  | 
 |  |  |         },
 | 
 |  |  |         methods: { | 
 |  |  |             async refreshShopNum() { | 
 |  |  |                 this.shoptotal = await this.$store.dispatch('submitShopping', dto); | 
 |  |  |                 this.shoptotal = await this.$store.dispatch('countShopping'); | 
 |  |  |             },
 | 
 |  |  |             async getDetail() {
 | 
 |  |  |                 this.$message.showLoading()
 | 
 
 |  |  | 
 |  |  |                     font-size: 28rpx;
 | 
 |  |  |                     color: #000000;
 | 
 |  |  |                     line-height: 40rpx;
 | 
 |  |  |                     min-height: 80rpx; | 
 |  |  |                     text-align:center;
 | 
 |  |  |                 }
 | 
 |  |  | 
 | 
 |  |  |                 .desc {
 | 
 |  |  | 
 |  |  |                     font-size: 24rpx;
 | 
 |  |  |                     color: #CF0000;
 | 
 |  |  |                     line-height: 34rpx;
 | 
 |  |  |                     text-align: left;
 | 
 |  |  |                     text-align: center;
 | 
 |  |  |                 }
 | 
 |  |  | 
 | 
 |  |  | 
 | 
 
 |  |  | 
 |  |  |  | 
 |  |  |         }, | 
 |  |  |         onReachBottom() { | 
 |  |  |             this.page.current += 1 | 
 |  |  |             this.getMore() | 
 |  |  |         }, | 
 |  |  |         async onPullDownRefresh() { | 
 
 |  |  | 
 |  |  |                     </view>
 | 
 |  |  |                     <u-divider></u-divider>
 | 
 |  |  |                     <view class="form">
 | 
 |  |  |                         <view class="flex"> | 
 |  |  |                         <view class="form-item">
 | 
 |  |  |                             <view class="form-item-label">分类</view>
 | 
 |  |  |                             <view class="form-item-value">{{ item.categoryStr || '-' }}</view>
 | 
 |  |  | 
 |  |  |                             <view class="form-item-label">规格</view>
 | 
 |  |  |                             <view class="form-item-value">{{ item.unit || '-' }}</view>
 | 
 |  |  |                         </view>
 | 
 |  |  |                         </view>
 | 
 |  |  |                         <view class="flex"> | 
 |  |  |                         <view class="form-item">
 | 
 |  |  |                             <view class="form-item-label">规格</view>
 | 
 |  |  |                             <view class="form-item-value">{{ item.unit || '-' }}</view>
 | 
 |  |  | 
 |  |  |                             <view class="form-item-label">重量</view>
 | 
 |  |  |                             <view class="form-item-value">{{ item.weight || '-' }}</view>
 | 
 |  |  |                         </view>
 | 
 |  |  |                         </view>
 | 
 |  |  |                         <view class="flex"> | 
 |  |  |                         <view class="form-item">
 | 
 |  |  |                             <view class="form-item-label">颜色</view>
 | 
 |  |  |                             <view class="form-item-value">{{ item.color || '-' }}</view>
 | 
 |  |  | 
 |  |  |                             <view class="form-item-label">级别</view>
 | 
 |  |  |                             <view class="form-item-value">{{ item.levelStr || '-' }}</view>
 | 
 |  |  |                         </view>
 | 
 |  |  |                         </view>
 | 
 |  |  |                         <view class="flex"> | 
 |  |  |                         <view class="form-item">
 | 
 |  |  |                             <view class="form-item-label">供应商价格</view>
 | 
 |  |  |                             <view class="form-item-value">¥{{ item.price || '-' }}</view>
 | 
 |  |  | 
 |  |  |                             <view class="form-item-label">加价金额</view>
 | 
 |  |  |                             <view class="form-item-value">{{ item.fee || '-' }}</view>
 | 
 |  |  |                         </view>
 | 
 |  |  |                         <view class="form-item">
 | 
 |  |  |                             <view class="form-item-label">审核时间</view>
 | 
 |  |  |                             <view class="form-item-value">{{ item.auditTime || '-' }}</view>
 | 
 |  |  |                         </view>
 | 
 |  |  |                         <view class="form-item">
 | 
 |  |  |                             <view class="form-item-label">供应商名称</view>
 | 
 |  |  |                             <view class="form-item-value">{{ item.supplierName || '-' }}</view>
 | 
 |  |  |                         </view>
 | 
 |  |  |                         <view class="form-item">
 | 
 |  |  |                             <view class="form-item-label">审核时间</view>
 | 
 |  |  |                             <view class="form-item-value">{{ item.auditTime || '-' }}</view>
 | 
 |  |  |                         </view>
 | 
 |  |  | 						 | 
 |  |  |                     </view>
 | 
 |  |  |                 </view>
 | 
 |  |  |             </view>
 | 
 |  |  | 
 |  |  | 
 | 
 |  |  |         },
 | 
 |  |  |         onReachBottom() {
 | 
 |  |  |             this.page.current += 1
 | 
 |  |  |             this.getMore()
 | 
 |  |  |         },
 | 
 |  |  |         async onPullDownRefresh() {
 | 
 |  |  | 
 |  |  |                         // padding-top: 4rpx;
 | 
 |  |  |                         padding-bottom: 0rpx;
 | 
 |  |  |                         border-bottom: none;
 | 
 |  |  |                         min-width: 35%;
 | 
 |  |  |                         max-width: 50%;
 | 
 |  |  |                         // min-width: 35%;
 | 
 |  |  |                         // max-width: 50%; | 
 |  |  |                         display: flex;
 | 
 |  |  |                         flex: 1;
 | 
 |  |  | 
 | 
 |  |  |                         .form-item-label {}
 | 
 
 |  |  | 
 |  |  |  | 
 |  |  |   }, | 
 |  |  |   onReachBottom() { | 
 |  |  |     this.page.current += 1 | 
 |  |  |     this.getMore() | 
 |  |  |   }, | 
 |  |  |   async onPullDownRefresh() { | 
 
 |  |  | 
 |  |  |                     }
 | 
 |  |  |                 }
 | 
 |  |  |             },
 | 
 |  |  |             mapCategoryTree(node, arr) {
 | 
 |  |  |             mapCategoryTree(node, arr,parentCheckTrue=false) {
 | 
 |  |  |                 var has = true
 | 
 |  |  |                 if (arr) {
 | 
 |  |  |                     var hasTrue = false
 | 
 |  |  | 
 |  |  |                         has = true
 | 
 |  |  |                         if (this.columns_categorys_search) {
 | 
 |  |  |                             has = false
 | 
 |  |  |                         } | 
 |  |  |                         if(parentCheckTrue){ | 
 |  |  |                             has = true | 
 |  |  |                         }
 | 
 |  |  |                         var tmp = {
 | 
 |  |  |                             ...item,
 | 
 |  |  | 
 |  |  |                         // }
 | 
 |  |  |                         this.columns_categorys_dict['@' + item.id] = item
 | 
 |  |  |                         if (item.children && item.children.length > 0) {
 | 
 |  |  |                             //如果上级已经有了,下级都包含
 | 
 |  |  |                             tmp.children = []
 | 
 |  |  |                             var childrenhas = this.mapCategoryTree(tmp.children, item.children)
 | 
 |  |  |                             var childrenhas = this.mapCategoryTree(tmp.children, item.children,has) | 
 |  |  |                             if (childrenhas) {
 | 
 |  |  |                                 has = true
 | 
 |  |  |                                 hasTrue = true
 | 
 |  |  |                             }
 | 
 |  |  | 
 | 
 |  |  |                         } else {
 | 
 |  |  |                             tmp.children = undefined
 | 
 |  |  |                         }
 | 
 |  |  | 
 |  |  |         // height: 100px;
 | 
 |  |  | 
 | 
 |  |  |         .label {
 | 
 |  |  |             width: 300rpx;
 | 
 |  |  |             width: 240rpx;
 | 
 |  |  |             line-height: 60px;
 | 
 |  |  |             min-width: 240rpx;
 | 
 |  |  | 
 | 
 |  |  |         }
 | 
 |  |  | 
 | 
 
 |  |  | 
 |  |  |             </view>
 | 
 |  |  | 
 | 
 |  |  |         </view>
 | 
 |  |  | 
 | 
 |  |  |         <view class="p15" style="min-height: calc(100vh - 160rpx);">
 | 
 |  |  |         <view class="p15" style="min-height: calc(100vh - 500rpx);">
 | 
 |  |  |             <no-data v-if="!list||list.length==0" style="width: 100%;"></no-data>
 | 
 |  |  |             <view v-for="(item,index) in list" :key="index" class="m-b-24 flow-manage-list">
 | 
 |  |  |                 <view class="flow-manage-list-item">
 | 
 |  |  | 
 |  |  |         async onLoad(options) {
 | 
 |  |  |             this.type = options.type || 'all'
 | 
 |  |  |             var title = ''
 | 
 |  |  |             this.page.size = 5
 | 
 |  |  |             //todo 根据type切换查询条件
 | 
 |  |  |             if (this.type === 'delete') {
 | 
 |  |  |                 this.listApi = '/api/supplier/flower/list/rc'
 | 
 |  |  | 
 |  |  |             this.getList()
 | 
 |  |  |         },
 | 
 |  |  |         onReachBottom() {
 | 
 |  |  |             this.page.current += 1
 | 
 |  |  |             console.log('onReachBottom')
 | 
 |  |  |             this.getMore()
 | 
 |  |  |         },
 | 
 |  |  |         async onPullDownRefresh() {
 | 
 |  |  | 
 |  |  | 
 | 
 |  |  | <style lang="scss" scoped>
 | 
 |  |  |     .flow-manage {
 | 
 |  |  |         overflow-y: scroll;
 | 
 |  |  | 
 | 
 |  |  |         // min-height: ;
 | 
 |  |  |         .flow-manage-list {
 | 
 |  |  |             // padding: 20rpx 30rpx;
 | 
 |  |  |             padding: 22rpx 22rpx 20rpx 22rpx;
 | 
 
 |  |  | 
 |  |  |  | 
 |  |  |         }, | 
 |  |  |         onReachBottom() { | 
 |  |  |             this.page.current += 1 | 
 |  |  |             this.getMore() | 
 |  |  |         }, | 
 |  |  |         async onPullDownRefresh() { |