ApplyAgent.vue 15 KB

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