Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
store-assistant-assemble
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3a2dec5a
authored
Aug 29, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
log
1 parent
5276709c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
18 deletions
packagesList/log/log.scss
packagesList/log/log.wxml
packagesList/outDetail/components/menu/index.js
packagesList/outDetail/components/menu/index.wxml
packagesList/log/log.scss
View file @
3a2dec5
...
...
@@ -19,9 +19,9 @@
padding
:
40rpx
32rpx
calc
(
40rpx
+
var
(
--
envSafeAreaInsetBottom
));
.title
{
font-weight
:
5
00
;
font-size
:
4
8
rpx
;
color
:
#
282829
;
font-weight
:
6
00
;
font-size
:
4
0
rpx
;
color
:
#
333333
;
margin-bottom
:
48rpx
;
}
...
...
packagesList/log/log.wxml
View file @
3a2dec5
...
...
@@ -6,16 +6,10 @@
<glsx-image webp src="store-assistant/menu/log-bg.png"></glsx-image>
</view>
<view class="log-box">
<view class="title">{{logData.title}}</view>
<view class="sub-title">
{{logData.subtitle}}
</view>
<view class="date">{{logData.date}}</view>
<block wx:for="{{logData.logList}}" wx:key="index">
<view class="title">{{item.title}}</view>
<view class="log-item">
<view class="log-title text-center">
<view class="text">{{item.title}}</view>
</view>
<block wx:for="{{item.data}}" wx:key="ind" wx:for-item="i" wx:for-index="ind">
<view class="log-content">
<block wx:if="{{i.type == 'text'}}">
...
...
@@ -29,6 +23,7 @@
</view>
</block>
</view>
</block>
</block>
</view>
</view>
\ No newline at end of file
packagesList/outDetail/components/menu/index.js
View file @
3a2dec5
...
...
@@ -26,7 +26,6 @@ Component({
data
:
{
current
:
0
,
isNew
:
wx
.
getStorageSync
(
'LOG'
),
menus
:
[]
},
...
...
@@ -49,11 +48,21 @@ Component({
this
.
setData
({
show
:
false
})
wx
.
setStorageSync
(
'LOG'
,
true
);
wx
.
navigateTo
({
url
:
'/packagesList/log/log'
,
})
},
async
getVersionInfo
()
{
let
versionData
=
await
getApp
().
getVersionInfo
()
if
(
versionData
)
{
versionData
=
wx
.
$versionConfig
.
compare
()
wx
.
nextTick
(()
=>
{
this
.
setData
({
versionData
})
})
}
},
getMenuData
(
tabs
)
{
let
res
=
[]
let
data
=
[{
...
...
@@ -86,8 +95,8 @@ Component({
}
},
lifetimes
:
{
//
attached() {
// this.getMenuData
()
//
}
attached
()
{
this
.
getVersionInfo
()
}
},
})
packagesList/outDetail/components/menu/index.wxml
View file @
3a2dec5
...
...
@@ -13,7 +13,7 @@
<view class="wrapper-bottom" bindtap="jump">
<glsx-image class="log" webp src="store-assistant-assemble/menu/log.png"></glsx-image>
<text>更新日志</text>
<view class="icon" wx:if="{{
!
isNew}}">NEW</view>
<view class="icon" wx:if="{{
versionData.
isNew}}">NEW</view>
<view class="arrow"></view>
</view>
</view>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment