index.vue 16 KB

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