conference-offline-en.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719
  1. <template>
  2. <view class="bigbox">
  3. <!-- 顶部导航栏 -->
  4. <uni-nav-bar status-bar=true fixed=true left-icon="back" background-color="#3387ff" color="#ffffff"
  5. @clickLeft="navigateBack">
  6. <text slot="default" style="text-align: center; flex: 1; font-size: 18px; font-weight: bold;">Sign Up</text>
  7. <button slot="right" size="mini" @click="submitForm" class="sunmit-btn" type="submit"
  8. hover-class="button-hover">submit</button>
  9. </uni-nav-bar>
  10. <!-- 背景装饰物 -->
  11. <view class="decorate">
  12. <!-- <view class="decorates"></view> -->
  13. </view>
  14. <!-- 表单部分 -->
  15. <uni-list :border="false"
  16. style="width: 686rpx;margin: 100rpx 32rpx;border-radius: 12rpx;overflow: hidden;box-shadow: 0px 3px 6px #000000;">
  17. <uni-list-item showArrow clickable @click="toUpload">
  18. <view slot="header" class="text_style" style="line-height: 104rpx;">
  19. <text style="margin-left: 26rpx;">Photo</text>
  20. </view>
  21. <image v-if="meetingApply.photoUrl" @click="toUpload" slot="footer"
  22. :src="websiteUrl+meetingApply.photoUrl"
  23. style="width: 100rpx;height: 140rpx; border-radius: 16rpx;margin-top: -134rpx;"></image>
  24. </uni-list-item>
  25. <uni-list-item clickable>
  26. <text slot="header" class="text_style text_style_s label">Invitation Code</text>
  27. <input placeholder="Please enter your Invitation Code or '000000'" slot="body"
  28. class="uni-input-info text_style_s" v-model="meetingApply.invitationCode" />
  29. </uni-list-item>
  30. <uni-list-item clickable>
  31. <text slot="header" class="text_style text_style_s label">Given Name</text>
  32. <input placeholder="Please enter your Given Name" slot="body" class="uni-input-info text_style_s"
  33. v-model="meetingApply.givenName" />
  34. </uni-list-item>
  35. <uni-list-item clickable>
  36. <text slot="header" class="text_style text_style_s" style="margin-left: 12rpx;">Middle Name</text>
  37. <input placeholder="Please enter your Middle Name" slot="body" class="uni-input-info text_style_s"
  38. v-model="meetingApply.middleName" />
  39. <!-- <information-input slot="body" class="uni-common-mt" v-model="meetingApply.middleName"></information-input> -->
  40. </uni-list-item>
  41. <uni-list-item clickable>
  42. <text slot="header" class="text_style text_style_s label">Surname</text>
  43. <input placeholder="Please enter your Surname" slot="body" class="uni-input-info text_style_s"
  44. v-model="meetingApply.surname" />
  45. </uni-list-item>
  46. <uni-list-item showArrow>
  47. <text slot="header" class="text_style text_style_s label">Gender</text>
  48. <view slot="body" class="uni-list select-view">
  49. <view class="uni-list-cell">
  50. <view class="uni-list-cell-db">
  51. <picker @change="bindPickerChange" :value="genderIndex" :range="genderRange"
  52. range-key="label">
  53. <view class="uni-input">{{genderRange[genderIndex].label}}</view>
  54. </picker>
  55. </view>
  56. </view>
  57. </view>
  58. </uni-list-item>
  59. <uni-list-item clickable>
  60. <text slot="header" class="text_style text_style_s label">E-mail</text>
  61. <input placeholder="Please enter your E-mail" slot="body" class="uni-input-info text_style_s"
  62. v-model="meetingApply.email" />
  63. </uni-list-item>
  64. <!-- <uni-list-item showArrow clickable @click="toMobileAreaCode('mobileAreaCodeDictEn')">
  65. <text slot="header" class="text_style text_style_s label" style="line-height: 100rpx;">Mobile Area
  66. Code</text>
  67. <text slot="footer" style="margin-top: -42px;">{{meetingApply.mobileAreaCodeDictEn}}</text>
  68. </uni-list-item> -->
  69. <uni-list-item showArrow clickable @click="toMobileAreaCode('mobileAreaCodeDictEn')">
  70. <text slot="header" class="text_style text_style_s label"
  71. style="height: 100rpx;line-height: 100rpx;">Mobile Area Code</text>
  72. <text slot="footer" style="margin-top: -37px;">{{meetingApply.contactMobileAreacodeDictEn}}</text>
  73. </uni-list-item>
  74. <uni-list-item clickable>
  75. <text slot="header" class="text_style text_style_s label">Tel.</text>
  76. <input placeholder="Please enter your Tel." slot="body" class="uni-input-info text_style_s"
  77. v-model="meetingApply.tel" />
  78. </uni-list-item>
  79. <uni-list-item showArrow clickable @click="toUnitCountryDict">
  80. <view slot="header" class="text_style" style="line-height: 100rpx; font-weight: bold;">
  81. <text class="label" style="margin-left: 10rpx;">Country/Region</text>
  82. </view>
  83. <text slot="footer" style="margin-top: -42px;">{{unitCountry}}</text>
  84. </uni-list-item>
  85. <uni-list-item showArrow>
  86. <text slot="header" class="text_style text_style_s label">Language</text>
  87. <view slot="body" class="uni-list select-view">
  88. <view class="uni-list-cell" v-if="languageDictEns.length">
  89. <view class="uni-list-cell-db">
  90. <picker @change="bindLanguageChange" :value="languageIndex" :range="languageDictEns"
  91. range-key="label">
  92. <view class="uni-input">{{languageDictEns[languageIndex].label}}</view>
  93. </picker>
  94. </view>
  95. </view>
  96. </view>
  97. </uni-list-item>
  98. <uni-list-item clickable>
  99. <text slot="header" class="text_style text_style_s ">Passport Number</text>
  100. <input placeholder="Please enter your Passport Number" slot="body" class="uni-input-info text_style_s"
  101. v-model="meetingApply.passportNumber" />
  102. </uni-list-item>
  103. <uni-list-item clickable>
  104. <text slot="header" class="text_style text_style_s label">Name of Company/Organization</text>
  105. <input placeholder="Please enter your Company/Organization" slot="body"
  106. class="uni-input-info text_style_s" v-model="meetingApply.unitNameEn" />
  107. </uni-list-item>
  108. <uni-list-item showArrow>
  109. <view class="" slot="header">
  110. <text class="text_style text_style_s label">Company/Organization Type</text>
  111. </view>
  112. <view slot="body" class="uni-list select-view text_style_s">
  113. <view class="uni-list-cell" v-if="UnitTypeDictRange.length">
  114. <view class="uni-list-cell-db">
  115. <picker @change="bindUnitTypePickerChange" :value="unitTypeIndex" :range="UnitTypeDictRange"
  116. range-key="label">
  117. <view class="uni-input"
  118. style="text-align:left; padding-left:28rpx;line-height: 192rpx;">
  119. {{UnitTypeDictRange[unitTypeIndex].label}}
  120. </view>
  121. </picker>
  122. </view>
  123. </view>
  124. </view>
  125. </uni-list-item>
  126. <uni-list-item clickable>
  127. <text slot="header" class="text_style text_style_s label">Title</text>
  128. <input placeholder="Please enter your Title" slot="body" class="uni-input-info text_style_s"
  129. v-model="meetingApply.positionNameEn" />
  130. </uni-list-item>
  131. <uni-list-item clickable>
  132. <text slot="header" class="text_style text_style_s label">Contact Person</text>
  133. <input placeholder="Please enter your Contact Person" slot="body" class="uni-input-info text_style_s"
  134. v-model="meetingApply.contactPersonName" />
  135. </uni-list-item>
  136. <uni-list-item showArrow clickable @click="toMobileAreaCode('contactMobileAreacodeDictEn')">
  137. <text slot="header" class="text_style text_style_s label"
  138. style="height: 100rpx;line-height: 100rpx;">Mobile Area Code</text>
  139. <text slot="footer" style="margin-top: -37px;">{{meetingApply.contactMobileAreacodeDictEn}}</text>
  140. </uni-list-item>
  141. <uni-list-item clickable>
  142. <text slot="header" class="text_style text_style_s label">Contact Cellphone</text>
  143. <input placeholder="Please enter your Contact Cellphone" slot="body" class="uni-input-info text_style_s"
  144. v-model="meetingApply.contactCellphone" />
  145. </uni-list-item>
  146. <uni-list-item clickable>
  147. <text slot="header" class="text_style text_style_s label">Contact E-mail</text>
  148. <input placeholder="Please enter your Contact E-mail" slot="body" class="uni-input-info text_style_s"
  149. v-model="meetingApply.contactEmail" />
  150. </uni-list-item>
  151. </uni-list>
  152. <activities-select v-if="baseInfo!= {} && baseInfo.isShowEnOnsiteIntention=='Yes'"
  153. :meetingId="meetingApply.meetingId" @getcheckedIds="getActivityIds" @getcheckDetermine="getdetermine"></activities-select>
  154. </view>
  155. </template>
  156. <script>
  157. import {
  158. addIntegral,
  159. addGrowth
  160. } from '@/components/addPointDetailByTaskDict.js'
  161. import uniNavBar from "@/components/uni-nav-bar/uni-nav-bar.vue";
  162. import informationInput from "@/pages/conference/conferenceOfflineZh/information.vue";
  163. import activitiesSelect from "@/pages/conference/activitiesSelectEN.vue";
  164. export default {
  165. components: {
  166. uniNavBar,
  167. informationInput,
  168. activitiesSelect,
  169. addIntegral,
  170. addGrowth
  171. },
  172. data() {
  173. return {
  174. unitCountry: '',
  175. genderRange: [{
  176. value: 'M',
  177. label: 'Male'
  178. },
  179. {
  180. value: 'F',
  181. label: 'Female'
  182. },
  183. {
  184. value: 'O',
  185. label: 'Other'
  186. },
  187. ],
  188. genderIndex: 0,
  189. unitTypeIndex: 0,
  190. languageIndex: 1,
  191. UnitTypeDictRange: [],
  192. languageDictEns: [],
  193. baseInfo: {}, //邀请码集合
  194. invitationCodePrefix: [], //邀请码集合
  195. invitationCodeArr: [], //邀请码集合
  196. meetingApply: {
  197. meetingYearplanTypeDict: 'main_meeting',
  198. isNeedLetter: 'No',
  199. meetingId: '',
  200. auditStatusDict: '',
  201. applyWay: 'en',
  202. nameEn: '',
  203. photoUrl: '',
  204. invitationCode: '',
  205. givenName: '',
  206. middleName: '',
  207. surname: '',
  208. genderDictEn: 'M',
  209. email: '',
  210. mobileAreaCodeDictEn: '',
  211. tel: '',
  212. unitCountryDictEn: '',
  213. languageDictEn: 'english',
  214. passportNumber: '',
  215. unitNameEn: '',
  216. meetingUnitTypeDictEn: '01',
  217. positionNameEn: '',
  218. contactPersonName: '',
  219. contactMobileAreacodeDictEn: '',
  220. contactCellphone: '',
  221. contactEmail: ''
  222. },
  223. approverId: '',
  224. checkedIds: '',
  225. checkDetermine: true,
  226. }
  227. },
  228. mounted() {
  229. // this.getUnitTypeDict();
  230. this.getLanguageDictEn();
  231. },
  232. onLoad(option) {
  233. if (option && option.id) {
  234. this.meetingApply.meetingId = option.id;
  235. const myId = option.id
  236. this.getConfrenceDetail(myId)
  237. // console.log(option.id)
  238. } else {
  239. let that = this;
  240. const eventChannel = this.getOpenerEventChannel()
  241. eventChannel.on('reapply', function(data) {
  242. that.meetingApply = data.data;
  243. that.getConfrenceDetail(data.data.meetingId);
  244. // console.log('2222',that.meetingApply)
  245. })
  246. that.initDicts()
  247. }
  248. },
  249. watch: {
  250. 'meetingApply.givenName'(val) {
  251. this.meetingApply.givenName = val
  252. this.meetingApply.contactPersonName = val + ' ' + this.meetingApply.middleName + ' ' + this.meetingApply
  253. .surname
  254. this.meetingApply.nameEn = val + ' ' + this.meetingApply.middleName + ' ' + this.meetingApply.surname
  255. },
  256. 'meetingApply.middleName'(val) {
  257. this.meetingApply.middleName = val
  258. this.meetingApply.contactPersonName = this.meetingApply.givenName + ' ' + val + ' ' + this.meetingApply
  259. .surname
  260. this.meetingApply.nameEn = this.meetingApply.givenName + ' ' + val + ' ' + this.meetingApply.surname
  261. },
  262. 'meetingApply.surname'(val) {
  263. this.meetingApply.surname = val
  264. this.meetingApply.contactPersonName = this.meetingApply.givenName + ' ' + this.meetingApply.middleName +
  265. ' ' + val
  266. this.meetingApply.nameEn = this.meetingApply.givenName + ' ' + this.meetingApply.middleName + ' ' + val
  267. },
  268. 'meetingApply.email'(val) {
  269. this.meetingApply.contactEmail = val
  270. },
  271. 'meetingApply.tel'(val) {
  272. this.meetingApply.contactCellphone = val
  273. },
  274. },
  275. methods: {
  276. getActivityIds(ids) {
  277. console.log('ids', ids)
  278. this.checkedIds = ids;
  279. },
  280. getdetermine(checkDetermine) {
  281. this.checkDetermine = checkDetermine;
  282. console.log('checkDetermine', this.checkDetermine)
  283. },
  284. async initDicts() {
  285. const res = await this.$myRequest({
  286. url: '/sys/sysDicts',
  287. data: {
  288. type: 'unit_country_dict_en,meeting_unit_type_dict_en'
  289. }
  290. })
  291. res.data[0].forEach(item => {
  292. // console.log(item)
  293. if (this.meetingApply.unitCountryDictEn == item.value) {
  294. this.unitCountry = item.label
  295. }
  296. })
  297. res.data[1].forEach((item, i) => {
  298. // console.log(item)
  299. if (this.meetingApply.meetingUnitTypeDictEn == item.value) {
  300. this.unitTypeIndex = i
  301. }
  302. })
  303. this.genderRange.forEach((item, i) => {
  304. if (this.meetingApply.genderDict == item.value) {
  305. this.genderIndex = i
  306. }
  307. })
  308. },
  309. async submitForm() {
  310. // uni.navigateTo({
  311. // url: '/pages/conference/conferenceOfflineEn/successfully'
  312. // });
  313. // return
  314. //必填项验证
  315. if (!this.checkContent(this.meetingApply.invitationCode)) {
  316. uni.showToast({
  317. title: 'Invitation code not filled in',
  318. icon: 'none'
  319. });
  320. return;
  321. } else if (!this.invitationCodeArr.includes(this.meetingApply.invitationCode)) {
  322. uni.showToast({
  323. title: 'Invitation code error',
  324. icon: 'none'
  325. });
  326. return;
  327. } else if (!this.checkContent(this.meetingApply.givenName)) {
  328. uni.showToast({
  329. title: 'GivenName not filled in',
  330. icon: 'none'
  331. });
  332. return;
  333. } else if (!this.checkContent(this.meetingApply.surname)) {
  334. uni.showToast({
  335. title: 'SurName not filled in',
  336. icon: 'none'
  337. });
  338. return;
  339. } else if (!this.checkContent(this.meetingApply.email)) {
  340. uni.showToast({
  341. title: 'Email not filled in',
  342. icon: 'none'
  343. });
  344. return;
  345. } else if (!this.checkEmail(this.meetingApply.email)) {
  346. uni.showToast({
  347. title: 'Email format error',
  348. icon: 'none'
  349. });
  350. return;
  351. }/* else if (!this.checkContent(this.meetingApply.mobileAreaCodeDictEn)) {
  352. uni.showToast({
  353. title: 'Mobile Area Code not filled in',
  354. icon: 'none'
  355. });
  356. return;
  357. } */ else if (!this.checkContent(this.meetingApply.tel)) {
  358. uni.showToast({
  359. title: 'Tel not filled in',
  360. icon: 'none'
  361. });
  362. return;
  363. } else if (!this.checkMobile(this.meetingApply.tel)) {
  364. uni.showToast({
  365. title: 'Tel error',
  366. icon: 'none'
  367. });
  368. return;
  369. }/* else if (!this.checkContent(this.meetingApply.passportNumber)) {
  370. uni.showToast({
  371. title: 'passportNumber is not filled in',
  372. icon: 'none'
  373. });
  374. return;
  375. } */ else if (!this.checkContent(this.meetingApply.unitNameEn)) {
  376. uni.showToast({
  377. title: 'Name of Company/Organization is not filled in',
  378. icon: 'none'
  379. });
  380. return;
  381. } else if (!this.checkContent(this.meetingApply.positionNameEn)) {
  382. uni.showToast({
  383. title: 'Title not filled in',
  384. icon: 'none'
  385. });
  386. return;
  387. } else if (!this.checkContent(this.meetingApply.contactPersonName)) {
  388. uni.showToast({
  389. title: 'Contact Person is not filled in',
  390. icon: 'none'
  391. });
  392. return;
  393. } else if (!this.checkContent(this.meetingApply.contactCellphone)) {
  394. uni.showToast({
  395. title: 'Contact Cellphone is not filled in',
  396. icon: 'none'
  397. });
  398. return;
  399. } else if (!this.checkMobile(this.meetingApply.contactCellphone)) {
  400. uni.showToast({
  401. title: 'Contact Cellphone error',
  402. icon: 'none'
  403. });
  404. return;
  405. } else if (!this.checkContent(this.meetingApply.contactEmail)) {
  406. uni.showToast({
  407. title: 'Contact Email is not filled in',
  408. icon: 'none'
  409. });
  410. return;
  411. } else if (!this.checkEmail(this.meetingApply.contactEmail)) {
  412. uni.showToast({
  413. title: 'Contact Email format error',
  414. icon: 'none'
  415. });
  416. return;
  417. } else if (!this.checkDetermine) {
  418. uni.showToast({
  419. title: 'Kind Reminder: participants can only register for one parallel session. Hope you enjoy the conference.',
  420. icon: 'none'
  421. });
  422. return;
  423. }
  424. // 点击确定时,对手机邮箱进行验证
  425. if (this.meetingApply.auditStatusDict == '') {
  426. this.meetingApply.auditStatusDict = '4';
  427. } else {
  428. this.meetingApply.auditStatusDict = this.meetingApply.auditStatusDict;
  429. }
  430. var res = await this.$myRequest({
  431. url: '/meeting/meetingApplys/getApproverId',
  432. data: {
  433. invitationCode: this.meetingApply.invitationCode
  434. },
  435. });
  436. res = res.data; //20210401添加此行代码
  437. var str = "";
  438. for (var i = 0; i < res.length; i++) {
  439. str += res[i].userId + ",";
  440. }
  441. if (str.length > 0) {
  442. str = str.substr(0, str.length - 1);
  443. }
  444. this.approverId = str;
  445. console.log('approverId', this.approverId)
  446. const token = await this.$myRequest({
  447. url: '/sys/token',
  448. data: {}
  449. });
  450. console.log('meetingApply', this.meetingApply)
  451. await this.$myRequest({
  452. url: '/meeting/meetingApplys',
  453. method: (this.meetingApply.id ? 'PUT' : 'POST'),
  454. data: {
  455. meetingApply: JSON.stringify(this.meetingApply),
  456. approver: this.approverId,
  457. taskComment: '',
  458. token: token.data,
  459. activityIds: this.checkedIds
  460. },
  461. }).then(result => {
  462. console.log(result)
  463. if (result.data.isRepeat) {
  464. uni.showToast({
  465. title: 'please do not fill in again',
  466. icon: 'none'
  467. })
  468. return
  469. }
  470. addIntegral('meeting_registration_successful', '10')
  471. addGrowth('meeting_registration_successful', '10')
  472. uni.navigateTo({
  473. url: '/pages/conference/conferenceOfflineEn/successfully'
  474. });
  475. });
  476. },
  477. bindPickerChange(e) {
  478. this.meetingApply.genderDict = this.genderRange[e.target.value].value;
  479. this.genderIndex = e.target.value;
  480. },
  481. bindUnitTypePickerChange(e) {
  482. console.log(this.UnitTypeDictRange[e.target.value].value)
  483. this.meetingApply.meetingUnitTypeDictEn = this.UnitTypeDictRange[e.target.value].value;
  484. this.unitTypeIndex = e.target.value;
  485. },
  486. bindLanguageChange(e) {
  487. this.meetingApply.languageDictEn = this.languageDictEns[e.target.value].value;
  488. this.languageIndex = e.target.value;
  489. },
  490. async getDict(rand) {
  491. const res = await this.$myRequest({
  492. url: '/sys/sysDicts',
  493. data: {
  494. type: 'geidco_dept_dict,meeting_unit_type_dict_en'
  495. }
  496. })
  497. if (res.data) {
  498. this.UnitTypeDictRange = res.data[1];
  499. // this.invitationCodePrefix = res.data
  500. res.data[0].forEach(item => {
  501. // console.log(item)
  502. this.invitationCodeArr.push(item.value + '' + rand)
  503. })
  504. this.invitationCodeArr.push("000000")
  505. console.log(this.invitationCodeArr)
  506. }
  507. },
  508. async getConfrenceDetail(myId) {
  509. const res = await this.$myRequest({
  510. url: '/meeting/meetingOutInfos/findMeetingDetail/',
  511. data: {
  512. id: myId
  513. }
  514. });
  515. this.baseInfo = res.data.basicInfo;
  516. this.getDict(res.data.basicInfo.meetingRand)
  517. },
  518. async getLanguageDictEn() {
  519. const res = await this.$myRequest({
  520. url: '/sys/sysDicts',
  521. data: {
  522. type: 'language_dict_en'
  523. }
  524. })
  525. if (res.data) {
  526. this.languageDictEns = res.data[0];
  527. }
  528. },
  529. toMobileAreaCode(mark) {
  530. uni.navigateTo({
  531. url: 'MobileAreaCodeDict',
  532. events: {
  533. watchMobileAreaCode: data => {
  534. this.meetingApply[mark] = data.code;
  535. if (mark == 'mobileAreaCodeDictEn') {
  536. this.meetingApply.contactMobileAreacodeDictEn = data.code;
  537. }
  538. }
  539. },
  540. })
  541. },
  542. toUnitCountryDict() {
  543. uni.navigateTo({
  544. url: 'CountryDict',
  545. events: {
  546. acceptSelectedCountry: data => {
  547. this.unitCountry = data.country;
  548. this.meetingApply.unitCountryDictEn = data.code;
  549. }
  550. },
  551. })
  552. },
  553. toUpload() {
  554. uni.navigateTo({
  555. url: '/pages/conference/conferenceOfflineZh/uni-list-item-upload',
  556. events: {
  557. acceptImageUrl: data => {
  558. this.meetingApply.photoUrl = data.url;
  559. }
  560. },
  561. })
  562. },
  563. navigateBack() {
  564. uni.navigateBack()
  565. },
  566. checkEmail(email) {
  567. return RegExp(/^\w+.*\w+@[a-zA-Z0-9]+.*[a-zA-Z0-9]+\.[a-zA-Z]{2,4}$/).test(email);
  568. },
  569. checkMobile(mobile) {
  570. return RegExp(/^1[34578]\d{9}$/).test(mobile);
  571. },
  572. checkContent(content) {
  573. return RegExp(/^[\s\S]*.*[^\s][\s\S]*$/).test(content);
  574. },
  575. }
  576. }
  577. </script>
  578. <style lang="scss" scoped>
  579. .bigbox {
  580. background-color: #FFFFFF;
  581. padding-bottom: 20px;
  582. }
  583. /deep/.uni-list--border::after {
  584. background-color: #FFFFFF;
  585. }
  586. .uni-list-item {
  587. height: 144rpx;
  588. line-height: 104rpx;
  589. border-bottom: 1px solid #dadada;
  590. }
  591. /deep/.uni-list-item__container {
  592. flex-wrap: wrap;
  593. }
  594. .decorate {
  595. width: 100%;
  596. height: 170px;
  597. background-color: #3387ff;
  598. position: absolute;
  599. border-radius: 0 0 50px 50px
  600. }
  601. .decorates {
  602. width: 323px;
  603. height: 30px;
  604. background-color: rgb(255, 255, 255);
  605. opacity: 0.5;
  606. border-radius: 5px;
  607. position: absolute;
  608. top: 60rpx;
  609. left: 52rpx;
  610. }
  611. .text_style {
  612. width: 100%;
  613. font-weight: bold;
  614. font-size: 14px;
  615. display: flex;
  616. align-items: center;
  617. margin-bottom: 10rpx;
  618. }
  619. .text_style_s {
  620. padding-left: 14rpx;
  621. }
  622. .uni-common-mt {
  623. // margin-left: 90rpx;
  624. }
  625. .uni-list {
  626. width: auto;
  627. background-color: #d7d7d7;
  628. }
  629. .uni-list:after,
  630. .uni-list:before {
  631. height: 0px;
  632. }
  633. .select-view {
  634. position: absolute;
  635. width: 100%;
  636. height: 100%;
  637. text-align: right;
  638. top: 0;
  639. left: 0;
  640. background-color: transparent;
  641. }
  642. .select-view .uni-input {
  643. line-height: 140rpx;
  644. }
  645. .sunmit-btn {
  646. width: 57px;
  647. height: 30px;
  648. color: #FFFFFF;
  649. background-color: #2d79e5;
  650. padding: 0 10px;
  651. border-radius: 18px;
  652. }
  653. .button-hover[type=submit] {
  654. opacity: .75;
  655. transform: scale(0.95, 0.95);
  656. }
  657. .uni-input-info {
  658. height: 54rpx;
  659. width: 650rpx;
  660. font-size: 30rpx;
  661. // border-bottom: 1px solid #dadada;
  662. // background: #E4E7ED;
  663. }
  664. .uni-input-placeholder {
  665. font-size: 28rpx;
  666. padding-left: 10rpx;
  667. }
  668. .label:before {
  669. content: '* ';
  670. color: red;
  671. }
  672. </style>