This commit is contained in:
lanzhihui 2024-12-24 16:58:08 +08:00
parent 9e48545607
commit 990007f340
7 changed files with 48 additions and 8 deletions

View File

@ -35,7 +35,7 @@ wepy.app({
} }
}, },
globalData: { globalData: {
versions: 'v5.5.83', // 版本号 versions: 'v5.5.87', // 版本号
navBarHeight: 0, // 导航栏高度 navBarHeight: 0, // 导航栏高度
navRight: 0, // 胶囊距右方间距(方保持左、右间距一致) navRight: 0, // 胶囊距右方间距(方保持左、右间距一致)
navTop: 0, // 胶囊距顶部间距 navTop: 0, // 胶囊距顶部间距

View File

@ -36,7 +36,7 @@ export const service = {
// 添加好友 // 添加好友
addFriend: `${host}/friend/users`, addFriend: `${host}/friend/users`,
// 关注某人 // 关注某人
follow: `${host}/follow/users`, follow: `${host}/follow/user`,
// 我的粉丝 // 我的粉丝
followers: `${host}/followers`, followers: `${host}/followers`,
// 我的好友 // 我的好友

View File

@ -178,7 +178,8 @@ wepy.page({
navTop: 0, navTop: 0,
StatusBar: 0, StatusBar: 0,
CustomBar: 0, CustomBar: 0,
navHeight: 0 navHeight: 0,
user_id: wx.getStorageSync('user_id')
}, },
methods: { methods: {
getDetail() { getDetail() {
@ -279,6 +280,9 @@ wepy.page({
vm.dynamicList.splice(vm.selectIndex, 1) vm.dynamicList.splice(vm.selectIndex, 1)
} }
}, },
gotoRedirect (url) {
wx.redirectTo({url: url})
},
// 下拉加载中 // 下拉加载中
onPulling() { onPulling() {
let vm = this let vm = this
@ -353,6 +357,34 @@ wepy.page({
} }
vm.getDetail() vm.getDetail()
vm.getList() vm.getList()
},
async onShareAppMessage(res) {
let that = this
let openid = wx.getStorageSync('openid')
let fromUserID = wx.getStorageSync('user_id')
let imgUrl = `${that.detail.back_image}`
let url = `/pages/dynamic/hotTopic?id=${that.id}&from_openid=${openid}&share_user_id=${that.user_id}&from_user_id=${fromUserID}`
console.log(url)
return {
title: `#${that.detail.name}#`,
path: url,
// imageUrl: 'https://images.ufutx.com/202004/29/baac955e5878e0cb03c17eef0c92f473.jpeg',
imageUrl: imgUrl,
success: function (res) {
wx.showToast({
title: '转发成功',
icon: 'success',
duration: 1500
})
var shareTickets = res.shareTickets
if (shareTickets.length == 0) {
return false
}
},
fail: function (res) {
// 转发失败
}
}
} }
}) })
</script> </script>

View File

@ -353,7 +353,7 @@ wepy.page({
topic_id: vm.id * 1, topic_id: vm.id * 1,
content: vm.value, content: vm.value,
photos: vm.imgList, photos: vm.imgList,
aliyun_video_id: vm.videoId, aliyun_video_id: vm.imgList.length > 0 ? '' : vm.videoId,
address: vm.address == '我在哪里' ? '' : vm.address, address: vm.address == '我在哪里' ? '' : vm.address,
is_hot: vm.hot * 1 is_hot: vm.hot * 1
} }
@ -441,6 +441,7 @@ wepy.page({
success(res) { success(res) {
vm.latitude = res.latitude vm.latitude = res.latitude
vm.longitude = res.longitude vm.longitude = res.longitude
vm.showCon = false
wx.chooseLocation({ wx.chooseLocation({
latitude: res.latitude, latitude: res.latitude,
longitude: res.longitude, longitude: res.longitude,

View File

@ -382,6 +382,8 @@ wepy.page({
vm.$refs.pageScroll.showBackTopBtn = top > 380 vm.$refs.pageScroll.showBackTopBtn = top > 380
}, },
onShow() { onShow() {
this.userInfo = wx.getStorageSync('userInfo')
console.log(this.userInfo, 'dd--')
}, },
onLoad(e) { onLoad(e) {
let vm = this let vm = this
@ -389,7 +391,6 @@ wepy.page({
vm.buImg = 'https://images.ufutx.com/202106/21/42c2796abf4217cd79871c29ec794ca4.png' vm.buImg = 'https://images.ufutx.com/202106/21/42c2796abf4217cd79871c29ec794ca4.png'
vm.dialogIng = 'https://images.ufutx.com/202106/21/0e7d701cd1280a9b2ecffd1287c9abd1.png' vm.dialogIng = 'https://images.ufutx.com/202106/21/0e7d701cd1280a9b2ecffd1287c9abd1.png'
vm.getList() vm.getList()
vm.userInfo = wx.getStorageSync('userInfo')
console.log(vm.userInfo.rank_id, '7777777777') console.log(vm.userInfo.rank_id, '7777777777')
} }
}) })

View File

@ -582,6 +582,7 @@ wepy.page({
} }
}, },
onShow() { onShow() {
this.userInfo = wx.getStorageSync('userInfo')
}, },
onLoad(e) { onLoad(e) {
let vm = this let vm = this
@ -590,7 +591,6 @@ wepy.page({
} }
vm.getList() vm.getList()
vm.getFansList() vm.getFansList()
vm.userInfo = wx.getStorageSync('userInfo')
} }
}) })
</script> </script>

View File

@ -53,7 +53,7 @@
</block> </block>
</view> </view>
</view> </view>
<UnlockingDialog :modalName="unlockIngModalName" @unlockingCut="unlockingCut"></UnlockingDialog> <UnlockingDialog :modalName="unlockIngModalName" @unlockingCut="unlockingCut" @toUpdateCut-="toUpdateCut"></UnlockingDialog>
</template> </template>
<script> <script>
@ -334,7 +334,13 @@
unlockingCut(e) { unlockingCut(e) {
console.log(e, '---') console.log(e, '---')
this.unlockIngModalName = e this.unlockIngModalName = e
} },
toUpdateCut(e) {
let userInfo = wx.getStorageSync('userInfo')
userInfo.rank_id = 9
wx.setStorageSync('userInfo', userInfo)
this.vipData()
}
} }
}) })
</script> </script>