guhongwei пре 2 година
родитељ
комит
c8562fe7e7
4 измењених фајлова са 15 додато и 16 уклоњено
  1. 4 5
      pages/club/index.js
  2. 5 6
      pages/club/index.less
  3. 2 1
      pages/club/index.wxml
  4. 4 4
      pages/club/index.wxss

+ 4 - 5
pages/club/index.js

@@ -2,12 +2,11 @@ const app = getApp()
 Page({
     data: {
         frameStyle: { useTop: true, name: '俱乐部', leftArrow: false, useBar: true },
-        src: '/image/club.png',
         list: [
-            { name: '宝藏俱乐部', founder: '宝藏', add: '长春市朝阳区前进大街1244号', project: '羽毛球', time: '2000-02-01', tel: '0431-800-800-8800' },
-            { name: '英语俱乐部', founder: '英语', time: '2000-02-01', add: '长春市朝阳区前进大街1244号', project: '羽毛球', tel: '0431-800-800-8800' },
-            { name: '宝藏俱乐部', founder: '宝藏', add: '长春市朝阳区前进大街1244号', project: '羽毛球', time: '2000-02-01', tel: '0431-800-800-8800' },
-            { name: '英语俱乐部', founder: '英语', time: '2000-02-01', add: '长春市朝阳区前进大街1244号', project: '羽毛球', tel: '0431-800-800-8800' },
+            { name: '宝藏俱乐部', founder: '宝藏', add: '长春市朝阳区前进大街1244号', project: '羽毛球', time: '2000-02-01', tel: '0431-800-800-8800', logo: [{ url: '/image/club.png' }] },
+            { name: '英语俱乐部', founder: '英语', time: '2000-02-01', add: '长春市朝阳区前进大街1244号', project: '羽毛球', tel: '0431-800-800-8800', logo: [{ url: '/image/club.png' }] },
+            { name: '宝藏俱乐部', founder: '宝藏', add: '长春市朝阳区前进大街1244号', project: '羽毛球', time: '2000-02-01', tel: '0431-800-800-8800', logo: [{ url: '/image/club.png' }] },
+            { name: '英语俱乐部', founder: '英语', time: '2000-02-01', add: '长春市朝阳区前进大街1244号', project: '羽毛球', tel: '0431-800-800-8800', logo: [{ url: '/image/club.png' }] },
         ],
     },
     // 跳转菜单

+ 5 - 6
pages/club/index.less

@@ -36,23 +36,23 @@
         .list {
             display: flex;
             flex-direction: row;
-            height: 120px;
+            height: 130px;
             padding: 2vw;
             margin: 2vw 2vw 0;
             border-radius: 10px;
 
             .content {
                 flex-grow: 1;
-                z-index: 999;
 
                 .name {
                     font-size: var(--font18Szie);
                     text-align: center;
                     color: var(--whiteColor);
+                    margin: 0 0 5px 0;
                 }
 
                 .text1 {
-                    font-size: var(--font14Size);
+                    font-size: var(--font15Size);
 
                     text {
                         color: var(--whiteColor);
@@ -61,7 +61,7 @@
             }
 
             .logo {
-                margin: 5vw 0;
+                margin: 6vw 0;
 
                 image {
                     width: 80px;
@@ -70,12 +70,11 @@
         }
 
         .list:nth-child(1n) {
-            background-image: linear-gradient(to right, #9bd1fd,#44a2f0 );
+            background-image: linear-gradient(to right, #9bd1fd, #44a2f0);
         }
 
         .list:nth-child(2n) {
             background-image: linear-gradient(to right, #eb5299, #ffaed4);
-
         }
     }
 }

+ 2 - 1
pages/club/index.wxml

@@ -21,7 +21,8 @@
                             <view class="text1">地址:<text>{{item.add}}</text></view>
                         </view>
                         <view class="logo">
-                            <image src="{{src}}" mode="widthFix"></image>
+                            <image src="{{item.logo[0].url}}" mode="widthFix">
+                            </image>
                         </view>
                     </view>
                 </view>

+ 4 - 4
pages/club/index.wxss

@@ -31,28 +31,28 @@
 .main .two .list {
   display: flex;
   flex-direction: row;
-  height: 120px;
+  height: 130px;
   padding: 2vw;
   margin: 2vw 2vw 0;
   border-radius: 10px;
 }
 .main .two .list .content {
   flex-grow: 1;
-  z-index: 999;
 }
 .main .two .list .content .name {
   font-size: var(--font18Szie);
   text-align: center;
   color: var(--whiteColor);
+  margin: 0 0 5px 0;
 }
 .main .two .list .content .text1 {
-  font-size: var(--font14Size);
+  font-size: var(--font15Size);
 }
 .main .two .list .content .text1 text {
   color: var(--whiteColor);
 }
 .main .two .list .logo {
-  margin: 5vw 0;
+  margin: 6vw 0;
 }
 .main .two .list .logo image {
   width: 80px;