|
@@ -2,16 +2,39 @@
|
|
<template>
|
|
<template>
|
|
<div class="listBox">
|
|
<div class="listBox">
|
|
<div v-for="(item, index) in dataList" :key="'exchange' + index">
|
|
<div v-for="(item, index) in dataList" :key="'exchange' + index">
|
|
- <div class="cursor-pointer mx-5 mb-4" style="width: 180px;">
|
|
|
|
|
|
+ <div class="cursor-pointer mx-5 mb-4" style="width: 180px;" @click="handleShowDetail(item)">
|
|
<v-img width="180" height="180" :src="item.图片 || 'https://minio.citupro.com/dev/menduner/7.png'"></v-img>
|
|
<v-img width="180" height="180" :src="item.图片 || 'https://minio.citupro.com/dev/menduner/7.png'"></v-img>
|
|
<div class="ellipsis mt-2" style="font-size: 14px;">{{ item.物品名称 }}</div>
|
|
<div class="ellipsis mt-2" style="font-size: 14px;">{{ item.物品名称 }}</div>
|
|
<div class="ellipsis mt-1" style="font-size: 13px;">消耗积分<span class="ml-1" style="color: var(--v-primary-base)">{{ item.消耗积分 }}</span></div>
|
|
<div class="ellipsis mt-1" style="font-size: 13px;">消耗积分<span class="ml-1" style="color: var(--v-primary-base)">{{ item.消耗积分 }}</span></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <Dialog :visible="showDetail" titleClass="text-h6" :widthType="3" title="详情说明" @submit="handleSubmit" @close="showDetail = false">
|
|
|
|
+ <div>
|
|
|
|
+ <!-- <span style="font-size: 15px;">物品名称:</span> -->
|
|
|
|
+ <span style="font-size: 14px;color: red;">{{ detailItem.物品名称 }}</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="tips">
|
|
|
|
+ <div>使用规则:</div>
|
|
|
|
+ <span>兑换时,优先使用即将到期积分进行兑换</span>
|
|
|
|
+ <div>使用时间:</div>
|
|
|
|
+ <span>使用时间为当前招聘通期限内都可以使用, 超出当前招聘通期限不可以使用</span>
|
|
|
|
+ <div>使用说明:</div>
|
|
|
|
+ <span>积分一经兑换概不退回,敬请谅解。</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="d-flex align-center my-5">
|
|
|
|
+ <div class="mr-5">兑换数量</div>
|
|
|
|
+ <textUI class="mr-5" v-model="num" :item="textItem" @change="handleChange"></textUI>
|
|
|
|
+ <div class="mr-1">消耗积分</div>
|
|
|
|
+ <div style="color: var(--v-primary-base);">{{ (detailItem.消耗积分- 0)*num }}</div>
|
|
|
|
+ </div>
|
|
|
|
+ </Dialog>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
|
|
+import Dialog from '@/components/CtDialog'
|
|
|
|
+import textUI from '@/components/FormUI/TextInput'
|
|
|
|
+// import Snackbar from '@/plugins/snackbar'
|
|
import { ref } from 'vue'
|
|
import { ref } from 'vue'
|
|
defineOptions({name: 'pointsMall-exchange'})
|
|
defineOptions({name: 'pointsMall-exchange'})
|
|
|
|
|
|
@@ -31,6 +54,31 @@ const getData = () => {
|
|
]
|
|
]
|
|
}
|
|
}
|
|
getData()
|
|
getData()
|
|
|
|
+
|
|
|
|
+// 详情说明弹窗
|
|
|
|
+const showDetail = ref(false)
|
|
|
|
+const detailItem = ref(null)
|
|
|
|
+const handleShowDetail = (item) =>{
|
|
|
|
+ detailItem.value = item
|
|
|
|
+ showDetail.value = true
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// 兑换提交
|
|
|
|
+const handleSubmit = async () =>{
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// 兑换数量
|
|
|
|
+const num = ref(1)
|
|
|
|
+const textItem = ref({
|
|
|
|
+ type: 'number',
|
|
|
|
+ value: num.value,
|
|
|
|
+ width: 80,
|
|
|
|
+ hideDetails: true,
|
|
|
|
+ // density: 'compact',
|
|
|
|
+ // label: '请输入自定义标签',
|
|
|
|
+})
|
|
|
|
+const handleChange = async () =>{
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
.listBox {
|
|
.listBox {
|
|
@@ -40,4 +88,20 @@ getData()
|
|
.ellipsis {
|
|
.ellipsis {
|
|
width: 100%;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
+.tips {
|
|
|
|
+ margin-top: 20px;
|
|
|
|
+ padding: 12px 20px;
|
|
|
|
+ border-radius: 5px;
|
|
|
|
+ background-color: var(--default-bgc);
|
|
|
|
+ // width: 400px;
|
|
|
|
+ div {
|
|
|
|
+ font-size: 15px;
|
|
|
|
+ margin-bottom: 4px;
|
|
|
|
+ }
|
|
|
|
+ span {
|
|
|
|
+ display: inline-block;
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ margin-bottom: 20px;
|
|
|
|
+ }
|
|
|
|
+}
|
|
</style>
|
|
</style>
|