unknown 3 months ago
parent
commit
09c3f19632
  1. 2
      config/site.config.js
  2. 4
      manifest.json
  3. 10
      pages/tabbar/learnCar/comp/subject2.vue
  4. 11
      pages/tabbar/learnCar/comp/subject3.vue

2
config/site.config.js

@ -2,7 +2,7 @@ const VUE_APP_PLATFORM = process.env.VUE_APP_PLATFORM;
// localIp = false
module.exports = {
H5_API: VUE_APP_PLATFORM === 'h5' ? '/api' : '',//h5代理
WX_API: VUE_APP_PLATFORM === 'h5' ? '/' : 'http://123.6.232.1:8099/',//非代理地址 不要忘记加/
WX_API: VUE_APP_PLATFORM === 'h5' ? '/' : 'http://www.lyjppt.com/',//非代理地址 不要忘记加/
website: 'http://192.168.1.37',
httpPrefix: 'app-api/',
imgUrl: 'https://jiangxijiakao-1.oss-cn-hangzhou.aliyuncs.com/defaultImages/app/bigImg/',

4
manifest.json

@ -226,8 +226,8 @@
"disableHostCheck" : true,
"proxy" : {
"/api" : {
// "target" : "http://192.168.1.43:8318/",
"target" : "http://123.6.232.1:8099/",
"target" : "http://www.lyjppt.com/",
// "target" : "http://123.6.232.1:8099/",
"changeOrigin" : true,
"secure" : true,
"pathRewrite" : {

10
pages/tabbar/learnCar/comp/subject2.vue

@ -8,7 +8,7 @@
<view class="flex-b">
<view class="lab">实操预约</view>
<view class="link-arrow"
@click="$goPage('/pages/carEntry/operaAppointment/operaAppointment?subject=2')">
@click="$u.debounce(goAppointment, 800)">
<view class="txt">去预约</view>
<u-icon name="arrow-right" color="#3776FF" :size="16"></u-icon>
</view>
@ -158,6 +158,14 @@
}
},
methods: {
//
async goAppointment() {
if(!this.vuex_userInfo.coachId) {
await this.$store.dispatch('getUserInfo')
if(!this.vuex_userInfo.coachId) return this.$u.toast('你还没有绑定教练,请联系驾校处理')
}
this.$goPage('/pages/carEntry/operaAppointment/operaAppointment?subject=2')
},
changeStep(type) {
this.showAppointment = false, //
this.showAppointmentExam = false, //

11
pages/tabbar/learnCar/comp/subject3.vue

@ -7,7 +7,7 @@
<view class="card mt20" v-if="vuex_userInfo.trainProcess">
<view class="flex-b" >
<view class="lab">实操预约</view>
<view class="link-arrow" @click="$goPage('/pages/carEntry/operaAppointment/operaAppointment?subject=3')">
<view class="link-arrow" @click="$u.debounce(goAppointment, 800)">
<view class="txt">去预约</view>
<u-icon name="arrow-right" color="#3776FF" :size="16"></u-icon>
</view>
@ -131,6 +131,14 @@
}
},
methods: {
//
async goAppointment() {
if(!this.vuex_userInfo.coachId) {
await this.$store.dispatch('getUserInfo')
if(!this.vuex_userInfo.coachId) return this.$u.toast('你还没有绑定教练,请联系驾校处理')
}
this.$goPage('/pages/carEntry/operaAppointment/operaAppointment?subject=3')
},
changeStep(type) {
this.showAppointment = false,//
this.showAppointmentExam = false,//
@ -174,4 +182,5 @@
<style lang="scss" scoped>
@import './comp.scss';
</style>
Loading…
Cancel
Save