新增营销系统、分销系统、会员功能、门店、提现功能

This commit is contained in:
Shaw
2024-02-08 21:01:37 +08:00
parent 68b3f2dcc3
commit 17c043348a
1398 changed files with 81279 additions and 56269 deletions

View File

@ -7,7 +7,7 @@
-->
<script setup>
import LazyImage from '@/components/LazyImage/index.vue'
import { computed, onBeforeUnmount, toRefs } from "vue";
import { computed, toRefs } from "vue";
import { GOODS_ITEM_TYPE } from "@/components/goodsComponents/utils/index.type";
import { useRouter } from "@/hooks/useRouter";
import { getRandom } from "@/utils/utils";
@ -23,7 +23,7 @@ const props = defineProps({
},
/** 图片比例 */
ratio: {
type: [String,Boolean],
type: [String, Boolean],
default: () => '1/1'
},
infoPadding: {
@ -48,6 +48,10 @@ const props = defineProps({
type: Boolean,
default: false
},
jump: {
type: Boolean,
default: true
}
})
const {
@ -58,16 +62,19 @@ const {
titleWrap,
titleSize,
row,
jump
} = toRefs(props)
const {push} = useRouter()
const randomRatio = computed(()=>(`${1/getRandom(1,1.3)}`))
const randomRatio = computed(() => (`${ 1 / getRandom(1, 1.3) }`))
function toDetail() {
push({url: '/pages/goodsDetail/goodsDetail'}, {data: {id: goods.value.id}})
if (!jump.value) return
push({url: '/pages/goodsDetail/goodsDetail'}, {data: {id: goods.value.id, skuId: goods.value.skuId}})
}
</script>
<template>
@ -89,11 +96,6 @@ function toDetail() {
class="image"
:mode="ratio===true?'aspectFit':'aspectFill'"
/>
<!-- <image
:src="goods.image"
class="image"
:mode="ratio===true?'aspectFit':'aspectFill'"
/>-->
</view>
<!-- good info -->
<view
@ -115,10 +117,12 @@ function toDetail() {
>
{{ goods.storeName }}
</view>
<slot
name="options"
:goods="goods"
></slot>
<view class="" style="width: 100%;">
<slot
name="options"
:goods="goods"
></slot>
</view>
</view>
</view>
</template>
@ -164,9 +168,6 @@ function toDetail() {
align-items: center;
justify-content: space-between;
.goods-image {
}
.goods-info {
display: flex;
flex-direction: column;