上传首页更改

This commit is contained in:
qiaomu 2024-11-28 09:51:12 +08:00
parent 6af35a4632
commit 7bbe58a0d0
16 changed files with 191 additions and 2 deletions

View File

@ -23,7 +23,9 @@
"pages/encyclopedia/index", "pages/encyclopedia/index",
"pages/encyclopediaDetail/index", "pages/encyclopediaDetail/index",
"pages/workBench/index", "pages/workBench/index",
"pages/webPage/index" "pages/webPage/index",
"pages/aid/finance/index",
"pages/aid/law/index"
], ],
"subPackages": [ "subPackages": [
{ {

24
components/aid/index.js Normal file
View File

@ -0,0 +1,24 @@
// components/aid/index.js
Component({
/**
* 组件的属性列表
*/
properties: {
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
}
})

View File

@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

View File

@ -0,0 +1,2 @@
<!--components/aid/index.wxml-->
<text>components/aid/index.wxml</text>

View File

@ -0,0 +1 @@
/* components/aid/index.wxss */

View File

@ -0,0 +1,66 @@
// pages/aid/finance/index.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

View File

@ -0,0 +1,3 @@
{
"usingComponents": {}
}

View File

@ -0,0 +1,2 @@
<!--pages/aid/finance/index.wxml-->
<text>pages/aid/finance/index.wxml</text>

View File

@ -0,0 +1 @@
/* pages/aid/finance/index.wxss */

66
pages/aid/law/index.js Normal file
View File

@ -0,0 +1,66 @@
// pages/aid/law/index.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

3
pages/aid/law/index.json Normal file
View File

@ -0,0 +1,3 @@
{
"usingComponents": {}
}

2
pages/aid/law/index.wxml Normal file
View File

@ -0,0 +1,2 @@
<!--pages/aid/law/index.wxml-->
<text>pages/aid/law/index.wxml</text>

1
pages/aid/law/index.wxss Normal file
View File

@ -0,0 +1 @@
/* pages/aid/law/index.wxss */

View File

@ -127,4 +127,9 @@ Page({
}); });
}, },
jumpToFinance() {
wx.navigateTo({
url: '/pages/aid/finance/index',
})
}
}) })

View File

@ -5,7 +5,9 @@
"cell": "/components/cell/index", "cell": "/components/cell/index",
"van-dialog": "@vant/weapp/dialog/index", "van-dialog": "@vant/weapp/dialog/index",
"dot": "/components/dot/index", "dot": "/components/dot/index",
"navigator": "/components/navigator/index" "navigator": "/components/navigator/index",
"van-grid": "@vant/weapp/grid/index",
"van-grid-item": "@vant/weapp/grid-item/index"
}, },
"navigationBarTitleText": "我的", "navigationBarTitleText": "我的",
"navigationStyle": "custom" "navigationStyle": "custom"

View File

@ -1,6 +1,11 @@
<!--pages/my/index.wxml--> <!--pages/my/index.wxml-->
<navigator title="我的" /> <navigator title="我的" />
<van-grid column-num="3">
<van-grid-item icon="friends-o" text="财税援助" bind:click="jumpToFinance" />
<van-grid-item icon="envelop-o" text="法律援助" />
<van-grid-item icon="notes-o" text="电力百科" />
</van-grid>
<van-cell title="联系客服" value="" is-link bind:tap="connect" /> <van-cell title="联系客服" value="" is-link bind:tap="connect" />
<van-cell wx:if="{{!!user.isAdmin}}" title="二维码" value="" is-link bind:click="jumpToQrCode" /> <van-cell wx:if="{{!!user.isAdmin}}" title="二维码" value="" is-link bind:click="jumpToQrCode" />
<van-cell wx:if="{{!!user.isAdmin}}" is-link bind:click="jumpToMember"> <van-cell wx:if="{{!!user.isAdmin}}" is-link bind:click="jumpToMember">