Selaa lähdekoodia

小程序页面改动

lijj 2 vuotta sitten
vanhempi
commit
58489a457d
81 muutettua tiedostoa jossa 636 lisäystä ja 150 poistoa
  1. 13 1
      miniapp/pages.json
  2. 89 16
      miniapp/pages/yuecai/collection/index.vue
  3. 68 7
      miniapp/pages/yuecai/dish/index.vue
  4. 43 17
      miniapp/pages/yuecai/home/index.vue
  5. 155 0
      miniapp/pages/yuecai/search/index1.vue
  6. 158 0
      miniapp/pages/yuecai/search/index2.vue
  7. 110 109
      miniapp/pages/yuecai/usercenter/index.vue
  8. BIN
      miniapp/static/images/blocktime.png
  9. BIN
      miniapp/static/images/book.png
  10. BIN
      miniapp/static/images/digit/digit.png
  11. BIN
      miniapp/static/images/digit/normal/0.png
  12. BIN
      miniapp/static/images/digit/normal/1.png
  13. BIN
      miniapp/static/images/digit/normal/2.png
  14. BIN
      miniapp/static/images/digit/normal/3.png
  15. BIN
      miniapp/static/images/digit/normal/4.png
  16. BIN
      miniapp/static/images/digit/normal/5.png
  17. BIN
      miniapp/static/images/digit/normal/6.png
  18. BIN
      miniapp/static/images/digit/normal/7.png
  19. BIN
      miniapp/static/images/digit/normal/8.png
  20. BIN
      miniapp/static/images/digit/normal/9.png
  21. BIN
      miniapp/static/images/digit/normal/colon.png
  22. BIN
      miniapp/static/images/digit/shadow/0.png
  23. BIN
      miniapp/static/images/digit/shadow/1.png
  24. BIN
      miniapp/static/images/digit/shadow/2.png
  25. BIN
      miniapp/static/images/digit/shadow/3.png
  26. BIN
      miniapp/static/images/digit/shadow/4.png
  27. BIN
      miniapp/static/images/digit/shadow/5.png
  28. BIN
      miniapp/static/images/digit/shadow/6.png
  29. BIN
      miniapp/static/images/digit/shadow/7.png
  30. BIN
      miniapp/static/images/digit/shadow/8.png
  31. BIN
      miniapp/static/images/digit/shadow/9.png
  32. BIN
      miniapp/static/images/digit/shadow/colon.png
  33. BIN
      miniapp/static/images/dunbar.png
  34. BIN
      miniapp/static/images/empty.png
  35. BIN
      miniapp/static/images/face.png
  36. BIN
      miniapp/static/images/home/dish.png
  37. BIN
      miniapp/static/images/home/logo.png
  38. BIN
      miniapp/static/images/home/professional.png
  39. BIN
      miniapp/static/images/home/restaurant.png
  40. BIN
      miniapp/static/images/home/snacks.png
  41. BIN
      miniapp/static/images/icon/add.png
  42. BIN
      miniapp/static/images/icon/calendar.png
  43. BIN
      miniapp/static/images/icon/checked.png
  44. BIN
      miniapp/static/images/icon/export.png
  45. BIN
      miniapp/static/images/icon/fav.png
  46. BIN
      miniapp/static/images/icon/fav2.png
  47. BIN
      miniapp/static/images/icon/fly.png
  48. BIN
      miniapp/static/images/icon/help.png
  49. BIN
      miniapp/static/images/icon/history.png
  50. BIN
      miniapp/static/images/icon/light.png
  51. BIN
      miniapp/static/images/icon/music.png
  52. BIN
      miniapp/static/images/icon/power.png
  53. BIN
      miniapp/static/images/icon/save.png
  54. BIN
      miniapp/static/images/icon/search.png
  55. BIN
      miniapp/static/images/icon/search2.png
  56. BIN
      miniapp/static/images/icon/sort.png
  57. BIN
      miniapp/static/images/icon/stop.png
  58. BIN
      miniapp/static/images/icon/sun.png
  59. BIN
      miniapp/static/images/icon/sun2.png
  60. BIN
      miniapp/static/images/icon/time.png
  61. BIN
      miniapp/static/images/icon/time2.png
  62. BIN
      miniapp/static/images/icon/timer.png
  63. BIN
      miniapp/static/images/icon/tofav.png
  64. BIN
      miniapp/static/images/icon/tofaved.png
  65. BIN
      miniapp/static/images/icon/tomato.png
  66. BIN
      miniapp/static/images/icon/toshare.png
  67. BIN
      miniapp/static/images/icon/unchecked.png
  68. BIN
      miniapp/static/images/logout.png
  69. BIN
      miniapp/static/images/pc.png
  70. BIN
      miniapp/static/images/qr.png
  71. BIN
      miniapp/static/images/question.png
  72. BIN
      miniapp/static/images/rec-on.png
  73. BIN
      miniapp/static/images/rec.png
  74. BIN
      miniapp/static/images/service.png
  75. BIN
      miniapp/static/images/stat-on.png
  76. BIN
      miniapp/static/images/stat.png
  77. BIN
      miniapp/static/images/svip.png
  78. BIN
      miniapp/static/images/title.png
  79. BIN
      miniapp/static/images/vip.png
  80. BIN
      miniapp/static/images/vip2.png
  81. BIN
      miniapp/static/images/wx.png

