tanyanfei 4 년 전
부모
커밋
bb59b794e7
8개의 변경된 파일21개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 1
      pages/actDetail/actDetail.js
  2. BIN
      pages/images/t1.png
  3. BIN
      pages/images/t2.png
  4. BIN
      pages/images/t3.png
  5. 11 2
      pages/index/index.js
  6. 4 1
      pages/index/index.wxml
  7. 4 0
      pages/index/index.wxss
  8. 1 1
      pages/number/number.wxss

+ 1 - 1
pages/actDetail/actDetail.js

@@ -137,6 +137,6 @@ Page({
    * 用户点击右上角分享
    */
   onShareAppMessage: function () {
-
+      console.log(233)
   }
 })

BIN
pages/images/t1.png


BIN
pages/images/t2.png


BIN
pages/images/t3.png


+ 11 - 2
pages/index/index.js

@@ -83,6 +83,7 @@ Page({
     this.setData({
       select:id
     })
+    this.getcasci()
   },
   //周榜
   changeMonth:function(e){
@@ -90,6 +91,7 @@ Page({
     this.setData({
       m_value: id
     })
+    this.getcasci()
   },
   monthSelect: function () {
     var week=this.data.columns[this.data.m_value]
@@ -114,18 +116,21 @@ Page({
     this.setData({
       day: e.detail.value
     })
+    this.getcasci()
   },
   //领域期刊
   subChange:function(e){
     this.setData({
       sub_value: e.detail.value
     })
+    this.getcasci()
   },
   //月榜
   bindDateChange1: function (e) {
     this.setData({
       month: e.detail.value
     })
+    this.getcasci()
   },
   onGotUserInfo: function () {
     wx.getUserProfile({
@@ -235,7 +240,8 @@ Page({
       url: host + '/api/index/subjects',
       method: 'GET',
       data: {
-        uid: this.data.uid
+        uid: this.data.uid,
+        page_size:100000
       },
       success: res => {
         if (res.data.code == 0) {
@@ -254,7 +260,10 @@ Page({
   }, 
   //指数
   getcasci:function(){
-    console.log(233)
+    wx.showNavigationBarLoading()
+    this.setData({
+      casci_list: []
+    })
     var subject_id=this.data.sub_list[this.data.sub_value].id,date='';
     if (this.data.select == 0){
       date = this.data.day

+ 4 - 1
pages/index/index.wxml

@@ -120,7 +120,10 @@
         </view>
         <scroll-view scroll-y="true" style="height: calc(100vh - 660rpx);">
             <navigator url="../number/number?id={{item.id}}" class="num_list" wx:for='{{casci_list}}'>
-              <view class="order">{{index+1}}</view>
+              <view class="order" wx:if='{{index <= 2}}'>
+                <image src="{{'../images/t'+(index+1)+'.png'}}"></image>
+              </view>
+              <view class="order" wx:if='{{index > 2}}'>{{index+1}}</view>
               <image src="{{item.img}}"></image>
               <view class="j_name">{{item.name}}</view>
               <view class="num">

+ 4 - 0
pages/index/index.wxss

@@ -425,4 +425,8 @@ scroll-view{
   color: #999;
   width: 50rpx;
   text-align: center;
+}
+.order image{
+  width: 40rpx;
+  height: 40rpx;
 }

+ 1 - 1
pages/number/number.wxss

@@ -30,7 +30,7 @@ page{
 .tab text{
   color: #666;
   font-size: 36rpx;
-  margin-right: 30rpx;
+  margin-right: 40rpx;
 }
 .tab .active{
   color: #3780CD;