recharge.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <template>
  2. <view class="page-wrap">
  3. <view class="phone">18863100789</view>
  4. <view class="money-group">
  5. <view class="item" v-for="(item, index) in moneyList" :key="index" @click="handleOpenPay(item)">{{ item }}元</view>
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. export default {
  11. data() {
  12. return {
  13. moneyList: [100, 200, 500, 1000, 2000, 5000]
  14. };
  15. },
  16. methods: {
  17. handleOpenPay(val){
  18. uni.navigateTo({
  19. url: 'pay'
  20. });
  21. }
  22. }
  23. };
  24. </script>
  25. <style lang="scss" scoped>
  26. .phone {
  27. padding: 89.29rpx 42.58rpx 0;
  28. font-size: 49.45rpx;
  29. color: #333;
  30. &::after {
  31. content: '当前操作用户';
  32. display: block;
  33. font-size: 27.47rpx;
  34. color: #999;
  35. margin-left: 12.36rpx;
  36. }
  37. }
  38. .money-group{
  39. display: flex;
  40. justify-content: space-between;
  41. flex-wrap: wrap;
  42. padding: 41.21rpx 31.59rpx;
  43. .item{
  44. width: 219.78rpx;
  45. height: 123.63rpx;
  46. background: #fff;
  47. border-radius: 10.99rpx;
  48. border: 1rpx solid #e0e0e0;
  49. box-sizing: border-box;
  50. line-height: 120.88rpx;
  51. text-align: center;
  52. font-size: 38.46rpx;
  53. color: #7F2508;
  54. margin-bottom: 13.74rpx;
  55. }
  56. }
  57. </style>