+ 13 - 1
miniapp/pages.json

@@ -107,6 +107,18 @@
         "navigationBarTitleText": "我的收藏",
         "enablePullDownRefresh": false
       }
+    }, {
+      "path": "pages/yuecai/search/index1",
+      "style": {
+        "navigationBarTitleText": "发现",
+        "enablePullDownRefresh": false
+      }
+    }, {
+      "path": "pages/yuecai/search/index2",
+      "style": {
+        "navigationBarTitleText": "搜索",
+        "enablePullDownRefresh": false
+      }
     }
   ],
   "globalStyle": {
@@ -132,7 +144,7 @@
       "iconPath": "@iconPath2",
       "selectedIconPath": "@selectedIconPath2",
       "text": "发现",
-      "pagePath": "pages/yuecai/dish/index"
+      "pagePath": "pages/yuecai/search/index1"
     }, {
       "iconPath": "@iconPath2",
       "selectedIconPath": "@selectedIconPath2",

+ 89 - 16
miniapp/pages/yuecai/collection/index.vue

@@ -1,19 +1,15 @@
 <template>
   <view class="width-100 height-100 view-page">
-    <!-- <view class="p-10">
-      <u-search :clearabled="true" placeholder="请输入搜索关键字" v-model="keyword" :shape="square" search="doRefresh"
-        @custom="doRefresh"></u-search>
-    </view> -->
-    <u-list @scrolltolower="scrolltolower" height="calc(100% - 180px)" lowerThreshold="10">
-      <u-list-item v-for="(item, index) in list" :key="index">
-        <u-cell :title="item.name" @click="toDetail(item.id)">
-          <u-avatar slot="icon" shape="square" size="35" :src="item.cover"
-            customStyle="margin: -3px 5px -3px 0"></u-avatar>
-        </u-cell>
-      </u-list-item>
-      <u-loadmore :status="page.status" :loading-text="page.loadingText" :loadmore-text="page.loadmoreText"
-        :nomore-text="page.nomoreText" />
-    </u-list>
+    <u-tabs ref="tabs" :list="tabList" :scrollable="false" :current="currentTab" @change="tabChange" lineColor="#65371b"
+      :activeStyle="{color:'#65371b'}" inactiveStyle="{color:'#65371b'}"></u-tabs>
+    <view class="info-list">
+      <view class="info-item" v-for="(item, index) in 10" :key="index">
+        <view class="info-pic"></view>
+        <view class="info-title">
+          标题标题标题标
+        </view>
+      </view>
+    </view>
   </view>
 </template>
 
@@ -35,7 +31,15 @@
           nomoreText: '没有更多了'
         },
         keyword: '',
-        list: []
+        list: [],
+        tabList: [{
+          name: '名菜'
+        }, {
+          name: '名店',
+        }, {
+          name: '名点',
+        }],
+        currentTab: 0
       }
     },
     onLoad(options) {
@@ -78,7 +82,7 @@
           } else {
             this.page.status = 'loadmore'
           }
-        }).catch(e=> {
+        }).catch(e => {
           this.page.status = 'loadmore'
         })
       },
@@ -117,4 +121,73 @@
   .view-page {
     overflow: hidden;
   }
+
+  .info-list {
+    display: flex;
+    flex-wrap: wrap;
+
+    .info-item {
+      padding: 20rpx;
+      width: 33%;
+      box-sizing: border-box;
+
+      .info-pic {
+        margin: auto;
+        width: 175rpx;
+        height: 175rpx;
+        background: bisque;
+      }
+
+      .info-title {
+        color: #65371b;
+        font-size: 24rpx;
+        font-weight: 300;
+        line-height: 47rpx;
+        word-spacing: 2rpx;
+        overflow: hidden;
+        text-overflow: -o-ellipsis-lastline;
+        overflow: hidden;
+        text-overflow: ellipsis;
+        display: -webkit-box;
+        -webkit-line-clamp: 1;
+        line-clamp: 3;
+        -webkit-box-orient: vertical;
+      }
+    }
+  }
+
+  .info-list {
+    display: flex;
+    flex-wrap: wrap;
+
+    .info-item {
+      padding: 20rpx;
+      width: 33%;
+      box-sizing: border-box;
+
+      .info-pic {
+        margin: auto;
+        width: 175rpx;
+        height: 175rpx;
+        background: bisque;
+      }
+
+      .info-title {
+        text-align: center;
+        color: #65371b;
+        font-size: 24rpx;
+        font-weight: 300;
+        line-height: 47rpx;
+        word-spacing: 2rpx;
+        overflow: hidden;
+        text-overflow: -o-ellipsis-lastline;
+        overflow: hidden;
+        text-overflow: ellipsis;
+        display: -webkit-box;
+        -webkit-line-clamp: 1;
+        line-clamp: 3;
+        -webkit-box-orient: vertical;
+      }
+    }
+  }
 </style>

