components.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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>
  18. {{industryMsg}}:
  19. </text>
  20. <text @click="callPhone(sellerMobile)"><text style="color:#D4BF86;">{{sellerMobile}}</text></text>
  21. </view>
  22. <view class="btn-cont back-btn" @click="backIndex"> 返回</view>
  23. </view>
  24. </template>
  25. <script>
  26. import {
  27. User
  28. } from '@/config/api.js'
  29. export default {
  30. props: {
  31. haveAuth: {
  32. type: Number,
  33. required: true
  34. },
  35. industryMsg: {
  36. type: String,
  37. required: true
  38. },
  39. sellerMobile: {
  40. type: String,
  41. required: true
  42. }
  43. },
  44. data() {
  45. return {
  46. };
  47. },
  48. methods: {
  49. /* 无权限申请开通权限 */
  50. applyAuth() {
  51. /* 区分是否是潜在用户 */
  52. this.haveAuth === 3 ?
  53. uni.navigateTo({
  54. url: "/pages/applyTrial/applyTrial"
  55. }) :
  56. uni.showModal({
  57. title: '',
  58. content: '您已经提交过申请了,请耐心等待',
  59. showCancel: false,
  60. confirmColor: '#3385FF',
  61. success: function(res) {}
  62. });
  63. },
  64. // 返回首頁
  65. backIndex() {
  66. uni.navigateBack()
  67. },
  68. callPhone(num) {
  69. uni.makePhoneCall({
  70. phoneNumber: num
  71. })
  72. },
  73. }
  74. }
  75. </script>
  76. <style scoped lang="scss">
  77. .noauth-cont {
  78. padding-top: 150rpx;
  79. text-align: center;
  80. font-size: 28rpx;
  81. .noauth-ico {
  82. width: 365rpx;
  83. height: 229rpx;
  84. margin-bottom: 70rpx;
  85. }
  86. .tip {
  87. width: 532rpx;
  88. margin: 0 auto 100rpx;
  89. .contract {
  90. padding: 40rpx 90rpx 0;
  91. line-height: 44rpx;
  92. text {
  93. display: inline-block;
  94. }
  95. }
  96. }
  97. .btn-cont {
  98. width: 368rpx;
  99. height: 80rpx;
  100. // position: relative;
  101. background: linear-gradient(268deg, #2DDBFF 0%, #1599FF 49%, #005EFF 100%);
  102. color: #fff;
  103. font-size: 34rpx;
  104. margin: 0 auto;
  105. text-align: center;
  106. line-height: 80rpx;
  107. &.back-btn {
  108. background: linear-gradient(268deg, #2DDBFF 0%, #1599FF 49%, #005EFF 100%) !important;
  109. // border: 2rpx solid #3385FF;
  110. color: #fff;
  111. margin-top: 30rpx;
  112. }
  113. .btn_bg {
  114. width: 100%;
  115. height: 80rpx;
  116. position: absolute;
  117. left: 0;
  118. top: 0;
  119. }
  120. .btn-txt {
  121. width: 100%;
  122. position: absolute;
  123. z-index: 1;
  124. }
  125. }
  126. }
  127. </style>