diff --git a/config/app.js b/config/app.js index e76d97b..6a45260 100644 --- a/config/app.js +++ b/config/app.js @@ -6,13 +6,13 @@ let VUE_APP_WS_URL = `ws://${location.hostname}?type=user` let openPlantGrass = '-openPlantGrass-' // 网络接口修改此字符 小程序域名要求https -let httpApi = 'https://bt.test.cdlfjy.com/' // 开发 -// let httpApi = 'https://mp.scwmbh.cn/' // 生产 +// let httpApi = 'https://bt.test.cdlfjy.com/' // 开发 +let httpApi = 'https://mp.scwmbh.cn/' // 生产 // 聊天接口修改此字符 小程序聊天要求wss 例如: -let wsApi = 'wss://bt.test.cdlfjy.com' -// let wsApi = 'wss://mp.scwmbh.cn' +// let wsApi = 'wss://bt.test.cdlfjy.com' +let wsApi = 'wss://mp.scwmbh.cn' module.exports = { diff --git a/pages.json b/pages.json index e301aad..96e368a 100644 --- a/pages.json +++ b/pages.json @@ -239,7 +239,7 @@ { "path": "user_coupon/index", "style": { - "navigationBarTitleText": "我的优惠券" + "navigationBarTitleText": "我的提货券" } }, { @@ -584,7 +584,7 @@ { "path": "write_off/index", "style": { - "navigationBarTitleText": "优惠券核销" + "navigationBarTitleText": "提货券核销" } } ] diff --git a/pages/admin/business/index.vue b/pages/admin/business/index.vue index 1253e61..960b000 100644 --- a/pages/admin/business/index.vue +++ b/pages/admin/business/index.vue @@ -75,7 +75,7 @@ export default { if(merchantInfo.merchant_type == 1){ // 酒道馆核销用户优惠券 list.push({ - title: '优惠券核销', + title: '提货券核销', url: '/pages/users/write_off/index', icon: 'iconfont icon-dingdanhexiao' }); diff --git a/pages/admin/business/login.vue b/pages/admin/business/login.vue index 09e0c33..32adbe7 100644 --- a/pages/admin/business/login.vue +++ b/pages/admin/business/login.vue @@ -16,9 +16,10 @@ {{ item.mer_name || '' }} - + 登录 + 已过期 @@ -73,6 +74,9 @@ export default { account: '', password: '' }, + // 当前时间戳 + intervalId: '', + current_timestamp: 0, } }, computed: { @@ -94,6 +98,17 @@ export default { // 未登录 初始化 this.init(); }, + onShow() { + let _this = this; + _this.intervalId = setInterval(function () { + const now = new Date(); + _this.current_timestamp = Math.ceil(now.getTime() / 1000) + }, 1000); // 每秒更新一次时间 + }, + onUnload() { + // 页面销毁时清除定时器 + if (this.intervalId) clearInterval(this.intervalId); + }, onReady() { this.login_bg = `${HTTP_REQUEST_URL}/static/images/mer/mer_login_bg.png`; this.list_bg = `${HTTP_REQUEST_URL}/static/images/mer/mer_login_list.png`; @@ -169,6 +184,10 @@ export default {