90 lines
2.3 KiB
JavaScript
90 lines
2.3 KiB
JavaScript
|
"use strict";
|
||
|
const common_vendor = require("../../common/vendor.js");
|
||
|
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: {}
|
||
|
};
|
||
|
if (!Array) {
|
||
|
const _easycom_uni_file_picker2 = common_vendor.resolveComponent("uni-file-picker");
|
||
|
_easycom_uni_file_picker2();
|
||
|
}
|
||
|
const _easycom_uni_file_picker = () => "../../uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.js";
|
||
|
if (!Math) {
|
||
|
_easycom_uni_file_picker();
|
||
|
}
|
||
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||
|
return {
|
||
|
a: common_vendor.p({
|
||
|
limit: "9",
|
||
|
title: "最多选择9张图片"
|
||
|
}),
|
||
|
b: common_vendor.p({
|
||
|
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"
|
||
|
})
|
||
|
};
|
||
|
}
|
||
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||
|
wx.createPage(MiniProgramPage);
|