components.vue 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. <template>
  2. <view class="noauth-cont" v-if="jurisdictionList.HasPermission === 2 || jurisdictionList.HasPermission === 3 || jurisdictionList.HasPermission === 4 || jurisdictionList.HasPermission === 5">
  3. <block v-if="!isShowAlert">
  4. <view class="noauth-activity-box">
  5. <image src="https://hzstatic.hzinsights.com/cygx/czbk/noauth.png" class="noauth-ico"></image>
  6. <block v-if="jurisdictionList.HasPermission !== 2">
  7. <view v-if="jurisdictionList.IsResearch" class="research-noauth">
  8. <text v-if="jurisdictionList.IsResearchSpecial" style="margin: 0 auto 100rpx; width: 612rpx"> 签约买方研选套餐才可参与此活动,请联系对口销售 </text>
  9. <block v-else>
  10. 暂无 <text class="strong-text">买方研选</text> 权限
  11. <text style="margin-bottom: 30rpx"> 您可申请开通试用 </text>
  12. </block>
  13. </view>
  14. <view class="tip" v-else>{{ jurisdictionList.PopupMsg }}</view>
  15. <view class="btn-cont" v-if="jurisdictionList.Type !== '专项调研' && !jurisdictionList.IsResearchSpecial" @click="applyAuth"> 立即申请 </view>
  16. </block>
  17. <view class="tip" v-if="jurisdictionList.HasPermission === 2">
  18. <view v-if="jurisdictionList.IsResearch" class="research-noauth">
  19. <text v-if="jurisdictionList.IsResearchSpecial"> 签约买方研选套餐才可参与此活动,请联系对口销售 </text>
  20. <block v-else>
  21. 暂无 <text class="strong-text">买方研选</text> 权限
  22. <text> 点击提交申请,提醒对口销售为你开通试用 </text>
  23. </block>
  24. </view>
  25. <block v-else>
  26. <block v-if="jurisdictionList.Type == '专项调研'"> 需要升级行业套餐权限才可参与此活动,请联系对口销售</block>
  27. <block v-else>
  28. <text style="margin-bottom: 20rpx"> 您暂无权限参加此活动 </text>
  29. <text>若想参加可以联系对口销售 </text>
  30. <text @click="callPhone(jurisdictionList.SellerMobile)" v-if="jurisdictionList.Type !== '专项调研'">
  31. {{ jurisdictionList.SellerName }}:
  32. <text style="color: #d4bf86; display: inline-block">{{ jurisdictionList.SellerMobile }}</text>
  33. </text>
  34. <text>申请开通对应的试用权限</text>
  35. </block>
  36. </block>
  37. </view>
  38. <view v-if="jurisdictionList.HasPermission === 2 && jurisdictionList.Type !== '专项调研' && !jurisdictionList.IsResearchSpecial" class="btn-cont" @click="sellerApplyAuth">
  39. {{ jurisdictionList.IsResearch ? "提交申请" : "立即申请" }}
  40. </view>
  41. <view class="btn-cont back-btn" @click="backIndex"> 返回</view>
  42. </view>
  43. </block>
  44. </view>
  45. </template>
  46. <script>
  47. import { User, FreeButton } from "@/config/api.js";
  48. import manageMixin from "../manageMixin";
  49. export default {
  50. mixins: [manageMixin],
  51. props: {
  52. jurisdictionList: {
  53. type: Object,
  54. required: true,
  55. default: {},
  56. },
  57. idAct: {
  58. type: Number,
  59. required: true,
  60. },
  61. },
  62. data() {
  63. return {
  64. isShowAlert: false,
  65. };
  66. },
  67. methods: {
  68. callPhone(num) {
  69. uni.makePhoneCall({
  70. phoneNumber: num,
  71. });
  72. },
  73. //获取权限弹窗是否展示免费月卡接口
  74. async userIsShowAlert() {
  75. const res = await FreeButton.userIsShowAlert();
  76. if (res.Ret === 200) {
  77. this.isShowAlert = res.Data.IsShow;
  78. }
  79. },
  80. /* 跳转研选 */
  81. goRouterResearch(type) {
  82. if (type == "介绍") {
  83. uni.navigateTo({
  84. url: "/pages-purchaser/productIntroduction/productIntroduction",
  85. });
  86. } else {
  87. uni.navigateTo({
  88. url: "/pages-purchaser/ProductQuotation/ProductQuotation",
  89. });
  90. }
  91. },
  92. },
  93. mounted() {
  94. // 免费送月卡
  95. // this.userIsShowAlert();
  96. },
  97. };
  98. </script>
  99. <style scoped lang="scss">
  100. .noauth-cont {
  101. .noauth-activity-box {
  102. padding: 100rpx 25rpx 80rpx;
  103. text-align: center;
  104. font-size: 28rpx;
  105. background-color: #fff;
  106. border-radius: 16rpx;
  107. }
  108. .noauth-ico {
  109. width: 365rpx;
  110. height: 229rpx;
  111. margin-bottom: 70rpx;
  112. }
  113. .tip {
  114. width: 532rpx;
  115. margin: 0 auto 100rpx;
  116. .contract {
  117. padding: 40rpx 90rpx 0;
  118. line-height: 44rpx;
  119. text {
  120. display: inline-block;
  121. }
  122. }
  123. }
  124. .btn-cont {
  125. width: 500rpx;
  126. height: 52rpx;
  127. background: $uni-color-new;
  128. color: #fff;
  129. font-size: 24rpx;
  130. font-weight: 600;
  131. border-radius: 8rpx;
  132. margin: 0 auto;
  133. text-align: center;
  134. line-height: 52rpx;
  135. &.back-btn {
  136. background: #e5efff !important;
  137. color: $uni-color-new;
  138. margin-top: 30rpx;
  139. }
  140. .btn_bg {
  141. width: 100%;
  142. height: 80rpx;
  143. position: absolute;
  144. left: 0;
  145. top: 0;
  146. }
  147. .btn-txt {
  148. width: 100%;
  149. position: absolute;
  150. z-index: 1;
  151. }
  152. }
  153. .month_card {
  154. width: 100%;
  155. height: 565rpx;
  156. padding-left: -20rpx;
  157. }
  158. .btn-dl {
  159. background: linear-gradient(253deg, #fcf3e9 0%, #eedec8 100%) !important;
  160. color: #333 !important;
  161. margin: 30rpx auto !important;
  162. }
  163. .month-back {
  164. background: #f6f6f6 !important;
  165. color: #999 !important;
  166. }
  167. .moneh-text {
  168. text-align: center;
  169. width: 632rpx;
  170. margin: 0 auto 20rpx;
  171. color: #999999;
  172. }
  173. .research-noauth {
  174. color: #333;
  175. font-size: 36rpx;
  176. width: calc(100% + 80rpx);
  177. margin-left: -40rpx;
  178. .strong-text {
  179. display: inline-block;
  180. padding: 0 10rpx;
  181. font-weight: 500;
  182. }
  183. text:last-child {
  184. font-size: 32rpx;
  185. font-size: 34rpx;
  186. color: #999999;
  187. margin-top: 10rpx;
  188. }
  189. }
  190. // .research-btn {
  191. // display: flex;
  192. // align-items: center;
  193. // font-size: 32rpx;
  194. // width: 546rpx;
  195. // height: 78rpx;
  196. // margin: 30rpx auto;
  197. // background: #f8f8fa;
  198. // border-radius: 4rpx;
  199. // padding-left: 40rpx;
  200. // image {
  201. // width: 40rpx;
  202. // height: 40rpx;
  203. // margin-right: 10rpx;
  204. // }
  205. // }
  206. }
  207. </style>