app-order-share-modal.vue 2.8 KB

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