diff --git a/packages/card/index.vue b/packages/card/index.vue index 18c4412..43e18e6 100644 --- a/packages/card/index.vue +++ b/packages/card/index.vue @@ -1,35 +1,32 @@ @@ -38,47 +35,38 @@ components: {}, data() { return { + autoplay: true, + interval: 3000, + duration: 500, + indicatorColor: 'rgba(204,204,203,.5)', + indicatorActiveColor: '#b98b44', form: { code: '', - password: '' }, - list: [{ - image: 'https://cdn.uviewui.com/uview/swiper/1.jpg', - title: '昨夜星辰昨夜风,画楼西畔桂堂东' - }, - { - image: 'https://cdn.uviewui.com/uview/swiper/2.jpg', - title: '身无彩凤双飞翼,心有灵犀一点通' - }, - { - image: 'https://cdn.uviewui.com/uview/swiper/3.jpg', - title: '谁念西风独自凉,萧萧黄叶闭疏窗,沉思往事立残阳' - } - ], - + } }, 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)) - } - - }) + // 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)) + // } + + // }) }, goSubmit() { @@ -91,63 +79,83 @@ } - \ No newline at end of file diff --git a/static/cardimg1.jpg b/static/cardimg1.jpg new file mode 100644 index 0000000..b1811df Binary files /dev/null and b/static/cardimg1.jpg differ diff --git a/static/cardimg2.jpg b/static/cardimg2.jpg new file mode 100644 index 0000000..749e476 Binary files /dev/null and b/static/cardimg2.jpg differ