This commit is contained in:
浅念
2025-12-13 17:30:18 +08:00
parent 5112803313
commit c60dda98a4
8 changed files with 356 additions and 182 deletions
+20 -9
View File
@@ -20,9 +20,9 @@
<image v-if="danmuVisible" src="/static/image/dan1.png" mode=""></image>
<image v-else src="/static/image/danm.png" mode=""></image>
</view>
<view class="circle-btn">
<button open-type="share" class="circle-btn">
<image src="/static/image/shares.png" class="share" mode=""></image>
</view>
</button>
</view>
</view>
@@ -145,10 +145,11 @@ export default {
});
},
handleContact(item) {
uni.showToast({
title: '联系门店功能',
icon: 'none'
});
const phone = item.user.mobile
if (!phone) return uni.showToast({ title: '号码为空', icon: 'none' });
// 简单清洗:去空格/横杠
const num = String(phone).replace(/[^\d+]/g, '');
uni.makePhoneCall({ phoneNumber: num });
},
handleComment(item) {
uni.navigateTo({
@@ -160,6 +161,7 @@ export default {
var that = this;
const params = {
current:pageNo,
status:1,
size:10
};
const collectUrl = this.activeTab==0 ? 'common/post/list' : 'common/post/nearby'
@@ -226,7 +228,15 @@ export default {
});
});
}
}
},
// 分享给好友
onShareAppMessage() {
return {
title: '西门子样机福利平台',
path: '/pages/index/index?from=share',
imageUrl: "/static/image/share.jpg" // 封面图
}
},
}
</script>
@@ -267,12 +277,13 @@ export default {
height: 80rpx;
border-radius: 50%;
background: #fff;
padding: 4rpx;
display: flex;
align-items: center;
justify-content: center;
image{
width: 48rpx;
height: 48rpx;
width: 60rpx;
height: 60rpx;
}
.share{
width: 36rpx;