addenterprise.vue 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631
  1. <template>
  2. <div>
  3. <div class="tanchuang addspace" v-if="isadd">
  4. <div class="tc-conent"><img src="/static/img/qiye/dengji@1x.png" alt=""></div>
  5. <div class="tc-text"><span>添加企业成功</span></div>
  6. </div>
  7. <div>
  8. <div class="gs-worp qy-worp tj-up" @click="hieadlookup">
  9. <div class="qy-title" style="position: relative;">
  10. <ul class="over">
  11. <li class="left xs" v-for="(d, i) in tab" :key="i" :class= "{qyactive:nowindex == i}" @click="tabwatch(i)">{{d.name}}</li>
  12. </ul>
  13. </div>
  14. <div class="qy-conent" :class= "{showqiye:nowindex == 0}" style="padding-top: 60px;">
  15. <ul style="padding:0;text-align: center;">
  16. <li>
  17. <span class="qy-biaoti"><span class="xingxing">*</span>企业名称</span>
  18. <input class="inpind" ref="qyname" @change= "spaceName" @focus="heidqyname1" @blur="showqyname1" type="text" :class= "{showborder:qymingzi&&isspaceName&&isspaceNameempty}" placeholder="请填写企业全称">
  19. <div v-show="isqyname1" class="qy-Tips Tips-buttom"><span ref="qyno" style="color:red"></span></div>
  20. </li>
  21. <li>
  22. <span class="qy-biaoti">所属行业</span>
  23. <select @change="industry" @click="colors" ref="qyindustry" class="industry border" style="padding-left:5px;color: #BCC8D8;" name="selectAge" id="selectAge">
  24. <option value="" disabled selected hidden>请选择所属行业</option>
  25. <option value="贸易零售">贸易零售</option>
  26. <option value="制造加工">制造加工</option>
  27. <option value="服务业">服务业</option>
  28. <option value="教育">教育</option>
  29. <option value="信息传媒">信息传媒</option>
  30. <option value="金融">金融</option>
  31. <option value="高新科技">高新科技</option>
  32. <option value="电子商务">电子商务</option>
  33. <option value="互联网">互联网</option>
  34. <option value="医疗服务">医疗服务</option>
  35. <option value="艺术娱乐">艺术娱乐</option>
  36. <option value="地产建筑">地产建筑</option>
  37. <option value="公共服务">公共服务</option>
  38. <option value="开采冶金">开采冶金</option>
  39. <option value="交通仓储">交通仓储</option>
  40. <option value="农林牧渔">农林牧渔</option>
  41. <option value="其他">其他</option>
  42. </select>
  43. </li>
  44. <li>
  45. <span class="qy-biaoti"><span class="xingxing">*</span>企业地址</span>
  46. <input ref="address" @blur="address" @focus="heidqyaddress" class="inpind" type="text" :class= "{showborder:isaddress&&isaddressname}" placeholder="输入企业详细地址">
  47. <!-- <div class="addbiaoqian">
  48. <v-distpicker @selected= 'selected' @province= 'qyprovince' :placeholders= 'placeholder'></v-distpicker>
  49. <input ref="address" @change="address" class="qy-xiangxi" type="text" placeholder="输入企业详细地址">
  50. </div> -->
  51. <div v-show="isqyaddress" class="qy-Tips Tips-buttom">
  52. <span ref="ress" style="color:red"></span>
  53. </div>
  54. </li>
  55. <li>
  56. <span class="qy-biaoti"><span class="xingxing">*</span>您的姓名</span>
  57. <input class="inpind" @blur= "yzusername" @focus="heidyzusername" ref="name" :class= "{showborder:isname&&isnameempty}" type="text" value="" placeholder="请输入姓名">
  58. <div v-show="isyzusername" class="qy-Tips Tips-buttom"><span ref="usname" style="color:red"></span></div>
  59. </li>
  60. <li><span class="qy-biaoti">手机号</span><span class="qy-mobile industry">{{mytoken.account.mobile}}</span></li>
  61. <li style="margin-bottom: 64px;">
  62. <span class="qy-biaoti">邮箱</span>
  63. <input class="inpind" @blur="email" @focus="heidemail" ref="email" :class= "{showborder:isemail}" type="email" value="">
  64. <div v-show="isheidemail" class="qy-Tips Tips-buttom"><span style="color:red" v-html="Email"></span></div>
  65. </li>
  66. <li>
  67. <div class="qy-anniu">
  68. <span @click= "Preservation" class="qy-xiugai dianji" style="left: 0;">保存</span>
  69. <span @click= "tjquxiao" class="qy-quxiao xs">取消</span>
  70. </div>
  71. </li>
  72. </ul>
  73. </div>
  74. <div class="qy-conent jr-conent" :class= "{showqiye:nowindex == 1}">
  75. <ul style="padding:0;position: relative;">
  76. <li>
  77. <span class="qy-biaoti"><span class="xingxing marght">*</span>查找企业</span>
  78. <input @click.stop @input="Testingqyname" @focus="Testingqyname" @blur="showwarning" ref="lookupqyname" class="inpind" :class= "{showborder:isgsname}" type="text" placeholder="输入企业名称或管理员">
  79. <span v-show="iswarning" class="warning" ref="warningqyname"></span>
  80. </li>
  81. <!-- 匹配企业后显示的内容 -->
  82. <!-- <li v-if="isqylist" class="hied" :class= "{showlookup:islookup}"> -->
  83. <div class="lookup hied" :class= "{showlookup:islookup}" @click.stop>
  84. <ul>
  85. <li v-for="(d, i) in arr" :key="i" @click="qylist(i)" :class="{'hui':newindex === i}">
  86. <!-- <span>{{d.adminMobile}}</span> -->
  87. <span>{{d.admin}}</span>
  88. <span>{{d.name}}</span>
  89. </li>
  90. </ul>
  91. </div>
  92. <!-- </li> -->
  93. <li>
  94. <span class="qy-biaoti"><span class="xingxing marght">*</span>姓<span style="width:2em;display: inline-block;"></span>名</span>
  95. <input @blur.prevent="Testingname" @focus="showTestname" class="inpind" type="text" :class= "{showborder:isTestingname&&isregname}" ref="lookupname" placeholder="输入真实姓名,待管理员审核">
  96. <span v-show="isTestname" class="warning" style="width:110px" ref="warningname"></span>
  97. </li>
  98. <li>
  99. <div class="qy-anniu" style="margin-top: 90px;">
  100. <span @click="Submission" class="qy-xiugai dianji" style="left: 0;">提交</span>
  101. <span @click= "tjquxiao" class="qy-quxiao xs">取消</span>
  102. </div>
  103. </li>
  104. </ul>
  105. </div>
  106. </div>
  107. </div>
  108. </div>
  109. </template>
  110. <script>
  111. import Session from '@/utils/session'
  112. // import VDistpicker from 'v-distpicker'
  113. import { setTimeout, clearTimeout } from 'timers';
  114. export default {
  115. data(){
  116. return {
  117. // province:'',//省
  118. // city:'',//市
  119. // area:'',//区
  120. qymingzi: false,//企业名是否注册
  121. Email: '',
  122. mytoken: Session.get(),//本地储存的用户信息
  123. reg: new RegExp(/[\@\#\$\%\&\*!!\¥]/),//非法字符
  124. regname:new RegExp(/[\@\#\$\%\&\*!!\¥0-9]/),//非法字符加数字
  125. isaddress: false,//公司地址验证
  126. isaddressname: false,//公司地址是否为空
  127. isname: true,//姓名验证
  128. isnameempty:false,//姓名是否为空
  129. isspaceName: false,//公司名验证
  130. isspaceNameempty:false,//公司名是否为空
  131. isemail: true,//验证邮箱
  132. // disabled: true,
  133. isadd: false,//添加成功弹窗
  134. // placeholder:{province:"省", city:"市", area:"区"},
  135. // placeholde:{province:"", city:"", area:""},
  136. tab:[
  137. {name:'创建新企业'},
  138. {name:'加入企业'},
  139. ],
  140. nowindex:0,
  141. newindex:'',
  142. islookup:false,
  143. isTestingname:false,
  144. isregname:false,
  145. companyId:null,
  146. admin:null,
  147. isgsname:false,
  148. arr:[],
  149. times:null,
  150. iswarning:false,//加入企业提示语
  151. isTestname:false,//加入企业姓名提示音
  152. isqyname1:false,
  153. isqyaddress:false,//地址
  154. isyzusername:false,
  155. isheidemail:false,
  156. iscompanyname:false,
  157. }
  158. },
  159. components:{
  160. // VDistpicker
  161. },
  162. mounted(){
  163. if (this.mytoken.account.realname) {
  164. this.$refs.name.value = this.mytoken.account.realname;
  165. this.isnameempty = true;
  166. } else {
  167. this.$refs.name.value = '';
  168. };
  169. if (this.mytoken.account.email) {
  170. this.$refs.email.value = this.mytoken.account.email;
  171. } else {
  172. this.$refs.email.value = '';
  173. }
  174. },
  175. methods: {
  176. tabwatch(i){
  177. this.nowindex = i;
  178. },
  179. colors(){
  180. this.$refs.qyindustry.style.color = 'black'
  181. },
  182. // 行业
  183. industry(){
  184. this.$refs.qyindustry.style.border = '1px solid #1E88F5'
  185. },
  186. //取消添加企业
  187. tjquxiao(){
  188. document.documentElement.scrollTop = 0;
  189. this.$router.push({name:'company',});
  190. },
  191. //检测企业名称1
  192. spaceName(){
  193. let qyname = this.$refs.qyname.value.replace(/\s+/g, "");//公司名字过滤空格
  194. if(qyname == ''){
  195. this.$refs.qyno.innerHTML = ' <img style="width:14px" src="/static/img/warning.png" alt=""> 企业名称不能为空';
  196. this.isspaceNameempty = false;
  197. } else {
  198. this.isspaceNameempty = true;
  199. if (this.reg.test(qyname)) {
  200. this.$refs.qyno.innerHTML = ' <img style="width:14px" src="/static/img/warning.png" alt=""> 不能包含符号等非法字符';
  201. this.isspaceName = false;
  202. } else {
  203. this.$refs.qyno.innerHTML = '';
  204. this.isspaceName = true;
  205. let token = this.mytoken.token;
  206. this.$ajax({
  207. url: this.$url.api+"/api/account/accountCenter/checkSpaceName"+`?spaceName=${qyname}`,
  208. method :'get',
  209. headers: {
  210. "Authorization":token
  211. }
  212. })
  213. .then(res=>{
  214. if (res.data.data.success) {
  215. this.qymingzi = true;
  216. this.$refs.qyno.innerHTML = '<span style="color:green"><img style="width:14px" src="/static/img/ok.png" alt=""></span>';
  217. } else {
  218. this.$refs.qyno.innerHTML = ' <img style="width:14px" src="/static/img/warning.png" alt=""> 该企业已在优软云注册';
  219. this.qymingzi = false;
  220. }
  221. })
  222. }
  223. }
  224. },
  225. //隐藏企业1提示语
  226. heidqyname1(){
  227. this.isqyname1 = false;
  228. },
  229. showqyname1(){
  230. let qyname = this.$refs.qyname.value.replace(/\s+/g, "");//公司名字过滤空格
  231. if(qyname == ''){
  232. this.$refs.qyno.innerHTML = ' <img style="width:14px" src="/static/img/warning.png" alt=""> 企业名称不能为空';
  233. };
  234. this.isqyname1 = true;
  235. },
  236. //检测企业名称2
  237. Testingqyname(){
  238. this.iswarning = false;//提示语隐藏
  239. let qyname = this.$refs.lookupqyname.value.replace(/\s+/g, "");//企业名字
  240. let token = this.mytoken.token;
  241. clearTimeout(this.times);
  242. if(qyname == ''){
  243. this.$refs.warningqyname.innerHTML = '<img style="width:14px" src="/static/img/warning.png" alt=""> 企业或管理员不能为空';
  244. this.islookup = false;
  245. } else {
  246. this.times = setTimeout(()=>{
  247. this.$ajax({
  248. url: this.$url.api+"/api/account/accountCenter/company/isOpen",//http://192.168.253.41:8560
  249. method:'GET',
  250. params: {
  251. companyName: qyname
  252. },
  253. headers:{
  254. "Authorization":token,
  255. }
  256. })
  257. .then(res=>{
  258. if (res.data.success) {
  259. this.newindex = '';
  260. this.arr = res.data.data;
  261. this.$refs.warningqyname.innerHTML = '';
  262. this.islookup = true;
  263. this.companyId = null;
  264. this.isgsname = true;//公司是否存在
  265. } else if (res.data.success == false && res.data.message == '公司不存在') {
  266. this.$refs.warningqyname.innerHTML = '<img style="width:14px" src="/static/img/warning.png" alt=""> 企业或管理员不存在';
  267. this.islookup = false;
  268. this.isgsname = false;//公司是否存在
  269. } else {
  270. this.$message.error('请求失败,请重试');
  271. this.islookup = false;
  272. this.$refs.warningqyname.innerHTML = '<img style="width:14px" src="/static/img/warning.png" alt="">'
  273. }
  274. })
  275. },500)
  276. }
  277. },
  278. //企业名称2提示语显示
  279. showwarning(){
  280. let qyname = this.$refs.lookupqyname.value.replace(/\s+/g, "");//企业名字
  281. if (!this.companyId && qyname!='') {
  282. this.$refs.warningqyname.innerHTML = '<img style="width:14px" src="/static/img/warning.png" alt=""> 请选择要加入的企业';
  283. } else {
  284. this.$refs.warningqyname.innerHTML = '<img style="width:14px" src="/static/img/ok.png" alt="">'
  285. }
  286. setTimeout(()=>{
  287. this.iswarning = true;
  288. },100)
  289. },
  290. //验证个人姓名1
  291. yzusername(){
  292. this.isyzusername = true;
  293. let name = this.$refs.name.value.replace(/\s+/g, "");//姓名过滤空格
  294. if (name == '') {
  295. this.$refs.usname.innerHTML = '<img style="width:14px" src="/static/img/warning.png" alt=""> 个人姓名不能为空';
  296. this.isnameempty = false;
  297. } else {
  298. this.isnameempty = true;
  299. if (this.reg.test(name)) {
  300. this.$refs.usname.innerHTML = '<img style="width:14px" src="/static/img/warning.png" alt=""> 不能包含符号等非法字符';
  301. this.isname = false;
  302. } else {
  303. this.$refs.usname.innerHTML = '<img style="width:14px" src="/static/img/ok.png" alt="">';
  304. this.isname = true;
  305. }
  306. }
  307. },
  308. heidyzusername(){
  309. this.isyzusername = false;
  310. },
  311. //验证个人姓名2
  312. Testingname(){
  313. this.isTestname = true;
  314. let name = this.$refs.lookupname.value.replace(/\s+/g, "");//姓名过滤空格
  315. if (name == '') {
  316. this.$refs.warningname.innerHTML = '<img style="width:14px" src="/static/img/warning.png" alt=""> 姓名不能为空';
  317. this.isTestingname = false;
  318. } else {
  319. this.isTestingname = true;
  320. if (this.regname.test(name)) {
  321. this.$refs.warningname.innerHTML = '<img style="width:14px" src="/static/img/warning.png" alt=""> 姓名不能包含符号、数字等非法字符';
  322. this.isregname = false;
  323. } else {
  324. this.$refs.warningname.innerHTML = '<img style="width:14px" src="/static/img/ok.png" alt="">';
  325. this.isregname = true;
  326. }
  327. }
  328. },
  329. //个人姓名2提示语隐藏
  330. showTestname(){
  331. this.isTestname = false;
  332. },
  333. // 选择要加入的企业
  334. qylist(i){
  335. let companyName = JSON.parse(window.sessionStorage.getItem("companyname"));
  336. this.companyId = this.arr[i].id;
  337. this.admin = this.arr[i].admin;
  338. this.newindex = i;
  339. this.$refs.lookupqyname.value = this.arr[i].name;
  340. this.islookup = false;
  341. for (let j = 0; j < companyName.length; j++) {
  342. if (this.arr[i].name == companyName[j]) {
  343. this.iscompanyname = true
  344. break
  345. } else {
  346. this.iscompanyname = false
  347. }
  348. }
  349. if (this.iscompanyname || this.admin == this.mytoken.account.realname) {
  350. this.$refs.warningqyname.innerHTML = '<img style="width:14px" src="/static/img/warning.png" alt=""> 您的账户已在企业服务中,请勿重复加入';
  351. } else {
  352. this.$refs.warningqyname.innerHTML = '<img style="width:14px" src="/static/img/ok.png" alt="">';
  353. // this.$refs.lookupqyname.style.border = '1px solid #1E88F5';
  354. }
  355. },
  356. //隐藏企业列表
  357. hieadlookup(){
  358. this.islookup = false;
  359. },
  360. //加入企业提交按钮
  361. Submission(){
  362. let token = this.mytoken.token;
  363. let qyname = this.$refs.lookupqyname.value.replace(/\s+/g, "");//企业名字
  364. let username = this.$refs.lookupname.value.replace(/\s+/g, "");//姓名过滤空格
  365. if (qyname == '') {
  366. this.$message.error('企业或管理员不能为空');
  367. } else if(!this.isgsname) {
  368. this.$message.error('企业或管理员不存在');
  369. } else if (!this.companyId) {
  370. this.$message.error('请选择要加入的企业');
  371. } else if (this.admin == this.mytoken.account.realname || this.iscompanyname) {
  372. this.$message.error('您的账户已在企业服务中,请勿重复加入');
  373. } else if (!this.isTestingname) {
  374. this.$message.error('姓名不能为空');
  375. } else if (!this.isregname) {
  376. this.$message.error('姓名不能包含符号、数字等非法字符');
  377. } else {
  378. this.$store.state.isloading = true;
  379. this.$ajax({
  380. url: this.$url.api+'/api/account/accountCenter/company/join',
  381. method:'POST',
  382. data:{
  383. username:username,
  384. accountId:this.mytoken.account.id,
  385. companyId:this.companyId,
  386. },
  387. headers:{
  388. "Authorization":token,
  389. }
  390. })
  391. .then(res=>{
  392. this.$store.state.isloading = false;
  393. if (res.data.success) {
  394. this.$message.success('提交成功,待管理员批准加入');
  395. // this.$store.state.ishongdian = true;//显示红点
  396. setTimeout(()=>{
  397. this.$router.push({name:'company'});
  398. document.documentElement.scrollTop = 0;
  399. },3000)
  400. } else {
  401. this.$message.error(res.data.message);
  402. }
  403. })
  404. }
  405. },
  406. //验证公司详细地址
  407. address(){
  408. this.isqyaddress = true;
  409. let address = this.$refs.address.value.replace(/\s+/g, "");//过滤空格
  410. if (address == '') {
  411. this.$refs.ress.innerHTML = '<img style="width:14px" src="/static/img/warning.png" alt=""> 企业地址不能为空';
  412. this.isaddressname = false;
  413. } else {
  414. this.isaddressname = true;
  415. if (this.reg.test(address)) {
  416. this.$refs.ress.innerHTML = '<img style="width:14px" src="/static/img/warning.png" alt=""> 不能包含符号等非法字符';
  417. this.isaddress = false;
  418. } else {
  419. this.$refs.ress.innerHTML = '<img style="width:14px" src="/static/img/ok.png" alt="">';
  420. this.isaddress = true;
  421. }
  422. }
  423. },
  424. //地址提示隐藏
  425. heidqyaddress(){
  426. this.isqyaddress = false;
  427. },
  428. email(){
  429. this.isheidemail = true;
  430. let reg = new RegExp("^[a-z0-9A-Z]+[- | a-z0-9A-Z . _]+@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-z]{2,}$");
  431. let email = this.$refs.email.value;//邮箱
  432. if (email == '') {
  433. this.isemail = true;
  434. this.Email = '';
  435. } else {
  436. if (!reg.test(email)) {
  437. this.Email = '<img style="width:14px" src="/static/img/warning.png" alt=""> 请填写正确的邮箱';
  438. this.isemail = false;
  439. } else {
  440. this.Email = '<img style="width:14px" src="/static/img/ok.png" alt="">';
  441. this.isemail = true;
  442. }
  443. }
  444. },
  445. heidemail(){
  446. this.isheidemail = false;
  447. },
  448. //保存
  449. Preservation(){
  450. this.listLoading = true;
  451. let qyname = this.$refs.qyname.value.replace(/\s+/g, "");//公司名字
  452. let qyindustry = this.$refs.qyindustry.value;//所属行业
  453. let address = this.$refs.address.value.replace(/\s+/g, "");//公司详细地址
  454. let name = this.$refs.name.value.replace(/\s+/g, "");//个人姓名
  455. let email = this.$refs.email.value;//邮箱
  456. let token = this.mytoken.token;
  457. let uu = this.mytoken.account.uu;
  458. let mobile = this.mytoken.account.mobile;//手机号
  459. let company = {'name':qyname,'address':address,'type':qyindustry};
  460. let account = {'realname':name,'email':email,'mobile':mobile, 'uu':uu};
  461. // console.log('姓名',name)//个人姓名
  462. // console.log('企业',qyname)//企业姓名
  463. // console.log('企业名字',this.qymingzi)//企业有没有注册
  464. // console.log('企业地址',this.isaddress)//企业地址
  465. // console.log('姓名',this.isname)//个人姓名正则
  466. // console.log('企业名字',this.isspaceName)//企业名字正则
  467. // console.log('邮箱',this.isemail)//邮箱正则
  468. if (name == '') {
  469. this.$message.error('个人姓名不能为空');
  470. } else if (qyname == '') {
  471. this.$message.error('企业名称不能为空');
  472. } else {
  473. switch (this.isspaceName && this.isaddress && this.isname && this.qymingzi && this.isemail && this.isaddressname) {
  474. case this.isspaceName:
  475. if (this.isspaceName) {
  476. this.$ajax({
  477. url: this.$url.api+"/api/account/accountCenter/companyAccount/save",//http://192.168.253.31:8560
  478. method: 'post',
  479. data: {
  480. companyRegDTO:company,
  481. accountRegDTO:account,
  482. type: 0
  483. },
  484. headers: {
  485. "Authorization":token,
  486. }
  487. })
  488. .then(res=>{
  489. this.isadd = true;//添加成功弹窗
  490. setTimeout(()=>{
  491. document.documentElement.scrollTop = 0;
  492. let session = Session.get();
  493. session.account.realname = name;
  494. session.account.email = email;
  495. Session.set(session);
  496. // this.$router.push({name:'company'})
  497. this.$router.push({path: '/enterprise'});
  498. },3000)
  499. })
  500. } else {
  501. this.$message.error('企业名称不能包含符号等非法字符');
  502. }
  503. break;
  504. case this.qymingzi:
  505. this.$message.error('该企业已在优软云注册');
  506. break;
  507. case this.isaddressname:
  508. this.$message.error('企业地址不能为空');
  509. break;
  510. case this.isaddress:
  511. this.$message.error('企业地址不能包含符号等非法字符');
  512. break;
  513. case this.isname:
  514. this.$message.error('个人姓名不能包含符号等非法字符');
  515. break;
  516. case this.isemail:
  517. this.$message.error('请填写正确的邮箱');
  518. break;
  519. }
  520. }
  521. this.listLoading = false;
  522. },
  523. //获取省市区
  524. // selected(data){
  525. // this.province = data.province.value;
  526. // this.city = data.city.value;
  527. // this.area = data.area.value;
  528. // this.disabled= false
  529. // },
  530. // qyprovince(){
  531. // this.placeholder = this.placeholde
  532. // },
  533. }
  534. }
  535. </script>
  536. <style scoped>
  537. .addspace {
  538. height: 200px;
  539. border: 1px solid #cccccc
  540. }
  541. .tj-up {
  542. width: 100%;
  543. margin-bottom: 0px;
  544. padding-bottom: 1px;
  545. border-radius: 4px 4px 0 0;
  546. /* margin-top: -30px; */
  547. border: 1px solid #EEEEEE;
  548. box-shadow: 0 20px 60px 10px rgba(13,37,62,0.05);
  549. border-radius: 4px;
  550. }
  551. .tj-up li {
  552. margin-bottom: 26px;
  553. }
  554. .tj-down {
  555. width: 100%;
  556. border-top: 0;
  557. margin-bottom: 100px;
  558. }
  559. .tj-down li {
  560. margin-bottom: 26px;
  561. }
  562. .tj-down div:nth-child(2) {
  563. margin-bottom: 70px;
  564. }
  565. .addbiaoqian>>>.distpicker-address-wrapper select {
  566. height: 30px;
  567. }
  568. .addbiaoqian>>>.distpicker-address-wrapper {
  569. width: 130%;
  570. margin-bottom: 10px;
  571. }
  572. .qy-Tips {
  573. margin: 0;
  574. text-align: left;
  575. height: 26px;
  576. display: inline-block;
  577. position: absolute;
  578. margin-left: 10px;
  579. }
  580. .Tips-buttom {
  581. /* margin-left: 22%; */
  582. }
  583. .inpind {
  584. padding-left: 10px;
  585. }
  586. .qyactive {
  587. border-bottom: 3px solid #1E88F5;
  588. color: #243A52;
  589. }
  590. .qy-conent {
  591. display: none;
  592. }
  593. .showqiye {
  594. display: block !important;
  595. }
  596. .warning {
  597. color: red;
  598. margin-left: 25px;
  599. font-size: 12px;
  600. position: absolute;
  601. display: inline-block;
  602. width: 150px;
  603. text-align: left;
  604. text-indent: -16px;
  605. }
  606. .warning img {
  607. width: 14px;
  608. }
  609. .marght {
  610. margin-right: 5px;
  611. }
  612. .hui {
  613. background: #c5c5c5 !important;
  614. }
  615. .lookup > ul > li:hover {
  616. background: #f5f4f4
  617. }
  618. .lookup > ul {
  619. max-height: 140px;
  620. overflow-y: auto;
  621. }
  622. .qy-mobile {
  623. display: inline-block;
  624. text-align: left;
  625. }
  626. .qy-anniu > span {
  627. margin-left: 40px;
  628. }
  629. </style>