image.js
export default class LastMayday {
palette(bg,articleTitleUrl,code,logo,title,content) {
return ({
width: '650rpx',
height: '1000rpx',
background: bg,//"./../../lib/image/bz_bg.png",//bg
views: [
{
type: 'text',
text:content,// '我是标题我是标题我是标题我是标题我是标题我是标题我是标题我是标题',
css: {
fontSize: '36rpx',
top: `${520}rpx`,
left: `${50}rpx`,
color:'#fff',
width: '550rpx',
maxLines: 1,
}
},
{
type: 'text',
text: title,//'我是内容我是内容我是我是内容我是内容我是内我是内容我是内容我是内内容我是内容我是内容我是内容我是内容我是内容我是内容我是内容我是内容我是内容我是内容我是内容',
css: {
fontSize: '26rpx',
top: `${600}rpx`,
left: `${50}rpx`,
color:'#fff',
width: '550rpx',
maxLines:5,
lineHeight:'45rpx'
}
},
{
type: 'text',
text: '长按小程序码阅读图文详情',
css: {
fontSize: '26rpx',
bottom: `${30}rpx`,
right: `${200}rpx`,
color:'#ccc',
width: '160rpx',
maxLines:2,
lineHeight:'45rpx'
}
},
{
type: 'image',
url: code,//"./../../lib/image/mini.jpg",//code
css: {
bottom: `${20}rpx`,