rule.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <route lang="json5">
  2. { "style": { "navigationBarTitleText": "规则说明", "navigationBarBackgroundColor": "#fff" } }
  3. </route>
  4. <script setup lang="ts">
  5. import { phone, right } from '../../../core/libs/svgs'
  6. import { getDistribute } from '../../../core/libs/requests'
  7. import { handleCall } from '../../../core/utils/common'
  8. import { onLoad } from '@dcloudio/uni-app'
  9. const { data: distribute, run: setDistribute } = useRequest(() => getDistribute())
  10. const handleClick = () => {
  11. uni.navigateTo({ url: '/pages-sub/mine/orders/detail/index' })
  12. }
  13. onLoad(()=>{
  14. setDistribute()
  15. })
  16. </script>
  17. <template>
  18. <div class="px-[24rpx] py-[34rpx]">
  19. <view class="flex mb-[30rpx]">
  20. <icon type="info_circle" size="22" color="#000000"></icon>
  21. <text class="ml-[10rpx]">如何获得引荐加成奖励</text>
  22. </view>
  23. <view class="mb-[40rpx]" v-if="distribute && distribute.details">
  24. <rich-text :nodes="distribute.details"></rich-text>
  25. </view>
  26. <view class="rounded-[30rpx] overflow-hidden" style="border: 2rpx solid #B18A57;" v-if="distribute && distribute.distributeList.length > 0">
  27. <view class="flex w-full text-center py-[20rpx] bg-[#FFFCF6]">
  28. <view class="w-[33%] text-[28rpx] text-[#BC8647]">会员等级</view>
  29. <view class="w-[33%] text-[28rpx] text-[#BC8647]">一级奖励</view>
  30. <view class="w-[33%] text-[28rpx] text-[#BC8647]">二级奖励</view>
  31. </view>
  32. <block v-for="(it,i) in distribute.distributeList" :key="i">
  33. <view class="flex w-full text-center py-[20rpx] bg-[#FFFCF6]">
  34. <view class="w-[33%] text-[28rpx] text-[#BC8647]">{{ it.levelName }}</view>
  35. <view class="w-[33%] text-[28rpx] text-[#BC8647]">{{ it.oneRatio }}%</view>
  36. <view class="w-[33%] text-[28rpx] text-[#BC8647]">{{ it.twoRatio }}%</view>
  37. </view>
  38. </block>
  39. </view>
  40. </div>
  41. </template>