Commit a689a8db authored by 刘文虎's avatar 刘文虎

绘图兼容性

parent 2310a6b7
<template> <template>
<view :style="{background:background,position:position}" class="submit-button-box" v-loading="loading"> <view :style="{background:background,position:position}" class="submit-button-box">
<view class="submit-button" :class="{ disabled: disabled }" :style="buttonStyleString" hover-class="u-hover-class" @click.stop="$u.throttle(submit, 500)"> <view class="submit-button" :class="{ disabled: disabled }" :style="buttonStyleString" hover-class="u-hover-class" @click.stop="$u.throttle(submit, 500)">
<u-loading mode="flower" v-if="loading" :style="{color:buttonStyle&&buttonStyle.color?buttonStyle.color:''}" class="loading-icon"></u-loading>
<u-icon name="plus" v-if="plusIcon" class="plus-icon"></u-icon> <u-icon name="plus" v-if="plusIcon" class="plus-icon"></u-icon>
<view class="submit-button-text">{{ text }}</view> <view class="submit-button-text">{{ text }}</view>
</view> </view>
...@@ -93,6 +94,9 @@ export default { ...@@ -93,6 +94,9 @@ export default {
margin-bottom: 4rpx; margin-bottom: 4rpx;
} }
} }
.loading-icon{
color: #ffffff;
}
.disabled { .disabled {
background: #7dcfb8; background: #7dcfb8;
color: rgba(255, 255, 255, 0.6); color: rgba(255, 255, 255, 0.6);
......
...@@ -29,7 +29,7 @@ export default { ...@@ -29,7 +29,7 @@ export default {
}, },
options:{ options:{
type: Array, type: Array,
default: unitOptions default: ()=>unitOptions
}, },
}, },
data() { data() {
......
...@@ -393,8 +393,7 @@ ...@@ -393,8 +393,7 @@
"style": { "style": {
"navigationBarTitleText": "收款收据(通用)", "navigationBarTitleText": "收款收据(通用)",
"navigationStyle": "custom", "navigationStyle": "custom",
"enablePullDownRefresh": false, "enablePullDownRefresh": false
"disableScroll": true
} }
}, { }, {
"path": "create", "path": "create",
......
...@@ -217,7 +217,8 @@ export default { ...@@ -217,7 +217,8 @@ export default {
padding: '4px 0', padding: '4px 0',
width: '100%', width: '100%',
display: 'flex', display: 'flex',
'align-items': 'center' 'align-items': 'center',
'box-sizing': 'border-box'
}; };
let labelCss = { let labelCss = {
width: '40px', width: '40px',
...@@ -229,7 +230,8 @@ export default { ...@@ -229,7 +230,8 @@ export default {
justifyContent: 'flex-start' justifyContent: 'flex-start'
}; };
let valueCss = { let valueCss = {
width: '292px', width: '288px',
// flex:1,
height: '14px', height: '14px',
'line-height': '14px', 'line-height': '14px',
'border-bottom': borderCss, 'border-bottom': borderCss,
...@@ -343,6 +345,14 @@ export default { ...@@ -343,6 +345,14 @@ export default {
// 金额 // 金额
if (item.value === 'actualAmount') { if (item.value === 'actualAmount') {
let trRightPadding = '0px';
// if (this.platform === '4' ) {
// if(this.isIOS){
// trRightPadding = '3px';
// }else{
// trRightPadding = '3px';
// }
// }
trRight.css = { trRight.css = {
...valueCss, ...valueCss,
'border-bottom': 'none', 'border-bottom': 'none',
...@@ -350,10 +360,11 @@ export default { ...@@ -350,10 +360,11 @@ export default {
'align-items': 'center', 'align-items': 'center',
'justify-content': 'space-between', 'justify-content': 'space-between',
overflow: 'visible', overflow: 'visible',
color: defaultColor color: defaultColor,
// 'padding-right': trRightPadding,
'padding-right': '3px',
}; };
let numberViews = this.uppercaseNumber.map(numberItem => { let numberViews = this.uppercaseNumber.map(numberItem => {
console.log(numberItem.value === '-');
let view = { let view = {
type: 'view', type: 'view',
css: { css: {
...@@ -380,12 +391,13 @@ export default { ...@@ -380,12 +391,13 @@ export default {
}; };
return view; return view;
}); });
trRight.views = [ trRight.views = [
{ {
type: 'view', type: 'view',
css: { css: {
display: 'inline-block', display: 'inline-block',
width: '200px', width: '197px',
height: '100%', height: '100%',
'border-bottom': borderCss 'border-bottom': borderCss
}, },
...@@ -398,7 +410,8 @@ export default { ...@@ -398,7 +410,8 @@ export default {
'margin-left': '18px', 'margin-left': '18px',
height: '14px', height: '14px',
'line-height': '14px', 'line-height': '14px',
'box-sizing': 'border-box' 'box-sizing': 'border-box',
// background: 'red'
}, },
views: [ views: [
{ {
...@@ -629,7 +642,8 @@ export default { ...@@ -629,7 +642,8 @@ export default {
width: `${375 * scale}px`, width: `${375 * scale}px`,
'background-color': '#FFFFFF', 'background-color': '#FFFFFF',
padding: '12px 8px', padding: '12px 8px',
color: orangeColor color: orangeColor,
'box-sizing': 'border-box'
}, },
views: [ views: [
// 标题 // 标题
...@@ -695,13 +709,14 @@ export default { ...@@ -695,13 +709,14 @@ export default {
{ {
type: 'view', type: 'view',
css: { css: {
width: '351px', width: '100%',
fontSize: '7px', fontSize: '7px',
lineHeight: '11px', lineHeight: '11px',
textAlign: 'left', textAlign: 'left',
marginTop: '3px', marginTop: '3px',
padding: '0 8px', padding: '0 8px',
border: borderCss border: borderCss,
'box-sizing': 'border-box'
}, },
views: tableView views: tableView
}, },
......
...@@ -69,7 +69,7 @@ export const canvasTableCellOptions = [ ...@@ -69,7 +69,7 @@ export const canvasTableCellOptions = [
{ {
value: "actualAmount", value: "actualAmount",
// #ifdef APP-PLUS // #ifdef APP-PLUS
label: "金 额 ( 大 写", label: "金 额 ( 大 写 )",
// #endif // #endif
// #ifndef APP-PLUS // #ifndef APP-PLUS
label: "金 额( 大写 )", label: "金 额( 大写 )",
......
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