diff --git a/packages/card/detail.vue b/packages/card/detail.vue index 729fc4d..3adc362 100644 --- a/packages/card/detail.vue +++ b/packages/card/detail.vue @@ -1,35 +1,23 @@ @@ -42,38 +30,14 @@ components: {}, data() { return { - form: { - code: '', - password: '' - }, - + } }, onLoad() { console.log(wx.env.USER_DATA_PATH) }, methods: { - getScanCode() { - uni.scanCode({ - onlyFromCamera: false, - scanType: ['qrCode', 'barCode', 'dataMatrix'], - success: res => { - if (res.errMsg == 'scanCode:ok') { - this.form.code = res.result - } else { - uni.showToast({ - title: '扫码失败', - icon: "none", - mask: true, - }) - } - }, - fail: err => { - console.log(JSON.stringify(err)) - } - - }) - }, + saveImg() { let _this = this let fileName = new Date().valueOf() @@ -82,7 +46,7 @@ scope: 'scope.writePhotosAlbum', success: (res) => { uni.downloadFile({ - url: 'https://cdn.uviewui.com/uview/swiper/1.jpg', + url: '../../static/cardimg1.jpg', filePath:filePath, success(res) { console.log(res) @@ -114,65 +78,21 @@ \ No newline at end of file diff --git a/packages/card/index.vue b/packages/card/index.vue index 43e18e6..ac60114 100644 --- a/packages/card/index.vue +++ b/packages/card/index.vue @@ -79,7 +79,7 @@ } - \ No newline at end of file