StepFirst.vue 30 KB

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