components.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <template>
  2. <view class="noauth-cont" v-if="haveAuth===2||haveAuth===3||haveAuth===4">
  3. <image src="https://hzstatic.hzinsights.com/cygx/czbk/noauth.png" class="noauth-ico"></image>
  4. <block v-if="haveAuth==3">
  5. <view class="tip">{{industryMsg}}</view>
  6. <view class="btn-cont" @click="applyAuth">
  7. 立即申请
  8. </view>
  9. </block>
  10. <block v-if="haveAuth==4">
  11. <view class="tip">{{industryMsg}}</view>
  12. <view class="btn-cont" @click="applyAuth">
  13. 立即申请
  14. </view>
  15. </block>
  16. <view class="tip" v-if="haveAuth===2">
  17. <text style="margin-bottom: 20rpx;">
  18. {{industryMsg}}
  19. </text>
  20. <text>
  21. 若想参加可以联系对口销售
  22. </text>
  23. <text @click="callPhone(sellerMobile)">{{sellerName}}:<text style="color:#D4BF86; display: inline-block;">{{sellerMobile}}</text></text>
  24. <text>开通{{msgType=='Type'?'对应行业':'该行业'}}的试用权限</text>
  25. </view>
  26. <view class="btn-cont back-btn" @click="backIndex"> 返回</view>
  27. </view>
  28. </template>
  29. <script>
  30. import {
  31. User
  32. } from '@/config/api.js'
  33. export default {
  34. props: {
  35. haveAuth: {
  36. type: Number,
  37. required: true
  38. },
  39. industryMsg: {
  40. type: String,
  41. required: true
  42. },
  43. sellerMobile: {
  44. type: String,
  45. required: true
  46. },
  47. sellerName: {
  48. type: String,
  49. required: true
  50. },
  51. msgType: {
  52. type: String,
  53. required: true
  54. }
  55. },
  56. methods: {
  57. /* 无权限申请开通权限 */
  58. applyAuth() {
  59. /* 区分是否是潜在用户 */
  60. this.haveAuth === 3 ?
  61. uni.navigateTo({
  62. url: "/pages/applyTrial/applyTrial"
  63. }) :
  64. uni.showModal({
  65. title: '',
  66. content: '您已经提交过申请了,请耐心等待',
  67. showCancel: false,
  68. confirmColor: '#3385FF',
  69. success: function(res) {}
  70. });
  71. },
  72. // 返回首頁
  73. backIndex() {
  74. uni.navigateBack({
  75. fail(){
  76. uni.switchTab({
  77. url:'/pages/index/index'
  78. })
  79. }
  80. })
  81. },
  82. callPhone(num) {
  83. uni.makePhoneCall({
  84. phoneNumber: num
  85. })
  86. },
  87. }
  88. }
  89. </script>
  90. <style scoped lang="scss">
  91. .noauth-cont {
  92. padding-top: 150rpx;
  93. text-align: center;
  94. font-size: 28rpx;
  95. .noauth-ico {
  96. width: 365rpx;
  97. height: 229rpx;
  98. margin-bottom: 70rpx;
  99. }
  100. .tip {
  101. width: 532rpx;
  102. margin: 0 auto 100rpx;
  103. .contract {
  104. padding: 40rpx 90rpx 0;
  105. line-height: 44rpx;
  106. text {
  107. display: inline-block;
  108. }
  109. }
  110. }
  111. .btn-cont {
  112. width: 368rpx;
  113. height: 80rpx;
  114. background: linear-gradient(268deg, #2DDBFF 0%, #1599FF 49%, #005EFF 100%);
  115. color: #fff;
  116. font-size: 34rpx;
  117. margin: 0 auto;
  118. text-align: center;
  119. line-height: 80rpx;
  120. &.back-btn {
  121. background: linear-gradient(268deg, #2DDBFF 0%, #1599FF 49%, #005EFF 100%) !important;
  122. color: #fff;
  123. margin-top: 30rpx;
  124. }
  125. .btn_bg {
  126. width: 100%;
  127. height: 80rpx;
  128. position: absolute;
  129. left: 0;
  130. top: 0;
  131. }
  132. .btn-txt {
  133. width: 100%;
  134. position: absolute;
  135. z-index: 1;
  136. }
  137. }
  138. }
  139. </style>