wangqiang vor 11 Monaten
Ursprung
Commit
2874376255
1 geänderte Dateien mit 16 neuen und 40 gelöschten Zeilen
  1. 16 40
      pages/test/luckyDraw/LuckyDrawEventsDetail.vue

+ 16 - 40
pages/test/luckyDraw/LuckyDrawEventsDetail.vue

@@ -1,8 +1,8 @@
 <template>
 	<view>
 		<view class="">
-			<cu-custom :isBack="true" :backUrl="'/pages/test/luckyDraw/LuckyDrawEvents'" bgColor="bg-gradual-blue">
-				<block slot="backText">返回</block>
+			<cu-custom :isBack="false" :backUrl="'/pages/test/luckyDraw/LuckyDrawEvents'" bgColor="bg-gradual-blue">
+<!--				<block slot="backText">返回</block>-->
 				<block slot="content">活动详情</block>
 			</cu-custom>
 		</view>
@@ -54,7 +54,6 @@
 							{ label: '会计师事务所', value: '会计师事务所' },
 							{ label: '中审分所', value: '中审分所' },
 							{ label: '项目公司', value: '项目公司' },
-							{ label: '咨询公司', value: '咨询公司' },
 							{ label: '其他', value: '其他' }
 						]" ></jp-picker>
 					</u-form-item>
@@ -77,41 +76,6 @@
 						</el-button>
 					</u-form-item>
 				</u--form>
-				<!--<form @submit="formSubmit">
-					<view class="cu-form-group margin-top">
-						<view class="title"><text class="red-color ">* </text>姓名</view>
-						<input style=" margin-top: 30px;"  placeholder="请输入姓名" name="name" v-model="inputForm.name"></input>
-					</view>
-					<view class="cu-form-group ">
-						<view class="title"><text class="red-color ">* </text>公司</view>
-&lt;!&ndash;						<picker @change="changeCompany" :value="companyIndex" :range="companyList">&ndash;&gt;
-&lt;!&ndash;							<view class="picker" >&ndash;&gt;
-&lt;!&ndash;								{{companyIndex > -1 ? companyList[companyIndex] : '请选择'}}&ndash;&gt;
-&lt;!&ndash;							</view>&ndash;&gt;
-&lt;!&ndash;						</picker>&ndash;&gt;
-						<jp-picker v-model="inputForm.companyName" rangeKey="label" rangeValue="value" :range="[
-							{ label: '评估公司', value: '评估公司' },
-							{ label: '会计师事务所', value: '会计师事务所' },
-							{ label: '中审分所', value: '中审分所' },
-							{ label: '项目公司', value: '项目公司' },
-							{ label: '咨询公司', value: '咨询公司' },
-							{ label: '其他', value: '其他' }
-						]" ></jp-picker>
-					</view>
-					<view class="cu-form-group margin-top">
-						<view class="title"><text class="red-color ">* </text>部门</view>
-						<input style=" margin-top: 30px;" placeholder="请输入部门" name="officeName" v-model="inputForm.officeName"></input>
-					</view>
-					<view class="cu-form-group ">
-						<view class="title"><text class="red-color ">* </text>电话号码</view>
-						<input style=" margin-top: 30px;" placeholder="请输入电话号码" name="phone" v-model="inputForm.phone"></input>
-					</view>
-					<view class="margin-top" style="padding-left: 7px; padding-right: 7px;">
-						<button :disabled="isSubmitting" style="width: 100%;" class='cu-btn lg bg-gradual-blue shadow' form-type="submit">
-							{{ isSubmitting ? '提交中...' : '报名' }}
-						</button>
-					</view>
-				</form>-->
 			</view>
 		</view>
 
@@ -125,6 +89,9 @@
 	export default {
 		data() {
 			return {
+				rules: {
+
+				},
 				inputForm: {
 					name: '',
 					officeName: '',
@@ -135,7 +102,7 @@
 				list: [],
 				dataDetail: {},
 				companyList: [
-					'评估公司','会计师事务所','中审分所','项目公司','咨询公司','其他'
+					'评估公司','会计师事务所','中审分所','项目公司','其他'
 				],
 				isSubmitting: false, // 用于控制提交按钮的状态
 				companyIndex: -1
@@ -213,8 +180,17 @@
 								const data = this.luckyDrawMembersService.save(this.inputForm);
 								uni.showToast({ title: data, icon: "success" });
 								uni.navigateTo({
-									url: '/pages/test/luckyDraw/LuckyDrawEvents?is_sucess=200'
+									url: '/pages/test/luckyDraw/LuckyDrawMemberList?eventId='+this.dataDetail.id
 								});
+								//清空表数据
+								this.inputForm.name = ''
+								this.inputForm.officeName = ''
+								this.inputForm.companyName = ''
+								this.inputForm.phone = ''
+								this.inputForm.eventId = ''
+								// 确保 picker 组件正确地被重置
+								// this.$refs.inputForm.resetFields()
+								this.$set(this.inputForm, 'companyName', ' ');
 							} catch (error) {
 								console.error(error);
 							} finally {