+ 68 - 7
miniapp/pages/yuecai/dish/index.vue

@@ -1,11 +1,26 @@
 <template>
   <view class="width-100 height-100 view-page">
-    <u-swiper :list="bannerList" @click="clickInfo" keyName="cover"></u-swiper>
-    <view class="p-10">
-      <u-search :clearabled="true" placeholder="请输入搜索关键字" v-model="keyword" :shape="square" search="doRefresh"
-        @custom="doRefresh"></u-search>
+    <view class="p-10 dis-flex flex-y-center flex-x-between">
+      <view class="search-left-btn">
+        <u-image width="35px" height="35px" mode="aspectFit" src="@/static/images/home/logo.png"></u-image>
+      </view>
+      <view class="width-100">
+        <u-search :clearabled="true" height="35px" placeholder="请输入搜索关键字" v-model="keyword" shape="round"
+          search="doSearch" @custom="doSearch" :showAction="false" bg-color="#e9f0f8"
+          placeholder-color="#65371b"></u-search>
+      </view>
     </view>
-    <u-list @scrolltolower="scrolltolower" height="calc(100% - 180px)" lowerThreshold="10">
+    <u-tabs ref="tabs" :list="tabList" :scrollable="false" :current="currentTab" @change="tabChange" lineColor="#65371b"
+      :activeStyle="{color:'#65371b'}" inactiveStyle="{color:'#65371b'}"></u-tabs>
+    <view class="info-list">
+      <view class="info-item" v-for="(item, index) in 10" :key="index">
+        <view class="info-pic"></view>
+        <view class="info-title">
+          标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题
+        </view>
+      </view>
+    </view>
+    <!-- <u-list @scrolltolower="scrolltolower" height="calc(100% - 180px)" lowerThreshold="10">
       <u-list-item v-for="(item, index) in list" :key="index">
         <u-cell :title="item.name" @click="toDetail(item.id)">
           <u-avatar slot="icon" shape="square" size="35" :src="item.cover"
@@ -14,7 +29,7 @@
       </u-list-item>
       <u-loadmore :status="page.status" :loading-text="page.loadingText" :loadmore-text="page.loadmoreText"
         :nomore-text="page.nomoreText" />
-    </u-list>
+    </u-list> -->
   </view>
 </template>
 
@@ -36,7 +51,15 @@
           nomoreText: '没有更多了'
         },
         keyword: '',
