index.vue 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. <!-- #ifdef H5 -->
  2. <template >
  3. <view class="wallet_accelerate" :style="colorStyle">
  4. <view class="received_header">
  5. <view class="img-area">
  6. <text>获取更多红色积分</text>
  7. </view>
  8. <view class="text-area-1">
  9. <text> 当前红色积分: </text>
  10. <text style="color: #ec912d; font-size: 36rpx"> 0.0 </text>
  11. </view>
  12. <view class="text-area-2">
  13. <text> 可兑换: </text>
  14. <text style="color: #eb4c63; font-size: 36rpx"> 0.0元 </text>
  15. </view>
  16. <view class="btn-area">
  17. <button>去下单</button>
  18. </view>
  19. </view>
  20. <view class="received_body">
  21. <view class="img-area">
  22. <text>邀请好友注册</text>
  23. </view>
  24. <view class="btn-area">
  25. <button>去邀请</button>
  26. </view>
  27. <view class="text-area-1">
  28. <text> 规则说明: </text>
  29. </view>
  30. <view class="text-area-2">
  31. 1、完善个人资料 (+100信誉分)
  32. <br>
  33. 2、邀请好友注册完善资料(+5信誉分)
  34. <br>
  35. 3、每完成一次进货(+20信誉分)
  36. <br>
  37. 4、减少进货场次(-30信誉分)
  38. <br>
  39. 5、500信誉分以上完成一次进货+2信誉分,邀请好友注册完善资料+1信誉分
  40. <br>
  41. <br>
  42. 6、100信誉分—199信誉分(每场限抢一单)
  43. <br>
  44. 7、200信誉分—299信誉分(每场限抢二单)
  45. <br>
  46. 8、300信誉分—399信誉分(每场限抢三单)
  47. <br>
  48. 9、400信誉分—499信誉分(每场限抢四单)
  49. <br>
  50. 10、500信誉分以上用户(每场限抢五单)
  51. </view>
  52. </view>
  53. <view class="received_body">
  54. <view class="img-area">
  55. <text>团队好友下单累计满15人</text>
  56. </view>
  57. <view class="btn-area">
  58. <button>去邀请</button>
  59. </view>
  60. <view class="text-area-1">
  61. <text> 规则说明: </text>
  62. </view>
  63. <view class="text-area-2">
  64. 1、完善个人资料 (+100信誉分)
  65. <br>
  66. 2、邀请好友注册完善资料(+5信誉分)
  67. <br>
  68. 3、每完成一次进货(+20信誉分)
  69. <br>
  70. 4、减少进货场次(-30信誉分)
  71. <br>
  72. 5、500信誉分以上完成一次进货+2信誉分,邀请好友注册完善资料+1信誉分
  73. <br>
  74. <br>
  75. 6、100信誉分—199信誉分(每场限抢一单)
  76. <br>
  77. 7、200信誉分—299信誉分(每场限抢二单)
  78. <br>
  79. 8、300信誉分—399信誉分(每场限抢三单)
  80. <br>
  81. 9、400信誉分—499信誉分(每场限抢四单)
  82. <br>
  83. 10、500信誉分以上用户(每场限抢五单)
  84. </view>
  85. </view>
  86. </view>
  87. </template>
  88. <script> import {
  89. logListByUserId,
  90. todayStatistics
  91. } from '@/api/home.js';
  92. export default {
  93. components: {
  94. },
  95. data () {
  96. return {
  97. historyList: [],
  98. moneyObj: {
  99. lossTotalAmount: "0",
  100. receiveItemAmount: "0",
  101. receiveItemCount: 0,
  102. redEnvelopeItemCount: 0,
  103. remainItemCount: 0,
  104. totalReceivedRedEnvelopeAmount: "0",
  105. totalRedEnvelopeAmount: "0",
  106. totalRemainItemAmount: "0"
  107. },
  108. };
  109. },
  110. onPullDownRefresh () {
  111. this.logListByUserId()
  112. this.todayStatistics()
  113. },
  114. onLoad (options) {
  115. },
  116. created () {
  117. this.logListByUserId()
  118. this.todayStatistics()
  119. },
  120. methods: {
  121. todayStatistics () {
  122. todayStatistics().then(res => {
  123. this.moneyObj = res.data
  124. })
  125. },
  126. logListByUserId () {
  127. let that = this
  128. logListByUserId().then(res => {
  129. if (res.data.length > 0) {
  130. that.$set(that, "historyList", res.data)
  131. } else {
  132. that.$set(that, "historyList", [])
  133. }
  134. uni.stopPullDownRefresh();
  135. })
  136. },
  137. }
  138. }
  139. </script>
  140. <style scoped lang="scss">
  141. .wallet_accelerate {
  142. .received_header {
  143. height: 380rpx;
  144. position: relative;
  145. background: white;
  146. border-radius: 15px;
  147. margin: 10px;
  148. .img-area {
  149. text-align: center;
  150. color: white;
  151. position: relative;
  152. top: 0;
  153. left: 50%;
  154. transform: translateX(-50%);
  155. background: url("./矩形.png") no-repeat;
  156. width: 60%;
  157. height: 80rpx;
  158. line-height: 80rpx;
  159. font-size: 32rpx;
  160. background-size: 100% 100%;
  161. }
  162. .text-area-1 {
  163. width: 100%;
  164. height: 80rpx;
  165. position: relative;
  166. line-height: 80rpx;
  167. font-size: 32rpx;
  168. letter-spacing: 1px;
  169. padding-top: 20rpx;
  170. padding-left: 40rpx;
  171. }
  172. .text-area-2 {
  173. box-sizing: border-box;
  174. width: 100%;
  175. height: 50rpx;
  176. position: relative;
  177. line-height: 50rpx;
  178. font-size: 32rpx;
  179. letter-spacing: 1px;
  180. padding-top: 20rpx;
  181. padding-left: 40rpx;
  182. }
  183. .btn-area {
  184. position: relative;
  185. height: 170rpx;
  186. button {
  187. left: 50%;
  188. top: 60%;
  189. transform: translate(-50%, -60%);
  190. position: absolute;
  191. width: 35%;
  192. height: 70rpx;
  193. line-height: 70rpx;
  194. border-radius: 50rpx;
  195. font-size: 32rpx;
  196. border: 1px solid black;
  197. }
  198. }
  199. }
  200. .received_body {
  201. position: relative;
  202. background: white;
  203. border-radius: 15px;
  204. margin: 10px;
  205. .img-area {
  206. text-align: center;
  207. color: white;
  208. position: relative;
  209. top: 0;
  210. left: 50%;
  211. transform: translateX(-50%);
  212. background: url("./矩形.png") no-repeat;
  213. width: 60%;
  214. height: 80rpx;
  215. line-height: 80rpx;
  216. font-size: 32rpx;
  217. background-size: 100% 100%;
  218. }
  219. .text-area-1 {
  220. width: 100%;
  221. height: 80rpx;
  222. position: relative;
  223. top: -10rpx;
  224. line-height: 80rpx;
  225. font-size: 32rpx;
  226. letter-spacing: 1px;
  227. padding-left: 40rpx;
  228. }
  229. .text-area-2 {
  230. box-sizing: border-box;
  231. width: 100%;
  232. position: relative;
  233. line-height: 40rpx;
  234. font-size: 32rpx;
  235. padding-top: 20rpx;
  236. padding-left: 40rpx;
  237. color: #999999;
  238. padding-bottom: 10px;
  239. }
  240. .btn-area {
  241. position: relative;
  242. height: 130rpx;
  243. button {
  244. left: 50%;
  245. bottom: 0;
  246. transform: translateX(-50%);
  247. position: absolute;
  248. width: 35%;
  249. height: 70rpx;
  250. line-height: 70rpx;
  251. border-radius: 50rpx;
  252. font-size: 32rpx;
  253. border: 1px solid black;
  254. }
  255. }
  256. }
  257. }
  258. </style>
  259. <!-- #endif -->