新增拼团/套餐分享功能
This commit is contained in:
@@ -45,6 +45,9 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="footer-wrap" v-if="item.shopId == shopInfo.id">
|
||||
<view class="btn">
|
||||
<button class="wx-btn" type="primary" open-type="share" @click="setShareOptions(item)">分享</button>
|
||||
</view>
|
||||
<template v-if="!item.onlineStatus">
|
||||
<view class="btn">
|
||||
<u-button shape="circle" @click="delHandle(item)">删除</u-button>
|
||||
@@ -80,6 +83,12 @@
|
||||
<script setup>
|
||||
import { onMounted, reactive, ref } from 'vue';
|
||||
import { packageGet, packageOnline, packageDel } from '@/http/api/ware.js';
|
||||
|
||||
const emits = defineEmits(['share']);
|
||||
function setShareOptions(item) {
|
||||
emits('share', item);
|
||||
}
|
||||
|
||||
const shopInfo = ref('');
|
||||
|
||||
const props = defineProps({
|
||||
@@ -290,6 +299,13 @@ onMounted(() => {
|
||||
gap: 28upx;
|
||||
.btn {
|
||||
width: 140upx;
|
||||
.wx-btn {
|
||||
border-radius: 100px;
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
font-size: 28upx;
|
||||
background-color: #318afe;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user