lion 2 years ago
parent 783e420553
commit 4b1d0f7525

@ -209,7 +209,7 @@
} else { } else {
// //
uni.requestSubscribeMessage({ uni.requestSubscribeMessage({
tmplIds: ['gPP22-SXuJmK9ffJZTNOSdq56Q2RmD2Qdg8ntteAO-Y'], tmplIds: ['12MYVOc27cEbWbBMgdfDqtNkvu4z81vRV2ZhiB755L0'],
success(res) { success(res) {
uni.showToast({ uni.showToast({
title: '订阅成功' title: '订阅成功'

@ -594,7 +594,6 @@
m.checked = false m.checked = false
} }
that.common_user = res; that.common_user = res;
console.log(that.common_user)
}, },
utilFail: function(res) { utilFail: function(res) {
@ -668,7 +667,6 @@
this.util.request({ this.util.request({
api: '/api/mobile/visit/introduce', api: '/api/mobile/visit/introduce',
utilSuccess: function(res) { utilSuccess: function(res) {
console.log(res);
that.info = res; that.info = res;
that.notice[0].content = (that.type == 'user' ? res.person_notice : res.team_notice) that.notice[0].content = (that.type == 'user' ? res.person_notice : res.team_notice)
that.notice[0].content = that.notice[0].content.replace(/\<p/gi, "<p class='richp'"); that.notice[0].content = that.notice[0].content.replace(/\<p/gi, "<p class='richp'");
@ -687,9 +685,9 @@
this.notice[type].content = this.notice[type].content.replace("@host@", this.util.HOST); this.notice[type].content = this.notice[type].content.replace("@host@", this.util.HOST);
this.currentNotice = this.notice[type]; this.currentNotice = this.notice[type];
}, },
submitOrder() { submitOrder() {
console.log(this.form); console.log(this.form)
// return return
this.form.date = this.currentDate.date; this.form.date = this.currentDate.date;
this.form.rule_id = this.currentTime.id; this.form.rule_id = this.currentTime.id;
// if(this.specialid){ // if(this.specialid){
@ -1013,7 +1011,10 @@
this.$forceUpdate(); this.$forceUpdate();
}, },
handleSelectTime(index) { handleSelectTime(index) {
var mod = this.currentDate.rules[index]; var mod = this.currentDate.rules[index];
if (!mod.isCanbook) {
return false
}
if (mod.remain_count == 0) { if (mod.remain_count == 0) {
this.util.toast("该时段已不可预约"); this.util.toast("该时段已不可预约");
return false return false
@ -1104,8 +1105,10 @@
that.currentTime = {}; that.currentTime = {};
let isDefault = false; let isDefault = false;
for (var mod of rules) { for (var mod of rules) {
mod.checked = false; mod.checked = false;
mod.endtime = that.currentDate.date + " " + mod.end_time;
var isCanbook = that.$moment(nt).isBefore(mod.endtime);
mod.isCanbook = isCanbook;
if (that.bcurrentTime) { if (that.bcurrentTime) {
if (that.bcurrentTime.id == mod.id) { if (that.bcurrentTime.id == mod.id) {
mod.checked = true; mod.checked = true;
@ -1113,9 +1116,7 @@
} }
} else { } else {
mod.endtime = that.currentDate.date + " " + mod.end_time;
var isCanbook = that.$moment(nt).isBefore(mod.endtime);
mod.isCanbook = isCanbook;
if (!isDefault && mod.remain_count > 0 && isCanbook) { if (!isDefault && mod.remain_count > 0 && isCanbook) {
isDefault = true; isDefault = true;
mod.checked = true; mod.checked = true;
@ -1132,7 +1133,6 @@
openAdd(index) { openAdd(index) {
this.formUser = this.$options.data().formUser; this.formUser = this.$options.data().formUser;
if (index || index == 0) { if (index || index == 0) {
console.log(index)
this.editIndex = index; this.editIndex = index;
let r = Object.assign(this.formUser, this.form.details_list[index]); let r = Object.assign(this.formUser, this.form.details_list[index]);
} else } else

@ -1,7 +1,9 @@
import md5 from "./md5.min"; import md5 from "./md5.min";
const HOSTARR = { const HOSTARR = {
'development':'https://gb-test.ali251.langye.net', // 'development':'https://gb-test.ali251.langye.net',
'production': 'https://gb-test.ali251.langye.net', // 'production': 'https://gb-test.ali251.langye.net',
'development':'https://gbyuyue.szgmbwg.org.cn',
'production': 'https://gbyuyue.szgmbwg.org.cn',
// https://gbyuyue.szgmbwg.org.cn/ // https://gbyuyue.szgmbwg.org.cn/
}; // 审核状态 }; // 审核状态

Loading…
Cancel
Save