【功能修复】拼团:未开启拼团的 SKU 需要禁用选择

pull/80/MERGE
YunaiV 2024-08-15 09:24:39 +08:00
parent ed7258b577
commit 8154108fe9
6 changed files with 13 additions and 19 deletions

View File

@ -313,10 +313,21 @@
//
const { data: spu } = await SpuApi.getSpuDetail(activity.spuId);
state.goodsId = spu.id;
//
activity.products.forEach((product) => {
spu.price = Math.min(spu.price, product.combinationPrice); // SPU
});
state.goodsInfo = spu;
// 使
spu.skus.forEach((sku) => {
const product = activity.products.find((product) => product.skuId === sku.id);
if (product) {
sku.price = product.combinationPrice;
} else {
//
sku.stock = 0;
}
});
} else {
state.data = null;
}

View File

@ -170,7 +170,6 @@
<text class="title">运费</text>
<text class="detail">{{ fen2yuan(state.orderInfo.deliveryPrice) }}</text>
</view>
<!-- TODO 芋艿优惠劵抵扣积分抵扣 -->
<view class="notice-item ss-flex ss-row-between" v-if="state.orderInfo.couponPrice > 0">
<text class="title">优惠劵金额</text>
<text class="detail">-¥{{ fen2yuan(state.orderInfo.couponPrice) }}</text>
@ -325,7 +324,7 @@
});
}
// TODO
//
async function onConfirm(orderId, ignore = false) {
//
// todo:

View File

@ -1,14 +0,0 @@
import request from '@/sheep/request';
// TODO 芋艿:暂不支持 socket 聊天
export default {
// 获取聊天token
unifiedToken: () =>
request({
url: 'unifiedToken',
custom: {
showError: false,
showLoading: false,
},
}),
};

View File

@ -78,7 +78,7 @@ export default {
});
},
//获取微信收货地址 TODO 芋艿:未测试
// 获取微信收货地址
openAddress(callback) {
this.isReady(() => {
jweixin.openAddress({

View File

@ -53,7 +53,6 @@ const mobileLogin = async (e) => {
} else {
return resolve(false);
}
// TODO 芋艿shareInfo: uni.getStorageSync('shareLog') || {},
});
};

View File

@ -24,7 +24,6 @@ async function login(code = '', state = '') {
// 解密 code 发起登陆
const loginResult = await AuthUtil.socialLogin(socialType, code, state);
if (loginResult.code === 0) {
// TODO 芋艿shareLog
setOpenid(loginResult.data.openid);
return loginResult;
}