青蛙卖大米小程序2024-11-24
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

191 lines
3.4 KiB

9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
  1. <template>
  2. <view class="page">
  3. <navbar title="提现"
  4. bgColor="#A3D250"
  5. color="#fff"
  6. leftClick
  7. @leftClick="$utils.navigateBack" />
  8. <view class="bg"/>
  9. <view class="price">
  10. <view class="title">
  11. 请输入提现金额
  12. </view>
  13. <view class="input-box">
  14. <view class="input">
  15. <input type="text" v-model="num"/>
  16. </view>
  17. <view class="">
  18. 全部提现
  19. </view>
  20. </view>
  21. <view class="num">
  22. 可提现金额{{ riceInfo.canWithdraw || 0 }}
  23. </view>
  24. </view>
  25. <view class="cell">
  26. <view class="cell-top">提现说明</view>
  27. <view style="padding: 0 20rpx;">
  28. <uv-parse :content="configList.withdrawal_instructions"></uv-parse>
  29. </view>
  30. </view>
  31. <view class="uni-color-btn"
  32. @click="submit">
  33. 提现
  34. </view>
  35. <view class="cell">
  36. <view class="cell-top">提现记录</view>
  37. <view class="cell-box"
  38. :key="index"
  39. v-for="(item,index) in list">
  40. <uv-cell-group>
  41. <uv-cell
  42. :title="item.title"
  43. :label="item.createTime"
  44. :center="true">
  45. <template #value>
  46. <view class="cell-text">
  47. <view class="price-text">-19.9</view>
  48. <view class="tips">已到账</view>
  49. </view>
  50. </template>
  51. </uv-cell>
  52. </uv-cell-group>
  53. </view>
  54. </view>
  55. </view>
  56. </template>
  57. <script>
  58. import mixinsList from '@/mixins/list.js'
  59. import { mapState } from 'vuex'
  60. export default {
  61. mixins : [mixinsList],
  62. data() {
  63. return {
  64. // mixinsListApi : 'getWaterPageList',
  65. list : [
  66. {
  67. title : '直播收入',
  68. type : 0,
  69. createTime : '2021-12-12',
  70. }
  71. ],
  72. type : ['-', '+'],
  73. num : 0,
  74. }
  75. },
  76. computed: {
  77. ...mapState(['userInfo', 'riceInfo']),
  78. },
  79. onShow() {
  80. this.$store.commit('getUserInfo')
  81. this.$store.commit('getRiceInfo')
  82. },
  83. methods: {
  84. submit(){
  85. this.$api('', res => {
  86. if(res.code == 200){
  87. uni.showToast({
  88. title: '提现成功',
  89. icon : 'none'
  90. })
  91. }
  92. })
  93. },
  94. },
  95. }
  96. </script>
  97. <style scoped lang="scss">
  98. .page{
  99. .bg{
  100. background-color: $uni-color;
  101. height: 380rpx;
  102. position: absolute;
  103. left: 0;
  104. width: 100%;
  105. z-index: -1;
  106. border-bottom-left-radius: 30rpx;
  107. border-bottom-right-radius: 30rpx;
  108. }
  109. .price{
  110. color: #FFFFFF;
  111. padding: 40rpx;
  112. .title{
  113. color: #eee;
  114. font-size: 28rpx;
  115. }
  116. .input-box{
  117. background-color: #FFFFFF;
  118. color: $uni-color;
  119. display: flex;
  120. justify-content: center;
  121. border-radius: 30rpx;
  122. align-items: center;
  123. padding: 10rpx;
  124. margin: 20rpx 0;
  125. .input{
  126. color: #000;
  127. font-size: 40rpx;
  128. font-weight: 900;
  129. display: flex;
  130. flex: 1;
  131. input{
  132. flex: 1;
  133. padding: 14rpx 20rpx;
  134. }
  135. }
  136. }
  137. .num{
  138. font-size: 30rpx;
  139. font-weight: 900;
  140. margin-top: 10rpx;
  141. }
  142. }
  143. .cell {
  144. margin: 20rpx;
  145. background-color: #FFFFFF;
  146. border-radius: 16rpx;
  147. .cell-top {
  148. padding: 40rpx 34rpx;
  149. color: #474747;
  150. font-size: 34rpx;
  151. font-weight: 600;
  152. position: relative;
  153. &::after{
  154. content: '';
  155. display: block;
  156. position: absolute;
  157. left: 55rpx;
  158. bottom: 38rpx;
  159. height: 10rpx;
  160. width: 120rpx;
  161. background: linear-gradient(to right, #fff, $uni-color);
  162. }
  163. }
  164. .cell-text{
  165. text-align: right;
  166. .price-text{
  167. color: #f40;
  168. font-size: 32rpx;
  169. font-weight: 900;
  170. }
  171. .tips{
  172. font-size: 22rpx;
  173. color: #aaa;
  174. margin-top: 10rpx;
  175. }
  176. }
  177. }
  178. }
  179. </style>