浏览代码

经营分类

zhaoxiaohai 3 年之前
父节点
当前提交
c959a81fa8
共有 4 个文件被更改,包括 8 次插入7 次删除
  1. 2 1
      components/My_Checkbox/index.js
  2. 1 1
      pages/businessPartner/details.wxml
  3. 2 2
      pages/login/index.js
  4. 3 3
      pages/login/index.wxml

+ 2 - 1
components/My_Checkbox/index.js

@@ -22,7 +22,8 @@ Component({
         },
         /* 分类列表 */
         dataList: {
-            type: Array
+            type: Array,
+            value: []
         },
         /* 是否请求 */
         isRequest: {

+ 1 - 1
pages/businessPartner/details.wxml

@@ -7,7 +7,7 @@
             <image style="z-index: 9;" class="logo" src="{{partnerDetails.attinfos[0].fobsurl}}" mode="aspectFill" catchtap="previewImg"></image>
         </My_GreyRectangleForm>
         <My_GreyRectangleForm title="是否合作">
-            <van-switch checked="{{ checked }}" bind:change="onChange" />
+            <van-switch checked="{{ checked }}" size="24px" active-color="#4CBECF" bind:change="onChange" />
         </My_GreyRectangleForm>
         <My_GreyRectangleForm title="合作方式" required>
             <view class="right-text" catchtap="dropDown">{{showType}}

+ 2 - 2
pages/login/index.js

@@ -47,7 +47,7 @@ Page({
             logoTips: false, //未上传图片提示
         },
         countDownTime: 60, //倒计时
-        dataList: [], //分类列表
+        dataList: ["暂无分类"], //分类列表
     },
 
     /**
@@ -192,6 +192,7 @@ Page({
                 "method": "query_typeselectList",
                 "content": {}
             }).then(res => {
+                console.log(res)
                 if (res.msg != '成功') return;
                 let dataList = [];
                 for (let i = 0; i < res.data.length; i++) {
@@ -201,7 +202,6 @@ Page({
                         checked: false
                     })
                 }
-                console.log(dataList)
                 this.setData({
                     dataList
                 })

+ 3 - 3
pages/login/index.wxml

@@ -136,7 +136,7 @@
 <!-- 背景图片 -->
 <My_Background></My_Background>
 <!-- 弹出层 -->
-<van-action-sheet show="{{ popups }}" dataList="{{dataList}}" bind:close="showPop">
-    <My_Checkbox title="经营类目" bind:saleprodChange="saleprodChange" isRequest='{{false}}'></My_Checkbox><!-- saleprodclass="{{saleprodclass}}" -->
-    <view style="height: 34px;"></view>
+<van-action-sheet show="{{ popups }}" bind:close="showPop">
+    <My_Checkbox title="经营类目" bind:saleprodChange="saleprodChange" dataList="{{dataList}}" isRequest='{{false}}'></My_Checkbox><!-- saleprodclass="{{saleprodclass}}" -->
+    <view style="height: 34rpx;"></view>
 </van-action-sheet>