index.vue 14 KB

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