|
@@ -49,9 +49,9 @@ export default defineComponent({
|
|
|
const img = item.goodsUrl ? item.goodsUrl.split(',')[0] : ''
|
|
|
item.goodsUrl = img
|
|
|
|
|
|
- if (item.goodsType === 'REPAIR') {
|
|
|
+ if (item.goodsType === 'INSTRUMENTS') {
|
|
|
hasInstrument = true
|
|
|
- } else if (item.goodsType === 'INSTRUMENTS') {
|
|
|
+ } else if (item.goodsType === 'TEXTBOOK') {
|
|
|
hasTextbook = true
|
|
|
}
|
|
|
})
|
|
@@ -63,6 +63,7 @@ export default defineComponent({
|
|
|
|
|
|
// 判断运费状态
|
|
|
// 如果没有购买商品,有购买教材则『到付』 其它则免运费
|
|
|
+ console.log(hasInstrument, hasTextbook)
|
|
|
if (!hasInstrument && hasTextbook) {
|
|
|
state.freight = '到付'
|
|
|
} else {
|