cellme.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <!-- 联系我们 -->
  2. <template>
  3. <view class="cellme">
  4. <!-- <Header :title="title"></Header>
  5. <view style="height: 94upx;"></view> -->
  6. <view class="cellme-content">
  7. <view class="name">重庆鼎游科技有限公司:</view>
  8. <view class="phone" @tap="call"> <image class="phoneicon" src="../../../static/images/t10.png"></image> <text> {{ phone }}</text></view>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. import Header from '../../components/header';
  14. export default {
  15. name: 'cellme',
  16. components: {
  17. Header,
  18. },
  19. data () {
  20. //这里存放数据
  21. return {
  22. title: '联系我们',
  23. phone: '023-67535762'
  24. };
  25. },
  26. //方法集合
  27. methods: {
  28. // 返回上一页
  29. navBack () {
  30. console.log(1);
  31. this.$mRouter.back();
  32. },
  33. call () {
  34. let _self = this
  35. uni.showModal({
  36. content: `是否拨打电话:${_self.phone}`,
  37. success: confirmRes => {
  38. console.log(confirmRes);
  39. if (confirmRes.confirm) {
  40. uni.makePhoneCall({
  41. phoneNumber: _self.phone,
  42. sucess: res => {}
  43. })
  44. }
  45. }
  46. })
  47. return
  48. }
  49. },
  50. };
  51. </script>
  52. <style lang='scss' scoped>
  53. .cellme-content {
  54. padding: 50upx 30upx;
  55. .name {
  56. font-size: 32upx;
  57. font-weight: 700;
  58. color: $titleColor;
  59. }
  60. .phone {
  61. margin-top: 20upx;
  62. font-size: 32upx;
  63. font-weight: 700;
  64. display: flex;
  65. align-items: center;
  66. .phoneicon {
  67. width: 50upx;
  68. height: 50upx;
  69. margin-right: 20upx;
  70. }
  71. }
  72. }
  73. </style>