|
@@ -127,12 +127,17 @@ class ContractTemplateController extends FControllerBase {
|
|
|
} else if (key == 'servicesPackageContent') {
|
|
|
return servicePackageNames;
|
|
|
} else if (key == 'signaturePartyA') {
|
|
|
- return '<img src=${Store.user.signature} style="width: 110px; height: 30px;" alt="图片">';
|
|
|
+ if (Store.user.signature.isEmpty ||
|
|
|
+ !Store.user.signature.contains("http")) {
|
|
|
+ return '';
|
|
|
+ } else {
|
|
|
+ return '<img src=${Store.user.signature} style="width: 110px; height: 60px; object-fit:contain" alt="图片">';
|
|
|
+ }
|
|
|
} else if (key == 'signaturePartyB') {
|
|
|
if (state.userSignature.isEmpty) {
|
|
|
return '';
|
|
|
} else {
|
|
|
- return '<img src=${state.userSignature} style="width: 110px; height: 30px;" alt="图片">';
|
|
|
+ return '<img src=${state.userSignature} style="width: 110px; height: 60px; object-fit:contain" alt="图片">';
|
|
|
}
|
|
|
} else if (key == 'signatureDate') {
|
|
|
final now = DateTime.now();
|