-        list: []
+        list: [],
+        tabList: [{
+          name: '名菜'
+        }, {
+          name: '名店',
+        }, {
+          name: '名点',
+        }],
+        currentTab: 0
       }
     },
     onShow() {
@@ -45,6 +68,9 @@
       this.doRefresh();
     },
     methods: {
+      tabChange(index) {
+        this.current = index;
+      },
       clickInfo(index) {
         if (index < 0) {
           return;
@@ -106,4 +132,39 @@
   .view-page {
     overflow: hidden;
   }
+
+  .info-list {
+    display: flex;
+    flex-wrap: wrap;
+
+    .info-item {
+      padding: 20rpx;
+      width: 33%;
+      box-sizing: border-box;
+
+      .info-pic {
+        margin: auto;
+        width: 175rpx;
+        height: 175rpx;
+        background: bisque;
+      }
+
+      .info-title {
+        text-align: center;
+        color: #65371b;
+        font-size: 24rpx;
+        font-weight: 300;
+        line-height: 47rpx;
+        word-spacing: 2rpx;
+        overflow: hidden;
+        text-overflow: -o-ellipsis-lastline;
+        overflow: hidden;
+        text-overflow: ellipsis;
+        display: -webkit-box;
+        -webkit-line-clamp: 1;
+        line-clamp: 3;
+        -webkit-box-orient: vertical;
+      }
+    }
+  }
 </style>

+ 43 - 17
miniapp/pages/yuecai/home/index.vue

@@ -1,28 +1,39 @@
 <template>
   <view class="width-100 height-100 view-page">
     <view class="p-10 dis-flex flex-y-center flex-x-between">
-      <view class="icon-circle search-left-btn"></view>
+      <view class="search-left-btn">
+        <u-image width="35px" height="35px" mode="aspectFit" src="@/static/images/home/logo.png"></u-image>
+      </view>
       <view class="width-100">
-        <u-search :clearabled="true" placeholder="请输入搜索关键字" v-model="keyword" :shape="square" search="doSearch"
-          @custom="doSearch" :showAction="false"></u-search>
+        <u-search :clearabled="true" height="35px" placeholder="请输入搜索关键字" v-model="keyword" shape="round"
+          search="doSearch" @custom="doSearch" :showAction="false" bg-color="#e9f0f8"
+          placeholder-color="#65371b"></u-search>
       </view>
     </view>
     <u-swiper height="185" :list="bannerList" @click="clickInfo" keyName="cover"></u-swiper>
     <view class="p-l-r-30 p-t-30 dis-flex flex-x-around nav-btns">
       <view class="nav-btn">
-        <view class="nav-btn-icon icon-circle"></view>
+        <view class="nav-btn-icon icon-circle">
+          <u-image width="32px" height="32px" mode="aspectFit" src="@/static/images/home/professional.png"></u-image>
+        </view>
         <view class="nav-btn-text">专业风采</view>
       </view>
       <view class="nav-btn">
-        <view class="nav-btn-icon icon-circle"></view>
+        <view class="nav-btn-icon icon-circle">
+          <u-image width="28px" height="28px" mode="aspectFit" src="@/static/images/home/dish.png"></u-image>
+        </view>
         <view class="nav-btn-text">名菜</view>
       </view>
       <view class="nav-btn">
-        <view class="nav-btn-icon icon-circle"></view>
+        <view class="nav-btn-icon icon-circle">
+          <u-image width="28px" height="28px" mode="aspectFit" src="@/static/images/home/snacks.png"></u-image>
+        </view>
         <view class="nav-btn-text">名点</view>
       </view>
       <view class="nav-btn">
-        <view class="nav-btn-icon icon-circle"></view>
+        <view class="nav-btn-icon icon-circle">
+          <u-image width="28px" height="28px" mode="aspectFit" src="@/static/images/home/restaurant.png"></u-image>
+        </view>
         <view class="nav-btn-text">名店</view>
       </view>
     </view>
@@ -34,8 +45,10 @@
             标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题
           </view>
           <view class="dis-flex info-bottom">
-            <view>10月07日</view>
-            <view>点赞</view>
+            <view style="margin-right: 20rpx;">10月07日</view>
+            <u-icon name="thumb-up" color="#7f7f7f" size="18"></u-icon>
+            <view style="margin-right: 20rpx;">点赞</view>
+            <u-icon name="eye" color="#7f7f7f" size="18"></u-icon>
             <view>阅读量</view>
           </view>
         </view>
@@ -87,19 +100,23 @@
 
 <style scoped lang="scss">
   .search-left-btn {
-    min-width: 28px;
-    height: 28px;
+    width: 35px;
+    min-width: 35px;
+    height: 35px;
     margin-right: 5px;
     box-sizing: border-box;
   }
 
   .icon-circle {
     border-radius: 50%;
-    border: 1rpx solid #787878;
+    border: 4rpx solid #65371b;
+    display: flex;
+    justify-content: center;
+    align-items: center;
   }
 
   .nav-btns {
-    border-bottom: 1rpx solid #787878;
+    border-bottom: 1rpx solid #65371b;
     margin-bottom: 20rpx;
     padding-bottom: 50rpx;
 
@@ -114,6 +131,9 @@
 
       .nav-btn-text {
         width: 100%;
+        color: #65371b;
+        margin-top: 5rpx;
+        font-weight: bolder;
         text-align: center;
       }
     }
@@ -124,15 +144,20 @@
       padding: 20rpx;
 
       .info-pic {
-        width: 160rpx;
-        height: 160rpx;
+        width: 175rpx;
+        height: 175rpx;
         background: bisque;
       }
 
       .info-view {
-        width: calc(100% - 180rpx);
+        width: calc(100% - 195rpx);
 
         .info-title {
+          color: #65371b;
+          font-size: 24rpx;
+          font-weight: 300;
+          line-height: 47rpx;
+          word-spacing: 2rpx;
           overflow: hidden;
           text-overflow: -o-ellipsis-lastline;
           overflow: hidden;
@@ -144,7 +169,8 @@
         }
 
         .info-bottom {
-          color: #787878;
+          color: #7f7f7f;
+          font-size: 24rpx;
           margin-top: 10rpx;
         }
       }

+ 155 - 0
miniapp/pages/yuecai/search/index1.vue

@@ -0,0 +1,155 @@
+<template>
+  <view class="width-100 height-100 view-page">
+    <view class="p-10 dis-flex flex-y-center flex-x-between">
+      <view class="search-left-btn">
+        <u-image width="35px" height="35px" mode="aspectFit" src="@/static/images/home/logo.png"></u-image>
+      </view>
+      <view class="width-100">
+        <u-search :clearabled="true" height="35px" placeholder="请输入搜索关键字" v-model="keyword" shape="round"
+          search="doSearch" @custom="doSearch" :showAction="false" bg-color="#e9f0f8"
+          placeholder-color="#65371b"></u-search>
+      </view>
+    </view>
+    <u-swiper height="185" :list="bannerList" @click="clickInfo" keyName="cover"></u-swiper>
+    <u-tabs ref="tabs" :list="tabList" :scrollable="false" :current="currentTab" @change="tabChange" lineColor="#65371b"
+      :activeStyle="{color:'#65371b'}" inactiveStyle="{color:'#65371b'}"></u-tabs>
+    <view class="info-list">
+      <view class="info-item" v-for="(item, index) in 10" :key="index">
+        <view class="info-pic"></view>
+        <view class="info-title">
+          标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题
+        </view>
+      </view>
+    </view>
+  </view>
+</template>
+
+<script>
+  import themeMixins from '@/pages/yuecai/mixins/themeMixins.js';
+  export default {
+    mixins: [themeMixins],
+    data() {
+      return {
+        chartOption: {
+
+        },
+        keyword: '',
+        bannerList: [],
+        page: {},
+        list: [],
+        tabList: [{
+          name: '专业风采'
+        }, {
+          name: '名菜'
+        }, {
+          name: '名店',
+        }, {
+          name: '名点',
+        }],
+        currentTab: 0
+      }
+    },
+    onLoad(options) {},
+    onShow() {
+      this.getBanners()
+    },
+    methods: {
+      tabChange(index) {
+        this.current = index;
+      },
+      getBanners() {
+        this.$u.api.getInformationList(0, 6, {}).then(res => {
+          this.bannerList = res.data.records || []
+        })
+      },
+      clickInfo(index) {
+        if (index < 0) {
+          return;
+        }
+        uni.navigateTo({
+          url: "/pages/yuecai/information/detail/index?id=" + this.bannerList[index].id,
+        })
+      },
+      doSearch() {
+
+      }
+    },
+  }
+</script>
+
+<style scoped lang="scss">
+  .search-left-btn {
+    width: 35px;
+    min-width: 35px;
+    height: 35px;
+    margin-right: 5px;
+    box-sizing: border-box;
+  }
+
+  .icon-circle {
+    border-radius: 50%;
+    border: 4rpx solid #65371b;
+    display: flex;
+    justify-content: center;
+    align-items: center;
+  }
+
+  .nav-btns {
+    border-bottom: 1rpx solid #65371b;
+    margin-bottom: 20rpx;
+    padding-bottom: 50rpx;
+
+    .nav-btn {
+      width: 150rpx;
+
+      .nav-btn-icon {
+        margin: auto;
+        width: 110rpx;
+        height: 110rpx;
+      }
+
+      .nav-btn-text {
+        width: 100%;
+        color: #65371b;
+        margin-top: 5rpx;
+        font-weight: bolder;
+        text-align: center;
+      }
+    }
+  }
+
+  .info-list {
+    display: flex;
+    flex-wrap: wrap;
+    .info-item {
+      padding: 20rpx;
+      width: 33%;
+      
+      box-sizing: border-box;
+
+      .info-pic {
+        margin: auto;
+        width: 175rpx;
+        height: 175rpx;
+        background: bisque;
+      }
+
+      .info-title {
+        text-align: center;
+        color: #65371b;
+        font-size: 24rpx;
+        font-weight: 300;
+        line-height: 47rpx;
+        word-spacing: 2rpx;
+        overflow: hidden;
+        text-overflow: -o-ellipsis-lastline;
+        overflow: hidden;
+        text-overflow: ellipsis;
+        display: -webkit-box;
+        -webkit-line-clamp: 1;
+        line-clamp: 3;
+        -webkit-box-orient: vertical;
+      }
+    }
+  }
+</style>

+ 158 - 0
miniapp/pages/yuecai/search/index2.vue

@@ -0,0 +1,158 @@
+<template>
+  <view class="width-100 height-100 view-page">
+    <view class="p-10 dis-flex flex-y-center flex-x-between">
+      <view class="width-100">
+        <u-search :clearabled="true" height="35px" placeholder="请输入搜索关键字" v-model="keyword" shape="round"
+          search="doSearch" @custom="doSearch" bg-color="#e9f0f8" placeholder-color="#65371b"></u-search>
+      </view>
+    </view>
+    <view>
+    </view>
+    <u-tabs ref="tabs" :list="tabList" :scrollable="false" :current="currentTab" @change="tabChange" lineColor="#65371b"
+      :activeStyle="{color:'#65371b'}" inactiveStyle="{color:'#65371b'}"></u-tabs>
+    <view class="info-list">
+      <view class="dis-flex flex-x-between info-item" v-for="(item, index) in 10" :key="index">
+        <view class="info-pic"></view>
+        <view class="info-view">
+          <view class="info-title">
+            标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题
+          </view>
+          <view class="dis-flex info-bottom">
+            <view style="margin-right: 20rpx;">10月07日</view>
+            <u-icon name="thumb-up" color="#7f7f7f" size="18"></u-icon>
+            <view style="margin-right: 20rpx;">点赞</view>
+            <u-icon name="eye" color="#7f7f7f" size="18"></u-icon>
+            <view>阅读量</view>
+          </view>
+        </view>
+      </view>
+    </view>
+  </view>
+</template>
+
+<script>
+  import themeMixins from '@/pages/yuecai/mixins/themeMixins.js';
+  export default {
+    mixins: [themeMixins],
+    data() {
+      return {
+        keyword: '',
+        page: {},
+        list: [],
+        tabList: [{
+          name: '专业风采'
+        }, {
+          name: '名菜'
+        }, {
+          name: '名店',
+        }, {
+          name: '名点',
+        }],
+        currentTab: 0
+      }
+    },
+    onLoad(options) {},
+    onShow() {},
+    methods: {
+      tabChange(index) {
+        this.current = index;
+      },
+      clickInfo(index) {
+        if (index < 0) {
+          return;
+        }
+        uni.navigateTo({
+          url: "/pages/yuecai/information/detail/index?id=" + this.bannerList[index].id,
+        })
+      },
+      doSearch() {
+
+      }
+    },
+  }
+</script>
+
+<style scoped lang="scss">
+  .search-left-btn {
+    width: 35px;
+    min-width: 35px;
+    height: 35px;
+    margin-right: 5px;
+    box-sizing: border-box;
+  }
+
+  .icon-circle {
+    border-radius: 50%;
+    border: 4rpx solid #65371b;
+    display: flex;
+    justify-content: center;
+    align-items: center;
+  }
+
+  .nav-btns {
+    border-bottom: 1rpx solid #65371b;
+    margin-bottom: 20rpx;
+    padding-bottom: 50rpx;
+
+    .nav-btn {
+      width: 150rpx;
+
+      .nav-btn-icon {
+        margin: auto;
+        width: 110rpx;
+        height: 110rpx;
+      }
+
+      .nav-btn-text {
+        width: 100%;
+        color: #65371b;
+        margin-top: 5rpx;
+        font-weight: bolder;
+        text-align: center;
+      }
+    }
+  }
+
+  .info-list {
+    height: calc(100% - 95px);
+    overflow: auto;
+    background-color: #f4f6f8;
+
+    .info-item {
+      padding: 20rpx;
+      border-bottom: 2rpx solid white;
+
+      .info-pic {
+        width: 175rpx;
+        height: 175rpx;
+        background: bisque;
+      }
+
+      .info-view {
+        width: calc(100% - 195rpx);
+
+        .info-title {
+          color: #65371b;
+          font-size: 24rpx;
+          font-weight: 300;
+          line-height: 47rpx;
+          word-spacing: 2rpx;
+          overflow: hidden;
+          text-overflow: -o-ellipsis-lastline;
+          overflow: hidden;
+          text-overflow: ellipsis;
+          display: -webkit-box;
+          -webkit-line-clamp: 3;
+          line-clamp: 3;
+          -webkit-box-orient: vertical;
+        }
+
+        .info-bottom {
+          color: #7f7f7f;
+          font-size: 24rpx;
+          margin-top: 10rpx;
+        }
+      }
+    }
+  }
+</style>

+ 110 - 109
miniapp/pages/yuecai/usercenter/index.vue

@@ -1,125 +1,126 @@
 <template>
-	<page-theme :theme="theme">
-		<template>
-			<view class="p-30">
-				<view class="flex-dir-row flex-y-center m-b-20">
-					<u-avatar :src="face" size="60" />
-					<view class="m-l-30">
-						<view class="f-34 t-bold m-b-10">{{nickName}}</view>
-						<u-icon name="arrow-right" size="15" :color="$u.color['info']" @click="toProfile" label="更新个人信息"
-							labelPos="left" labelSize="15" :labelColor="$u.color['info']" />
-					</view>
-				</view>
-				<view v-for="(item,i) in allCells" :key="i" class="m-t-20">
-					<bt-cell :cells="item" />
-				</view>
-				<!-- <view class="flex-dir-row flex-x-between m-t-20 f-28">
+  <page-theme :theme="theme">
+    <template>
+      <view class="p-30" style="background-color: white;padding-top: 60px;padding-bottom: 30px;">
+        <view class="flex-dir-row flex-y-center flex-x-between">
+          <view class="m-l-30">
+            <view class="f-34 t-bold m-b-20">{{nickName}}</view>
+            <u-icon name="arrow-right" size="15" :color="$u.color['info']" @click="toProfile" label="更新个人信息"
+              labelPos="left" labelSize="15" :labelColor="$u.color['info']" />
+          </view>
+          <u-avatar :src="face" size="60" />
+        </view>
+      </view>
+      <view class="p-30">
+        <view v-for="(item,i) in allCells" :key="i">
+          <bt-cell :cells="item" />
+        </view>
+        <!-- <view class="flex-dir-row flex-x-between m-t-20 f-28">
 					<view class="flex-dir-row flex-x-center flex-y-center p-b-t-20 border-round-10 c-g-white width-100"
 						@click="toLogout">
 						<u--image src="/static/images/logout.png" width="20px" height="20px" />
 						<view class="m-l-10 col-info">退出登录</view>
 					</view>
 				</view> -->
-				<view class="f-24 col-info-m t-c width-100 m-t-40" @click.stop="clickVersion">当前版本:{{version}}</view>
-			</view>
-		</template>
-	</page-theme>
+        <view class="f-24 col-info-m t-c width-100 m-t-40" @click.stop="clickVersion">当前版本:{{version}}</view>
+      </view>
+    </template>
+  </page-theme>
 </template>
 
 <script>
-	import btCell from '@/pages/components/btcell.vue'
-	import {
-		version
-	} from '@/common/setting'
-	import {
-		clickEvent
-	} from '@/utils/util.js'
+  import btCell from '@/pages/components/btcell.vue'
+  import {
+    version
+  } from '@/common/setting'
+  import {
+    clickEvent
+  } from '@/utils/util.js'
 
-	import themeMixins from '../mixins/themeMixins.js';
-	export default {
-		mixins: [themeMixins],
-		components: {
-			btCell 
-		},
-		data() {
-			return {
-				face: '',
-				nickName: '',
-				version: version,
-				allCells: [
-					[{
-						icon: '',
-						text: '名菜收藏',
-						url: '/pages/yuecai/collection/index?type=dish',
-					}, {
-						icon: '',
-						text: '名点收藏',
-						url: '/pages/yuecai/collection/index?type=snacks',
-					}, {
-						icon: '',
-						text: '名店收藏',
-						url: '/pages/yuecai/collection/index?type=restaurant',
-					}],
-					[{
-						icon: '',
-						text: '用户协议',
-						url: '/pages/yuecai/usercenter/protocol/index',
-					}, {
-						icon: '',
-						text: '了解隐私保护政策',
-						url: '/pages/yuecai/usercenter/privacy/index',
-					}, {
-						icon: '',
-						text: '关于我们',
-						url: './aboutus',
-					}],
-				],
-			}
-		},
-		methods: {
-			toProfile() { //个人信息
-				uni.navigateTo({
-					url: './profile/index',
-				})
-			},
-			toQuestion() {
+  import themeMixins from '../mixins/themeMixins.js';
+  export default {
+    mixins: [themeMixins],
+    components: {
+      btCell
+    },
+    data() {
+      return {
+        face: '',
+        nickName: '',
+        version: version,
+        allCells: [
+          [{
+            icon: '',
+            text: '名菜收藏',
+            url: '/pages/yuecai/collection/index?type=dish',
+          }, {
+            icon: '',
+            text: '名点收藏',
+            url: '/pages/yuecai/collection/index?type=snacks',
+          }, {
+            icon: '',
+            text: '名店收藏',
+            url: '/pages/yuecai/collection/index?type=restaurant',
+          }],
+          [{
+            icon: '',
+            text: '用户协议',
+            url: '/pages/yuecai/usercenter/protocol/index',
+          }, {
+            icon: '',
+            text: '了解隐私保护政策',
+            url: '/pages/yuecai/usercenter/privacy/index',
+          }, {
+            icon: '',
+            text: '关于我们',
+            url: './aboutus',
+          }],
+        ],
+      }
+    },
+    methods: {
+      toProfile() { //个人信息
+        uni.navigateTo({
+          url: './profile/index',
+        })
+      },
+      toQuestion() {
 
-			},
-			toService() {
+      },
+      toService() {
 
-			},
-			toLogout() {
-				this.$u.func.logout()
-			},
-			clickVersion(e) { //点击版本号
-				if (this.userInfo.nick_name == '嘉曦') { //满足条件就支持双击
-					clickEvent(e, null, this.showMeTheMoney)
-				}
-			},
-			showMeTheMoney() { //作弊
-				if (!this.userInfo.isVIP) { //不是VIP,就作弊
-					this.$u.vuex('userInfo.isVIP', true) //给予VIP
-					uni.reLaunch({ //跳回登录页,但是不登出,让tab页重新加载
-						url: '../../index',
-					})
-				}
-			},
-			refresh(face, nickName) {
-				this.face = face
-				this.nickName = nickName
-			},
-		},
-		onShow() {
-			this.face = this.userInfo.avatar || '/static/images/face.png'
-			this.nickName = this.userInfo.nick_name || '小机灵鬼'
-		},
-		onUnload() {
-		},
-	}
+      },
+      toLogout() {
+        this.$u.func.logout()
+      },
+      clickVersion(e) { //点击版本号
+        if (this.userInfo.nick_name == '嘉曦') { //满足条件就支持双击
+          clickEvent(e, null, this.showMeTheMoney)
+        }
+      },
+      showMeTheMoney() { //作弊
+        if (!this.userInfo.isVIP) { //不是VIP,就作弊
+          this.$u.vuex('userInfo.isVIP', true) //给予VIP
+          uni.reLaunch({ //跳回登录页,但是不登出,让tab页重新加载
+            url: '../../index',
+          })
+        }
+      },
+      refresh(face, nickName) {
+        this.face = face
+        this.nickName = nickName
+      },
+    },
+    onShow() {
+      this.face = this.userInfo.avatar || '/static/images/face.png'
+      this.nickName = this.userInfo.nick_name || '小机灵鬼'
+    },
+    onUnload() {},
+  }
 </script>
 
 <style scoped lang="scss">
-	.k-pink {
-		background-color: #FDEAD2;
-	}
-</style>
+  .k-pink {
+    background-color: #FDEAD2;
+  }
+</style>

BIN
miniapp/static/images/blocktime.png


BIN
miniapp/static/images/book.png


BIN
miniapp/static/images/digit/digit.png


BIN
miniapp/static/images/digit/normal/0.png


BIN
miniapp/static/images/digit/normal/1.png


BIN
miniapp/static/images/digit/normal/2.png


BIN
miniapp/static/images/digit/normal/3.png


BIN
miniapp/static/images/digit/normal/4.png


BIN
miniapp/static/images/digit/normal/5.png


BIN
miniapp/static/images/digit/normal/6.png


BIN
miniapp/static/images/digit/normal/7.png


BIN
miniapp/static/images/digit/normal/8.png


BIN
miniapp/static/images/digit/normal/9.png


BIN
miniapp/static/images/digit/normal/colon.png


BIN
miniapp/static/images/digit/shadow/0.png


BIN
miniapp/static/images/digit/shadow/1.png


BIN
miniapp/static/images/digit/shadow/2.png


BIN
miniapp/static/images/digit/shadow/3.png


BIN
miniapp/static/images/digit/shadow/4.png


BIN
miniapp/static/images/digit/shadow/5.png


BIN
miniapp/static/images/digit/shadow/6.png


BIN
miniapp/static/images/digit/shadow/7.png


BIN
miniapp/static/images/digit/shadow/8.png


BIN
miniapp/static/images/digit/shadow/9.png


BIN
miniapp/static/images/digit/shadow/colon.png


BIN
miniapp/static/images/dunbar.png


BIN
miniapp/static/images/empty.png


BIN
miniapp/static/images/face.png


BIN
miniapp/static/images/home/dish.png


BIN
miniapp/static/images/home/logo.png


BIN
miniapp/static/images/home/professional.png


BIN
miniapp/static/images/home/restaurant.png


BIN
miniapp/static/images/home/snacks.png


BIN
miniapp/static/images/icon/add.png


BIN
miniapp/static/images/icon/calendar.png


BIN
miniapp/static/images/icon/checked.png


BIN
miniapp/static/images/icon/export.png


BIN
miniapp/static/images/icon/fav.png


BIN
miniapp/static/images/icon/fav2.png


BIN
miniapp/static/images/icon/fly.png


BIN
miniapp/static/images/icon/help.png


BIN
miniapp/static/images/icon/history.png


BIN
miniapp/static/images/icon/light.png


BIN
miniapp/static/images/icon/music.png


BIN
miniapp/static/images/icon/power.png


BIN
miniapp/static/images/icon/save.png


BIN
miniapp/static/images/icon/search.png


BIN
miniapp/static/images/icon/search2.png


BIN
miniapp/static/images/icon/sort.png


BIN
miniapp/static/images/icon/stop.png


BIN
miniapp/static/images/icon/sun.png


BIN
miniapp/static/images/icon/sun2.png


BIN
miniapp/static/images/icon/time.png


BIN
miniapp/static/images/icon/time2.png


BIN
miniapp/static/images/icon/timer.png


BIN
miniapp/static/images/icon/tofav.png


BIN
miniapp/static/images/icon/tofaved.png


BIN
miniapp/static/images/icon/tomato.png


BIN
miniapp/static/images/icon/toshare.png


BIN
miniapp/static/images/icon/unchecked.png


BIN
miniapp/static/images/logout.png


BIN
miniapp/static/images/pc.png


BIN
miniapp/static/images/qr.png


BIN
miniapp/static/images/question.png


BIN
miniapp/static/images/rec-on.png


BIN
miniapp/static/images/rec.png


BIN
miniapp/static/images/service.png


BIN
miniapp/static/images/stat-on.png


BIN
miniapp/static/images/stat.png


BIN
miniapp/static/images/svip.png


BIN
miniapp/static/images/title.png


BIN
miniapp/static/images/vip.png


BIN
miniapp/static/images/vip2.png


BIN
miniapp/static/images/wx.png