Commit 3a2dec5a by 杨明

log

1 parent 5276709c
......@@ -19,9 +19,9 @@
padding: 40rpx 32rpx calc(40rpx + var(--envSafeAreaInsetBottom));
.title {
font-weight: 500;
font-size: 48rpx;
color: #282829;
font-weight: 600;
font-size: 40rpx;
color: #333333;
margin-bottom: 48rpx;
}
......
......@@ -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
......@@ -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()
}
},
})
......@@ -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>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!