From 4642a18c955e4b393a222facb889f3d91fa5ed91 Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期六, 04 十一月 2023 00:23:16 +0800 Subject: [PATCH] # --- pages/api/addMat.js | 15 ++++++++------- pages.json | 5 ++++- pages/project/pakin/pakin.vue | 7 ++++--- components/z-data-list/z-data-list.vue | 1 - App.vue | 3 ++- 5 files changed, 18 insertions(+), 13 deletions(-) diff --git a/App.vue b/App.vue index a57c1b2..a7428d0 100644 --- a/App.vue +++ b/App.vue @@ -28,7 +28,8 @@ line-height: 100rpx; width: 100%; background-color: #fff; - box-shadow: 0px -4px 4px #f0f0f0; + /* box-shadow: 0px -4px 4px #e2e2e2; */ + border-top: 1px solid #e2e2e2; position: fixed; bottom: 0; left: 0; diff --git a/components/z-data-list/z-data-list.vue b/components/z-data-list/z-data-list.vue index 7fba8cc..1aeb745 100644 --- a/components/z-data-list/z-data-list.vue +++ b/components/z-data-list/z-data-list.vue @@ -7,7 +7,6 @@ <view>:</view> <view class="left-val"> <text :class="it.valText">{{fields[it.attribute]}}</text> - <text :class="it.valText" v-show="!fields[it.attribute]">--</text> </view> </view> </view> diff --git a/pages.json b/pages.json index 7d0712a..d3e4543 100644 --- a/pages.json +++ b/pages.json @@ -111,7 +111,10 @@ "navigationBarTextStyle": "black", "navigationBarTitleText": "uni-app", "navigationBarBackgroundColor": "#fff", - "backgroundColor": "#fff" + "backgroundColor": "#fff", + "app-plus": { + "bounce": "none" + } }, "uniIdRouter": {} diff --git a/pages/api/addMat.js b/pages/api/addMat.js index a4e0b4d..b573c20 100644 --- a/pages/api/addMat.js +++ b/pages/api/addMat.js @@ -8,14 +8,15 @@ data: {matnr: matnr}, }).then((result)=> { let mat = result.data.data + item = mat console.log(mat); - item['detl'] = [ - {key: '鍟嗗搧鐮�',value: mat.matnr}, - {key: '鍟嗗搧鍚嶇О',value: mat.maktx}, - {key: '瑙勬牸',value: mat.specs}, - {key: '鎵瑰彿',value: '',type: 'input'}, - {key: '鏁伴噺',value: 0,type: 'number-box',valText: 'val-num'}, - ] + // item['detl'] = [ + // {key: '鍟嗗搧鐮�',value: mat.matnr}, + // {key: '鍟嗗搧鍚嶇О',value: mat.maktx}, + // {key: '瑙勬牸',value: mat.specs}, + // {key: '鎵瑰彿',value: '',type: 'input'}, + // {key: '鏁伴噺',value: 0,type: 'number-box',valText: 'val-num'}, + // ] },(res)=>{ console.log(res); }) diff --git a/pages/project/pakin/pakin.vue b/pages/project/pakin/pakin.vue index b72d760..163d36c 100644 --- a/pages/project/pakin/pakin.vue +++ b/pages/project/pakin/pakin.vue @@ -50,9 +50,9 @@ data() { return { zDataList: [ - {matnr: 'A1001',maktx: '1鍙风墿鏂�',count: 99}, - {matnr: 'A1002',maktx: '2鍙风墿鏂�',count: 77}, - {matnr: 'A1002',maktx: '2鍙风墿鏂�',count: 77} + // {matnr: 'A1001',maktx: '1鍙风墿鏂�',count: 99}, + // {matnr: 'A1002',maktx: '2鍙风墿鏂�',count: 77}, + // {matnr: 'A1002',maktx: '2鍙风墿鏂�',count: 77} ], } }, @@ -71,6 +71,7 @@ }, async getMat(matnr) { let mat = await addMat.addMat(matnr) + mat['count'] = 0 this.zDataList.push(mat) }, goDetail(param,index) { -- Gitblit v1.9.1