提交法律援助和财税援助,调整我的页面

This commit is contained in:
2024-11-29 15:36:18 +08:00
parent 520f44a25f
commit 3ad21ea708
15 changed files with 219 additions and 50 deletions

View File

@@ -1,5 +1,5 @@
import { getAidDetail } from "../../../service/system";
import { alertInfo } from "../../../utils/index";
import { alertInfo, loadingFunc } from "../../../utils/index";
import request from "../../../utils/request"
const { OK } = request;
// pages/aid/detail/index.js
@@ -21,7 +21,9 @@ Page({
const that = this;
const { type, id } = options;
this.setData({ type, id }, () => {
that.init();
loadingFunc(async () => {
that.init();
})
})
},
@@ -36,6 +38,12 @@ Page({
detail: data
})
},
connect() {
const { type, id } = this.data;
wx.navigateTo({
url: `/pages/aid/consult/index?type=${type}&id=${id}`,
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/

View File

@@ -3,7 +3,8 @@
"aid": "/components/aid/index",
"navigator": "/components/navigator/index",
"mp-html": "/components/mp-html/index",
"van-field": "@vant/weapp/field/index"
"van-field": "@vant/weapp/field/index",
"van-button": "@vant/weapp/button/index"
},
"navigationStyle": "custom"
}

View File

@@ -39,4 +39,7 @@
<view style="margin-top: 20rpx; margin-left: 30rpx;">
<mp-html content="{{detail.detail}}" />
</view>
</van-cell-group>
</van-cell-group>
<view style="margin-top: 40rpx;margin-left: 30rpx;margin-bottom: 30rpx;">
<van-button type="info" block class="save" bind:click="connect">去联系</van-button>
</view>