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. 2
      src/custom-tab-bar/index.wxml
  4. BIN
      src/images/icon-clsoe-green.png
  5. BIN
      src/images/invite-title.png
  6. BIN
      src/images/set-info-result-title.png
  7. 2
      src/module1/pages/casesFeedback/index.wxml
  8. 2
      src/module1/pages/entryCases/index.wxml
  9. 3
      src/module1/pages/userInfo/index.ts
  10. 7
      src/pages/cases/index.ts
  11. 7
      src/pages/chatRoomList/index.ts
  12. 2
      src/pages/home/index.ts
  13. 7
      src/pages/my/index.ts

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

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

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

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

2
src/custom-tab-bar/index.wxml

@ -17,7 +17,7 @@ @@ -17,7 +17,7 @@
</view>
</view>
<view
class="tab-item {{active===item.activeIndex &&'active'}}"
class="tab-item {{active===item.activeIndex && 'active'}}"
wx:elif="{{!item.custom}}"
bind:tap="handleTab"
data-index="{{index}}"

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

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

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

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

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

7
src/pages/cases/index.ts

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

7
src/pages/chatRoomList/index.ts

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

2
src/pages/home/index.ts

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

7
src/pages/my/index.ts

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

Loading…
Cancel
Save