apply.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  1. <template>
  2. <div class="apply">
  3. <div class="banner">
  4. <img src="../assets/img/apply-banner.png">
  5. </div>
  6. <div class="tab">
  7. <el-steps :active="active" finish-status="success" align-center space="306px">
  8. <el-step title="填写申请信息"></el-step>
  9. <el-step title="审核中"></el-step>
  10. <el-step title="审核通过"></el-step>
  11. </el-steps>
  12. </div>
  13. <div class="apply-content">
  14. <div class="content-tab">
  15. <h2>经纪商申请</h2>
  16. </div>
  17. <template v-if="active!=2">
  18. <div class="from-box">
  19. <div class="left">
  20. <h4>经纪商申请标准:</h4>
  21. <h5>经纪商是具有一定资源并能独立运营的公司、机构或团体。</h5>
  22. <p>1.经纪商所辖客户交易手续费的一部分作为返佣;</p>
  23. <p>2.经纪商可自行设置客户的提款手续费标准;</p>
  24. <p>3.经纪商可招募代理商,并在经纪商后台调整代理商返佣标准;</p>
  25. <p>4.经纪商所辖客户有不当得利的行为(恶意刷单、利用BUG等),手续费不返还;</p>
  26. <p>5.经纪商可在后台查看直发客户及代理客户的交易统计表;</p>
  27. </div>
  28. <div class="right">
  29. <el-form ref="form" :model="applyForm" label-width="138px">
  30. <el-form-item label="公司/机构名称:" sizi="small">
  31. <el-input v-model="applyForm.company" placeholder="请输入您所在的公司或者机构名称"></el-input>
  32. </el-form-item>
  33. <el-form-item label="姓名:">
  34. <el-input v-model="applyForm.name" placeholder="请输入您的姓名"></el-input>
  35. </el-form-item>
  36. <el-form-item label="手机号:">
  37. <el-col :span="9">
  38. <el-select v-model="applyForm.region" placeholder="请选择" >
  39. <el-option v-for="item in contury" :label="item.ch_name" :value="item.code" :key="item.code"></el-option>
  40. </el-select>
  41. </el-col>
  42. <el-col :span="15">
  43. <el-input v-model="applyForm.phoneNumber" placeholder="请输入您的手机号码"></el-input>
  44. </el-col>
  45. </el-form-item>
  46. <el-form-item label="其他联系方式:">
  47. <el-input type="textarea" :rows="2" placeholder="请输入您的其他联系方式 如:微信、邮箱等" v-model="applyForm.other">
  48. </el-input>
  49. </el-form-item>
  50. <el-form-item label="所在地:">
  51. <el-col :span="9">
  52. <el-select v-model="applyForm.contury" placeholder="所属国家" @change="conturyChange">
  53. <el-option v-for="item in contury" :label="item.ch_name" :value="item.code" :key="item.code"></el-option>
  54. </el-select>
  55. </el-col>
  56. <el-col :span="15">
  57. <el-select v-model="applyForm.province" placeholder="所属省份" :disabled='citydis'>
  58. <el-option v-for="item in city" :label="item.name" :value="item.id" :key="item.id"></el-option>
  59. </el-select>
  60. </el-col>
  61. </el-form-item>
  62. <el-form-item>
  63. <el-button type="primary" @click="apply" :disable='applydis'>立即申请</el-button>
  64. </el-form-item>
  65. </el-form>
  66. <p>
  67. *您好,我们尊重每一个客户的隐私。
  68. 一旦提交了以上内容则表明您同意FX66使用以上提供的信息与您联系,为您解答您所咨询的产品及服务。
  69. </p>
  70. </div>
  71. </div>
  72. <div class="contact">
  73. <div class="contact-title">
  74. <hr>
  75. <h3>联系我们 快速申请</h3>
  76. <hr>
  77. </div>
  78. <h4>Feel Free to Contact Us</h4>
  79. <ul>
  80. <li>
  81. <img src="../assets/img/phone.png">
  82. <img src="../assets/img/phoneHover.png">
  83. <p class="goleft">86-17354718363</p>
  84. </li>
  85. <li>
  86. <img src="../assets/img/wx.png">
  87. <img src="../assets/img/wxHover.png">
  88. <p>fx66kefu</p>
  89. <img class="ewm" src="../assets/img/fx66kefufu.8b7368d.jpg" width="120">
  90. </li>
  91. </ul>
  92. </div>
  93. </template>
  94. <div class="apply-success" v-else>
  95. <img src="../assets/img/success.png" height="46px">
  96. <h2>恭喜您,已经成功申请成为经纪商!</h2>
  97. <p>您可用现在的账号和密码登录后台!如有疑问,可联系我们!</p>
  98. <el-button round>登陆后台</el-button>
  99. </div>
  100. </div>
  101. <contactWe/>
  102. </div>
  103. </template>
  104. <script>
  105. import contactWe from '../components/contact-we.vue'
  106. export default {
  107. name: 'apply',
  108. data () {
  109. return {
  110. active: 0,
  111. contury:[],
  112. city:[],
  113. citydis:true,
  114. applydis:false,
  115. applyForm: {
  116. company:'',
  117. name: '',
  118. region: '',
  119. phoneNumber: '',
  120. other: '',
  121. contury:'',
  122. province:''
  123. }
  124. }
  125. },
  126. components:{
  127. contactWe
  128. },
  129. mounted(){
  130. if (!window.localStorage.username) {
  131. alert('请先登陆')
  132. this.$router.push('/')
  133. }else{
  134. this.$http.get("https://dev407.33.cn/api/broker/applystatus",{
  135. headers:{
  136. Authorization:'Bearer '+window.localStorage.token
  137. }
  138. })
  139. .then(response=>{
  140. if (response.data.data.isApplyed==0) {
  141. this.active=0
  142. }else if (response.data.data.isApplyed==1&&response.data.data.info.status==0) {
  143. this.active=1
  144. this.applyForm.company=response.data.data.info.company
  145. this.applyForm.name=response.data.data.info.contacts
  146. this.applyForm.region=response.data.data.info.mobile_area
  147. this.applyForm.phoneNumber=response.data.data.info.mobile
  148. this.applyForm.other=response.data.data.info.other
  149. this.applyForm.contury=response.data.data.info.contury
  150. this.applyForm.province=response.data.data.info.area
  151. this.applydis=true
  152. }else if (response.data.data.isApplyed==1&&response.data.data.info.status==1) {
  153. this.active=2
  154. }else if(response.data.data.isApplyed==1&&response.data.data.info.status==-1) {
  155. this.active=0
  156. }
  157. })
  158. this.$http.get('https://dev407.33.cn/api/data/country')
  159. .then(response=>{
  160. this.contury=response.data.data
  161. })
  162. this.$http.get('https://dev407.33.cn/api/data/city')
  163. .then(response=>{
  164. this.city=response.data.data
  165. })
  166. }
  167. },
  168. methods:{
  169. conturyChange(){
  170. if (this.applyForm.contury=='86') {
  171. this.citydis=false
  172. }else {
  173. this.citydis=true
  174. this.applyForm.province=''
  175. }
  176. },
  177. apply(){
  178. let parm = new URLSearchParams()
  179. parm.append('company',this.applyForm.company)
  180. parm.append('contacts',this.applyForm.name)
  181. parm.append('mobile',this.applyForm.phoneNumber)
  182. parm.append('other',this.applyForm.other)
  183. parm.append('country',this.applyForm.contury)
  184. parm.append('area',this.applyForm.province)
  185. parm.append('mobile_area',this.applyForm.region)
  186. this.$http.post('https://dev407.33.cn/api/broker/apply',{
  187. headers:{
  188. Authorization:'Bearer '+window.localStorage.token
  189. },
  190. data:parm
  191. })
  192. .then(response=>{
  193. if (response.data.code='200') {
  194. alert('申请成功')
  195. this.active=1
  196. this.applydis=true
  197. }
  198. })
  199. }
  200. }
  201. }
  202. </script>
  203. <!-- Add "scoped" attribute to limit CSS to this component only -->
  204. <style>
  205. .apply{
  206. padding-top: 75px;
  207. .banner{
  208. height: 400px;
  209. overflow: hidden;
  210. img{
  211. height: 100%;
  212. position: relative;
  213. left: 50%;
  214. transform: translateX(-50%);
  215. }
  216. }
  217. .tab{
  218. width: 1200px;
  219. background: #fff;
  220. margin: 0 auto 10px;
  221. height: 110px;
  222. padding-left: 130px;
  223. padding-top: 20px;
  224. }
  225. .apply-content{
  226. width: 1200px;
  227. margin: 0 auto 20px;
  228. background: white;
  229. .content-tab{
  230. border-bottom: 1px solid #e5e5e5;
  231. margin-bottom: 50px;
  232. height: 80px;
  233. h2{
  234. font-size: 24px;
  235. line-height: 80px;
  236. font-weight: 700;
  237. text-align: center;
  238. }
  239. }
  240. .from-box{
  241. margin: 0 75px;
  242. color: #333;
  243. display: flex;
  244. .left{
  245. height: 320px;
  246. width: 530px;
  247. border: 1px solid #e5e5e5;
  248. padding: 20px;
  249. position: relative;
  250. h4{
  251. font-size: 16px;
  252. line-height: 1;
  253. }
  254. h5{
  255. font-size: 14px;
  256. margin-top: 20px;
  257. color: #0176c3;
  258. }
  259. p{
  260. margin-top: 20px;
  261. font-size: 14px;
  262. }
  263. &::after{
  264. content: "";
  265. position: absolute;
  266. top: 50%;
  267. right: -8px;
  268. transform: translateY(-50%);
  269. display: block;
  270. border-left: 8px solid #fff;
  271. border-top: 8px solid transparent;
  272. border-bottom: 8px solid transparent;
  273. z-index: 99;
  274. }
  275. &::before{
  276. content: "";
  277. position: absolute;
  278. top: 50%;
  279. right: -10px;
  280. transform: translateY(-50%);
  281. display: block;
  282. border-left: 10px solid #e5e5e5;
  283. border-top: 10px solid transparent;
  284. border-bottom: 10px solid transparent;
  285. }
  286. }
  287. .right{
  288. width: 480px;
  289. margin-left: 40px;
  290. .el-input__inner{
  291. height: 36px!important;
  292. }
  293. .el-form-item__label{
  294. line-height: 36px;
  295. }
  296. .el-form-item__content{
  297. line-height: 36px;
  298. }
  299. .el-button--primary{
  300. width: 100%;
  301. color: white;
  302. background: #0176c3;
  303. border: none;
  304. border-radius: 0;
  305. height: 40px;
  306. }
  307. p{
  308. padding-left: 28px;
  309. color: #3884d3;
  310. font-size: 14px;
  311. }
  312. }
  313. }
  314. .contact{
  315. position: relative;
  316. width: 1200px;
  317. margin: 0 auto;
  318. padding-top: 50px;
  319. text-align: center;
  320. .contact-title{
  321. display: flex;
  322. align-items: center;
  323. justify-content: space-between;
  324. hr{
  325. width: 420px;
  326. height: 1px;
  327. background-color: #e5e5e5;
  328. border: 0;
  329. }
  330. h3{
  331. font-size: 25px;
  332. font-weight: 700;
  333. line-height: 1;
  334. }
  335. }
  336. h4{
  337. font-size: 16px;
  338. color: #999;
  339. margin-top: 12px;
  340. }
  341. ul{
  342. margin-top: 50px;
  343. padding: 0 400px 70px;
  344. display: flex;
  345. justify-content: space-between;
  346. li{
  347. width: 120px;
  348. img{
  349. margin-bottom: 20px;
  350. }
  351. p{
  352. font-size: 20px;
  353. line-height: 1;
  354. white-space:nowrap;
  355. }
  356. .goleft{
  357. margin-left: -15px;
  358. }
  359. img:nth-child(2){
  360. display: none;
  361. }
  362. &:hover img:nth-child(2){
  363. display: inline-block;
  364. }
  365. &:hover img:nth-child(1){
  366. display: none;
  367. }
  368. .ewm{
  369. display: none;
  370. position: absolute;
  371. top: 150px;
  372. right: 240px;
  373. }
  374. }
  375. li:nth-child(2):hover .ewm{
  376. display: inline-block;
  377. }
  378. }
  379. }
  380. .apply-success{
  381. width: 1200px;
  382. margin: 30px auto 0;
  383. text-align: center;
  384. h2{
  385. font-size: 25px;
  386. margin-top: 30px;
  387. }
  388. p{
  389. font-size: 14px;
  390. color: #999999;
  391. margin-top: 30px;
  392. margin-bottom: 30px;
  393. }
  394. .el-button{
  395. font-weight: 700;
  396. }
  397. }
  398. }
  399. }
  400. </style>