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 @@