ApplyAgent.vue 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475
  1. <template>
  2. <section class="apply-ctnr">
  3. <myheader></myheader>
  4. <div class="apply-content">
  5. <div class="banner">
  6. <img src="../assets/img/banner.png" alt="">
  7. </div>
  8. <div class="apply-tab">
  9. <el-steps :active="step" align-center >
  10. <el-step title="填写申请信息"></el-step>
  11. <el-step title="审核中"></el-step>
  12. <el-step title="申请通过"></el-step>
  13. </el-steps>
  14. </div>
  15. <div class="apply-form" v-if="!successshow">
  16. <div class="apply-title">
  17. <h2>经纪商申请</h2>
  18. </div>
  19. <div class="apply-form-box">
  20. <div class="left-part">
  21. <h3>经纪商申请标准</h3>
  22. <h4>经纪商是具有一定资源并能独立运营的公司、机构或团体。</h4>
  23. <p>1.经纪商所辖客服交易手续费的一部分作为返佣;</p>
  24. <p>2.经纪商可自行设置客户的提款手续费标准;</p>
  25. <p>3.经纪商可招募代理商,并在经纪商后台调整代理商返佣标准;</p>
  26. <p>4.经纪商所辖客户有不当得利的行为(恶意刷单,利用BUG等),手续费不返还;</p>
  27. <p>5.经纪商可在后台查看直发客户及代理客户的交易统计表;</p>
  28. </div>
  29. <div class="right-part">
  30. <el-form label-position="right" label-width='138px' v-model="applyform">
  31. <el-form-item label="公司/机构名称:">
  32. <el-input placeholder="请输入您所在的公司或者机构名称" v-model="applyform.company" :disabled="unavailable"></el-input>
  33. </el-form-item>
  34. <el-form-item label="姓名:">
  35. <el-input placeholder="请输入您的姓名" v-model="applyform.contacts" :disabled="unavailable"></el-input>
  36. </el-form-item>
  37. <el-form-item label="手机号:">
  38. <el-col :span="10">
  39. <el-select placeholder="请选择" v-model="applyform.mobile_area" :disabled="unavailable">
  40. <el-option v-for="item in m_options" :key="item.code" :label="item.ch_name" :value="item.code"></el-option>
  41. </el-select>
  42. </el-col>
  43. <el-col :span="14">
  44. <el-input placeholder="请输入您的手机号码" v-model="applyform.mobile" :disabled="unavailable"></el-input>
  45. </el-col>
  46. </el-form-item>
  47. <el-form-item label="其它联系方式:">
  48. <el-input placeholder="请输入您的其它联系方式:如微信、邮箱等" type="textarea" v-model="applyform.other" :disabled="unavailable">
  49. </el-input>
  50. </el-form-item>
  51. <el-form-item label="所在地:">
  52. <el-col :span="12">
  53. <el-select clearable placeholder='所属国家' v-model="applyform.country" :disabled="unavailable" @change="getCity">
  54. <el-option
  55. v-for="item in countryOptions" :key="item.sname" :label="item.ch_name" :value="item.sname"
  56. ></el-option>
  57. </el-select>
  58. </el-col>
  59. <el-col :span="1">&nbsp;</el-col>
  60. <el-col :span="11">
  61. <el-select clearable placeholder='所属省份' v-model="applyform.area" :disabled="unavailable||oversea">
  62. <el-option
  63. v-for="item in cityOptions" :key="item.id" :label="item.name" :value="item.id"
  64. ></el-option>
  65. </el-select>
  66. </el-col>
  67. </el-form-item>
  68. <el-form-item>
  69. <el-button :disabled="unavailable" :class="{ disbtn:unavailable }" @click="applyNow">立即申请</el-button>
  70. </el-form-item>
  71. </el-form>
  72. <p class="tip">*您好,我们尊重每一个客户的隐私。 一旦提交了以上内容则表明您同意FX66使用以上提供的信息与您联系,为您解答您所咨询的产品及服务。</p>
  73. </div>
  74. </div>
  75. <div class="serve-block">
  76. <div class="service-title">
  77. <hr>
  78. <h3>联系我们 快速申请</h3>
  79. <hr>
  80. <h4>Feel Free to Contact Us</h4>
  81. </div>
  82. <ul class="service-list">
  83. <li v-for="(item,index) in contactList" @mouseenter="showItem(index)" @mouseleave="showItem(index)">
  84. <img :src="item.baseUrl" v-show="!item.state">
  85. <img :src="item.hoverUrl" v-show="item.state">
  86. <p>{{ item.text }}</p>
  87. </li>
  88. </ul>
  89. <img src="../assets/img/fx66kefufu.jpg" v-if="wxshow" class="wximg">
  90. </div>
  91. <contactwe class="contact-block"></contactwe>
  92. </div>
  93. <div class="success-apply" v-if="successshow">
  94. <div class="apply-title">
  95. <h2>经纪商申请</h2>
  96. </div>
  97. <p>
  98. <i class="el-icon-circle-check"></i>
  99. </p>
  100. <h5>恭喜您已经成功成为经纪商!</h5>
  101. <p>您可以用现在的帐号和密码登录后台!如有疑问,可联系我们!</p>
  102. <button @click="loginBack">登录后台</button>
  103. </div>
  104. <div class="dialog-apply">
  105. <el-dialog
  106. class="dialog-content" :visible.sync="dialogVisible">
  107. <span class="content"><i class="el-icon-circle-check"></i>您的申请已经提交成功!</span>
  108. <p>我们会尽快通过电话与您沟通,请保持手机畅通,谢谢!</p>
  109. </el-dialog>
  110. </div>
  111. <div class="dialog-apply">
  112. <el-dialog class="dialog-content" :visible.sync="dialogtip">
  113. <span class="content">
  114. <i class="el-icon-warning"></i>登录后才可申请经纪商!
  115. </span><br>
  116. <button @click="gologin">立即登录</button>
  117. </el-dialog>
  118. </div>
  119. </div>
  120. </section>
  121. </template>
  122. <script>
  123. import myheader from '../components/Header.vue'
  124. import contactwe from '../components/ContactWe.vue'
  125. import {getInfo,getcookie} from '../assets/js/common.js'
  126. export default{
  127. data(){
  128. return{
  129. formable:false,
  130. step:1,
  131. dialogtip:false,
  132. dialogVisible:false,
  133. successshow:false,
  134. unavailable:false,
  135. oversea:false,
  136. wxshow:false,
  137. m_options:[],
  138. countryOptions:[],
  139. cityOptions:[],
  140. contactList:[
  141. {
  142. baseUrl:require('../assets/img/phonebase.png'),
  143. hoverUrl:require('../assets/img/phoneHover.png'),
  144. state:false,
  145. text:'86-17354718363'
  146. },
  147. {
  148. baseUrl:require("../assets/img/wx.png"),
  149. hoverUrl:require("../assets/img/wxHover.png"),
  150. state:false,
  151. text:"fx66kefu"
  152. }
  153. ],
  154. applyform:{
  155. company:"",//公司名称
  156. contacts:"",//联系人姓名
  157. mobile_area:"",//手机地区
  158. mobile:"",//手机号
  159. other:"",//其它联系方式
  160. country:"",//国家
  161. area:"",//省份
  162. }
  163. }
  164. },
  165. created(){
  166. document.documentElement.scrollTop = window.pageYOffset = document.body.scrollTop=0;
  167. },
  168. mounted(){
  169. this.jumpdown();
  170. this.getCountry();
  171. let token = getcookie("token");
  172. if (token) {
  173. this.getApplyStatus();
  174. }else{
  175. this.dialogtip = true;
  176. }
  177. },
  178. components:{
  179. myheader,
  180. contactwe
  181. },
  182. methods:{
  183. getApplyStatus(){
  184. var that = this;
  185. getInfo(this,this.urlApi.applyStatus,"GET",'',function(res){
  186. if (res.code = 200) {
  187. if (res.data.isApplyed == 1) {
  188. switch(res.data.info.status){
  189. case "0":
  190. that.step = 2;
  191. that.unavailable = true;
  192. that.applyform = res.data.info;//因为刷新页面后,需要把数据再显示出来,所以需要进行赋值
  193. that.$notify({
  194. title: '提示',
  195. message: '您的申请正在审核中!',
  196. type: 'warning',
  197. duration:'2000'
  198. });
  199. break;
  200. case "1"://已通过
  201. that.step = 3;
  202. that.unavailable = true;
  203. that.successshow = true;
  204. that.applyform = res.data.info;
  205. that.$notify({
  206. title: '成功',
  207. message: '您的申请已通过审核!',
  208. type: 'success',
  209. duration:'2000'
  210. })
  211. break;
  212. case "-1":
  213. that.getInfo = 1;
  214. that.unavailable = false;
  215. that.$notify({
  216. title: '提示',
  217. message: '您的申请已被拒绝!',
  218. type: 'warning',
  219. duration:'2000'
  220. });
  221. }
  222. }
  223. }
  224. });
  225. },
  226. applyNow(){
  227. var that = this;
  228. getInfo(this,this.urlApi.applyToAgent,"POST",this.applyform,function(res){
  229. if (res.code = 200) {
  230. that.getApplyStatus();
  231. that.dialogVisible = true;
  232. }
  233. })
  234. },
  235. getCountry(){
  236. getInfo(this,this.urlApi.phoneCountry,'GET','',(res)=>{
  237. this.m_options=res.data;
  238. this.countryOptions = res.data;
  239. });
  240. },
  241. getCity(){
  242. this.applyform.area = "";//初始化省份
  243. if (this.applyform.country == "CN") {//因为绑定的值是sname所以这里用CN判断,如果绑定的是code可以用86判断
  244. this.oversea = false;
  245. var that = this;//下方函数里的this会改变
  246. getInfo(this,this.urlApi.applyCountry,"GET","",function(res){
  247. if (res.code == 200) {
  248. that.cityOptions = res.data;
  249. }
  250. })
  251. }else{
  252. this.oversea = true;
  253. }
  254. },
  255. showItem(index){
  256. this.contactList[index].state = !this.contactList[index].state;
  257. if(index==1){
  258. this.wxshow = !this.wxshow;
  259. }
  260. },
  261. jumpdown(){
  262. document.documentElement.scrollTop = window.pageYOffset = document.body.scrollTop=400;
  263. },
  264. loginBack(){
  265. window.location.href = "https://pms.licai.cn/#/";
  266. },
  267. gologin(){
  268. this.$router.push({path:"/"});
  269. }
  270. }
  271. }
  272. </script>
  273. <style scoped>
  274. .apply-ctnr{
  275. background-color: #f5f8ff;
  276. .apply-content{
  277. padding-top: 75px;
  278. .banner{
  279. height: 400px;
  280. position: relative;
  281. overflow: hidden;
  282. margin-bottom: 10px;
  283. img{
  284. height: 100%;
  285. position: relative;
  286. left: 50%;
  287. transform: translateX(-50%);
  288. /* 这里为什么要这么写? */
  289. }
  290. }
  291. .apply-tab{
  292. width: 1200px;
  293. background-color: #fff;
  294. margin: 0 auto;
  295. margin-bottom: 10px;
  296. height: 110px;
  297. padding-top: 20px;
  298. }
  299. .apply-form{
  300. width: 1200px;
  301. margin: 0 auto 20px;
  302. background-color: #fff;
  303. .apply-form-box{
  304. margin: 0 75px;
  305. color: #333;
  306. display: flex;
  307. text-align: left;
  308. .left-part{
  309. width: 525px;
  310. height: 320px;
  311. padding: 20px;
  312. position: relative;
  313. border: 1px solid var(--border-color);
  314. font-size: 14px;
  315. h3{
  316. font-size: 16px;
  317. line-height: 1;
  318. }
  319. h4{
  320. color: #0176c3;
  321. margin-top: 20px;
  322. }
  323. p{
  324. margin-top: 20px;
  325. }
  326. &:before{
  327. content: "";
  328. position: absolute;
  329. right: -10px;
  330. top: 50%;
  331. margin-top: -5px;
  332. border-left: 10px solid var(--border-color);
  333. border-top: 10px solid transparent;
  334. border-bottom: 10px solid transparent;
  335. }
  336. &:after{
  337. content: '';
  338. position: absolute;
  339. right: -8px;
  340. top: 50%;
  341. margin-top: -5px;
  342. border-left: 10px solid #fff;
  343. border-top: 10px solid transparent;
  344. border-bottom: 10px solid transparent;
  345. }
  346. }
  347. .right-part{
  348. width: 480px;
  349. margin-left: 45px;
  350. .el-form{
  351. .el-button{
  352. width: 100%;
  353. background-color: #0176c3;
  354. color: #fff;
  355. }
  356. .disbtn{
  357. color: #bbb;
  358. background-color: #d1dbe5;
  359. }
  360. }
  361. .tip{
  362. padding-left: 28px;
  363. color: #3884d3;
  364. font-size: 14px;
  365. }
  366. }
  367. }
  368. }
  369. .serve-block{
  370. position: relative;
  371. width: 1200px;
  372. margin: 0 auto;
  373. padding-top: 50px;
  374. .service-title{
  375. h3{
  376. font-size: 25px;
  377. }
  378. h4{
  379. font-size: 16px;
  380. }
  381. }
  382. .service-list{
  383. margin-top: 50px;
  384. padding: 0 400px 70px;
  385. display: flex;
  386. justify-content: space-between;
  387. p{
  388. font-size: 20px;
  389. line-height: 1;
  390. margin-top: 20px;
  391. }
  392. }
  393. .wximg{
  394. width: 120px;
  395. position: absolute;
  396. top: 150px;
  397. right: 20%;
  398. }
  399. }
  400. .contact-block{
  401. position: fixed;
  402. right: 0px;
  403. top: 28%;
  404. z-index: 200;
  405. }
  406. .success-apply{
  407. width: 1200px;
  408. background-color: #fff;
  409. margin: 0 auto;
  410. margin-bottom: 10px;
  411. p{
  412. color: #666;
  413. font-size: 12px;
  414. i{
  415. font-size: 50px;
  416. color: green;
  417. }
  418. }
  419. h5{
  420. line-height: 80px;
  421. font-size: 24px;
  422. font-weight: 700;
  423. }
  424. button{
  425. border:1px solid #e5e5e5;
  426. color: #1a6fa6;
  427. height: 35px;
  428. width: 120px;
  429. border-radius: 25px;
  430. margin-top: 30px;
  431. margin-bottom: 60px;
  432. font-size: 16px;
  433. font-weight: 700;
  434. cursor: pointer;
  435. }
  436. }
  437. .dialog-apply{
  438. .dialog-content{
  439. margin:0 auto;
  440. width: 1200px;
  441. .content{
  442. font-size:24px;
  443. color: #1a6fa6;
  444. i{
  445. font-size: 26px;
  446. margin-right: 10px;
  447. color: #1a6fa6;
  448. }
  449. }
  450. p{
  451. margin-top: 20px;
  452. margin-bottom: 70px;
  453. }
  454. button{
  455. border:1px solid #e5e5e5;
  456. color: #1a6fa6;
  457. height: 35px;
  458. width: 120px;
  459. border-radius: 25px;
  460. margin-top: 30px;
  461. margin-bottom: 40px;
  462. font-size: 16px;
  463. font-weight: bold;
  464. transition: all 0.3s ease 0s;
  465. cursor: pointer;
  466. &:hover{
  467. background-color:#1a6fa6;
  468. color: #fff;
  469. }
  470. }
  471. }
  472. }
  473. }
  474. }
  475. </style>