index.vue 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639
  1. <template>
  2. <view class="content">
  3. <view class="all">
  4. <view class="title">
  5. <!-- <image class="logo" :src="logoImg" mode="heightFix"></image> -->
  6. 高投短视频分销系统
  7. </view>
  8. <!-- 顶部提示语 -->
  9. <!-- <view class="tips">
  10. <view class="tips-title">
  11. <text class="title-text">请选择适合您团队的套餐</text>
  12. <image :src="lineBg" class="line" mode="widthFix"></image>
  13. </view>
  14. <view class="tips-content">
  15. <view class="">不同套餐所享受权益不同,您可按需采购</view>
  16. <view class="flex aic">
  17. <text>有任何疑问请</text>
  18. <text class="cantant">联系客服</text>
  19. </view>
  20. </view>
  21. </view> -->
  22. <!-- 内容 -->
  23. <view class="tabs-wrapper">
  24. <!-- 成片/素材 -->
  25. <view class="tabs">
  26. <view class="tab-item" :class="tabStatus == 0 ? 'select' : ''" @click="tabStatusChange(0)">拍成片
  27. </view>
  28. <view class="tab-item" :class="tabStatus == 1 ? 'select' : ''" @click="tabStatusChange(1)">拍素材
  29. </view>
  30. </view>
  31. <!-- 套餐tabs -->
  32. <view class="tab_menus flex jcsb aic">
  33. <view class="tab-menu-item flex aic" v-for="(item, index) in tabLists" :key="index"
  34. @click="changeTabs(item,index)">
  35. <text :class="tabIndex == index ? 'now_menu' : ''">{{ item }}</text>
  36. <image v-if="index == tabIndex" :src="biaoqianImg"></image>
  37. </view>
  38. </view>
  39. <!-- 套餐内容 -->
  40. <view class="menu_con" :class="tabIndex == 0 ? 'bg1' : tabIndex == 1 ? 'bg2' : 'bg3'">
  41. <view class="cons">
  42. <view class="menu_title">
  43. <text class="metit">{{ setData.packageName }}</text>
  44. <view class="exmple flex aic" @click="showCase(setData)">
  45. <image class="play" :src="playImg"></image>
  46. <text>案例</text>
  47. </view>
  48. </view>
  49. <view class="amounts">
  50. <view class="now flex aife">
  51. <view class="money flex aife">
  52. <text class="dw fs40">¥</text>
  53. <text class="num">{{ setData.currentPrice }}</text>
  54. <text class="unit">/条</text>
  55. </view>
  56. <view class="limit">限时</view>
  57. </view>
  58. <view class="past flex aic">
  59. <text class="past_text fs28">原价</text>
  60. <text class="past_num fs32">¥{{ setData.originalPrice }}/条</text>
  61. </view>
  62. </view>
  63. <view class="choose">
  64. <view v-for="(item, index) in setData.descriptions" :key="index"
  65. class="choose_item-box flex aic jcsb">
  66. <view class="choose_item flex aic">
  67. <image :src="guoxuanImg"></image>
  68. <text>{{ item }}</text>
  69. </view>
  70. <view v-if="index == 0" class="choose_item-more flex aic" @click="showMoreCase">
  71. <text>查看更多</text>
  72. <image :src="!isList?moreImg:more_maxdown"></image>
  73. </view>
  74. </view>
  75. <!-- <view class="choose_item flex aic">
  76. <image :src="guoxuanImg"></image>
  77. <text>交付周期 3 天</text>
  78. </view>
  79. <view class="choose_item flex aic">
  80. <image :src="guoxuanImg"></image>
  81. <text>交付周期 3 天</text>
  82. </view>
  83. <view class="choose_item flex aic">
  84. <image :src="guoxuanImg"></image>
  85. <text>交付周期 3 天</text>
  86. </view> -->
  87. </view>
  88. </view>
  89. </view>
  90. <!-- 三大套餐对比 -->
  91. <view v-if="isList" class="menu_tmps" id="caseMore">
  92. <view class="tips">
  93. <view class="tips-title">
  94. <text class="title-text">三大套餐所有内容对比</text>
  95. <image :src="lineBg" class="line" mode="widthFix"></image>
  96. </view>
  97. <!-- <view class="tips-content">适用于TikTok、亚马逊、YouTub、INS</view> -->
  98. </view>
  99. <view class="menu_table">
  100. <view class="table-prop flex jcsb aic">
  101. <view class="table-prop-item">内容板块</view>
  102. <view v-for="item in tabLists" :key="item" class="table-prop-item">{{ item }}</view>
  103. <!-- <view class="table-prop-item">B类套餐</view>
  104. <view class="table-prop-item">C类套餐</view> -->
  105. </view>
  106. <view v-for="(item, index) in configs" :key="index" class="table-item">
  107. <view class="table-title flex aic jcsb">
  108. <text class="ttitle">{{ item.name }}</text>
  109. <view class="cutout flex aic" @click="item.flag=!item.flag">
  110. <text>{{ !item.flag ? '展开' : '收起' }}</text>
  111. <image :src="!item.flag?more_mindown:more_minup"></image>
  112. </view>
  113. </view>
  114. <view v-if="item.flag" v-for="(items, indexs) in item.data" :key="indexs"
  115. class="table-content">
  116. <view class="row flex aic jcsb">
  117. <view class="row_name">
  118. <text>{{ items.name }}</text>
  119. </view>
  120. <view v-for="(itm,inx) in items.data" :key="inx" class="row_value">
  121. <image v-if="!itm || itm == ''" :src="emptyImg" class="row_empty"></image>
  122. <text v-else>{{ itm }}</text>
  123. </view>
  124. </view>
  125. </view>
  126. </view>
  127. </view>
  128. </view>
  129. </view>
  130. </view>
  131. <view class="btom bg1">
  132. <view class="btn" :style="{ background: 'url(' + buybtnBg + ')' }" @click="toBuy()">立即购买</view>
  133. </view>
  134. <u-popup mode="center" :show="caseVisible" :closeOnClickOverlay="true" @close="caseVisible=false">
  135. <view class="video-list">
  136. <u-swiper height='400' :list="videoList" indicator indicatorMode="line" circular keyName="url"
  137. :autoplay="false"></u-swiper>
  138. </view>
  139. </u-popup>
  140. </view>
  141. </template>
  142. <script>
  143. import {
  144. home
  145. } from '@/apis/index'
  146. export default {
  147. data() {
  148. return {
  149. logoImg: 'https://ovp-shop.oss-cn-hangzhou.aliyuncs.com/static/9dshop/img_logo.png',
  150. lineBg: 'https://ovp-shop.oss-cn-hangzhou.aliyuncs.com/static/9dshop/ic_line.png',
  151. biaoqianImg: 'https://ovp-shop.oss-cn-hangzhou.aliyuncs.com/static/9dshop/ic_biaoqian.png',
  152. playImg: 'https://ovp-shop.oss-cn-hangzhou.aliyuncs.com/static/9dshop/ic_play.png',
  153. guoxuanImg: 'https://ovp-shop.oss-cn-hangzhou.aliyuncs.com/static/9dshop/ic_guoxuan.png',
  154. moreImg: 'https://ovp-shop.oss-cn-hangzhou.aliyuncs.com/static/9dshop/ic_more.png',
  155. more_minup: 'https://ovp-shop.oss-cn-hangzhou.aliyuncs.com/static/9dshop/ic_more_minup.png',
  156. more_mindown: 'https://ovp-shop.oss-cn-hangzhou.aliyuncs.com/static/9dshop/ic_more_mindown.png',
  157. more_maxdown: 'https://ovp-shop.oss-cn-hangzhou.aliyuncs.com/static/9dshop/ic_more_maxdown.png',
  158. emptyImg: 'https://ovp-shop.oss-cn-hangzhou.aliyuncs.com/static/9dshop/ic_empty.png',
  159. buybtnBg: 'https://ovp-shop.oss-cn-hangzhou.aliyuncs.com/static/9dshop/ic_buy.png',
  160. tabStatus: 0, // 成片/素材
  161. tabIndex: 0, // 套餐tabs角标
  162. tabLists: [], // 套餐tabs列表
  163. packagesEntity: [],
  164. setData: {},
  165. isList: false,
  166. configs: [],
  167. caseVisible: false,
  168. videoList:[]
  169. }
  170. },
  171. onLoad() {
  172. this.getData()
  173. },
  174. onShow() {
  175. this.changeTabbar()
  176. },
  177. methods: {
  178. showCase(item) {
  179. this.videoList=item.videoUrls
  180. this.caseVisible = true
  181. },
  182. // 跳转到购买详情页
  183. toBuy() {
  184. uni.navigateTo({
  185. url: '/pages/order/order_confirm?id=' + this.setData.packageId + '&strip=' + this.setData
  186. .count + '&type=' + this.tabStatus
  187. })
  188. },
  189. showMoreCase() {
  190. this.isList = !this.isList
  191. if (this.isList) {
  192. uni.createSelectorQuery().select('#caseMore').boundingClientRect(data => {
  193. if (data) {
  194. uni.pageScrollTo({
  195. scrollTop: data.top + uni.getSystemInfoSync().scrollTop + 100,
  196. duration: 300
  197. });
  198. }
  199. }).exec(result=>{
  200. console.log('滚动',result);
  201. });
  202. }
  203. },
  204. // 成片/素材
  205. tabStatusChange(num) {
  206. this.tabStatus = num
  207. this.getData()
  208. },
  209. // 套餐tabs角标
  210. changeTabs(data, num) {
  211. this.tabIndex = num
  212. this.setData = this.packagesEntity.find(item => item.packageName === data)
  213. },
  214. // 获取列表
  215. getData() {
  216. home({
  217. type: this.tabStatus
  218. }).then(res => {
  219. this.tabLists = res.packages
  220. this.packagesEntity = res.packagesEntity
  221. this.setData = this.packagesEntity[0]
  222. this.configs = res.configs
  223. })
  224. },
  225. // tabbar样式
  226. changeTabbar() {
  227. uni.setTabBarStyle({
  228. color: '#9EA3B1',
  229. selectedColor: '#FFFFFF',
  230. backgroundColor: '#0D121A'
  231. })
  232. }
  233. }
  234. }
  235. </script>
  236. <style lang="scss" scoped>
  237. .title {
  238. font-weight: 600 !important;
  239. }
  240. .content {
  241. width: 100%;
  242. // min-height: 100vh;
  243. background-color: #0D121A;
  244. position: absolute;
  245. top: 0;
  246. bottom: 0;
  247. display: flex;
  248. flex-direction: column;
  249. .all {
  250. flex: 1;
  251. overflow: auto;
  252. padding: 0 24rpx 24rpx;
  253. }
  254. .title {
  255. padding: 16rpx 8rpx;
  256. font-weight: normal;
  257. font-size: 32rpx;
  258. color: #FFFFFF;
  259. .logo {
  260. height: 56rpx;
  261. }
  262. }
  263. .tips {
  264. display: flex;
  265. flex-direction: column;
  266. justify-content: center;
  267. align-items: center;
  268. margin-top: 96rpx;
  269. .tips-title {
  270. display: flex;
  271. flex-direction: column;
  272. align-items: flex-end;
  273. .title-text {
  274. font-weight: bold;
  275. font-size: 40rpx;
  276. color: transparent;
  277. background: linear-gradient(54.35820730218651deg, #00C1FF 0%, #2FFFFC 100%);
  278. -webkit-background-clip: text;
  279. }
  280. .line {
  281. width: 112rpx;
  282. }
  283. }
  284. .tips-content {
  285. font-size: 32rpx;
  286. color: #F8FAFF;
  287. margin-top: 28rpx;
  288. .cantant {
  289. font-weight: 400;
  290. font-size: 32rpx;
  291. color: #00ECFF;
  292. background: linear-gradient(54.35820730218651deg, #00C1FF 0%, #2FFFFC 100%);
  293. -webkit-background-clip: text;
  294. text-decoration: underline;
  295. margin-left: 8rpx;
  296. }
  297. }
  298. }
  299. .tabs-wrapper {
  300. display: flex;
  301. flex-direction: column;
  302. align-items: center;
  303. margin-top: 52rpx;
  304. .tabs {
  305. display: flex;
  306. justify-content: center;
  307. width: 368rpx;
  308. height: 72rpx;
  309. background: rgba($color: #FFF, $alpha: 0.1);
  310. border-radius: 36rpx;
  311. .tab-item {
  312. display: flex;
  313. justify-content: center;
  314. align-items: center;
  315. font-size: 28rpx;
  316. width: 50%;
  317. height: 64rpx;
  318. color: #F6F8FF;
  319. }
  320. }
  321. .select {
  322. background: linear-gradient(144deg, #00C1FF 0%, #2FFFFC 100%);
  323. border-radius: 32rpx;
  324. color: #0D121A !important;
  325. }
  326. .tab_menus {
  327. padding: 64rpx 40rpx 56rpx;
  328. width: 100%;
  329. .tab-menu-item {
  330. color: #9EA3B1;
  331. font-size: 28rpx;
  332. .now_menu {
  333. font-size: 36rpx;
  334. color: #F8FAFF !important;
  335. margin-right: 10rpx;
  336. }
  337. image {
  338. width: 36rpx;
  339. height: 36rpx;
  340. }
  341. }
  342. }
  343. .menu_con {
  344. width: 100%;
  345. border-radius: 24rpx;
  346. border: 2rpx solid rgba(255, 255, 255, 0.12);
  347. margin: 0 24rpx;
  348. padding: 56rpx 32rpx 48rpx;
  349. .cons {
  350. padding: 0 16rpx;
  351. }
  352. .menu_title {
  353. display: flex;
  354. justify-content: space-between;
  355. align-items: center;
  356. .metit {
  357. font-size: 44px;
  358. color: #F8FAFF;
  359. }
  360. .exmple {
  361. width: 156rpx;
  362. height: 64rpx;
  363. background: #0D121A;
  364. border-radius: 12rpx;
  365. display: flex;
  366. align-items: center;
  367. justify-content: center;
  368. font-size: 28rpx;
  369. color: #FFFFFF;
  370. .play {
  371. width: 32rpx;
  372. height: 32rpx;
  373. margin-right: 12rpx;
  374. }
  375. }
  376. }
  377. .amounts {
  378. margin-top: 72rpx;
  379. .now {
  380. .money {
  381. font-size: 32rpx;
  382. color: #FFFFFF;
  383. .dw {
  384. line-height: 40rpx;
  385. }
  386. .num {
  387. font-size: 72rpx;
  388. line-height: 56rpx;
  389. }
  390. .unit {
  391. margin-left: 24rpx;
  392. }
  393. }
  394. .limit {
  395. margin-left: 24px;
  396. width: 72rpx;
  397. height: 40rpx;
  398. background: linear-gradient(144deg, #00C1FF 0%, #2FFFFC 100%);
  399. border-radius: 8rpx;
  400. font-weight: 500;
  401. font-size: 24rpx;
  402. color: #0D121A;
  403. text-align: center;
  404. line-height: 40rpx;
  405. }
  406. }
  407. .past {
  408. color: #BCC0C5;
  409. margin-top: 34rpx;
  410. .past_text {
  411. margin-right: 8rpx;
  412. }
  413. }
  414. }
  415. .choose {
  416. margin-top: 64rpx;
  417. .choose_item-box {
  418. margin-top: 16rpx;
  419. image {
  420. width: 48rpx;
  421. height: 48rpx;
  422. margin-right: 24rpx;
  423. }
  424. text {
  425. color: #F8FAFF;
  426. font-size: 28rpx;
  427. }
  428. }
  429. .choose_item-more {
  430. text {
  431. font-size: 28rpx;
  432. background: linear-gradient(54.35820730218651deg, #00C1FF 0%, #2FFFFC 100%);
  433. color: transparent;
  434. -webkit-background-clip: text;
  435. }
  436. image {
  437. width: 32rpx;
  438. height: 32rpx;
  439. margin-left: 12rpx;
  440. }
  441. }
  442. .choose_item-box:nth-child(1) {
  443. margin-top: 0;
  444. }
  445. }
  446. }
  447. .menu_tmps {
  448. width: 100%;
  449. .menu_table {
  450. background: linear-gradient(180deg, rgba(9, 155, 255, 0.12) 0%, rgba(66, 121, 192, 0.08) 100%);
  451. border-radius: 24rpx;
  452. border: 2rpx solid #003849;
  453. margin-top: 48px;
  454. .table-prop {
  455. padding: 36rpx 40rpx;
  456. color: #F8FAFF;
  457. font-size: 24rpx;
  458. border-bottom: #1D3A4A 2rpx solid;
  459. }
  460. .table-item {
  461. padding: 40rpx;
  462. font-size: 24rpx;
  463. border-bottom: #1D3A4A 2rpx solid;
  464. .table-title {
  465. .ttitle {
  466. background: linear-gradient(311.670791165708deg, #00C1FF 0%, #2FFFFC 100%);
  467. -webkit-background-clip: text;
  468. color: transparent;
  469. }
  470. .cutout {
  471. text {
  472. background: linear-gradient(54.35820730218651deg, #00C1FF 0%, #2FFFFC 100%);
  473. -webkit-background-clip: text;
  474. color: transparent;
  475. }
  476. image {
  477. width: 32rpx;
  478. height: 32rpx;
  479. margin-left: 8rpx;
  480. }
  481. }
  482. }
  483. .table-content {
  484. margin-top: 40rpx;
  485. color: #FFFFFF;
  486. .row {
  487. margin-top: 40rpx;
  488. width: 100%;
  489. .row_name {
  490. white-space: nowrap;
  491. width: 15%;
  492. display: flex;
  493. flex-direction: column;
  494. text:nth-child(2) {
  495. font-size: 20rpx;
  496. text-align: center;
  497. }
  498. }
  499. .row_value {
  500. width: 15%;
  501. text-align: center;
  502. display: flex;
  503. justify-content: center;
  504. }
  505. .row_empty {
  506. width: 32rpx;
  507. height: 32rpx;
  508. }
  509. }
  510. .row:nth-child(1) {
  511. margin-top: 0;
  512. }
  513. }
  514. }
  515. .table-item:last-child {
  516. border: none;
  517. }
  518. }
  519. }
  520. }
  521. .bg1 {
  522. background: linear-gradient(180deg, rgba(99, 113, 235, 0.2) 0%, rgba(94, 108, 228, 0.08) 100%);
  523. }
  524. .bg2 {
  525. background: linear-gradient(180deg, rgba(31, 113, 227, 0.2) 0%, rgba(31, 113, 227, 0.08) 100%);
  526. }
  527. .bg3 {
  528. background: linear-gradient(180deg, rgba(0, 161, 205, 0.2) 0%, rgba(0, 161, 205, 0.08) 100%);
  529. }
  530. .btom {
  531. flex-shrink: 1;
  532. padding: 24rpx 32rpx;
  533. .btn {
  534. background-size: 100% 100% !important;
  535. width: 100%;
  536. height: 84rpx;
  537. text-align: center;
  538. line-height: 84rpx;
  539. font-weight: bold;
  540. font-size: 32rpx;
  541. color: #0D121A;
  542. }
  543. }
  544. }
  545. .u-popup {
  546. flex: 0;
  547. z-index: 999;
  548. }
  549. .video-list {
  550. margin: 0rpx auto;
  551. height: 800rpx;
  552. width: 600rpx;
  553. background-color: #000;
  554. }
  555. </style>