修改页面显示

master
于肖磊 2024-10-16 14:58:08 +08:00
parent 1af12fcdc3
commit b09cacec95
4 changed files with 16 additions and 13 deletions

View File

@ -7,12 +7,12 @@
data: {
//
//
// request_url: 'http://shopxo.com/',
request_url:'https://new.shopxo.vip/',
request_url: 'http://shopxo.com/',
// request_url:'https://new.shopxo.vip/',
// publicpublichttps://d1.shopxo.vip/public/
// static_url: 'http://shopxo.com/',
static_url:'https://new.shopxo.vip/',
static_url: 'http://shopxo.com/',
// static_url:'https://new.shopxo.vip/',
// default
system_type: 'default',

View File

@ -127,12 +127,14 @@
const block = (windowWidth * 0.9) / 16;
const { common_style, actived_color } = new_style;
// aspectFill cover aspectFit contain scaleToFill none
let fit = 'scaleToFill';
// scaleToFill cover aspectFit contain center none
let fit = '';
if (new_form.img_fit == 'cover') {
fit = 'aspectFill';
fit = 'scaleToFill';
} else if (new_form.img_fit == 'contain') {
fit = 'aspectFit';
} else if (new_form.img_fit =='none') {
fit = 'center';
}
this.setData({
form: this.propValue.content,

View File

@ -91,12 +91,13 @@
const outer_sx = `-${new_style.image_spacing}rpx`;
//
const spacing = `${new_style.image_spacing}rpx`;
// aspectFill cover aspectFit contain scaleToFill none
let fit = 'scaleToFill';
if (new_content.img_fit == 'cover') {
fit = 'aspectFill';
} else if (new_content.img_fit == 'contain') {
// scaleToFill cover aspectFit contain center none
if (new_form.img_fit == 'cover') {
fit = 'scaleToFill';
} else if (new_form.img_fit == 'contain') {
fit = 'aspectFit';
} else if (new_form.img_fit =='none') {
fit = 'center';
}
const density = 4;
this.setData({

View File

@ -40,7 +40,7 @@
watch: {
propImageSrc(val) {
this.init();
},
}
},
mounted() {
this.init();