26/04/18 wyx 删除地址js文件,生活缴费页面部分修改

This commit is contained in:
wangyuxin
2026-04-18 10:40:49 +08:00
parent 5dad83c168
commit 40e4e8624a
3 changed files with 89 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
<template>
<view class="contentStyle" style="">
<view :style="{height:statusBarHeight+'px'}"></view>
<view class="status-bar"></view>
<uni-nav-bar title="生活缴费" left-icon="left" @clickLeft="goBack" backgroundColor="transparent" :border="false">
</uni-nav-bar>
@@ -181,7 +181,7 @@
goToAdd(type) {
uni.setStorageSync('addPaymentType', type.name)
uni.redirectTo({
url: '/pages/payment-list/addPayment',
url: '/pages/payment-list/selectPaymentEntity',
success: res => {},
fail: () => {},
complete: () => {}
@@ -385,4 +385,8 @@
font-weight: 600;
color: #333;
}
.status-bar {
width: 100vw;
height: 46px;
}
</style>

View File

@@ -51,7 +51,7 @@
<script>
// 引入外部城市数据
import Address from '@/static/js/chinaRegions/picker-region.js'
// import Address from '@/static/js/chinaRegions/picker-region.js'
export default {
onReady: function(e) {},
components: {
@@ -107,7 +107,79 @@
return {
selectedCity: '选择城市',
cityValue: '',
alladdress: Address,
alladdress: [{
text: "北京市",
value: "110000000000",
children: [{
text: "市辖区",
value: "110100000000",
children: [{
text: "东城区",
value: "110101000000"
},
{
text: "西城区",
value: "110102000000"
},
{
text: "朝阳区",
value: "110105000000"
},
{
text: "丰台区",
value: "110106000000"
},
{
text: "石景山区",
value: "110107000000"
},
{
text: "海淀区",
value: "110108000000"
},
{
text: "门头沟区",
value: "110109000000"
},
{
text: "房山区",
value: "110111000000"
},
{
text: "通州区",
value: "110112000000"
},
{
text: "顺义区",
value: "110113000000"
},
{
text: "昌平区",
value: "110114000000"
},
{
text: "大兴区",
value: "110115000000"
},
{
text: "怀柔区",
value: "110116000000"
},
{
text: "平谷区",
value: "110117000000"
},
{
text: "密云区",
value: "110118000000"
},
{
text: "延庆区",
value: "110119000000"
}
]
}]
}, ],
searchKey: '',
/* 设定状态栏默认高度 */
@@ -169,6 +241,15 @@
methods: {
selectItem(item) {
console.log(item);
uni.redirectTo({
url: '/pages/payment-list/addPayment',
success: res => {},
fail: () => {},
complete: () => {}
});
},
onchange(e) {
console.log('选中text数组:', e.detail.value)
let arr = e.detail.value