components.vue 14 KB

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