StepFirst.vue 30 KB

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