wbspool 4 lat temu
rodzic
commit
5264aa50a0

+ 2 - 0
src/common/locales/zh-TW.js

@@ -156,6 +156,8 @@ export default {
   '您现在正在进行取消收藏操作, 是否继续?': '您現在正在進行取消收藏操作, 是否繼續?',
   '您现在正在进行取消订阅操作, 是否继续?': '您現在正在進行取消訂閱操作, 是否繼續?',
   '您现在正在进行取消点赞操作, 是否继续?': '您現在正在進行取消點贊操作, 是否繼續?',
+  '产品介绍': '產品詳情',
+
 
 
 };

+ 5 - 3
src/h5/components/ui-article-list/ui-article-list.vue

@@ -2,16 +2,18 @@
     <div class="ui-label-article-list px-24rem   pt-12rem">
         <template v-for="(article,index) in articles" :key="item">
             <UiMainArticle  :item="article"></UiMainArticle>
-            <div class="h-20rem"></div>
+
+
             <template  v-if="((index + 1) % 4 === 0 && index > 0) || (index < 4 && (index + 1) === (articles.length - 1) )">
+                <div  class="h-22rem border-t-1rem  border-[#B8B8B8]"></div>
+
                 <ui-banner
 
                         flag="文章列表"
                         bannerClass="h-78rem"
                 >
                 </ui-banner>
-                <div class="h-20rem"></div>
-
+                <div class="h-22rem"></div>
             </template>
 
         </template>

+ 2 - 2
src/h5/components/ui-main-article/ui-main-article.vue

@@ -1,6 +1,6 @@
 <template>
-  <div @click="handleGoTo(item)" v-bind="$attrs" class="relative border-b-1rem border-solid border-[#B8B8B8]">
-    <div class="flex mb-22rem mt-22rem  items-center h-165rem">
+  <div @click="handleGoTo(item)" v-bind="$attrs" class="relative  border-t-1rem  border-[#B8B8B8]">
+    <div class="flex  mt-22rem mb-22rem  items-center h-165rem">
       <div class="relative">
         <img class="w-270rem h-160rem object-cover" :src="item.coverUrl" />
         <div v-if="item.vip === '1'" class="absolute left-0 top-0 text-white text-size-20rem">

+ 7 - 4
src/h5/pages/home/home.vue

@@ -8,7 +8,9 @@
       <van-tabs v-model="active" background="#FFFFFF" color="#124026" class="h-full">
         <van-tab :title="$t('首页')" class="h-full flex-1">
           <div class="pt-12rem">
-            <ui-banner class="w-full h-390rem" flag="首页"></ui-banner>
+            <div class="pl-24rem pr-24rem">
+              <ui-banner class="w-full h-390rem" flag="首页"></ui-banner>
+            </div>
 
             <div class="flex justify-around mt-24rem mb-24rem">
               <div @click="$router.push('/recommend')" class="type-item">
@@ -28,7 +30,7 @@
                 <div>{{$t('VIP周刊')}}</div>
               </div>
             </div>
-            <div class="home-pics-group mb-32rem">
+            <div class="home-pics-group mb-32rem px-24rem">
 
 
               <ui-mask-picture flag="首页1" class="h-192rem"></ui-mask-picture>
@@ -38,8 +40,9 @@
 
 
             </div>
-            <home-new></home-new>
-            <div class="h-24rem"></div>
+            <div class="pl-24rem pr-24rem">
+              <home-new></home-new>
+            </div>
             <ui-article-list></ui-article-list>
           </div>
         </van-tab>

+ 1 - 1
src/h5/pages/hot/hot.vue

@@ -2,7 +2,7 @@
     <ui-page-layout title="热榜文章">
 
 
-        <div class="pl-22rem pr-22rem">
+        <div class="pl-22rem pr-22rem pt-22rem">
             <UiMainArticle  v-for="art in latestArts" :item="art"></UiMainArticle>
         </div>
 

+ 6 - 1
src/h5/pages/product/product-detail.vue

@@ -31,11 +31,16 @@
       <div class="h-88rem pt-24rem pb-24rem"></div>
 
     </ui-scroll-view>
