index.vue 34 KB

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