update 修改
This commit is contained in:
parent
4198e8b6ab
commit
2367995a9d
@ -3,6 +3,10 @@
|
|||||||
page {
|
page {
|
||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
}
|
}
|
||||||
|
.ui-information{
|
||||||
|
width: 100vw;
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
.ui-abnormal{
|
.ui-abnormal{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-bottom: 300rpx;
|
padding-bottom: 300rpx;
|
||||||
|
|||||||
@ -5,6 +5,8 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.ui-container{
|
.ui-container{
|
||||||
|
padding-bottom: 100rpx;
|
||||||
|
|
||||||
.ui-no-data-icon{
|
.ui-no-data-icon{
|
||||||
width: 250rpx;
|
width: 250rpx;
|
||||||
height: 250rpx;
|
height: 250rpx;
|
||||||
@ -92,6 +94,7 @@ page {
|
|||||||
.rit{
|
.rit{
|
||||||
width: 540rpx;
|
width: 540rpx;
|
||||||
padding: 20rpx;
|
padding: 20rpx;
|
||||||
|
height: fit-content;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
flex-flow: column;
|
flex-flow: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -161,7 +164,7 @@ page {
|
|||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
<block v-else>
|
<block v-else>
|
||||||
<block v-if="item.type != 'friend' && item.type != 'marketing'">
|
<block v-if="item.type != 'friend' && item.type != 'marketing' && item.type != 'gift'">
|
||||||
<view v-if="item.type == 'remind_profile'" class="font_24 color-666 friend-text">{{item.content}}>>点击查看</view>
|
<view v-if="item.type == 'remind_profile'" class="font_24 color-666 friend-text">{{item.content}}>>点击查看</view>
|
||||||
<view v-else class="font_24 color-666 friend-text">点击查看>></view>
|
<view v-else class="font_24 color-666 friend-text">点击查看>></view>
|
||||||
</block>
|
</block>
|
||||||
@ -251,37 +254,20 @@ wepy.page({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
jumpH5({path_url, path_type}) {
|
|
||||||
let vm = this
|
|
||||||
wx.login({
|
|
||||||
success: () => {
|
|
||||||
let data = {code: code}
|
|
||||||
vm.$post({url: `${service.host}/chat/message/send`, data}).then(({code, data}) => {
|
|
||||||
if (code == 0) {
|
|
||||||
if (path_type == 2) {
|
|
||||||
wx.navigateTo({url: `/pages/books/bookDetail?url=${encodeURIComponent(path_url)}`})
|
|
||||||
} else {
|
|
||||||
wx.navigateTo({url: path_url})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}).catch(() => {
|
|
||||||
})
|
|
||||||
},
|
|
||||||
fail: () => {
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
jumpPath(e) {
|
jumpPath(e) {
|
||||||
let url = ``
|
let url = ``
|
||||||
if (e.type == 'system' || e.type == 'gift' || e.type == 'marketing') {
|
if (e.type == 'system' || e.type == 'gift' || e.type == 'marketing') {
|
||||||
return
|
if (!e.path_url) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
wx.navigateTo({url: `/pages/books/bookDetail?url=${encodeURIComponent(e.path_url)}`})
|
||||||
}
|
}
|
||||||
if (e.type == 'follow' || e.type == 'friend' || e.type == 'remind_profile') {
|
if (e.type == 'follow' || e.type == 'friend' || e.type == 'remind_profile') {
|
||||||
url = `/pages/home/information?id=${e.user_id}`
|
url = `/pages/home/information?id=${e.user_id}`
|
||||||
} else if (e.type == 'temp') {
|
} else if (e.type == 'temp') {
|
||||||
url = `/pages/users/tempMember`
|
url = `/pages/users/tempMember`
|
||||||
} else if (e.type == 'moment' || e.type == 'change_moment_topic') {
|
} else if (e.type == 'moment' || e.type == 'change_moment_topic') {
|
||||||
url = `/pages/dynamic/feedDetail?id=${e.type_id}`
|
url = `/pages/dynamic/dynamicDetail?id=${e.type_id}`
|
||||||
}
|
}
|
||||||
wx.navigateTo({url: url})
|
wx.navigateTo({url: url})
|
||||||
},
|
},
|
||||||
@ -312,8 +298,9 @@ wepy.page({
|
|||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
},
|
},
|
||||||
created() {
|
onLoad() {
|
||||||
this.getList()
|
let vm = this
|
||||||
|
vm.getList()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -232,7 +232,7 @@ wepy.page({
|
|||||||
tabBarList: ['动态'],
|
tabBarList: ['动态'],
|
||||||
tabBarIndex: 0,
|
tabBarIndex: 0,
|
||||||
|
|
||||||
admin: '1',
|
admin: false,
|
||||||
dynamicTabs: ['推荐', '最新'],
|
dynamicTabs: ['推荐', '最新'],
|
||||||
dynamicTabsIndex: 0,
|
dynamicTabsIndex: 0,
|
||||||
dynamicList: [],
|
dynamicList: [],
|
||||||
@ -427,6 +427,7 @@ wepy.page({
|
|||||||
let vm = this
|
let vm = this
|
||||||
vm.getList()
|
vm.getList()
|
||||||
vm.getHotTopics()
|
vm.getHotTopics()
|
||||||
|
vm.admin = wx.getStorageSync('userInfo').is_moment_admin
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user