<style>
	.activeStar {
		color: red;
		margin-right: 5rpx;
		font-size: 23rpx;
	}
.editpage {
/* background-color: yellow; */
  height: 100vh;
 /* background-color: #f6f6f6; */
  padding: 0rpx 35rpx 35rpx;
  box-sizing: border-box;
}
.signedit {
  width: 680rpx;
 /* height: 100%; */
  background: #ffffff;
  border-radius: 30rpx;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 70rpx 35rpx;
}
.box {
  margin-bottom: 60rpx;
}
.box .name {
  font-size: 28rpx;
  font-family: PingFang SC;
  font-weight: 800;
  color: #1f1f1f;
  margin-bottom: 20rpx;
}
.box .input {
  /* height: 74rpx; */
  border-bottom: 1px solid #747474;
  font-size: 32rpx;
  font-family: PingFang SC;
  font-weight: 500;
  color: #1f1f1f;
  padding-bottom: 15rpx;
}
.btnBox {
  display: flex;
  justify-content: space-between;
}
.btn {
  width: 300rpx;
  height: 88rpx;
  border-radius: 20rpx;
  font-size: 32rpx;
  font-family: PingFang SC;
  font-weight: bold;
  text-align: center;
  line-height: 88rpx;
}
.btn1 {
  background: #f70027;
  color: #ffffff;
}
.btn2 {
  background: #ffffff;
  color: #1f1f1f;
  border: 1px solid #e2e2e2;
}
</style>
<template>
  <view class="editpage">
    <view class="signedit">
      <view class="box">
        <view class="name">姓名</view>
        <input
          type="text"
          class="input"
          v-model="msg.LinkMan"
          placeholder="请输入姓名"
        />
      </view>
      <view class="box">
        <view class="name">公司职务</view>
        <input
          type="text"
          class="input"
          v-model="msg.Post"
          placeholder="请输入公司职务"
        />
      </view>
      <view class="box">
        <view class="name">所属区域</view>
        <input
          type="text"
          class="input"
          v-model="msg.CountryInfo"
          placeholder="请输入所属区域"
        />
      </view>
      <view class="box">
        <view class="name">联系电话</view>
        <input
          type="text"
          class="input"
          v-model="msg.LinkTel"
          placeholder="请输入联系电话"
        />
      </view>
	  <!-- 新增表单 -->
	 <!-- <view class="box">
	    <view class="name">年龄</view>
	    <input
	      type="text"
	      class="input"
	      v-model="msg.Age"
	      placeholder="请输入您的年龄"
	    />
	  </view> -->
	  <view class="box">
	    <view class="name">因疫情防控需要，请如实填写以下内容，感谢你的配合。</view>
	  </view>
	  <view class="box">
	    <view class="name">
			<text class="activeStar">*</text>
			是否完成新冠接种
			</view>
	    <u-radio-group v-model="msg.IsInoculate" :size="36">
	    	<u-radio shape="circle" :name="1">是</u-radio>
	    	<u-radio shape="circle" :name="0">否</u-radio>
	    </u-radio-group>
	  </view>
	  <view class="box">
	    <view class="name">有下列情况人员不能参加本次大会。</view>
	  </view>
	  <view class="box">
	    <view class="name"><text class="activeStar">*</text>
			1、活动前 10 天有港台地区和国外旅居史的人员；</view>
	    <u-radio-group v-model="msg.IsGATLJ" :size="36">
	    	<u-radio shape="circle" :name="1">是</u-radio>
	    	<u-radio shape="circle" :name="0">否</u-radio>
	    </u-radio-group>
		<!-- <input
			style='margin-top: 30rpx;'
		  type="text"
		  class="input"
		  v-model="msg.GATLJRemark"
		  placeholder="备注"
		/> -->
	  </view>
	  <view class="box">
	    <view class="name"><text class="activeStar">*</text>
			2、活动前7天有国内高、中、低风险区所在地区旅居史且未完成相关防控措施前的人员；</view>
	    <u-radio-group v-model="msg.IsZGFX" :size="36">
	    	<u-radio shape="circle" :name="1">是</u-radio>
	    	<u-radio shape="circle" :name="0">否</u-radio>
	    </u-radio-group>
	  		<!-- <input
	  			style='margin-top: 30rpx;'
	  		  type="text"
	  		  class="input"
	  		  v-model="msg.ZGFXRemark"
	  		  placeholder="备注"
	  		/> -->
	  </view>
	  <view class="box">
	    <view class="name"><text class="activeStar">*</text>
			3、无疫情发生县 (市、区) 来 (返) 川人员未按照疫情防控提醒短信落实相关管理措施前；</view>
	    <u-radio-group v-model="msg.IsQZJC" :size="36">
	    	<u-radio shape="circle" :name="1">是</u-radio>
	    	<u-radio shape="circle" :name="0">否</u-radio>
	    </u-radio-group>
	  		<!-- <input
	  			style='margin-top: 30rpx;'
	  		  type="text"
	  		  class="input"
	  		  v-model="msg.QZJCRemark"
	  		  placeholder="备注"
	  		/> -->
	  </view>
	  <view class="box">
	    <view class="name">
			<text class="activeStar">*</text>
			4、接到有关部门关于疫情防控风险提示要求居家隔离医学观察、健康监测或健康码、行程码有异常者；</view>
	    <u-radio-group v-model="msg.IsJJGLGX" :size="36">
	    	<u-radio shape="circle" :name="1">是</u-radio>
	    	<u-radio shape="circle" :name="0">否</u-radio>
	    </u-radio-group>
	  		<!-- <input
	  			style='margin-top: 30rpx;'
	  		  type="text"
	  		  class="input"
	  		  v-model="msg.JJGLGXRemark"
	  		  placeholder="备注"
	  		/> -->
	  </view>
	  <view class="box">
	    <view class="name">
			<text class="activeStar">*</text>
			5、被判定为新冠肺炎病毒感染者 (确诊病例及无症状感 染者) 的密切接触者, 或被判定为新冠肺炎病毒感染者密切接触者的密切接触者；</view>
	    <u-radio-group v-model="msg.IsZYCYJCGL" :size="36">
	    	<u-radio shape="circle" :name="1">是</u-radio>
	    	<u-radio shape="circle" :name="0">否</u-radio>
	    </u-radio-group>
	  		<!-- <input
	  			style='margin-top: 30rpx;'
	  		  type="text"
	  		  class="input"
	  		  v-model="msg.ZYCYJCGLRemark"
	  		  placeholder="备注"
	  		/> -->
	  </view>
	  <view class="box">
	    <view class="name">
			<text class="activeStar">*</text>
			6、已治愈出院, 尚在随访及医学观察期内的确诊病例和已解除集中隔离医学观察的无症状感染者；</view>
	    <u-radio-group v-model="msg.IsMJ" :size="36">
	    	<u-radio shape="circle" :name="1">是</u-radio>
	    	<u-radio shape="circle" :name="0">否</u-radio>
	    </u-radio-group>
	  		<!-- <input
	  			style='margin-top: 30rpx;'
	  		  type="text"
	  		  class="input"
	  		  v-model="msg.MJRemark"
	  		  placeholder="备注"
	  		/> -->
	  </view>
	  <view class="box">
	    <view class="name">
			<text class="activeStar">*</text>
			7、活动前有不适症状或有健康状况异常的人员 (包括发热、乏力、咳嗽、咽痛、打喷嚏、腹泻、呕吐、味觉、嗅觉功能障碍等疑似症状且未排除传染病感染者)。
		</view>
	    <u-radio-group v-model="msg.IsFRGK" :size="36">
	    	<u-radio shape="circle" :name="1">是</u-radio>
	    	<u-radio shape="circle" :name="0">否</u-radio>
	    </u-radio-group>
	  		<!-- <input
	  			style='margin-top: 30rpx;'
	  		  type="text"
	  		  class="input"
	  		  v-model="msg.FRGKRemark"
	  		  placeholder="备注"
	  		/> -->
	  </view>
	  
	 <!-- 新增表单 -->
      <view class="btnBox">
        <view class="btn btn1" @click="submit">确认修改</view>
        <view class="btn btn2" @click="quxiao">取消</view>
      </view>
    </view>
  </view>
