diff --git a/App.vue b/App.vue
index b04c11b..002ee6f 100644
--- a/App.vue
+++ b/App.vue
@@ -13,7 +13,7 @@
}
-
\ No newline at end of file
diff --git a/pages/user/index.vue b/pages/user/index.vue
index e6398af..5e7b831 100644
--- a/pages/user/index.vue
+++ b/pages/user/index.vue
@@ -77,21 +77,127 @@
url:"/pages/login/login"
})
}
+ function toDetail(type) {
+ let url = ''
+ switch(type){
+ case 1:
+ url= ' '
+ break;
+ case 2: // 我的收藏
+ url= './star'
+ break;
+ case 3: // 设置
+ url= './setting'
+ break;
+ case 4: // 问题反馈
+ url= './feedback'
+ break;
+ default:
+ url= ' '
+ break;
+ }
+ uni.navigateTo({
+ url
+ })
+ }
+ function toUserInfo() {
+ uni.navigateTo({
+ url:"/pages/user/userInfo"
+ })
+ }
-
+
-
+
{{is_login?userinfo.nickname:'未登录'}}
+
登录
+
+
+
+
+
+
+ 已完成事项
+
+
+
+ 未完成事项
+
+
+
+
+
+
+
+ 我的收藏
+
+
+
+
+
+
+
+
+
+ 设置
+
+
+
+
+
+
+
+
+
+ 问题反馈
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/user/setting.vue b/pages/user/setting.vue
new file mode 100644
index 0000000..77e0c67
--- /dev/null
+++ b/pages/user/setting.vue
@@ -0,0 +1,160 @@
+
+
+
+
+
+
+
+
+ 用户协议
+
+
+
+
+
+
+
+
+
+ 隐私政策摘要
+
+
+
+
+
+
+
+
+
+ 个人信息手机清单
+
+
+
+
+
+
+
+
+
+ 关于我们
+
+
+
+
+
+
+
+
+
+ 退出账号
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/user/star.vue b/pages/user/star.vue
new file mode 100644
index 0000000..346b70c
--- /dev/null
+++ b/pages/user/star.vue
@@ -0,0 +1,94 @@
+
+
+
+
+
+
+
+
+
+ {{item.title}}
+ {{item.content}}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/user/userInfo.vue b/pages/user/userInfo.vue
new file mode 100644
index 0000000..caa7e22
--- /dev/null
+++ b/pages/user/userInfo.vue
@@ -0,0 +1,157 @@
+
+
+
+
+
+
+
+
+
+
+
+ 姓名
+
+ {{userinfo?.nickname}}
+
+
+
+
+
+
+
+
+ 电话
+
+ {{userinfo?.phone}}
+
+
+
+
+
+
+
+
+ 手术时间
+
+ 2023-10-1
+
+
+
+
+
+
+
+
+ 手术医院
+
+ 金山医院
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/wikipedia/detail.vue b/pages/wikipedia/detail.vue
new file mode 100644
index 0000000..db77796
--- /dev/null
+++ b/pages/wikipedia/detail.vue
@@ -0,0 +1,58 @@
+
+
+
+
+ {{a_info?.title}}
+
+ 2023-10-5
+
+
+
+
\ No newline at end of file
diff --git a/pages/wikipedia/index.vue b/pages/wikipedia/index.vue
index 02409e3..707ffe7 100644
--- a/pages/wikipedia/index.vue
+++ b/pages/wikipedia/index.vue
@@ -1,8 +1,118 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/unpackage/dist/dev/mp-weixin/api/index.js b/unpackage/dist/dev/mp-weixin/api/index.js
index 8491bb6..396f75b 100644
--- a/unpackage/dist/dev/mp-weixin/api/index.js
+++ b/unpackage/dist/dev/mp-weixin/api/index.js
@@ -13,6 +13,11 @@ const API = {
// 首页
getHospitalList: (data) => api_request.net.GET("/hospital/list", data),
// 获取医院信息
+ // 百科
+ getArticleList: (data) => api_request.net.GET("/article/list", data),
+ // 百科列表
+ getArticleDetail: (data) => api_request.net.GET("/article/" + data.id),
+ // 百科列表
/*
首页信息
*/
diff --git a/unpackage/dist/dev/mp-weixin/app.js b/unpackage/dist/dev/mp-weixin/app.js
index 9901132..ec23a9b 100644
--- a/unpackage/dist/dev/mp-weixin/app.js
+++ b/unpackage/dist/dev/mp-weixin/app.js
@@ -4,8 +4,13 @@ const common_vendor = require("./common/vendor.js");
if (!Math) {
"./pages/index/index.js";
"./pages/wikipedia/index.js";
+ "./pages/wikipedia/detail.js";
"./pages/user/index.js";
+ "./pages/user/userInfo.js";
"./pages/login/login.js";
+ "./pages/user/star.js";
+ "./pages/user/setting.js";
+ "./pages/user/feedback.js";
}
const _sfc_main = {
onLaunch: function() {
@@ -18,7 +23,7 @@ const _sfc_main = {
console.log("App Hide");
}
};
-const App = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-f13b4d11"], ["__file", "F:/项目2023/视力表/vision-record/App.vue"]]);
+const App = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "F:/项目2023/视力表/vision-record/App.vue"]]);
function createApp() {
const app = common_vendor.createSSRApp(App);
app.use(common_vendor.createPinia());
diff --git a/unpackage/dist/dev/mp-weixin/app.json b/unpackage/dist/dev/mp-weixin/app.json
index 55033ec..7053395 100644
--- a/unpackage/dist/dev/mp-weixin/app.json
+++ b/unpackage/dist/dev/mp-weixin/app.json
@@ -2,8 +2,13 @@
"pages": [
"pages/index/index",
"pages/wikipedia/index",
+ "pages/wikipedia/detail",
"pages/user/index",
- "pages/login/login"
+ "pages/user/userInfo",
+ "pages/login/login",
+ "pages/user/star",
+ "pages/user/setting",
+ "pages/user/feedback"
],
"window": {
"navigationBarTextStyle": "white",
diff --git a/unpackage/dist/dev/mp-weixin/app.wxss b/unpackage/dist/dev/mp-weixin/app.wxss
index a7333f8..524a2c5 100644
--- a/unpackage/dist/dev/mp-weixin/app.wxss
+++ b/unpackage/dist/dev/mp-weixin/app.wxss
@@ -556,21 +556,21 @@
/* 透明度 */
/* 文章场景相关 */
/*每个页面公共css */
-.page-bg-gray.data-v-f13b4d11 {
+.page-bg-gray {
background: #f8f8f8;
}
-.page-box.data-v-f13b4d11 {
+.page-box {
/* height: 100%;
overflow: scroll; */
min-height: 100%;
}
-uni-page-body.data-v-f13b4d11, page.data-v-f13b4d11 {
+uni-page-body, page {
height: 100%;
}
-page.data-v-f13b4d11 {
+page {
font-size: 28rpx;
}
-.text-ellipsis-1.data-v-f13b4d11 {
+.text-ellipsis-1 {
/*超出部分省略号 单行*/
overflow: hidden;
text-overflow: ellipsis;
@@ -579,45 +579,45 @@ page.data-v-f13b4d11 {
-webkit-box-orient: vertical;
/* min-height: 38rpx; */
}
-.icon-custom.data-v-f13b4d11 {
+.icon-custom {
width: 32rpx;
height: 32rpx;
}
-.small-text.data-v-f13b4d11 {
+.small-text {
color: gray !important;
font-size: 24rpx;
font-weight: 100 !important;
}
-.bold-text.data-v-f13b4d11 {
+.bold-text {
font-weight: 600;
font-size: 36rpx;
}
-.margin-line.data-v-f13b4d11 {
+.margin-line {
height: 20rpx;
width: 100%;
background-color: #f8f8f8;
}
-.clearCss.data-v-f13b4d11 {
+.clearCss {
opacity: 0 !important;
}
-.shim.data-v-f13b4d11 {
+.shim {
/* 垫片 */
width: 100%;
height: 140rpx;
}
-.big-text.data-v-f13b4d11 {
+.big-text {
font-size: 80rpx;
/* font-weight: 600; */
}
-.red-text.data-v-f13b4d11 {
+.red-text {
color: red;
}
-.line.data-v-f13b4d11 {
+.line {
height: 2rpx;
width: 100%;
background-color: #e7e7e7;
}
-.num-show.data-v-f13b4d11 {
+.num-show {
position: absolute;
width: 40rpx;
height: 40rpx;
@@ -633,40 +633,40 @@ page.data-v-f13b4d11 {
}
/* 通用卡片样式 */
-.u-card.data-v-f13b4d11 {
+.u-card {
background-color: white;
}
-.u-card .u-card-row.data-v-f13b4d11:last-child {
+.u-card .u-card-row:last-child {
border-bottom: unset;
}
-.u-card .u-card-row.data-v-f13b4d11 {
+.u-card .u-card-row {
padding: 40rpx;
border-bottom: 2rpx solid #e7e7e7;
}
-.u-card .u-card-row .u-card-row-btn.data-v-f13b4d11 {
+.u-card .u-card-row .u-card-row-btn {
color: #086EC7;
}
-.u-card .u-card-row .u-card-row-top.data-v-f13b4d11, .u-card .u-card-row .u-card-row-content.data-v-f13b4d11 {
+.u-card .u-card-row .u-card-row-top, .u-card .u-card-row .u-card-row-content {
display: flex;
align-items: center;
justify-content: space-between;
}
-.u-card .u-card-row .u-card-row-top.data-v-f13b4d11 {
+.u-card .u-card-row .u-card-row-top {
padding-bottom: 40rpx;
}
-.u-card .u-card-row .u-card-row-top .u-card-right .u-card-right-btn.data-v-f13b4d11 {
+.u-card .u-card-row .u-card-row-top .u-card-right .u-card-right-btn {
color: #7cc4e8;
}
-.u-card .u-card-row .u-card-row-content .u-card-right.data-v-f13b4d11 {
+.u-card .u-card-row .u-card-row-content .u-card-right {
display: flex;
}
-.popup-content.data-v-f13b4d11 {
+.popup-content {
padding-top: 40rpx;
background-color: white;
border-radius: 20rpx 20rpx 0 0;
overflow: scroll;
}
-.small-btn-css.data-v-f13b4d11 {
+.small-btn-css {
background: #7CC4E8;
color: white;
padding: 6rpx 40rpx;
@@ -676,22 +676,22 @@ page.data-v-f13b4d11 {
margin-left: 10rpx;
position: relative;
}
-.cancel-btn.data-v-f13b4d11 {
+.cancel-btn {
display: block;
margin-top: 20rpx;
}
-.cancel-btn .add-btn.data-v-f13b4d11 {
+.cancel-btn .add-btn {
background: white !important;
color: black !important;
border: 2rpx solid #7cc4e8 !important;
}
-.invalidCss.data-v-f13b4d11 {
+.invalidCss {
background-color: #767676 !important;
}
-.data-v-f13b4d11 .uni-popup__wrapper {
+ .uni-popup__wrapper {
bottom: -34px;
}
-.data-v-f13b4d11 .popup-content {
+ .popup-content {
bottom: -34px;
padding-bottom: 34px;
background-color: white;
diff --git a/unpackage/dist/dev/mp-weixin/common/vendor.js b/unpackage/dist/dev/mp-weixin/common/vendor.js
index b71fcf8..1629c0f 100644
--- a/unpackage/dist/dev/mp-weixin/common/vendor.js
+++ b/unpackage/dist/dev/mp-weixin/common/vendor.js
@@ -7723,6 +7723,8 @@ const createHook = (lifecycle) => (hook, target = getCurrentInstance()) => {
};
const onShow = /* @__PURE__ */ createHook(ON_SHOW);
const onLoad = /* @__PURE__ */ createHook(ON_LOAD);
+const onReachBottom = /* @__PURE__ */ createHook(ON_REACH_BOTTOM);
+const onPullDownRefresh = /* @__PURE__ */ createHook(ON_PULL_DOWN_REFRESH);
exports._export_sfc = _export_sfc;
exports.createPinia = createPinia;
exports.createSSRApp = createSSRApp;
@@ -7734,6 +7736,8 @@ exports.initVueI18n = initVueI18n;
exports.n = n;
exports.o = o;
exports.onLoad = onLoad;
+exports.onPullDownRefresh = onPullDownRefresh;
+exports.onReachBottom = onReachBottom;
exports.onShow = onShow;
exports.p = p;
exports.ref = ref;
diff --git a/unpackage/dist/dev/mp-weixin/config/index.js b/unpackage/dist/dev/mp-weixin/config/index.js
index 6b6825a..c190b65 100644
--- a/unpackage/dist/dev/mp-weixin/config/index.js
+++ b/unpackage/dist/dev/mp-weixin/config/index.js
@@ -1,6 +1,6 @@
"use strict";
const isdev = true;
-const baseUrl = "http://2580c89.r18.cpolar.top/";
+const baseUrl = "https://62bafc5f.r16.cpolar.top";
const shareUrl = "https://h5.gwkjxb.com/";
const teacher_admin_url = "http://teacher.gwkjxb.com/#/login";
const config = {
diff --git a/unpackage/dist/dev/mp-weixin/pages/index/index.wxss b/unpackage/dist/dev/mp-weixin/pages/index/index.wxss
index 1ebea22..e0488ce 100644
--- a/unpackage/dist/dev/mp-weixin/pages/index/index.wxss
+++ b/unpackage/dist/dev/mp-weixin/pages/index/index.wxss
@@ -115,6 +115,7 @@
}
.page-box.data-v-1cf27b2a {
padding: 20rpx;
+ min-height: unset;
}
.content.data-v-1cf27b2a {
display: flex;
diff --git a/unpackage/dist/dev/mp-weixin/pages/user/feedback.js b/unpackage/dist/dev/mp-weixin/pages/user/feedback.js
new file mode 100644
index 0000000..d9a13ae
--- /dev/null
+++ b/unpackage/dist/dev/mp-weixin/pages/user/feedback.js
@@ -0,0 +1,19 @@
+"use strict";
+const common_vendor = require("../../common/vendor.js");
+require("../../store/index.js");
+require("../../api/index.js");
+require("../../api/request.js");
+require("../../config/index.js");
+const _sfc_main = {
+ __name: "feedback",
+ setup(__props) {
+ return (_ctx, _cache) => {
+ return {
+ a: _ctx.txt,
+ b: common_vendor.o(($event) => _ctx.txt = $event.detail.value)
+ };
+ };
+ }
+};
+const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-fff60cbe"], ["__file", "F:/项目2023/视力表/vision-record/pages/user/feedback.vue"]]);
+wx.createPage(MiniProgramPage);
diff --git a/unpackage/dist/dev/mp-weixin/pages/user/feedback.json b/unpackage/dist/dev/mp-weixin/pages/user/feedback.json
new file mode 100644
index 0000000..8ea3560
--- /dev/null
+++ b/unpackage/dist/dev/mp-weixin/pages/user/feedback.json
@@ -0,0 +1,4 @@
+{
+ "navigationBarTitleText": "问题反馈",
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/unpackage/dist/dev/mp-weixin/pages/user/feedback.wxml b/unpackage/dist/dev/mp-weixin/pages/user/feedback.wxml
new file mode 100644
index 0000000..f244b49
--- /dev/null
+++ b/unpackage/dist/dev/mp-weixin/pages/user/feedback.wxml
@@ -0,0 +1 @@
+提交
\ No newline at end of file
diff --git a/unpackage/dist/dev/mp-weixin/pages/user/feedback.wxss b/unpackage/dist/dev/mp-weixin/pages/user/feedback.wxss
new file mode 100644
index 0000000..d80bebe
--- /dev/null
+++ b/unpackage/dist/dev/mp-weixin/pages/user/feedback.wxss
@@ -0,0 +1,50 @@
+/**
+ * 这里是uni-app内置的常用样式变量
+ *
+ * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
+ * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
+ *
+ */
+/**
+ * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
+ *
+ * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
+ */
+/* 颜色变量 */
+/* 行为相关颜色 */
+/* 文字基本颜色 */
+/* 背景颜色 */
+/* 边框颜色 */
+/* 尺寸变量 */
+/* 文字尺寸 */
+/* 图片尺寸 */
+/* Border Radius */
+/* 水平间距 */
+/* 垂直间距 */
+/* 透明度 */
+/* 文章场景相关 */
+.feedbackBox.data-v-fff60cbe {
+ padding: 20rpx;
+}
+.feedbackBox .writeBox.data-v-fff60cbe {
+ border: 2rpx solid #e2e2e2;
+ border-radius: 10rpx;
+}
+.feedbackBox .writeBox textarea.data-v-fff60cbe {
+ width: 100%;
+ padding: 20rpx;
+}
+.feedbackBox .btn-part.data-v-fff60cbe {
+ position: fixed;
+ bottom: 40rpx;
+ width: 100%;
+ text-align: center;
+}
+.feedbackBox .btn-part .btn.data-v-fff60cbe {
+ display: inline-block;
+ background-color: #26758d;
+ color: white;
+ padding: 20rpx 40rpx;
+ width: 50%;
+ border-radius: 20rpx;
+}
\ No newline at end of file
diff --git a/unpackage/dist/dev/mp-weixin/pages/user/index.js b/unpackage/dist/dev/mp-weixin/pages/user/index.js
index 8fa3115..b142c37 100644
--- a/unpackage/dist/dev/mp-weixin/pages/user/index.js
+++ b/unpackage/dist/dev/mp-weixin/pages/user/index.js
@@ -5,6 +5,14 @@ const utils_index = require("../../utils/index.js");
require("../../api/index.js");
require("../../api/request.js");
require("../../config/index.js");
+if (!Array) {
+ const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
+ _easycom_uni_icons2();
+}
+const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
+if (!Math) {
+ _easycom_uni_icons();
+}
const _sfc_main = {
__name: "index",
setup(__props) {
@@ -26,14 +34,96 @@ const _sfc_main = {
url: "/pages/login/login"
});
}
+ function toDetail(type) {
+ let url = "";
+ switch (type) {
+ case 1:
+ url = " ";
+ break;
+ case 2:
+ url = "./star";
+ break;
+ case 3:
+ url = "./setting";
+ break;
+ case 4:
+ url = "./feedback";
+ break;
+ default:
+ url = " ";
+ break;
+ }
+ common_vendor.index.navigateTo({
+ url
+ });
+ }
+ function toUserInfo() {
+ common_vendor.index.navigateTo({
+ url: "/pages/user/userInfo"
+ });
+ }
return (_ctx, _cache) => {
return common_vendor.e({
a: is_login.value ? avatar.value : "../../static/avatar.png",
b: common_vendor.t(is_login.value ? userinfo.value.nickname : "未登录"),
- c: !is_login.value
+ c: is_login.value
+ }, is_login.value ? {
+ d: common_vendor.p({
+ type: "forward",
+ color: "white",
+ size: "20"
+ })
+ } : {}, {
+ e: common_vendor.o(toUserInfo),
+ f: !is_login.value
}, !is_login.value ? {
- d: common_vendor.o(toLogin)
- } : {});
+ g: common_vendor.o(toLogin)
+ } : {
+ h: common_vendor.p({
+ type: "calendar",
+ color: "gray",
+ size: "30"
+ }),
+ i: common_vendor.p({
+ type: "notification",
+ color: "gray",
+ size: "30"
+ }),
+ j: common_vendor.o(($event) => toDetail(1)),
+ k: common_vendor.p({
+ type: "star",
+ color: "gray",
+ size: "30"
+ }),
+ l: common_vendor.p({
+ type: "forward",
+ color: "gray",
+ size: "20"
+ }),
+ m: common_vendor.o(($event) => toDetail(2)),
+ n: common_vendor.p({
+ type: "gear",
+ color: "gray",
+ size: "30"
+ }),
+ o: common_vendor.p({
+ type: "forward",
+ color: "gray",
+ size: "20"
+ }),
+ p: common_vendor.o(($event) => toDetail(3)),
+ q: common_vendor.p({
+ type: "chatbubble",
+ color: "gray",
+ size: "30"
+ }),
+ r: common_vendor.p({
+ type: "forward",
+ color: "gray",
+ size: "20"
+ }),
+ s: common_vendor.o(($event) => toDetail(4))
+ });
};
}
};
diff --git a/unpackage/dist/dev/mp-weixin/pages/user/index.json b/unpackage/dist/dev/mp-weixin/pages/user/index.json
index c0a8251..67bbdec 100644
--- a/unpackage/dist/dev/mp-weixin/pages/user/index.json
+++ b/unpackage/dist/dev/mp-weixin/pages/user/index.json
@@ -1,4 +1,6 @@
{
"navigationBarTitleText": "我的",
- "usingComponents": {}
+ "usingComponents": {
+ "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons"
+ }
}
\ No newline at end of file
diff --git a/unpackage/dist/dev/mp-weixin/pages/user/index.wxml b/unpackage/dist/dev/mp-weixin/pages/user/index.wxml
index 2409198..5c18ebd 100644
--- a/unpackage/dist/dev/mp-weixin/pages/user/index.wxml
+++ b/unpackage/dist/dev/mp-weixin/pages/user/index.wxml
@@ -1 +1 @@
-{{b}}登录
\ No newline at end of file
+{{b}}登录已完成事项未完成事项 我的收藏 设置 问题反馈
\ No newline at end of file
diff --git a/unpackage/dist/dev/mp-weixin/pages/user/index.wxss b/unpackage/dist/dev/mp-weixin/pages/user/index.wxss
index 12517e9..d15b4ae 100644
--- a/unpackage/dist/dev/mp-weixin/pages/user/index.wxss
+++ b/unpackage/dist/dev/mp-weixin/pages/user/index.wxss
@@ -23,6 +23,33 @@
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
+.rbc-content-left-box.data-v-79e6a490 {
+ display: flex;
+ align-items: center;
+}
+.rbc-content-left-box uni-icons.data-v-79e6a490 {
+ margin-right: 20rpx;
+}
+.row-box.data-v-79e6a490 {
+ padding: 20rpx 0;
+}
+.row-box .rb-card.data-v-79e6a490 {
+ padding: 20rpx;
+ background: white;
+}
+.row-box .rb-card .rbc-content-box.data-v-79e6a490 {
+ margin-top: 10rpx;
+}
+.row-box .rb-card .rbc-content-box .rbc-content-row.data-v-79e6a490 {
+ width: 50%;
+ text-align: center;
+ border-radius: 10rpx;
+}
+.row-box .rb-card .rbc-content.data-v-79e6a490 {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+}
.btn-box.data-v-79e6a490 {
text-align: center;
margin-top: 40rpx;
@@ -36,6 +63,7 @@
width: 50%;
}
.userinfo-box.data-v-79e6a490 {
+ position: relative;
color: white;
background-color: #26758d;
display: flex;
@@ -48,4 +76,7 @@
border-radius: 50%;
background: white;
margin-right: 20rpx;
+}
+.user-box.data-v-79e6a490 {
+ background: #f6f6f6;
}
\ No newline at end of file
diff --git a/unpackage/dist/dev/mp-weixin/pages/user/setting.js b/unpackage/dist/dev/mp-weixin/pages/user/setting.js
new file mode 100644
index 0000000..da8c280
--- /dev/null
+++ b/unpackage/dist/dev/mp-weixin/pages/user/setting.js
@@ -0,0 +1,63 @@
+"use strict";
+const common_vendor = require("../../common/vendor.js");
+require("../../store/index.js");
+require("../../api/index.js");
+require("../../api/request.js");
+require("../../config/index.js");
+if (!Array) {
+ const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
+ _easycom_uni_icons2();
+}
+const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
+if (!Math) {
+ _easycom_uni_icons();
+}
+const _sfc_main = {
+ __name: "setting",
+ setup(__props) {
+ common_vendor.onLoad(() => {
+ userinfo.value = JSON.parse(common_vendor.index.getStorageSync("userInfo"));
+ avatar.value = common_vendor.index.getStorageSync("avatarUrl");
+ });
+ const userinfo = common_vendor.ref(null);
+ const avatar = common_vendor.ref(null);
+ function toDetail(type) {
+ }
+ return (_ctx, _cache) => {
+ return {
+ a: common_vendor.p({
+ type: "forward",
+ color: "gray",
+ size: "20"
+ }),
+ b: common_vendor.o(($event) => toDetail()),
+ c: common_vendor.p({
+ type: "forward",
+ color: "gray",
+ size: "20"
+ }),
+ d: common_vendor.o(($event) => toDetail()),
+ e: common_vendor.p({
+ type: "forward",
+ color: "gray",
+ size: "20"
+ }),
+ f: common_vendor.o(($event) => toDetail()),
+ g: common_vendor.p({
+ type: "forward",
+ color: "gray",
+ size: "20"
+ }),
+ h: common_vendor.o(($event) => toDetail()),
+ i: common_vendor.p({
+ type: "forward",
+ color: "gray",
+ size: "20"
+ }),
+ j: common_vendor.o(($event) => toDetail())
+ };
+ };
+ }
+};
+const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-806b15dc"], ["__file", "F:/项目2023/视力表/vision-record/pages/user/setting.vue"]]);
+wx.createPage(MiniProgramPage);
diff --git a/unpackage/dist/dev/mp-weixin/pages/user/setting.json b/unpackage/dist/dev/mp-weixin/pages/user/setting.json
new file mode 100644
index 0000000..463b47f
--- /dev/null
+++ b/unpackage/dist/dev/mp-weixin/pages/user/setting.json
@@ -0,0 +1,6 @@
+{
+ "navigationBarTitleText": "设置",
+ "usingComponents": {
+ "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons"
+ }
+}
\ No newline at end of file
diff --git a/unpackage/dist/dev/mp-weixin/pages/user/setting.wxml b/unpackage/dist/dev/mp-weixin/pages/user/setting.wxml
new file mode 100644
index 0000000..1a758f7
--- /dev/null
+++ b/unpackage/dist/dev/mp-weixin/pages/user/setting.wxml
@@ -0,0 +1 @@
+ 用户协议 隐私政策摘要 个人信息手机清单 关于我们 退出账号
\ No newline at end of file
diff --git a/unpackage/dist/dev/mp-weixin/pages/user/setting.wxss b/unpackage/dist/dev/mp-weixin/pages/user/setting.wxss
new file mode 100644
index 0000000..7217f36
--- /dev/null
+++ b/unpackage/dist/dev/mp-weixin/pages/user/setting.wxss
@@ -0,0 +1,103 @@
+/**
+ * 这里是uni-app内置的常用样式变量
+ *
+ * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
+ * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
+ *
+ */
+/**
+ * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
+ *
+ * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
+ */
+/* 颜色变量 */
+/* 行为相关颜色 */
+/* 文字基本颜色 */
+/* 背景颜色 */
+/* 边框颜色 */
+/* 尺寸变量 */
+/* 文字尺寸 */
+/* 图片尺寸 */
+/* Border Radius */
+/* 水平间距 */
+/* 垂直间距 */
+/* 透明度 */
+/* 文章场景相关 */
+.avatar-box.data-v-806b15dc {
+ display: flex;
+ align-items: center;
+ justify-content: space-around;
+ width: 100%;
+ padding: 20rpx 0;
+ background: #26758d;
+}
+.avatar-box image.data-v-806b15dc {
+ width: 160rpx;
+ height: 160rpx;
+ background-color: white;
+ border-radius: 50%;
+}
+.rbc-content-right.data-v-806b15dc {
+ display: flex;
+ align-items: center;
+ background: white;
+ border-radius: 50%;
+}
+.rbc-content-left-box.data-v-806b15dc {
+ display: flex;
+ align-items: center;
+}
+.rbc-content-left-box uni-icons.data-v-806b15dc {
+ margin-right: 20rpx;
+}
+.row-box.data-v-806b15dc {
+ padding: 20rpx 0;
+}
+.row-box .rb-card.data-v-806b15dc {
+ padding: 20rpx;
+ background: white;
+ margin-bottom: 2rpx;
+}
+.row-box .rb-card .rbc-content-box.data-v-806b15dc {
+ margin-top: 10rpx;
+}
+.row-box .rb-card .rbc-content-box .rbc-content-row.data-v-806b15dc {
+ width: 50%;
+ text-align: center;
+ border-radius: 10rpx;
+}
+.row-box .rb-card .rbc-content.data-v-806b15dc {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+}
+.btn-box.data-v-806b15dc {
+ text-align: center;
+ margin-top: 40rpx;
+}
+.btn-box .btn.data-v-806b15dc {
+ display: inline-block;
+ padding: 10px 20px;
+ background: #e2e2e2;
+ color: #26758d;
+ border-radius: 10px;
+ width: 50%;
+}
+.userinfo-box.data-v-806b15dc {
+ position: relative;
+ color: white;
+ background-color: #26758d;
+ display: flex;
+ align-items: center;
+ padding: 40rpx 20rpx;
+}
+.userinfo-box image.data-v-806b15dc {
+ width: 120rpx;
+ height: 120rpx;
+ border-radius: 50%;
+ background: white;
+ margin-right: 20rpx;
+}
+.user-box.data-v-806b15dc {
+ background: #f6f6f6;
+}
\ No newline at end of file
diff --git a/unpackage/dist/dev/mp-weixin/pages/user/star.js b/unpackage/dist/dev/mp-weixin/pages/user/star.js
new file mode 100644
index 0000000..6ff7996
--- /dev/null
+++ b/unpackage/dist/dev/mp-weixin/pages/user/star.js
@@ -0,0 +1,59 @@
+"use strict";
+const common_vendor = require("../../common/vendor.js");
+require("../../store/index.js");
+require("../../api/index.js");
+require("../../api/request.js");
+require("../../config/index.js");
+const _sfc_main = {
+ __name: "star",
+ setup(__props) {
+ common_vendor.onPullDownRefresh(() => {
+ });
+ common_vendor.onReachBottom(() => {
+ });
+ const list = common_vendor.ref([
+ {
+ id: 1,
+ cover_img: "https://gwjxb.oss-cn-chengdu.aliyuncs.com/logo.png",
+ title: "金秋相逢 共叙合作",
+ reading_num: 100,
+ content: `
+ 新华社北京10月18日电 金秋时节,北京再迎盛会:第三届“一带一路”国际合作高峰论坛隆重举行。
+ 春发其华,秋收其实。
+ 共建“一带一路”走过了第一个蓬勃十年,正值风华正茂,务当昂扬奋进,奔向下一个金色十年!
+ `
+ },
+ {
+ id: 2,
+ cover_img: "https://ms.bdimg.com/pacific/0/pic/1083217647_-478899572.png?x=0&y=0&h=340&w=510&vh=340.00&vw=510.00&oh=340.00&ow=510.00",
+ title: "金秋相逢 共叙合作",
+ reading_num: 100,
+ content: `
+ 新华社北京10月18日电 金秋时节,北京再迎盛会:第三届“一带一路”国际合作高峰论坛隆重举行。
+ 春发其华,秋收其实。
+ 共建“一带一路”走过了第一个蓬勃十年,正值风华正茂,务当昂扬奋进,奔向下一个金色十年!
+ `
+ }
+ ]);
+ function toDetail(item) {
+ let info = encodeURIComponent(JSON.stringify(item));
+ common_vendor.index.navigateTo({
+ url: "/pages/wikipedia/detail?info=" + info + "&id=" + item.id
+ });
+ }
+ return (_ctx, _cache) => {
+ return {
+ a: common_vendor.f(list.value, (item, i, i0) => {
+ return {
+ a: item.cover_img,
+ b: common_vendor.t(item.title),
+ c: common_vendor.t(item.content),
+ d: common_vendor.o(($event) => toDetail(item))
+ };
+ })
+ };
+ };
+ }
+};
+const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-7926ce3c"], ["__file", "F:/项目2023/视力表/vision-record/pages/user/star.vue"]]);
+wx.createPage(MiniProgramPage);
diff --git a/unpackage/dist/dev/mp-weixin/pages/user/star.json b/unpackage/dist/dev/mp-weixin/pages/user/star.json
new file mode 100644
index 0000000..a894e29
--- /dev/null
+++ b/unpackage/dist/dev/mp-weixin/pages/user/star.json
@@ -0,0 +1,5 @@
+{
+ "navigationBarTitleText": "我的收藏",
+ "enablePullDownRefresh": true,
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/unpackage/dist/dev/mp-weixin/pages/user/star.wxml b/unpackage/dist/dev/mp-weixin/pages/user/star.wxml
new file mode 100644
index 0000000..cf15637
--- /dev/null
+++ b/unpackage/dist/dev/mp-weixin/pages/user/star.wxml
@@ -0,0 +1 @@
+{{item.b}}{{item.c}}
\ No newline at end of file
diff --git a/unpackage/dist/dev/mp-weixin/pages/user/star.wxss b/unpackage/dist/dev/mp-weixin/pages/user/star.wxss
new file mode 100644
index 0000000..7336247
--- /dev/null
+++ b/unpackage/dist/dev/mp-weixin/pages/user/star.wxss
@@ -0,0 +1,46 @@
+/**
+ * 这里是uni-app内置的常用样式变量
+ *
+ * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
+ * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
+ *
+ */
+/**
+ * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
+ *
+ * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
+ */
+/* 颜色变量 */
+/* 行为相关颜色 */
+/* 文字基本颜色 */
+/* 背景颜色 */
+/* 边框颜色 */
+/* 尺寸变量 */
+/* 文字尺寸 */
+/* 图片尺寸 */
+/* Border Radius */
+/* 水平间距 */
+/* 垂直间距 */
+/* 透明度 */
+/* 文章场景相关 */
+.starBox .list-box .lb-card.data-v-7926ce3c {
+ display: flex;
+ align-items: center;
+ padding: 20rpx;
+ border-bottom: 2rpx solid #eaeaea;
+}
+.starBox .list-box .lb-card .lb-left image.data-v-7926ce3c {
+ width: 120rpx;
+ height: 120rpx;
+ margin-right: 20rpx;
+}
+.starBox .list-box .lb-card .lb-right.data-v-7926ce3c {
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+}
+.starBox .list-box .lb-card .lb-right .lb-title.data-v-7926ce3c {
+ font-weight: 900;
+ font-size: 32rpx;
+ margin-bottom: 20rpx;
+}
\ No newline at end of file
diff --git a/unpackage/dist/dev/mp-weixin/pages/user/userInfo.js b/unpackage/dist/dev/mp-weixin/pages/user/userInfo.js
new file mode 100644
index 0000000..6af6953
--- /dev/null
+++ b/unpackage/dist/dev/mp-weixin/pages/user/userInfo.js
@@ -0,0 +1,82 @@
+"use strict";
+const common_vendor = require("../../common/vendor.js");
+require("../../store/index.js");
+require("../../api/index.js");
+require("../../api/request.js");
+require("../../config/index.js");
+if (!Array) {
+ const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
+ _easycom_uni_icons2();
+}
+const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
+if (!Math) {
+ _easycom_uni_icons();
+}
+const _sfc_main = {
+ __name: "userInfo",
+ setup(__props) {
+ common_vendor.onLoad(() => {
+ userinfo.value = JSON.parse(common_vendor.index.getStorageSync("userInfo"));
+ console.log(userinfo.value);
+ avatar.value = common_vendor.index.getStorageSync("avatarUrl");
+ });
+ const userinfo = common_vendor.ref(null);
+ const avatar = common_vendor.ref(null);
+ function toDetail(type) {
+ }
+ return (_ctx, _cache) => {
+ var _a, _b;
+ return {
+ a: avatar.value,
+ b: common_vendor.p({
+ type: "person",
+ color: "gray",
+ size: "26"
+ }),
+ c: common_vendor.t((_a = userinfo.value) == null ? void 0 : _a.nickname),
+ d: common_vendor.p({
+ type: "forward",
+ color: "gray",
+ size: "20"
+ }),
+ e: common_vendor.o(($event) => toDetail()),
+ f: common_vendor.p({
+ type: "phone",
+ color: "gray",
+ size: "26"
+ }),
+ g: common_vendor.t((_b = userinfo.value) == null ? void 0 : _b.phone),
+ h: common_vendor.p({
+ type: "forward",
+ color: "gray",
+ size: "20"
+ }),
+ i: common_vendor.o(($event) => toDetail()),
+ j: common_vendor.p({
+ type: "calendar",
+ color: "gray",
+ size: "26"
+ }),
+ k: common_vendor.p({
+ type: "forward",
+ color: "gray",
+ size: "20"
+ }),
+ l: common_vendor.o(($event) => toDetail()),
+ m: common_vendor.p({
+ type: "paperplane",
+ color: "gray",
+ size: "26"
+ }),
+ n: common_vendor.p({
+ type: "forward",
+ color: "gray",
+ size: "20"
+ }),
+ o: common_vendor.o(($event) => toDetail())
+ };
+ };
+ }
+};
+const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-2f34225a"], ["__file", "F:/项目2023/视力表/vision-record/pages/user/userInfo.vue"]]);
+wx.createPage(MiniProgramPage);
diff --git a/unpackage/dist/dev/mp-weixin/pages/user/userInfo.json b/unpackage/dist/dev/mp-weixin/pages/user/userInfo.json
new file mode 100644
index 0000000..d82442e
--- /dev/null
+++ b/unpackage/dist/dev/mp-weixin/pages/user/userInfo.json
@@ -0,0 +1,6 @@
+{
+ "navigationBarTitleText": "个人资料",
+ "usingComponents": {
+ "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons"
+ }
+}
\ No newline at end of file
diff --git a/unpackage/dist/dev/mp-weixin/pages/user/userInfo.wxml b/unpackage/dist/dev/mp-weixin/pages/user/userInfo.wxml
new file mode 100644
index 0000000..600027e
--- /dev/null
+++ b/unpackage/dist/dev/mp-weixin/pages/user/userInfo.wxml
@@ -0,0 +1 @@
+ 姓名{{c}} 电话{{g}} 手术时间 2023-10-1 手术医院 金山医院
\ No newline at end of file
diff --git a/unpackage/dist/dev/mp-weixin/pages/user/userInfo.wxss b/unpackage/dist/dev/mp-weixin/pages/user/userInfo.wxss
new file mode 100644
index 0000000..8945b50
--- /dev/null
+++ b/unpackage/dist/dev/mp-weixin/pages/user/userInfo.wxss
@@ -0,0 +1,103 @@
+/**
+ * 这里是uni-app内置的常用样式变量
+ *
+ * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
+ * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
+ *
+ */
+/**
+ * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
+ *
+ * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
+ */
+/* 颜色变量 */
+/* 行为相关颜色 */
+/* 文字基本颜色 */
+/* 背景颜色 */
+/* 边框颜色 */
+/* 尺寸变量 */
+/* 文字尺寸 */
+/* 图片尺寸 */
+/* Border Radius */
+/* 水平间距 */
+/* 垂直间距 */
+/* 透明度 */
+/* 文章场景相关 */
+.avatar-box.data-v-2f34225a {
+ display: flex;
+ align-items: center;
+ justify-content: space-around;
+ width: 100%;
+ padding: 20rpx 0;
+ background: #26758d;
+}
+.avatar-box image.data-v-2f34225a {
+ width: 160rpx;
+ height: 160rpx;
+ background-color: white;
+ border-radius: 50%;
+}
+.rbc-content-right.data-v-2f34225a {
+ display: flex;
+ align-items: center;
+ background: white;
+ border-radius: 50%;
+}
+.rbc-content-left-box.data-v-2f34225a {
+ display: flex;
+ align-items: center;
+}
+.rbc-content-left-box uni-icons.data-v-2f34225a {
+ margin-right: 20rpx;
+}
+.row-box.data-v-2f34225a {
+ padding: 20rpx 0;
+}
+.row-box .rb-card.data-v-2f34225a {
+ padding: 20rpx;
+ background: white;
+ margin-bottom: 2rpx;
+}
+.row-box .rb-card .rbc-content-box.data-v-2f34225a {
+ margin-top: 10rpx;
+}
+.row-box .rb-card .rbc-content-box .rbc-content-row.data-v-2f34225a {
+ width: 50%;
+ text-align: center;
+ border-radius: 10rpx;
+}
+.row-box .rb-card .rbc-content.data-v-2f34225a {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+}
+.btn-box.data-v-2f34225a {
+ text-align: center;
+ margin-top: 40rpx;
+}
+.btn-box .btn.data-v-2f34225a {
+ display: inline-block;
+ padding: 10px 20px;
+ background: #e2e2e2;
+ color: #26758d;
+ border-radius: 10px;
+ width: 50%;
+}
+.userinfo-box.data-v-2f34225a {
+ position: relative;
+ color: white;
+ background-color: #26758d;
+ display: flex;
+ align-items: center;
+ padding: 40rpx 20rpx;
+}
+.userinfo-box image.data-v-2f34225a {
+ width: 120rpx;
+ height: 120rpx;
+ border-radius: 50%;
+ background: white;
+ margin-right: 20rpx;
+}
+.user-box.data-v-2f34225a {
+ background: #f6f6f6;
+}
\ No newline at end of file
diff --git a/unpackage/dist/dev/mp-weixin/pages/wikipedia/detail.js b/unpackage/dist/dev/mp-weixin/pages/wikipedia/detail.js
new file mode 100644
index 0000000..153fc6a
--- /dev/null
+++ b/unpackage/dist/dev/mp-weixin/pages/wikipedia/detail.js
@@ -0,0 +1,38 @@
+"use strict";
+const common_vendor = require("../../common/vendor.js");
+require("../../store/index.js");
+const api_index = require("../../api/index.js");
+require("../../api/request.js");
+require("../../config/index.js");
+const _sfc_main = {
+ __name: "detail",
+ setup(__props) {
+ common_vendor.onLoad((e) => {
+ console.log(e);
+ a_info.value = JSON.parse(decodeURIComponent(e.info));
+ if (!e.id) {
+ common_vendor.index.showToast({
+ icon: "error",
+ title: "错误",
+ duration: 2e3
+ });
+ a_info.value = null;
+ return;
+ }
+ getDetail(e.id);
+ });
+ const a_info = common_vendor.ref(null);
+ async function getDetail(id) {
+ await api_index.API.getArticleDetail({ id });
+ }
+ return (_ctx, _cache) => {
+ var _a, _b;
+ return {
+ a: common_vendor.t((_a = a_info.value) == null ? void 0 : _a.title),
+ b: (_b = a_info.value) == null ? void 0 : _b.content
+ };
+ };
+ }
+};
+const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-6ba0469a"], ["__file", "F:/项目2023/视力表/vision-record/pages/wikipedia/detail.vue"]]);
+wx.createPage(MiniProgramPage);
diff --git a/unpackage/dist/dev/mp-weixin/pages/wikipedia/detail.json b/unpackage/dist/dev/mp-weixin/pages/wikipedia/detail.json
new file mode 100644
index 0000000..1bec688
--- /dev/null
+++ b/unpackage/dist/dev/mp-weixin/pages/wikipedia/detail.json
@@ -0,0 +1,4 @@
+{
+ "navigationBarTitleText": "文章详情",
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/unpackage/dist/dev/mp-weixin/pages/wikipedia/detail.wxml b/unpackage/dist/dev/mp-weixin/pages/wikipedia/detail.wxml
new file mode 100644
index 0000000..0cfa6d2
--- /dev/null
+++ b/unpackage/dist/dev/mp-weixin/pages/wikipedia/detail.wxml
@@ -0,0 +1 @@
+{{a}}2023-10-5
\ No newline at end of file
diff --git a/unpackage/dist/dev/mp-weixin/pages/wikipedia/detail.wxss b/unpackage/dist/dev/mp-weixin/pages/wikipedia/detail.wxss
new file mode 100644
index 0000000..570f824
--- /dev/null
+++ b/unpackage/dist/dev/mp-weixin/pages/wikipedia/detail.wxss
@@ -0,0 +1,41 @@
+/**
+ * 这里是uni-app内置的常用样式变量
+ *
+ * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
+ * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
+ *
+ */
+/**
+ * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
+ *
+ * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
+ */
+/* 颜色变量 */
+/* 行为相关颜色 */
+/* 文字基本颜色 */
+/* 背景颜色 */
+/* 边框颜色 */
+/* 尺寸变量 */
+/* 文字尺寸 */
+/* 图片尺寸 */
+/* Border Radius */
+/* 水平间距 */
+/* 垂直间距 */
+/* 透明度 */
+/* 文章场景相关 */
+.detailBox.data-v-6ba0469a {
+ padding: 40rpx;
+}
+.detailBox .more-info.data-v-6ba0469a {
+ text-align: right;
+ margin-bottom: 10rpx;
+}
+.detailBox .title.data-v-6ba0469a {
+ font-size: 32rpx;
+ font-weight: 900;
+ margin-bottom: 20rpx;
+ text-align: center;
+}
+.detailBox .d-content.data-v-6ba0469a {
+ line-height: 50rpx;
+}
\ No newline at end of file
diff --git a/unpackage/dist/dev/mp-weixin/pages/wikipedia/index.js b/unpackage/dist/dev/mp-weixin/pages/wikipedia/index.js
index a2e0ca5..3afcb7e 100644
--- a/unpackage/dist/dev/mp-weixin/pages/wikipedia/index.js
+++ b/unpackage/dist/dev/mp-weixin/pages/wikipedia/index.js
@@ -1,8 +1,77 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
-const _sfc_main = {};
-function _sfc_render(_ctx, _cache) {
- return {};
-}
-const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "F:/项目2023/视力表/vision-record/pages/wikipedia/index.vue"]]);
+require("../../store/index.js");
+const api_index = require("../../api/index.js");
+require("../../api/request.js");
+require("../../config/index.js");
+const _sfc_main = {
+ __name: "index",
+ setup(__props) {
+ common_vendor.onLoad(() => {
+ getList();
+ });
+ common_vendor.onPullDownRefresh(() => {
+ init();
+ getList();
+ });
+ common_vendor.onReachBottom(() => {
+ queryParams.value.page++;
+ getList();
+ });
+ const queryParams = common_vendor.ref({
+ page: 1,
+ pageSize: 10
+ });
+ const list = common_vendor.ref([
+ {
+ id: 1,
+ cover_img: "https://gwjxb.oss-cn-chengdu.aliyuncs.com/logo.png",
+ title: "金秋相逢 共叙合作",
+ reading_num: 100,
+ content: `
+ 新华社北京10月18日电 金秋时节,北京再迎盛会:第三届“一带一路”国际合作高峰论坛隆重举行。
+ 春发其华,秋收其实。
+ 共建“一带一路”走过了第一个蓬勃十年,正值风华正茂,务当昂扬奋进,奔向下一个金色十年!
+ `
+ },
+ {
+ id: 2,
+ cover_img: "https://ms.bdimg.com/pacific/0/pic/1083217647_-478899572.png?x=0&y=0&h=340&w=510&vh=340.00&vw=510.00&oh=340.00&ow=510.00",
+ title: "金秋相逢 共叙合作",
+ reading_num: 100,
+ content: `
+ 新华社北京10月18日电 金秋时节,北京再迎盛会:第三届“一带一路”国际合作高峰论坛隆重举行。
+ 春发其华,秋收其实。
+ 共建“一带一路”走过了第一个蓬勃十年,正值风华正茂,务当昂扬奋进,奔向下一个金色十年!
+ `
+ }
+ ]);
+ function init() {
+ queryParams.page = 1;
+ queryParams.pageSize = 10;
+ }
+ async function getList() {
+ await api_index.API.getArticleList(queryParams.value);
+ }
+ function toDetail(item) {
+ let info = encodeURIComponent(JSON.stringify(item));
+ common_vendor.index.navigateTo({
+ url: "./detail?info=" + info + "&id=" + item.id
+ });
+ }
+ return (_ctx, _cache) => {
+ return {
+ a: common_vendor.f(list.value, (item, i, i0) => {
+ return {
+ a: item.cover_img,
+ b: common_vendor.t(item.title),
+ c: common_vendor.t(item.content),
+ d: common_vendor.o(($event) => toDetail(item))
+ };
+ })
+ };
+ };
+ }
+};
+const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-e5c3f72c"], ["__file", "F:/项目2023/视力表/vision-record/pages/wikipedia/index.vue"]]);
wx.createPage(MiniProgramPage);
diff --git a/unpackage/dist/dev/mp-weixin/pages/wikipedia/index.json b/unpackage/dist/dev/mp-weixin/pages/wikipedia/index.json
index 2dd0e0c..e9891ef 100644
--- a/unpackage/dist/dev/mp-weixin/pages/wikipedia/index.json
+++ b/unpackage/dist/dev/mp-weixin/pages/wikipedia/index.json
@@ -1,4 +1,5 @@
{
"navigationBarTitleText": "百科",
+ "enablePullDownRefresh": true,
"usingComponents": {}
}
\ No newline at end of file
diff --git a/unpackage/dist/dev/mp-weixin/pages/wikipedia/index.wxml b/unpackage/dist/dev/mp-weixin/pages/wikipedia/index.wxml
index e69de29..2b61ec3 100644
--- a/unpackage/dist/dev/mp-weixin/pages/wikipedia/index.wxml
+++ b/unpackage/dist/dev/mp-weixin/pages/wikipedia/index.wxml
@@ -0,0 +1 @@
+{{item.b}}{{item.c}}
\ No newline at end of file
diff --git a/unpackage/dist/dev/mp-weixin/pages/wikipedia/index.wxss b/unpackage/dist/dev/mp-weixin/pages/wikipedia/index.wxss
index e69de29..aea596d 100644
--- a/unpackage/dist/dev/mp-weixin/pages/wikipedia/index.wxss
+++ b/unpackage/dist/dev/mp-weixin/pages/wikipedia/index.wxss
@@ -0,0 +1,46 @@
+/**
+ * 这里是uni-app内置的常用样式变量
+ *
+ * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
+ * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
+ *
+ */
+/**
+ * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
+ *
+ * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
+ */
+/* 颜色变量 */
+/* 行为相关颜色 */
+/* 文字基本颜色 */
+/* 背景颜色 */
+/* 边框颜色 */
+/* 尺寸变量 */
+/* 文字尺寸 */
+/* 图片尺寸 */
+/* Border Radius */
+/* 水平间距 */
+/* 垂直间距 */
+/* 透明度 */
+/* 文章场景相关 */
+.articleBox .list-box .lb-card.data-v-e5c3f72c {
+ display: flex;
+ align-items: center;
+ padding: 20rpx;
+ border-bottom: 2rpx solid #eaeaea;
+}
+.articleBox .list-box .lb-card .lb-left image.data-v-e5c3f72c {
+ width: 120rpx;
+ height: 120rpx;
+ margin-right: 20rpx;
+}
+.articleBox .list-box .lb-card .lb-right.data-v-e5c3f72c {
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+}
+.articleBox .list-box .lb-card .lb-right .lb-title.data-v-e5c3f72c {
+ font-weight: 900;
+ font-size: 32rpx;
+ margin-bottom: 20rpx;
+}
\ No newline at end of file