jufubao-mall 2.0.4 → 2.0.5-beta3
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.
package/package.json
CHANGED
|
@@ -96,7 +96,8 @@
|
|
|
96
96
|
<xd-radio
|
|
97
97
|
class="xd-radio"
|
|
98
98
|
:width="32"
|
|
99
|
-
:height="
|
|
99
|
+
:height="100"
|
|
100
|
+
:is-old="false"
|
|
100
101
|
:disabled="!(prod.status === 'ok' || editCart)"
|
|
101
102
|
size="mini"
|
|
102
103
|
v-model="prod.checked"
|
|
@@ -152,7 +153,7 @@
|
|
|
152
153
|
<view class="bottom_fixed_body" :style="[bottomFixedBoxStyle]">
|
|
153
154
|
<view class="flex-sub">
|
|
154
155
|
<view class="flex">
|
|
155
|
-
<xd-radio size="mini" :width="40" :height="
|
|
156
|
+
<xd-radio size="mini" :width="40" :height="60" :is-old="false" :value="allCheck" @change="handleAllCheck"></xd-radio>
|
|
156
157
|
<text class="text ml14">全选</text>
|
|
157
158
|
<text>({{ checkedProdList.length }})</text>
|
|
158
159
|
</view>
|
|
@@ -311,6 +311,11 @@
|
|
|
311
311
|
:layoutInfo="layoutInfo"
|
|
312
312
|
:fixedStyle="fixedStyle"
|
|
313
313
|
:mainColor="mainColor"
|
|
314
|
+
:salePriceColor="salePriceColor"
|
|
315
|
+
:salePriceFontSize="salePriceFontSize"
|
|
316
|
+
:originalPriceFontSize="originalPriceFontSize"
|
|
317
|
+
:originalPriceColor="originalPriceColor"
|
|
318
|
+
:isPlus="is_plus_site"
|
|
314
319
|
@change="handleSkuChange"
|
|
315
320
|
@onConfirm="handleConfirmSku"
|
|
316
321
|
></xd-sku>
|
|
@@ -972,7 +977,7 @@
|
|
|
972
977
|
NORMAL: {
|
|
973
978
|
WITH_DISCOUNT: [
|
|
974
979
|
{ p: 2678, n: "PLUS价", t: "S" },
|
|
975
|
-
{ p: 4000, n: "原价", t: "U" }
|
|
980
|
+
{ p: 4000, n: "原价", t: "U" },
|
|
976
981
|
],
|
|
977
982
|
WITHOUT_DISCOUNT: [
|
|
978
983
|
{ p: 2678, n: "PLUS价", t: "S" }
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<view id="prod_wrap" class="prod_wrap">
|
|
13
13
|
<image class="sku_img" :src="skuImage" />
|
|
14
14
|
<view class="sku_info">
|
|
15
|
-
<
|
|
15
|
+
<CusPrice :key="priceNew" v-if="priceNew" :salePriceColor="salePriceColor" :salePriceFontSize="salePriceFontSize" :originalPriceFontSize="originalPriceFontSize" :originalPriceColor="originalPriceColor" :isPlus="is_plus_site" iconSize="0.4" :showPrice="priceNew" type="info"></CusPrice>
|
|
16
16
|
<view v-if="choseSkuName" class="_specs"
|
|
17
17
|
>已选:{{ choseSkuName }}</view
|
|
18
18
|
>
|
|
@@ -196,6 +196,7 @@ import XdNumber from "@/components/XdNumber/XdNumber";
|
|
|
196
196
|
import XdButton from "@/components/XdButton/XdButton";
|
|
197
197
|
import XdUnit from "@/components/XdUnit/XdUnit";
|
|
198
198
|
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
199
|
+
import CusPrice from '@/components/CusPrice/CusPrice'
|
|
199
200
|
import Color from "color";
|
|
200
201
|
import getServiceUrl from "@/common/getServiceUrl";
|
|
201
202
|
import {
|
|
@@ -212,6 +213,7 @@ export default {
|
|
|
212
213
|
XdButton,
|
|
213
214
|
XdUnit,
|
|
214
215
|
XdFontIcon,
|
|
216
|
+
CusPrice
|
|
215
217
|
},
|
|
216
218
|
props: {
|
|
217
219
|
action: {
|
|
@@ -271,7 +273,28 @@ export default {
|
|
|
271
273
|
initStatus: {
|
|
272
274
|
type: Boolean,
|
|
273
275
|
default:false
|
|
276
|
+
},
|
|
277
|
+
salePriceColor: {
|
|
278
|
+
type: String,
|
|
279
|
+
default: "",
|
|
280
|
+
},
|
|
281
|
+
salePriceFontSize: {
|
|
282
|
+
type: String,
|
|
283
|
+
default: "",
|
|
284
|
+
},
|
|
285
|
+
originalPriceFontSize: {
|
|
286
|
+
type: String,
|
|
287
|
+
default: "",
|
|
288
|
+
},
|
|
289
|
+
originalPriceColor: {
|
|
290
|
+
type: String,
|
|
291
|
+
default: "",
|
|
292
|
+
},
|
|
293
|
+
is_plus_site: {
|
|
294
|
+
type: Boolean,
|
|
295
|
+
default: false,
|
|
274
296
|
}
|
|
297
|
+
|
|
275
298
|
},
|
|
276
299
|
data() {
|
|
277
300
|
return {
|
|
@@ -358,30 +381,23 @@ export default {
|
|
|
358
381
|
return this.buyButton.buttons.find((item) => item.code === "buy-now");
|
|
359
382
|
},
|
|
360
383
|
priceNew() {
|
|
361
|
-
let prices =
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
} else {
|
|
369
|
-
if (this.baseInfo&&this.baseInfo.prices) {
|
|
370
|
-
prices = this.baseInfo.prices;
|
|
384
|
+
let prices = null;
|
|
385
|
+
if (
|
|
386
|
+
this.currSku &&
|
|
387
|
+
this.currSku.prices &&
|
|
388
|
+
this.currSku.prices.show_prices
|
|
389
|
+
) {
|
|
390
|
+
prices = this.currSku.prices.show_prices
|
|
371
391
|
} else {
|
|
372
|
-
prices
|
|
392
|
+
if (this.baseInfo && this.baseInfo.prices && this.baseInfo.prices.show_prices) {
|
|
393
|
+
prices = this.baseInfo.prices.show_prices
|
|
394
|
+
} else {
|
|
395
|
+
prices = []
|
|
396
|
+
}
|
|
373
397
|
}
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
prices = {};
|
|
378
|
-
}
|
|
379
|
-
if (!prices.show_prices) {
|
|
380
|
-
prices.show_prices = [];
|
|
381
|
-
}
|
|
382
|
-
const filteredPrice = prices.show_prices.find((item) => item.t === "S");
|
|
383
|
-
return filteredPrice || {};
|
|
384
|
-
},
|
|
398
|
+
return prices
|
|
399
|
+
},
|
|
400
|
+
|
|
385
401
|
},
|
|
386
402
|
async created() {
|
|
387
403
|
this.style = await getParentsStyles(this.$parent);
|