Commit 249bdf9f authored by wangxuelai's avatar wangxuelai

'图片点评优化'

parent af4211de
...@@ -244,8 +244,6 @@ Page({ ...@@ -244,8 +244,6 @@ Page({
let url = imagify(imgArr[AcSubIndex]); let url = imagify(imgArr[AcSubIndex]);
const paintBoxRate = this.data.paintBoxWidth / this.data.paintBoxHeight; const paintBoxRate = this.data.paintBoxWidth / this.data.paintBoxHeight;
const currentImgRate = imgInfoList[AcSubIndex].imageWidth / imgInfoList[AcSubIndex].imageHeight; const currentImgRate = imgInfoList[AcSubIndex].imageWidth / imgInfoList[AcSubIndex].imageHeight;
console.log(paintBoxRate, 'paintBoxRate');
console.log(currentImgRate, 'currentImgRate');
if (currentImgRate > paintBoxRate) { if (currentImgRate > paintBoxRate) {
imgInfoList[AcSubIndex].width = this.data.paintBoxWidth; imgInfoList[AcSubIndex].width = this.data.paintBoxWidth;
imgInfoList[AcSubIndex].height = imgInfoList[AcSubIndex].width / currentImgRate; imgInfoList[AcSubIndex].height = imgInfoList[AcSubIndex].width / currentImgRate;
......
{ {
"navigationStyle": "custom",
"usingComponents": { "usingComponents": {
"list-loading": "../../../components/listloading", "list-loading": "../../../components/listloading",
"empty-content": "../../../components/emptycontent", "empty-content": "../../../components/emptycontent",
......
<!--src/pages/websiteindex/businessinfolist.wxml--> <!--src/pages/websiteindex/businessinfolist.wxml-->
<wxs src="../../../filter/index.wxs" module="filter" /> <wxs src="../../../filter/index.wxs" module="filter" />
<view class="container" style="padding-top: {{statusBarHeight+titleBarHeight+15}}px"> <!-- <view class="container" style="padding-top: {{statusBarHeight+titleBarHeight+15}}px"> -->
<view class="headerbox" style="padding-top: {{statusBarHeight}}px;"> <view class="container">
<!-- <view class="headerbox" style="padding-top: {{statusBarHeight}}px;">
<view class="tabsboxwrap" style="height: {{titleBarHeight}}px;"> <view class="tabsboxwrap" style="height: {{titleBarHeight}}px;">
<view class="backbtnbox" bindtap="goback"> <view class="backbtnbox" bindtap="goback">
<image class="backbtn" src="{{imageRoot}}2b/organizationalmgt/right.png?{{imageVersion}}" /> <image class="backbtn" src="{{imageRoot}}2b/organizationalmgt/right.png?{{imageVersion}}" />
...@@ -10,7 +11,7 @@ ...@@ -10,7 +11,7 @@
<view class="tabitem {{curtab==item.tab? 'active' : ''}}" wx:for="{{tabbox}}" wx:key="index" data-tab="{{item.tab}}" bindtap="tabShift">{{item.title}}</view> <view class="tabitem {{curtab==item.tab? 'active' : ''}}" wx:for="{{tabbox}}" wx:key="index" data-tab="{{item.tab}}" bindtap="tabShift">{{item.title}}</view>
</view> </view>
</view> </view>
</view> </view> -->
<view class="list-box" wx:if="{{curtab==1}}"> <view class="list-box" wx:if="{{curtab==1}}">
<view class="list-item" wx:for="{{infoList1}}" wx:key="index" bindtap="tapCard" data-id="{{item.id}}"> <view class="list-item" wx:for="{{infoList1}}" wx:key="index" bindtap="tapCard" data-id="{{item.id}}">
<view class="cover-box"> <view class="cover-box">
......
...@@ -2,6 +2,7 @@ page { ...@@ -2,6 +2,7 @@ page {
background: #f9f9f9; background: #f9f9f9;
} }
.container { .container {
padding-top: 10px;
} }
.headerbox { .headerbox {
position: fixed; position: fixed;
......
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