user_spread.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908
  1. <template>
  2. <view>
  3. <loading-view v-if="showLoading"></loading-view>
  4. <u-notice-bar :show="showTips" mode="horizontal" :list="list" :font-size="26" :close-icon="true" :speed="100"
  5. @close="showTips = false"></u-notice-bar>
  6. <view class="user-spread">
  7. <view class="header p-t-40 m-b-50">
  8. <view class="user-info flex m-l-30">
  9. <view class="user-avatar"><u-image width="110rpx" height="110rpx" border-radius="60"
  10. :src="userInfo.user.avatar" /></view>
  11. <view class="user-message m-l-20 white">
  12. <view class="left">
  13. <view class="m-b-10">
  14. <view class="xxl bold m-r-20">{{ userInfo.user.nickname }}</view>
  15. </view>
  16. <view class="xs flex">
  17. 上级分销商:{{ userInfo.leader.nickname ? userInfo.leader.nickname : '无' }}
  18. <view v-if="!userInfo.leader.nickname"
  19. class="br60 white write-btn flex row-center m-l-30 xxs" @tap="showInvitePop">填写
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="avatar-tag white xxs text-center m-b-10" v-if="data.business_name">{{ data.business_name }}
  26. </view>
  27. </view>
  28. <view class="main">
  29. <!-- 填表格 -->
  30. <view v-if="vipState == 0" class="user-apply-box">
  31. <view class="user-apply-vip flex-col col-center">
  32. <view class="user-apply-header flex-col col-center">
  33. <view class="title xxl normal">申请成为分销会员</view>
  34. </view>
  35. <view class="vip-form">
  36. <view class="form-item">
  37. <u-field v-model="realName" :label-width="150" label="真实姓名:" :border-bottom="false"
  38. placeholder="请输入您的真实姓名"></u-field>
  39. </view>
  40. <view class="form-item">
  41. <u-field v-model="mobile" :label-width="150" label="手机号码:" :border-bottom="false"
  42. placeholder="请输入您的手机号码"></u-field>
  43. </view>
  44. <view class="form-item" @tap="showRegion = true">
  45. <u-field v-model="region" disabled right-icon="arrow-right" :label-width="150"
  46. label="现住省份:" :border-bottom="false" placeholder="请选择省、市、区"></u-field>
  47. </view>
  48. <view class="form-item">
  49. <u-field v-model="reason" :label-width="150" type="textarea" label="申请原因:"
  50. placeholder="(必填)" :field-style="{ height: '250rpx' }" />
  51. </view>
  52. </view>
  53. </view>
  54. <button class="apply-btn bg-primary white md m-t-20 flex row-center br60"
  55. @tap="formSubmit">立即申请</button>
  56. <view class="m-t-20 xxs lighter flex row-center">提交成功后,我们将会在1-2个工作日内给您回复</view>
  57. </view>
  58. <!-- 申请状态 -->
  59. <view v-if="vipState == 1" class="user-result-box">
  60. <view class="user-result flex-col col-center">
  61. <view class="user-result-header flex-col col-center">
  62. <view class="title xxl normal">申请成为分销会员</view>
  63. </view>
  64. <view class="user-result-content flex-col col-center">
  65. <image class="apply-result-img"
  66. :src="applyObject.status == 2 ? '/static/images/icon_fail.png' : '/static/images/icon_success.png'" />
  67. <view class="m-t-10 nr" style="line-height: 40rpx">{{ applyObject.status_str }}</view>
  68. <view class="apply-fail-reason sm"
  69. :style="applyObject == 2 ? 'visibility: none' : 'visibility: hidden'">
  70. {{ applyObject.reason }}
  71. </view>
  72. </view>
  73. <view class="user-result-info">
  74. <view class="info-item flex nr">
  75. <view class="label">真实姓名:</view>
  76. <view class="info-text ml20">{{ applyObject.real_name }}</view>
  77. </view>
  78. <view class="info-item flex nr">
  79. <view class="label">手机号码:</view>
  80. <view class="info-text ml20">{{ applyObject.mobile }}</view>
  81. </view>
  82. <view class="info-item flex nr">
  83. <view class="label">现住省份:</view>
  84. <view class="info-text ml20">{{ applyObject.province }} {{ applyObject.city }}
  85. {{ applyObject.district }}
  86. </view>
  87. </view>
  88. <view class="info-item flex nr">
  89. <view class="label">申请原因:</view>
  90. <view class="info-text ml20">{{ applyObject.reason ? applyObject.reason : '-' }}</view>
  91. </view>
  92. </view>
  93. </view>
  94. <view :class="'white m-t-20 br60 apply-btn flex row-center md bg-primary'" @tap="reApply">重新申请
  95. </view>
  96. <view class="m-t-20 xxs lighter flex row-center">提交成功后,我们将会在1-2个工作日内给您回复</view>
  97. </view>
  98. <!-- 已申请 -->
  99. <view v-if="vipState == 2" class="user-vip">
  100. <view class="user-assets-box">
  101. <!-- <view class="user-assets-header flex row-between">
  102. <view class="flex nr bold" style="line-height: 80rpx;color: #8F430E;">
  103. 可提现佣金:
  104. <price-format weight="bold" :first-size="36" :subscript-size="26" :second-size="36"
  105. :price="distributionInfo.able_withdrawal" :color="colorConfig.primary" />
  106. </view>
  107. <navigator hover-class="none" class="primary-btn white flex row-center"
  108. url="/bundle/pages/user_withdraw/user_withdraw">立即提现</navigator>
  109. </view> -->
  110. <!-- <view class="user-assets-content flex flex-wrap">
  111. <view class="user-item flex-col col-center">
  112. <tool-tip v-if="false" class="m-t-20" id="today-profit" content="今日预估收益金额"
  113. style="position: absolute;right: -66rpx;"></tool-tip>
  114. <view class="nr user-assets-name flex" style="color: #8F430E">
  115. 今日预估收益
  116. <u-icon class="ml10" name="question-circle" size="30rpx" color="#D88D5A" />
  117. </view>
  118. <view class="assets m-l-20">
  119. <price-format weight="bold" :first-size="36" :subscript-size="26" :second-size="36"
  120. :price="distributionInfo.today_earnings" :color="colorConfig.primary" />
  121. </view>
  122. </view>
  123. <view class="user-item flex-col col-center">
  124. <view class="nr user-assets-name flex" style="color: #8F430E">
  125. 本月预估收益
  126. <u-icon class="ml10" name="question-circle" size="30rpx" color="#D88D5A" />
  127. </view>
  128. <view class="assets m-l-20">
  129. <price-format weight="bold" :first-size="36" :subscript-size="26" :second-size="36"
  130. :price="distributionInfo.month_earnings" :color="colorConfig.primary" />
  131. </view>
  132. </view>
  133. <view class="user-item flex-col col-center">
  134. <view class="nr user-assets-name flex" style="color: #8F430E">
  135. 累计获得收益
  136. <u-icon class="ml10" name="question-circle" size="30rpx" color="#D88D5A" />
  137. </view>
  138. <view class="assets">
  139. <price-format weight="bold" :first-size="36" :subscript-size="26" :second-size="36"
  140. :price="distributionInfo.history_earnings" :color="colorConfig.primary" />
  141. </view>
  142. </view>
  143. </view> -->
  144. </view>
  145. <view class="account bg-white radius10">
  146. <view class="top d-flex justify-content-between align-items-center">
  147. <view class="item">
  148. <view class="txt">抵用券余额</view>
  149. <view class="num">{{ data.energy ? data.energy : 0 }}</view>
  150. </view>
  151. <view class="item">
  152. <view class="txt">今日抵用券收益</view>
  153. <view class="num">{{ data.todayenergy ? data.todayenergy : 0 }}</view>
  154. </view>
  155. <view class="item">
  156. <view class="txt">邀请有效账号</view>
  157. <view class="num">{{ data.ztui ? data.ztui : 0 }}</view>
  158. </view>
  159. </view>
  160. <view class="wrap">
  161. <view class="acc-data d-flex justify-content-between flex-wrap">
  162. <view class="item">
  163. <view class="txt">累计推荐商家(奖励抵用券)</view>
  164. <view class="num">{{ data.tshopenergy ? data.tshopenergy : 0 }}</view>
  165. </view>
  166. <view class="item">
  167. <view class="txt">累计推荐用户(奖励抵用券)</view>
  168. <view class="num">{{ data.tuserenergy ? data.tuserenergy : 0 }}</view>
  169. </view>
  170. <view class="item">
  171. <view class="txt">月度收益抵用券</view>
  172. <view class="num">{{ data.menergy ? data.menergy : 0 }}</view>
  173. </view>
  174. <view class="item">
  175. <view class="txt">总收益抵用券</view>
  176. <view class="num">{{ data.totalenergy ? data.totalenergy : 0 }}</view>
  177. </view>
  178. </view>
  179. <router-link to="/pages/user/energy-transfer?type=1"><button
  180. class="btn">转让抵用券</button></router-link>
  181. <!-- <router-link to="/pages/user/energy-transfer?type=2"><button
  182. class="btn blue">抵用券馈赠</button></router-link> -->
  183. </view>
  184. </view>
  185. <view class="user-code d-flex justify-content-between align-items-center bg-white radius10">
  186. <view class="title">
  187. 我的邀请码
  188. <text class="tip">点击复制即可</text>
  189. </view>
  190. <view class="code" @tap="onCopy">{{ userInfo.user.distribution_code }}</view>
  191. </view>
  192. <view class="mt20 fans-msg-box flex bg-white md">
  193. <router-link class="flex-1" to="/bundle/pages/user_fans/user_fans">
  194. <view class="my-fans flex row-center normal">
  195. 我的粉丝
  196. <view class="primary m-l-10">{{ distributionInfo.fans }}</view>
  197. <u-icon class="m-l-10" name="arrow-right" size="28rpx" color="#666" />
  198. </view>
  199. </router-link>
  200. </view>
  201. <view class="menu bg-white radius10">
  202. <router-link to="/pages/user/energy-detials">
  203. <view class="item d-flex justify-content-between align-items-center">
  204. <view class="title">抵用券明细</view>
  205. <text class="iconfont">&#xe63c;</text>
  206. </view>
  207. </router-link>
  208. <view class="item d-flex justify-content-between align-items-center">
  209. <view class="title">推广商家</view>
  210. <text class="num">{{ data.tshop ? data.tshop : 0 }}家</text>
  211. </view>
  212. <view class="item d-flex justify-content-between align-items-center">
  213. <view class="title">推广用户</view>
  214. <text class="num">{{ data.tuser ? data.tuser : 0 }}人</text>
  215. </view>
  216. <view class="item d-flex justify-content-between align-items-center">
  217. <view class="title">奖励规则</view>
  218. <text class="iconfont">&#xe63c;</text>
  219. </view>
  220. </view>
  221. <!-- <view class="my-invite-box m-t-20 bg-white flex-col col-center">
  222. <view class="my-invite-title sm normal">我的邀请码</view>
  223. <view class="flex bold m-t-20" style="font-size: 42rpx;line-height: 30rpx">
  224. {{userInfo.user.distribution_code}}
  225. <view class="invite-copy-btn m-l-10 xxs" @click="onCopy">点击复制</view>
  226. </view>
  227. <view class="row-center my-promote-banner bg-primary white">我的推广海报</view>
  228. </view> -->
  229. <!-- <view class="usual-tools-box bg-white m-t-20">
  230. <view class="usual-tools-header flex lg bold">
  231. 常用工具
  232. </view>
  233. <view class="usual-content flex">
  234. <router-link class="usual-item" to="/bundle/pages/user_spread_order/user_spread_order">
  235. <view class="flex-col col-center">
  236. <image src="/bundle/static/icon_fenxiao.png" class="usual-item-img"></image>
  237. <view class="nr normal m-t-20" style="line-height: 40rpx">分销订单</view>
  238. </view>
  239. </router-link>
  240. <router-link class="usual-item" to="/bundle/pages/commission_details/commission_details">
  241. <view class="flex-col col-center">
  242. <image src="/bundle/static/icon_yongjin.png" class="usual-item-img"></image>
  243. <view class="nr normal m-t-20" style="line-height: 40rpx">佣金明细</view>
  244. </view>
  245. </router-link>
  246. <router-link class="usual-item" to="/bundle/pages/monthly_bill/monthly_bill">
  247. <view class="flex-col col-center">
  248. <image src="/bundle/static/icon_zhangdan.png" class="usual-item-img"></image>
  249. <view class="nr normal m-t-20" style="line-height: 40rpx">月度账单</view>
  250. </view>
  251. </router-link>
  252. </view>
  253. </view> -->
  254. </view>
  255. </view>
  256. <u-popup v-model="showPop" mode="center" closeable border-radius="30">
  257. <view class="inviteform-contain flex-col col-center">
  258. <view class="title xl">填写邀请人</view>
  259. <view class="input-row flex">
  260. <view style="width: 140rpx;">邀请码:</view>
  261. <u-input :clearable="false" v-model="inviteCodes" placeholder="请输入邀请码"></u-input>
  262. </view>
  263. <view class="btn bg-primary white flex row-center" @tap="bindSuperiorFun">确定</view>
  264. </view>
  265. </u-popup>
  266. <u-select v-model="showRegion" mode="mutil-column-auto" @confirm="regionChange"
  267. :list="regionLists"></u-select>
  268. </view>
  269. </view>
  270. </template>
  271. <script>
  272. import {
  273. bindSuperior,
  274. applyDistribute,
  275. applyDetail,
  276. getSuperiorInfo,
  277. getDistribution,
  278. veryfiyDistribute
  279. } from '@/api/user';
  280. import area from '@/utils/area';
  281. import {
  282. copy
  283. } from '@/utils/tools';
  284. import {
  285. apiEnergy
  286. } from '@/api/shop.js';
  287. import {
  288. mapGetters,
  289. mapActions
  290. } from 'vuex';
  291. export default {
  292. data() {
  293. return {
  294. list: ['成为分销会员,推广下级可获得额外收益,推广越多收益越多'],
  295. showTips: true,
  296. showLoading: true,
  297. // 弹窗展示
  298. showPop: false,
  299. inviteCodes: '',
  300. mobile: '',
  301. realName: '',
  302. reason: '',
  303. region: '',
  304. // 省id
  305. provinceId: -1,
  306. // 市id
  307. cityId: -1,
  308. // 区ID
  309. districtId: -1,
  310. // 推销状态 0 ==> 未申请 1 ==> 申请进度 2 ==> 已申请
  311. vipState: 0,
  312. userInfo: {
  313. user: {},
  314. leader: {}
  315. },
  316. // 审核信息对象
  317. applyObject: {},
  318. // 邀请人状态
  319. inviteStatus: false,
  320. showRegion: false,
  321. regionLists: area,
  322. distributionInfo: {},
  323. data: {}
  324. };
  325. },
  326. onLoad(options) {
  327. // 获取上级及个人信息
  328. this.getSuperiorInfoFun();
  329. // 判断是否是分销会员
  330. this.veryfiyDistributeFun();
  331. },
  332. onShow() {
  333. this.getEnergy();
  334. },
  335. methods: {
  336. ...mapActions(['getUser']),
  337. // 分销会员信息
  338. async getDistributionFun() {
  339. const {
  340. data,
  341. code
  342. } = await getDistribution();
  343. if (code == 1) {
  344. this.showLoading = false;
  345. this.distributionInfo = data;
  346. }
  347. },
  348. async getEnergy() {
  349. const {
  350. data,
  351. code
  352. } = await apiEnergy();
  353. if (code == 1) {
  354. console.log(data);
  355. this.data = data;
  356. }
  357. },
  358. veryfiyDistributeFun() {
  359. veryfiyDistribute().then(res => {
  360. if (res.code == 10001) {
  361. // 分销会员
  362. this.vipState = 2;
  363. this.getDistributionFun();
  364. } else if (res.code == 20001) {
  365. // 非分销会员
  366. this.vipState = 0;
  367. this.applyDetailFun();
  368. } else if (res.code == 0) {
  369. // 返回上一页
  370. setTimeout(() => {
  371. uni.navigateBack();
  372. }, 500);
  373. }
  374. });
  375. },
  376. // 最新分销会员申请详情
  377. async applyDetailFun() {
  378. const {
  379. data,
  380. code
  381. } = await applyDetail();
  382. if (code == 1) {
  383. this.showLoading = false;
  384. switch (data.status) {
  385. case 0:
  386. // 待审核
  387. case 2:
  388. // 审核不通过
  389. this.vipState = 1;
  390. this.applyObject = data;
  391. break;
  392. }
  393. }
  394. },
  395. reApply() {
  396. this.vipState = 0;
  397. },
  398. regionChange(region) {
  399. this.region = region[0].label + ' ' + region[1].label + ' ' + region[2].label;
  400. this.provinceId = region[0].value;
  401. this.cityId = region[1].value;
  402. this.districtId = region[2].value;
  403. },
  404. async formSubmit() {
  405. let {
  406. provinceId,
  407. cityId,
  408. districtId,
  409. reason,
  410. mobile,
  411. realName,
  412. region
  413. } = this;
  414. if (!realName) {
  415. this.$toast({
  416. title: '请填写真实姓名'
  417. });
  418. return;
  419. }
  420. if (!region.length) {
  421. this.$toast({
  422. title: '请选择省市区'
  423. });
  424. return;
  425. }
  426. let params = {
  427. real_name: realName,
  428. province: provinceId,
  429. city: cityId,
  430. district: districtId,
  431. reason: reason,
  432. mobile
  433. };
  434. const {
  435. data,
  436. code,
  437. msg
  438. } = await applyDistribute(params);
  439. if (code == 1) {
  440. this.$toast({
  441. title: msg
  442. });
  443. this.applyDetailFun();
  444. }
  445. },
  446. // 填写邀请码
  447. bindSuperiorFun() {
  448. bindSuperior({
  449. code: this.inviteCodes
  450. }).then(res => {
  451. this.$toast({
  452. title: res.msg
  453. });
  454. if (res.code == 1) {
  455. this.showPop = false;
  456. this.getSuperiorInfoFun();
  457. }
  458. });
  459. },
  460. showInvitePop() {
  461. this.showPop = true;
  462. },
  463. // 获取邀请人信息
  464. async getSuperiorInfoFun() {
  465. const {
  466. data,
  467. code
  468. } = await getSuperiorInfo();
  469. if (code == 1) {
  470. this.userInfo = data;
  471. }
  472. },
  473. onCopy() {
  474. copy(this.userInfo.user.distribution_code);
  475. }
  476. }
  477. };
  478. </script>
  479. <style lang="scss">
  480. page {
  481. background: #f3f4f6 url('https://shop.xianghuaqi.net.cn/images/treasureBg.png') no-repeat;
  482. background-size: 100%;
  483. }
  484. .user-spread {
  485. // background-image: url(../../static/spread_top_bg.png);
  486. background-repeat: no-repeat;
  487. background-size: 100% auto;
  488. .header {
  489. display: flex;
  490. justify-content: space-between;
  491. align-items: center;
  492. .user-info {
  493. .user-avatar {
  494. position: relative;
  495. }
  496. .user-message {
  497. .write-btn {
  498. height: 42rpx;
  499. width: 100rpx;
  500. background-color: #ff838d;
  501. }
  502. }
  503. }
  504. .avatar-tag {
  505. background: linear-gradient(151deg, #ffe9d1 0%, #ffd2a7 100%);
  506. border-radius: 14px;
  507. font-size: 24rpx;
  508. color: #f73e33;
  509. width: 160rpx;
  510. height: 56rpx;
  511. text-align: center;
  512. line-height: 56rpx;
  513. margin-right: 20rpx;
  514. }
  515. }
  516. .main {
  517. padding: 0 20rpx;
  518. .user-vip {
  519. .user-assets-box {
  520. background-color: #fff;
  521. border-radius: 20rpx;
  522. padding: 10rpx 20rpx 22rpx;
  523. background: linear-gradient(90deg, #fbefdb 0%, #fed09e 100%);
  524. display: none;
  525. .user-assets-header {
  526. border-bottom: 1rpx dashed #8f430e;
  527. padding-bottom: 4rpx;
  528. .primary-btn {
  529. height: 54rpx;
  530. border-radius: 120rpx;
  531. width: 144rpx;
  532. background: linear-gradient(180deg, #ff3067 0%, #ff2c3c 100%);
  533. }
  534. }
  535. .user-assets-content {
  536. margin-top: 30rpx;
  537. .user-item {
  538. flex: 1;
  539. position: relative;
  540. .user-assets-name {
  541. text-align: left;
  542. align-self: flex-start;
  543. }
  544. .assets {
  545. margin-top: 14rpx;
  546. text-align: left;
  547. align-self: flex-start;
  548. }
  549. }
  550. }
  551. }
  552. .fans-msg-box {
  553. border-radius: 10rpx;
  554. line-height: 42rpx;
  555. .my-fans {
  556. height: 120rpx;
  557. }
  558. .line {
  559. width: 3rpx;
  560. height: 60rpx;
  561. background-color: #e5e5e5;
  562. }
  563. .invite-fans {
  564. height: 120rpx;
  565. }
  566. }
  567. .my-invite-box {
  568. padding: 26rpx 0 57rpx;
  569. border-radius: 10rpx;
  570. .invite-copy-btn {
  571. line-height: 30rpx;
  572. padding: 10rpx;
  573. background: linear-gradient(90deg, #fee4b4 0%, #fbcb96 100%);
  574. color: #8f430e;
  575. border-radius: 4rpx;
  576. }
  577. .my-promote-banner {
  578. margin-top: 30rpx;
  579. height: 148rpx;
  580. width: 542rpx;
  581. border-radius: 10rpx;
  582. }
  583. }
  584. .usual-tools-box {
  585. border-radius: 10rpx;
  586. padding: 0 25rpx;
  587. .usual-tools-header {
  588. height: 100rpx;
  589. line-height: 44rpx;
  590. border-bottom: $-solid-border;
  591. }
  592. .usual-content {
  593. padding: 40rpx 0;
  594. .usual-item {
  595. width: 25%;
  596. .usual-item-img {
  597. width: 56rpx;
  598. height: 56rpx;
  599. flex: none;
  600. }
  601. }
  602. }
  603. }
  604. }
  605. .user-apply-box {
  606. .user-apply-vip {
  607. background-color: white;
  608. padding: 40rpx 0 0rpx;
  609. border-radius: 20rpx;
  610. .title {
  611. line-height: 30rpx;
  612. font-weight: bold;
  613. }
  614. .explain {
  615. margin-top: 20rpx;
  616. image {
  617. width: 24rpx;
  618. height: 24rpx;
  619. flex: none;
  620. }
  621. span {
  622. font-size: 20rpx;
  623. line-height: 30rpx;
  624. }
  625. }
  626. .vip-form {
  627. width: 100%;
  628. margin-top: 60rpx;
  629. .form-item {
  630. border: $-solid-border;
  631. margin: 0 30rpx 30rpx;
  632. }
  633. }
  634. }
  635. .apply-btn {
  636. line-height: 30rpx;
  637. height: 82rpx;
  638. }
  639. }
  640. .user-result-box {
  641. .user-result {
  642. background-color: white;
  643. padding: 36rpx 14rpx 50rpx;
  644. border-radius: 20rpx;
  645. .user-result-header {
  646. .title {
  647. line-height: 30rpx;
  648. font-weight: bold;
  649. }
  650. }
  651. .user-result-content {
  652. padding: 60rpx 0 22rpx;
  653. width: 100%;
  654. border-bottom: $-solid-border;
  655. .apply-result-img {
  656. width: 100rpx;
  657. height: 100rpx;
  658. }
  659. }
  660. .user-result-info {
  661. margin-top: 42rpx;
  662. width: 100%;
  663. .info-item {
  664. margin-left: 60rpx;
  665. margin-bottom: 28rpx;
  666. line-height: 30rpx;
  667. .label {
  668. width: 140rpx;
  669. }
  670. }
  671. }
  672. }
  673. .apply-btn {
  674. line-height: 30rpx;
  675. height: 82rpx;
  676. }
  677. .bg-gray {
  678. background-color: #cccccc;
  679. }
  680. }
  681. }
  682. }
  683. .main .user-apply-box .apply-btn {
  684. line-height: 30rpx;
  685. height: 82rpx;
  686. }
  687. .main .user-result-box .user-result-content .apply-fail-reason {
  688. color: $-color-primary;
  689. line-height: 36rpx;
  690. margin-top: 10rpx;
  691. }
  692. /* 弹窗 */
  693. .inviteform-contain {
  694. padding-left: 30rpx;
  695. padding-right: 30rpx;
  696. padding-bottom: 30rpx;
  697. width: 580rpx;
  698. border-radius: 6rpx;
  699. background-color: $-color-white;
  700. }
  701. .inviteform-contain .title {
  702. padding: 26rpx 0rpx;
  703. }
  704. .inviteform-contain .modify-row {
  705. padding: 32rpx 0px;
  706. width: 100%;
  707. border-bottom: 1rpx solid #e5e5e5;
  708. }
  709. .inviteform-contain .btn {
  710. height: 80rpx;
  711. padding: 0 180rpx;
  712. border-radius: 10rpx;
  713. margin-top: 60rpx;
  714. }
  715. .account {
  716. margin: 32rpx auto;
  717. .top {
  718. background: linear-gradient(158deg, #fef6e1 0%, #f5e4be 100%);
  719. border-radius: 10px 10px 0px 0px;
  720. height: 186rpx;
  721. .item {
  722. text-align: center;
  723. flex-basis: 100%;
  724. .txt {
  725. font-size: 20rpx;
  726. color: #b18044;
  727. }
  728. .num {
  729. margin-top: 12rpx;
  730. font-weight: 600;
  731. font-size: 32rpx;
  732. color: #823308;
  733. }
  734. }
  735. }
  736. .wrap {
  737. padding: 40rpx;
  738. box-sizing: border-box;
  739. .item {
  740. width: 50%;
  741. border-bottom: 1px solid #f3f4f6;
  742. border-right: 1px solid #f3f4f6;
  743. padding: 40rpx 0;
  744. .txt {
  745. color: #616161;
  746. font-size: 20rpx;
  747. }
  748. .num {
  749. font-size: 32rpx;
  750. color: #040404;
  751. font-weight: 600;
  752. margin-top: 12rpx;
  753. }
  754. &:nth-child(3),
  755. &:nth-child(4) {
  756. border-bottom: none;
  757. }
  758. &:nth-child(2n) {
  759. padding-left: 20rpx;
  760. border-right: none;
  761. }
  762. }
  763. .btn {
  764. background: linear-gradient(142deg, #f16d60 0%, #f8352b 100%);
  765. border-radius: 25px;
  766. color: #fff;
  767. margin-top: 30rpx;
  768. &.blue {
  769. background: linear-gradient(142deg, #4897eb 0%, #1c80eb 100%);
  770. }
  771. }
  772. }
  773. }
  774. .user-code {
  775. height: 100rpx;
  776. padding: 0 24rpx;
  777. margin: 20rpx auto;
  778. .title {
  779. font-size: 28rpx;
  780. color: #363636;
  781. .tip {
  782. color: #aaaaaa;
  783. font-size: 24rpx;
  784. margin-left: 20rpx;
  785. }
  786. }
  787. .code {
  788. padding: 10rpx 20rpx;
  789. background-color: #f3f4f6;
  790. border-radius: 30rpx;
  791. font-size: 28rpx;
  792. font-weight: 600;
  793. }
  794. }
  795. .menu {
  796. margin: 24rpx auto;
  797. padding: 0 24rpx;
  798. box-sizing: border-box;
  799. .item {
  800. padding: 30rpx 0;
  801. box-sizing: border-box;
  802. border-bottom: 1px solid #f3f4f6;
  803. .title {
  804. color: #040404;
  805. font-size: 28rpx;
  806. font-weight: 600;
  807. }
  808. .num {
  809. color: #040404;
  810. font-weight: 600;
  811. }
  812. }
  813. }
  814. </style>