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.

217 lines
5.0 KiB

  1. <template>
  2. <view class="successful-page">
  3. <view class="banner-image">
  4. <image src="https://catmdogf.oss-cn-shanghai.aliyuncs.com/CMDF/front/petServiceOrder/TopDetail.png" mode="widthFix" style="width: 100%;"></image>
  5. </view>
  6. <view class="content-card">
  7. <view class="card-item">
  8. <view class="item-icon">
  9. <image src="/pages_order/static/order/f.png" mode="aspectFit"></image>
  10. </view>
  11. <view class="item-text">
  12. <text class="item-title">请及时添加服务顾问的企业微信</text>
  13. <view class="code">
  14. <image src="https://catmdogf.oss-cn-shanghai.aliyuncs.com/CMDF/front/details/QR_Code.png"
  15. mode="aspectFit"
  16. :show-menu-by-longpress="true"
  17. style="width: 260rpx; height:260rpx"/>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="card-item">
  22. <view class="item-icon">
  23. <image src="/pages_order/static/order/f.png" mode="aspectFit"></image>
  24. </view>
  25. <view class="item-text">
  26. <text class="item-title">完善服务档案</text>
  27. <text class="item-desc">请上传宠物喂养要求及用品摆放位置</text>
  28. </view>
  29. <view class="item-action" @click="toPath('/pages/personalCenter/service')">
  30. <text class="action-btn">去完善</text>
  31. </view>
  32. </view>
  33. <view class="card-item">
  34. <view class="item-icon">
  35. <image src="/pages_order/static/order/f.png" mode="aspectFit"></image>
  36. </view>
  37. <view class="item-text">
  38. <text class="item-title">完善门锁信息</text>
  39. <text class="item-desc">请上传门锁及相应密码要求</text>
  40. </view>
  41. <view class="item-action" @click="toPath('/pages/personalCenter/lock')">
  42. <text class="action-btn">去完善</text>
  43. </view>
  44. </view>
  45. </view>
  46. <view class="back-home">
  47. <button class="details-btn" @click="goHome">返回首页</button>
  48. </view>
  49. <Kefu></Kefu>
  50. </view>
  51. </template>
  52. <script>
  53. import Kefu from '@/pages/common/kefu.vue'
  54. export default {
  55. data() {
  56. return {
  57. };
  58. },
  59. components:{
  60. Kefu
  61. },
  62. methods: {
  63. goHome() {
  64. this.initGlobalData()
  65. this.$globalData.itemPrice=[]
  66. this.$globalData.submitData = {}
  67. this.$globalData.newOrderData={
  68. currentAddress:{},
  69. currentPets:[],
  70. totalPrice:0,
  71. needPreFamiliarize:[]
  72. }
  73. // 清空页面栈
  74. uni.reLaunch({
  75. url: "/pages/index"
  76. });
  77. },
  78. toPath(url){
  79. uni.navigateTo({
  80. url
  81. })
  82. },
  83. }
  84. }
  85. </script>
  86. <style lang="scss" scoped>
  87. .successful-page {
  88. position: relative;
  89. height: 100vh;
  90. padding: 20rpx;
  91. padding-bottom: 58px;
  92. background-color: #f5f5f5;
  93. .banner-image {
  94. width: 100%;
  95. background-color: #FFFFFF;
  96. }
  97. .content-card {
  98. .card-item {
  99. display: flex;
  100. align-items: center;
  101. padding: 30rpx 20rpx;
  102. margin: 20rpx;
  103. background-color: #FFFFFF;
  104. border-radius: 20rpx;
  105. position: relative;
  106. &::after {
  107. position: absolute;
  108. content: '';
  109. left: 40rpx;
  110. top: 62rpx;
  111. width: 40rpx;
  112. height: 40rpx;
  113. border-radius: 50%;
  114. background-color: #FFB13Faa;
  115. }
  116. &:first-child {
  117. .item-text {
  118. display: flex;
  119. flex-direction: column;
  120. justify-content: center;
  121. //align-items: center;
  122. .item-title {
  123. font-size: 28rpx;
  124. color: #333;
  125. font-weight: bold;
  126. display: block;
  127. }
  128. .code {
  129. padding: 20rpx 0;
  130. }
  131. }
  132. &::after {
  133. top: 190rpx;
  134. }
  135. }
  136. &:last-child {
  137. border-bottom: none;
  138. }
  139. .item-icon {
  140. width: 60rpx;
  141. height: 60rpx;
  142. margin-right: 20rpx;
  143. position: relative;
  144. z-index: 2;
  145. image {
  146. width: 100%;
  147. height: 100%;
  148. }
  149. }
  150. .item-text {
  151. flex: 1;
  152. line-height: 50rpx;
  153. .item-title {
  154. font-size: 28rpx;
  155. color: #333;
  156. font-weight: bold;
  157. display: block;
  158. }
  159. .item-desc {
  160. font-size: 24rpx;
  161. color: #999;
  162. display: block;
  163. margin-top: 6rpx;
  164. }
  165. }
  166. .item-action {
  167. .action-btn {
  168. padding: 16rpx 30rpx;
  169. background-color: #FFB13F;
  170. color: #FFFFFF;
  171. border-radius: 30rpx;
  172. font-size: 24rpx;
  173. }
  174. }
  175. }
  176. }
  177. .back-home {
  178. height: 116rpx;
  179. position: fixed;
  180. bottom: 0;
  181. width: calc(100% - 40rpx);
  182. display: flex;
  183. justify-content: center;
  184. align-items: center;
  185. .details-btn {
  186. width: 90%;
  187. border-radius: 40rpx;
  188. background: #FFB13F;
  189. font-size: 32rpx;
  190. color: #FFFFFF;
  191. }
  192. }
  193. }
  194. </style>