You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

231 lines
4.3 KiB

9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
  1. <!-- 首页 -->
  2. <template>
  3. <view class="home bx">
  4. <!-- 首页顶部 -->
  5. <view class="home-top content">
  6. <view class="menu-icon">
  7. <!-- <image src="@/static/home/menu.png" mode="aspectFit"></image> -->
  8. </view>
  9. <view class="logo">
  10. Tiktok
  11. </view>
  12. <view class="sign">
  13. <image @click="showLanguage = true" src="../../static/home/language.png" mode="widthFix"></image>
  14. </view>
  15. </view>
  16. <view class="home-title content">
  17. <view>Commodities</view>
  18. </view>
  19. <view class="swiper">
  20. <swiper class="swiper-box" @change="swiperChange" :current="swiperDotIndex">
  21. <swiper-item v-for="(item, index) in 3" :key="index">
  22. <view class="swiper-item">
  23. <image src="@/static/home/product.jpg" mode="widthFix"></image>
  24. </view>
  25. </swiper-item>
  26. </swiper>
  27. </view>
  28. <view class="home-title content">
  29. <view>About Us</view>
  30. </view>
  31. <view class="about-us">
  32. <view class="about-content">
  33. <view class="title">TikTok Shop</view>
  34. <view class="desc">Growth Marketing Company</view>
  35. <view class="click">Click to view introduction</view>
  36. </view>
  37. </view>
  38. <view class="home-title content">
  39. <view>Commission</view>
  40. </view>
  41. <view class="roll">
  42. <virtualScroll></virtualScroll>
  43. </view>
  44. <sTabbar select="0" />
  45. <!-- 客服列表 -->
  46. <serviceList :show="showService" :serverList="serverList" @close="closeServiceList"></serviceList>
  47. <!-- 弹窗 -->
  48. <popUpWindow :show="showPopUp" @close="closePopUp"></popUpWindow>
  49. <!-- 选择语言弹框 -->
  50. <changeLanguage :show.sync="showLanguage" @close="closeLanguage"></changeLanguage>
  51. </view>
  52. </template>
  53. <script>
  54. import sTabbar from '@/components/base/tabBar.vue'
  55. import serviceList from '@/components/serviceList/serviceList.vue'
  56. import popUpWindow from '../../components/popUpWindow/popUpWindow.vue'
  57. import virtualScroll from '../../components/virtualScroll/virtualScroll.vue'
  58. import changeLanguage from '@/components/changeLanguage/changeLanguage.vue'
  59. export default {
  60. components: {
  61. sTabbar,
  62. serviceList,
  63. popUpWindow,
  64. virtualScroll,
  65. changeLanguage
  66. },
  67. data() {
  68. return {
  69. showService: false,
  70. menuTitles: ['CustomerService', 'Certifcate', 'Deposit', 'Withdraw'],
  71. agreementTitles: ['agreement_item_1', 'agreement_item_2', 'agreement_item_3', 'agreement_item_4'],
  72. serverList: [],
  73. outList: [],
  74. vipList: [],
  75. userInfo: {},
  76. vipInfo: {},
  77. // showPopUp: uni.getStorageSync('clickPopUp') ? false : true,
  78. showPopUp: false,
  79. showLanguage: false,
  80. swiperDotIndex: 0
  81. }
  82. },
  83. onShow() {
  84. },
  85. methods: {
  86. swiperChange(item) {
  87. console.log(item);
  88. }
  89. }
  90. }
  91. </script>
  92. <style lang="scss" scoped>
  93. .home {
  94. width: 750rpx;
  95. min-height: 100vh;
  96. margin: 0 auto;
  97. background-size: 100%;
  98. background-repeat: no-repeat;
  99. padding-bottom: 120rpx;
  100. .content {
  101. width: 96%;
  102. margin: 0 auto;
  103. }
  104. .home-top {
  105. display: flex;
  106. justify-content: space-between;
  107. align-items: center;
  108. height: 60rpx;
  109. padding: 20rpx 0rpx;
  110. .menu-icon {
  111. image {
  112. width: 50rpx;
  113. height: 50rpx;
  114. }
  115. }
  116. .logo {
  117. color: uni-bg-color-app;
  118. font-weight: bold;
  119. font-size: 32rpx;
  120. }
  121. .sign {
  122. image {
  123. width: 60rpx;
  124. }
  125. }
  126. }
  127. .home-title {
  128. position: relative;
  129. display: flex;
  130. justify-content: center;
  131. align-items: center;
  132. font-size: 36rpx;
  133. height: 120rpx;
  134. &::before,
  135. &::after {
  136. position: absolute;
  137. top: 50%;
  138. content: '';
  139. width: 20%;
  140. border-top: 2rpx solid black;
  141. }
  142. &::before {
  143. left: 10%;
  144. }
  145. &::after {
  146. right: 10%;
  147. }
  148. }
  149. .swiper {
  150. .swiper-box {
  151. height: 200px;
  152. }
  153. .swiper-item {
  154. /* #ifndef APP-NVUE */
  155. display: flex;
  156. /* #endif */
  157. flex-direction: column;
  158. justify-content: center;
  159. align-items: center;
  160. height: 200px;
  161. color: #fff;
  162. image {
  163. width: 30%;
  164. }
  165. }
  166. }
  167. .about-us ,
  168. .roll {
  169. background-image: url('@/static/home/bg.jpeg');
  170. background-size: 100%;
  171. height: 400rpx;
  172. .about-content {
  173. padding: 10% 0rpx 0rpx 5%;
  174. .title ,
  175. .click {
  176. font-size: 40rpx;
  177. font-weight: bold;
  178. }
  179. .desc {
  180. font-size: 20rpx;
  181. color: #464648;
  182. }
  183. .click {
  184. font-size: 22rpx;
  185. }
  186. }
  187. }
  188. .roll {
  189. background-image: url('@/static/home/bg1.jpg');
  190. }
  191. }
  192. </style>