Commit 20c142f2 authored by Damon's avatar Damon

Merge branch 'dev-v1.0.0' of git.banshouhui.com:wuzhenzhe/study into dev-v1.0.0

parents 4789ffc8 de3f032c
......@@ -43,6 +43,9 @@
>手动输入卡号、密码绑定</view
>
</view>
<view>
<u-toast ref="uToast" />
</view>
</view>
</view>
</template>
......@@ -91,7 +94,7 @@ export default {
onlyFromCamera: true,
success: (res) => {
console.log(res)
if (res.result) {
if (res.result && res.result.length == 15 + 8) {
this.$u.route({
url: 'pages/learn/boundTest',
params: {
......@@ -99,8 +102,22 @@ export default {
// relationId: this.relationId,
},
})
} else {
this.$refs.uToast.show({
title: '未成功识别相关信息',
type: 'error',
duration: 2000,
})
}
},
fail: (err) => {
console.log(err)
this.$refs.uToast.show({
title: '未成功识别相关信息',
type: 'error',
duration: 2000,
})
},
})
},
handleClickBuy() {
......
......@@ -15,10 +15,11 @@
<view class="content-view">
<view class="field-title">学习卡卡号</view>
<view class="field-view">
<input
<u-input
type="number"
class="input-view"
:value="code"
v-model="code"
input-align="center"
placeholder="请输入卡号"
:placeholder-style="placeplaceholderStyle"
cursor-spacing="140"
......@@ -28,10 +29,11 @@
</view>
<view class="field-title">学习卡密码</view>
<view class="field-view">
<input
<u-input
class="input-view"
password
:value="password"
input-align="center"
v-model="password"
placeholder="请输入密码"
:placeholder-style="placeplaceholderStyle"
cursor-spacing="140"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment