chore: 更新静态资源文件并清理构建输出目录
删除旧的构建输出文件,包括图片资源和编译生成的JavaScript文件 添加新的图标资源文件到assets/img目录 更新package.json中的开发脚本配置
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<div class="alert-form">
|
||||
<div class="comments reports">
|
||||
<div class="head">
|
||||
<span style="display: flex; align-items: center;"> <img style="width: 25px; margin-right: 7px;" src="//app.gter.net/image/gter/offer/img/exclamationpoint.png" />举报投诉 </span>
|
||||
<span style="display: flex; align-items: center"> <img style="width: 25px; margin-right: 7px" src="//app.gter.net/image/gter/offer/img/exclamationpoint.png" />举报投诉 </span>
|
||||
<div class="close icon-close iconfont" @click="alertShow = false"></div>
|
||||
</div>
|
||||
<div class="form">
|
||||
@@ -26,45 +26,43 @@
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
import { ElMessage } from "element-plus"
|
||||
import { ElMessage } from "element-plus";
|
||||
|
||||
const props = defineProps(["reportToken"])
|
||||
const reasonList = ["广告", "辱骂", "重复发送", "不良信息", "其他"]
|
||||
let reportAlertShow = inject("reportAlertShow")
|
||||
const props = defineProps(["reportToken", "reportType"]);
|
||||
const reasonList = ["广告", "辱骂", "重复发送", "不良信息", "其他"];
|
||||
let reportAlertShow = inject("reportAlertShow");
|
||||
|
||||
let checkList = ref([])
|
||||
let alertShow = ref(false)
|
||||
let alertText = ref("")
|
||||
let checkList = ref([]);
|
||||
let alertShow = ref(false);
|
||||
let alertText = ref("");
|
||||
|
||||
const selectRadio = value => {
|
||||
const index = checkList.value.indexOf(value)
|
||||
if (index === -1) checkList.value.push(value)
|
||||
else checkList.value.splice(index, 1)
|
||||
}
|
||||
const selectRadio = (value) => {
|
||||
const index = checkList.value.indexOf(value);
|
||||
if (index === -1) checkList.value.push(value);
|
||||
else checkList.value.splice(index, 1);
|
||||
};
|
||||
|
||||
// 举报提交
|
||||
const alertSubmit = () => {
|
||||
if (checkList.value.length == 0) {
|
||||
ElMessage.error("请选择举报类型")
|
||||
return
|
||||
ElMessage.error("请选择举报类型");
|
||||
return;
|
||||
}
|
||||
checkList.value.push(alertText.value)
|
||||
reportAlertShow.value = false
|
||||
commentReportHttp({
|
||||
checkList.value.push(alertText.value);
|
||||
reportAlertShow.value = false;
|
||||
(props.reportType === "comment" ? commentReportHttp : reportHttp)({
|
||||
message: checkList.value,
|
||||
token: props.reportToken,
|
||||
}).then(res => {
|
||||
checkList.value = []
|
||||
reportAlertShow.value = false
|
||||
ElMessage({
|
||||
message: res.message || "举报成功",
|
||||
type: "success",
|
||||
})
|
||||
})
|
||||
}
|
||||
}).then((res) => {
|
||||
checkList.value = [];
|
||||
reportAlertShow.value = false;
|
||||
|
||||
ElMessage.success(res.message || "举报成功");
|
||||
});
|
||||
};
|
||||
|
||||
// 取消
|
||||
const cancel = () => (reportAlertShow.value = false)
|
||||
const cancel = () => (reportAlertShow.value = false);
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
|
||||
Reference in New Issue
Block a user