diff --git a/api/index.js b/api/index.js new file mode 100644 index 0000000..9101f0f --- /dev/null +++ b/api/index.js @@ -0,0 +1,4 @@ +var fly = require('../utils/request') +export function mzPolicy(data) { + return fly.get(`mzPolicy`,data) +} diff --git a/app.json b/app.json index 0f5caa1..f3838ae 100644 --- a/app.json +++ b/app.json @@ -28,7 +28,9 @@ "root": "subpages/index", "name": "index", "pages": [ - "renewalApplication/renewalApplication" + "renewalApplication/renewalApplication", + "policy/index/index", + "policy/detail/detail" ] } ], diff --git a/app.wxss b/app.wxss index 3d8b1dc..12fc4bb 100644 --- a/app.wxss +++ b/app.wxss @@ -142,6 +142,9 @@ page{ .text-30{ font-size: 30rpx; } + .text-indent{ + text-indent: 2em; + } .font-bold{ font-weight: 600; } diff --git a/project.private.config.json b/project.private.config.json index d270f46..b2f7232 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -14,6 +14,20 @@ "condition": { "miniprogram": { "list": [ + { + "name": "subpages/index/policy/detail/detail", + "pathName": "subpages/index/policy/detail/detail", + "query": "", + "launchMode": "default", + "scene": null + }, + { + "name": "subpages/index/policy/index/index", + "pathName": "subpages/index/policy/index/index", + "query": "", + "launchMode": "default", + "scene": null + }, { "name": "subpages/OCRCard/pages/confirm/confirm", "pathName": "subpages/OCRCard/pages/confirm/confirm", diff --git a/subpages/index/policy/detail/detail.js b/subpages/index/policy/detail/detail.js new file mode 100644 index 0000000..7d142bb --- /dev/null +++ b/subpages/index/policy/detail/detail.js @@ -0,0 +1,66 @@ +// subpages/index/policy/detail/detail.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/subpages/index/policy/detail/detail.json b/subpages/index/policy/detail/detail.json new file mode 100644 index 0000000..b99aa1c --- /dev/null +++ b/subpages/index/policy/detail/detail.json @@ -0,0 +1,11 @@ +{ + "navigationStyle": "custom", + "usingComponents": { + "navigationBar": "/components/navigationBar/navigationBar", + "van-image": "@vant/weapp/image/index", + "van-button": "@vant/weapp/button/index", + "van-tab": "@vant/weapp/tab/index", + "van-tabs": "@vant/weapp/tabs/index", + "van-divider": "@vant/weapp/divider/index" + } +} \ No newline at end of file diff --git a/subpages/index/policy/detail/detail.wxml b/subpages/index/policy/detail/detail.wxml new file mode 100644 index 0000000..ea53d72 --- /dev/null +++ b/subpages/index/policy/detail/detail.wxml @@ -0,0 +1,25 @@ + + + + + + + + + + + 青岛人彩棉租住房申请条件的先骨干说明 + + 住房政策 + 2025-04-27 05:50:32 + + + + + + + 在政策适用对象方面,主要是来青岛求职、在青岛就业创业的毕业3年内全日制专科及以上学历高校毕业生。其中,相比国内其他城市政策,该市把毕业学年内待就业的在校大学生,以及技工院校高级工班、预备技师班、技师班的毕业生纳入政策保障。 + + + + \ No newline at end of file diff --git a/subpages/index/policy/detail/detail.wxss b/subpages/index/policy/detail/detail.wxss new file mode 100644 index 0000000..874af6a --- /dev/null +++ b/subpages/index/policy/detail/detail.wxss @@ -0,0 +1,13 @@ +/* subpages/index/policy/detail/detail.wxss */ +.cont{ + position: relative; +} +.card{ + position: absolute; + background: #fff; + border-radius: 16rpx; + top: 260rpx; +} +.des{ + line-height: 48rpx; +} \ No newline at end of file diff --git a/subpages/index/policy/images/banner.png b/subpages/index/policy/images/banner.png new file mode 100644 index 0000000..b275a3b Binary files /dev/null and b/subpages/index/policy/images/banner.png differ diff --git a/subpages/index/policy/index/index.js b/subpages/index/policy/index/index.js new file mode 100644 index 0000000..c56b19f --- /dev/null +++ b/subpages/index/policy/index/index.js @@ -0,0 +1,71 @@ +// subpages/index/policy/index/index.js +import { mzPolicy } from "../../../../api/index"; +Page({ + /** + * 页面的初始数据 + */ + data: { + tabs: [ + { title: "最新" }, + { title: "住房政策" }, + { title: "人才政策" }, + { title: "就业政策" }, + ], + active: 0, + currentCont: 0, + pageNo: 1, + pageSize: 10, + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + this.getPolicyList(); + }, + async getPolicyList() { + const res = await mzPolicy({ + pageNo: this.data.pageNo, + pageSize: this.data.pageSize, + }); + }, + onChange(event) { + this.setData({ + active: event.detail, + }); + }, + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() {}, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() {}, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() {}, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() {}, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() {}, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() {}, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() {}, +}); diff --git a/subpages/index/policy/index/index.json b/subpages/index/policy/index/index.json new file mode 100644 index 0000000..f27aa83 --- /dev/null +++ b/subpages/index/policy/index/index.json @@ -0,0 +1,11 @@ +{ + "navigationStyle": "custom", + "usingComponents": { + "navigationBar": "/components/navigationBar/navigationBar", + "van-image": "@vant/weapp/image/index", + "van-button": "@vant/weapp/button/index", + "van-tab": "@vant/weapp/tab/index", + "van-tabs": "@vant/weapp/tabs/index", + "van-divider": "@vant/weapp/divider/index" + } +} \ No newline at end of file diff --git a/subpages/index/policy/index/index.wxml b/subpages/index/policy/index/index.wxml new file mode 100644 index 0000000..da51d06 --- /dev/null +++ b/subpages/index/policy/index/index.wxml @@ -0,0 +1,43 @@ + + + + + 为您提供最新政策资讯内容 + + + + + + + + + + + + 青岛人彩棉租住房申请条件的先骨干说明 + + 住房政策 + 2025-04-27 05:50:32 + + + + + + + + + + + + 青岛人彩棉租住房申请条件的先骨干说明 + + 住房政策 + 2025-04-27 05:50:32 + + + + + + + + \ No newline at end of file diff --git a/subpages/index/policy/index/index.wxss b/subpages/index/policy/index/index.wxss new file mode 100644 index 0000000..6a30e82 --- /dev/null +++ b/subpages/index/policy/index/index.wxss @@ -0,0 +1,18 @@ +/* subpages/index/policy/index/index.wxss */ +.ad { + position: relative; +} + +.des { + position: absolute; + bottom: 104rpx; + left: 0; + right: 0; + color: #005FA2; + font-size: 24rpx; +} + +.van-tab--active { + font-weight: bold !important; +} + diff --git a/utils/config.js b/utils/config.js index 88a2474..24b0e95 100644 --- a/utils/config.js +++ b/utils/config.js @@ -13,7 +13,7 @@ module.exports = { }; function BASEURL() { - return 'https://zl.linyicszh.com/api/' + return 'http://192.168.1.144:8080/mz-api/' // return 'http://192.168.1.140/api/' // return 'https://epmet-test.elinkservice.cn/api/' } diff --git a/utils/request.js b/utils/request.js index a92fa85..884c316 100644 --- a/utils/request.js +++ b/utils/request.js @@ -21,10 +21,7 @@ const request = function (url, options) { 'Content-Type': 'application/json; charset=UTF-8', 'Authorization': token, 'token':token, - 'client':'web', - 'app':'volunteer', - 'appuserid':'', - 'customerId':'' + }, success (response) { // console.log(response);