Browse Source

修改页面配置

dev
kola-web 4 weeks ago
parent
commit
d617e32e7d
  1. 8
      src/components/patient-tab-bar/index.ts
  2. 3
      src/components/patient-tab-bar/index.wxml
  3. 1
      src/patient/pages/adl/index.json
  4. 1
      src/patient/pages/adlResult/index.json
  5. 1
      src/patient/pages/adlShare/index.json
  6. 10
      src/patient/pages/cancellation/index.ts
  7. 1
      src/patient/pages/doctor/siteShare/index.json
  8. 1
      src/patient/pages/infusionCenter/index.json
  9. 1
      src/patient/pages/interactivePatient/index.json
  10. 1
      src/patient/pages/liveResult/index.json
  11. 1
      src/patient/pages/nrdlTable/index.json
  12. 1
      src/patient/pages/referral/index.json
  13. 1
      src/patient/pages/signIn/index.json
  14. 1
      src/patient/pages/smallPage/index.json
  15. 1
      src/patient/pages/webview/index.json

8
src/components/patient-tab-bar/index.ts

@ -41,7 +41,6 @@ Component({ @@ -41,7 +41,6 @@ Component({
],
userInfo: {},
showRed: false,
anyWhere: false,
config: {} as any,
},
@ -58,15 +57,11 @@ Component({ @@ -58,15 +57,11 @@ Component({
const active = this.data.list.findIndex((item) => item.pagePath === pagePath);
this.setData({
active,
anyWhere: app.globalData.anyWhere,
});
this.setData({
showRed: app.globalData.showRed,
});
// getApp().registerListener(() => {
// this.setData({
// anyWhere: app.globalData.anyWhere,
// });
// wx.ajax({
// method: 'GET',
// url: '?r=zd/common/get-config',
@ -85,9 +80,6 @@ Component({ @@ -85,9 +80,6 @@ Component({
const { list, config } = this.data;
const pagePath = list[index].pagePath;
app.globalData.BeginnerCardId = '';
this.setData({
anyWhere: app.globalData.anyWhere,
});
if (pagePath == '/patient/pages/my/index') {
app.zdPermissionVerification(2, 0, `/patient/pages/index/index`).then(() => {
wx.reLaunch({

3
src/components/patient-tab-bar/index.wxml

@ -2,13 +2,10 @@ @@ -2,13 +2,10 @@
<block wx:for="{{list}}" wx:key="*this">
<van-tabbar-item
class="tab-item"
wx:if="{{ index != 3 || !anyWhere}}"
bind:tap="handleNav"
data-index="{{index}}"
icon="{{imageUrl}}za-images/tabbar/{{active==index ? (theme === 'DRUG' ? 'drug-' :'' ) + item.iconActive: item.icon}}.png"
>
<!-- <image class="icon" mode="aspectFit" slot="icon" src="{{imageUrl}}/tabbar/{{item.icon}}.png" /> -->
<!-- <image class="icon" mode="aspectFit" slot="icon-active" src="{{imageUrl}}/tabbar/{{item.iconActive}}.png" /> -->
<view class="name {{index==active && (theme === 'DRUG' ? 'drug-active' :'active')}}">{{item.text}}</view>
<view class="hot"></view>
</van-tabbar-item>

1
src/patient/pages/adl/index.json

@ -1,5 +1,4 @@ @@ -1,5 +1,4 @@
{
"navigationStyle": "custom",
"usingComponents": {
"navBar": "/components/zd-navBar/navBar",
"free-audio": "/components/freeAudio/index"

1
src/patient/pages/adlResult/index.json

@ -1,5 +1,4 @@ @@ -1,5 +1,4 @@
{
"navigationStyle": "custom",
"usingComponents": {
"navBar": "/components/zd-navBar/navBar",
"van-icon": "@vant/weapp/icon/index",

1
src/patient/pages/adlShare/index.json

@ -1,5 +1,4 @@ @@ -1,5 +1,4 @@
{
"navigationStyle": "custom",
"usingComponents": {
"navBar": "/components/zd-navBar/navBar",
"free-audio": "/components/freeAudio/index",

10
src/patient/pages/cancellation/index.ts

@ -31,11 +31,11 @@ Page({ @@ -31,11 +31,11 @@ Page({
loading: true,
}).then(() => {
app.globalData.backPage = '';
app.globalData.zdUserInfo = {};
app.updateLoginInfo(() => {
wx.reLaunch({
url: '/patient/pages/login/index',
});
app.globalData.loginState = '';
app.globalData.userInfo = {};
app.startLogin();
wx.reLaunch({
url: '/pages/login/index',
});
});
}

1
src/patient/pages/doctor/siteShare/index.json

@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
{
"component": true,
"navigationStyle": "default",
"usingComponents": {
"van-popup": "@vant/weapp/popup/index",
"van-icon": "@vant/weapp/icon/index"

1
src/patient/pages/infusionCenter/index.json

@ -1,4 +1,5 @@ @@ -1,4 +1,5 @@
{
"navigationBarTitleText": "输注中心",
"navigationStyle": "default",
"usingComponents": {}
}

1
src/patient/pages/interactivePatient/index.json

@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
{
"navigationBarTitleText": "互动",
"navigationStyle": "default",
"usingComponents": {
"van-icon": "@vant/weapp/icon/index",
"van-loading": "@vant/weapp/loading/index",

1
src/patient/pages/liveResult/index.json

@ -1,4 +1,5 @@ @@ -1,4 +1,5 @@
{
"navigationBarTitleText": "",
"navigationStyle": "default",
"usingComponents": {}
}

1
src/patient/pages/nrdlTable/index.json

@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
{
"navigationBarTitleText": "城市惠民保自付费用报销list",
"navigationStyle": "default",
"usingComponents": {
"timeOut": "/components/timeOut/index"
}

1
src/patient/pages/referral/index.json

@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
{
"navigationBarTitleText": "复诊记录",
"navigationStyle": "default",
"usingComponents": {
"referralFrom": "/components/referralFrom/index"
}

1
src/patient/pages/signIn/index.json

@ -1,4 +1,5 @@ @@ -1,4 +1,5 @@
{
"navigationStyle": "default",
"navigationBarTitleText": "报名",
"usingComponents": {}
}

1
src/patient/pages/smallPage/index.json

@ -1,6 +1,7 @@ @@ -1,6 +1,7 @@
{
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "",
"navigationStyle": "default",
"usingComponents": {
"van-popup": "@vant/weapp/popup/index",
"mp-html": "mp-html"

1
src/patient/pages/webview/index.json

@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
{
"navigationBarTitleText": "",
"navigationStyle": "default",
"usingComponents": {
"toast": "/components/toast/index"
}

Loading…
Cancel
Save