onShareAppMessage: function() 自定义图片无法自适应?

小程序 文章 2021-02-02 16:21 690 0 全屏看文

AI助手支持GPT4.0

onShareAppMessage: function() 自定义图片无法自适应?onShareAppMessage: function() The custom picture cannot be adaptive?

onShareAppMessage: function() 自定义图片无法自适应?

   onShareAppMessage: function() 自定义图片无法自适应?

图片应该是是这个样子的,但是分享之后变成

没有自适应,这个怎么办?

    onShareAppMessage: function() {        return {            titlethis.data.homeLetterName,            path``,            imageUrlthis.data.homeLetterImg,            successfunction(shareTickets{                console.info(shareTickets + '成功');                // 转发成功            },            failfunction(res{                console.log(res + '失败');                // 转发失败            },            completefunction(res{                // 不管成功失败都会执行            }        }    }

Onshareappmessage: function() custom picture cannot be adaptive? The picture should look like this, but after sharing, it becomes not adaptive. What should I do?     onShareAppMessage: function() {        return {            title:  this.data.homeLetterName ,            path: ``,            imageUrl:  this.data.homeLetterImg ,            success: function(shareTickets) {                 console.info (sharetickets + 'success'); / / forwarding succeeded}, fail: function (RES) { console.log (RES + 'failed'); / / forwarding failed}, Complete: function (RES) {/ / execute regardless of success or failure}

回答:

阿旺:

和设计说一下 提供的图片比例 5:4就好了

太初:

同上 5:4的图片



搞文艺的猿:

5:4的图片

-EOF-

AI助手支持GPT4.0