更新修改

master
lion 1 year ago
parent 2ca9e9d649
commit e8c32017ce

@ -1,14 +1,16 @@
const mode = 'production'; //devLocal本地测试、devOnline线上测试、production生产环境 const mode = 'production'; //devLocal本地测试、devOnline线上测试、production生产环境
let ROOTPATH = ''; //域名 let ROOTPATH = ''; //域名
// let baseUrl = "https://suzhoukeji-test.ali251.langye.net"
let baseUrl = "https://wx.sstbc.com"
switch (mode) { switch (mode) {
case 'devLocal': case 'devLocal':
ROOTPATH = "https://suzhoukeji-test.ali251.langye.net" ROOTPATH = baseUrl
break; break;
case 'devOnline': case 'devOnline':
ROOTPATH = "https://suzhoukeji-test.ali251.langye.net" ROOTPATH = baseUrl
break; break;
case 'production': case 'production':
ROOTPATH = "https://suzhoukeji-test.ali251.langye.net" ROOTPATH = baseUrl
break; break;
default: default:
throw new Error('未配置环境'); throw new Error('未配置环境');

@ -389,7 +389,7 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.w-select { .w-select {
--select-wrap-width: 200px; --select-wrap-width: 300px;
--select-wrap-height: 30px; --select-wrap-height: 30px;
--select-border-radius: 4px; --select-border-radius: 4px;
// --select-border: 1px solid #dcdfe6; // --select-border: 1px solid #dcdfe6;

@ -161,10 +161,10 @@
}) })
}, },
toUrl(type) { toUrl(type) {
if (!this.is_schoolmate) { // if (!this.is_schoolmate) {
this.base.toast("您还不是校友,还不能享有该权益") // this.base.toast("")
return // return
} // }
if (!this.can_appointment) { if (!this.can_appointment) {
this.base.toast("您当前没有可预约次数") this.base.toast("您当前没有可预约次数")
return return

@ -122,7 +122,8 @@
}, },
data() { data() {
return { return {
dateShow: false, dateShow: false,
isLocked:false,
showTips: false, showTips: false,
confirmTips: false, confirmTips: false,
hMin: 0, hMin: 0,
@ -358,14 +359,11 @@
// }) // })
this.$refs.uForm.validate(valid => { this.$refs.uForm.validate(valid => {
if (valid) { if (valid) {
if(!this.confirmTips){
this.showTips = true
return
}
start_time = this.form.date + ' ' + this.form.start_time + ':00' start_time = this.form.date + ' ' + this.form.start_time + ':00'
end_time = this.form.date + ' ' + this.form.end_time + ':00' end_time = this.form.date + ' ' + this.form.end_time + ':00'
this.form.accompany_total = this.form.accompany.length this.form.accompany_total = this.form.accompany.length
console.log("accompany_total", this.plateList, this.form) console.log("accompany_total", this.plateList, this.form.accompany_total)
let _plate = [] let _plate = []
if (this.plateList.length > 0) { if (this.plateList.length > 0) {
if (this.plateList.length > this.form.accompany_total + 1) { if (this.plateList.length > this.form.accompany_total + 1) {
@ -378,14 +376,21 @@
} }
this.form.plate = _plate.join(',') this.form.plate = _plate.join(',')
console.log("plate", this.form) console.log("plate", this.form)
// return // return
if(!this.confirmTips){
this.showTips = true
return
}
if(this.isLocked){
return
}
this.isLocked = true
this.$u.api.scheduleSave({ this.$u.api.scheduleSave({
...this.form, ...this.form,
start_time: start_time, start_time: start_time,
end_time: end_time end_time: end_time
}).then(res => { }).then(res => {
this.newsSubscription() this.newsSubscription()
}) })
} else { } else {
console.log('验证失败'); console.log('验证失败');

@ -3,7 +3,7 @@
<image class="cbg" :src="base.imgHost('common_bg.png')"></image> <image class="cbg" :src="base.imgHost('common_bg.png')"></image>
<view class="search"> <view class="search">
<!-- <view class="select"> --> <!-- <view class="select"> -->
<w-select width="220rpx" :showClose="false" style="margin-left: 20rpx;" v-model="chooseValue" :list="selectList" valueName="name" <w-select width="250rpx" :showClose="false" style="margin-left: 20rpx;" v-model="chooseValue" :list="selectList" valueName="name"
keyName="id" @change="changeMonth"> keyName="id" @change="changeMonth">
</w-select> </w-select>
<!-- </view> --> <!-- </view> -->

@ -18,8 +18,8 @@
<view class="wrap-status-btn" v-if="courseInfo.is_fee===1 && info.fee_status!=1"> <view class="wrap-status-btn" v-if="courseInfo.is_fee===1 && info.fee_status!=1">
<view @click="toPay"></view> <view @click="toPay"></view>
</view> </view>
<view class="wrap-status-btn" @click="showCancel = true"> <view style="justify-content: center;color: #999;" class="wrap-status-btn" v-if="info.fee_status!=1" @click="showCancel = true">
<view>我要放弃</view> 我要放弃
</view> </view>
</view> </view>
<view v-else-if="info.status===2"> <view v-else-if="info.status===2">

Loading…
Cancel
Save