nBodyone.vue 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558
  1. <template>
  2. <div class="bheader">
  3. <!-- 弹框 -->
  4. <div class="tanchuang">
  5. <el-dialog
  6. :visible.sync="dialogVisible" width="600px" center class='dialog-box'>
  7. <span class="dialog-content"><img src="../../../static/img/warning.png" height="30" width="30" alt=""><p>登陆后才可申请经纪商!</p></span><br>
  8. <button @click='toLogin()'>立即登陆</button>
  9. </el-dialog>
  10. </div>
  11. <div class="banner"></div>
  12. <div class="bcontent">
  13. <div class="tablist">
  14. <el-steps :active="active" finish-status="success" align-center :space="310">
  15. <el-step title="填写申请信息"></el-step>
  16. <el-step title="审核中"></el-step>
  17. <el-step title="审核通过"></el-step>
  18. </el-steps>
  19. </div>
  20. <div class="apply-form">
  21. <div class="title-line">
  22. <h2>经纪商申请</h2>
  23. </div>
  24. <div class="apply-form-box">
  25. <!-- 申请标准 -->
  26. <div class="appstandard">
  27. <h4>经纪商申请标准:</h4>
  28. <h5>经纪商是具有一定资源并能独立运营的公司、机构或团体。</h5>
  29. <p v-for='stand in standList'>{{stand.word}}</p>
  30. </div>
  31. <!-- 表单 -->
  32. <div class="form-content">
  33. <el-form ref="form" :model="form" label-width="80px">
  34. <el-form-item label="公司/机构名称 :">
  35. <el-input v-model="form.name" placeholder="请输入您所在的公司或者机构名称"></el-input>
  36. </el-form-item>
  37. <el-form-item label="姓名 :">
  38. <el-input v-model="form.contacts" placeholder="请输入您的姓名"></el-input>
  39. </el-form-item>
  40. <el-form-item label="手机号 :">
  41. <el-input placeholder="请输入您的手机号码" v-model="form.mobile" class="input-with-select">
  42. <el-select v-model="form.mobile_area" slot="prepend" placeholder="请选择" class='tel-select'>
  43. <el-option :label="msg.ch_name" :value="msg.code" v-for='msg in telarea'></el-option>
  44. </el-select>
  45. </el-input>
  46. </el-form-item>
  47. <el-form-item label="其他联系方式 :">
  48. <el-input type="textarea" v-model="form.other" placeholder="请输入您的其他联系方式 如: 微信、邮箱等"></el-input>
  49. </el-form-item>
  50. <el-form-item label="所在地 :">
  51. <el-select v-model="form.country" placeholder="所属国家" class='local'>
  52. <el-option
  53. v-for="item in opcountry"
  54. :label="item.ch_name"
  55. :value="item.ch_name">
  56. </el-option>
  57. </el-select>
  58. <el-select v-model="form.area" placeholder="所属省份" class='local' :disabled='chcity'>
  59. <el-option
  60. v-for="item in city"
  61. :label="item.name"
  62. :value="item.name">
  63. </el-option>
  64. </el-select>
  65. </el-form-item>
  66. <button type='button' class="apply-btn" @click='apply()'>立即申请</button>
  67. </el-form>
  68. <p class="tip">*您好,我们尊重每一个客户的隐私。 一旦提交了以上内容则表明您同意FX66使用以上提供的信息与您联系,为您解答您所咨询的产品及服务。</p>
  69. </div>
  70. </div>
  71. <!-- 底部 -->
  72. <div class="server-bottom">
  73. <div class="bt-title">
  74. <hr>
  75. <h3>联系我们 快速申请</h3>
  76. <hr>
  77. </div>
  78. <h4>Feel Free to Contact Us</h4>
  79. <ul class="serverList">
  80. <li @mouseenter='ser1=true' @mouseleave='ser1=false'>
  81. <img src="../../../static/img/phone1.png" v-show='ser1==false'>
  82. <img src="../../../static/img/phoneHover.png" v-show='ser1==true'>
  83. <p>86-17354718363</p>
  84. </li>
  85. <li @mouseenter='ser2=true,kefu=true' @mouseleave='ser2=false,kefu=false'>
  86. <img src="../../../static/img/wx.png" v-show='ser2==false'>
  87. <img src="../../../static/img/wxHover.png" v-show='ser2==true'>
  88. <p>fx66客服</p>
  89. </li>
  90. </ul>
  91. <img src="../../../static/img/fx66kefufu.jpg" class="kefu" v-show='kefu==true'>
  92. </div>
  93. </div>
  94. </div>
  95. </div>
  96. </template>
  97. <script>
  98. export default {
  99. data() {
  100. return {
  101. dialogVisible: false,
  102. regshow:2,
  103. active: 0,
  104. ser1:false,
  105. ser2:false,
  106. kefu:false,
  107. serverListpic:[
  108. {
  109. serverhover:false,
  110. src1:'../../../static/img/phone1.png',
  111. src2:'../../../static/img/phoneHover.png',
  112. msg:'86-17354718363'
  113. },
  114. {
  115. serverhover:false,
  116. src1:'../../../static/img/wx.png',
  117. src2:'../../../static/img/wxHover.png',
  118. msg:'fx66客服'
  119. }
  120. ],
  121. standList:[
  122. {
  123. word:'1.经纪商所辖客户交易手续费的一部分作为返佣;'
  124. },
  125. {
  126. word:'2.经纪商可自行设置客户的提款手续费标准;'
  127. },
  128. {
  129. word:'3.经纪商可招募代理商,并在经纪商后台调整代理商返佣标准;'
  130. },
  131. {
  132. word:'4.经纪商所辖客户有不当得利的行为(恶意刷单、利用BUG等),手续费不返还;'
  133. },
  134. {
  135. word:'5.经纪商可在后台查看直发客户及代理客户的交易统计表;'
  136. }
  137. ],
  138. telarea:[],
  139. options: [],
  140. //表单数据
  141. Authorization:'',
  142. chcity:false,
  143. telarea:[],
  144. opcountry: [],
  145. city:[],
  146. form: {
  147. company:'',
  148. contacts: '',
  149. mobile:'',
  150. mobile_area:'',
  151. other: '',
  152. country:'',
  153. area:'',
  154. },
  155. };
  156. },
  157. methods: {
  158. toLogin: function(){
  159. this.dialogVisible = false;
  160. this.$router.push({path:'/home'});
  161. },
  162. msgSave: function(){
  163. console.log(this.form);
  164. sessionStorage.setItem('msgform',JSON.stringify(this.form));
  165. sessionStorage.setItem('country',this.country);
  166. sessionStorage.setItem('area',this.area);
  167. },
  168. apply:function(){
  169. const Form = this.form;
  170. const params = new URLSearchParams();
  171. for (let item in Form){
  172. params.append(item,Form[item]);
  173. }
  174. this.axios.post('https://dev407.33.cn/api/broker/apply',params,{headers:{Authorization: this.Authorization}}).then((res)=>{
  175. const result = res.data;
  176. if(result.code!=200){
  177. if(result.code==1005){
  178. this.$notify({
  179. title:'提示',
  180. message: '请先登陆',
  181. type:'warning',
  182. })
  183. }else{
  184. this.$notify({
  185. title:'提示',
  186. message: result.message,
  187. type:'warning',
  188. })
  189. }
  190. // this.msgSave();
  191. // this.$router.push({path:'/verify'});
  192. }else{
  193. alert('申请成功');
  194. this.msgSave();
  195. this.$router.push({path:'/verify'});
  196. }
  197. })
  198. },
  199. changemsg: function(){
  200. this.regshow = sessionStorage.getItem('regshow')? sessionStorage.getItem('regshow'):2;
  201. this.Authorization = sessionStorage.getItem('token_code')? sessionStorage.getItem('token_code'):'';
  202. },
  203. showDialog: function(){
  204. if(this.regshow!=4){
  205. this.dialogVisible = true;
  206. }else{
  207. this.dialogVisible = false;
  208. }
  209. }
  210. },
  211. computed:{
  212. country(){
  213. return this.form.country
  214. },
  215. area(){
  216. return this.form.area
  217. }
  218. },
  219. watch:{
  220. area: function(val){
  221. this.area = val;
  222. },
  223. country: function(val){
  224. this.form.country = val;
  225. if (this.form.country!='中国'){
  226. this.form.area='';
  227. this.chcity=true
  228. }else{
  229. this.chcity=false;
  230. }
  231. },
  232. area: function(val){
  233. this.form.area = val
  234. },
  235. '$route': 'changemsg',
  236. },
  237. beforeRouteEnter(to, from, next){
  238. next(vm=>{
  239. if(vm.regshow!=4){
  240. vm.dialogVisible = true;
  241. }else{
  242. vm.dialogVisible = false;
  243. }
  244. })
  245. },
  246. mounted(){
  247. this.changemsg();
  248. this.showDialog();
  249. this.axios.get('https://dev407.33.cn/api/data/country',{}).then((res)=>{
  250. this.telarea = res.data.data;
  251. })
  252. this.axios.get('https://dev407.33.cn/api/data/country?type=name',{}).then((res)=>{
  253. this.opcountry = res.data.data;
  254. })
  255. this.axios.get('https://dev407.33.cn/api/data/city',{}).then((res)=>{
  256. this.city = res.data.data;
  257. })
  258. }
  259. }
  260. </script>
  261. <style scoped>
  262. .bcontent{
  263. height: 1100px;
  264. }
  265. .tanchuang{
  266. width: 1200px;
  267. margin: 0 auto;
  268. .dialog-box{
  269. }
  270. .dialog-content{
  271. position: relative;
  272. top: 22px;
  273. font-size: 24px;
  274. color: #1a6fa6;
  275. text-align: center;
  276. img{
  277. float: left;
  278. position: relative;
  279. left: 120px;
  280. top: 18px;
  281. }
  282. }
  283. button{
  284. margin-left: 215px;
  285. border: 1px solid #e5e5e5;
  286. color: #1a6fa6;
  287. height: 35px;
  288. width: 120px;
  289. border-radius: 25px;
  290. margin-top: 30px;
  291. margin-bottom: 40px;
  292. font-size: 16px;
  293. font-weight: 700;
  294. transition: all .3s ease 0s;
  295. -moz-transition: all .3s ease 0s;
  296. -webkit-transition: all .3s ease 0s;
  297. -o-transition: all .3s ease 0s;
  298. cursor: pointer;
  299. }
  300. button:hover{
  301. color: #fff;
  302. background: #1a6fa6;
  303. }
  304. }
  305. .bheader{
  306. position: relative;
  307. background: #f5f8ff;
  308. .banner{
  309. height: 400px;
  310. width: 100%;
  311. background: #ccc;
  312. margin-top: 75px;
  313. background: url('../../../src/assets/img/nbanner.png') no-repeat center center;
  314. margin-bottom: 10px;
  315. }
  316. .tablist{
  317. width: 1200px;
  318. background: #fff;
  319. margin: 0 auto;
  320. margin-bottom: 10px;
  321. height: 110px;
  322. padding-top: 20px;
  323. padding-left: 140px;
  324. }
  325. .tip{
  326. margin-top: 22px;
  327. padding-left: 28px;
  328. color: #3884d3;
  329. font-size: 14px;
  330. }
  331. .apply-form{
  332. background: #fff;
  333. width: 1200px;
  334. margin: 0 auto 20px;
  335. .title-line{
  336. border-bottom: 1px solid #e5e5e5;
  337. margin-bottom: 50px;
  338. height: 80px;
  339. h2{
  340. line-height: 80px;
  341. font-size: 24px;
  342. font-weight: 700;
  343. }
  344. }
  345. .apply-form-box{
  346. text-align: left;
  347. margin: 0 75px;
  348. color: #333;
  349. display: flex;
  350. .appstandard{
  351. height: 320px;
  352. width: 530px;
  353. border: 1px solid #e5e5e5;
  354. padding: 20px;
  355. position: relative;
  356. text-align: left;
  357. h4{
  358. font-size: 16px;
  359. line-height: 1;
  360. }
  361. h5{
  362. color: #0176c3;
  363. margin-top: 20px;
  364. font-size: 14px;
  365. }
  366. p{
  367. margin-top: 20px;
  368. font-size: 14px;
  369. }
  370. }
  371. .appstandard:before{
  372. content: "";
  373. position: absolute;
  374. top: 50%;
  375. right: -10px;
  376. transform: translateY(-50%);
  377. display: block;
  378. border-left: 10px solid #e5e5e5;
  379. border-top: 10px solid transparent;
  380. border-bottom: 10px solid transparent;
  381. }
  382. .appstandard:after{
  383. content: "";
  384. position: absolute;
  385. top: 50%;
  386. right: -8px;
  387. transform: translateY(-50%);
  388. display: block;
  389. border-left: 8px solid #fff;
  390. border-top: 8px solid transparent;
  391. border-bottom: 8px solid transparent;
  392. }
  393. .form-content{
  394. width: 480px!important;
  395. margin-left: 40px;
  396. .apply-btn{
  397. line-height: 36px;
  398. position: relative;
  399. font-size: 14px;
  400. display: block;
  401. width: 342px;
  402. margin-left: 138px;
  403. border: 0;
  404. border-radius: 0;
  405. background-color: #0176c3;
  406. color: #fff;
  407. height: 40px;
  408. line-height: 40px;
  409. padding-top: 0;
  410. cursor: pointer;
  411. }
  412. .tel-select{
  413. width: 130px;
  414. }
  415. .local{
  416. width: 165px;
  417. }
  418. .local:nth-of-type(2){
  419. margin-left: 8px;
  420. }
  421. }
  422. }
  423. .server-bottom{
  424. position: relative;
  425. width: 1200px;
  426. margin: 0 auto;
  427. padding-top: 50px;
  428. .bt-title{
  429. width: 1200px;
  430. display: flex;
  431. align-items: center;
  432. justify-content: space-between;
  433. hr{
  434. width: 420px;
  435. height: 1px;
  436. background-color: #e5e5e5;
  437. border: 0;
  438. }
  439. h3{
  440. font-size: 25px;
  441. font-weight: 700;
  442. line-height: 1;
  443. }
  444. }
  445. h4{
  446. font-size: 16px;
  447. color: #999;
  448. margin-top: 12px;
  449. }
  450. .serverList{
  451. margin-top: 50px;
  452. padding: 0 400px 70px;
  453. display: flex;
  454. justify-content: space-between;
  455. li{
  456. img{
  457. margin-bottom: 20px;
  458. }
  459. p{
  460. line-height: 1;
  461. font-size: 20px;
  462. color:#2c3e50;
  463. }
  464. }
  465. }
  466. .kefu{
  467. position: absolute;
  468. top: 150px;
  469. left: 850px;
  470. width: 120px;
  471. height: 120px;
  472. }
  473. }
  474. }
  475. }
  476. </style>
  477. <style>
  478. .bheader{
  479. .el-step__icon{
  480. border:2px solid #bfcbd9;
  481. }
  482. .el-step__icon-inner{
  483. color: #bfcbd9;
  484. }
  485. .is-process .el-step__icon{
  486. background: #bfcbd9;
  487. }
  488. .is-process .el-step__icon-inner{
  489. color:#fff;
  490. }
  491. .is-success .el-step__icon{
  492. background: #20a0ff;
  493. border: none;
  494. }
  495. .is-success .el-step__icon-inner{
  496. color: #fff;
  497. }
  498. .is-success .el-step__line{
  499. border-color: #20a0ff;
  500. }
  501. .el-step__main .is-success{
  502. color: #20a0ff;
  503. }
  504. .el-form-item{
  505. margin-bottom: 22px;
  506. width: 530px;
  507. }
  508. .el-form-item__label{
  509. }
  510. .el-form-item__content{
  511. width: 342px;
  512. float: left;
  513. margin-left: 0 !important;
  514. }
  515. .el-input__inner{
  516. height: 36px;
  517. }
  518. .el-select{
  519. display: inline-block;
  520. position: relative;
  521. .el-input{
  522. display: block;
  523. position: relative;
  524. font-size: 14px;
  525. }
  526. }
  527. .el-form-item__label{
  528. width: 138px !important;
  529. text-align: right;
  530. vertical-align: middle;
  531. float: left;
  532. font-size: 14px;
  533. color: #48576a;
  534. line-height: 1;
  535. padding: 11px 12px 11px 0;
  536. box-sizing: border-box;
  537. }
  538. .el-dialog__close:before{
  539. width: 24px;
  540. }
  541. .input-with-select .el-input-group__prepend {
  542. background-color: #fff;
  543. }
  544. }
  545. </style>