更新
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
import lotteryView from '@/views/room/roomList/Turntable/lotteryResults.vue'
|
||||
const props = defineProps(["giftBagId"]);
|
||||
</script>
|
||||
<template>
|
||||
<div class="viewPage">
|
||||
<lotteryView></lotteryView>
|
||||
<!-- {{ giftBagId }} -->
|
||||
<lotteryView :giftBagId="giftBagId"></lotteryView>
|
||||
</div>
|
||||
</template>
|
||||
@@ -275,6 +275,9 @@ export function useData() {
|
||||
const openLotteryRecord = () => {
|
||||
addDialog({
|
||||
title: `盲盒转盘开奖记录`,
|
||||
props: {
|
||||
giftBagId: activeName.value
|
||||
},
|
||||
fullscreen: true,
|
||||
hideFooter: true,
|
||||
closeOnClickModal: false,
|
||||
|
||||
@@ -9,6 +9,7 @@ const formRules = ref({
|
||||
type: [{ required: true, message: "请选择分类", trigger: "change" }],
|
||||
label: [{ required: true, message: "请输入礼物标签", trigger: "blur" }],
|
||||
base_image: [{ required: true, message: "请上传礼物展示图片", trigger: "change" }],
|
||||
// icon: [{ required: true, message: "请上传礼物标签图片", trigger: "change" }],
|
||||
play_image: [],
|
||||
gift_type: [{ required: true, message: "请选择", trigger: "change" }],
|
||||
is_public_screen: [{ required: true, message: "请选择", trigger: "change" }],
|
||||
@@ -37,7 +38,8 @@ const newFormInline = ref(
|
||||
is_public_server: "",
|
||||
is_show: "",
|
||||
is_can_buy: "",
|
||||
sort: ""
|
||||
sort: "",
|
||||
icon: ""
|
||||
}
|
||||
);
|
||||
function getRef() {
|
||||
@@ -46,6 +48,9 @@ function getRef() {
|
||||
function handleFileSuccess(list) {
|
||||
newFormInline.value.base_image = list.join(',')
|
||||
}
|
||||
function handleIconSuccess(list) {
|
||||
newFormInline.value.icon = list.join(',')
|
||||
}
|
||||
function handlePlayFileSuccess(list) {
|
||||
newFormInline.value.play_image = list.join(',')
|
||||
}
|
||||
@@ -101,6 +106,9 @@ defineExpose({ getRef });
|
||||
:acceptType="newFormInline.file_type === 1 ? '.svg,.svga' : '.mp4'" :limit="1"
|
||||
:echoUrl="newFormInline.play_image" />
|
||||
</el-form-item>
|
||||
<el-form-item label="礼物标签图" prop="icon">
|
||||
<uploadImage @handleSuccess="handleIconSuccess" :limit="1" :echoUrl="newFormInline.icon" />
|
||||
</el-form-item>
|
||||
<el-form-item label="是否有特效" prop="gift_type">
|
||||
<el-radio-group v-model="newFormInline.gift_type">
|
||||
<el-radio :label="2">是</el-radio>
|
||||
|
||||
@@ -187,7 +187,8 @@ export function useData() {
|
||||
is_public_server: rowData?.is_public_server ?? "",
|
||||
is_show: rowData?.is_show ?? "",
|
||||
is_can_buy: rowData?.is_can_buy ?? "",
|
||||
sort: rowData?.sort ?? ""
|
||||
sort: rowData?.sort ?? "",
|
||||
icon: rowData?.icon ?? ""
|
||||
}
|
||||
},
|
||||
width: "40%",
|
||||
|
||||
@@ -21,7 +21,8 @@ const searchLabel = ref([
|
||||
{ label: "开始时间", prop: "stime", type: "date" },
|
||||
{ label: "结束时间", prop: "etime", type: "date" }
|
||||
]);
|
||||
const props = defineProps(["roomId"]);
|
||||
const props = defineProps(["roomId", 'BagId', 'giftBagId']);
|
||||
// console.log('传递过来的参数', )
|
||||
const typeList = ref([])
|
||||
const formatDate = (date) => {
|
||||
// 获取年份
|
||||
@@ -126,7 +127,7 @@ const getType = async () => {
|
||||
}) : []
|
||||
if (code) {
|
||||
searchLabel.value[0].optionList = typeList.value
|
||||
searchForm.value.gift_bag_id = data[0].id
|
||||
searchForm.value.gift_bag_id = Number(props.giftBagId) || data[0].id
|
||||
nextTick(() => {
|
||||
getData(searchForm.value)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user