StepFirst.vue 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949
  1. <template>
  2. <!--填写注册信息-->
  3. <div class="section" @click="onHideBox">
  4. <div class="mobile-register">
  5. <!--<div class="x-form-set-header">-->
  6. <!--<h4>企业基本信息</h4>-->
  7. <!--</div>-->
  8. <div class="wrap-title"><span class="line"></span>企业基本信息</div>
  9. <div class="">
  10. <label class="col-sm-2 mobile-x-required">企业名称:</label>
  11. <div class="col-sm-5 mobile-x-input-kuang">
  12. <input :class="!validName.isValidTypeName || !validName.isValidName?'form-control error-box-border':'form-control'" type="text" @input="nameTypeCheck()" @change="nameCheck(3)" :disabled="!loginData.isSelf" v-model="data.name" name="name" required="" placeholder="填写营业执照上的企业名称">
  13. <div class="mobile-x-text-help" v-show="validName.isValidTypeName && validName.isValidName && !validName.init">
  14. <i class="glyphicon glyphicon-ok x-icon-left"></i>
  15. </div>
  16. </div>
  17. <div class="col-sm-5 mobile-x-text-info" v-show="!validName.isValidTypeName && !validName.init">
  18. <p>
  19. <i class="fa fa-info-circle"></i>请填写正确的企业名称,2~99个字符
  20. </p>
  21. </div>
  22. <div class="col-sm-5 mobile-x-text-info" v-show="!validName.isValidName && !validName.init">
  23. <p>
  24. <i class="fa fa-info-circle"></i>注册的企业名称已存在,请联系管理员
  25. </p>
  26. </div>
  27. </div>
  28. <div class="">
  29. <label class="col-sm-2 mobile-x-required">营业执照号:</label>
  30. <div class="col-sm-5 mobile-x-input-kuang">
  31. <input type="text" :class="!validLicence.isValidLicence?'form-control error-box-border':'form-control x-input'" :disabled="!loginData.isSelf" @input="validLicence.init=false" @change="licenceCheck(3)" v-model="data.licenceId" name="name" required="" placeholder="请填写营业执照上的注册号">
  32. <div class="mobile-x-text-help" v-show="validLicence.isValidLicence && !validLicence.init">
  33. <i class="glyphicon glyphicon-ok x-icon-left"></i>
  34. </div>
  35. </div>
  36. <div class="col-sm-5 mobile-x-text-info" v-show="!validLicence.isValidLicence && !validLicence.init"><p><i class="fa fa-info-circle"></i>请填写营业执照上的注册号</p></div>
  37. </div>
  38. <div class="row">
  39. <label class="col-sm-2 mobile-x-required">注册地址:</label>
  40. <div class="col-sm-5 mobile-x-input-kuang">
  41. <input type="text" readonly aria-haspopup="true" aria-expanded="false" @click="onShowAddress" v-model="data.address" class="form-control" name="name" required="" placeholder="填写总部所在地详细地址" style="padding-left:0.4rem;background-color: transparent;">
  42. <span class="fa fa-map-marker mobile-fa-map-marker"></span>
  43. <div class="mobile-x-text-help" v-show="validAddress.isValidAddress && !validAddress.init">
  44. <i class="glyphicon glyphicon-ok x-icon-left"></i>
  45. </div>
  46. </div>
  47. <div class="mobile-modal mobile-fiexd-modal" v-show="showAddressBox" @click.stop="">
  48. <div @mouseenter="isInAddressBox = true"
  49. @mouseleave="isInAddressBox = false"
  50. style="display: block;"
  51. class="dropdown-menu mobile-x-union-menu" aria-labelledby="address">
  52. <div class="mobile-x-union-header clearfix">
  53. <div>省份</div>
  54. <div>城市</div>
  55. <div>县区</div>
  56. </div>
  57. <div class="mobile-x-union-list clearfix">
  58. <ul class="mobile-list-unstyled">
  59. <li v-for="province in cityData.province"
  60. :class="province == address.currentProvince ? 'active' : ''"
  61. v-text="province"
  62. @click.stop="getCity(province)"></li>
  63. </ul>
  64. <ul class="mobile-list-unstyled">
  65. <li v-for="city in cityData.city"
  66. :class="city == address.currentCity ? 'active' : ''"
  67. v-text="city"
  68. @click.stop="getDistrict(city)"></li>
  69. </ul>
  70. <ul class="mobile-list-unstyled">
  71. <li v-for="district in cityData.district"
  72. v-text="district"
  73. :class="district == address.currentDistrict ? 'active' : ''"
  74. @click.stop="chooseDistrict(district)"></li>
  75. </ul>
  76. </div>
  77. <div class="mobile-x-item-ext2">详细地址</div>
  78. <div class="mobile-x-item-ext">
  79. <div class="form-group">
  80. <div class="col-sm-12">
  81. <textarea id="street" name="street" rows="4" v-model="address.detail" @input.stop="onDetailAddressInput" class="form-control x-input" placeholder="xx路xx大厦xx栋xx楼xx室"></textarea>
  82. </div>
  83. </div>
  84. <div class="text-right">
  85. <a class="register-btn btn-submit" @click.stop="submitAddress">确定</a> <a @click="showAddressBox = false" class="register-btn btn-console">取消</a>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. <div class="col-sm-5" v-show="!validAddress.isValidAddress && !validAddress.init"><p><i class="fa fa-info-circle"></i>填写总部所在地详细地址</p></div>
  91. </div>
  92. </div>
  93. <div class="row next-btn"><button class="btn" style="background: rgb(63, 132, 246);width: 90%; color: #fff;" :style="loginData.isSelf && !isValid ? 'opacity: .65;':''" @click="sectionChange(2)">下一步</button></div>
  94. <remind-box :title="collectResult" :timeoutCount="timeoutCount"></remind-box>
  95. <div class="mobile-modal" v-if="showBangdingPage">
  96. <div class="BangdingPageAlert">
  97. <div class="BangdingPageAlertTitle">该企业<span>已注册优软账号</span>,如希望使用当前企业进行开店申请,请先申请<span>企业绑定</span>!</div>
  98. <div class="BangdingPageAlertBtn">
  99. <span @click="resetOnkeyDown()">重新输入</span>
  100. <span @click="toBindenterprise()">立即绑定</span>
  101. <!--<nuxt-link tag="span" to="/mobile/user/bindEnterprise">立即绑定</nuxt-link>-->
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. </template>
  107. <script>
  108. import { RemindBox } from '~components/mobile/common'
  109. export default {
  110. data () {
  111. return {
  112. showBangdingPage: false,
  113. timeoutCount: 0,
  114. collectResult: '',
  115. data: {
  116. name: '',
  117. // lawPerson: '',
  118. // url: '',
  119. licenceId: '',
  120. address: ''
  121. // linkman: '',
  122. // phone: '',
  123. // email: '',
  124. // fax: '',
  125. // website: '',
  126. // profession: '',
  127. // logoUrl: '',
  128. // tagsData: []
  129. },
  130. validName: {
  131. isValidTypeName: true,
  132. isValidName: true,
  133. init: true
  134. },
  135. // validUpload: {
  136. // isValidUpload: true,
  137. // init: true
  138. // },
  139. validLicence: {
  140. isValidLicence: true,
  141. init: true
  142. },
  143. validAddress: {
  144. isValidAddress: true,
  145. init: true
  146. },
  147. // validLawPerson: {
  148. // isValidLawPerson: true,
  149. // init: true
  150. // },
  151. // validPhone: {
  152. // isValidPhone: true,
  153. // init: true
  154. // },
  155. // validEmail: {
  156. // isValidEmail: true,
  157. // init: true
  158. // },
  159. // validFax: {
  160. // isValidFax: true,
  161. // init: true
  162. // },
  163. // validLogo: {
  164. // isValidLogo: true,
  165. // init: true
  166. // },
  167. isValid: false,
  168. // isPdf: false,
  169. showAddressBox: false,
  170. isInAddressBox: false,
  171. // showProfessionBox: false,
  172. // isInProfessionBox: false,
  173. temCityData: {},
  174. cityData: {
  175. province: [],
  176. city: [],
  177. district: []
  178. },
  179. address: {
  180. currentProvince: '',
  181. currentCity: '',
  182. currentDistrict: '',
  183. detail: ''
  184. }
  185. // tempProfession: {},
  186. // professionData: {
  187. // profession: [],
  188. // detail: [],
  189. // thirdDetail: []
  190. // },
  191. // currentProfession: {
  192. // profession: '',
  193. // detail: '',
  194. // thirdDetail: ''
  195. // },
  196. // tag: ''
  197. }
  198. },
  199. props: ['loginData', 'enterpriseData', 'businessImgUrl'],
  200. watch: {
  201. enterpriseData: function (val, oldVal) {
  202. if (val.name) { // 个人
  203. this.initData(val)
  204. this.nameCheck(3)
  205. this.nameTypeCheck()
  206. this.licenceCheck(3)
  207. this.addressCheck()
  208. // this.imgUrlCheck()
  209. // this.lawPersonCheck()
  210. // this.phoneCheck()
  211. // this.emailCheck()
  212. // this.faxCheck()
  213. this.checkFullData()
  214. this.submitRegisterData()
  215. }
  216. if (val.uu) { // 企业
  217. this.initData(val)
  218. // this.nameCheck(3)
  219. // this.nameTypeCheck()
  220. // this.licenceCheck(3)
  221. this.enAddressCheck()
  222. // this.imgUrlCheck()
  223. // this.lawPersonCheck()
  224. // this.phoneCheck()
  225. // this.emailCheck()
  226. // this.faxCheck()
  227. // this.checkFullData()
  228. this.submitRegisterData()
  229. }
  230. }
  231. // businessImgUrl: function (val, oldVal) {
  232. // this.data.url = val
  233. // this.checkFullData()
  234. // this.submitRegisterData()
  235. // }
  236. },
  237. mounted () {
  238. this.$http.get('/data/city.json').then(response => {
  239. this.temCityData = response.data
  240. for (let province in response.data) {
  241. this.cityData.province.push(province)
  242. }
  243. for (let item in this.temCityData['北京']) {
  244. this.cityData.city.push(item)
  245. }
  246. this.cityData.district = this.temCityData['北京']['北京市']
  247. this.address.currentProvince = '北京'
  248. this.address.currentCity = '北京市'
  249. this.address.currentDistrict = '东城区'
  250. })
  251. // this.$http.get('/data/profession.json').then(response => {
  252. // this.tempProfession = response.data
  253. // for (let profession in response.data) {
  254. // this.professionData.profession.push(profession)
  255. // }
  256. // })
  257. },
  258. methods: {
  259. toBindenterprise() {
  260. this.$http.get('/basic/enterprise/findByName/' + encodeURIComponent(this.data.name)).then(response => {
  261. let status
  262. if (response.data) {
  263. status = 1
  264. } else {
  265. status = 2
  266. }
  267. this.$router.push(`/mobile/user/bindEnterprise?name=${response.data.name}&businessCode=${response.data.businessCode}&showStatus=${status}`)
  268. })
  269. },
  270. resetOnkeyDown: function() {
  271. this.showBangdingPage = false
  272. this.data.name = ''
  273. },
  274. initData: function (val) {
  275. this.data.name = val.spaceName || val.enName || val.name || ''
  276. this.data.licenceId = val.businessCode || val.licenceId || val.enBussinessCode || ''
  277. this.data.address = val.address || val.enAddress || ''
  278. },
  279. sectionChange: function (type) {
  280. // this.nameCheck(3, () => {
  281. if (!this.isValid) {
  282. // this.nameCheck(3)
  283. if (!this.validName.isValidName) {
  284. this.showBangdingPage = true
  285. } else {
  286. this.timeoutCount++
  287. this.collectResult = '请填写正确的注册信息'
  288. }
  289. // this.$message.error('请填写正确的注册信息')
  290. } else {
  291. if (this.enterpriseData.uu) {
  292. this.enCheckFullData()
  293. } else {
  294. this.checkFullData()
  295. }
  296. let enterprise = this.data
  297. // enterprise.tagsData = enterprise.tagsData.toString()
  298. // if (typeof this.data.tagsData === 'string') {
  299. // this.data.tagsData = this.data.tagsData.split(',')
  300. // }
  301. let data = {}
  302. data.enterprise = enterprise
  303. data.isValidRegister = this.isValid
  304. // data.url = this.data.url
  305. enterprise.enIsRead = false
  306. // enterprise.enBussinessCodeImage = this.data.url
  307. // 个人用户,提交保存缓存企业信息
  308. if (this.loginData.isSelf) {
  309. this.$http.post('/basic/user/userCacheEnterprise', enterprise)
  310. this.$emit('isSelfCacheDataAction', enterprise)
  311. } else { // 企业用户,更新当前企业信息,主要是更新企业地址
  312. this.enterpriseData.enAddress = this.data.address
  313. this.$http.post('/basic/enterprise/' + this.enterpriseData.uu + '/updateInfo', this.enterpriseData)
  314. }
  315. this.$emit('registerAction', data)
  316. this.$emit('sectionEvent', type)
  317. // this.$emit('businessImgUrlAction', this.data.url)
  318. }
  319. // })
  320. },
  321. // upload: function (e) {
  322. // let file = e.target.files[0]
  323. // this.validUpload.init = false
  324. // if (file.size > 5 * 1024 * 1024) {
  325. // this.validUpload.isValidUpload = false
  326. // } else {
  327. // this.validUpload.isValidUpload = true
  328. // if (file.type !== 'application/pdf') {
  329. // this.isPdf = false
  330. // let param = new FormData()
  331. // param.append('file', file, file.name)
  332. // param.append('chunk', '0')
  333. // let config = {
  334. // headers: {'Content-Type': 'multipart/form-data'}
  335. // }
  336. // this.$http.post('/api/images', param, config)
  337. // .then(response => {
  338. // this.data.url = response.data[0].path
  339. // this.$emit('businessImgUrlAction', this.data.url)
  340. // }, err => {
  341. // console.log(err)
  342. // this.validUpload.isValidUpload = false
  343. // })
  344. // } else {
  345. // let param = new FormData()
  346. // param.append('file', file, file.name)
  347. // let config = {
  348. // headers: {'Content-Type': file.type}
  349. // }
  350. // this.$http.post('/file', param, config)
  351. // .then(response => {
  352. // this.isPdf = true
  353. // this.data.url = response.data[0].path
  354. // this.$emit('businessImgUrlAction', this.data.url)
  355. // }, err => {
  356. // console.log(err)
  357. // this.validUpload.isValidUpload = false
  358. // })
  359. // }
  360. // }
  361. // this.validCheck()
  362. // },
  363. // uploadLogo: function (e) {
  364. // this.validLogo.init = false
  365. // let file = e.target.files[0]
  366. // if (file.size > 100 * 1024) {
  367. // this.validLogo.isValidLogo = false
  368. // // this.$message.error('图片请勿超过100Kb')
  369. // } else {
  370. // let param = new FormData()
  371. // param.append('file', file, file.name)
  372. // let config = {
  373. // headers: {'Content-Type': file.type}
  374. // }
  375. // this.$http.post('/api/images', param, config)
  376. // .then(response => {
  377. // this.validLogo.isValidLogo = true
  378. // this.data.logoUrl = response.data[0].path
  379. // }, err => {
  380. // console.log(err)
  381. // this.$message.error('图片上传失败')
  382. // })
  383. // }
  384. // },
  385. validCheck: function () {
  386. this.isValid =
  387. // this.validUpload.isValidUpload && !this.validUpload.init &&
  388. this.validName.isValidTypeName && !this.validName.init && this.validName.isValidName &&
  389. this.validLicence.isValidLicence && !this.validLicence.init &&
  390. this.validAddress.isValidAddress && !this.validAddress.init
  391. // this.validLawPerson.isValidLawPerson && !this.validLawPerson.init &&
  392. // (this.validPhone.init || this.validPhone.isValidPhone) &&
  393. // (this.validEmail.init || this.validEmail.isValidEmail) &&
  394. // (this.validFax.init || this.validFax.isValidFax)
  395. },
  396. enValidCheck: function () {
  397. this.isValid = this.validAddress.isValidAddress && !this.validAddress.init
  398. },
  399. checkFullData: function () {
  400. this.isValid =
  401. // this.validUpload.isValidUpload &&
  402. this.validName.isValidTypeName && this.validName.isValidName &&
  403. this.validLicence.isValidLicence &&
  404. this.validAddress.isValidAddress
  405. // this.validLawPerson.isValidLawPerson
  406. },
  407. enCheckFullData: function () {
  408. this.isValid = this.validAddress.isValidAddress
  409. },
  410. // 企业名称字符验证
  411. nameTypeCheck: function () {
  412. this.validName.isValidTypeName = this.data.name !== '' && this.data.name.length >= 2 && this.data.name.length <= 99 && this.commonValid(this.data.name)
  413. this.validName.init = false
  414. },
  415. // 企业名称是否已存在验证
  416. nameCheck: function (num) {
  417. if (num > 0) {
  418. this.$http.post('/basic/enterprise/register/valid/name?name=' + this.data.name)
  419. .then(response => {
  420. if (response.data.code !== 12) {
  421. this.validName.init = false
  422. this.validName.isValidName = response.data.success
  423. this.validCheck()
  424. // cb && cb()
  425. } else {
  426. this.nameCheck(num - 1)
  427. }
  428. })
  429. }
  430. },
  431. // imgUrlCheck: function () {
  432. // this.validUpload.init = false
  433. // this.validUpload.isValidUpload = this.data.url !== ''
  434. // },
  435. licenceCheck: function (num) {
  436. if ((/^[\S-]{1,255}$/).test(this.data.licenceId)) {
  437. if (num > 0) {
  438. this.$http.post('/basic/enterprise/register/valid/businessCode?businessCode=' + this.data.licenceId)
  439. .then(response => {
  440. if (response.data.code !== 12) {
  441. this.validLicence.init = false
  442. this.validLicence.isValidLicence = response.data.success && this.data.licenceId
  443. this.validCheck()
  444. } else {
  445. // this.validLicence.init = tmpInit
  446. this.licenceCheck(num - 1)
  447. }
  448. })
  449. }
  450. } else {
  451. this.validLicence.init = false
  452. this.validLicence.isValidLicence = false
  453. this.validCheck()
  454. }
  455. },
  456. // 个人地址校验
  457. addressCheck: function () {
  458. this.validAddress.init = false
  459. this.validAddress.isValidAddress = this.data.address !== ''
  460. this.validCheck()
  461. },
  462. // 企业地址校验
  463. enAddressCheck: function () {
  464. this.validAddress.init = false
  465. this.validAddress.isValidAddress = this.data.address !== ''
  466. this.enValidCheck()
  467. },
  468. // lawPersonCheck: function () {
  469. // this.validLawPerson.init = false
  470. // this.validLawPerson.isValidLawPerson = (/^\S{1,255}$/).test(this.data.lawPerson)
  471. // this.validCheck()
  472. // },
  473. // phoneCheck: function () {
  474. // this.validPhone.init = false
  475. // this.validPhone.isValidPhone = (/^[\d-]{8,}$/).test(this.data.phone) || this.data.phone === ''
  476. // this.validCheck()
  477. // },
  478. // emailCheck: function () {
  479. // this.validEmail.init = false
  480. // this.validEmail.isValidEmail = (/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/).test(this.data.email) || this.data.email === ''
  481. // this.validCheck()
  482. // },
  483. // faxCheck: function () {
  484. // this.validFax.init = false
  485. // this.validFax.isValidFax = (/^(([\0]\d{2,3}-)?(0\d{2,3})-)(\d{7,8})(-(\d{3,}))?$/).test(this.data.fax) || this.data.fax === ''
  486. // this.validCheck()
  487. // },
  488. commonValid: function (str) {
  489. return str.indexOf(' ') === -1
  490. },
  491. submitRegisterData: function () {
  492. let enterprise = this.data
  493. let data = {}
  494. data.enterprise = enterprise
  495. data.isValidRegister = this.isValid
  496. // data.url = this.data.url
  497. this.$emit('registerAction', data)
  498. },
  499. onHideBox: function () {
  500. this.onHideAddress()
  501. // this.onHideProfession()
  502. },
  503. onShowAddress: function () {
  504. if (this.showAddressBox) {
  505. this.onHideAddress()
  506. } else {
  507. this.showAddressBox = true
  508. this.isClickInputAddress = true
  509. }
  510. },
  511. onHideAddress: function () {
  512. if (!this.isInAddressBox && !this.isClickInputAddress) {
  513. this.showAddressBox = false
  514. }
  515. this.isClickInputAddress = false
  516. },
  517. // onShowProfession: function () {
  518. // if (this.showProfessionBox) {
  519. // this.onHideProfession()
  520. // } else {
  521. // this.showProfessionBox = true
  522. // this.isClickInputProfession = true
  523. // }
  524. // },
  525. // onHideProfession: function () {
  526. // if (!this.isInProfessionBox && !this.isClickInputProfession) {
  527. // this.showProfessionBox = false
  528. // }
  529. // this.isClickInputProfession = false
  530. // },
  531. getCity: function (province) {
  532. this.cityData.city = []
  533. this.address.currentCity = ''
  534. this.cityData.district = []
  535. this.address.currentDistrict = ''
  536. this.address.currentProvince = province
  537. for (let item in this.temCityData[province]) {
  538. this.cityData.city.push(item)
  539. }
  540. },
  541. getDistrict: function (city) {
  542. this.address.currentCity = city
  543. this.address.currentDistrict = ''
  544. this.cityData.district = this.temCityData[this.address.currentProvince][city]
  545. },
  546. chooseDistrict: function (district) {
  547. this.address.currentDistrict = district
  548. },
  549. submitAddress: function () {
  550. if (this.address.currentDistrict !== '' && this.address.currentCity !== '' && this.address.currentProvince !== '') {
  551. if (this.address.detail !== '') {
  552. this.data.address = this.address.currentProvince + this.address.currentCity + this.address.currentDistrict + this.address.detail
  553. this.showAddressBox = false
  554. if (this.enterpriseData.uu) {
  555. this.enAddressCheck()
  556. } else {
  557. this.addressCheck()
  558. }
  559. } else {
  560. this.timeoutCount++
  561. this.collectResult = '请输入详细地址'
  562. // this.$message.error('请输入详细地址')
  563. }
  564. } else {
  565. this.timeoutCount++
  566. this.collectResult = '请选择省、市、区'
  567. }
  568. },
  569. // getProfessionDetail: function (profession) {
  570. // this.currentProfession.profession = profession
  571. // this.currentProfession.detail = ''
  572. // this.professionData.detail = []
  573. // this.currentProfession.thirdDetail = ''
  574. // this.professionData.thirdDetail = []
  575. // let _this = this
  576. // _this.professionData.detail = []
  577. // for (let item in this.tempProfession[profession]) {
  578. // if (typeof this.tempProfession[profession][item] !== 'object') {
  579. // _this.professionData.detail.push(this.tempProfession[profession][item])
  580. // } else {
  581. // _this.professionData.detail.push(item)
  582. // }
  583. // }
  584. // },
  585. // chooseProfessionDetail: function (detail) {
  586. // this.currentProfession.detail = detail
  587. // this.currentProfession.thirdDetail = ''
  588. // this.professionData.thirdDetail = []
  589. // if (typeof this.tempProfession[this.currentProfession.profession][detail] !== 'object') {
  590. // this.data.profession = detail
  591. // this.showProfessionBox = false
  592. // } else {
  593. // this.professionData.thirdDetail = this.tempProfession[this.currentProfession.profession][detail]
  594. // }
  595. // },
  596. // chooseProfessionThirdDetail: function (thirdDetail) {
  597. // this.currentProfession.thirdDetail = thirdDetail
  598. // this.data.profession = thirdDetail
  599. // this.showProfessionBox = false
  600. // },
  601. // tagCheck: function () {
  602. // if (this.tag.length > 10) {
  603. // this.tag = this.tag.substring(0, 10)
  604. // }
  605. // },
  606. // addTags: function () {
  607. // let flag = true
  608. // let _this = this
  609. // if (!this.tag || this.tag === '') {
  610. // flag = false
  611. // } else {
  612. // this.data.tagsData.forEach(function (item) {
  613. // if (item === _this.tag) {
  614. // flag = false
  615. // }
  616. // })
  617. // }
  618. // if (flag) {
  619. // this.data.tagsData.push(this.tag)
  620. // this.tag = ''
  621. // } else {
  622. // this.tag = ''
  623. // }
  624. // },
  625. // removeTag: function (index) {
  626. // this.data.tagsData.splice(index, 1)
  627. // },
  628. onDetailAddressInput: function () {
  629. this.address.detail = this.address.detail.trim()
  630. }
  631. },
  632. components: {
  633. RemindBox
  634. }
  635. }
  636. </script>
  637. <style scoped lang="scss">
  638. .BangdingPageAlert {
  639. position: absolute;
  640. background: #fff;
  641. width: 95%;
  642. left: 0;
  643. right: 0;
  644. margin: 0 auto;
  645. height: 2.4rem;
  646. border-radius: 5px;
  647. font-size: 0.28rem;
  648. top: 50%;
  649. margin-top: -1.2rem;
  650. }
  651. .BangdingPageAlert .BangdingPageAlertTitle {
  652. margin: 0.4rem;
  653. line-height: 0.4rem
  654. }
  655. .BangdingPageAlert .BangdingPageAlertTitle span {
  656. color: #3f84f6;
  657. }
  658. .BangdingPageAlert .BangdingPageAlertBtn {
  659. border-top: 1px solid #d3d3d3;
  660. }
  661. .BangdingPageAlert .BangdingPageAlertBtn span {
  662. font-size: 0.32rem;
  663. color: #999;
  664. text-align: center;
  665. width: 50%;
  666. line-height: 0.74rem;
  667. height: 0.74rem;
  668. display: inline-block;
  669. }
  670. .BangdingPageAlert .BangdingPageAlertBtn span:nth-child(1) {
  671. border-right: 1px solid #d3d3d3;
  672. }
  673. .BangdingPageAlert .BangdingPageAlertBtn span:nth-child(2) {
  674. color: #3f84f6;
  675. }
  676. .mobile-register {
  677. border: 1px solid #d3d3d3;
  678. margin: 0.2rem 0.2rem;
  679. border-radius: 5px;
  680. background: #fff;
  681. padding-bottom: 0.3rem;
  682. }
  683. .mobile-register input[type="file"] {
  684. display: block;
  685. }
  686. .wrap-title {
  687. color: #333;
  688. font-size: 0.28rem;
  689. border-bottom: 1px solid #d3d3d3;
  690. height: 0.5rem;
  691. text-align: left;
  692. padding: 0 0 0.1rem 0.05rem;
  693. margin: 0.17rem 0.25rem 0.13rem 0.25rem;
  694. line-height: 0.5rem;
  695. .line{
  696. width: 0.05rem;
  697. background: #3f84f6;
  698. display: inline-block;
  699. vertical-align: top;
  700. margin-right: 0.08rem;
  701. height: 0.28rem;
  702. margin-top: 0.09rem;
  703. }
  704. }
  705. .mobile-x-required {
  706. font-size: 0.28rem;
  707. color: #226ce7;
  708. }
  709. .mobile-x-input-kuang {
  710. margin-bottom: 0.15rem;
  711. position: relative;
  712. input {
  713. font-size: 0.24rem;
  714. padding-right: 0.5rem;
  715. padding-left: 0.15rem;
  716. height: 0.7rem;
  717. line-height: 0.7rem;
  718. }
  719. .mobile-x-text-help {
  720. position: absolute;
  721. right: 0.5rem;
  722. top: 0.2rem;
  723. }
  724. }
  725. .mobile-x-text-info {
  726. color: red;
  727. font-size:0.24rem;
  728. }
  729. .mobile-fa-map-marker {
  730. position: absolute;
  731. top: 0.2rem;
  732. left: 0.5rem;
  733. }
  734. .mobile-fiexd-modal {
  735. .dropdown-menu{
  736. width: 100%;
  737. top: auto;
  738. bottom: 0.98rem;
  739. padding: 0;
  740. border-radius: 0;
  741. border: 0;
  742. overflow-y: auto;
  743. max-height: 8rem;
  744. padding-bottom: 0.4rem;
  745. .mobile-x-union-header {
  746. font-size: 0.24rem;
  747. border-bottom: 1px solid #d3d3d3;
  748. line-height: 0.5rem;
  749. }
  750. }
  751. }
  752. .previewImg {
  753. max-height: 200px;
  754. max-width: 200px;
  755. margin-top: 5px;
  756. }
  757. .mobile-x-union-header>div,.mobile-x-union-list ul {
  758. float: left;
  759. width: 2.5rem;
  760. border-right: 0.01rem solid #e4ecf3;
  761. }
  762. .mobile-x-union-list ul {
  763. height: 7rem;
  764. margin: 0;
  765. overflow-y: auto;
  766. border-bottom: 1px solid #d3d3d3;
  767. }
  768. .mobile-x-union-menu .mobile-x-item-ext {
  769. .col-sm-12 {
  770. margin: 0px;
  771. padding: 0 10px;
  772. }
  773. }
  774. .mobile-x-item-ext2 {
  775. padding: 10px
  776. }
  777. .mobile-x-union-list ul:last-child, .mobile-x-union-header>div:last-child {
  778. border-right-width: 0
  779. }
  780. .mobile-x-union-header>div,.mobile-x-union-list>ul>li {
  781. white-space: nowrap;
  782. padding: 2px 5px;
  783. cursor: pointer;
  784. }
  785. .mobile-x-union-list>ul>li:hover,.mobile-x-union-list>ul>li.active {
  786. background: #fee9c7;
  787. }
  788. .mobile-x-input {
  789. border-color: #ccc;
  790. border-radius: 0;
  791. box-shadow: none;
  792. }
  793. textarea.form-control {
  794. height: auto;
  795. }
  796. .text-right {
  797. text-align: right;
  798. }
  799. .register-btn {
  800. padding: 5px 10px;
  801. font-size: 12px;
  802. line-height: 1.5;
  803. }
  804. .btn-submit {
  805. background: #5078cb;
  806. color: #fff;
  807. }
  808. .btn-console {
  809. border: 1px solid #ccc;
  810. background: #fff;
  811. color: #888;
  812. margin-left: 5px;
  813. transition: all .2s ease-in-out;
  814. }
  815. .btn-console:hover {
  816. border: 1px solid #adadad;
  817. background: #e6e6e6;
  818. color: #333;
  819. }
  820. .mobile-x-text-help {
  821. color: green;
  822. }
  823. .mobile-register .row .upload-area {
  824. width: 130px;
  825. height: 130px;
  826. left: 15px;
  827. padding: 0;
  828. z-index: 100;
  829. }
  830. .error-box-border {
  831. border-color: #f4645f!important;
  832. }
  833. .x-btn-blank:hover, .x-btn-blank[disabled] {
  834. border: 1px solid #adadad;
  835. background: #e6e6e6;
  836. color: #333;
  837. }
  838. .mobile-register .row .auto-width {
  839. width: auto!important;
  840. }
  841. .select-dot input {
  842. background: url("/images/all/dot.png") no-repeat;
  843. background-position-x: 353px;
  844. background-position-y: 10px;
  845. }
  846. .mobile-register .row .logo-text {
  847. font-size: 12px;
  848. width: 180px;
  849. position: relative;
  850. top: 5px;
  851. left: 175px;
  852. text-align: center;
  853. color: #999;
  854. line-height: 20px;
  855. }
  856. .logo-img-area {
  857. width: 130px;
  858. height: 130px;
  859. }
  860. .logo-img-area .preview-logo-img {
  861. max-width: 130px;
  862. max-height: 130px;
  863. }
  864. .no-tags {
  865. float: left;
  866. padding: 2px 14px;
  867. line-height: 20px;
  868. border: #5078cb 1px solid;
  869. border-radius: 5px;
  870. font-size: 12px;
  871. margin: 0 3px;
  872. background: #5078cb;
  873. color: #fff;
  874. margin-top: 5px;
  875. }
  876. .mobile-register .row .add-tag-btn {
  877. position: absolute;
  878. right: 24px;
  879. color: #5078cb;
  880. font-size: 12px;
  881. cursor: pointer;
  882. }
  883. .mobile-register .row .tags-box {
  884. margin-top: 15px;
  885. }
  886. .mobile-register .row p {
  887. color: red;
  888. }
  889. .mobile-register .row .form-control:focus{
  890. border-color: #5078cb;
  891. box-shadow: none;
  892. }
  893. .x-input:focus, .x-input-blank:focus {
  894. border-color: #5078cb;
  895. box-shadow: none;
  896. }
  897. .mobile-register .row {
  898. margin: 0px;
  899. padding:0;
  900. }
  901. .mobile-register .row .tags-list ul{
  902. list-style: none;
  903. }
  904. .mobile-register .row .tags-list ul li {
  905. display: inline-block;
  906. padding: 2px 14px;
  907. line-height: 20px;
  908. border: #5078cb 1px solid;
  909. border-radius: 5px;
  910. font-size: 12px;
  911. color: #5078cb;
  912. margin: 0 3px;
  913. }
  914. .mobile-register .row .tags-list ul li i{
  915. font-size: 12px;
  916. color: red;
  917. position: relative;
  918. top: -3px;
  919. right: -12px;
  920. }
  921. .mobile-register .row .tags-lists {
  922. margin-top: 10px;
  923. }
  924. .mobile-register .row .tags-lists em {
  925. font-style: inherit;
  926. margin-left: 163px;
  927. font-size: 12px;
  928. color: #999;
  929. }
  930. .mobile-register .row .tags-lists span {
  931. float: left;
  932. padding: 2px 14px;
  933. line-height: 20px;
  934. border: #5078cb 1px solid;
  935. border-radius: 5px;
  936. font-size: 12px;
  937. color: #5078cb;
  938. margin: 0 3px;
  939. }
  940. .mobile-register .row .x-text-tip {
  941. color: #777;
  942. margin-top: 15px;
  943. }
  944. .mobile-register .row .x-text-tip i {
  945. margin-right: 5px;
  946. }
  947. </style>