Commit c7613bb4 authored by lvtz's avatar lvtz

fix

parent 3c4fdf6d
......@@ -3,7 +3,7 @@ export default {
// host: 'https://qxapi.qingxiao.online/daka',
// host2: 'https://wx.m.shangjiadao.cn',
storageVersion: '4.0',
imageVersion: '20191030',
imageVersion: '20191104',
host: 'https://clock.wp53.cn',
host2: 'https://test.wp53.cn',
appId: 'wxc1246ea029394785',
......
......@@ -180,12 +180,12 @@ Page({
},()=>{
wxGetImageInfo({src: that.data.graph.url}).then((res)=>{
let w = res.width,h=res.height,initratio = res.width/res.height;
if(initratio>=1){
if(initratio>1){
w = 250,
h = 250*(res.height/res.width)
}else{
h = 210,
w = 210*(res.width/res.height)
h = 220,
w = 220*(res.width/res.height)
}
that.setData({
graph2: {
......@@ -548,12 +548,12 @@ Page({
},()=>{
wxGetImageInfo({src: that.data.graph.url}).then((res)=>{
let w = res.width,h=res.height,initratio = res.width/res.height;
if(initratio>=1){
if(initratio>1){
w = 250,
h = 250*(res.height/res.width)
}else{
h = 210,
w = 210*(res.width/res.height)
h = 220,
w = 220*(res.width/res.height)
}
that.setData({
graph2: {
......@@ -566,6 +566,5 @@ Page({
}).catch(()=>{
})
})
console.log('当前封面',this.data.coverindex)
}
})
\ No newline at end of file
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