promotion.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. <template>
  2. <view class="box">
  3. <view class="contBox">
  4. <view class="top">
  5. <view class="topLeft">
  6. <view class="topLeftTitle">未提现返利</view>
  7. <view class="topLeftNum">11</view>
  8. </view>
  9. <view class="topRight" @click="goRouter('promotionExtract')">提现</view>
  10. </view>
  11. <view class="numBox">
  12. <view class="numLine">总收益:120.34</view>
  13. <view class="numLine">已到账:78.99</view>
  14. </view>
  15. <view class="jlLine">
  16. <view class="lineTop">
  17. <view class="lineMs">集客活动名称</view>
  18. <view class="lineNum">收益:<span class="spanNum">50.54</span></view>
  19. </view>
  20. <view class="lineBottom">
  21. <view class="time">2020-07-20 19:08</view>
  22. <view class="nickName"></view>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. export default {
  30. components: {
  31. },
  32. data() {
  33. return {
  34. detail:'',
  35. themeColor:'',
  36. userInfo:'',
  37. }
  38. },
  39. onLoad(opt) {
  40. this.themeColor = uni.getStorageSync("themeColor");
  41. this.userInfo = uni.getStorageSync("userInfo");
  42. //this.getData();
  43. //this.getExplain();
  44. },
  45. onShow() {
  46. },
  47. methods: {
  48. getData(){
  49. uni.showLoading({
  50. title: '加载中'
  51. })
  52. this.$http('openMCustomer/getIndexData', {
  53. }, 'GET').then(res => {
  54. uni.hideLoading();
  55. this.detail = res.data
  56. //console.log('list+=', this.queryShopList);
  57. })
  58. },
  59. getExplain(){
  60. this.$http('openMCustomer/getExplain', {
  61. }, 'GET').then(res => {
  62. //uni.hideLoading();
  63. //this.detail = res.data
  64. //console.log('list+=', this.queryShopList);
  65. })
  66. },
  67. goRouter(url){
  68. //跳转到提现页面
  69. uni.navigateTo({
  70. url:url
  71. })
  72. }
  73. }
  74. }
  75. </script>
  76. <style scoped lang="less">
  77. .numBox{
  78. display: flex;color: #666666;
  79. padding-top: 20rpx;font-size: 26rpx;
  80. }
  81. .numLine{
  82. padding-right: 20rpx;
  83. }
  84. .box {
  85. width: 100vw;
  86. min-height: 100vh;
  87. background: #F4F5F7;
  88. }
  89. .contBox{
  90. padding: 20rpx 24rpx;
  91. }
  92. .top{
  93. background: #FFFFFF;
  94. border-radius: 10rpx;
  95. padding: 24rpx 20rpx;
  96. display: flex;
  97. justify-content: space-between;
  98. }
  99. .topLeftTitle{
  100. font-size: 30rpx;
  101. font-family: PingFangSC-Medium, PingFang SC;
  102. font-weight: 500;
  103. color: #333333;
  104. }
  105. .topLeftNum{
  106. font-size: 40rpx;
  107. font-family: PingFangSC-Semibold, PingFang SC;
  108. font-weight: 600;
  109. color: #EC0F0A;
  110. padding-top: 24rpx;
  111. }
  112. .topRight{
  113. width: 138rpx;
  114. height: 64rpx;
  115. background: #EC0F0A;
  116. border-radius: 10rpx;
  117. line-height: 64rpx;
  118. text-align: center;
  119. color: #FFFFFF;
  120. font-size: 28rpx;
  121. margin-top: 34rpx;
  122. }
  123. .xffl{
  124. background: #FFFFFF;
  125. margin-top: 20rpx;
  126. padding: 20rpx;
  127. border-radius: 10rpx;
  128. }
  129. .xfflTitle{
  130. font-size: 30rpx;
  131. font-family: PingFangSC-Medium, PingFang SC;
  132. font-weight: 500;
  133. color: #333333;
  134. }
  135. .xfflLine{
  136. display: flex;
  137. justify-content: space-between;
  138. font-size: 24rpx;
  139. font-family: PingFangSC-Regular, PingFang SC;
  140. font-weight: 400;
  141. color: #333333;
  142. line-height: 33rpx;
  143. padding: 15rpx 0;
  144. }
  145. .xfflyq{
  146. width: 10rpx;
  147. height: 10rpx;
  148. background: #EC0F0A;
  149. border-radius: 50%;
  150. margin-top: 12rpx;
  151. margin-right: 14rpx;
  152. }
  153. .xfflyq2{
  154. width: 10rpx;
  155. height: 10rpx;
  156. background: #3F90F7;
  157. border-radius: 50%;
  158. margin-top: 12rpx;
  159. margin-right: 14rpx;
  160. }
  161. .xfflyq3{
  162. width: 10rpx;
  163. height: 10rpx;
  164. background: #FF4F00;
  165. border-radius: 50%;
  166. margin-top: 12rpx;
  167. margin-right: 14rpx;
  168. }
  169. .xfflyq4{
  170. width: 10rpx;
  171. height: 10rpx;
  172. background: #6F2BE8;
  173. border-radius: 50%;
  174. margin-top: 12rpx;
  175. margin-right: 14rpx;
  176. }
  177. .xfflLineLeft{
  178. display: flex;
  179. width: 200rpx;
  180. }
  181. .xfflLineM{
  182. width: 200rpx;
  183. text-align: right;
  184. }
  185. .xfflLineR{
  186. width: 200rpx;
  187. text-align: right;
  188. }
  189. .lineLeftImg{
  190. width: 34rpx;
  191. height: 34rpx;
  192. }
  193. .lineLeftTxt{
  194. color: #333333;font-size: 28rpx;line-height: 34rpx;padding-left: 24rpx;
  195. }
  196. .lineRIghtNUm{
  197. color: #666666;font-size: 28rpx;line-height: 34rpx;padding-right: 16rpx;
  198. }
  199. .lineRightImg{
  200. width: 12rpx;
  201. height: 20rpx;
  202. margin-top: 7rpx;
  203. }
  204. .lineBox{
  205. background: #FFFFFF;width: 702rpx;margin-top: 20rpx;
  206. }
  207. .line{
  208. display: flex;
  209. justify-content: space-between;
  210. padding: 38rpx 32rpx;
  211. }
  212. .lineLeft{
  213. display: flex;
  214. }
  215. .lineRight{
  216. display: flex;
  217. }
  218. .smImg{
  219. width: 30rpx;height: 30rpx;
  220. }
  221. .smTxt{
  222. font-size: 28rpx;
  223. font-family: PingFangSC-Regular, PingFang SC;
  224. font-weight: 400;
  225. color: #999999;
  226. line-height: 30rpx;
  227. padding-left: 5rpx;
  228. }
  229. .smBox{
  230. display: flex;
  231. justify-content: center;
  232. padding-top: 30rpx;
  233. }
  234. </style>