renewSuccess.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <template>
  2. <view class="app-content">
  3. <view class="billing_box_bg">
  4. <view class="top-view"> </view>
  5. <view class="result-view">
  6. <view :class="['iconfont', 'iconchenggong']"></view>
  7. <view class="result-title">支付成功</view>
  8. <view class="result-title" v-if="type == 0">已延长到:{{ deadline?deadline.substr(0,10):'' }}</view>
  9. <button class="admin-button-com big" style="width:45vw;margin-top:20upx;" @click="goBack">返回</button>
  10. </view>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. import { mapGetters } from "vuex";
  16. import {currentShop} from "@/api/shop";
  17. export default {
  18. name: "renewSuccess",
  19. data() {
  20. return {
  21. deadline:'',
  22. type:0
  23. }
  24. },
  25. onLoad () {
  26. this.type = this.option.type?this.option.type:0
  27. },
  28. methods: {
  29. goBack(){
  30. uni.navigateBack({delta:1})
  31. },
  32. init(){
  33. let that = this
  34. currentShop().then(res => {
  35. if(res.code == 1){
  36. that.deadline = res.data.deadline
  37. }
  38. })
  39. }
  40. }
  41. };
  42. </script>
  43. <style lang="scss" scoped>
  44. .go-back{
  45. width: 80%;
  46. height: 80upx;
  47. color: #FFFFFF;
  48. margin-top: 50upx;
  49. background: #3385FF;
  50. border-radius: 10upx;
  51. font-size:30upx;
  52. }
  53. .title{
  54. font-weight:700;
  55. margin-bottom:30upx;
  56. font-size:30upx;
  57. }
  58. .product-area{
  59. width:730upx;
  60. height:90upx;
  61. display:flex;
  62. align-items:center;
  63. .first-area{
  64. border-bottom:1upx solid #e4e2e2;
  65. position:relative;
  66. width:550upx;
  67. .name{
  68. width:280upx;
  69. overflow: hidden;
  70. text-overflow:ellipsis;
  71. white-space: nowrap;
  72. display:inline-block;
  73. font-weight:bold;
  74. font-size:28upx;
  75. }
  76. .cg-cost{
  77. font-weight:bold;
  78. font-size:27upx;
  79. color:red;
  80. position:absolute;
  81. left:480upx;
  82. top:8upx;
  83. }
  84. .cost-price{
  85. font-weight:bold;
  86. font-size:27upx;
  87. color:blue;
  88. position:absolute;
  89. left:515upx;
  90. top:18upx;
  91. }
  92. input{
  93. border:1upx solid #cccccc;
  94. display:inline-block;
  95. width:135upx;
  96. margin-left:10upx;
  97. margin-right:30upx;
  98. text-align:center;
  99. font-size:30upx;
  100. }
  101. }
  102. .second-area{
  103. float:left;
  104. color:#646464;
  105. margin-top:10upx;
  106. .one{
  107. color:red;
  108. }
  109. .two{
  110. color:#CCCCCC;
  111. }
  112. }
  113. }
  114. .billing_box_bg {
  115. position: relative;
  116. padding: 30upx 30upx;
  117. display: flex;
  118. flex-direction: column;
  119. background-color: #f5f5f5;
  120. .top-view {
  121. position: absolute;
  122. top: 0;
  123. left: 0;
  124. width: 100%;
  125. height: 299upx;
  126. background: #3385ff;
  127. border-radius: 0upx 0upx 83upx 83upx;
  128. }
  129. .result-view {
  130. position: relative;
  131. display: flex;
  132. flex-direction: column;
  133. align-items: center;
  134. padding: 30upx 70upx 70upx 70upx;
  135. width: 100%;
  136. background: #ffffff;
  137. border-radius: 20upx;
  138. z-index: 1;
  139. .iconchenggong {
  140. font-size: 170upx;
  141. color: $mainColor1;
  142. }
  143. .result-title {
  144. margin: 20upx 0 50upx;
  145. font-size: 32upx;
  146. }
  147. .close_btn {
  148. line-height: 88upx;
  149. text-align: center;
  150. width: 550upx;
  151. height: 88upx;
  152. border: 1px solid #dddddd;
  153. border-radius: 8upx;
  154. font-size: 32upx;
  155. color: #666;
  156. }
  157. }
  158. .admin-button-com {
  159. margin-bottom: 20upx;
  160. width: 100%;
  161. }
  162. }
  163. </style>