开始做用电查询

This commit is contained in:
2024-04-28 17:33:16 +08:00
parent 72c8af7abd
commit 8d0f1931a9
31 changed files with 1003 additions and 169 deletions

View File

@@ -1,28 +1,20 @@
import { getInvoiceInfoDetail } from "../../service/invoice";
// pages/invoiceInfo/index.js
// pages/editInvoice/index.js
Page({
/**
* 页面的初始数据
*/
data: {
detail: {}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
const { id } = options;
if (id !== "-1") {
this.init(id);
}
},
async init(id) {
const { code, message, data } = await getInvoiceInfoDetail(id)
this.setData({ detail: data });
},
/**
* 生命周期函数--监听页面初次渲染完成
*/

View File

@@ -1,6 +0,0 @@
{
"usingComponents": {
"van-field": "@vant/weapp/field/index",
"van-button": "@vant/weapp/button/index"
}
}

View File

@@ -1,50 +1,2 @@
<van-cell-group>
<van-field
value="{{ detail.name }}"
label="公司名称"
border="{{ false }}"
placeholder="请选择公司名称"
required
/>
<van-field
value="{{ detail.tin }}"
label="税号"
border="{{ false }}"
placeholder="请输入税号"
required
/>
<van-field
value="{{ detail.address }}"
label="单位地址"
border="{{ false }}"
placeholder="请输入单位地址"
/>
<van-field
value="{{ detail.phone }}"
label="电话"
border="{{ false }}"
placeholder="请输入电话"
/>
<van-field
value="{{ detail.bank }}"
label="开户银行"
border="{{ false }}"
placeholder="请输入开户银行"
/>
<van-field
value="{{ detail.account }}"
label="开户账号"
border="{{ false }}"
placeholder="请输入开户账号"
/>
<van-field
value="{{ detail.email }}"
label="邮箱"
border="{{ false }}"
placeholder="请输入邮箱"
/>
</van-cell-group>
<view class="wrapper operate">
<van-button type="info" block style="margin-left: 30rpx;flex: 1;">保存</van-button>
</view>
<!--pages/editInvoice/index.wxml-->
<text>pages/editInvoice/index.wxml</text>

View File

@@ -1,6 +0,0 @@
/* pages/editInvoice/index.wxss */
.operate {
display: flex;
align-items: center;
margin-top: 50rpx;
}