Browse Source

体验走查问题处理 p0级别

master
kola-web 4 months ago
parent
commit
ba3a048ae7
  1. 2
      src/components/global-toast/index.scss
  2. 24
      src/pages/article/index.scss
  3. 2
      src/pages/article/index.ts
  4. 4
      src/pages/article/index.wxml
  5. 8
      src/pages/classify/index.scss
  6. 9
      src/pages/classify/index.wxml
  7. 2
      src/pages/collection/index.ts
  8. 4
      src/pages/collection/index.wxml
  9. 22
      src/pages/my/index.ts
  10. 4
      src/pages/search/index.wxml
  11. 2
      src/pages/topic/index.ts

2
src/components/global-toast/index.scss

@ -1,7 +1,7 @@
.popup1 { .popup1 {
padding: 110rpx 0 0; padding: 110rpx 0 0;
width: 651rpx; width: 651rpx;
height: 781rpx; height: 820rpx;
box-sizing: border-box; box-sizing: border-box;
.title { .title {

24
src/pages/article/index.scss

@ -68,9 +68,25 @@
display: block; display: block;
margin-top: 30rpx; margin-top: 30rpx;
.custom-button { .custom-button {
width: 64rpx; position: relative;
height: 64rpx; flex-shrink: 0;
background-color: transparent; width: 20rpx;
height: 20rpx;
background: #ffffff;
border-radius: 50%;
border: 2rpx solid #3795f7;
box-sizing: border-box;
&::after {
content: '';
display: block;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 64rpx;
height: 64rpx;
background-color: transparent;
}
} }
} }
} }
@ -203,7 +219,7 @@
background: rgba(55, 149, 247, 0.06); background: rgba(55, 149, 247, 0.06);
} }
} }
.place-row{ .place-row {
height: 120rpx; height: 120rpx;
} }
} }

2
src/pages/article/index.ts

