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. 9
      src/patient/pages/infusionCenter/index.json
  9. 1
      src/patient/pages/interactivePatient/index.json
  10. 9
      src/patient/pages/liveResult/index.json
  11. 13
      src/patient/pages/nrdlTable/index.json
  12. 1
      src/patient/pages/referral/index.json
  13. 9
      src/patient/pages/signIn/index.json
  14. 17
      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({
], ],
userInfo: {}, userInfo: {},
showRed: false, showRed: false,
anyWhere: false,
config: {} as any, config: {} as any,
}, },
@ -58,15 +57,11 @@ Component({
const active = this.data.list.findIndex((item) => item.pagePath === pagePath); const active = this.data.list.findIndex((item) => item.pagePath === pagePath);
this.setData({ this.setData({
active, active,
anyWhere: app.globalData.anyWhere,
}); });
this.setData({ this.setData({
showRed: app.globalData.showRed, showRed: app.globalData.showRed,
}); });
// getApp().registerListener(() => { // getApp().registerListener(() => {
// this.setData({
// anyWhere: app.globalData.anyWhere,
// });
// wx.ajax({ // wx.ajax({
// method: 'GET', // method: 'GET',
// url: '?r=zd/common/get-config', // url: '?r=zd/common/get-config',
@ -85,9 +80,6 @@ Component({
const { list, config } = this.data; const { list, config } = this.data;
const pagePath = list[index].pagePath; const pagePath = list[index].pagePath;
app.globalData.BeginnerCardId = ''; app.globalData.BeginnerCardId = '';
this.setData({
anyWhere: app.globalData.anyWhere,
});
if (pagePath == '/patient/pages/my/index') { if (pagePath == '/patient/pages/my/index') {
app.zdPermissionVerification(2, 0, `/patient/pages/index/index`).then(() => { app.zdPermissionVerification(2, 0, `/patient/pages/index/index`).then(() => {
wx.reLaunch({ wx.reLaunch({

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save