Procházet zdrojové kódy

日记账更新
首页提示更新

liuyao před 1 rokem
rodič
revize
dbb285e2a7

+ 33 - 0
package-accounts-manage/pages/daily-reconciliation-statement/daily-reconciliation-statement.js

@@ -182,5 +182,38 @@ Page({
     }
 
   },
+
+  /**
+    * @desc : 跳转明细
+    * @date : 2024/7/12 15:21
+    * @author : 刘尧
+   */
+  toDetail(e){
+    if(this.data.freeVersionFlag){
+      console.log('toDetail', e);
+    }else{
+      if (e) {
+        let item = null;
+        if (e.currentTarget.dataset.item) {
+          item = e.currentTarget.dataset.item
+        }
+        if (!e.detail) {
+          e.detail = {}
+        }
+        if (item) {
+          e.detail.item = item;
+        }
+        if (e.detail.item) {
+          let button = {
+            formMode: Constants.formMode.edit
+          }
+          e.detail.item.button = button
+        }
+        // 如果name不传递,默认为edit
+        e.detail.name = 'edit'
+      }
+      this.open(e);
+    }
+  }
  
 })

+ 1 - 1
package-accounts-manage/pages/daily-reconciliation-statement/daily-reconciliation-statement.wxml

@@ -36,7 +36,7 @@
         <view style="margin-top: 30rpx;">
           <view class="list"> 
             <view class="left">
-              {{ item_.cusName?  (item_.cusName + '/'+item_.cusPhone) : item_.flowTypeName}}
+              {{ item_.cusName?  (item_.cusName + '/'+item_.cusPhone) : (item_.supName? (item_.supName + '/' + item_.supPhone): item_.flowTypeName)}}
             </view>
             <view class="right">
               <dk-cell left="0rpx" height="45rpx" contentRight="{{true}}" contentFontSize="16" contentColor="#A5814A" contentFontWeight="bold" content="{{item_.amtRes ? item_.amtRes : 0}}"></dk-cell>

+ 1 - 5
pages/home-page/home-page.js

@@ -302,11 +302,7 @@ Page({
     let url = e.currentTarget.dataset.url
     // 如果点击全部应用跳转到应用页面
     if (flg) {
-      wx.showToast({
-        title: '功能开发中,敬请期待',
-        image: '/static/image/warning.png',
-        duration: 2000
-      })
+      util.showToast('功能开发中,敬请期待')
       return
     }