姜永辉 2 лет назад
Родитель
Сommit
268f83dc8a

+ 2 - 18
package-basic-data/pages/test/test.js

@@ -106,28 +106,12 @@ Page({
    * 生命周期函数--监听页面加载
    */
   onLoad: function (options) {
-    //按钮权限
-    // let Customer_Follow = common.hasButtonRight(Constants.Customer_Follow) //跟进
-    // let Customer_Follow_Task = common.hasButtonRight(Constants.Customer_Follow_Task) //跟进任务
-    // let Customer_Order = common.hasButtonRight(Constants.Customer_Order) //销售订单
-    // let Customer_Receive = common.hasButtonRight(Constants.Customer_Receive) //客户收款
-    // let Customer_Add = common.hasButtonRight(Constants.Customer_Add) //客户新建
-
-    this.setData({
-      Customer_Follow: true,
-      Customer_Follow_Task: true,
-      Customer_Order: true,
-      Customer_Receive: true,
-      Customer_Add: true
-
-    }) 
+    //按钮权限 
   },
+  
   /**
    * 生命周期函数--监听页面显示
    */
   onShow: function () {
-    if (this.data.selectflag) {
-      // this.searchData()
-    }
   },
 })

+ 3 - 3
package-basic-data/pages/test/test.wxml

@@ -10,12 +10,12 @@
 </van-sticky>
 
 <!-- 暂无数据 -->
-<van-empty wx:if="{{dataList.length<=0}}" description="暂无数据" />
+<van-empty wx:if="{{tableData.length<=0}}" description="{{$t['nodata']}}" />
 
 <!-- 列表区 -->
-<dk-list list="{{tableData}}"  title="staffName" status="flgCanLogin" footerTag="customerForm" collectCol="collectAmount" collectName="收款" subTitle="makeTime" content="{{contentList}}"   footerAmount="{{footerAmount}}" footerInfo="{{footerInfo}}" bind:toDetail="toDetail" bind:toTitle="toTitle" bind:toStatus="toStatus" bind:toPoint="toPoint" routeObjName="{{routeObjName}}" buttonList="{{buttonList}}" bind:open="open"></dk-list>
+<dk-list list="{{tableData}}"  title="staffName" status="flgCanLogin" footerTag="customerForm" collectCol="collectAmount" collectName="收款" subTitle="makeTime" content="{{contentList}}"   footerAmount="{{footerAmount}}" footerInfo="{{footerInfo}}" bind:toDetail="toDetail" bind:toTitle="toTitle" bind:toStatus="flgCanLogin" bind:toPoint="toPoint" routeObjName="{{routeObjName}}" buttonList="{{buttonList}}" bind:open="open"></dk-list>
 
-<van-divider wx:if="{{noMore}}" contentPosition="center" borderColor="#DCDCDC">到底了~</van-divider>
+<van-divider wx:if="{{noMore}}" contentPosition="center" borderColor="#DCDCDC">{{$t['noMore']}}</van-divider>
 <view style="height: 135rpx;"></view>
 
 <!-- 新建按钮 -->

+ 2 - 0
pages/home-page/home-page.wxml

@@ -1,4 +1,6 @@
+<!-- 前台导入wxs -->
 <wxs src='/utils/numberFormat.wxs' module="numberFormat"></wxs>
+<!-- 加载图层 -->
 <loading wx:if="{{loading}}"></loading>
 <!-- 顶部 -->
 <view class="head">