app-order-share-modal.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <template>
  2. <view class="app-order-share-modal dir-left-nowrap main-center cross-center" v-if="show">
  3. <view class="modal">
  4. <view class="title">温馨提示</view>
  5. <view class="content">
  6. <template v-if="share_setting.become_condition == 1">
  7. <view class="mb-24">您单次消费满<text :class="getTheme + '-m-text ' + getTheme">¥{{share_setting.auto_share_val}}</text></view>
  8. </template>
  9. <template v-if="share_setting.become_condition == 4">
  10. <view class="mb-24">您累计消费满<text :class="getTheme + '-m-text ' + getTheme">¥{{share_setting.total_consume}}</text></view>
  11. </template>
  12. <template v-else-if="share_setting.become_condition == 2">
  13. <template v-if="share_setting.share_goods_status == 2">
  14. <view class="mb-24">您已购买指定商品</view>
  15. </template>
  16. <template v-else-if="share_setting.share_goods_status == 3">
  17. <view class="mb-24">您已购买指定分类商品</view>
  18. </template>
  19. </template>
  20. <view class="">{{share_setting.become_condition == 3 || share_setting.share_goods_status == 1 ? '您' : ''}}可申请成为分销商</view>
  21. </view>
  22. <view class="footer dir-left-nowrap cross-center">
  23. <view class="box-grow-1" @click="show=false">取消</view>
  24. <view class="box-grow-1" :class="getTheme + '-m-text ' + getTheme"
  25. @click="$jump({url: '/pages/share/index/index', open_type: 'navigate'})">申请分销商</view>
  26. </view>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. import {mapState, mapGetters} from "vuex";
  32. export default {
  33. name: "app-order-share-modal",
  34. data() {
  35. return {
  36. show: true,
  37. };
  38. },
  39. computed: {
  40. ...mapState({
  41. share_setting: state => state.mallConfig.share_setting,
  42. }),
  43. ...mapGetters('mallConfig', {
  44. getTheme: 'getTheme'
  45. })
  46. }
  47. }
  48. </script>
  49. <style scoped lang="scss">
  50. .app-order-share-modal {
  51. position: fixed;
  52. top: 0;
  53. left: 0;
  54. background-color: rgba(0, 0, 0, 0.5);
  55. width: 100%;
  56. height: 100%;
  57. .modal {
  58. background-color: #ffffff;
  59. width: #{620rpx};
  60. border-radius: #{16rpx};
  61. text-align: center;
  62. .title {
  63. margin-top: #{40rpx};
  64. }
  65. .content {
  66. margin: #{62rpx 0};
  67. }
  68. .footer {
  69. border-top: #{1rpx solid #e2e2e2};
  70. height: #{88rpx};
  71. view {
  72. width: 50%;
  73. &:first-child {
  74. color: #666666;
  75. border-right: #{1rpx solid #e2e2e2};
  76. }
  77. }
  78. }
  79. .mb-24 {
  80. margin-bottom: #{24rpx};
  81. text {
  82. font-size: 40rpx;
  83. }
  84. }
  85. }
  86. }
  87. </style>