index.vue 35 KB

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