promotion.vue 6.2 KB

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