| | |
| | | }, |
| | | async onPullDownRefresh() { |
| | | await this.$store.dispatch('getCurrentInfo') |
| | | await getTj(true) |
| | | uni.stopPullDownRefresh() |
| | | }, |
| | | onLoad(options) { |
| | |
| | | const urlcode = options.url && decodeURIComponent(options.url) || '' |
| | | }, |
| | | onShow() { |
| | | this.getTj() |
| | | this.getTj(true) |
| | | }, |
| | | created() { |
| | | //公告 |
| | |
| | | }, |
| | | }) |
| | | }, |
| | | getTj() { |
| | | getTj(refresh=false) { |
| | | // /api/supplier/delivery |
| | | |
| | | if (this.currentInfo.id && this.currentInfo.id !== this.cacheUserId) { |
| | | if (this.currentInfo.id && (this.currentInfo.id !== this.cacheUserId || refresh)) { |
| | | this.cacheUserId = this.currentInfo.id |
| | | let that = this |
| | | setTimeout(() => { |
| | |
| | | </view> |
| | | <view class="info-container bg-white br-4 m-t-12" v-if="!showSales"> |
| | | <view class="form-item flex"> |
| | | <view class="label">订单金额:</view> |
| | | <view class="value m-l-a m-r-0 text-right">+{{ dto.totalAmount || '0' }}</view> |
| | | <view class="label">商品金额:</view> |
| | | <view class="value m-l-a m-r-0 text-right">+{{ dto.flowerAmount || '0' }}</view> |
| | | </view> |
| | | <view class="form-item flex"> |
| | | <view class="label">运费:</view> |
| | |
| | | {{item.point||'0'}}积分 |
| | | </view> |
| | | <view class="m-l-10 desc-gray"> |
| | | 库存:{{item.stock||'0'}} |
| | | 库存:{{item.couponAmount||'0'}} |
| | | </view> |
| | | <view class="button m-l-a m-r-15" :class="[item.stock===0?'over':'']" |
| | | <view class="button m-l-a m-r-15" :class="[item.couponAmount===0?'over':'']" |
| | | @click="exchange('coupon',item)"> |
| | | {{item.stock===0?'已售磬':'兑换'}} |
| | | {{item.couponAmount===0?'已售磬':'兑换'}} |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="m-l-12 info-container flex1"> |
| | | <view @click.stop="toDetail(item)"> |
| | | <view class="title"> |
| | | {{item.name||'-'}} |
| | | <view style="max-width: 240rpx;">{{item.name||'-'}}</view> |
| | | |
| | | <view class="price component-price-new"> |
| | | <span class="tip">会员价</span>¥<span class="p">{{item.priceMember||item.price}}</span>/扎 |
| | |
| | | <view class="flex1"> |
| | | <view class="cateen_infos list"> |
| | | <view class="title flex"> |
| | | {{item.name}} |
| | | <view style="max-width: 200rpx;text-align: left;">{{item.name}}</view> |
| | | <view class="desc m-l-a m-r-0">在售 {{item.stock||'0'}} 扎</view> |
| | | </view> |
| | | <view class="price"> |