店铺首页购物车

parent e6ee2728
......@@ -35,7 +35,7 @@
</view> -->
</view>
<view class="evaluate">
<view class="evaluate-num">
<view class="evaluate-num" @click="jumpPjPgae">
<text class="env">评价({{ commentData.count }}</text>
<text class="num">好评率({{ commentData.high }} %)</text>
<wd-icon name="arrow-right" size="32rpx" style="margin-top: 2rpx"></wd-icon>
......@@ -143,6 +143,11 @@ onLoad((options) => {
function handleClick(e) {
console.log(e);
}
function jumpPjPgae() {
xma.navigateTo({
url: `/pages/assistingAgriculture/detail/comment?shopId=${dataDetails.value.prod.shopId}`,
});
}
function onChange(e) {
console.log(e);
}
......@@ -211,7 +216,7 @@ const share = () => {
function toStore() {
// TODO: 跳转到筑农严选
xma.navigateTo({
url: '/pages/assistingAgriculture/shop/index',
url: `/pages/assistingAgriculture/shop/index?shopId=${dataDetails.value.prod.shopId}`,
});
}
function toCart() {
......
......@@ -185,12 +185,9 @@ function toCart() {
url: '/pages/assistingAgriculture/cart/cart',
});
}
const addPurchase = ref(0);
const sgyBasketlistFn = () => {
const query = {
shopId: currentShopId.value,
shopType: '3',
};
sgyBasketlist(query).then((res) => {
sgyBasketlist().then((res) => {
if (res.code === 0) {
res.data.forEach((shop) => {
addPurchase.value += shop.prodInfos.length;
......@@ -208,7 +205,6 @@ function clearFn() {
});
}
const addPurchase = ref(0);
const addShoppingCart = (item) => {
const params = {
shopId: item.shopId,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment