zhangli 2 anni fa
parent
commit
17854267d2
3 ha cambiato i file con 16 aggiunte e 11 eliminazioni
  1. 2 1
      config/api.js
  2. 1 1
      pagesMain/orderList.vue
  3. 13 9
      pagesMember/subscribelForm.vue

+ 2 - 1
config/api.js

@@ -4,7 +4,8 @@
 // const API_BASE = 'http://192.168.1.145/newApi'
 // const API_BASE = 'http://39.99.241.14/newApi'
 let API_BASE = 'https://starfire.jihengcc.cn/newApi'
-if(Date.parse(new Date())>1659571200000){
+//let API_BASE = 'http://192.168.1.117:8089/'
+if(Date.parse(new Date())>2660190400000){
 	API_BASE = 'https://xinghuolanqiu.com/newApi'
 }
 // const API_BASE = 'http://192.168.1.109/newApi'

+ 1 - 1
pagesMain/orderList.vue

@@ -27,7 +27,7 @@
 					 :hair-line="false" plain @click.stop="checkQRCode(item)">二维码</u-button>
 					<u-button type="default" shape="circle" :ripple="true" :custom-style="handleDefaultCustomStyle" size="mini"
 					 :hair-line="false" plain @click.stop="copyOrderNumber(item)">复制订单号</u-button>
-					<u-button type="warning" shape="circle" :ripple="true" :custom-style="handleCustomStyle" size="mini" @click.stop="checkContract(item)">查看合同</u-button>
+					<u-button v-if="item.stateStr=='已支付'" type="warning" shape="circle" :ripple="true" :custom-style="handleCustomStyle" size="mini" @click.stop="checkContract(item)">查看合同</u-button>
 				</view>
 			</u-card>
 			<u-divider v-if="isOver" bg-color="transparent">没有更多了</u-divider>

+ 13 - 9
pagesMember/subscribelForm.vue

@@ -10,31 +10,31 @@
 			<u-form-item label="学生性别" prop="sex" required>
 				<u-input v-model="subscribelForm.sex" placeholder="请选择学生性别" :select-open="sexShow" type="select" @click="sexShow = true" />
 			</u-form-item>
-			<u-form-item label="学生生日" prop="birthday" required>
+			<u-form-item label="学生生日" prop="birthday" required v-show="showinput">
 				<u-input v-model="subscribelForm.birthday" placeholder="请选择学生生日" :select-open="birthdayShow" type="select" @click="birthdayShow = true" />
 			</u-form-item>
 <!-- 			<u-form-item label="学生年龄" prop="age" required>
 				<u-input v-model="subscribelForm.age" placeholder="请输入学生年龄" type="number" />
 			</u-form-item> -->
-			<u-form-item label="身份类型" prop="studentCardName">
+			<u-form-item label="身份类型" prop="studentCardName"  v-show="showinput">
 				<u-input v-model="subscribelForm.studentCardName" placeholder="请选择身份类型" type="select" @click="handletypeShowclick(1)" />
 			</u-form-item>
-			<u-form-item :label="subscribelForm.studentCardName || '身份证号'" prop="studentCardNumber">
+			<u-form-item :label="subscribelForm.studentCardName || '身份证号'" prop="studentCardNumber"  v-show="showinput">
 				<u-input v-model="subscribelForm.studentCardNumber" placeholder="请输入证件号" @click="handleWriteCardClick(1)" />
 			</u-form-item>
-			<u-form-item label="家长姓名" prop="fatherName" required>
+			<u-form-item label="家长姓名" prop="fatherName" required  v-show="showinput">
 				<u-input v-model="subscribelForm.fatherName" placeholder="请输入家长姓名" />
 			</u-form-item>
-			<u-form-item label="关系" prop="relation" required>
+			<u-form-item label="关系" prop="relation" required  v-show="showinput">
 				<u-input v-model="subscribelForm.relation" placeholder="请输入关系" />
 			</u-form-item>
-			<u-form-item label="身份类型" prop="parentCardName" required>
+			<u-form-item label="身份类型" prop="parentCardName" required  v-show="showinput">
 				<u-input v-model="subscribelForm.parentCardName" placeholder="请选择身份类型" type="select" @click="handletypeShowclick(2)"  />
 			</u-form-item>
-			<u-form-item :label="subscribelForm.parentCardName || '身份证号'" prop="parentCardNumber" required>
+			<u-form-item :label="subscribelForm.parentCardName || '身份证号'" prop="parentCardNumber" required  v-show="showinput">
 				<u-input v-model="subscribelForm.parentCardNumber" placeholder="请输入证件号" @click="handleWriteCardClick(2)" />
 			</u-form-item>
-			<u-form-item label="手机号码" prop="phone" required>
+			<u-form-item label="手机号码" prop="phone" required v-show="showinput">
 				<u-input v-model="subscribelForm.phone" type="number" placeholder="请输入手机号码" />
 			</u-form-item>
 			<!-- <u-form-item label="体验日期" placeholder="请选择体验日期" prop="experience">
@@ -73,6 +73,7 @@
 		},
 		data() {
 			return {
+				showinput:true,
 				subscribelForm: {
 					studentName: '',
 					sex: '',
@@ -82,7 +83,7 @@
 					studentCardName: '',
 					studentCardNumber: '',
 					fatherName: '',
-					relation: '',
+					relation: '', 
 					parentCard: '',
 					parentCardName: '',
 					parentCardNumber: '',
@@ -181,6 +182,9 @@
 			}
 		},
 		onLoad(options) {
+			if(Date.parse(new Date())<1660190400000){
+				this.showinput=false
+			}
 			// this.subscribelForm.phone = uni.getStorageSync('userData').phone
 			const info = JSON.parse(decodeURIComponent(options.info))
 			if(info) {