index.vue 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924
  1. <template>
  2. <app-layout>
  3. <view v-if="status == 1">
  4. <!-- 用户信息开始 -->
  5. <view class="info" :style="{'background-image': 'url('+share_setting.pic_url_home_head + ')'}">
  6. <view class="user-info dir-left-nowrap cross-center">
  7. <image class="user-avatar box-grow-0" :src="userInfo.avatar"></image>
  8. <view class="box-grow-1 dir-top-nowrap main-center">
  9. <view class="user-name t-omit">{{name ? name:userInfo.nickname}}</view>
  10. <view class="mtb-10 t-omit">{{custom_setting.words.parent_name.name}}:{{userInfo.identity.parent_name}}</view>
  11. <view v-if="index && index.level > 0">分销等级:{{index ? index.level_name : '无'}}</view>
  12. </view>
  13. <view class="box-grow-0" v-if="share_setting.is_show_share_level == 1"
  14. @click="$jump({url: '/pages/share/level/level', open_type: 'navigate'})">升级条件</view>
  15. <image class="box-grow-0 arrow-right" v-if="share_setting.is_show_share_level == 1"
  16. src="/static/image/icon/arrow-right-white.png"></image>
  17. </view>
  18. <view class="share-info">
  19. <view>{{custom_setting.words.can_be_presented.name}}</view>
  20. <view>
  21. <text style="font-family:DIN">{{index.money?index.money:0}}</text>元</view>
  22. </view>
  23. <view @click="toCash">
  24. <view class="withdraw-btn">{{custom_setting.words.cash.name}}</view>
  25. </view>
  26. </view>
  27. <!-- 佣金情况开始 -->
  28. <view class="nav main-justify cross-center">
  29. <view class="nav-left">
  30. <view class="nav-title">{{custom_setting.words.already_presented.name}}</view>
  31. <view>{{index.cash_money?index.cash_money:0}}元</view>
  32. </view>
  33. <view>
  34. <view class="nav-title">{{custom_setting.words.order_money_un.name}}</view>
  35. <view>{{index.order_money_un?index.order_money_un:0}}元</view>
  36. </view>
  37. </view>
  38. <!-- 功能菜单开始 -->
  39. <view class="list dir-left-wrap">
  40. <!-- 分销佣金 -->
  41. <view class="list-item">
  42. <view @click="toMoney">
  43. <image :src="custom_setting.menus.money.icon"></image>
  44. <view>{{custom_setting.menus.money.name}}</view>
  45. <view>
  46. <text>{{index.total_money?index.total_money:0}}</text>元
  47. </view>
  48. </view>
  49. </view>
  50. <!-- 分销订单 -->
  51. <view class="list-item">
  52. <view @click="toOrder">
  53. <image :src="custom_setting.menus.order.icon"></image>
  54. <view>{{custom_setting.menus.order.name}}</view>
  55. <view>
  56. <text>{{index.order_money?index.order_money:0}}</text>元
  57. </view>
  58. </view>
  59. </view>
  60. <!-- 提现明细 -->
  61. <view class="list-item">
  62. <view @click="toDetail">
  63. <image :src="custom_setting.menus.cash.icon"></image>
  64. <view>{{custom_setting.menus.cash.name}}</view>
  65. <view>
  66. <text>{{index.total_cash?index.total_cash:0}}</text>元
  67. </view>
  68. </view>
  69. </view>
  70. <!-- 我的团队 -->
  71. <view class="list-item">
  72. <view @click="toTeam">
  73. <image :src="custom_setting.menus.team.icon"></image>
  74. <view>{{custom_setting.menus.team.name}}</view>
  75. <view>
  76. <text>{{index.team_count?index.team_count:0}}</text>人
  77. </view>
  78. </view>
  79. </view>
  80. <!-- 推广二维码 -->
  81. <view class="list-item">
  82. <view @click="toQrcode">
  83. <image :src="custom_setting.menus.qrcode.icon"></image>
  84. <view>{{custom_setting.menus.qrcode.name}}</view>
  85. </view>
  86. </view>
  87. <!-- 团队分红 -->
  88. <view v-if="setting.is_bonus == 1" class="list-item">
  89. <view @click="toBonus">
  90. <image src="./../image/img-bonus-price.png"></image>
  91. <view>{{setting.form.entry_bonus?setting.form.entry_bonus:"团队分红"}}</view>
  92. </view>
  93. </view>
  94. <!-- 股东分红 -->
  95. <view v-if="stock.is_stock == 1" class="list-item">
  96. <view @click="toStock">
  97. <image src="/static/image/share/img-stock-price.png"></image>
  98. <view>{{stock.form.entry_bonus?stock.form.entry_bonus:"股东分红"}}</view>
  99. </view>
  100. </view>
  101. </view>
  102. </view>
  103. <!-- 不是分销商 -->
  104. <view class="no-pass" v-else-if="status == 2">
  105. <image class="no-pass-img" src="./../image/icon-share-tip.png"></image>
  106. <view>您还不是{{custom_setting.words.share_name.name}},请先提交申请!</view>
  107. <view v-if="share_setting.share_condition != '3'" @click="toAdd">
  108. <button :class="[`${theme}-background`,'no-pass-btn']">立即前往</button>
  109. </view>
  110. <view v-if="share_setting.share_condition == '3'" @click="toApply">
  111. <button :class="[`${theme}-background`,'no-pass-btn']">立即申请</button>
  112. </view>
  113. </view>
  114. <view v-else-if="status == 0">
  115. <image :src="share_setting.pic_url_status" class="add-bg"></image>
  116. <view class="thx">
  117. <image src="./../image/img-share-info.png"></image>
  118. <view>谢谢您的支持,请等待审核</view>
  119. </view>
  120. <view @click="toIndex">
  121. <view class="submit" style="margin:0">
  122. <button :class="[`${theme}-background`]">去商城逛逛</button>
  123. </view>
  124. </view>
  125. </view>
  126. <view class="status-3 dir-top-nowrap" v-else-if="status == 3">
  127. <image :src="share_setting.pic_url_status" class="add-bg"></image>
  128. <template v-if="share_setting.become_condition == 1">
  129. <view class="apply-status-3">
  130. <view class="dir-left-nowrap">
  131. <image class="money" src="./../image/money.png"></image>
  132. <view class="progress box-grow-0 cross-center">
  133. <view class="progress-content" :style="{left: `${percent}%`}">
  134. <view class="dir-top-nowrap cross-center" style="margin-left: -90%;">
  135. <view :class="theme + '-color'" class="q-price">{{order_price}}</view>
  136. <view class="shuxian"></view>
  137. <image class="icon" src="./../image/progress.png"></image>
  138. </view>
  139. </view>
  140. <view style="width: 100%;">
  141. <progress :percent="percent" stroke-width="5" activeColor="#ff4544" backgroundColor="#e3e3e3" />
  142. </view>
  143. </view>
  144. <image class="money" src="./../image/money-active.png"></image>
  145. </view>
  146. <view class="dir-left-nowrap cross-center price">
  147. <view class="box-grow-0">¥0</view>
  148. <view class="progress box-grow-1"></view>
  149. <view class="box-grow-0">¥{{share_setting.auto_share_val}}</view>
  150. </view>
  151. <view class="content">单次消费满<text>¥{{share_setting.auto_share_val}}</text>可{{condition}}成为分销商</view>
  152. <view class="content">您最高一次单次消费为<text>¥{{order_price}}</text></view>
  153. <view @click="$jump({url: '/pages/goods/list', open_type: 'navigate'})">
  154. <view class="submit">
  155. <button :class="[`${theme}-background`]">去商城逛逛</button>
  156. </view>
  157. </view>
  158. </view>
  159. </template>
  160. <template v-else-if="share_setting.share_goods_status == 1">
  161. <view class="share-goods-status-1">
  162. <view class="content">购买<text>任意商品</text>可{{condition}}成为分销商</view>
  163. <view @click="$jump({url: '/pages/goods/list', open_type: 'navigate'})">
  164. <view class="submit">
  165. <button :class="[`${theme}-background`]">去商城逛逛</button>
  166. </view>
  167. </view>
  168. </view>
  169. </template>
  170. <template v-else-if="share_setting.share_goods_status == 2">
  171. <view class="share-goods-status-1 box-grow-1 dir-top-nowrap">
  172. <view class="content">购买以下<text>指定商品</text>可{{condition}}成为分销商</view>
  173. <view class="box-grow-1" style="background-color: #f7f7f7">
  174. <view class="dir-left-nowrap goods-title main-center cross-center">
  175. <view class="border"></view>
  176. <image src="/static/image/icon/icon-favorite.png"></image>
  177. <view>指定商品</view>
  178. <view class="border"></view>
  179. </view>
  180. <view>
  181. <app-goods-list :list="goods_list"></app-goods-list>
  182. </view>
  183. </view>
  184. </view>
  185. </template>
  186. <template v-else-if="share_setting.share_goods_status == 3">
  187. <view class="share-goods-status-1 box-grow-1 dir-top-nowrap">
  188. <view class="content">购买以下<text>指定分类商品</text>可{{condition}}成为分销商</view>
  189. <view class="box-grow-1" style="background-color: #f7f7f7">
  190. <view class="dir-left-nowrap goods-title main-center cross-center">
  191. <view class="border"></view>
  192. <image src="/static/image/icon/icon-favorite.png"></image>
  193. <view>指定分类</view>
  194. <view class="border"></view>
  195. </view>
  196. <view class="dir-left-wrap cat-list">
  197. <block v-for="(item, index) in cat_list" :key="index">
  198. <view class="cat-item t-omit" @click="toGoods(item.value)">{{item.label}}</view>
  199. </block>
  200. </view>
  201. </view>
  202. </view>
  203. </template>
  204. </view>
  205. <view v-else-if="status == 4 || status == 5">
  206. <image :src="share_setting.pic_url_status" class="add-bg"></image>
  207. <view class="thx">
  208. <image class="warning" src="./../image/warning.png"></image>
  209. <template v-if="status == 4">
  210. <view class="apply-status-4">您的申请被拒绝</view>
  211. <view style="text-align: left">
  212. <text style="color: #999;">审核时间:</text>
  213. <text>{{share.apply_at}}</text>
  214. </view>
  215. <view style="text-align: left">
  216. <text style="color: #999;">拒绝理由:</text>
  217. <text>{{share.reason}}</text>
  218. </view>
  219. </template>
  220. <template v-if="status == 5">
  221. <view class="apply-status-4">您被解除分销商身份</view>
  222. <view style="text-align: left">
  223. <text style="color: #999;">解除时间:</text>
  224. <text>{{share.deleted_at}}</text>
  225. </view>
  226. <view style="text-align: left">
  227. <text style="color: #999;">解除理由:</text>
  228. <text>{{share.reason}}</text>
  229. </view>
  230. </template>
  231. </view>
  232. <view @click="againApply" class="submit again-apply main-center" style="margin:0">
  233. <button :class="[`${theme}-background`]">再次申请</button>
  234. </view>
  235. </view>
  236. <view class="bg" v-if="apply">
  237. <view class="dialog">
  238. <view class="dialog-title">提示</view>
  239. <view class="dialog-msg">是否申请成为{{custom_setting.words.share_name.name}}</view>
  240. <view class="dialog-btn main-center">
  241. <view @click="toApply" class="dialog-close">取消</view>
  242. <view class="line"></view>
  243. <view class="dialog-submit" @click="subscribe">确认</view>
  244. </view>
  245. </view>
  246. </view>
  247. </app-layout>
  248. </template>
  249. <script>
  250. import { mapState } from "vuex";
  251. import appGoodsList from "../../../components/page-component/app-goods-list/app-goods-list.vue";
  252. export default {
  253. components: {
  254. 'app-goods-list': appGoodsList,
  255. },
  256. data() {
  257. return {
  258. setting: null,
  259. status: -1,
  260. customize: [],
  261. name: null,
  262. first: false,
  263. page_loading: true,
  264. inApply: false,
  265. apply: false,
  266. template_message: null,
  267. index: [],
  268. order_price: null,
  269. goods_list: null,
  270. cat_list: null,
  271. share: null,
  272. stock: null,
  273. is_can_apply: false,
  274. }
  275. },
  276. computed: {
  277. ...mapState({
  278. theme: state => state.mallConfig.theme,
  279. userInfo: state => state.user.info,
  280. custom_setting: state => state.mallConfig.share_setting_custom,
  281. share_setting: state => state.mallConfig.share_setting,
  282. mall: state => state.mallConfig.mall,
  283. }),
  284. percent() {
  285. if (this.order_price === null) {
  286. return 0;
  287. } else {
  288. return parseFloat(this.order_price) / parseFloat(this.share_setting.auto_share_val) * 100;
  289. }
  290. },
  291. condition() {
  292. if (this.share_setting.share_condition == 3) {
  293. return '自动';
  294. } else {
  295. return '申请';
  296. }
  297. }
  298. },
  299. methods: {
  300. toApply() {
  301. this.apply = !this.apply;
  302. },
  303. toIndex() {
  304. uni.navigateTo({
  305. url: '/pages/index/index'
  306. });
  307. },
  308. toMoney() {
  309. uni.navigateTo({
  310. url: '/pages/share/money/money'
  311. });
  312. },
  313. toOrder() {
  314. uni.navigateTo({
  315. url: '/pages/share/order/order'
  316. });
  317. },
  318. toDetail() {
  319. uni.navigateTo({
  320. url: '/pages/share/cash-detail/cash-detail'
  321. });
  322. },
  323. toTeam() {
  324. uni.navigateTo({
  325. url: '/pages/share/team/team'
  326. });
  327. },
  328. toQrcode() {
  329. uni.navigateTo({
  330. url: '/pages/share/qrcode/qrcode'
  331. });
  332. },
  333. toBonus() {
  334. uni.navigateTo({
  335. url: '/plugins/bonus/index/index'
  336. });
  337. },
  338. toStock() {
  339. uni.navigateTo({
  340. url: '/plugins/stock/index/index?name=' + this.share.name + '&mobile=' + this.share.mobile
  341. });
  342. },
  343. toAdd() {
  344. let template_message = JSON.stringify(this.template_message);
  345. uni.navigateTo({
  346. url: '/pages/share/add/add?parent_name=' + this.userInfo.identity.parent_name + '&template_message=' + template_message
  347. });
  348. },
  349. toCash() {
  350. uni.navigateTo({
  351. url: '/pages/share/cash/cash?money=' + this.index.money
  352. });
  353. },
  354. subscribe() {
  355. this.$subscribe(this.template_message).then(res => {
  356. this.submit();
  357. }).catch(res => {
  358. this.submit();
  359. });
  360. },
  361. submit() {
  362. let that = this;
  363. uni.showLoading({
  364. title: '提交中...'
  365. });
  366. if(that.inApply) {
  367. return false
  368. }
  369. that.inApply = true;
  370. that.$request({
  371. url: that.$api.share.apply,
  372. data: {
  373. name: that.userInfo.nickname,
  374. mobile: that.userInfo.mobile
  375. },
  376. method: 'post'
  377. }).then(response=>{
  378. that.inApply = false;
  379. uni.hideLoading();
  380. if(response.code == 0) {
  381. that.status = 0;
  382. if (that.share_setting.share_condition == '3') {
  383. that.status = 1;
  384. }
  385. that.apply = false;
  386. that.getStatus();
  387. }else {
  388. uni.showToast({
  389. title: response.msg,
  390. icon: 'none',
  391. duration: 1000
  392. });
  393. }
  394. }).catch(response => {
  395. uni.hideLoading();
  396. });
  397. },
  398. getList() {
  399. let that = this;
  400. that.$request({
  401. url: that.$api.share.index,
  402. }).then(response=>{
  403. that.$hideLoading();
  404. if(response.code == 0) {
  405. that.index = response.data.list;
  406. that.setting = response.data.bonus_setting.list;
  407. that.stock = response.data.stock_setting;
  408. }else {
  409. uni.showToast({
  410. title: response.msg,
  411. icon: 'none',
  412. duration: 1000
  413. });
  414. }
  415. }).catch(response => {
  416. that.$hideLoading();
  417. });
  418. },
  419. getStatus() {
  420. let that = this;
  421. that.$request({
  422. url: that.$api.share.new_apply_status,
  423. }).then(response=>{
  424. that.first = true;
  425. if(response.code == 0) {
  426. that.template_message = response.data.template_message;
  427. that.status = response.data.status;
  428. that.share = response.data.share;
  429. that.order_price = response.data.orderPrice;
  430. that.goods_list = response.data.goodsList;
  431. that.cat_list = response.data.catList;
  432. that.is_can_apply = response.data.is_can_apply;
  433. if (that.status == 1) {
  434. that.getList();
  435. let name = response.data.share.name;
  436. if (that.share_setting.share_condition == '3') {
  437. name = that.userInfo.nickname
  438. }
  439. that.name = name;
  440. } else if (that.status == 2) {
  441. that.$hideLoading();
  442. if (this.share_setting.share_condition == '1' || this.share_setting.share_condition == 3) {
  443. that.apply = true;
  444. }
  445. }else {
  446. that.$hideLoading();
  447. }
  448. }else {
  449. that.$hideLoading();
  450. uni.showModal({
  451. content: response.msg,
  452. showCancel: false
  453. })
  454. }
  455. }).catch(response => {
  456. that.$hideLoading();
  457. that.$event.on(that.$const.EVENT_USER_LOGIN).then(()=>{
  458. that.$store.dispatch('user/info');
  459. that.getStatus();
  460. });
  461. });
  462. },
  463. againApply() {
  464. if (this.is_can_apply) {
  465. if (this.share_setting.share_condition == '1' || this.share_setting.share_condition == 3) {
  466. this.apply = true;
  467. } else {
  468. this.toAdd();
  469. }
  470. } else {
  471. this.status = 3;
  472. }
  473. },
  474. toGoods(cat_id) {
  475. this.$jump({
  476. url: '/pages/goods/list?cat_id=' + cat_id,
  477. open_type: 'navigate'
  478. });
  479. }
  480. },
  481. onLoad() {
  482. this.$store.dispatch('user/info');
  483. this.$showLoading({
  484. type: 'global',
  485. text: '加载中...'
  486. });
  487. this.getStatus();
  488. },
  489. onShow() {
  490. let that = this;
  491. if(that.first) {
  492. that.getStatus();
  493. }
  494. }
  495. }
  496. </script>
  497. <style scoped lang="scss">
  498. .info {
  499. height: #{312rpx};
  500. background-color: #ff4544;
  501. width: 100%;
  502. padding: #{20rpx} #{25rpx} 0;
  503. color: #fff;
  504. font-size: #{28rpx};
  505. background-repeat: no-repeat;
  506. background-size: #{750rpx} #{312rpx};
  507. }
  508. .user-info {
  509. border-bottom: #{1rpx} solid #FFFFFF;
  510. padding-bottom: #{20rpx};
  511. .arrow-right {
  512. width: #{12rpx};
  513. height: #{22rpx};
  514. margin-left: #{12rpx};
  515. display: block;
  516. }
  517. }
  518. .user-avatar {
  519. width: #{120rpx};
  520. height: #{120rpx};
  521. border-radius: 50%;
  522. font-size: #{26rpx};
  523. margin-right: #{40rpx};
  524. }
  525. .user-name {
  526. font-size: #{36rpx};
  527. }
  528. .mtb-10 {
  529. margin: #{10rpx 0};
  530. }
  531. .share-info {
  532. float: left;
  533. margin-top: #{20rpx};
  534. font-size: #{28rpx};
  535. }
  536. .share-info text {
  537. font-size: #{46rpx};
  538. }
  539. .withdraw-btn {
  540. float: right;
  541. width: #{105rpx};
  542. border-radius: #{28rpx};
  543. height: #{56rpx};
  544. line-height: #{54rpx};
  545. font-size: #{28rpx};
  546. color: #fff;
  547. background-color: auto;
  548. text-align: center;
  549. border: #{2rpx} solid #fff;
  550. padding: 0;
  551. margin-top: #{48rpx};
  552. }
  553. .withdraw-btn::after {
  554. border: 0;
  555. }
  556. .nav {
  557. background-color: #fff;
  558. height: #{160rpx};
  559. padding: #{40rpx} 0;
  560. text-align: center;
  561. font-size: #{30rpx};
  562. color: #666;
  563. width: #{702rpx};
  564. margin: #{16rpx} auto 0;
  565. border-radius: #{10rpx};
  566. }
  567. .nav>view {
  568. width: 50%;
  569. text-align: center;
  570. }
  571. .nav-left {
  572. margin-left: #{-1rpx};
  573. border-right: #{1rpx} solid #bbb;
  574. }
  575. .nav-title {
  576. font-size: #{26rpx};
  577. color: #ff8f17;
  578. margin-bottom: #{10rpx};
  579. }
  580. .nav-left .nav-title {
  581. color: #22af19;
  582. }
  583. .list {
  584. margin: #{16rpx} auto 0;
  585. background-color: #fff;
  586. width: #{702rpx};
  587. border-radius: #{10rpx};
  588. }
  589. .list-item {
  590. height: #{220rpx};
  591. width: #{234rpx};
  592. text-align: center;
  593. padding-top: #{57rpx};
  594. font-size: #{24rpx};
  595. color: #666;
  596. }
  597. .list-item image {
  598. height: #{61rpx};
  599. width: #{61rpx};
  600. vertical-align: top;
  601. margin-top: #{-10rpx};
  602. margin-bottom: #{10rpx};
  603. }
  604. .list-item text {
  605. color: #ff6868;
  606. }
  607. .list-item.no-border {
  608. border-bottom: 0;
  609. }
  610. .no-pass {
  611. position: absolute;
  612. left: 0;
  613. right: 0;
  614. height: 100%;
  615. width: 100%;
  616. background-color: #fff;
  617. text-align: center;
  618. padding-top: #{150rpx};
  619. color: #666;
  620. font-size: #{30rpx};
  621. }
  622. .no-pass-img {
  623. height: #{240rpx};
  624. width: #{420rpx};
  625. margin-bottom: #{80rpx};
  626. }
  627. .no-pass-btn {
  628. height: #{80rpx};
  629. width: #{560rpx};
  630. border-radius: #{40rpx};
  631. margin: #{88rpx} auto 0;
  632. color: #fff;
  633. font-size: #{30rpx};
  634. line-height: #{80rpx};
  635. }
  636. .withdraw-btn:active {
  637. background-color: rgba(0, 0, 0, 0.2);
  638. }
  639. .add-bg {
  640. height: #{300rpx};
  641. width: 100%;
  642. display: block;
  643. margin-bottom: #{20rpx};
  644. background-color: #f7f7f7;
  645. }
  646. .thx {
  647. padding: #{100rpx};
  648. text-align: center;
  649. color: #666;
  650. font-size: #{30rpx};
  651. }
  652. .thx image {
  653. height: #{80rpx};
  654. width: #{80rpx};
  655. margin-bottom: #{50rpx};
  656. }
  657. .submit {
  658. background-color: #f7f7f7;
  659. margin: 0 #{-24rpx};
  660. padding: #{24rpx};
  661. }
  662. .submit button {
  663. color: #fff;
  664. font-size: #{30rpx};
  665. font-weight: bold;
  666. height: #{100rpx};
  667. border-radius: #{50rpx};
  668. line-height: #{100rpx};
  669. }
  670. .bg {
  671. position: fixed;
  672. top: 0;
  673. left: 0;
  674. height: 100%;
  675. width: 100%;
  676. background-color: rgba(0, 0, 0, .3);
  677. z-index: 10;
  678. }
  679. .dialog {
  680. position: fixed;
  681. top: #{400rpx};
  682. left: 0;
  683. right: 0;
  684. height: #{300rpx};
  685. width: #{640rpx};
  686. margin: 0 auto;
  687. z-index: 21;
  688. background-color: #fff;
  689. border-radius: 10px;
  690. text-align: center;
  691. font-size: #{30rpx};
  692. }
  693. .dialog-title {
  694. margin: #{40rpx} auto #{35rpx};
  695. }
  696. .dialog-btn {
  697. height: #{88rpx};
  698. width: #{640rpx};
  699. border-top: #{1rpx} solid #e2e2e2;
  700. line-height: #{88rpx};
  701. position: absolute;
  702. bottom: 0;
  703. left: 0;
  704. }
  705. .dialog-close,.dialog-submit {
  706. width: 50%;
  707. }
  708. .line {
  709. height: #{44rpx};
  710. margin-top: #{22rpx};
  711. width: #{1rpx};
  712. background-color: #e2e2e2;
  713. }
  714. .dialog-submit {
  715. color: #ff4544;
  716. }
  717. .apply-status-4 {
  718. border-bottom: #{1rpx solid #e2e2e2};
  719. padding-bottom: #{32rpx};
  720. margin-bottom: #{32rpx};
  721. font-size: $uni-font-size-import-one;
  722. color: #353535;
  723. }
  724. .thx image.warning {
  725. width: #{160rpx};
  726. height: #{160rpx};
  727. }
  728. .again-apply {
  729. button {
  730. width: #{320rpx};
  731. }
  732. }
  733. .status-3 {
  734. background-color: #ffffff;
  735. min-height: 100vh;
  736. .submit {
  737. background-color: #ffffff;
  738. margin-top: #{160rpx};
  739. margin-left: 0;
  740. margin-right: 0;
  741. }
  742. }
  743. .apply-status-3 {
  744. padding: #{0 24rpx};
  745. margin-top: #{57rpx};
  746. .money {
  747. width: #{125rpx};
  748. height: #{100rpx};
  749. display: block;
  750. }
  751. .progress {
  752. width: #{470rpx};
  753. border-radius: #{5rpx};
  754. position: relative;
  755. .progress-content {
  756. position: absolute;
  757. top: -10rpx;
  758. z-index: 10;
  759. text-align: center;
  760. font-size: $uni-font-size-weak-one;
  761. .shuxian {
  762. width: #{2rpx};
  763. height: #{13rpx};
  764. border: #{1rpx solid #eeeeee};
  765. }
  766. .icon {
  767. width: #{35rpx};
  768. height: #{35rpx};
  769. display: block;
  770. }
  771. .q-price {
  772. &:before {
  773. content: '¥';
  774. }
  775. }
  776. }
  777. }
  778. .price {
  779. text-align: center;
  780. color: #999999;
  781. margin-left: #{20rpx};
  782. view:last-child {
  783. color: #ff4544;
  784. }
  785. }
  786. .content {
  787. text-align: center;
  788. color: #353535;
  789. font-size: #{35rpx};
  790. margin-top: #{47rpx};
  791. text {
  792. color: #ff4544;
  793. font-size: #{45rpx};
  794. }
  795. }
  796. }
  797. .share-goods-status-1 {
  798. .content {
  799. text-align: center;
  800. color: #353535;
  801. font-size: #{35rpx};
  802. margin-top: #{60rpx};
  803. margin-bottom: #{80rpx};
  804. text {
  805. color: #ff4544;
  806. font-size: #{45rpx};
  807. }
  808. }
  809. .goods-title {
  810. color: #a6a6a6;
  811. margin-top: #{36rpx};
  812. margin-bottom: #{34rpx};
  813. .border {
  814. width: #{40rpx};
  815. border: #{1rpx solid #a6a6a6};
  816. &:first-child {
  817. margin-right: #{24rpx};
  818. }
  819. &:last-child {
  820. margin-left: #{24rpx};
  821. }
  822. }
  823. image {
  824. width: #{24rpx};
  825. height: #{24rpx};
  826. display: block;
  827. margin-right: #{12rpx};
  828. }
  829. }
  830. }
  831. .cat-list {
  832. padding: #{0 24rpx};
  833. .cat-item {
  834. width: #{221rpx};
  835. padding: #{10rpx 27rpx};
  836. font-size: $uni-font-size-general-one;
  837. border-radius: #{30rpx};
  838. border: #{2rpx solid #e2e2e2};
  839. background-color: #ffffff;
  840. margin-right: #{18rpx};
  841. margin-bottom: #{34rpx};
  842. text-align: center;
  843. }
  844. }
  845. </style>