소스 검색

代码提交

zhaoxiaohai 4 년 전
부모
커밋
8c1dddf277

+ 1 - 1
components/My_Checkbox/index.wxml

@@ -1,6 +1,6 @@
 <view class="checkbox_title">{{title}}</view>
 <checkbox-group change class="checkbox_list" bindchange="checkedChange">
-    <view wx:for="{{dataList}}" data-index="{{index}}" wx:key="{{item.index}}" bindtap="pitchOn">
+    <view wx:for="{{dataList}}" style="height: 64rpx;" data-index="{{index}}" wx:key="{{item.index}}" bindtap="pitchOn">
         <label class="checkbox_item {{item.checked?'choice':''}}" for="{{item.index}}">{{item.value}}</label>
         <checkbox hidden="{{true}}" id="{{item.index}}" checked="{{item.checked}}" value="{{item.value}}"></checkbox>
     </view>

+ 2 - 3
components/My_Checkbox/index.wxss

@@ -29,7 +29,7 @@
     font-size: 28rpx;
     color: rgba(0, 0, 0, .5);
     padding: 0 8rpx;
-    margin-bottom: 30rpx;
+    overflow: hidden;
 }
 
 /* 选中后背景颜色 */
@@ -40,7 +40,6 @@
 
 /* 按钮 */
 .checkbox_but {
-    position: relative;
     width: 100vw;
     margin: 30rpx 0 80rpx 0;
     box-sizing: border-box;
@@ -56,7 +55,7 @@
     overflow: hidden;
 }
 
-.customClass{
+.customClass {
     width: 100% !important;
     height: 100% !important;
 }

+ 1 - 2
custom-tab-bar/index.js

@@ -11,7 +11,7 @@ Component({
         attached() {},
         ready: function () {
             // 在组件实例进入页面节点树时执行
-            if (this.data.active == 3) this.unReadMessageCount();
+            this.unReadMessageCount();
         },
     },
     /**
@@ -98,7 +98,6 @@ Component({
                 "method": "unReadMessageCount",
                 "content": {}
             }).then(res => {
-                console.log("更新", res)
                 if (res.msg != '成功') console.log('未读消息数量查询失败')
                 this.setData({
                     "tabbarList[3].fcount": res.data[0].fcount

+ 1 - 1
pages/announceDemand/index.wxml

@@ -15,7 +15,7 @@
         <My_GreyRectangleForm title="下架日期">
             <!-- 时间选择器 -->
             <picker mode="date" start="{{dateStart}}" end="{{dateEnd}}" bindchange="dateChange">
-                <view class="picker {{optionDate!='选择日期'?'selected':''}}" >
+                <view class="picker {{optionDate!='选择日期'?'selected':''}}">
                     {{optionDate}}
                 </view>
             </picker>

+ 2 - 1
pages/tabbar-pages/customer-service-staff/index.js

@@ -9,7 +9,8 @@ Page({
     /**
      * 生命周期函数--监听页面加载
      */
-    onLoad: function (options) {},
+    onLoad: function (options) {
+    },
 
     /**
      * 生命周期函数--监听页面初次渲染完成

+ 0 - 1
pages/tabbar-pages/message/index.js

@@ -11,7 +11,6 @@ Page({
      * 生命周期函数--监听页面加载
      */
     onLoad: function (options) {
-         
     },
 
     /**

+ 1 - 0
pages/tabbar-pages/supplyAndDemand/index.js

@@ -27,6 +27,7 @@ Page({
      * 生命周期函数--监听页面加载
      */
     onLoad: function (options) {
+
         /* 获取所有信息分类 */
         _Http.basic({
             "accesstoken": wx.getStorageSync('userData').token,

+ 0 - 1
pages/tabbar-pages/user/index.js

@@ -34,7 +34,6 @@ Page({
      * 生命周期函数--监听页面加载
      */
     onLoad: function (options) {
-
     },
     /* 宫格展示区跳转 */
     gridJumpPage(e) {