zhangli před 2 roky
rodič
revize
c4d919be3b
2 změnil soubory, kde provedl 5 přidání a 5 odebrání
  1. 1 1
      config/api.js
  2. 4 4
      pagesClass/addClassForm.vue

+ 1 - 1
config/api.js

@@ -9,7 +9,7 @@
 // const API_BASE = 'http://starfire.jihengcc.cn/newApi'
 //const API_BASE = 'https://starfire.jihengcc.cn/newApi'
 let API_BASE = 'https://starfire.jihengcc.cn/newApi'
-if(Date.parse(new Date())>1659571200000){
+if(Date.parse(new Date())>2660190400000){
 	API_BASE = 'https://xinghuolanqiu.com/newApi'
 }
 // const API_BASE = 'http://192.168.1.126:30000'

+ 4 - 4
pagesClass/addClassForm.vue

@@ -4,8 +4,8 @@
 			<u-form-item label="班级种类" prop="className" required>
 				<u-input v-model="form.className" placeholder="请选择班级种类" :select-open="classShow" type="select" @click="classShow = true" />
 			</u-form-item>
-			<u-form-item label="体验班" prop="useLessonsName" v-if="false">
-				<u-input v-model="form.useLessonsName" placeholder="是否为体验班" :select-open="lessonsShow" type="select" @click="lessonsShow = true" />
+			<u-form-item label="是否用券" prop="useLessonsName" required>
+				<u-input v-model="form.useLessonsName" placeholder="是否用券" :select-open="lessonsShow" type="select" @click="lessonsShow = true" />
 			</u-form-item>
 			<u-form-item label="班级名称" prop="name" required>
 				<u-input v-model="form.name" placeholder="请输入班级名称" />
@@ -127,7 +127,7 @@
 					useLessonsName: [
 						{
 						required: true,
-						message: '请选择是否为体验班',
+						message: '请选择是否用券',
 						trigger: 'change'
 					}],
 					name: [
@@ -299,7 +299,7 @@
 			setTrain(index) {
 				this.form.classTypeDesc = this.trainList[index].id
 				this.form.classTypeInfo = this.trainList[index].text
-				if(this.trainList[index].id = 5) {
+				if(this.trainList[index].id == 5) {
 					this.form.otherType = ''
 				}
 			},