introduce.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <template>
  2. <view class="container">
  3. <view class="body">
  4. <image src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/竖占位图.png" class="img"></image>
  5. </view>
  6. <view class="footer">
  7. <view class="cu-bar bg-white tabbar border shop" style="width: 100%;">
  8. <button class="action" @click="show = true" style="width: 33%;">
  9. <view class="cuIcon-service text-green">
  10. </view>
  11. 客服
  12. </button>
  13. <view class="submit" @click="next" style="background-color: #0B73B9; color: #FFFFFF;">选购服务包</view>
  14. </view>
  15. </view>
  16. <u-popup v-model="show" mode="bottom" border-radius="14" height="300rpx">
  17. <u-button open-type="contact" :custom-style="customStyle">会话客服</u-button>
  18. <u-button @click="playphone" :custom-style="customStyle">电话客服</u-button>
  19. </u-popup>
  20. </view>
  21. </template>
  22. <script>
  23. import {
  24. mapState,
  25. mapMutations,
  26. mapGetters,
  27. mapActions
  28. } from 'vuex';
  29. export default {
  30. computed: {
  31. ...mapState(['user']),
  32. ...mapGetters({
  33. hasLogin: 'verifyJwt'
  34. })
  35. },
  36. data() {
  37. return {
  38. show: false,
  39. customStyle:{
  40. width:'600rpx',
  41. marginTop:"35rpx"
  42. }
  43. }
  44. },
  45. methods: {
  46. next(e) {
  47. if (this.hasLogin) {
  48. uni.navigateTo({
  49. url: '/pages/service_packs/choicepacks'
  50. });
  51. } else {
  52. uni.showModal({
  53. title: "提示",
  54. content: "暂未登录,请前往登录",
  55. success: (res) => {
  56. if (res.confirm) {
  57. uni.navigateTo({
  58. url: "../login/login"
  59. })
  60. }
  61. }
  62. })
  63. }
  64. },
  65. playphone(){
  66. uni.makePhoneCall({
  67. phoneNumber:"123456"
  68. })
  69. this.show = false
  70. }
  71. }
  72. }
  73. </script>
  74. <style lang="scss">
  75. .container {
  76. width: 100%;
  77. height: 100%;
  78. background-color: #F6F6F6;
  79. }
  80. .body {
  81. width: 100%;
  82. height: 100%;
  83. .img {
  84. width: 94%;
  85. height: 88vh;
  86. margin: 3% 3%;
  87. }
  88. }
  89. .footer {
  90. width: 100%;
  91. height: auto;
  92. display: flex;
  93. position: fixed;
  94. bottom: 0;
  95. }
  96. </style>