components.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <template>
  2. <view class="noauth-cont" v-if="haveAuth===2||haveAuth===3||haveAuth===4">
  3. <image src="@/static/img/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. data() {
  57. return {
  58. };
  59. },
  60. methods: {
  61. /* 无权限申请开通权限 */
  62. applyAuth() {
  63. /* 区分是否是潜在用户 */
  64. this.haveAuth === 3 ?
  65. uni.navigateTo({
  66. url: "/pages/applyTrial/applyTrial"
  67. }) :
  68. uni.showModal({
  69. title: '',
  70. content: '您已经提交过申请了,请耐心等待',
  71. showCancel: false,
  72. confirmColor: '#3385FF',
  73. success: function(res) {}
  74. });
  75. },
  76. // 返回首頁
  77. backIndex() {
  78. uni.navigateBack()
  79. },
  80. callPhone(num) {
  81. uni.makePhoneCall({
  82. phoneNumber: num
  83. })
  84. },
  85. }
  86. }
  87. </script>
  88. <style scoped lang="scss">
  89. .noauth-cont {
  90. padding-top: 150rpx;
  91. text-align: center;
  92. font-size: 28rpx;
  93. .noauth-ico {
  94. width: 365rpx;
  95. height: 229rpx;
  96. margin-bottom: 70rpx;
  97. }
  98. .tip {
  99. width: 532rpx;
  100. margin: 0 auto 100rpx;
  101. .contract {
  102. padding: 40rpx 90rpx 0;
  103. line-height: 44rpx;
  104. text {
  105. display: inline-block;
  106. }
  107. }
  108. }
  109. .btn-cont {
  110. width: 368rpx;
  111. height: 80rpx;
  112. // position: relative;
  113. background: linear-gradient(268deg, #2DDBFF 0%, #1599FF 49%, #005EFF 100%);
  114. color: #fff;
  115. font-size: 34rpx;
  116. margin: 0 auto;
  117. text-align: center;
  118. line-height: 80rpx;
  119. &.back-btn {
  120. background: linear-gradient(268deg, #2DDBFF 0%, #1599FF 49%, #005EFF 100%) !important;
  121. // border: 2rpx solid #3385FF;
  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>