71 lines
1.8 KiB
JavaScript
71 lines
1.8 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const common_assets = require("../../common/assets.js");
|
|
if (!Array) {
|
|
const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
|
|
_easycom_uni_icons2();
|
|
}
|
|
const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
|
|
if (!Math) {
|
|
_easycom_uni_icons();
|
|
}
|
|
const _sfc_main = {
|
|
__name: "appeal",
|
|
setup(__props) {
|
|
const reasonList = [
|
|
{
|
|
name: "发布不正当理由"
|
|
},
|
|
{
|
|
name: "传播色情资源"
|
|
},
|
|
{
|
|
name: "冒充他人"
|
|
},
|
|
{
|
|
name: "涉嫌诈骗"
|
|
},
|
|
{
|
|
name: "侵犯权益"
|
|
},
|
|
{
|
|
name: "其他"
|
|
}
|
|
];
|
|
const reasonShow = common_vendor.ref(false);
|
|
const reasonIndex = common_vendor.ref(0);
|
|
function handleReasonIndex(index) {
|
|
reasonShow.value = false;
|
|
if (reasonIndex.value === index)
|
|
return;
|
|
reasonIndex.value = index;
|
|
}
|
|
return (_ctx, _cache) => {
|
|
return {
|
|
a: common_assets._imports_0$8,
|
|
b: common_assets._imports_1$2,
|
|
c: common_vendor.p({
|
|
type: "right",
|
|
color: "#999",
|
|
size: "28rpx"
|
|
}),
|
|
d: common_vendor.o$1(($event) => reasonShow.value = !reasonShow.value),
|
|
e: common_vendor.f(reasonList, (item, index, i0) => {
|
|
return {
|
|
a: common_vendor.t(item.name),
|
|
b: "5f26ccba-1-" + i0,
|
|
c: index,
|
|
d: common_vendor.o$1(($event) => handleReasonIndex(index), index)
|
|
};
|
|
}),
|
|
f: common_vendor.p({
|
|
type: "right"
|
|
}),
|
|
g: reasonShow.value ? 1 : "",
|
|
h: reasonList[reasonIndex.value].name == "其他"
|
|
};
|
|
};
|
|
}
|
|
};
|
|
wx.createPage(_sfc_main);
|