promotion.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  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">{{canMoney}}</view>
  8. </view>
  9. <view class="topRight" @click="goRouter('promotionExtract')">提现</view>
  10. </view>
  11. <view class="numBox">
  12. <view class="numLine">总收益:{{sumMoney}}</view>
  13. <view class="numLine">提现中:{{inMoney}}</view>
  14. <view class="numLine">已到账:{{alreadyMoney}}</view>
  15. </view>
  16. <view class="jlLine" v-for="item in records" :key="item.id">
  17. <view class="lineTop">
  18. <view class="lineMs">集客活动名称</view>
  19. <view class="lineNum">收益:<span class="spanNum">{{item.money}}</span></view>
  20. </view>
  21. <view class="lineBottom">
  22. <view class="time">{{item.createTime}}</view>
  23. <view class="nickName">微信昵称:{{item.customerName}}</view>
  24. </view>
  25. </view>
  26. <!-- <view class="jlLine">
  27. <view class="lineTop">
  28. <view class="lineMs">集客活动名称</view>
  29. <view class="lineNum">收益:<span class="spanNum">50.54</span></view>
  30. </view>
  31. <view class="lineBottom">
  32. <view class="time">2020-07-20 19:08</view>
  33. <view class="nickName">微信昵称:张三李四玩大炮呢突然不见了</view>
  34. </view>
  35. </view> -->
  36. </view>
  37. </view>
  38. </template>
  39. <script>
  40. export default {
  41. components: {
  42. },
  43. data() {
  44. return {
  45. detail:'',
  46. themeColor:'',
  47. userInfo:'',
  48. alreadyMoney: 0,
  49. canMoney: 0,
  50. inMoney: 0,
  51. sumMoney: 0,
  52. records: []
  53. }
  54. },
  55. onLoad(opt) {
  56. this.themeColor = uni.getStorageSync("themeColor");
  57. this.userInfo = uni.getStorageSync("userInfo");
  58. this.getData();
  59. //this.getExplain();
  60. },
  61. onShow() {
  62. },
  63. methods: {
  64. getData(){
  65. uni.showLoading({
  66. title: '加载中'
  67. })
  68. this.$http('jkCashout/getIndexData', {
  69. }, 'GET').then(res => {
  70. uni.hideLoading();
  71. //this.detail = res.data
  72. this.alreadyMoney = res.data.AlreadyMoney
  73. this.canMoney = res.data.CanMoney
  74. this.inMoney = res.data.InMoney
  75. this.sumMoney = res.data.SumMoney
  76. this.records = res.data.records
  77. //console.log('list+=', this.queryShopList);
  78. })
  79. },
  80. getExplain(){
  81. this.$http('openMCustomer/getExplain', {
  82. }, 'GET').then(res => {
  83. //uni.hideLoading();
  84. //this.detail = res.data
  85. //console.log('list+=', this.queryShopList);
  86. })
  87. },
  88. goRouter(url){
  89. //跳转到提现页面
  90. uni.navigateTo({
  91. url:url
  92. })
  93. }
  94. }
  95. }
  96. </script>
  97. <style scoped lang="less">
  98. .numBox{
  99. display: flex;
  100. color: #666666;
  101. padding: 20rpx 0 30rpx 0;
  102. font-size: 26rpx;
  103. }
  104. .numLine{
  105. padding-right: 20rpx;
  106. color: black;
  107. font-weight: bold;
  108. }
  109. .box {
  110. width: 100vw;
  111. min-height: 100vh;
  112. background: #F4F5F7;
  113. }
  114. .contBox{
  115. padding: 20rpx 24rpx;
  116. }
  117. .top{
  118. background: rgb(255,102,0);
  119. border-radius: 10rpx;
  120. padding: 24rpx 20rpx;
  121. display: flex;
  122. justify-content: space-between;
  123. }
  124. .fontColor{
  125. color: #ffffff;
  126. }
  127. .topLeftTitle{
  128. font-size: 30rpx;
  129. font-family: PingFangSC-Medium, PingFang SC;
  130. font-weight: 500;
  131. color: #ffffff;
  132. }
  133. .topLeftNum{
  134. font-size: 40rpx;
  135. font-family: PingFangSC-Semibold, PingFang SC;
  136. font-weight: 600;
  137. color: #ffffff;
  138. padding-top: 24rpx;
  139. }
  140. .topRight{
  141. // width: 138rpx;
  142. // height: 64rpx;
  143. //background: #EC0F0A;
  144. //border-radius: 10rpx;
  145. // line-height: 152rpx;
  146. // padding-right: 10rpx;
  147. // text-align: center;
  148. // color: #FFFFFF;
  149. // font-size: 28rpx;
  150. color: #FFFFFF;
  151. padding: 70rpx 20rpx 20rpx 0;
  152. }
  153. .jlLine{
  154. margin: 15rpx 0;
  155. display: flex;
  156. flex-direction: column;
  157. background-color: #FFFFFF;
  158. font-size: 25rpx;
  159. .lineTop{
  160. display: flex;
  161. justify-content: space-between;
  162. height: 70rpx;
  163. line-height: 70rpx;
  164. padding: 0 50rpx 0 20rpx;
  165. border-bottom: solid 3rpx #666666;
  166. color: #666666;
  167. .lineNum{
  168. width: 228rpx;
  169. .spanNum{
  170. color:rgb(255,102,0)
  171. }
  172. }
  173. }
  174. .lineBottom{
  175. display: flex;
  176. justify-content: space-between;
  177. height: 70rpx;
  178. line-height: 70rpx;
  179. padding: 0 50rpx 0 20rpx;
  180. .time{
  181. color: black;
  182. font-weight: 500;
  183. }
  184. .nickName{
  185. width: 228rpx;
  186. overflow: hidden;
  187. white-space: nowrap;
  188. text-overflow: ellipsis;
  189. color: #666666;
  190. }
  191. }
  192. }
  193. .xffl{
  194. background: #FFFFFF;
  195. margin-top: 20rpx;
  196. padding: 20rpx;
  197. border-radius: 10rpx;
  198. }
  199. .xfflTitle{
  200. font-size: 30rpx;
  201. font-family: PingFangSC-Medium, PingFang SC;
  202. font-weight: 500;
  203. color: #333333;
  204. }
  205. .xfflLine{
  206. display: flex;
  207. justify-content: space-between;
  208. font-size: 24rpx;
  209. font-family: PingFangSC-Regular, PingFang SC;
  210. font-weight: 400;
  211. color: #333333;
  212. line-height: 33rpx;
  213. padding: 15rpx 0;
  214. }
  215. .xfflyq{
  216. width: 10rpx;
  217. height: 10rpx;
  218. background: #EC0F0A;
  219. border-radius: 50%;
  220. margin-top: 12rpx;
  221. margin-right: 14rpx;
  222. }
  223. .xfflyq2{
  224. width: 10rpx;
  225. height: 10rpx;
  226. background: #3F90F7;
  227. border-radius: 50%;
  228. margin-top: 12rpx;
  229. margin-right: 14rpx;
  230. }
  231. .xfflyq3{
  232. width: 10rpx;
  233. height: 10rpx;
  234. background: #FF4F00;
  235. border-radius: 50%;
  236. margin-top: 12rpx;
  237. margin-right: 14rpx;
  238. }
  239. .xfflyq4{
  240. width: 10rpx;
  241. height: 10rpx;
  242. background: #6F2BE8;
  243. border-radius: 50%;
  244. margin-top: 12rpx;
  245. margin-right: 14rpx;
  246. }
  247. .xfflLineLeft{
  248. display: flex;
  249. width: 200rpx;
  250. }
  251. .xfflLineM{
  252. width: 200rpx;
  253. text-align: right;
  254. }
  255. .xfflLineR{
  256. width: 200rpx;
  257. text-align: right;
  258. }
  259. .lineLeftImg{
  260. width: 34rpx;
  261. height: 34rpx;
  262. }
  263. .lineLeftTxt{
  264. color: #333333;font-size: 28rpx;line-height: 34rpx;padding-left: 24rpx;
  265. }
  266. .lineRIghtNUm{
  267. color: #666666;font-size: 28rpx;line-height: 34rpx;padding-right: 16rpx;
  268. }
  269. .lineRightImg{
  270. width: 12rpx;
  271. height: 20rpx;
  272. margin-top: 7rpx;
  273. }
  274. .lineBox{
  275. background: #FFFFFF;width: 702rpx;margin-top: 20rpx;
  276. }
  277. .line{
  278. display: flex;
  279. justify-content: space-between;
  280. padding: 38rpx 32rpx;
  281. }
  282. .lineLeft{
  283. display: flex;
  284. }
  285. .lineRight{
  286. display: flex;
  287. }
  288. .smImg{
  289. width: 30rpx;height: 30rpx;
  290. }
  291. .smTxt{
  292. font-size: 28rpx;
  293. font-family: PingFangSC-Regular, PingFang SC;
  294. font-weight: 400;
  295. color: #999999;
  296. line-height: 30rpx;
  297. padding-left: 5rpx;
  298. }
  299. .smBox{
  300. display: flex;
  301. justify-content: center;
  302. padding-top: 30rpx;
  303. }
  304. </style>