diff --git a/App.vue b/App.vue
index 47b65e0..9d7a82b 100644
--- a/App.vue
+++ b/App.vue
@@ -61,12 +61,14 @@
// #endif
// #ifdef MP-WEIXIN
- uni.showModal({
- title: '请扫描小程序二维码或点击小程序链接进入',
- content: '',
- showCancel: false,
- success: ({ confirm, cancel }) => {}
- })
+ // uni.showModal({
+ // title: '请扫描小程序二维码或点击小程序链接进入',
+ // content: '',
+ // showCancel: false,
+ // success: ({ confirm, cancel }) => {}
+ // })
+ uni.reLaunch({ url: '/pages/explain/explain' })
+ throw new Error('请扫描小程序二维码或点击小程序链接进入')
// #endif
}
diff --git a/components/explainPageHeader.vue b/components/explainPageHeader.vue
new file mode 100644
index 0000000..4252ebc
--- /dev/null
+++ b/components/explainPageHeader.vue
@@ -0,0 +1,89 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/preBookList.vue b/components/preBookList.vue
index 3078bbe..29e1cfd 100644
--- a/components/preBookList.vue
+++ b/components/preBookList.vue
@@ -10,7 +10,7 @@
- {{item.status_desc}}
+ {{item.status_desc2 ? item.status_desc2 : item.status_desc}}
前方{{item.wait_visit_count}}人
{{item.bed_desc}}
@@ -128,7 +128,7 @@ export default {
display: flex;
border-radius: 6rpx;
font-size: 26rpx;
- line-height: 40rpx;
+ // line-height: 40rpx;
padding: 0 10rpx;
box-sizing: border-box;
min-width: 90rpx;
@@ -142,7 +142,7 @@ export default {
&.status_wait{
view{
background: #F8FFF7;
- border: 1rpx solid #58CA7F;
+ border: 2rpx solid #58CA7F;
color: #30C563;
}
}
@@ -150,33 +150,33 @@ export default {
view{
background: #FFFAF7;
color: #FE6710;
- border: 1px solid #FE6710;
+ border: 2rpx solid #FE6710;
}
}
&.status_down{
view{
background: #FCFCFC;
- border: 1px solid #999999;
+ border: 2rpx solid #999999;
color: #999999;
}
}
&.status_cancle{
view{
background: #FCFCFC;
- border: 1rpx solid #AEB0B8;
+ border: 2rpx solid #AEB0B8;
color: #B6B8BF;
}
}
&.status_expire{
view{
background: #FFEEEE;
- border: 1rpx solid #FD0000;
+ border: 2rpx solid #FD0000;
color: #FD3B3B;
}
}
&.status_ing{
view{
- border: 1rpx solid #5FA1CB;
+ border: 2rpx solid #5FA1CB;
background: #F7FCFF;
color: #007FD0;
}
diff --git a/components/tabbar.vue b/components/tabbar.vue
index 9d62ed6..f6fb839 100644
--- a/components/tabbar.vue
+++ b/components/tabbar.vue
@@ -84,16 +84,37 @@
async scanCode() {
// #ifdef MP-WEIXIN
uni.scanCode({
- onlyFromCamera: true,
- scanType: ['qrCode'],
- success: (res) => {
- console.log('扫码结果:', res.result);
- },
- fail: (err) => {
- console.error('扫码失败:', err);
- // uni.showToast({ title: '扫码失败', icon: 'none' });
+ success: (res) => {
+ if(res.path) {
+ const sceneParam = res.path.split('scene=')[1];
+ if (sceneParam && sceneParam.indexOf('dp=') > -1) {
+ var encodedScene = encodeURIComponent(sceneParam);
+ res.path = res.path.replace(`scene=${sceneParam}`, `scene=${encodedScene}`);
+ }
+ }
+ var url = `/${res.path}`;
+ uni.navigateTo({ url });
+ },
+ // fail: (err) => {
+ // uni.showToast({
+ // title: '扫码失败'+JSON.stringify(err),
+ // icon: 'none'
+ // })
+ // }
+ complete(res) {
+ // console.log('其他错误:', res);
+ if (res.errMsg === 'scanCode:ok') {
+ console.log('扫码成功:', res.result);
+ } else if (res.errMsg === 'scanCode:fail cancel') {
+ console.log('用户取消扫码');
+ } else {
+ uni.showToast({
+ title: '扫码失败'+JSON.stringify(res.errMsg),
+ icon: 'none'
+ })
}
- });
+ }
+ })
// #endif
// #ifdef H5
diff --git a/components/userCard.vue b/components/userCard.vue
index 6e3ea35..716e456 100644
--- a/components/userCard.vue
+++ b/components/userCard.vue
@@ -151,8 +151,8 @@ export default {
.is-input-border.is-focused {
border-color: #39D067 !important;
- .uni-icons.content-clear-icon.uniui-clear {
- color: #39D067 !important;
+ .uni-icons.uniui-clear {
+ color: #c0c4cc !important;
}
}
}
diff --git a/components/visitorAccount.vue b/components/visitorAccount.vue
index ac4de3f..fe7ec67 100644
--- a/components/visitorAccount.vue
+++ b/components/visitorAccount.vue
@@ -1,7 +1,7 @@
-
+
@@ -90,10 +90,14 @@ export default {
},
methods: {
change(e) {
- if(e[0] != 0) {
- this.$emit('closeEvent')
- return;
+ this.$emit('changeOpen')
+ if(this.isOpen){
+ return
}
+ // if(e[0] != 0) {
+ // this.$emit('closeEvent')
+ // return;
+ // }
const object = {
visitor_id: this.visitor_id,
depart_id: this.depart_id
diff --git a/components/visitorList.vue b/components/visitorList.vue
index 69b6b8e..d31eeb6 100644
--- a/components/visitorList.vue
+++ b/components/visitorList.vue
@@ -19,6 +19,10 @@ export default {
add: {
type: Boolean,
default: () => false
+ },
+ has_visit: {
+ type: Boolean,
+ default: () => false
}
},
data() {
@@ -47,6 +51,7 @@ export default {
param.limit = 10000
var obj = new Object()
+ obj.has_visit = this.has_visit ? 1 : 0
if (this.visitor_id != 0) obj.visitor_id = this.visitor_id
this.$http.req('api/user/get_visitors', obj, 'POST').then(data => {
if (data == -1) return
@@ -91,7 +96,7 @@ export default {
text-align: center;
&.active {
- border: 1rpx solid #5BD07A;
+ border: 2rpx solid #5BD07A;
color: #58CA7F;
font-weight: 500;
background: #F8FFF7;
diff --git a/pages.json b/pages.json
index 0ef2fd1..5aaa838 100644
--- a/pages.json
+++ b/pages.json
@@ -2,7 +2,7 @@
"pages": [{
"path": "pages/index/index",
"style": {
- "navigationBarTitleText": "就诊人"
+ "navigationBarTitleText": "首页"
}
},
{
@@ -74,6 +74,14 @@
"style": {
"navigationBarTitleText": "就诊详情"
}
+ },
+ {
+ "path" : "pages/explain/explain",
+ "style" :
+ {
+ "navigationBarTitleText" : "",
+ "navigationStyle": "custom"
+ }
}
],
"globalStyle": {
diff --git a/pages/book_detail/book_detail.vue b/pages/book_detail/book_detail.vue
index 6eff5f7..6145889 100644
--- a/pages/book_detail/book_detail.vue
+++ b/pages/book_detail/book_detail.vue
@@ -25,7 +25,7 @@
-
+
{{poptitle}}
@@ -263,7 +263,7 @@
&.status_wait{
.status_text{
background: #F8FFF7;
- border: 1rpx solid #5BD07A;
+ border: 2rpx solid #5BD07A;
color: #58CA7F;
}
}
@@ -271,26 +271,26 @@
.status_text{
background: #FFFAF7;
color: #FE6710;
- border: 1px solid #FE6710;
+ border: 2rpx solid #FE6710;
}
}
&.status_down{
.status_text{
background: #FCFCFC;
- border: 1px solid #999999;
+ border: 2rpx solid #999999;
color: #999999;
}
}
&.status_expire,&.status_cancle{
.status_text{
background: #FCFCFC;
- border: 1rpx solid #AEB0B8;
+ border: 2rpx solid #AEB0B8;
color: #B6B8BF;
}
}
&.status_ing{
.status_text{
- border: 1rpx solid #5FA1CB;
+ border: 2rpx solid #5FA1CB;
background: #F7FCFF;
color: #5FA1CB;
}
diff --git a/pages/explain/explain.vue b/pages/explain/explain.vue
new file mode 100644
index 0000000..500148e
--- /dev/null
+++ b/pages/explain/explain.vue
@@ -0,0 +1,265 @@
+
+
+
+
+
+
+ 患者用法
+
+
+
+ 医生指南
+
+
+
+
+
+
+
+ {{item.txt1}}
+ {{item.txt2}}
+
+
+
+
+
+
+
+
+ {{key+1}}
+
+
+ {{item.txt1}}
+ {{item.txt2}}
+
+
+
+
+
+
+
+ 扫码约名医,疗程随时查
+
+
+
+
+
+
+ {{item.txt}}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 3d93e58..c5c409f 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -338,10 +338,11 @@
view{
width: auto;
padding: 0 15rpx;
- min-width: 125rpx;
margin-top: 5rpx;
- line-height: 42rpx;
- text-align: center;
+ justify-content: center;
+ display: flex;
+ align-items: center;
+ height: 42rpx;
font-size: 28rpx;
background: linear-gradient( 288deg, #FFEED2 0%, #FED9A6 100%);
border-radius: 8rpx;
@@ -384,6 +385,12 @@
max-height: 200rpx;
color: #666666;
}
+ .con::-webkit-scrollbar {
+ display: none;
+ width: 0;
+ height: 0;
+ color: transparent;
+ }
}
.title-wrapper{
.title{
@@ -439,7 +446,7 @@
.fixed_hospital{
border-radius: 6rpx;
background: #F7FCFF;
- border: 1rpx solid rgba(9, 131, 208, 0.6);
+ border: 2rpx solid rgba(9, 131, 208, 0.6);
box-sizing: border-box;
width: 123rpx;
height: 40rpx;
diff --git a/pages/modify_visitor/modify_visitor.vue b/pages/modify_visitor/modify_visitor.vue
index 4928c97..82885db 100644
--- a/pages/modify_visitor/modify_visitor.vue
+++ b/pages/modify_visitor/modify_visitor.vue
@@ -134,7 +134,7 @@
if(this.vid){
uni.removeStorageSync('visitor_info_'+ this.vid)
}
- this.$func.toPage('/pages/visitors/visitors')
+ this.$func.toPage('/pages/visitors_new/visitors_new')
},
submit(){
this.checkSubmit()
diff --git a/pages/prebook_list/prebook_list.vue b/pages/prebook_list/prebook_list.vue
index bc07235..39e487e 100644
--- a/pages/prebook_list/prebook_list.vue
+++ b/pages/prebook_list/prebook_list.vue
@@ -1,6 +1,6 @@
-
+
diff --git a/pages/usercenter/usercenter.vue b/pages/usercenter/usercenter.vue
index ad26624..b0f5810 100644
--- a/pages/usercenter/usercenter.vue
+++ b/pages/usercenter/usercenter.vue
@@ -3,7 +3,7 @@
- {{uinfo.user_nick}}
+ {{uinfo.user_code}}