This commit is contained in:
xiaozhiyong
2023-09-18 17:22:04 +08:00
parent 49fc0e5531
commit 5a73a4e9a6
9 changed files with 701 additions and 401 deletions

View File

@@ -43,7 +43,7 @@
<view v-show="isTransfer" :class="isTransfer?'active':''" class="card-container second">
<view class="inCard" @click="sweepCard">
<text></text>
<text>一扫</text>
</view>
<view class="inCard phone" @tap='gotocard'>
<text>手机号码</text>
@@ -57,6 +57,7 @@
</template>
<script>
import serve from '@/api/account.js'
export default {
filters: {
companyType(e) {
@@ -108,8 +109,17 @@
sweepCard() {
uni.scanCode({
success: res => {
console.log(res)
let {} = res.result
let result = JSON.parse(res.result)
if (result.qrcodeText) {
serve.checkQrStr(result.giveCustomerId, result.qrcodeText).then(res => {
let currentCard = this.card || []
this.$emit('buttomPopup', {
...currentCard,
...result
})
})
}
}
})
},