chengziding 3 天之前
父节点
当前提交
493fd8d65b

+ 17 - 3
pages/experience/index/index.wxml

@@ -2,7 +2,8 @@
   <view class="sticky-box" style="position:fixed;z-index:100;">
     <view class="namewrap">
       <scroll-view scroll-x scroll-with-animation scroll-left="{{navScrollWidth}}" class="item-box">
-        <view class="nameitem {{nameIndex == index ? 'nameactive' : ''}}" wx:for="{{nameList}}" bindtap="nameHandler" data-index="{{index}}">
+        <view class="nameitem {{nameIndex == index ? 'nameactive' : ''}}" wx:for="{{nameList}}" bindtap="nameHandler"
+          data-index="{{index}}">
           {{item.itemname}}
           <view style="display: {{nameIndex == index?'block':'none'}};" class="item-line"></view>
         </view>
@@ -34,8 +35,21 @@
           <view class='boxm boxmfix' data-id="{{item.id}}" bindtap='activeDetail' wx:for="{{listData}}" wx:key="item">
             <view class="rel img-view">
               <image mode="aspectFill" src='{{item.thumbnailImg}}' lazy-load='true'></image>
-              <view class="status {{item.statusName === '进行中' ? 'activestatus' : item.statusName === '报名中' ? 'baostatus' : item.statusName === '已结束' ? 'endstatus' : item.statusName === '已报满' ? 'mstatus' : 'nostatus'}}">
-                {{item.statusName}}</view>
+              <!-- <view class="status {{item.statusName === '进行中' ? 'activestatus' : item.statusName === '报名中' ? 'baostatus' : item.statusName === '已结束' ? 'endstatus' : item.statusName === '已报满' ? 'mstatus' : 'nostatus'}}">
+                {{item.statusName}}</view> -->
+              <view class="status" wx:if="{{item.statusName === '报名中'}}"
+                style="background-image: url('/assets/images/home/icon_5.png');">
+                {{item.statusName}}
+              </view>
+              <view class="status"
+                wx:if="{{item.statusName === '进行中'||item.statusName === '已报满'||item.statusName === '未进行'}}"
+                style="background-image: url('/assets/images/home/icon_6.png');">
+                {{item.statusName}}
+              </view>
+              <view class="status" wx:if="{{item.statusName === '已结束'}}"
+                style="background-image: url('/assets/images/home/icon_7.png');">
+                {{item.statusName}}
+              </view>
             </view>
             <view class="txt-con txt-con-fix">
               <view>

+ 10 - 8
pages/experience/index/index.wxss

@@ -334,18 +334,20 @@ page {
   /* width: 400rpx; */
 }
 .status {
+  width: 115rpx;
+  height: 50rpx;
   position: absolute;
-  left: 0;
-  top: 0;
+  left: 0rpx;
+  top: 0rpx;
   font-size: 24rpx;
-  padding: 0 20rpx;
-  height: 39rpx;
-  line-height: 39rpx;
-  text-align: center;
-  background: rgba(0, 0, 0, 0.6);
+  line-height: 50rpx;
+  padding-left: 14rpx;
   z-index: 10;
   color: white;
-  border-radius: 20rpx 0 0 0;
+  background-size: 115rpx 50rpx;
+  background-repeat: no-repeat;
+  text-align: left;
+  /* border-radius: 20rpx 20rpx 0 20rpx; */
 }
 .activestatus {
   background: #ffdc2f;

+ 1 - 1
pages/home/index/index.wxml

@@ -217,7 +217,7 @@
     </view> -->
     <!-- 分类管理 -->
     <view class="classfiy-box" wx:if="{{goodsList1.length}}">
-      <view class="hot-title" style="margin-top:0;">
+      <view class="hot-title" style="margin-top:30rpx;">
         <view class="title">
           <view class="label">{{goodsClassfiyList[1].name}}</view>
         </view>

+ 2 - 2
pages/home/index/index.wxss

@@ -2299,7 +2299,7 @@
   top: 30rpx;
   font-size: 24rpx;
   line-height: 50rpx;
-  padding-left: 10rpx;
+  padding-left: 14rpx;
   z-index: 10;
   color: white;
   background-size: 115rpx 50rpx;
@@ -2377,7 +2377,7 @@
 
 /* 分类管理 */
 .classfiy-box {
-  padding: 0 30rpx 30rpx;
+  padding: 0 30rpx 0;
   margin-bottom: 46rpx;
   box-sizing: border-box;
 }

+ 9 - 2
project.private.config.json

@@ -2,12 +2,19 @@
   "condition": {
     "miniprogram": {
       "list": [
+        {
+          "name": "pages/experience/index/index",
+          "pathName": "pages/experience/index/index",
+          "query": "",
+          "scene": null,
+          "launchMode": "default"
+        },
         {
           "name": "pages/quality/index/index",
           "pathName": "pages/quality/index/index",
           "query": "id=10",
-          "scene": null,
-          "launchMode": "default"
+          "launchMode": "default",
+          "scene": null
         },
         {
           "name": "pages/my/myTimejob/myTimejob",

+ 2 - 2
static/style.wxss

@@ -5,7 +5,7 @@
     font-style: normal;
     font-display: swap;
 }
-[class^="icon-"], [class*=" icon-"] {
+/* [class^="icon-"], [class*=" icon-"] {
   font-family: 'iconfont1' !important;
   font-style: normal;
   font-weight: normal;
@@ -15,7 +15,7 @@
 
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
-}
+} */
 .iconfont1 {
   font-family: "iconfont1" !important;
   font-size: 16px;