proxyApply.vue 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  1. <template>
  2. <div>
  3. <header-component :is-login="isLogin" :login-account="loginAccount" fix-top="1"></header-component>
  4. <div class="banner">
  5. </div>
  6. <div class="main-container">
  7. <div class="step-bar-container">
  8. <hr class="line left-radius" :class="{'active':step>0}"/>
  9. <p class="step-circle" :class="{'active':step>0}"><span class="description">填写申请信息</span>1</p>
  10. <hr class="line left-radius" :class="{'active':step>0}"/>
  11. <hr class="line right-radius" :class="{'active':step>1}"/>
  12. <p class="step-circle" :class="{'active':step>1}"><span class="description">审核中</span>2</p>
  13. <hr class="line left-radius" :class="{'active':step>1}"/>
  14. <hr class="line right-radius" :class="{'active':step>2}"/>
  15. <p class="step-circle" :class="{'active':step>2}"><span class="description">申请通过</span>3</p>
  16. <hr class="line right-radius" :class="{'active':step>2}"/>
  17. </div>
  18. <div class="apply-form-container">
  19. <h1 class="title">经纪商申请</h1>
  20. <div v-if="step<3" class="form-container">
  21. <div class="left-panel">
  22. <h4>经纪商申请标准:</h4>
  23. <h5>经纪商是具有一定资源并能独立运营的公司、机构或团体。</h5>
  24. <p>1.经纪商所辖客户交易手续费的一部分作为返佣;</p>
  25. <p>2.经纪商可自行设置客户的提款手续费标准;</p>
  26. <p>3.经纪商可招募代理商,并在经纪商后台调整代理商返佣标准;</p>
  27. <p>4.经纪商所辖客户有不当得利的行为(恶意刷单、利用BUG等),手续费不返还;</p>
  28. <p>5.经纪商可在后台查看直发客户及代理客户的交易统计表;</p>
  29. </div>
  30. <div class="right-panel">
  31. <el-form :disabled="disableAll" ref="form" :model="form" label-width="120px">
  32. <el-form-item label="公司/机构名称:">
  33. <el-input v-model="form.companyName"></el-input>
  34. <span class="red-dot">*</span>
  35. </el-form-item>
  36. <el-form-item label="姓名:">
  37. <el-input v-model="form.name"></el-input>
  38. <span class="red-dot">*</span>
  39. </el-form-item>
  40. <el-form-item label="手机号:">
  41. <span class="red-dot">*</span>
  42. <el-input placeholder="请输入内容" v-model="form.phone" class="input-with-select">
  43. <el-select v-model="form.phonePrefix" slot="prepend" placeholder="请选择">
  44. <el-option
  45. v-for='item,index in areaOptions'
  46. :key="index"
  47. :label="item.ch_name"
  48. :value="item.code">
  49. </el-option>
  50. </el-select>
  51. </el-input>
  52. </el-form-item>
  53. <el-form-item label="其他联系方式:">
  54. <el-input type="textarea" v-model="form.otherContact" ></el-input>
  55. </el-form-item>
  56. <el-form-item label="所在地区:">
  57. <el-row>
  58. <el-col :span="10">
  59. <el-select v-model="form.country" placeholder="请选择">
  60. <el-option
  61. v-for='item,index in countryOptions'
  62. :key="index"
  63. :label="item.label"
  64. :value="item.value">
  65. </el-option>
  66. </el-select>
  67. </el-col>
  68. <el-col :span="10">
  69. <el-select class="prov-select" v-model="form.prov" placeholder="请选择">
  70. <el-option
  71. v-for='item,index in provOptions'
  72. :key="index"
  73. :label="item.label"
  74. :value="item.value">
  75. </el-option>
  76. </el-select>
  77. </el-col>
  78. </el-row>
  79. </el-form-item>
  80. <el-form-item>
  81. <div :class="{'disabled':disableAll}" class="apply-button" @click="handleApply">立即申请</div>
  82. </el-form-item>
  83. </el-form>
  84. <p class="bottom-notice">*您好,我们尊重每一个客户的隐私。一旦提交了以上内容则表明您同意
  85. FX66使用以上提供的信息与您联系,为您解答您所咨询的产品及服务。</p>
  86. <!--<div class="apply-rule"><p class="rule-text">查看代理商申请标准</p></div>-->
  87. </div>
  88. </div>
  89. <div v-if="step==3" class="success-container">
  90. <i class="icon icon-success"></i>
  91. <h2 class="success-title">恭喜您,已经成功申请成为经纪商!</h2>
  92. <p class="success-content">您可用现在的账号和密码登录后台!如有疑问,可联系我们!</p>
  93. <button class="login-admin-button">登陆后台</button>
  94. </div>
  95. </div>
  96. <div v-if="step<3" class="other-apply-container">
  97. <special-title title="联系我们 快速申请" eng-title="Contact us for quick application" font-size="25"></special-title>
  98. <div class="hex-container">
  99. <hexagon-block class="hex" icon="&#xe714;" content="400-1566-899"></hexagon-block>
  100. <hexagon-block class="hex" icon="&#xe600;" content="345106800<br/>545967811"></hexagon-block>
  101. <hexagon-block class="hex" icon="&#xe628;" content="326982014@qq.com"></hexagon-block>
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. </template>
  107. <script>
  108. import HeaderComponent from "../components/header";
  109. import SpecialTitle from "../components/specialTitle";
  110. import HexagonBlock from "../components/hexagonBlock";
  111. export default {
  112. name: "proxyApply",
  113. components: {HexagonBlock, SpecialTitle, HeaderComponent},
  114. data(){
  115. return{
  116. step:1,
  117. isLogin:false,
  118. loginAccount:'123456789',
  119. form:{
  120. companyName:'',
  121. name:'',
  122. phonePrefix:'86',
  123. phone:'',
  124. otherContact:'',
  125. country:'',
  126. prov:'',
  127. },
  128. disableAll:false,
  129. areaOptions:[],
  130. countryOptions:[
  131. {
  132. label:'中国',
  133. value:'+86'
  134. }
  135. ],
  136. provOptions:[
  137. {
  138. label:'中国',
  139. value:'+86'
  140. }
  141. ],
  142. }
  143. },
  144. mounted(){
  145. let username=localStorage.getItem('username')
  146. if(username) {
  147. this.isLogin = true;
  148. this.loginAccount = username;
  149. }
  150. this.$http.get(this._ajaxAdress.getApplyStatus,{headers:{'Authorization':'Bearer '+localStorage.getItem('token')}}).then((response)=>{
  151. if(response.data.code==200){
  152. this.step=+response.data.data.isApplyed?(response.data.data.info.status==2?3:2):1;
  153. if(this.step===2){
  154. let info=response.data.data.info;
  155. let apply=this.form;
  156. apply.companyName=info.company;
  157. apply.name=info.contacts;
  158. apply.phone=info.mobile;
  159. apply.otherContact=info.other;
  160. apply.country=info.country;
  161. apply.prov=info.area;
  162. apply.phonePrefix=info.mobile_area
  163. this.disableAll=true;
  164. }
  165. }else{
  166. this.$notify({
  167. title: '提示',
  168. message: response.data.message,
  169. type: 'warning'
  170. });
  171. }
  172. })
  173. this.$http.get(this._ajaxAdress.getCountryList).then((response)=>{
  174. this.areaOptions=response.data.data;
  175. })
  176. },
  177. methods:{
  178. setUrlParams(obj){
  179. let param = new URLSearchParams();
  180. for(let item in obj){
  181. param.append(item,obj[item]);
  182. }
  183. return param
  184. },
  185. handleApply(){
  186. if(this.disableAll)return;
  187. let apply=this.form;
  188. if(!apply.companyName){
  189. this.$alert('请输入公司名称');
  190. return;
  191. }
  192. if(!apply.name){
  193. this.$alert('请输入联系人姓名');
  194. return;
  195. }
  196. if(!apply.phone){
  197. this.$alert('请输入手机号码');
  198. return;
  199. }
  200. let params={
  201. "company":apply.companyName,
  202. "contacts":apply.name,
  203. "mobile":apply.phone,
  204. "other":apply.otherContact,
  205. "country":apply.country,
  206. "area":apply.prov,
  207. "mobile_area":apply.phonePrefix,
  208. }
  209. this.$http({
  210. method:'post',
  211. url:this._ajaxAdress.postApply,
  212. data:this.setUrlParams(params),
  213. headers:{'Authorization':'Bearer '+localStorage.getItem('token')}
  214. }).then((response)=>{
  215. if(response.code==200){
  216. this.$notify({
  217. title: '成功',
  218. message: '申请成功',
  219. type: 'success'
  220. });
  221. }else{
  222. this.$notify({
  223. title: '提示',
  224. message: response.data.message,
  225. type: 'warning'
  226. });
  227. }
  228. })
  229. }
  230. }
  231. }
  232. </script>
  233. <style scoped lang="less">
  234. @import "../assets/less/_variable.less";
  235. .banner{
  236. background: url(../assets/proxyApply/banner.png) no-repeat 50% 50%;
  237. background-size: cover;
  238. width: 100%;
  239. height: 400px;
  240. }
  241. .main-container{
  242. width: 1200px;
  243. margin: 15px auto;
  244. & .step-bar-container{
  245. width: 100%;
  246. height: 110px;
  247. background-color: white;
  248. display: flex;
  249. align-items: center;
  250. justify-content: center;
  251. & .line{
  252. width: 150px;
  253. height:6px;
  254. border: 0;
  255. background-color: #eeeeee;
  256. &.left-radius{
  257. border-radius: 3px 0 0 3px;
  258. }
  259. &.right-radius{
  260. border-radius: 0px 3px 3px 0px;
  261. }
  262. &.active{
  263. background-color: #3884d3;
  264. }
  265. }
  266. & .step-circle{
  267. display: block;
  268. margin: 0 10px;
  269. position: relative;
  270. width: 45px;
  271. height: 45px;
  272. background-color: #ffffff;
  273. border: solid 1px #e5e5e5;
  274. border-radius: 100%;
  275. line-height: 45px;
  276. font-size: 26px;
  277. color: @lighterBlack;
  278. &.active{
  279. border: solid 1px #3884d3;
  280. background-color: #3884d3;
  281. color: white;
  282. &>.description{
  283. color: #3884d3;
  284. }
  285. }
  286. & .description{
  287. left: -30px;
  288. position: absolute;
  289. top: -40px;
  290. /*transform: translateX(-25%);*/
  291. color: @lighterBlack;
  292. font-size: 16px;
  293. width: 100px ;
  294. }
  295. }
  296. }
  297. & .apply-form-container{
  298. position: relative;
  299. padding: 1px;
  300. width: 100%;
  301. margin-top: 10px;
  302. background-color: white;
  303. & .title{
  304. font-weight: 700;
  305. font-size: 25px;
  306. color: @lightBlack;
  307. width: 100%;
  308. margin-top: 33px;
  309. padding-bottom: 25px;
  310. border-bottom: solid 1px #e5e5e5;
  311. }
  312. & .success-container{
  313. & .icon{
  314. display: inline-block;
  315. margin-top: 80px;
  316. text-align: center;
  317. width: 50px;
  318. height: 50px;
  319. }
  320. & .icon-success{
  321. background:url(../assets/proxyApply/success.png) no-repeat;
  322. background-size: cover;
  323. }
  324. & .success-title{
  325. font-size: 25px;
  326. color: @lightBlack;
  327. margin-top: 40px;
  328. }
  329. & .success-content{
  330. font-size: 14px;
  331. color: @lighterBlack;
  332. margin-top: 40px;
  333. }
  334. & .login-admin-button{
  335. margin: 32px 0 70px;
  336. cursor: pointer;
  337. width: 140px;
  338. height: 40px;
  339. background-color: #ffffff;
  340. border-radius: 20px;
  341. border: solid 1px #e5e5e5;
  342. font-size: 18px;
  343. color:@primaryBlue
  344. }
  345. }
  346. & .form-container{
  347. padding-top: 48px;
  348. /*width: 550px;*/
  349. /*float: right;*/
  350. margin: 0 75px;
  351. display: flex;
  352. justify-content: space-between;
  353. text-align: left;
  354. & .left-panel{
  355. width: 530px;
  356. border: 1px solid #e5e5e5;
  357. padding: 20px;
  358. position: relative;
  359. margin-right: 40px;
  360. & h4{
  361. font-size: 16px;
  362. line-height: 1;
  363. }
  364. & h5{
  365. color: #0176c3;
  366. margin-top: 20px;
  367. font-size: 14px;
  368. }
  369. & p{
  370. margin-top: 20px;
  371. font-size: 14px;
  372. }
  373. }
  374. & .apply-rule{
  375. position: absolute;
  376. top: 50%;
  377. transform: translateY(-50%);
  378. left: 0;
  379. /*width: 64px;*/
  380. height: 273px;
  381. background-color: #0176c3;
  382. & .rule-text{
  383. width: 16px;
  384. font-size: 16px;
  385. color: white;
  386. margin: 44px 20px;
  387. line-height:20px;
  388. }
  389. }
  390. & .red-dot{
  391. position: absolute;
  392. top: 0;
  393. right:-15px;
  394. color: red;
  395. font-size: 16px;
  396. }
  397. & .bottom-notice{
  398. font-size: 14px;
  399. color: #3884d3;
  400. width: 440px;
  401. margin: 20px auto 0;
  402. }
  403. & .prov-select{
  404. margin-left: 12px;
  405. }
  406. & .apply-button{
  407. &.disabled{
  408. background-color: #dcdcdc;
  409. }
  410. width: 384px;
  411. line-height: 50px;
  412. height: 50px;
  413. background-color: #0176c3;
  414. border: 0;
  415. color: white;
  416. font-size: 16px;
  417. text-align: center;
  418. cursor: pointer;
  419. &.disabled{
  420. cursor: default;
  421. background-color: #dcdcdc;
  422. }
  423. }
  424. }
  425. }
  426. & .other-apply-container{
  427. padding-top: 48px;
  428. background-color: white;
  429. & .hex-container{
  430. margin-top: 50px;
  431. display: flex;
  432. width: 100%;
  433. justify-content: center;
  434. justify-content: space-around;
  435. & .hex{
  436. flex-basis: 55px;
  437. }
  438. }
  439. }
  440. }
  441. </style>