diff --git a/pages/index/index.vue b/pages/index/index.vue index bc02ffc..28b664f 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,25 +1,12 @@ @@ -52,6 +59,7 @@ data() { return { welTitle: "", + imageSrc:"", currentDate: tool.getTodayDate(), moduleList: [{ navigate:'/pages/ofm/booking', @@ -99,6 +107,19 @@ url:item.navigate }) }, + cameraClick(){ + uni.chooseImage({ + count: 1, // 默认选择1张图片 + sourceType: ['album', 'camera'], // 支持相册和相机 + success: function (res) { + // 返回选择或拍摄的图片路径 + console.log(res.tempFilePaths[0]); + }, + fail: function (err) { + console.log('选择或拍照失败', err); + } + }); + }, } } diff --git a/static/banner1.png b/static/banner1.png new file mode 100644 index 0000000..a630765 Binary files /dev/null and b/static/banner1.png differ