components.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  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. <view class="product-introduction-box" v-if="jurisdictionList.IsResearch">
  44. <view class="product-introduction">
  45. <view class="introduction-header">
  46. <view class="introduction-header-left"></view>
  47. <view class="introduction-header-right">
  48. <view class="introduction-title-CN"> 产品介绍 </view>
  49. <view class="introduction-title-US"> Product Introduction </view>
  50. </view>
  51. </view>
  52. <view class="introduction-body">
  53. <view class="introduction-body-box">
  54. <view class="body-box-title"> 独家亮点 </view>
  55. <view class="introduction-body-row"><span class="highHight-text">市场低价访谈优质专家 </span></view>
  56. <view class="introduction-body-row">重点公司小范围交流<span class="highHight-text">破圈</span>参加</view>
  57. <view class="introduction-body-row"><span class="highHight-text">海量</span>调研过程及纪要共享</view>
  58. </view>
  59. <view class="introduction-body-box">
  60. <view class="body-box-title"> 优质资源 </view>
  61. <view class="introduction-body-row"><span class="highHight-text">500+</span>篇/年调研纪要更新</view>
  62. <view class="introduction-body-row"><span class="highHight-text">300+</span>场/年海内外重点公司小范围交流</view>
  63. <view class="introduction-body-row"><span class="highHight-text">100+</span>场/年热点线下调研</view>
  64. <view class="introduction-body-row"><span class="highHight-text">30000+</span>名优质行业专家长期合作</view>
  65. </view>
  66. <view class="introduction-body-box">
  67. <view class="body-box-title" style="margin-bottom: 18rpx"> 服务报价 </view>
  68. <view class="body-row-content">
  69. <view class="body-row-title"> 订阅包:3万/年 </view>
  70. <view class="introduction-body-row">无限量调研纪要及常规研选专栏查阅,公开活动参与</view>
  71. </view>
  72. <view class="body-row-content">
  73. <view class="body-row-title"> 扣点包:5万/年 </view>
  74. <view class="introduction-body-row">低至2000元/场专家、同业访谈</view>
  75. <view class="introduction-body-row">1000元/场重点公司小范围交流</view>
  76. </view>
  77. <view style="font-size: 26rpx">欢迎联系买方研选,了解更多服务详情,获取试用体验</view>
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. </block>
  83. </view>
  84. </template>
  85. <script>
  86. import { User, FreeButton } from "@/config/api.js";
  87. export default {
  88. props: {
  89. jurisdictionList: {
  90. type: Object,
  91. required: true,
  92. default: {},
  93. },
  94. idAct: {
  95. type: Number,
  96. required: true,
  97. },
  98. },
  99. data() {
  100. return {
  101. isShowAlert: false,
  102. };
  103. },
  104. methods: {
  105. /* 无权限申请开通权限 */
  106. applyAuth() {
  107. /* 区分是否是潜在用户 */
  108. this.jurisdictionList.HasPermission === 3
  109. ? uni.navigateTo({
  110. url: "/pageMy/applyTrial/applyTrial?tryType=Activity&detailId=" + this.idAct,
  111. })
  112. : this.jurisdictionList.HasPermission === 5
  113. ? this.sellerApplyAuth()
  114. : uni.showModal({
  115. title: "",
  116. content: "您已经提交过申请了,请耐心等待",
  117. showCancel: false,
  118. confirmColor: "#376cbb",
  119. success: function (res) {},
  120. });
  121. },
  122. //销售的立即申请
  123. sellerApplyAuth() {
  124. User.applyTry({
  125. TryType: "Activity",
  126. DetailId: this.idAct,
  127. }).then((res) => {
  128. if (res.Ret === 200) {
  129. uni.showModal({
  130. title: "",
  131. content: "提交申请成功,请耐心等待",
  132. showCancel: false,
  133. confirmColor: "#376cbb",
  134. success: function (res) {
  135. this.backIndex();
  136. },
  137. });
  138. }
  139. });
  140. },
  141. // 返回首頁
  142. backIndex() {
  143. uni.navigateBack({
  144. fail() {
  145. uni.switchTab({
  146. url: "/pages/index/index",
  147. });
  148. },
  149. });
  150. },
  151. callPhone(num) {
  152. uni.makePhoneCall({
  153. phoneNumber: num,
  154. });
  155. },
  156. //获取权限弹窗是否展示免费月卡接口
  157. async userIsShowAlert() {
  158. const res = await FreeButton.userIsShowAlert();
  159. if (res.Ret === 200) {
  160. this.isShowAlert = res.Data.IsShow;
  161. }
  162. },
  163. /* 跳转研选 */
  164. goRouterResearch(type) {
  165. if (type == "介绍") {
  166. uni.navigateTo({
  167. url: "/pages-purchaser/productIntroduction/productIntroduction",
  168. });
  169. } else {
  170. uni.navigateTo({
  171. url: "/pages-purchaser/ProductQuotation/ProductQuotation",
  172. });
  173. }
  174. },
  175. },
  176. mounted() {
  177. // 免费送月卡
  178. // this.userIsShowAlert();
  179. },
  180. };
  181. </script>
  182. <style scoped lang="scss">
  183. .noauth-cont {
  184. .noauth-activity-box {
  185. padding: 100rpx 25rpx 80rpx;
  186. text-align: center;
  187. font-size: 28rpx;
  188. background-color: #fff;
  189. border-radius: 16rpx;
  190. }
  191. .noauth-ico {
  192. width: 365rpx;
  193. height: 229rpx;
  194. margin-bottom: 70rpx;
  195. }
  196. .tip {
  197. width: 532rpx;
  198. margin: 0 auto 100rpx;
  199. .contract {
  200. padding: 40rpx 90rpx 0;
  201. line-height: 44rpx;
  202. text {
  203. display: inline-block;
  204. }
  205. }
  206. }
  207. .btn-cont {
  208. width: 500rpx;
  209. height: 52rpx;
  210. background: $uni-color-new;
  211. color: #fff;
  212. font-size: 24rpx;
  213. font-weight: 600;
  214. border-radius: 8rpx;
  215. margin: 0 auto;
  216. text-align: center;
  217. line-height: 52rpx;
  218. &.back-btn {
  219. background: #e5efff !important;
  220. color: $uni-color-new;
  221. margin-top: 30rpx;
  222. }
  223. .btn_bg {
  224. width: 100%;
  225. height: 80rpx;
  226. position: absolute;
  227. left: 0;
  228. top: 0;
  229. }
  230. .btn-txt {
  231. width: 100%;
  232. position: absolute;
  233. z-index: 1;
  234. }
  235. }
  236. .product-introduction-box {
  237. background-color: #f7f7f7;
  238. padding: 10rpx 0;
  239. margin-top: 60rpx;
  240. border-radius: 16rpx;
  241. .product-introduction {
  242. padding: 60rpx 0 0 25rpx;
  243. background-color: white;
  244. .introduction-header {
  245. margin-bottom: 40rpx;
  246. display: flex;
  247. .introduction-header-left {
  248. background-color: #caaf8b;
  249. height: 90rpx;
  250. width: 14rpx;
  251. margin-right: 20rpx;
  252. }
  253. .introduction-header-right {
  254. text-align: left;
  255. .introduction-title-CN {
  256. font-weight: 500;
  257. font-size: 34rpx;
  258. color: #333333;
  259. line-height: 42rpx;
  260. margin-bottom: 8rpx;
  261. }
  262. .introduction-title-US {
  263. font-weight: 400;
  264. font-size: 28rpx;
  265. color: #c0c4cc;
  266. line-height: 42rpx;
  267. }
  268. }
  269. }
  270. .introduction-body {
  271. .introduction-body-box {
  272. text-align: left;
  273. margin-bottom: 40rpx;
  274. .body-row-content {
  275. margin-bottom: 40rpx;
  276. font-size: 34rpx;
  277. line-height: 48rpx;
  278. font-weight: 600;
  279. color: #caaf8b;
  280. .body-row-title {
  281. margin-left: 40rpx;
  282. }
  283. }
  284. .body-box-title {
  285. font-weight: 600;
  286. font-size: 34rpx;
  287. line-height: 48rpx;
  288. padding-left: 40rpx;
  289. position: relative;
  290. margin-bottom: 22rpx;
  291. &::before {
  292. content: "";
  293. height: 20rpx;
  294. width: 20rpx;
  295. background-color: #caaf8b;
  296. border-radius: 20rpx;
  297. position: absolute;
  298. left: 0;
  299. top: 16rpx;
  300. }
  301. }
  302. .introduction-body-row {
  303. margin-left: 40rpx;
  304. font-weight: 400;
  305. font-size: 26rpx;
  306. color: #333333;
  307. line-height: 36rpx;
  308. }
  309. .highHight-text {
  310. color: #caaf8b;
  311. }
  312. }
  313. }
  314. }
  315. }
  316. .month_card {
  317. width: 100%;
  318. height: 565rpx;
  319. padding-left: -20rpx;
  320. }
  321. .btn-dl {
  322. background: linear-gradient(253deg, #fcf3e9 0%, #eedec8 100%) !important;
  323. color: #333 !important;
  324. margin: 30rpx auto !important;
  325. }
  326. .month-back {
  327. background: #f6f6f6 !important;
  328. color: #999 !important;
  329. }
  330. .moneh-text {
  331. text-align: center;
  332. width: 632rpx;
  333. margin: 0 auto 20rpx;
  334. color: #999999;
  335. }
  336. .research-noauth {
  337. color: #333;
  338. font-size: 36rpx;
  339. width: calc(100% + 80rpx);
  340. margin-left: -40rpx;
  341. .strong-text {
  342. display: inline-block;
  343. padding: 0 10rpx;
  344. font-weight: 500;
  345. }
  346. text:last-child {
  347. font-size: 32rpx;
  348. font-size: 34rpx;
  349. color: #999999;
  350. margin-top: 10rpx;
  351. }
  352. }
  353. // .research-btn {
  354. // display: flex;
  355. // align-items: center;
  356. // font-size: 32rpx;
  357. // width: 546rpx;
  358. // height: 78rpx;
  359. // margin: 30rpx auto;
  360. // background: #f8f8fa;
  361. // border-radius: 4rpx;
  362. // padding-left: 40rpx;
  363. // image {
  364. // width: 40rpx;
  365. // height: 40rpx;
  366. // margin-right: 10rpx;
  367. // }
  368. // }
  369. }
  370. </style>