瀏覽代碼

开发优化

bayi 2 年之前
父節點
當前提交
806a13d45d

+ 1 - 1
custom-tab-bar/index.less

@@ -23,7 +23,7 @@
 
     .noticeTips {
       position: absolute;
-      left: 146rpx;
+      left: 11  6rpx;
       top: -12rpx;
       width: 28rpx;
       padding: 4rpx 0rpx;

+ 1 - 1
custom-tab-bar/index.wxml

@@ -1,7 +1,7 @@
 <view class="tab-bar">
   <view wx:for="{{listTab}}" wx:key="index" class="tab-bar-item" data-path="{{item.pagePath}}" data-index="{{index}}"
     bindtap="switchTab">
-    <!-- <view class="noticeTips" wx:if="{{item.pagePath=='/pages/my/index'}}">31</view> -->
+    <view class="noticeTips" wx:if="{{item.pagePath=='/pages/my/index'}}">31</view>
     <image src="{{selected === index ? item.selectedIconPath : item.iconPath}}"></image>
     <view style="color: {{selected === index ? selectedColor : color}}">{{item.text}}</view>
   </view>

+ 1 - 1
custom-tab-bar/index.wxss

@@ -23,7 +23,7 @@
 }
 .tab-bar .tab-bar-item .noticeTips {
   position: absolute;
-  left: 146rpx;
+  left: 11  6rpx;
   top: -12rpx;
   width: 28rpx;
   padding: 4rpx 0rpx;

+ 1 - 1
pages/index/index.js

@@ -20,7 +20,7 @@ Page({
   data: {
     navBarHeight: app.globalData.navBarHeight,
     background: ['demo-text-1', 'demo-text-2', 'demo-text-3'],
-    currentType: '1',
+    currentType: '2',
     // 控制一级分类是否固定
     isFixed: false,
     desktopTips: app.globalData.desktopTips,

+ 2 - 2
pages/match/index.js

@@ -141,14 +141,14 @@ Page({
       return {
         title: '这个小程序太赞了!孩子朗读能力蹭蹭上涨,推荐你试试!',
         path: `/pages/index/index?uid=${wx.getStorageSync('uid')}`,
-        imageUrl: 'http://reader-wx.ai160.com/images/reader/v3/375-300-1.jpg',
+        imageUrl: 'http://reader-wx.ai160.com/images/reader/v3/375-300.png',
         promise
       }
     } else {
       return {
         title: '这个小程序太赞了!孩子朗读能力蹭蹭上涨,推荐你试试!',
         path: `/pages/match/index?uid=${wx.getStorageSync('uid')}&activityId=${this.data.activityId}`,
-        imageUrl: 'http://reader-wx.ai160.com/images/reader/v3/375-300-1.jpg'
+        imageUrl: 'http://reader-wx.ai160.com/images/reader/v3/375-300.png'
       }
     }
   },

+ 1 - 1
pages/my/index.wxml

@@ -31,7 +31,7 @@
         <text class="title">作品 {{filters.numFilter(userInfo.readAmount)}}</text>
       </view>
       <view class="sBox" bindtap='jump' data-url="/pages/notice/index">
-        <!-- <view class="noticeTips">31</view> -->
+        <view class="noticeTips">31</view>
         <image class="img" src="/static/message.png" mode="" />
         <text class="title">消息通知</text>
       </view>

+ 3 - 0
pages/searchFriend/index.js

@@ -10,6 +10,9 @@ Page({
   onLoad(options) {
     list: []
   },
+  onShow(){
+    this.resetData()
+  },
   setSearch({
     detail
   }) {