@ -137,7 +137,7 @@ Page({
data: { BookId: Id }, data: { BookId: Id },
}).then(() => { }).then(() => {
wx.showToast({ wx.showToast({
title: '收藏成功', title: '您已收藏这本书,可在我的页查看',
icon: 'none', icon: 'none',
}); });
this.setData({ this.setData({

4
src/pages/article/index.wxml

@ -3,10 +3,10 @@
<view class="page-title">{{chapter.ChapterName}}</view> <view class="page-title">{{chapter.ChapterName}}</view>
<view class="page-info"> <view class="page-info">
<view class="page-date">{{book.PublishDate}}</view> <view class="page-date">{{book.PublishDate}}</view>
<view class="view-num"> <!-- <view class="view-num">
<image class="icon" src="{{imageUrl}}icon-eye.png?t={{Timestamp}}"></image> <image class="icon" src="{{imageUrl}}icon-eye.png?t={{Timestamp}}"></image>
{{~~book.OperateNum + ~~book.BrowseNum}} {{~~book.OperateNum + ~~book.BrowseNum}}
</view> </view> -->
</view> </view>
<view class="audio-bar" wx:if="{{chapter.AudioUrl}}"> <view class="audio-bar" wx:if="{{chapter.AudioUrl}}">
<view class="a-header"> <view class="a-header">

8
src/pages/classify/index.scss

@ -2,13 +2,15 @@ page {
background-color: #f3f4f5; background-color: #f3f4f5;
} }
.page { .page {
padding-top: 100rpx;
padding-bottom: 80rpx; padding-bottom: 80rpx;
.scroll { .scroll {
position: sticky; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
z-index: 10; z-index: 100000000000;
width: 100%;
background-color: #fff; background-color: #fff;
} }
.nav { .nav {
@ -64,7 +66,7 @@ page {
} }
} }
} }
.der{ .der {
margin-top: 32rpx; margin-top: 32rpx;
font-size: 28rpx; font-size: 28rpx;
color: #999999; color: #999999;

9
src/pages/classify/index.wxml

@ -14,6 +14,7 @@
</view> </view>
</view> </view>
</scroll-view> </scroll-view>
<view class="types" wx:if="{{CateId && cateSecondList.length}}"> <view class="types" wx:if="{{CateId && cateSecondList.length}}">
<view class="type {{!CateSecondId && 'active'}}" bind:tap="handleSecondCate">全部</view> <view class="type {{!CateSecondId && 'active'}}" bind:tap="handleSecondCate">全部</view>
<view <view
@ -33,8 +34,8 @@
<view class="type">{{item.CateName}}{{item.CateSecondName ? '/'+item.CateSecondName : ''}}</view> <view class="type">{{item.CateName}}{{item.CateSecondName ? '/'+item.CateSecondName : ''}}</view>
<view class="stat"> <view class="stat">
<view class="s-item"> <view class="s-item">
<image class="icon" src="{{imageUrl}}icon-eye.png?t={{Timestamp}}"></image> <!-- <image class="icon" src="{{imageUrl}}icon-eye.png?t={{Timestamp}}"></image> -->
{{~~item.OperateNum + ~~item.BrowseNum}} 阅读 {{~~item.OperateNum + ~~item.BrowseNum}}
</view> </view>
<view <view
class="s-item active" class="s-item active"
@ -62,8 +63,8 @@
<view class="type">{{item.CateName}}{{item.CateSecondName ? '/'+item.CateSecondName : ''}}</view> <view class="type">{{item.CateName}}{{item.CateSecondName ? '/'+item.CateSecondName : ''}}</view>
<view class="stat"> <view class="stat">
<view class="s-item"> <view class="s-item">
<image class="icon" src="{{imageUrl}}icon-eye.png?t={{Timestamp}}"></image> <!-- <image class="icon" src="{{imageUrl}}icon-eye.png?t={{Timestamp}}"></image> -->
{{~~item.OperateNum + ~~item.BrowseNum}} 阅读 {{~~item.OperateNum + ~~item.BrowseNum}}
</view> </view>
<view <view
class="s-item active" class="s-item active"

2
src/pages/collection/index.ts

@ -53,7 +53,7 @@ Page({
data: { BookId }, data: { BookId },
}).then(() => { }).then(() => {
wx.showToast({ wx.showToast({
title: '收藏成功', title: '您已收藏这本书,可在我的页查看',
icon: 'none', icon: 'none',
}); });
this.setData({ this.setData({

4
src/pages/collection/index.wxml

@ -16,8 +16,8 @@
<view class="type">{{item.CateName}}{{item.CateSecondName ? '/'+item.CateSecondName : ''}}</view> <view class="type">{{item.CateName}}{{item.CateSecondName ? '/'+item.CateSecondName : ''}}</view>
<view class="stat"> <view class="stat">
<view class="s-item"> <view class="s-item">
<image class="icon" src="{{imageUrl}}icon-eye.png?t={{Timestamp}}"></image> <!-- <image class="icon" src="{{imageUrl}}icon-eye.png?t={{Timestamp}}"></image> -->
{{~~item.OperateNum + ~~item.BrowseNum}} 阅读 {{~~item.OperateNum + ~~item.BrowseNum}}
</view> </view>
<view <view
class="s-item active" class="s-item active"

22
src/pages/my/index.ts

@ -60,18 +60,24 @@ Page({
}); });
}, },
handleOffice() { handleOffice() {
this.setData({ wx.hideTabBar({
toastShow: true, success: () => {
toastType: 1, this.setData({
toastShow: true,
toastType: 1,
});
},
}); });
wx.hideTabBar({});
}, },
handleCompanyOffice() { handleCompanyOffice() {
this.setData({ wx.hideTabBar({
toastShow: true, success: () => {
toastType: 2, this.setData({
toastShow: true,
toastType: 2,
});
},
}); });
wx.hideTabBar({});
}, },
handleToastClose() { handleToastClose() {
this.setData({ this.setData({

4
src/pages/search/index.wxml

@ -32,8 +32,8 @@
<view class="type">{{item.CateName}}{{item.CateSecondName ? '/'+item.CateSecondName : ''}}</view> <view class="type">{{item.CateName}}{{item.CateSecondName ? '/'+item.CateSecondName : ''}}</view>
<view class="stat"> <view class="stat">
<view class="s-item"> <view class="s-item">
<image class="icon" src="{{imageUrl}}icon-eye.png?t={{Timestamp}}"></image> <!-- <image class="icon" src="{{imageUrl}}icon-eye.png?t={{Timestamp}}"></image> -->
{{~~item.OperateNum + ~~item.BrowseNum}} 阅读 {{~~item.OperateNum + ~~item.BrowseNum}}
</view> </view>
</view> </view>
</view> </view>

2
src/pages/topic/index.ts

@ -2,7 +2,7 @@ const app = getApp<IAppOption>();
Page({ Page({
data: { data: {
nav: 11, nav: 0,
percentage: 0, percentage: 0,
question: [] as { questionId: string; title: string; answer?: '1' | '2' }[], question: [] as { questionId: string; title: string; answer?: '1' | '2' }[],

Loading…
Cancel
Save