Commit 3a2dec5a by 杨明

log

1 parent 5276709c
...@@ -19,9 +19,9 @@ ...@@ -19,9 +19,9 @@
padding: 40rpx 32rpx calc(40rpx + var(--envSafeAreaInsetBottom)); padding: 40rpx 32rpx calc(40rpx + var(--envSafeAreaInsetBottom));
.title { .title {
font-weight: 500; font-weight: 600;
font-size: 48rpx; font-size: 40rpx;
color: #282829; color: #333333;
margin-bottom: 48rpx; margin-bottom: 48rpx;
} }
......
...@@ -6,16 +6,10 @@ ...@@ -6,16 +6,10 @@
<glsx-image webp src="store-assistant/menu/log-bg.png"></glsx-image> <glsx-image webp src="store-assistant/menu/log-bg.png"></glsx-image>
</view> </view>
<view class="log-box"> <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"> <block wx:for="{{logData.logList}}" wx:key="index">
<view class="title">{{item.title}}</view>
<view class="log-item"> <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"> <block wx:for="{{item.data}}" wx:key="ind" wx:for-item="i" wx:for-index="ind">
<view class="log-content"> <view class="log-content">
<block wx:if="{{i.type == 'text'}}"> <block wx:if="{{i.type == 'text'}}">
...@@ -29,6 +23,7 @@ ...@@ -29,6 +23,7 @@
</view> </view>
</block> </block>
</view> </view>
</block> </block>
</view> </view>
</view> </view>
\ No newline at end of file \ No newline at end of file
...@@ -26,7 +26,6 @@ Component({ ...@@ -26,7 +26,6 @@ Component({
data: { data: {
current: 0, current: 0,
isNew: wx.getStorageSync('LOG'),
menus: [] menus: []
}, },
...@@ -49,11 +48,21 @@ Component({ ...@@ -49,11 +48,21 @@ Component({
this.setData({ this.setData({
show: false show: false
}) })
wx.setStorageSync('LOG', true);
wx.navigateTo({ wx.navigateTo({
url: '/packagesList/log/log', url: '/packagesList/log/log',
}) })
}, },
async getVersionInfo() {
let versionData = await getApp().getVersionInfo()
if (versionData) {
versionData = wx.$versionConfig.compare()
wx.nextTick(() => {
this.setData({
versionData
})
})
}
},
getMenuData(tabs) { getMenuData(tabs) {
let res = [] let res = []
let data = [{ let data = [{
...@@ -86,8 +95,8 @@ Component({ ...@@ -86,8 +95,8 @@ Component({
} }
}, },
lifetimes: { lifetimes: {
// attached() { attached() {
// this.getMenuData() this.getVersionInfo()
// } }
}, },
}) })
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<view class="wrapper-bottom" bindtap="jump"> <view class="wrapper-bottom" bindtap="jump">
<glsx-image class="log" webp src="store-assistant-assemble/menu/log.png"></glsx-image> <glsx-image class="log" webp src="store-assistant-assemble/menu/log.png"></glsx-image>
<text>更新日志</text> <text>更新日志</text>
<view class="icon" wx:if="{{!isNew}}">NEW</view> <view class="icon" wx:if="{{versionData.isNew}}">NEW</view>
<view class="arrow"></view> <view class="arrow"></view>
</view> </view>
</view> </view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!