-    <div style="position: fixed;bottom: 0;z-index: 9999;width: 100%" class="bg-[#ffffff] pt-24rem pb-24rem">
+    <div v-if="product.online === '1'" style="position: fixed;bottom: 0;z-index: 9999;width: 100%" class="bg-[#ffffff] pt-24rem pb-24rem">
       <div @click="handleBuy" class=" w-600rem h-88rem flex justify-center items-center text-white bg-primary rounded-full mx-auto">
         {{$t('立即购买')}}
       </div>
     </div>
+    <div v-if="product.online === '2'" style="position: fixed;bottom: 0;z-index: 9999;width: 100%" class="bg-[#ffffff] pt-24rem pb-24rem">
+      <div class=" w-600rem h-88rem flex justify-center items-center text-white bg-[#cccccc] rounded-full mx-auto">
+        {{$t('已下线')}}
+      </div>
+    </div>
   </ui-page-layout>
 
 </template>

+ 1 - 1
src/h5/pages/realtime-news/realtime-news.vue

@@ -5,7 +5,7 @@
     </template>
     <ui-mask-picture flag="实时新闻" bannerClass="w-full h-136rem"></ui-mask-picture>
 
-    <div class="pl-22rem pr-22rem">
+    <div class="pl-22rem pr-22rem pt-22rem">
       <UiMainArticle v-for="art in latestArts" :item="art"></UiMainArticle>
     </div>
 

+ 1 - 66
src/h5/pages/recommend/recommend.vue

@@ -1,69 +1,4 @@
-<template>
-  <ui-page-layout title="实时新闻">
-    <template v-slot:search>
-      <ui-search></ui-search>
-    </template>
-    <ui-mask-picture flag="实时新闻" bannerClass="w-full h-136rem"></ui-mask-picture>
-
-    <div class="pl-22rem pr-22rem">
-      <UiMainArticle v-for="art in latestArts" :item="art"></UiMainArticle>
-    </div>
-
 
-  </ui-page-layout>
-</template>
-
-<script>
-  export default {
-    data() {
-      return {
-        banner1: [
-          { url: "/imgs/banner1.png", title: "這裏是輪播圖推薦內容標題" },
-          { url: "/imgs/banner1.png", title: "這裏是輪播圖推薦內容標題" },
-          { url: "/imgs/banner1.png", title: "這裏是輪播圖推薦內容標題" },
-          { url: "/imgs/banner1.png", title: "這裏是輪播圖推薦內容標題" },
-          { url: "/imgs/banner1.png", title: "這裏是輪播圖推薦內容標題" },
-        ],
-        latestArts: [],
-        pageIndex: 1
-      };
-    },
-    methods: {
-      async loadLatestArts(pageIndex) {
-        let resp = await this.$http.post(this.$api.cms.articles, this.$qs.stringify(Object.assign(this.$route.query,{pageIndex: pageIndex,type:'2'})));
-        if (resp.data.status === 200) {
-          if(pageIndex === 1){
-            this.latestArts = resp.data.data.cmsArticles;
-          }else{
-            this.latestArts.push(...resp.data.data.cmsArticles);
-          }
-        }
-      }
-    },
-    async created() {
-      this.loadLatestArts(this.pageIndex);
-    }
-  };
-</script>
-<style>
-  .swiper-group {
-    display: grid;
-    grid-template-columns: repeat(2, 290px);
-    grid-template-rows: repeat(2, 163px);
-    grid-gap: 10px;
-  }
-
-  .swiper {
-    @apply w-290px;
-
-    /* align-items: end; */
-    /* @apply w-290px h-163px; */
-  }
-
-  .swiper-title {
-    @apply bottom-17px left-17px text-size-16px;
-  }
-</style>
 <template>
   <ui-page-layout title="推荐新闻">
     <template v-slot:search>
@@ -71,7 +6,7 @@
     </template>
     <ui-mask-picture flag="推荐" bannerClass="w-full h-136rem"></ui-mask-picture>
 
-    <div class="pl-22rem pr-22rem">
+    <div class="pl-22rem pr-22rem pt-22rem">
       <UiMainArticle v-for="art in latestArts" :item="art"></UiMainArticle>
     </div>
 

+ 1 - 1
src/h5/pages/search/search.vue

@@ -3,7 +3,7 @@
     <template v-slot:search>
       <ui-search :keywordProp="keyword" @search="loadLatestArts"></ui-search>
     </template>
-    <div class="pl-22rem pr-22rem">
+    <div class="pl-22rem pr-22rem pt-22rem">
       <UiMainArticle v-for="art in latestArts" :item="art"></UiMainArticle>
     </div>