chore: 重新构建git仓库
This commit is contained in:
76
pages/my/aboutUs.vue
Normal file
76
pages/my/aboutUs.vue
Normal file
@@ -0,0 +1,76 @@
|
||||
<template>
|
||||
<view class="commonPage">
|
||||
<z-nav-bar title="关于我们"></z-nav-bar>
|
||||
|
||||
<view class="APPinfo">
|
||||
<image src="@/static/logo_zi.png" mode="" style="height: 230rpx; width: 240rpx; margin: 0 auto;"></image><br/>
|
||||
<p v-if="versionCode">版本信息:{{versionName}},{{versionCode}}</p>
|
||||
</view>
|
||||
|
||||
<view class="telInfo">
|
||||
<view class="nav_list flexbox">
|
||||
<text>客服热线</text>
|
||||
<view class="view1" @click="makeTel">
|
||||
<uni-icons type="phone" size="20" color="#5188e5"></uni-icons>
|
||||
<text>022-24142321</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="prof">
|
||||
太湖云医是一款以吴雄志老师独有的一以贯之的中医学、针灸学与心学学术体系,把精准医学思想引入传统医学,将中西医有机整合、医学与心理学有机整合,同时将心理学与东方心学及国学的有机融合,为患者及医生提供现代医学、中医学与心理学的治疗、预防及康复指导意见的一款app。
|
||||
</view>
|
||||
<view style="text-align: right; padding-right: 20rpx; padding-top: 30rpx;">
|
||||
<uni-link href="https://www.taimed.cn/privacy.html" text="隐私政策"></uni-link>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
playData:{},
|
||||
versionCode:null,
|
||||
versionName:null
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getAppInfo()
|
||||
},
|
||||
methods: {
|
||||
// 获取版本信息
|
||||
getAppInfo(){
|
||||
let that = this
|
||||
plus.runtime.getProperty(plus.runtime.appid, function(inf) {
|
||||
that.versionCode = inf.version
|
||||
that.versionName = inf.name
|
||||
});
|
||||
},
|
||||
makeTel(){
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '微信号:yilujiankangkefu'
|
||||
})
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '@/static/mixin.scss';
|
||||
.commonPage{
|
||||
background: #fff;
|
||||
padding: 0 20rpx;
|
||||
}
|
||||
.prof{ color: #666; font-size: 28rpx; line-height: 42rpx; padding: 30rpx 10rpx;}
|
||||
.telInfo{background-color:#fff;
|
||||
.nav_list{padding: 30rpx 0; border-top: 1px solid #e5e5e5; border-top: 1px solid #e5e5e5; justify-content: space-between; color: #666;
|
||||
.view1{ display: flex; align-items: center;}
|
||||
}
|
||||
}
|
||||
.APPinfo{background-color:#fff; padding: 40rpx 0; text-align: center;
|
||||
p{font-size: 28rpx;}
|
||||
}
|
||||
.flexbox{display: flex; justify-content: center;}
|
||||
</style>
|
||||
1057
pages/my/index.vue
Normal file
1057
pages/my/index.vue
Normal file
File diff suppressed because it is too large
Load Diff
1048
pages/my/persData.vue
Normal file
1048
pages/my/persData.vue
Normal file
File diff suppressed because it is too large
Load Diff
117
pages/my/recordsList.vue
Normal file
117
pages/my/recordsList.vue
Normal file
@@ -0,0 +1,117 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<z-nav-bar title="会话记录" bgColor="#5188e5" fontColor="#fff"></z-nav-bar>
|
||||
<view class="list_wrap">
|
||||
<view class="list_content" v-if="list&&list.length>0">
|
||||
<view v-for="(item, index) in list" :key="index" class="list_item" @click="clickRecord(item, index)">
|
||||
<text>{{item.chatName}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<text class="null_text" v-else>{{null_text}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import $http from "@/config/requestConfig.js";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
list: [],
|
||||
null_text: ''
|
||||
};
|
||||
},
|
||||
//第一次加载
|
||||
onLoad(e) {
|
||||
|
||||
},
|
||||
//页面显示
|
||||
onShow() {
|
||||
this.getData();
|
||||
},
|
||||
//方法
|
||||
methods: {
|
||||
//获取数据
|
||||
getData() {
|
||||
uni.showLoading({
|
||||
title: '加载中'
|
||||
})
|
||||
this.$http.request({
|
||||
url: 'common/ragFlowApi/getChats',
|
||||
method: "POST",
|
||||
data: {
|
||||
chatId: '',
|
||||
sessionId: '',
|
||||
page: 1,
|
||||
pageSize: 300
|
||||
},
|
||||
header: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
})
|
||||
.then(res=> {
|
||||
if(res.code==0){
|
||||
uni.hideLoading();
|
||||
if(res.list&&res.list.length>0){
|
||||
this.list = res.list;
|
||||
}else{
|
||||
this.list = [];
|
||||
this.null_text = '暂无数据';
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
//点击会话跳转到首页记录
|
||||
clickRecord(item, index){
|
||||
uni.setStorageSync('homeParams', { data: item, index: index });
|
||||
// uni.switchTab({
|
||||
// url: '/pages/home/index'
|
||||
// });
|
||||
uni.switchTab({
|
||||
url: '/pages/doctors/index'
|
||||
});
|
||||
},
|
||||
onPageJump(url) {
|
||||
uni.navigateTo({
|
||||
url: url,
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import "@/static/mixin.scss";
|
||||
.list_wrap{
|
||||
padding-bottom: 20rpx;
|
||||
}
|
||||
.list_content{
|
||||
margin: 20rpx 30rpx;
|
||||
border-radius: 10rpx;
|
||||
background-color: #fff;
|
||||
padding: 20rpx 30rpx;
|
||||
box-shadow: 0px 0px 10px 0px #a7bbe4;
|
||||
|
||||
text{
|
||||
display: block;
|
||||
width: 100%;
|
||||
font-size: 30rpx;
|
||||
line-height: 50rpx;
|
||||
padding: 20rpx 0;
|
||||
border-bottom: 1rpx solid #e5dcdc;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.list_item:last-child text{
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
.null_text{
|
||||
display: block;
|
||||
text-align: center;
|
||||
font-size: 30rpx;
|
||||
color: #999;
|
||||
padding-top: 150rpx;
|
||||
}
|
||||
</style>
|
||||
360
pages/my/set.vue
Normal file
360
pages/my/set.vue
Normal file
@@ -0,0 +1,360 @@
|
||||
<template>
|
||||
<view class="commonPageBox">
|
||||
<z-nav-bar title="设置"></z-nav-bar>
|
||||
<view class="contentBox commonPageContentBox">
|
||||
<view class="set_box">
|
||||
<list
|
||||
:dataList="dataList"
|
||||
@hancleClick="handleClickRightContent"
|
||||
label="title"
|
||||
>
|
||||
<template slot="rightSlot" slot-scope="slotProps">
|
||||
<text class="fdButtonBox aui-text-success">{{slotProps.row.content}}</text>
|
||||
</template>
|
||||
</list>
|
||||
</view>
|
||||
<view class="button_box" v-if="!visitorStatus">
|
||||
<u-button
|
||||
shape="square"
|
||||
type=""
|
||||
class="common_red_button button"
|
||||
size="medium"
|
||||
@click="handleClickButton(1)"
|
||||
>注销账号</u-button
|
||||
>
|
||||
<u-button
|
||||
shape="square"
|
||||
type=""
|
||||
class="common_grey_button button"
|
||||
size="medium"
|
||||
@click="handleClickButton(2)"
|
||||
>退出登录</u-button
|
||||
>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<u-modal
|
||||
:show="signShow"
|
||||
:content="signContent"
|
||||
:showCancelButton="true"
|
||||
@cancel="signShow = false"
|
||||
@confirm="signOut"
|
||||
>
|
||||
</u-modal>
|
||||
<u-popup key="1" v-if="showCodeImg" :show="showCodeImg" :round="10" @close="closePup">
|
||||
<view class="box6">
|
||||
<text style="color: #999; margin-bottom: 20rpx;">点击图片后长按图片保存到手机,或使用微信扫描二维码添加客服企业微信</text>
|
||||
<image src="/static/qiyeWx.jpg" mode="widthFix" style="width: 100px; height: 100px; margin: 0 auto;"></image>
|
||||
</view>
|
||||
</u-popup>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
// #ifdef APP-PLUS
|
||||
import updata from "@/uni_modules/uni-upgrade-center-app/utils/check-update";
|
||||
// #endif
|
||||
import list from "@/pages/component/commonComponents/list";
|
||||
import $http from "@/config/requestConfig.js";
|
||||
import { mapState, mapMutations } from "vuex";
|
||||
export default {
|
||||
components: {
|
||||
list,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
signShow: false,
|
||||
signContent: "是否要退出登录?",
|
||||
playData: {},
|
||||
options: {},
|
||||
searchValue: "",
|
||||
showCodeImg:false,
|
||||
twoCateList: [], // 二级分类标题
|
||||
titleList: [], // 方剂标题
|
||||
curOneCateIndex: 0, // 当前选中的一级分类
|
||||
curTwoCateIndex: 0, // 当前选中的二级分类
|
||||
searchList: [], // 搜索结果数组
|
||||
showSearchList: false,
|
||||
userMes: {}, // 用户信息
|
||||
searchDisable: false, // 搜索不可用
|
||||
limitShow: false,
|
||||
limitTitle: "提示",
|
||||
limitContent: "",
|
||||
scrollViewHeight: 0,
|
||||
dataList: [
|
||||
{
|
||||
title: "客服热线",
|
||||
content: "022-24142321",
|
||||
type: "tel",
|
||||
},
|
||||
{
|
||||
title: "客服邮箱",
|
||||
content: "appyilujiankang@sina.com",
|
||||
type: "email",
|
||||
},
|
||||
{
|
||||
title: "企业微信",
|
||||
content: "",
|
||||
type: "wxNumber",
|
||||
},
|
||||
{
|
||||
title: "版本检测",
|
||||
content: "",
|
||||
type: "checkVersion",
|
||||
}
|
||||
],
|
||||
otherList: [
|
||||
{
|
||||
title: "关于我们",
|
||||
|
||||
url: "/pages/mine/aboutUs/index",
|
||||
type: "pageJump",
|
||||
}
|
||||
],
|
||||
visitorStatus: null, //游客身份访问set
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
if(options&&options.name){
|
||||
this.visitorStatus = true;
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(["userInfo"]),
|
||||
},
|
||||
methods: {
|
||||
...mapMutations(["setUserInfo"]),
|
||||
closePup(){
|
||||
this.showCodeImg = false
|
||||
},
|
||||
//退出
|
||||
signOut() {
|
||||
this.signShow = false;
|
||||
this.setUserInfo({ token: null });
|
||||
uni.removeStorageSync('countryData');
|
||||
uni.redirectTo({
|
||||
url: "/pages/user/login",
|
||||
});
|
||||
},
|
||||
//注销账户
|
||||
logout() {
|
||||
let that = this;
|
||||
uni.showModal({
|
||||
title: "提示",
|
||||
content: "确定要注销当前账户吗?",
|
||||
success: function (res) {
|
||||
if (res.confirm) {
|
||||
uni.showModal({
|
||||
title: "提示",
|
||||
showCancel: false,
|
||||
content: `注销申请已提交成功,请联系客服进行后续操作:022-24142321`,
|
||||
success: function (res1) {
|
||||
if (res1.confirm) {
|
||||
that.signOut();
|
||||
}
|
||||
},
|
||||
});
|
||||
} else if (res.cancel) {
|
||||
// 取消操作
|
||||
}
|
||||
},
|
||||
});
|
||||
},
|
||||
//选择
|
||||
handleClickButton(type) {
|
||||
switch (type) {
|
||||
case 1:
|
||||
this.logout();
|
||||
break;
|
||||
case 2:
|
||||
this.signShow = true;
|
||||
break;
|
||||
}
|
||||
},
|
||||
//list操作
|
||||
handleClickRightContent(row) {
|
||||
switch (row.type) {
|
||||
case "tel":
|
||||
this.$commonJS.handleMakingPhoneCalls(row.content);
|
||||
break;
|
||||
case "email":
|
||||
this.$commonJS.handleCopy(row.content, row.title);
|
||||
break;
|
||||
case "wxNumber":
|
||||
this.showCodeImg = true
|
||||
break;
|
||||
case "checkVersion":
|
||||
this.getNewVersion()
|
||||
break;
|
||||
case "pageJump":
|
||||
uni.navigateTo({
|
||||
url: row.url,
|
||||
});
|
||||
break;
|
||||
}
|
||||
},
|
||||
// 版本检测
|
||||
async getNewVersion(){
|
||||
// #ifdef APP-PLUS
|
||||
var info = await updata();
|
||||
console.log('info',JSON.stringify(info))
|
||||
if(info.result.code == 0){
|
||||
uni.showToast({
|
||||
title:info.result.message,
|
||||
icon:'none'
|
||||
})
|
||||
}
|
||||
// #endif
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import "@/static/common.scss";
|
||||
.box6 {
|
||||
padding: 20rpx;
|
||||
text-align: center;
|
||||
|
||||
.title {
|
||||
font-size: 28rpx;
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.list {
|
||||
padding: 0 10px;
|
||||
padding-bottom: 20rpx;
|
||||
|
||||
.item {
|
||||
font-size: 26rpx;
|
||||
color: #333;
|
||||
margin-bottom: 10rpx;
|
||||
padding-top:20rpx ;
|
||||
padding-bottom:20rpx ;
|
||||
line-height:40rpx;
|
||||
border-radius: 50rpx;
|
||||
border: 1px solid #eee;
|
||||
}
|
||||
|
||||
.item.active {
|
||||
color: $themeColor;
|
||||
border: 1px solid $themeColor;
|
||||
}
|
||||
}
|
||||
|
||||
.tbn {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.buybtn { padding: 0 20rpx;
|
||||
background-color: #00d8df;
|
||||
margin: 0;
|
||||
margin-right: 20rpx;
|
||||
|
||||
text {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
.saveBtnss {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 80rpx;
|
||||
overflow: hidden;
|
||||
border-radius: 50rpx;
|
||||
|
||||
text {
|
||||
padding-left: 10rpx;
|
||||
font-size: 28rpx;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.gouwuche {
|
||||
border: 1px solid #666;
|
||||
padding-right: 20rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.searchList {
|
||||
.item {
|
||||
font-size: 28rpx;
|
||||
padding: 20rpx;
|
||||
border-bottom: 1px solid #dadbde;
|
||||
}
|
||||
}
|
||||
|
||||
.scroll-view_H {
|
||||
background-color: #fff;
|
||||
white-space: nowrap;
|
||||
padding: 10rpx;
|
||||
}
|
||||
|
||||
.scroll-Y {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.scroll-view_H {
|
||||
white-space: nowrap;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.scroll-view-item_H {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.titleList {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.titleList2 {
|
||||
height: calc(100% - 170rpx);
|
||||
}
|
||||
|
||||
/deep/.scroll-view-item:nth-child(2n-1) {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
.fdButtonBox {
|
||||
color: #b0b0b0;
|
||||
float: right;
|
||||
padding: 4rpx 14rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
line-height: 40rpx;
|
||||
display: inline-block;
|
||||
border-radius: 10rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.commonPageBox {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
/deep/.set_box {
|
||||
background-color: #fff;
|
||||
height: auto;
|
||||
|
||||
padding: 20rpx;
|
||||
padding-bottom: 0;
|
||||
padding-top: 0;
|
||||
}
|
||||
/deep/.titleItem {
|
||||
line-height: 45rpx;
|
||||
}
|
||||
.button_box {
|
||||
width: 100%;
|
||||
position: fixed;
|
||||
bottom: 40rpx;
|
||||
padding: 20rpx 80rpx;
|
||||
|
||||
.button {
|
||||
margin-top: 40rpx;
|
||||
}
|
||||
}
|
||||
|
||||
/deep/.rightArrow {
|
||||
margin-top: 6rpx !important;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user