xiaokuaisong-xiaochengxu/uniapp04/unpackage/dist/dev/mp-alipay/pages/textone/textone.js

90 lines
2.3 KiB
JavaScript
Raw Permalink Normal View History

2024-10-18 07:53:00 +00:00
"use strict";
const common_vendor = require("../../common/vendor.js");
2025-04-11 06:42:29 +00:00
const _sfc_main = {
data() {
return {
imageStyles: {
width: 64,
height: 64,
border: {
radius: "50%"
}
},
listStyles: {
// 是否显示边框
border: true,
// 是否显示分隔线
dividline: true,
// 线条样式
borderStyle: {
width: 1,
color: "blue",
style: "dashed",
radius: 2
}
},
fileLists: [{
url: "https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/shuijiao-small.jpg",
extname: "png",
name: "shuijiao.png"
}, {
url: "https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/shuijiao-small.jpg",
extname: "png",
name: "uniapp-logo.png"
}, {
url: "https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/shuijiao-small.jpg",
extname: "png",
name: "shuijiao.png"
}]
};
},
methods: {}
};
2024-10-18 07:53:00 +00:00
if (!Array) {
2025-04-11 06:42:29 +00:00
const _easycom_uni_file_picker2 = common_vendor.resolveComponent("uni-file-picker");
_easycom_uni_file_picker2();
2024-10-18 07:53:00 +00:00
}
2025-04-11 06:42:29 +00:00
const _easycom_uni_file_picker = () => "../../uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.js";
2024-10-18 07:53:00 +00:00
if (!Math) {
2025-04-11 06:42:29 +00:00
_easycom_uni_file_picker();
2024-10-18 07:53:00 +00:00
}
2025-04-11 06:42:29 +00:00
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
2024-10-18 07:53:00 +00:00
return {
a: common_vendor.p({
2025-04-11 06:42:29 +00:00
limit: "9",
title: "最多选择9张图片"
2024-10-18 07:53:00 +00:00
}),
b: common_vendor.p({
2025-04-11 06:42:29 +00:00
limit: "9",
["file-mediatype"]: "video",
title: "最多选择9个视频"
}),
c: common_vendor.p({
limit: "5",
["file-mediatype"]: "all",
title: "最多选择5个文件"
}),
d: common_vendor.p({
limit: "1",
["del-icon"]: false,
["disable-preview"]: true,
imageStyles: $data.imageStyles,
["file-mediatype"]: "image"
}),
e: common_vendor.p({
readonly: true,
value: $data.fileLists,
imageStyles: $data.imageStyles,
["file-mediatype"]: "image"
}),
f: common_vendor.p({
readonly: true,
value: $data.fileLists,
listStyles: $data.listStyles,
["file-mediatype"]: "all"
2024-10-18 07:53:00 +00:00
})
};
}
2025-04-11 06:42:29 +00:00
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
2024-10-18 07:53:00 +00:00
my.createPage(MiniProgramPage);