| | |
| | | // #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> |
| | |
| | | data() { |
| | | return { |
| | | type: 'customer', |
| | | order_cancel_time:15, |
| | | query: { |
| | | status: '', |
| | | }, |
| | |
| | | |
| | | onShow() { |
| | | // console.log("onshow") |
| | | this.getOrderCancelTimeConfig() |
| | | }, |
| | | onReachBottom() { |
| | | this.getMore() |
| | |
| | | uni.stopPullDownRefresh() |
| | | }, |
| | | methods: { |
| | | |
| | | 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) { |
| | | this.order_cancel_time =data |
| | | } |
| | | }, |
| | | |
| | | changeStatus(item) { |
| | | this.query.status = item.value || ''; |
| | |
| | | let serverTime=res.data; |
| | | |
| | | //倒计时 |
| | | var nowdate = serverTime - 1000 * 60 * 15 |
| | | var nowdate = serverTime - 1000 * 60 * this.order_cancel_time |
| | | // var nowdate = new Date().getTime() - 1000 * 60 * 5 |
| | | var change = false |
| | | for (var item of this.list) { |
| | |
| | | let serverTime=res.data; |
| | | |
| | | //倒计时 |
| | | var nowdate = serverTime - 1000 * 60 * 15 |
| | | var nowdate = serverTime - 1000 * 60 * this.order_cancel_time |
| | | |
| | | // var nowdate = new Date().getTime() - 1000 * 60 * 15 |
| | | var change = false |
| | |
| | | <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> |
| | | {{ tel }} |
| | | {{ 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> |
| | |
| | | |
| | | this.cacheUserId = '' |
| | | this.getTj() |
| | | this.getHotLineConfig() |
| | | |
| | | |
| | | }, |
| | |
| | | } |
| | | // #endif |
| | | |
| | | |
| | | |
| | | }, |
| | | created() { |
| | |
| | | uni.stopPullDownRefresh() |
| | | }, |
| | | 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 |
| | | } |
| | | }, |
| | | switchSubAccount() { |
| | | uni.navigateTo({ |
| | | url: '/sub_pages/supplier/sub-account/sub-account-switch-list' |
| | |
| | | onShow() { |
| | | this.cacheUserId = '' |
| | | this.getTj() |
| | | |
| | | this.getHotLineConfig() |
| | | |
| | | }, |
| | | onLoad(options) { |
| | |
| | | uni.stopPullDownRefresh() |
| | | }, |
| | | 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 |
| | | } |
| | | }, |
| | | async bindPartnerUser(userId, name) { |
| | | // await this.$message.confirm(`确定要绑定${name}合伙人吗?`) |
| | | //调用接口绑定 |
| | |
| | | list: [] |
| | | } |
| | | }, |
| | | onShow() { |
| | | async onShow() { |
| | | // if (this.sign['shopping']) { |
| | | |
| | | // } |
| | | this.init() |
| | | await this.getHotLineConfig() |
| | | }, |
| | | mounted() { |
| | | // this.init() |
| | |
| | | }, |
| | | 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) { |
| | | this.tel =data |
| | | } |
| | | }, |
| | | async callTel() { |
| | | await this.$message.confirm('是否拨打客服电话') |
| | | uni.makePhoneCall({ |
| | |
| | | // } |
| | | // } |
| | | // }, |
| | | onShow() {}, |
| | | onShow() { |
| | | this.getHotLineConfig() |
| | | }, |
| | | onLoad(options) { |
| | | // const url = options.q ? decodeURIComponent(options.q) : ''; |
| | | // const urlcode = options.url && decodeURIComponent(options.url) || '' |
| | |
| | | uni.stopPullDownRefresh() |
| | | }, |
| | | 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 |
| | | } |
| | | }, |
| | | |
| | | async clearlogout() { |
| | | await this.$message.confirm('是否退出登录?') |
| | |
| | | <view class="main-container user-container bg-white"> |
| | | |
| | | <view class="user-utils m-20"> |
| | | |
| | | <u-cell-group v-for="(item,index) in list" :key="index" > |
| | | <u-cell |
| | | title="单元格" |
| | | value="内容" |
| | | label="标签" |
| | | center |
| | | > |
| | | <view slot="title" class="title" >{{ item.name }}</view> |
| | | <view slot="label" > |
| | | <button open-type="contact" class="component-button-contact" @handleContact="handleContact " v-if="item.type==='have' "> |
| | | {{ item.description }} |
| | | <image class="icon-clock m-r-6 m-t-2" :src="item.iconUrl" style="margin-left: 10px;"></image> |
| | | <span class="topic-gray" @click.stop="callTel(item.contact)">{{ item.contact }}</span> |
| | | </button> |
| | | <button open-type="contact" class="component-button-contact" @handleContact="handleContact" v-else> |
| | | {{ item.description }} |
| | | </button> |
| | | </view> |
| | | |
| | | <view slot="value" style="width:60px;"> |
| | | <button open-type="contact" class="component-button-contact" style="display: flex; justify-content: center;" @handleContact="handleContact"> |
| | | <image class="icon-clock m-r-6 m-t-2" :src="item.iconUrl"></image> |
| | | </button> |
| | | <button open-type="contact" class="component-button-contact" style="display: flex; justify-content: center;" @handleContact="handleContact"> |
| | | {{ item.iconContent }} |
| | | </button> |
| | | </view> |
| | | </u-cell> |
| | | </u-cell-group> |
| | | |
| | | <u-cell-group> |
| | | |
| | | <!-- <u-cell-group> |
| | | <u-cell |
| | | title="单元格" |
| | | value="内容" |
| | |
| | | </button> |
| | | </view> |
| | | </u-cell> |
| | | </u-cell-group> |
| | | </u-cell-group> --> |
| | | |
| | | |
| | | </view> |
| | |
| | | }, |
| | | onShow() { |
| | | this.cacheUserId = '' |
| | | this.getHotLineConfig() |
| | | }, |
| | | onLoad(options) { |
| | | async onLoad(options) { |
| | | // const url = options.q ? decodeURIComponent(options.q) : ''; |
| | | // const urlcode = options.url && decodeURIComponent(options.url) || '' |
| | | // #ifdef PUB_CUSTOMER |
| | |
| | | this.bindPartnerUser(options.partnerUserId, options.partnerUserName) |
| | | } |
| | | // #endif |
| | | |
| | | this.listApi="/api/configCustomer/list" |
| | | await this.getList() |
| | | console.log(this.list) |
| | | |
| | | |
| | | }, |
| | |
| | | }, |
| | | 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 |
| | | } |
| | | }, |
| | | |
| | | async bindPartnerUser(userId, name) { |
| | | // await this.$message.confirm(`确定要绑定${name}合伙人吗?`) |
| | |
| | | }, |
| | | |
| | | |
| | | async callTel() { |
| | | async callTel(tel) { |
| | | await this.$message.confirm('是否拨打客服电话') |
| | | uni.makePhoneCall({ |
| | | phoneNumber: this.tel //仅为示例 |
| | | }); |
| | | if(tel){ |
| | | uni.makePhoneCall({ |
| | | phoneNumber: tel //仅为示例 |
| | | }); |
| | | } |
| | | |
| | | // uni.makePhoneCall({ |
| | | // phoneNumber: this.tel //仅为示例 |
| | | // }); |
| | | }, |
| | | } |
| | | } |