猫妈狗爸伴宠师小程序前端代码
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.

172 lines
3.3 KiB

3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
  1. <template>
  2. <!-- <div>保证金</div> -->
  3. <view class="box">
  4. <view class="top" :style="{ borderRadius: '16rpx' }">
  5. <view class="level account">
  6. <view class="text1">
  7. 账户总览
  8. </view>
  9. <view class="level text4">
  10. <view @click="jumpToDetail">
  11. 资金明细
  12. </view>
  13. <view @click="jumpToRefund" class="line">
  14. 申请退还
  15. </view>
  16. </view>
  17. </view>
  18. <view class="level Recharge">
  19. <view class="money level">
  20. <text>¥</text>
  21. <input v-model="money" type="text" />
  22. </view>
  23. <view class="text2" :style="{ borderRadius: '23.5rpx' }" @click="onPay">
  24. 去充值
  25. </view>
  26. </view>
  27. </view>
  28. <view class="center size-28">
  29. <view class="text3">
  30. 保证金说明
  31. </view>
  32. <view>
  33. 履约保证金用于处理轻度违约行为以及交易纠纷;具体规则可在<text
  34. :style="{color:'#FFBF60'}">履约保证金协议</text>中查看如平台有任何私自克扣/乱扣费的情况可向市场监督局投诉平台会对违约做出公正的判罚同时接受公正的处理
  35. </view>
  36. <view class="">
  37. 若在服务过程中由于伴宠师自身原因发生用户的隐私或财产被侵犯等涉及法律相关问题并不是保证金可以解决的;如若发生恶性事件平台会坚决走法律程序判定责任并追责请各位伴宠师严于律己
  38. </view>
  39. </view>
  40. </view>
  41. </template>
  42. <script setup>
  43. import { ref } from 'vue'
  44. const money = ref()
  45. const jumpToDetail = () => {
  46. uni.navigateTo({
  47. url: "/otherPages/myOrdersManage/bond/detail"
  48. })
  49. }
  50. const jumpToRefund = () => {
  51. uni.navigateTo({
  52. url: "/otherPages/myOrdersManage/bond/refund"
  53. })
  54. }
  55. const onPay = () => {
  56. // todo: wx pay
  57. }
  58. </script>
  59. <style scoped lang="scss">
  60. .box {
  61. width: 750rpx;
  62. height: 180rpx;
  63. background-image: linear-gradient(to bottom, #FFBF60, #F2F2F2);
  64. padding: 60rpx 24rpx 0 24rpx;
  65. box-sizing: border-box;
  66. }
  67. .top {
  68. width: 702rpx;
  69. height: 227rpx;
  70. background-color: #FFFFFF;
  71. padding: 24rpx 34rpx 0 34rpx;
  72. box-sizing: border-box;
  73. }
  74. .account {
  75. justify-content: space-between;
  76. color: #BDBDBD;
  77. font-size: 22rpx;
  78. }
  79. .text1 {
  80. font-size: 30rpx;
  81. color: #000000;
  82. }
  83. .text4 {
  84. color: #BDBDBD;
  85. font-size: 22rpx;
  86. }
  87. .line {
  88. position: relative;
  89. padding: 0 0 0 20rpx;
  90. &::before {
  91. position: absolute;
  92. top: 7rpx;
  93. left: 10rpx;
  94. content: "";
  95. width: 3rpx;
  96. height: 26rpx;
  97. border-radius: 9rpx;
  98. background-color: #BDBDBD;
  99. }
  100. }
  101. .Recharge {
  102. width: auto;
  103. height: 71rpx;
  104. justify-content: space-between;
  105. margin: 30rpx 0 0 30rpx;
  106. color: #FFFFFF;
  107. font-size: 22rpx;
  108. align-items: center;
  109. }
  110. .money {
  111. width: 450rpx;
  112. height: 71rpx;
  113. /* background-color: #FFBF60; */
  114. color: #FFBF60 !important;
  115. font-size: 54rpx !important;
  116. }
  117. .money input {
  118. margin-left: 5%;
  119. font-size: 61rpx;
  120. height: 71rpx;
  121. }
  122. .text2 {
  123. width: 131rpx;
  124. height: 47rpx;
  125. background-color: #FFBF60;
  126. line-height: 47rpx;
  127. display: flex;
  128. justify-content: center;
  129. }
  130. .center {
  131. width: 100%;
  132. height: 1265rpx;
  133. font-size: 30rpx;
  134. color: #707070;
  135. padding: 44rpx 8rpx 0 34rpx;
  136. box-sizing: border-box;
  137. line-height: 45rpx;
  138. }
  139. .text3 {
  140. color: #000000;
  141. font-weight: 700;
  142. margin-bottom: 30rpx;
  143. }
  144. .level {
  145. display: flex;
  146. }
  147. .text4 {
  148. /* color: ; */
  149. }
  150. </style>