鸿宇研学生前端代码
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.

115 lines
2.3 KiB

  1. <template>
  2. <view>
  3. <uv-popup ref="popup" mode="bottom" bgColor="none"
  4. :zIndex="1000000"
  5. >
  6. <view class="popup__view">
  7. <view class="flex header">
  8. <view class="title">申请售后</view>
  9. <button class="btn" @click="close">关闭</button>
  10. </view>
  11. <view class="flex content">
  12. <view>{{ phone }}</view>
  13. <button plain class="flex btn" @click="onCall">
  14. <image class="btn-icon" src="@/pages_order/static/order/icon-phone.png" mode="widthFix"></image>
  15. </button>
  16. </view>
  17. </view>
  18. </uv-popup>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. phone: null,
  26. }
  27. },
  28. methods: {
  29. open() {
  30. this.phone = this.configList.after_sale_service_hotline
  31. this.$refs.popup.open()
  32. },
  33. close() {
  34. this.$refs.popup.close()
  35. },
  36. onCall() {
  37. uni.makePhoneCall({
  38. phoneNumber: this.phone,
  39. success() {
  40. console.log('安卓拨打成功');
  41. },
  42. fail() {
  43. console.log('安卓拨打失败');
  44. }
  45. })
  46. },
  47. },
  48. }
  49. </script>
  50. <style lang="scss" scoped>
  51. .popup__view {
  52. width: 100vw;
  53. display: flex;
  54. flex-direction: column;
  55. box-sizing: border-box;
  56. font-family: PingFang SC;
  57. font-weight: 400;
  58. line-height: 1.4;
  59. background: #FFFFFF;
  60. border-top-left-radius: 32rpx;
  61. border-top-right-radius: 32rpx;
  62. }
  63. .header {
  64. position: relative;
  65. width: 100%;
  66. padding: 24rpx 0;
  67. box-sizing: border-box;
  68. border-bottom: 2rpx solid #EEEEEE;
  69. .title {
  70. font-family: PingFang SC;
  71. font-weight: 500;
  72. font-size: 34rpx;
  73. line-height: 1.4;
  74. color: #181818;
  75. }
  76. .btn {
  77. font-family: PingFang SC;
  78. font-weight: 500;
  79. font-size: 32rpx;
  80. line-height: 1.4;
  81. color: #8B8B8B;
  82. position: absolute;
  83. top: 26rpx;
  84. left: 40rpx;
  85. }
  86. }
  87. .content {
  88. padding: 84rpx;
  89. column-gap: 12rpx;
  90. font-size: 36rpx;
  91. color: #181818;
  92. .btn {
  93. border: none;
  94. width: 72rpx;
  95. height: 72rpx;
  96. background: #F6F6F6;
  97. border-radius: 50%;
  98. overflow: hidden;
  99. &-icon {
  100. width: 40rpx;
  101. height: auto;
  102. }
  103. }
  104. }
  105. </style>