promotion.vue 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  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" style="text-align: right;">已到账:{{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. padding-top: 10rpx;
  145. }
  146. .topLeftNum{
  147. font-size: 50rpx;
  148. font-family: PingFangSC-Semibold, PingFang SC;
  149. font-weight: 300;
  150. color: #ffffff;
  151. padding-top: 24rpx;
  152. font-weight: 400;
  153. }
  154. .topRight{
  155. color: #FFFFFF;
  156. padding: 70rpx 20rpx 40rpx 0;
  157. }
  158. .jlLine{
  159. margin: 15rpx 0;
  160. display: flex;
  161. flex-direction: column;
  162. background-color: #FFFFFF;
  163. font-size: 25rpx;
  164. .lineTop{
  165. display: flex;
  166. justify-content: space-between;
  167. height: 70rpx;
  168. line-height: 70rpx;
  169. padding: 0 50rpx 0 20rpx;
  170. color: #666666;
  171. .lineMs{
  172. font-size: 30rpx;
  173. font-weight: 700;
  174. color: black;
  175. overflow: hidden;
  176. white-space: nowrap;
  177. text-overflow: ellipsis;
  178. padding-top: 10rpx;
  179. }
  180. .lineNum{
  181. width: 10%;
  182. padding-top: 10rpx;
  183. .spanNum{
  184. color:red;
  185. font-weight: 700;
  186. text-align: center;
  187. font-size: 30rpx;
  188. }
  189. }
  190. }
  191. .lineBottom{
  192. display: flex;
  193. justify-content: space-between;
  194. height: 60rpx;
  195. line-height: 60rpx;
  196. padding: 0 50rpx 0 20rpx;
  197. .time{
  198. color: #999999;
  199. }
  200. .nickName{
  201. width: 228rpx;
  202. overflow: hidden;
  203. white-space: nowrap;
  204. text-overflow: ellipsis;
  205. color: #666666;
  206. }
  207. }
  208. }
  209. .xffl{
  210. background: #FFFFFF;
  211. margin-top: 20rpx;
  212. padding: 20rpx;
  213. border-radius: 10rpx;
  214. }
  215. .xfflTitle{
  216. font-size: 30rpx;
  217. font-family: PingFangSC-Medium, PingFang SC;
  218. font-weight: 500;
  219. color: #333333;
  220. }
  221. .xfflLine{
  222. display: flex;
  223. justify-content: space-between;
  224. font-size: 24rpx;
  225. font-family: PingFangSC-Regular, PingFang SC;
  226. font-weight: 400;
  227. color: #333333;
  228. line-height: 33rpx;
  229. padding: 15rpx 0;
  230. }
  231. .xfflyq{
  232. width: 10rpx;
  233. height: 10rpx;
  234. background: #EC0F0A;
  235. border-radius: 50%;
  236. margin-top: 12rpx;
  237. margin-right: 14rpx;
  238. }
  239. .xfflyq2{
  240. width: 10rpx;
  241. height: 10rpx;
  242. background: #3F90F7;
  243. border-radius: 50%;
  244. margin-top: 12rpx;
  245. margin-right: 14rpx;
  246. }
  247. .xfflyq3{
  248. width: 10rpx;
  249. height: 10rpx;
  250. background: #FF4F00;
  251. border-radius: 50%;
  252. margin-top: 12rpx;
  253. margin-right: 14rpx;
  254. }
  255. .xfflyq4{
  256. width: 10rpx;
  257. height: 10rpx;
  258. background: #6F2BE8;
  259. border-radius: 50%;
  260. margin-top: 12rpx;
  261. margin-right: 14rpx;
  262. }
  263. .xfflLineLeft{
  264. display: flex;
  265. width: 200rpx;
  266. }
  267. .xfflLineM{
  268. width: 200rpx;
  269. text-align: right;
  270. }
  271. .xfflLineR{
  272. width: 200rpx;
  273. text-align: right;
  274. }
  275. .lineLeftImg{
  276. width: 34rpx;
  277. height: 34rpx;
  278. }
  279. .lineLeftTxt{
  280. color: #333333;font-size: 28rpx;line-height: 34rpx;padding-left: 24rpx;
  281. }
  282. .lineRIghtNUm{
  283. color: #666666;font-size: 28rpx;line-height: 34rpx;padding-right: 16rpx;
  284. }
  285. .lineRightImg{
  286. width: 12rpx;
  287. height: 20rpx;
  288. margin-top: 7rpx;
  289. }
  290. .lineBox{
  291. background: #FFFFFF;width: 702rpx;margin-top: 20rpx;
  292. }
  293. .line{
  294. display: flex;
  295. justify-content: space-between;
  296. padding: 38rpx 32rpx;
  297. }
  298. .lineLeft{
  299. display: flex;
  300. }
  301. .lineRight{
  302. display: flex;
  303. }
  304. .smImg{
  305. width: 30rpx;height: 30rpx;
  306. }
  307. .smTxt{
  308. font-size: 28rpx;
  309. font-family: PingFangSC-Regular, PingFang SC;
  310. font-weight: 400;
  311. color: #999999;
  312. line-height: 30rpx;
  313. padding-left: 5rpx;
  314. }
  315. .smBox{
  316. display: flex;
  317. justify-content: center;
  318. padding-top: 30rpx;
  319. }
  320. </style>