</template>
<script>
export default {
  data() {
    return {
      pageTitle: "修改参会人员",
      msg: {
        Id: 0,
        ActivityId: 0,
        LinkMan: "",
        LinkTel: "",
        Post: "",
        CountryInfo: "",
		Age:0,
		IdCard:'',
		IsInoculate:0,
		IsGATLJ:0,
		GATLJRemark:'',
		IsZGFX:0,
		ZGFXRemark:'',
		IsQZJC:0,
		QZJCRemark:'',
		IsJJGLGX:0,
		JJGLGXRemark:'',
		IsZYCYJCGL:0,
		ZYCYJCGLRemark:'',
		IsMJ:0,
		MJRemark:'',
		IsFRGK:0,
		FRGKRemark:''
      },
    };
  },
  created() {},
  mounted() {
    uni.setNavigationBarTitle({
      title: this.pageTitle,
    });
    uni.setBackgroundColor({});
  },
  onLoad(option) {
    let data = JSON.parse(option.data);
	this.msg =data
    // this.msg.Id = data.Id;
    // this.msg.ActivityId = data.ActivityId;
    // this.msg.LinkMan = data.LinkMan;
    // this.msg.LinkTel = data.LinkTel;
    // this.msg.Post = data.Post;
    // this.msg.CountryInfo = data.CountryInfo;
    console.log(this.msg);
  },
  methods: {
    getList() {
      this.request2(
        {
          url: "/api/AppletTrade/GetCommerceActivity",
          data: this.qmsg,
        },
        (res) => {
          console.log(res);
          if (res.resultCode == 1) {
            this.dataList = res.data.CommerceConsultList;
          }
        }
      );
    },
    //修改用户信息
    submit() {
      if (this.msg.LinkMan == "" || !this.msg.LinkMan) {
        uni.showToast({
          title: "请输入姓名",
          duration: 2000,
          icon: "error",
        });
        return;
      }
      if (this.msg.LinkTel == "" || !this.msg.LinkTel) {
        uni.showToast({
          title: "请输入联系电话",
          duration: 2000,
          icon: "error",
        });
        return;
      }
      this.request2(
        {
          url: "/api/AppletTrade/SetTradeConsult",
          data: this.msg,
        },
        (res) => {
          if (res.resultCode == 1) {
            uni.showToast({
              title: "操作成功",
              duration: 2000,
              icon: "none",
            });
            uni.navigateTo({
              url: "/pages/kotra/activityList",
            });
          }
        }
      );
    },
    quxiao() {
      uni.navigateBack({
        delta: 1,
      });
    },
  },
};
</script>
