index.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. <template>
  2. <view class="content">
  3. <image src="../../static/img/index/index.png" mode="" class="bg"></image>
  4. <view class="box">
  5. <view v-for="(item, index) in list" :key="index">
  6. <view class="discounts">
  7. <image src="../../static/img/index/youhui1.png" mode="" class="discounts1"></image>
  8. <view class="money">
  9. <text>{{ item.money }}</text>
  10. </view>
  11. <view class="baodan" @click="baodan(item.id)"><image src="../../static/img/index/baodan1.png" mode=""></image></view>
  12. </view>
  13. <view class="earnings-box">
  14. <image src="../../static/img/index/vip.png" mode="" class="earnings"></image>
  15. <view class="text-box">
  16. <view class="textDetail" v-for="(ls, index) in revenueList">
  17. <view class="textDetail-title">{{ index < 2 ? index + 1 + '层收益' : index + 1 + '层收益(黑钻VIP会员专属)' }}</view>
  18. <view class="textDetail-content">{{ ls }}</view>
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="index1">
  25. <image src="../../static/img/index/index1.png" mode=""></image>
  26. <view class="bottom">
  27. </view>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. import { mapState, mapMutations } from 'vuex';
  33. import { activityList } from '@/api/active.js';
  34. export default {
  35. components: {},
  36. computed:{
  37. ...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
  38. },
  39. data() {
  40. return {
  41. list: [],
  42. revenueList: [
  43. '5人x2000元=1万元',
  44. '25人x2000元=5万元',
  45. '125人x2000元=25万元 ',
  46. '625人x2000元=125万元',
  47. '3125人x2000元=625万元 ',
  48. '15625人x2000元=3125万元 ',
  49. '78125人x2000元=1.5625亿元'
  50. ]
  51. };
  52. },
  53. onShow() {
  54. this.loadData();
  55. },
  56. methods: {
  57. baodan(id) {
  58. if(!this.userInfo.bank_card_no && !this.userInfo.bank_of_deposit){
  59. console.log(this.userInfo,"11111")
  60. uni.showModal({
  61. title: '提示',
  62. content: '您当前未填写银行卡信息和所属银行是否前往填写',
  63. success: function (res) {
  64. if (res.confirm) {
  65. uni.navigateTo({
  66. url:'/pages/set/userinfo'
  67. })
  68. } else if (res.cancel) {
  69. console.log('用户点击取消');
  70. }
  71. }
  72. });
  73. }else {
  74. uni.navigateTo({
  75. url:'/pages/index/info?id='+ id
  76. });
  77. }
  78. },
  79. loadData(){
  80. activityList({}).then(({data}) =>{
  81. this.list = data.list
  82. })
  83. }
  84. }
  85. };
  86. </script>
  87. <style lang="scss" scoped>
  88. page {
  89. height: auto;
  90. min-height: 100%;
  91. }
  92. .content {
  93. position: relative;
  94. display: flex;
  95. flex-direction: column;
  96. .bg {
  97. width: 100%;
  98. height: 1480rpx ;
  99. }
  100. .box {
  101. z-index: 100;
  102. .discounts {
  103. margin: 0 30rpx;
  104. display: flex;
  105. justify-content: center;
  106. position: relative;
  107. width: 690rpx;
  108. height: 890rpx;
  109. .discounts1 {
  110. width: 100%;
  111. height: 100%;
  112. }
  113. .money {
  114. margin: 0 auto;
  115. display: flex;
  116. justify-content: center;
  117. align-items: center;
  118. top: 0;
  119. margin-top: 250rpx;
  120. font-size: 36rpx;
  121. font-family: Source Han Sans CN;
  122. font-weight: bold;
  123. color: #c63535;
  124. line-height: 30rpx;
  125. position: absolute;
  126. text {
  127. font-size: 116rpx;
  128. font-family: Source Han Sans CN;
  129. font-weight: 800;
  130. color: #c63535;
  131. line-height: 115rpx;
  132. }
  133. }
  134. .baodan {
  135. position: absolute;
  136. top: 690rpx;
  137. width: 300rpx;
  138. height: 80rpx;
  139. image {
  140. width: 100%;
  141. height: 100%;
  142. }
  143. }
  144. }
  145. .earnings-box {
  146. position: relative;
  147. margin: 40rpx 30rpx;
  148. width: 690rpx;
  149. height: 1140rpx;
  150. .earnings {
  151. width: 100%;
  152. height: 100%;
  153. }
  154. .text-box {
  155. position: absolute;
  156. top: 184rpx;
  157. left: 110rpx;
  158. .textDetail {
  159. min-height: 134rpx;
  160. max-height: 140rpx;
  161. overflow: hidden;
  162. padding-bottom: 64rpx;
  163. .textDetail-title {
  164. font-size: 28rpx;
  165. font-family: PingFang SC;
  166. font-weight: bold;
  167. color: #4e2c0e;
  168. line-height: 30rpx;
  169. padding-bottom: 10rpx;
  170. }
  171. .textDetail-content {
  172. font-size: 30rpx;
  173. font-family: PingFang SC;
  174. font-weight: bold;
  175. color: #4e2c0e;
  176. line-height: 30rpx;
  177. }
  178. }
  179. }
  180. }
  181. }
  182. .index1{
  183. position: absolute;
  184. bottom: -400rpx;
  185. width: 100%;
  186. height: 713rpx;
  187. image{
  188. width: 100%;
  189. height: 100%;
  190. }
  191. .bottom{
  192. width: 100%;
  193. height: 100rpx;
  194. position: absolute;
  195. }
  196. }
  197. }
  198. </style>