promotion.vue 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  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. }
  99. }
  100. }
  101. </script>
  102. <style scoped lang="less">
  103. .numLine{
  104. padding-right: 20rpx;
  105. color: #ffffff;
  106. width: 40%;
  107. padding-top: 20rpx;
  108. font-size: 28rpx;
  109. }
  110. .box {
  111. width: 100vw;
  112. min-height: 100vh;
  113. background: #F4F5F7;
  114. }
  115. .contBox{
  116. padding: 20rpx 24rpx;
  117. }
  118. .top{
  119. background: linear-gradient(to bottom left,#FF6C5A,#FD865F);
  120. border-radius: 10rpx;
  121. padding: 24rpx 20rpx;
  122. .top-row{
  123. display: flex;
  124. justify-content: space-between;
  125. font-family: fantasy;
  126. }
  127. }
  128. .numBox{
  129. //color: #ffffff;
  130. padding: 20rpx 0 30rpx 0;
  131. font-size: 26rpx;
  132. }
  133. .fontColor{
  134. color: #ffffff;
  135. }
  136. .topLeftTitle{
  137. font-size: 35rpx;
  138. font-family: ;
  139. font-weight: 300;
  140. color: #ffffff;
  141. }
  142. .topLeftNum{
  143. font-size: 50rpx;
  144. font-family: PingFangSC-Semibold, PingFang SC;
  145. font-weight: 300;
  146. color: #ffffff;
  147. padding-top: 24rpx;
  148. }
  149. .topRight{
  150. color: #FFFFFF;
  151. padding: 70rpx 20rpx 40rpx 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. color: #666666;
  166. .lineMs{
  167. font-size: 30rpx;
  168. font-weight: 700;
  169. color: black;
  170. overflow: hidden;
  171. white-space: nowrap;
  172. text-overflow: ellipsis;
  173. padding-top: 10rpx;
  174. }
  175. .lineNum{
  176. width: 10%;
  177. padding-top: 10rpx;
  178. .spanNum{
  179. color:red;
  180. font-weight: 700;
  181. text-align: center;
  182. }
  183. }
  184. }
  185. .lineBottom{
  186. display: flex;
  187. justify-content: space-between;
  188. height: 70rpx;
  189. line-height: 70rpx;
  190. padding: 0 50rpx 0 20rpx;
  191. .time{
  192. color: #999999;
  193. }
  194. .nickName{
  195. width: 228rpx;
  196. overflow: hidden;
  197. white-space: nowrap;
  198. text-overflow: ellipsis;
  199. color: #666666;
  200. }
  201. }
  202. }
  203. .xffl{
  204. background: #FFFFFF;
  205. margin-top: 20rpx;
  206. padding: 20rpx;
  207. border-radius: 10rpx;
  208. }
  209. .xfflTitle{
  210. font-size: 30rpx;
  211. font-family: PingFangSC-Medium, PingFang SC;
  212. font-weight: 500;
  213. color: #333333;
  214. }
  215. .xfflLine{
  216. display: flex;
  217. justify-content: space-between;
  218. font-size: 24rpx;
  219. font-family: PingFangSC-Regular, PingFang SC;
  220. font-weight: 400;
  221. color: #333333;
  222. line-height: 33rpx;
  223. padding: 15rpx 0;
  224. }
  225. .xfflyq{
  226. width: 10rpx;
  227. height: 10rpx;
  228. background: #EC0F0A;
  229. border-radius: 50%;
  230. margin-top: 12rpx;
  231. margin-right: 14rpx;
  232. }
  233. .xfflyq2{
  234. width: 10rpx;
  235. height: 10rpx;
  236. background: #3F90F7;
  237. border-radius: 50%;
  238. margin-top: 12rpx;
  239. margin-right: 14rpx;
  240. }
  241. .xfflyq3{
  242. width: 10rpx;
  243. height: 10rpx;
  244. background: #FF4F00;
  245. border-radius: 50%;
  246. margin-top: 12rpx;
  247. margin-right: 14rpx;
  248. }
  249. .xfflyq4{
  250. width: 10rpx;
  251. height: 10rpx;
  252. background: #6F2BE8;
  253. border-radius: 50%;
  254. margin-top: 12rpx;
  255. margin-right: 14rpx;
  256. }
  257. .xfflLineLeft{
  258. display: flex;
  259. width: 200rpx;
  260. }
  261. .xfflLineM{
  262. width: 200rpx;
  263. text-align: right;
  264. }
  265. .xfflLineR{
  266. width: 200rpx;
  267. text-align: right;
  268. }
  269. .lineLeftImg{
  270. width: 34rpx;
  271. height: 34rpx;
  272. }
  273. .lineLeftTxt{
  274. color: #333333;font-size: 28rpx;line-height: 34rpx;padding-left: 24rpx;
  275. }
  276. .lineRIghtNUm{
  277. color: #666666;font-size: 28rpx;line-height: 34rpx;padding-right: 16rpx;
  278. }
  279. .lineRightImg{
  280. width: 12rpx;
  281. height: 20rpx;
  282. margin-top: 7rpx;
  283. }
  284. .lineBox{
  285. background: #FFFFFF;width: 702rpx;margin-top: 20rpx;
  286. }
  287. .line{
  288. display: flex;
  289. justify-content: space-between;
  290. padding: 38rpx 32rpx;
  291. }
  292. .lineLeft{
  293. display: flex;
  294. }
  295. .lineRight{
  296. display: flex;
  297. }
  298. .smImg{
  299. width: 30rpx;height: 30rpx;
  300. }
  301. .smTxt{
  302. font-size: 28rpx;
  303. font-family: PingFangSC-Regular, PingFang SC;
  304. font-weight: 400;
  305. color: #999999;
  306. line-height: 30rpx;
  307. padding-left: 5rpx;
  308. }
  309. .smBox{
  310. display: flex;
  311. justify-content: center;
  312. padding-top: 30rpx;
  313. }
  314. </style>