Skip to content

Commit 48e404e

Browse files
committed
update:关于页面,当分享到QQ时将类型改为文字,QQ分享不支持图文类型
1 parent 04ef968 commit 48e404e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎pages/about/about.vue‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,12 @@
119119
uni.showActionSheet({
120120
itemList: itemList,
121121
success: (res) => {
122+
let provider = this.providerList[res.tapIndex].id;
122123
uni.share({
123-
provider: this.providerList[res.tapIndex].id,
124+
provider: provider,
124125
scene: this.providerList[res.tapIndex].type && this.providerList[res.tapIndex].type === 'WXSenceTimeline' ?
125126
'WXSenceTimeline' : "WXSceneSession",
126-
type: 0,
127+
type: (provider === "qq") ? 1 : 0,
127128
title: '欢迎体验uni-app',
128129
summary: 'uni-app 是一个使用 Vue.js 开发跨平台应用的前端框架',
129130
imageUrl: 'https://img-cdn-qiniu.dcloud.net.cn/uploads/nav_menu/8.jpg',

0 commit comments

Comments
 (0)