|
|
@@ -715,7 +715,7 @@ const Buttonshow = ref(null)
|
|
715
|
715
|
const showButtons = (goodItem) => {
|
|
716
|
716
|
// 设置当前项的 showButtons 为 true,显示按钮
|
|
717
|
717
|
Buttonshow.value = goodItem;
|
|
718
|
|
- goodItem.check=true
|
|
|
718
|
+ goodItem.check = true
|
|
719
|
719
|
};
|
|
720
|
720
|
|
|
721
|
721
|
function handlePageClick() {
|
|
|
@@ -728,7 +728,7 @@ function handlePageClick() {
|
|
728
|
728
|
}
|
|
729
|
729
|
</script>
|
|
730
|
730
|
<template>
|
|
731
|
|
- <div @tap="handlePageClick" >
|
|
|
731
|
+ <div @tap="handlePageClick">
|
|
732
|
732
|
<div class="">
|
|
733
|
733
|
<CXBBackTop :Scroll_X="Scroll_X" :isCss="1" />
|
|
734
|
734
|
<div v-if="hasShopping" class="bg-white h-10 fixed top-0 w-full z-1 flex justify-end ">
|
|
|
@@ -761,7 +761,8 @@ function handlePageClick() {
|
|
761
|
761
|
|
|
762
|
762
|
</div>
|
|
763
|
763
|
<div v-for="(goodItem, goodIndex) in shopItem.list" :key="goodIndex">
|
|
764
|
|
- <div @longpress="showButtons(goodItem)" class="flex f-hairline-bottom p-3 gap-2" :style="Buttonshow === goodItem ? { backgroundColor: '#919191' } : {}">
|
|
|
764
|
+ <div @longpress="showButtons(goodItem)" class="flex f-hairline-bottom p-3 gap-2"
|
|
|
765
|
+ :style="Buttonshow === goodItem ? { backgroundColor: '#919191' } : {}">
|
|
765
|
766
|
|
|
766
|
767
|
<div class="flex">
|
|
767
|
768
|
<nut-checkbox v-model="goodItem.check" @change="handleGoodsItemCheck" label="单选"
|
|
|
@@ -812,7 +813,7 @@ function handlePageClick() {
|
|
812
|
813
|
</div>
|
|
813
|
814
|
</div>
|
|
814
|
815
|
|
|
815
|
|
- <div class="pb-12" v-if="!hasShopping">
|
|
|
816
|
+ <div class="pb-12" >
|
|
816
|
817
|
<div class="flex flex-row justify-center items-center gap-3 font-bold text-sm p-3 ">
|
|
817
|
818
|
<image :src="like_adorn_220628Image" mode="widthFix" class="w-6 h-6"></image>
|
|
818
|
819
|
<div>
|
|
|
@@ -853,8 +854,8 @@ function handlePageClick() {
|
|
853
|
854
|
|
|
854
|
855
|
<div class="flex justify-center items-center gap-2 pr-3">
|
|
855
|
856
|
<div class="flex text-[12px]" v-if="state.isManage">
|
|
856
|
|
- <span v-if="state.totalNum != 0 && state.isManage">已选{{ state.totalNum }}件,</span>合计:<FPrice
|
|
857
|
|
- :price="state.totalPrice"></FPrice>
|
|
|
857
|
+ <span v-if="state.totalNum != 0 && state.isManage">已选{{ state.totalNum }}件,</span>合计:<span
|
|
|
858
|
+ style="color: red;">¥{{ parseFloat(Number(state.totalPrice)).toFixed(2).replace(/\.?0+$/, '') }}</span>
|
|
858
|
859
|
</div>
|
|
859
|
860
|
<button v-if="!state.isManage" @click="handleromoveCollect"
|
|
860
|
861
|
class="['rounded-full', '!text-[14px]', 'text-black',remove_sc]">
|