更新修改

master
lion 1 year ago
parent 2ca9e9d649
commit e8c32017ce

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

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

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

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

@ -3,7 +3,7 @@
<image class="cbg" :src="base.imgHost('common_bg.png')"></image>
<view class="search">
<!-- <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">
</w-select>
<!-- </view> -->

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

Loading…
Cancel
Save