新增拼团/套餐分享功能

This commit is contained in:
gyq
2025-12-25 15:38:00 +08:00
parent 448effd296
commit fbe170b254
18 changed files with 3789 additions and 1532 deletions

View File

@@ -1,8 +1,8 @@
<template>
<view class="fixed-wrap" :style="{ '--num': `${numValue}px` }" v-if="isShow">
<view class="fixed-wrap" :style="{ '--num': `${numValue}px` }">
<view class="fixed-btn" :class="[type]" id="targetRef">
<div class="btn">
<u-button type="primary" :shape="shape" size="large" @click="emits('confirm')">{{ confirmText }}</u-button>
<u-button type="primary" :color="confirmColor" :shape="shape" size="large" @click="emits('confirm')">{{ confirmText }}</u-button>
</div>
<div class="btn" v-if="showCancel">
<u-button :shape="shape" size="large" @click="emits('cancel')">取消</u-button>
@@ -13,7 +13,7 @@
<script setup>
import { ref, onMounted, nextTick, getCurrentInstance, computed } from 'vue';
import { isMainShop } from '@/store/account.js';
// import { isMainShop } from '@/store/account.js';
const props = defineProps({
type: {
@@ -28,6 +28,10 @@ const props = defineProps({
type: String,
default: '保存'
},
confirmColor: {
type: String,
default: '#3C9CFF'
},
showCancel: {
type: Boolean,
default: false
@@ -37,12 +41,13 @@ const props = defineProps({
default: 'circle' // squre circle
}
});
const isShow = computed(() => {
if (props.isOpenPermission) {
return isMainShop();
}
return true;
});
// const isShow = computed(() => {
// if (props.isOpenPermission) {
// return isMainShop();
// }
// return true;
// });
const numValue = computed(() => {
let num = 0;