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.

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