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

244 lines
4.6 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
  1. <template>
  2. <!-- <div>保证金退还</div> -->
  3. <view class="container">
  4. <view class="top" :style="{ borderRadius: '8rpx' }">
  5. <view class="level account">
  6. <view class="">
  7. 账户总览
  8. </view>
  9. </view>
  10. <view class="level Recharge">
  11. <view class="money level">
  12. <text>¥</text>
  13. <input v-model="money" type="text" />
  14. </view>
  15. </view>
  16. </view>
  17. <view class="center">
  18. <view class="text">
  19. 退还前提
  20. </view>
  21. <p>账户中无未完成/未结算的服务订单无待提现的余额退还规则</p>
  22. <view class="text">
  23. 余额退还规则
  24. </view>
  25. <p>1.履约保证金退还即注销喂养师身份;</p>
  26. <p>2.退还过程产生的手续费由平台承担;</p>
  27. <p>3.只可全额退还账户中履约保证金余额不可分批退还;</p>
  28. <p>4.如果认证成功后未成功接单认证费全额退款;</p>
  29. <p>5.成功接单并赚取酬劳后认证费正式收取收取后不予退款;</p>
  30. <p>6.成为喂养员后无违规行为且没有未完成的任务;退还缴纳的全部履约保证金;</p>
  31. <p>7.成为喂养员后有违规行为或仍有未完成的任务;退还账户中剩余履约保证金;</p>
  32. </view>
  33. <view class="level text1">
  34. 有关履约保证金的其他规则详见
  35. <view class="text4">
  36. 履约保证金&认证费协议
  37. </view>
  38. </view>
  39. <view class="buttom level" :style="{ borderRadius: '41rpx' }" @click="onRefund">
  40. <text>退还并注销伴宠师</text>
  41. </view>
  42. <up-popup
  43. :show="popupVisible"
  44. mode="center"
  45. bgColor="transparent"
  46. @close="onPopupClose"
  47. >
  48. <view class="popup">
  49. <image class="popup-bg" src="../static/bond/bg-popup.png"></image>
  50. <view class="flex-colc popup-content">
  51. <text>您已申请退还请联系服务顾问</text>
  52. <image class="qr" :src="qrCodeImage" mode="widthFix"></image>
  53. </view>
  54. <view class="btn-close" @click="popupVisible = false">
  55. <up-icon name="close-circle-fill" color="#ffffff" size="60rpx"></up-icon>
  56. </view>
  57. </view>
  58. </up-popup>
  59. </view>
  60. </template>
  61. <script setup>
  62. import { ref } from 'vue'
  63. const money = ref()
  64. const qrCodeImage = ref()
  65. const popupVisible = ref(false)
  66. const onPopupClose = () => {
  67. uni.reLaunch({
  68. url: '/pages/workbenchManage/index'
  69. })
  70. }
  71. const onRefund = () => {
  72. // todo: subimt refund and fetch qrcode and open popup
  73. popupVisible.value = true
  74. }
  75. </script>
  76. <style scoped lang="scss">
  77. .container {
  78. width: 100%;
  79. height: 150rpx;
  80. padding: 7% 3% 0 4%;
  81. box-sizing: border-box;
  82. background-image: linear-gradient(to bottom, #FFBF60, #F2F2F2);
  83. }
  84. .top {
  85. width: 702rpx;
  86. height: 227rpx;
  87. background-color: #FFFFFF;
  88. padding: 3% 6% 0 6%;
  89. box-sizing: border-box;
  90. font-size: 30rpx;
  91. }
  92. .level {
  93. display: flex;
  94. }
  95. .account {
  96. justify-content: space-between;
  97. color: #000000;
  98. font-size: 30rpx;
  99. }
  100. .Recharge {
  101. width: auto;
  102. height: 71rpx;
  103. justify-content: space-between;
  104. margin: 30rpx 0 0 30rpx;
  105. color: #FFFFFF;
  106. font-size: 22rpx;
  107. align-items: center;
  108. }
  109. .text2 {
  110. color: #BDBDBD;
  111. font-size: 22rpx;
  112. }
  113. .line {
  114. position: relative;
  115. padding: 0 0 0 20rpx;
  116. &::before {
  117. position: absolute;
  118. top: 7rpx;
  119. left: 10rpx;
  120. content: "";
  121. width: 3rpx;
  122. height: 26rpx;
  123. border-radius: 9rpx;
  124. background-color: #BDBDBD;
  125. }
  126. }
  127. .money {
  128. width: 450rpx;
  129. height: 71rpx;
  130. /* background-color: #FFBF60; */
  131. color: #FFBF60 !important;
  132. font-size: 54rpx !important;
  133. }
  134. .money input {
  135. margin-left: 5%;
  136. font-size: 61rpx;
  137. height: 71rpx;
  138. }
  139. .text3 {
  140. width: 131rpx;
  141. height: 47rpx;
  142. background-color: #FFBF60;
  143. line-height: 47rpx;
  144. display: flex;
  145. justify-content: center;
  146. }
  147. .center {
  148. width: 100%;
  149. height: 800rpx;
  150. padding: 3% 4%;
  151. box-sizing: border-box;
  152. color: #707070;
  153. font-size: 28rpx;
  154. line-height: 45rpx;
  155. }
  156. .text {
  157. color: black;
  158. font-size: 30rpx;
  159. font-weight: 700;
  160. margin: 3% 0;
  161. }
  162. .text1 {
  163. color: #BDBDBD;
  164. font-size: 22rpx;
  165. padding: 0 4%;
  166. box-sizing: border-box;
  167. }
  168. .text4 {
  169. color: #FFBF60;
  170. }
  171. .buttom {
  172. width: 594rpx;
  173. height: 94rpx;
  174. background-color: #FFBF60;
  175. margin: 25% 3% 0 7%;
  176. justify-content: center;
  177. align-items: center;
  178. color: #FFFFFF;
  179. font-size: 30rpx;
  180. }
  181. .popup {
  182. width: 632rpx;
  183. height: 835rpx;
  184. position: relative;
  185. &-bg,
  186. &-content {
  187. width: 100%;
  188. height: 100%;
  189. }
  190. &-content {
  191. position: absolute;
  192. top: 0;
  193. left: 0;
  194. padding-top: 276rpx;
  195. box-sizing: border-box;
  196. color: #707070;
  197. font-size: 28rpx;
  198. line-height: 37rpx;
  199. .qr {
  200. margin-top: 89rpx;
  201. width: 307rpx;
  202. height: auto;
  203. }
  204. }
  205. .btn-close {
  206. position: absolute;
  207. top: -27rpx;
  208. right: -13rpx;
  209. }
  210. }
  211. </style>