Commit 364f0c1c authored by 王炽's avatar 王炽

Merge branch 'xingmaLab20250820' of http://gitlab2.dui88.com/fh/20250528_FHQ1...

Merge branch 'xingmaLab20250820' of http://gitlab2.dui88.com/fh/20250528_FHQ1 into xingmaLab20250820
parents d0d021ed e5f3586c
...@@ -155,6 +155,8 @@ const onGetPhoneNumber = (e, action) => { ...@@ -155,6 +155,8 @@ const onGetPhoneNumber = (e, action) => {
// 方法 // 方法
const handleLikeClick = async () => { const handleLikeClick = async () => {
//TODO:埋点
try { try {
const recordId = detailData.value.id const recordId = detailData.value.id
if (!recordId) { if (!recordId) {
...@@ -203,7 +205,7 @@ const handleShareClick = () => { ...@@ -203,7 +205,7 @@ const handleShareClick = () => {
// 使用 open-type="share" 时,点击事件可以为空 // 使用 open-type="share" 时,点击事件可以为空
// 分享内容通过页面配置自动设置 // 分享内容通过页面配置自动设置
console.log('分享按钮被点击') console.log('分享按钮被点击')
//TODO:埋点
// 手动触发分享(如果需要的话) // 手动触发分享(如果需要的话)
// uni.showShareMenu({ // uni.showShareMenu({
// withShareTicket: true, // withShareTicket: true,
......
...@@ -206,6 +206,15 @@ const publishCountInfo = computed(() => { ...@@ -206,6 +206,15 @@ const publishCountInfo = computed(() => {
// 图片上传处理 // 图片上传处理
const handleImageUpload = () => { const handleImageUpload = () => {
if (uploadedImage.value) {
// 重新上传
//TODO:埋点
} else {
//TODO:埋点
}
if (isUploading.value) return if (isUploading.value) return
uni.chooseImage({ uni.chooseImage({
...@@ -311,6 +320,10 @@ const handleDescriptionInput = (e) => { ...@@ -311,6 +320,10 @@ const handleDescriptionInput = (e) => {
// 发布按钮点击处理 // 发布按钮点击处理
const handlePublishBtnClick = async () => { const handlePublishBtnClick = async () => {
//TODO:埋点
console.log('点击发布按钮', { console.log('点击发布按钮', {
isFirstTimePublish: isFirstTimePublish.value, isFirstTimePublish: isFirstTimePublish.value,
hasUserInfo: hasUserInfo.value, hasUserInfo: hasUserInfo.value,
...@@ -410,6 +423,7 @@ const handleCancelPublish = () => { ...@@ -410,6 +423,7 @@ const handleCancelPublish = () => {
// 确认发布 // 确认发布
const handleConfirmPublish = async () => { const handleConfirmPublish = async () => {
showConfirmPopup.value = false showConfirmPopup.value = false
try { try {
...@@ -555,6 +569,7 @@ const generatePublishNumber = () => { ...@@ -555,6 +569,7 @@ const generatePublishNumber = () => {
const handleSuccessBtnClick = () => { const handleSuccessBtnClick = () => {
console.log('点击成功状态按钮') console.log('点击成功状态按钮')
//TODO:埋点
// 这里可以添加完成后的跳转逻辑 // 这里可以添加完成后的跳转逻辑
// uni.navigateBack() // uni.navigateBack()
uni.redirectTo({ uni.redirectTo({
......
...@@ -344,7 +344,7 @@ onShow(async () => { ...@@ -344,7 +344,7 @@ onShow(async () => {
const pages = getCurrentPages() const pages = getCurrentPages()
let currentPage = pages[pages.length - 1] let currentPage = pages[pages.length - 1]
const isFavorite = currentPage?.options?.isFavorite const isFavorite = currentPage?.properties?.isFavorite
console.log('isFavorite=', isFavorite); console.log('isFavorite=', isFavorite);
console.log('currentPage=', currentPage); console.log('currentPage=', currentPage);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment