Browse Source

bug处理

main
kola-web 3 months ago
parent
commit
4b34142408
  1. 36
      src/custom-tab-bar/index.scss
  2. 8
      src/custom-tab-bar/index.ts
  3. BIN
      src/images/icon-clsoe-green.png
  4. BIN
      src/images/invite-title.png
  5. BIN
      src/images/set-info-result-title.png
  6. 2
      src/module1/pages/casesFeedback/index.wxml
  7. 2
      src/module1/pages/entryCases/index.wxml
  8. 3
      src/module1/pages/userInfo/index.ts
  9. 7
      src/pages/cases/index.ts
  10. 7
      src/pages/chatRoomList/index.ts
  11. 2
      src/pages/home/index.ts
  12. 7
      src/pages/my/index.ts

36
src/custom-tab-bar/index.scss

@ -16,20 +16,22 @@
height: 94rpx; height: 94rpx;
} }
.popup-tip { .popup-tip {
padding: 22rpx 48rpx; padding: 22rpx 24rpx;
position: absolute; position: absolute;
top: -50rpx; top: -60rpx;
left: 50%; left: 50%;
transform: translate(-50%, -100%); transform: translate(-50%, -100%);
border-radius: 16rpx; border-radius: 16rpx;
background-color: rgba(20, 21, 21, 0.76); background-color: #fff;
box-shadow: 0 4rpx 11rpx rgba(0, 0, 0, 0.08);
.content { .content {
text-align: center; text-align: center;
font-size: 28rpx; font-size: 32rpx;
color: #fff; color: #141515;
white-space: nowrap; white-space: nowrap;
line-height: 32rpx; line-height: 48rpx;
.plus { .plus {
color: #01b4c5;
font-size: 52rpx; font-size: 52rpx;
font-weight: bold; font-weight: bold;
} }
@ -40,18 +42,24 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
gap: 24rpx; gap: 24rpx;
white-space: nowrap;
.cancel { .cancel {
padding: 8rpx 28rpx; padding: 16rpx 58rpx;
font-size: 24rpx; font-size: 32rpx;
color: rgba(255, 255, 255, 1); color: #01b4c5;
line-height: 32rpx;
border: 1px solid #01b4c5;
border-radius: 120rpx;
} }
.ok { .ok {
padding: 8rpx 28rpx; padding: 18rpx 58rpx;
font-size: 24rpx; font-size: 24rpx;
color: rgba(20, 21, 21, 1); color: rgba(20, 21, 21, 1);
font-size: 32rpx;
color: #fff;
line-height: 32rpx; line-height: 32rpx;
border-radius: 80rpx; border-radius: 120rpx;
background-color: #fff; background: linear-gradient(90deg, #00b4c5 0%, #54e2b4 100%);
} }
} }
&::after { &::after {
@ -64,7 +72,7 @@
height: 0; height: 0;
border-style: solid; border-style: solid;
border-width: 12rpx 12rpx 0 12rpx; border-width: 12rpx 12rpx 0 12rpx;
border-color: rgba(20, 21, 21, 0.76) transparent transparent transparent; border-color: #fff transparent transparent transparent;
} }
} }
} }
@ -98,7 +106,7 @@
width: 16rpx; width: 16rpx;
height: 16rpx; height: 16rpx;
border-radius: 50%; border-radius: 50%;
background-color: #ED4F39; background-color: #ed4f39;
} }
} }
.name { .name {

8
src/custom-tab-bar/index.ts

@ -57,6 +57,14 @@ Component({
} }
}, },
}, },
pageLifetimes: {
show() {
this.setData({
showEntryCase: false,
notice: false,
});
},
},
lifetimes: { lifetimes: {
attached() { attached() {
this.setData({ this.setData({

BIN
src/images/icon-clsoe-green.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
src/images/invite-title.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 42 KiB

BIN
src/images/set-info-result-title.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 54 KiB

2
src/module1/pages/casesFeedback/index.wxml

@ -79,7 +79,7 @@
class="del" class="del"
catch:tap="handleDelFile" catch:tap="handleDelFile"
data-index="{{index}}" data-index="{{index}}"
src="{{imageUrl}}icon-close.png?t={{Timestamp}}" src="{{imageUrl}}icon-clsoe-green.png?t={{Timestamp}}"
></image> ></image>
</view> </view>
</view> </view>

2
src/module1/pages/entryCases/index.wxml

@ -82,7 +82,7 @@
class="del" class="del"
catch:tap="handleDelFile" catch:tap="handleDelFile"
data-index="{{index}}" data-index="{{index}}"
src="{{imageUrl}}icon-close.png?t={{Timestamp}}" src="{{imageUrl}}icon-clsoe-green.png?t={{Timestamp}}"
></image> ></image>
</view> </view>
</view> </view>

3
src/module1/pages/userInfo/index.ts

@ -166,7 +166,7 @@ Page({
title: "确认退出登录?", title: "确认退出登录?",
success(res) { success(res) {
if (res.confirm) { if (res.confirm) {
app.globalData.isLogin = 0 app.globalData.isLogin = 0;
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=takeda/account/reg-logout", url: "?r=takeda/account/reg-logout",
@ -186,6 +186,7 @@ Page({
title: "确认注销该账号?", title: "确认注销该账号?",
success(res) { success(res) {
if (res.confirm) { if (res.confirm) {
app.globalData.isLogin = 0;
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=takeda/account/delete-account", url: "?r=takeda/account/delete-account",

7
src/pages/cases/index.ts

@ -69,12 +69,13 @@ Page({
entryDetail: false, entryDetail: false,
}, },
onLoad() { onLoad() {},
onShow() {
this.getTabBar().setData({ this.getTabBar().setData({
active: 2, active: 2,
showEntryCase: false,
notice: false,
}); });
},
onShow() {
if (this.data.entryDetail) { if (this.data.entryDetail) {
this.setData({ this.setData({
entryDetail: false, entryDetail: false,

7
src/pages/chatRoomList/index.ts

@ -66,12 +66,13 @@ Page({
noReadCount: 0, noReadCount: 0,
}, },
onLoad() { onLoad() {},
onShow() {
this.getTabBar().setData({ this.getTabBar().setData({
active: 3, active: 3,
showEntryCase: false,
notice: false,
}); });
},
onShow() {
app.waitLogin().then(() => { app.waitLogin().then(() => {
this.getBaseInfo(); this.getBaseInfo();
this.getList(); this.getList();

2
src/pages/home/index.ts

@ -22,6 +22,8 @@ Page({
}); });
this.getTabBar().setData({ this.getTabBar().setData({
active: 1, active: 1,
showEntryCase: false,
notice: false,
}); });
app.waitLogin().then(() => { app.waitLogin().then(() => {
this.handleBindDoctor(); this.handleBindDoctor();

7
src/pages/my/index.ts

@ -5,12 +5,13 @@ Page({
userInfo: {}, userInfo: {},
DoctorTitleType: {}, DoctorTitleType: {},
}, },
onLoad() { onLoad() {},
onShow() {
this.getTabBar().setData({ this.getTabBar().setData({
active: 4, active: 4,
showEntryCase: false,
notice: false,
}); });
},
onShow() {
app.waitLogin().then(() => { app.waitLogin().then(() => {
this.getDoctorDict(); this.getDoctorDict();
app.getUserInfo(this, (userInfo) => { app.getUserInfo(this, (userInfo) => {

Loading…
Cancel
Save