Commit cd93901e by 赵雅纹

邀请好友海报优化

parent a2e59b4d
...@@ -10,13 +10,12 @@ export default class InviteFriends { ...@@ -10,13 +10,12 @@ export default class InviteFriends {
posterImgWidth = options.posterImgWidth ? options.posterImgWidth : 0; posterImgWidth = options.posterImgWidth ? options.posterImgWidth : 0;
posterImgHeight = options.posterImgHeight ? options.posterImgHeight : 0; posterImgHeight = options.posterImgHeight ? options.posterImgHeight : 0;
if (posterImgHeight > windowHeight){ if (posterImgHeight > windowHeight){
posterImgHeight = windowHeight - 90; posterImgHeight = windowHeight - 200;
} }
} }
return ({ return ({
width: '750rpx', width: '750rpx',
height: windowHeight + 'px', height: windowHeight - 100 + 'px',
background: '#fff', background: '#fff',
views: [ views: [
{ {
......
...@@ -67,6 +67,7 @@ wxService.page({ ...@@ -67,6 +67,7 @@ wxService.page({
//生成海报 //生成海报
generatePoster(){ generatePoster(){
const { member } = wx.getStorageSync('_baseUserInfo') const { member } = wx.getStorageSync('_baseUserInfo')
const { avatarUrl } = wx.getStorageSync('_userInfo')
let _this = this; let _this = this;
wx.getSystemInfo({ wx.getSystemInfo({
success: function (system) { success: function (system) {
...@@ -126,6 +127,8 @@ wxService.page({ ...@@ -126,6 +127,8 @@ wxService.page({
// codeImg: "https://hwimagecdn.ihotwind.cn/usr/201908/miniQrCode-f00c5051fef7479395efb193431762c4.jpg" // codeImg: "https://hwimagecdn.ihotwind.cn/usr/201908/miniQrCode-f00c5051fef7479395efb193431762c4.jpg"
},()=>{ },()=>{
const { member } = wx.getStorageSync('_baseUserInfo') const { member } = wx.getStorageSync('_baseUserInfo')
const { avatarUrl } = wx.getStorageSync('_userInfo')
console.log('0000', avatarUrl)
wx.getSystemInfo({ wx.getSystemInfo({
success: function (system) { success: function (system) {
wx.getImageInfo({ wx.getImageInfo({
......
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