index.vue 1002 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. 接入移动客户坐席
  7. </view>
  8. <button class="btn" type="default" @click="handleCall">呼叫客服</button>
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. methods: {
  14. handleCall() {
  15. uni.makePhoneCall({
  16. phoneNumber: '10086' //仅为示例
  17. });
  18. }
  19. },
  20. onShow() {
  21. },
  22. onLoad() {
  23. }
  24. }
  25. </script>
  26. <style lang="scss" scoped>
  27. .service {
  28. display: flex;
  29. flex-direction: column;
  30. align-items: center;
  31. .icon {
  32. width: 460rpx;
  33. height: 410rpx;
  34. margin-top: 290rpx;
  35. }
  36. .notice {
  37. font-size: 32rpx;
  38. color: #0F0F0F;
  39. font-weight: 400;
  40. margin-top: 50rpx;
  41. }
  42. .btn{
  43. margin-top: 110rpx;
  44. width: 560rpx;
  45. height: 96rpx;
  46. line-height: 96rpx;
  47. border-radius: 48rpx;
  48. color: #fff;
  49. font-size: 32rpx;
  50. font-weight: bold;
  51. background: $uni-color-primary;
  52. }
  53. }
  54. </style>