@fonixtree/magic-design 1.0.48 → 1.0.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
@@ -136,7 +136,7 @@ function (_super) {
136
136
 
137
137
  var _price = pricePrefix + " " + integerPart + " " + (decimalPart ? '.' + decimalPart : '');
138
138
 
139
- var oldPrice = data.marketPrice !== null ? (0, _currencyUtil.formatCurrencyWithSymbol)(data.marketPrice) : null;
139
+ var oldPrice = data.marketPrice ? (0, _currencyUtil.formatCurrencyWithSymbol)(data.marketPrice) : null;
140
140
  var discount = Number(data.discountPercent) || 0;
141
141
  var salePercent = Number(data.salePercent) / 100 || 0;
142
142
  var imgStyle = {};
@@ -240,7 +240,7 @@ function (_super) {
240
240
  _this.searchProduct = function () {
241
241
  var storeId = window.magicDesign.storeId; // 只读模式,设计模式,url为空,邮箱模版
242
242
 
243
- if (window.magicDesign.readOnly || window.magicDesign.mode !== 'renderer' || !url || window.magicDesign.outputType == 'html') {
243
+ if (window.magicDesign.readOnly || window.magicDesign.mode !== 'renderer' || window.magicDesign.outputType == 'html') {
244
244
  return;
245
245
  }
246
246
 
Binary file
@@ -136,7 +136,7 @@ function (_super) {
136
136
 
137
137
  var _price = pricePrefix + " " + integerPart + " " + (decimalPart ? '.' + decimalPart : '');
138
138
 
139
- var oldPrice = data.marketPrice !== null ? (0, _currencyUtil.formatCurrencyWithSymbol)(data.marketPrice) : null;
139
+ var oldPrice = data.marketPrice ? (0, _currencyUtil.formatCurrencyWithSymbol)(data.marketPrice) : null;
140
140
  var discount = Number(data.discountPercent) || 0;
141
141
  var salePercent = Number(data.salePercent) / 100 || 0;
142
142
  var imgStyle = {};
@@ -240,7 +240,7 @@ function (_super) {
240
240
  _this.searchProduct = function () {
241
241
  var storeId = window.magicDesign.storeId; // 只读模式,设计模式,url为空,邮箱模版
242
242
 
243
- if (window.magicDesign.readOnly || window.magicDesign.mode !== 'renderer' || !url || window.magicDesign.outputType == 'html') {
243
+ if (window.magicDesign.readOnly || window.magicDesign.mode !== 'renderer' || window.magicDesign.outputType == 'html') {
244
244
  return;
245
245
  }
246
246
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "1.0.48",
4
+ "version": "1.0.50",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",