Commit 85492f30 authored by 刘用法's avatar 刘用法

材料页面注释

parent 14630c97
<template> <template>
<view class="mtr-content"> <view class="mtr-content">
<view class="content-view"> <view class="content-view">
<view class="mtr-tab"> <!-- 材料列表 -->
<view class="mtr-tab">
<u-table align="center" border-color="#FFFFFF" color="#333333" font-size="rpx" :th-style="thStyle" <u-table align="center" border-color="#FFFFFF" color="#333333" font-size="rpx" :th-style="thStyle"
padding="0"> padding="0">
<u-tr class="u-tr"> <u-tr class="u-tr">
...@@ -16,7 +17,8 @@ ...@@ -16,7 +17,8 @@
</u-td> </u-td>
</u-tr> </u-tr>
</u-table> </u-table>
</view> </view>
<!-- 其他 -->
<view class="mtr-other"> <view class="mtr-other">
<view class="line-view"></view> <view class="line-view"></view>
<view class="other-space"> <view class="other-space">
...@@ -48,7 +50,8 @@ ...@@ -48,7 +50,8 @@
<text>{{money}}</text> <text>{{money}}</text>
</view> </view>
</view> </view>
</view> </view>
<!-- 底部确定按钮 -->
<view class="bottom-view"> <view class="bottom-view">
<u-button class="sure-button" type="primary" shape="circle" @click="handleSure" :custom-style="buttonStyle"> <u-button class="sure-button" type="primary" shape="circle" @click="handleSure" :custom-style="buttonStyle">
确定 确定
...@@ -61,8 +64,8 @@ ...@@ -61,8 +64,8 @@
export default { export default {
data() { data() {
return { return {
list: [], list: [], // 材料列表
other: [] other: [], // 其他列表
}; };
}, },
computed: { computed: {
...@@ -126,13 +129,15 @@ ...@@ -126,13 +129,15 @@
}) })
} }
}, },
methods: { methods: {
/* 其他添加新的 */
handleAdd() { handleAdd() {
this.other.push({ this.other.push({
title: '', title: '',
value: '' value: ''
}) })
}, },
/* 其他删除某个 */
handleSubtract(index) { handleSubtract(index) {
this.other.splice(index, 1) this.other.splice(index, 1)
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment