青蛙卖大米小程序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.

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