| | |
| | | if (this.dto.statusBackend === 'PENDING' || this.dto.status === 'PENDING') { |
| | | |
| | | |
| | | this.timer = setInterval(() => { |
| | | this.timer = setInterval(async () => { |
| | | //倒计时,修改成 |
| | | // var nowdate = new Date().getTime() - 1000 * 60 * 15 |
| | | let res = await this.$http.request('get', `/api/order/time/now`, { |
| | | params: {} |
| | | }) |
| | | let serverTime=res.data; |
| | | |
| | | //倒计时 |
| | | var nowdate = new Date().getTime() - 1000 * 60 * 5 |
| | | var nowdate = serverTime - 1000 * 60 * 15 |
| | | |
| | | var change = false |
| | | |
| | | //计算倒计时 |
| | |
| | | } else { |
| | | tt = alltime |
| | | } |
| | | this.dto.bctime = `0${parseInt(alltime / 60)}:${tt<10?'0':''}${tt}` |
| | | // this.dto.bctime = `0${parseInt(alltime / 60)}:${tt<10?'0':''}${tt}` |
| | | this.dto.bctime = `${parseInt(alltime / 60) < 10 ? '0' : ''}${parseInt(alltime / 60)}:${tt < 10 ? '0' : ''}${tt}` |
| | | |
| | | change = true |
| | | |
| | | } |
| | |
| | | }) |
| | | |
| | | }, |
| | | |
| | | methods: { |
| | | |
| | | // 商品评论 |
| | | commentButtonClick(){ |
| | | // 跳转的到评论列表 |
| | | uni.navigateTo({ |
| | | url: '/pages/order/comment/order-comment?orderId='+this.id |
| | | }) |
| | | }, |
| | | openbrand(item) { |
| | | //也要判断一下是否重复进入 |
| | | //判断堆栈,如果是店铺,就直接返回 |
| | |
| | | // }] |
| | | } |
| | | if (this.dto.statusBackend === 'PENDING') { |
| | | let res = await this.$http.request('get', `/api/order/time/now`, { |
| | | params: {} |
| | | }) |
| | | let serverTime=res.data; |
| | | //先判断要不要字节变成已取消 |
| | | var nowdate = new Date().getTime() - 1000 * 60 * 5 |
| | | var nowdate = serverTime - 1000 * 60 * 15 |
| | | // var nowdate = new Date().getTime() - 1000 * 60 * 5 |
| | | var diff = new Date(this.dto.createTime).getTime() - nowdate |
| | | |
| | | if (diff <= 2000 && true) { |
| | |
| | | async callTel() { |
| | | await this.$message.confirm('是否拨打客服电话') |
| | | uni.makePhoneCall({ |
| | | phoneNumber: '15974805814' |
| | | phoneNumber: '19288780072' |
| | | }); |
| | | }, |
| | | |
| | | async getTelNum(){ |
| | | this.$http.request('get', '/api/code/value', { |
| | | params: { |
| | | type: 'customer_service_hotline' |
| | | } |
| | | }).then(res => { |
| | | var data = res.data; |
| | | |
| | | console.log(data) |
| | | |
| | | }) |
| | | }, |
| | | |
| | | async getItemList() { |
| | | this.$message.showLoading() |
| | | const { |
| | |
| | | this.$message.hideLoading() |
| | | if (code === 0) { |
| | | this.getDetail() |
| | | this.$store.dispatch('getCurrentInfo') |
| | | this.$message.showToast('收货成功') |
| | | } |
| | | } |
| | | |
| | |
| | | <view v-for="(item,index) of list" :key="index"> |
| | | <view class="flower-info m-b-20 m-t-12 br-4" |
| | | v-if="!showSales||showSales&&(submitForm.orderItemId == item.id)"> |
| | | <view class="supplier-name " @click.stop="openbrand(item)"> |
| | | <image class="icon-dp" src="/static/common/icon-dp.png"></image> |
| | | {{ item.supplierName || ''}} |
| | | <view class="supplier-name " > |
| | | <view @click.stop="openbrand(item)" style="display: inline-block;"> |
| | | <image class="icon-dp br-4" src="/static/common/icon-dp.png"></image> |
| | | {{ item.supplierName|| '' }} > |
| | | </view> |
| | | </view> |
| | | <!-- submitForm.orderItemId:{{submitForm.orderItemId}} --> |
| | | <!-- itemId:{{item.id}} --> |
| | |
| | | <!-- @click="changeSalesOrderItem(item)" --> |
| | | <!-- :checked="submitForm.orderItems.indexOf(item.id)>=0" --> |
| | | |
| | | <image class="flower-img img100 br-4 m-r-6" :src="item.flowerCover" |
| | | @click="previewImg(item.flowerCover)"> |
| | | </image> |
| | | <!-- <image class="flower-img img100 br-4 m-r-6" :src="item.flowerCover" @click="previewImg(item.flowerCover)"></image> --> |
| | | <image class="flower-img img100 br-4 m-r-6" :src="item.flowerCover" @click="toFlowerDetail(item)"></image> |
| | | <view class="flex1" @click.stop="toFlowerDetail(item)"> |
| | | <view class=" flex"> |
| | | <view class="title"><span class="level">{{ item.flowerCategory || ''}}</span><span |
| | |
| | | <view class="flex m-t-12"> |
| | | <view class="flex1 w-fit m-auto icon-view" @click.stop="callTel"> |
| | | <image src="/static/common/icon-call.png" class="icon icon-call m-r-10 img100"></image> |
| | | 拨打15974805814 |
| | | 拨打19288780072 |
| | | </view> |
| | | <view class="flex1 w-fit m-auto icon-view flex flex-wrap-normal" open-type="contact"> |
| | | <image src="/static/common/icon-wx.png" class="icon icon-call m-t-2 m-r-10 img100"></image> |