【最新版】医疗服务系统源码全开源+小程序uniapp前端
·
一.简介
一款基于ThinkPHP+Uniapp开发的多门店医疗服务系统,目前支持微信小程序端、公众号端。支持创建多门店、商家端扫码核销、支持项目管理、活动管理、医生管理、预约功能、多端会员统一。全部无加密服务端和前端源代码,支持私有化部署。适用场景于口腔、美容、诊所、中医馆、专科医院、康复护理等需要预约或诊断的行业。
二.搭建环境教程
系统环境:CentOS、
运行环境:宝塔 Linux
网站环境:Nginx 1.21 + MySQL 5.7.46 + PHP-72
常见插件:fileinfo ; redis
二.搭建环境教程(无实际运营,仅供参考)



前端uniapp-APP.vue 部分代码
<script>
import API from "@/common/api.js";
export default {
globalData: {
top: 0,
bottom: 0
},
onLaunch: function(options) {
//#ifdef APP-PLUS
//plus.screen.lockOrientation("landscape-primary");
plus.screen.lockOrientation("portrait-primary");
//#endif
var phone = uni.getSystemInfoSync()
this.globalData.bottom = phone.safeAreaInsets.bottom;
this.globalData.top = phone.safeAreaInsets.top
//#ifdef MP-WEIXIN
//var phone = uni.getSystemInfoSync()
if (options.query.parentid != undefined) {
var parentid = options.query.parentid;
} else {
var parentid = 0;
}
uni.setStorageSync("parentid", parentid)
API.checkSession({
parentid: 0
});
//#endif
//#ifdef WEB
var code = this.getUrlParam('code');
var parentid = this.getUrlParam('parentid');
if (parentid > 0) {
uni.setStorageSync("parentid", parentid)
} else {
parentid = 0;
}
var ua = navigator.userAgent.toLowerCase();
//判断是不是在公众号
if (ua.match(/MicroMessenger/i) == "micromessenger") {
var local = encodeURIComponent(window.location.href)
API.post("user/getUser", {
ext: 1
}).then((res) => {
if (res.code == 0) {
if (code == null || code === '') {
window.location.href =
'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + res.data
.gzhappid + '&redirect_uri=' +
local +
'&response_type=code&scope=snsapi_base&connect_redirect=1&state=#wechat_redirect';
} else {
this.getOpenId(code, parentid);
}
}
})
} else {
//禁止在浏览器访问
API.post("common/getParam").then((res) => {
if (res.code == 1) {
window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid="+res.data.appid
}
})
}
//#endif
},
onShow: function() {
//console.log('App Show')
},
onHide: function() {
//console.log('App Hide')
},
methods: {
getOpenId(code, parentid = 0) {
var $this = this
API.post("user/openid", {
code: code,
parentid: parentid
}).then((res) => {
if (res.code == 1) {
uni.setStorageSync("sessionid", res.data.sessionid)
}
})
},
getUrlParam(name) {
let reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)');
let r = window.location.search.substr(1).match(reg);
if (r != null) {
return unescape(r[2]);
}
return null;
}
}
}
</script>
DAMO开发者矩阵,由阿里巴巴达摩院和中国互联网协会联合发起,致力于探讨最前沿的技术趋势与应用成果,搭建高质量的交流与分享平台,推动技术创新与产业应用链接,围绕“人工智能与新型计算”构建开放共享的开发者生态。
更多推荐


所有评论(0)