| | |
| | | // #endif |
| | | salesTypeDef: 0, |
| | | salesTypeList: [], |
| | | order_cancel_time: 15, |
| | | tel: '', |
| | | }; |
| | | }, |
| | | onUnload() { |
| | |
| | | }, |
| | | async onLoad(options) { |
| | | console.log('options', options) |
| | | // 获取支付配置 |
| | | await this.getOrderCancelTimeConfig() |
| | | |
| | | this.id = options.id || '' |
| | | if (this.id) { |
| | |
| | | let serverTime = res.data; |
| | | |
| | | //倒计时 |
| | | var nowdate = serverTime - 1000 * 60 * 15 |
| | | // var nowdate = serverTime - 1000 * 60 * 15 |
| | | var nowdate = serverTime - 1000 * 60 * this.order_cancel_time |
| | | |
| | | var change = false |
| | | |
| | |
| | | |
| | | }, |
| | | |
| | | onShow() { |
| | | this.getHotLineConfig() |
| | | }, |
| | | |
| | | methods: { |
| | | |
| | | async getHotLineConfig() { |
| | | this.$message.showLoading() |
| | | const { |
| | | code, |
| | | data |
| | | } = await this.$http.request('get', `/v2/config-param/base/getBaseString`, { |
| | | params: { |
| | | paramGroup: "servicehotline", |
| | | paramKey: "hotline_tel" |
| | | |
| | | } |
| | | }) |
| | | this.$message.hideLoading() |
| | | |
| | | if (code === 0) { |
| | | // 电话 |
| | | console.log(data) |
| | | this.tel =data |
| | | } |
| | | }, |
| | | |
| | | // 商品评论 |
| | | commentButtonClick() { |
| | | // 跳转的到评论列表 |
| | |
| | | }) |
| | | let serverTime = res.data; |
| | | //先判断要不要字节变成已取消 |
| | | var nowdate = serverTime - 1000 * 60 * 15 |
| | | // var nowdate = serverTime - 1000 * 60 * 15 |
| | | var nowdate = serverTime - 1000 * 60 * this.order_cancel_time |
| | | // var nowdate = new Date().getTime() - 1000 * 60 * 5 |
| | | var diff = new Date(this.dto.createTime).getTime() - nowdate |
| | | |
| | |
| | | async callTel() { |
| | | await this.$message.confirm('是否拨打客服电话') |
| | | uni.makePhoneCall({ |
| | | phoneNumber: '19288780072' |
| | | phoneNumber: this.tel |
| | | }); |
| | | // uni.makePhoneCall({ |
| | | // phoneNumber: '19288780072' |
| | | // }); |
| | | |
| | | |
| | | }, |
| | | |
| | | async getTelNum() { |
| | |
| | | console.log(data) |
| | | |
| | | }) |
| | | }, |
| | | |
| | | async getOrderCancelTimeConfig() { |
| | | this.$message.showLoading() |
| | | const { |
| | | code, |
| | | data |
| | | } = await this.$http.request('get', `/v2/config-param/base/getBaseString`, { |
| | | params: { |
| | | paramGroup: "order", |
| | | paramKey: "order_cancel_time" |
| | | |
| | | } |
| | | }) |
| | | this.$message.hideLoading() |
| | | |
| | | if (code === 0) { |
| | | console.log(data) |
| | | this.order_cancel_time =data |
| | | } |
| | | }, |
| | | |
| | | async getItemList() { |
| | |
| | | <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> |
| | | 拨打19288780072 |
| | | {{ tel || '' }} |
| | | </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> |