index.vue 891 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <template>
  2. <view class="service">
  3. <image class="icon" src="../../static/service.png" mode=""></image>
  4. <view class="notice">
  5. 在线时间 9:00-18:00
  6. </view>
  7. <button class="btn" type="default" @click="jump">在线客服</button>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. methods: {
  13. jump() {
  14. uni.navigateTo({
  15. url:'./chatRoom'
  16. })
  17. }
  18. },
  19. }
  20. </script>
  21. <style lang="scss" scoped>
  22. .service {
  23. display: flex;
  24. flex-direction: column;
  25. align-items: center;
  26. .icon {
  27. width: 460rpx;
  28. height: 410rpx;
  29. margin-top: 290rpx;
  30. }
  31. .notice {
  32. font-size: 32rpx;
  33. color: #0F0F0F;
  34. font-weight: 400;
  35. margin-top: 50rpx;
  36. }
  37. .btn{
  38. margin-top: 110rpx;
  39. width: 560rpx;
  40. height: 96rpx;
  41. line-height: 96rpx;
  42. border-radius: 48rpx;
  43. color: #fff;
  44. font-size: 32rpx;
  45. font-weight: bold;
  46. background: $uni-color-primary;
  47. }
  48. }
  49. </style>