新增页面
parent
aa47166ae7
commit
12c2e7667e
@ -0,0 +1,44 @@
|
|||||||
|
<script setup>
|
||||||
|
import { onLoad } from "@dcloudio/uni-app"
|
||||||
|
// import mySwiper from "@/components/mySwiper.vue"
|
||||||
|
import {ref,onMounted,nextTick} from "vue"
|
||||||
|
import {useStore} from '@/store/index.js'
|
||||||
|
import api from "@/api/index.js"
|
||||||
|
</script>
|
||||||
|
<template>
|
||||||
|
<view class="feedbackBox">
|
||||||
|
<view class="writeBox">
|
||||||
|
<textarea class="textarea" v-model="txt"></textarea>
|
||||||
|
</view>
|
||||||
|
<view class="btn-part">
|
||||||
|
<view class="btn">提交</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.feedbackBox{
|
||||||
|
padding: 20rpx;
|
||||||
|
.writeBox{
|
||||||
|
border: 2rpx solid #e2e2e2;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
textarea{
|
||||||
|
width: 100%;
|
||||||
|
padding: 20rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.btn-part{
|
||||||
|
position: fixed;
|
||||||
|
bottom: 40rpx;
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
.btn{
|
||||||
|
display: inline-block;
|
||||||
|
background-color: #26758d;
|
||||||
|
color: white;
|
||||||
|
padding: 20rpx 40rpx;
|
||||||
|
width: 50%;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
@ -0,0 +1,160 @@
|
|||||||
|
<script setup>
|
||||||
|
import { onLoad } from "@dcloudio/uni-app"
|
||||||
|
// import mySwiper from "@/components/mySwiper.vue"
|
||||||
|
import {ref,onMounted,nextTick} from "vue"
|
||||||
|
import {useStore} from '@/store/index.js'
|
||||||
|
import api from "@/api/index.js"
|
||||||
|
onLoad(() => {
|
||||||
|
// console.log(useStore.userInfo)
|
||||||
|
userinfo.value = JSON.parse(uni.getStorageSync('userInfo'))
|
||||||
|
// console.log(userinfo.value)
|
||||||
|
avatar.value = uni.getStorageSync('avatarUrl')
|
||||||
|
})
|
||||||
|
const userinfo = ref(null)
|
||||||
|
const avatar = ref(null)
|
||||||
|
// 方法
|
||||||
|
function toDetail(type) {
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<template>
|
||||||
|
<view class="userInfoBox page-box page-bg-gray">
|
||||||
|
<view class="row-box">
|
||||||
|
<view class="rb-card" @tap="toDetail(1)">
|
||||||
|
<view class="rbc-content">
|
||||||
|
<view class="rbc-content-row rbc-content-left rbc-content-left-box">
|
||||||
|
<!-- <uni-icons type="person" color="gray" size="26"></uni-icons> -->
|
||||||
|
用户协议</view>
|
||||||
|
<view class="rbc-content-row rbc-content-right">
|
||||||
|
<uni-icons type="forward" color="gray" size="20"></uni-icons>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="rb-card" @tap="toDetail(1)">
|
||||||
|
<view class="rbc-content">
|
||||||
|
<view class="rbc-content-row rbc-content-left rbc-content-left-box">
|
||||||
|
<!-- <uni-icons type="phone" color="gray" size="26"></uni-icons> -->
|
||||||
|
隐私政策摘要</view>
|
||||||
|
<view class="rbc-content-row rbc-content-right">
|
||||||
|
<uni-icons type="forward" color="gray" size="20"></uni-icons>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="rb-card" @tap="toDetail(1)">
|
||||||
|
<view class="rbc-content">
|
||||||
|
<view class="rbc-content-row rbc-content-left rbc-content-left-box">
|
||||||
|
<!-- <uni-icons type="calendar" color="gray" size="26"></uni-icons> -->
|
||||||
|
个人信息手机清单</view>
|
||||||
|
<view class="rbc-content-row rbc-content-right">
|
||||||
|
<uni-icons type="forward" color="gray" size="20"></uni-icons>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="rb-card" @tap="toDetail(1)">
|
||||||
|
<view class="rbc-content">
|
||||||
|
<view class="rbc-content-row rbc-content-left rbc-content-left-box">
|
||||||
|
<!-- <uni-icons type="paperplane" color="gray" size="26"></uni-icons> -->
|
||||||
|
关于我们</view>
|
||||||
|
<view class="rbc-content-row rbc-content-right">
|
||||||
|
<uni-icons type="forward" color="gray" size="20"></uni-icons>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="rb-card" @tap="toDetail(1)">
|
||||||
|
<view class="rbc-content">
|
||||||
|
<view class="rbc-content-row rbc-content-left rbc-content-left-box">
|
||||||
|
<!-- <uni-icons type="paperplane" color="gray" size="26"></uni-icons> -->
|
||||||
|
退出账号</view>
|
||||||
|
<view class="rbc-content-row rbc-content-right">
|
||||||
|
<uni-icons type="forward" color="gray" size="20"></uni-icons>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.avatar-box{
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-around;
|
||||||
|
width: 100%;
|
||||||
|
padding: 20rpx 0;
|
||||||
|
background: #26758d;
|
||||||
|
image{
|
||||||
|
width: 160rpx;
|
||||||
|
height: 160rpx;
|
||||||
|
background-color: white;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.rbc-content-right{
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
background: white;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
.rbc-content-left-box{
|
||||||
|
uni-icons{
|
||||||
|
margin-right: 20rpx;
|
||||||
|
}
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.row-box{
|
||||||
|
padding: 20rpx 0;
|
||||||
|
.rb-card{
|
||||||
|
padding: 20rpx;
|
||||||
|
background: white;
|
||||||
|
margin-bottom: 2rpx;
|
||||||
|
.rbc-title{
|
||||||
|
|
||||||
|
}
|
||||||
|
.rbc-content-box{
|
||||||
|
margin-top: 10rpx;
|
||||||
|
.rbc-content-row{
|
||||||
|
width: 50%;
|
||||||
|
text-align: center;
|
||||||
|
// padding: 40rpx 20rpx;
|
||||||
|
// box-shadow: 10rpx 10rpx 10rpx #cdcdcd;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.rbc-content{
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.btn-box{
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 40rpx;
|
||||||
|
.btn{
|
||||||
|
display: inline-block;
|
||||||
|
padding: 10px 20px;
|
||||||
|
background: #e2e2e2;
|
||||||
|
color: #26758d;
|
||||||
|
border-radius: 10px;
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.userinfo-box{
|
||||||
|
position: relative;
|
||||||
|
image{
|
||||||
|
width: 120rpx;
|
||||||
|
height: 120rpx;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: white;
|
||||||
|
margin-right: 20rpx;
|
||||||
|
}
|
||||||
|
color: white;
|
||||||
|
background-color: #26758d;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: 40rpx 20rpx;
|
||||||
|
}
|
||||||
|
.user-box{
|
||||||
|
background: #f6f6f6;
|
||||||
|
}
|
||||||
|
</style>
|
@ -0,0 +1,157 @@
|
|||||||
|
<script setup>
|
||||||
|
import { onLoad } from "@dcloudio/uni-app"
|
||||||
|
// import mySwiper from "@/components/mySwiper.vue"
|
||||||
|
import {ref,onMounted,nextTick} from "vue"
|
||||||
|
import {useStore} from '@/store/index.js'
|
||||||
|
import api from "@/api/index.js"
|
||||||
|
onLoad(() => {
|
||||||
|
// console.log(useStore.userInfo)
|
||||||
|
userinfo.value = JSON.parse(uni.getStorageSync('userInfo'))
|
||||||
|
console.log(userinfo.value)
|
||||||
|
avatar.value = uni.getStorageSync('avatarUrl')
|
||||||
|
})
|
||||||
|
const userinfo = ref(null)
|
||||||
|
const avatar = ref(null)
|
||||||
|
// 方法
|
||||||
|
function toDetail(type) {
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<template>
|
||||||
|
<view class="userInfoBox page-box page-bg-gray">
|
||||||
|
<view class="avatar-box">
|
||||||
|
<image :src="avatar" mode="aspectFill"></image>
|
||||||
|
</view>
|
||||||
|
<view class="row-box">
|
||||||
|
<view class="rb-card" @tap="toDetail(1)">
|
||||||
|
<view class="rbc-content">
|
||||||
|
<view class="rbc-content-row rbc-content-left rbc-content-left-box">
|
||||||
|
<uni-icons type="person" color="gray" size="26"></uni-icons>
|
||||||
|
姓名</view>
|
||||||
|
<view class="rbc-content-row rbc-content-right">
|
||||||
|
{{userinfo?.nickname}}
|
||||||
|
<uni-icons type="forward" color="gray" size="20"></uni-icons>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="rb-card" @tap="toDetail(1)">
|
||||||
|
<view class="rbc-content">
|
||||||
|
<view class="rbc-content-row rbc-content-left rbc-content-left-box">
|
||||||
|
<uni-icons type="phone" color="gray" size="26"></uni-icons>
|
||||||
|
电话</view>
|
||||||
|
<view class="rbc-content-row rbc-content-right">
|
||||||
|
{{userinfo?.phone}}
|
||||||
|
<uni-icons type="forward" color="gray" size="20"></uni-icons>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="rb-card" @tap="toDetail(1)">
|
||||||
|
<view class="rbc-content">
|
||||||
|
<view class="rbc-content-row rbc-content-left rbc-content-left-box">
|
||||||
|
<uni-icons type="calendar" color="gray" size="26"></uni-icons>
|
||||||
|
手术时间</view>
|
||||||
|
<view class="rbc-content-row rbc-content-right">
|
||||||
|
2023-10-1
|
||||||
|
<uni-icons type="forward" color="gray" size="20"></uni-icons>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="rb-card" @tap="toDetail(1)">
|
||||||
|
<view class="rbc-content">
|
||||||
|
<view class="rbc-content-row rbc-content-left rbc-content-left-box">
|
||||||
|
<uni-icons type="paperplane" color="gray" size="26"></uni-icons>
|
||||||
|
手术医院</view>
|
||||||
|
<view class="rbc-content-row rbc-content-right">
|
||||||
|
金山医院
|
||||||
|
<uni-icons type="forward" color="gray" size="20"></uni-icons>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.avatar-box{
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-around;
|
||||||
|
width: 100%;
|
||||||
|
padding: 20rpx 0;
|
||||||
|
background: #26758d;
|
||||||
|
image{
|
||||||
|
width: 160rpx;
|
||||||
|
height: 160rpx;
|
||||||
|
background-color: white;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.rbc-content-right{
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
background: white;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
.rbc-content-left-box{
|
||||||
|
uni-icons{
|
||||||
|
margin-right: 20rpx;
|
||||||
|
}
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.row-box{
|
||||||
|
padding: 20rpx 0;
|
||||||
|
.rb-card{
|
||||||
|
padding: 20rpx;
|
||||||
|
background: white;
|
||||||
|
margin-bottom: 2rpx;
|
||||||
|
.rbc-title{
|
||||||
|
|
||||||
|
}
|
||||||
|
.rbc-content-box{
|
||||||
|
margin-top: 10rpx;
|
||||||
|
.rbc-content-row{
|
||||||
|
width: 50%;
|
||||||
|
text-align: center;
|
||||||
|
// padding: 40rpx 20rpx;
|
||||||
|
// box-shadow: 10rpx 10rpx 10rpx #cdcdcd;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.rbc-content{
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.btn-box{
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 40rpx;
|
||||||
|
.btn{
|
||||||
|
display: inline-block;
|
||||||
|
padding: 10px 20px;
|
||||||
|
background: #e2e2e2;
|
||||||
|
color: #26758d;
|
||||||
|
border-radius: 10px;
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.userinfo-box{
|
||||||
|
position: relative;
|
||||||
|
image{
|
||||||
|
width: 120rpx;
|
||||||
|
height: 120rpx;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: white;
|
||||||
|
margin-right: 20rpx;
|
||||||
|
}
|
||||||
|
color: white;
|
||||||
|
background-color: #26758d;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: 40rpx 20rpx;
|
||||||
|
}
|
||||||
|
.user-box{
|
||||||
|
background: #f6f6f6;
|
||||||
|
}
|
||||||
|
</style>
|
@ -0,0 +1,58 @@
|
|||||||
|
<script setup>
|
||||||
|
// 引入依赖
|
||||||
|
// import uniDatetimePicker from '@/uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue'
|
||||||
|
// import uniEasyinput from '@/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue'
|
||||||
|
import { onLoad } from "@dcloudio/uni-app"
|
||||||
|
// import mySwiper from "@/components/mySwiper.vue"
|
||||||
|
import {ref,onMounted,nextTick} from "vue"
|
||||||
|
import {useStore} from '@/store/index.js'
|
||||||
|
import api from "@/api/index.js"
|
||||||
|
onLoad((e) => {
|
||||||
|
console.log(e)
|
||||||
|
a_info.value = JSON.parse(decodeURIComponent(e.info))
|
||||||
|
if(!e.id) {
|
||||||
|
uni.showToast({
|
||||||
|
icon:"error",
|
||||||
|
title:"错误",
|
||||||
|
duration:2000
|
||||||
|
})
|
||||||
|
a_info.value = null
|
||||||
|
return
|
||||||
|
}
|
||||||
|
getDetail(e.id)
|
||||||
|
})
|
||||||
|
// 变量
|
||||||
|
// const content = ref(null)
|
||||||
|
const a_info = ref(null)
|
||||||
|
// 函数
|
||||||
|
async function getDetail(id) {
|
||||||
|
const res = await api.getArticleDetail({id})
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<template>
|
||||||
|
<view class="detailBox">
|
||||||
|
<view class="title">
|
||||||
|
{{a_info?.title}}
|
||||||
|
</view>
|
||||||
|
<view class="more-info small-text">2023-10-5</view>
|
||||||
|
<view class="d-content" v-html="a_info?.content"></view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.detailBox{
|
||||||
|
.more-info{
|
||||||
|
text-align: right;
|
||||||
|
margin-bottom: 10rpx;
|
||||||
|
}
|
||||||
|
.title{
|
||||||
|
font-size: 32rpx;
|
||||||
|
font-weight: 900;
|
||||||
|
margin-bottom: 20rpx;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
padding: 40rpx;
|
||||||
|
.d-content{
|
||||||
|
line-height: 50rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
@ -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);
|
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"navigationBarTitleText": "问题反馈",
|
||||||
|
"usingComponents": {}
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
<view class="feedbackBox data-v-fff60cbe"><view class="writeBox data-v-fff60cbe"><block wx:if="{{r0}}"><textarea class="textarea data-v-fff60cbe" value="{{a}}" bindinput="{{b}}"></textarea></block></view><view class="btn-part data-v-fff60cbe"><view class="btn data-v-fff60cbe">提交</view></view></view>
|
@ -1,4 +1,6 @@
|
|||||||
{
|
{
|
||||||
"navigationBarTitleText": "我的",
|
"navigationBarTitleText": "我的",
|
||||||
"usingComponents": {}
|
"usingComponents": {
|
||||||
|
"uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons"
|
||||||
|
}
|
||||||
}
|
}
|
@ -1 +1 @@
|
|||||||
<view class="user-box page-box data-v-79e6a490"><view class="userinfo-box data-v-79e6a490"><image class="data-v-79e6a490" src="{{a}}" mode=""></image><view class=" data-v-79e6a490">{{b}}</view></view><view wx:if="{{c}}" class="btn-box data-v-79e6a490" bindtap="{{d}}"><view class="btn data-v-79e6a490">登录</view></view></view>
|
<view class="user-box page-box data-v-79e6a490"><view class="userinfo-box data-v-79e6a490" bindtap="{{e}}"><image class="data-v-79e6a490" src="{{a}}" mode=""></image><view class=" data-v-79e6a490" style="font-weight:900;font-size:40rpx">{{b}}</view><uni-icons wx:if="{{c}}" class="data-v-79e6a490" style="position:absolute;right:20rpx;top:40%" u-i="79e6a490-0" bind:__l="__l" u-p="{{d}}"></uni-icons></view><view wx:if="{{f}}" class="btn-box data-v-79e6a490" bindtap="{{g}}"><view class="btn data-v-79e6a490">登录</view></view><view wx:else class="row-box data-v-79e6a490"><view class="rb-card data-v-79e6a490" bindtap="{{j}}" style="margin-bottom:10px"><view class="rbc-content rbc-content-box data-v-79e6a490"><view class="rbc-content-row rbc-content-left data-v-79e6a490"><uni-icons wx:if="{{h}}" class="data-v-79e6a490" u-i="79e6a490-1" bind:__l="__l" u-p="{{h}}"></uni-icons><view class="data-v-79e6a490">已完成事项</view></view><view class="rbc-content-row rbc-content-right data-v-79e6a490"><uni-icons wx:if="{{i}}" class="data-v-79e6a490" u-i="79e6a490-2" bind:__l="__l" u-p="{{i}}"></uni-icons><view class="data-v-79e6a490">未完成事项</view></view></view></view><view class="rb-card data-v-79e6a490" bindtap="{{m}}"><view class="rbc-content data-v-79e6a490"><view class="rbc-content-row rbc-content-left rbc-content-left-box data-v-79e6a490"><uni-icons wx:if="{{k}}" class="data-v-79e6a490" u-i="79e6a490-3" bind:__l="__l" u-p="{{k}}"></uni-icons> 我的收藏</view><view class="rbc-content-row rbc-content-right data-v-79e6a490"><uni-icons wx:if="{{l}}" class="data-v-79e6a490" u-i="79e6a490-4" bind:__l="__l" u-p="{{l}}"></uni-icons></view></view></view><view class="rb-card data-v-79e6a490" bindtap="{{p}}"><view class="rbc-content data-v-79e6a490"><view class="rbc-content-row rbc-content-left rbc-content-left-box data-v-79e6a490"><uni-icons wx:if="{{n}}" class="data-v-79e6a490" u-i="79e6a490-5" bind:__l="__l" u-p="{{n}}"></uni-icons> 设置</view><view class="rbc-content-row rbc-content-right data-v-79e6a490"><uni-icons wx:if="{{o}}" class="data-v-79e6a490" u-i="79e6a490-6" bind:__l="__l" u-p="{{o}}"></uni-icons></view></view></view><view class="rb-card data-v-79e6a490" bindtap="{{s}}"><view class="rbc-content data-v-79e6a490"><view class="rbc-content-row rbc-content-left rbc-content-left-box data-v-79e6a490"><uni-icons wx:if="{{q}}" class="data-v-79e6a490" u-i="79e6a490-7" bind:__l="__l" u-p="{{q}}"></uni-icons> 问题反馈</view><view class="rbc-content-row rbc-content-right data-v-79e6a490"><uni-icons wx:if="{{r}}" class="data-v-79e6a490" u-i="79e6a490-8" bind:__l="__l" u-p="{{r}}"></uni-icons></view></view></view></view></view>
|
@ -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);
|
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"navigationBarTitleText": "设置",
|
||||||
|
"usingComponents": {
|
||||||
|
"uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
<view class="userInfoBox page-box page-bg-gray data-v-806b15dc"><view class="row-box data-v-806b15dc"><view class="rb-card data-v-806b15dc" bindtap="{{b}}"><view class="rbc-content data-v-806b15dc"><view class="rbc-content-row rbc-content-left rbc-content-left-box data-v-806b15dc"> 用户协议</view><view class="rbc-content-row rbc-content-right data-v-806b15dc"><uni-icons wx:if="{{a}}" class="data-v-806b15dc" u-i="806b15dc-0" bind:__l="__l" u-p="{{a}}"></uni-icons></view></view></view><view class="rb-card data-v-806b15dc" bindtap="{{d}}"><view class="rbc-content data-v-806b15dc"><view class="rbc-content-row rbc-content-left rbc-content-left-box data-v-806b15dc"> 隐私政策摘要</view><view class="rbc-content-row rbc-content-right data-v-806b15dc"><uni-icons wx:if="{{c}}" class="data-v-806b15dc" u-i="806b15dc-1" bind:__l="__l" u-p="{{c}}"></uni-icons></view></view></view><view class="rb-card data-v-806b15dc" bindtap="{{f}}"><view class="rbc-content data-v-806b15dc"><view class="rbc-content-row rbc-content-left rbc-content-left-box data-v-806b15dc"> 个人信息手机清单</view><view class="rbc-content-row rbc-content-right data-v-806b15dc"><uni-icons wx:if="{{e}}" class="data-v-806b15dc" u-i="806b15dc-2" bind:__l="__l" u-p="{{e}}"></uni-icons></view></view></view><view class="rb-card data-v-806b15dc" bindtap="{{h}}"><view class="rbc-content data-v-806b15dc"><view class="rbc-content-row rbc-content-left rbc-content-left-box data-v-806b15dc"> 关于我们</view><view class="rbc-content-row rbc-content-right data-v-806b15dc"><uni-icons wx:if="{{g}}" class="data-v-806b15dc" u-i="806b15dc-3" bind:__l="__l" u-p="{{g}}"></uni-icons></view></view></view><view class="rb-card data-v-806b15dc" bindtap="{{j}}"><view class="rbc-content data-v-806b15dc"><view class="rbc-content-row rbc-content-left rbc-content-left-box data-v-806b15dc"> 退出账号</view><view class="rbc-content-row rbc-content-right data-v-806b15dc"><uni-icons wx:if="{{i}}" class="data-v-806b15dc" u-i="806b15dc-4" bind:__l="__l" u-p="{{i}}"></uni-icons></view></view></view></view></view>
|
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"navigationBarTitleText": "我的收藏",
|
||||||
|
"enablePullDownRefresh": true,
|
||||||
|
"usingComponents": {}
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
<view class="starBox page-box page-bg-gray data-v-7926ce3c"><view class="list-box data-v-7926ce3c"><view wx:for="{{a}}" wx:for-item="item" class="lb-card data-v-7926ce3c" bindtap="{{item.d}}"><view class="lb-left data-v-7926ce3c"><image class="data-v-7926ce3c" src="{{item.a}}" mode="aspectFill"></image></view><view class="lb-right data-v-7926ce3c"><view class="lb-title data-v-7926ce3c">{{item.b}}</view><view class="lb-content text-ellipsis-1 small-text data-v-7926ce3c">{{item.c}}</view></view></view></view></view>
|
@ -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);
|
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"navigationBarTitleText": "个人资料",
|
||||||
|
"usingComponents": {
|
||||||
|
"uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
<view class="userInfoBox page-box page-bg-gray data-v-2f34225a"><view class="avatar-box data-v-2f34225a"><image class="data-v-2f34225a" src="{{a}}" mode="aspectFill"></image></view><view class="row-box data-v-2f34225a"><view class="rb-card data-v-2f34225a" bindtap="{{e}}"><view class="rbc-content data-v-2f34225a"><view class="rbc-content-row rbc-content-left rbc-content-left-box data-v-2f34225a"><uni-icons wx:if="{{b}}" class="data-v-2f34225a" u-i="2f34225a-0" bind:__l="__l" u-p="{{b}}"></uni-icons> 姓名</view><view class="rbc-content-row rbc-content-right data-v-2f34225a">{{c}} <uni-icons wx:if="{{d}}" class="data-v-2f34225a" u-i="2f34225a-1" bind:__l="__l" u-p="{{d}}"></uni-icons></view></view></view><view class="rb-card data-v-2f34225a" bindtap="{{i}}"><view class="rbc-content data-v-2f34225a"><view class="rbc-content-row rbc-content-left rbc-content-left-box data-v-2f34225a"><uni-icons wx:if="{{f}}" class="data-v-2f34225a" u-i="2f34225a-2" bind:__l="__l" u-p="{{f}}"></uni-icons> 电话</view><view class="rbc-content-row rbc-content-right data-v-2f34225a">{{g}} <uni-icons wx:if="{{h}}" class="data-v-2f34225a" u-i="2f34225a-3" bind:__l="__l" u-p="{{h}}"></uni-icons></view></view></view><view class="rb-card data-v-2f34225a" bindtap="{{l}}"><view class="rbc-content data-v-2f34225a"><view class="rbc-content-row rbc-content-left rbc-content-left-box data-v-2f34225a"><uni-icons wx:if="{{j}}" class="data-v-2f34225a" u-i="2f34225a-4" bind:__l="__l" u-p="{{j}}"></uni-icons> 手术时间</view><view class="rbc-content-row rbc-content-right data-v-2f34225a"> 2023-10-1 <uni-icons wx:if="{{k}}" class="data-v-2f34225a" u-i="2f34225a-5" bind:__l="__l" u-p="{{k}}"></uni-icons></view></view></view><view class="rb-card data-v-2f34225a" bindtap="{{o}}"><view class="rbc-content data-v-2f34225a"><view class="rbc-content-row rbc-content-left rbc-content-left-box data-v-2f34225a"><uni-icons wx:if="{{m}}" class="data-v-2f34225a" u-i="2f34225a-6" bind:__l="__l" u-p="{{m}}"></uni-icons> 手术医院</view><view class="rbc-content-row rbc-content-right data-v-2f34225a"> 金山医院 <uni-icons wx:if="{{n}}" class="data-v-2f34225a" u-i="2f34225a-7" bind:__l="__l" u-p="{{n}}"></uni-icons></view></view></view></view></view>
|
@ -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);
|
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"navigationBarTitleText": "文章详情",
|
||||||
|
"usingComponents": {}
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
<view class="detailBox data-v-6ba0469a"><view class="title data-v-6ba0469a">{{a}}</view><view class="more-info small-text data-v-6ba0469a">2023-10-5</view><view class="d-content data-v-6ba0469a"><rich-text class="data-v-6ba0469a" nodes="{{b}}"/></view></view>
|
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
"navigationBarTitleText": "百科",
|
"navigationBarTitleText": "百科",
|
||||||
|
"enablePullDownRefresh": true,
|
||||||
"usingComponents": {}
|
"usingComponents": {}
|
||||||
}
|
}
|
@ -0,0 +1 @@
|
|||||||
|
<view class="articleBox page-box data-v-e5c3f72c"><view class="userInfoBox data-v-e5c3f72c"></view><view class="list-box data-v-e5c3f72c"><view wx:for="{{a}}" wx:for-item="item" class="lb-card data-v-e5c3f72c" bindtap="{{item.d}}"><view class="lb-left data-v-e5c3f72c"><image class="data-v-e5c3f72c" src="{{item.a}}" mode="aspectFill"></image></view><view class="lb-right data-v-e5c3f72c"><view class="lb-title data-v-e5c3f72c">{{item.b}}</view><view class="lb-content text-ellipsis-1 small-text data-v-e5c3f72c">{{item.c}}</view></view></view></view></view>
|
Loading…
Reference in New Issue