fix
This commit is contained in:
parent
5d8f61920d
commit
4fe502833c
@ -9,7 +9,8 @@
|
||||
</div>
|
||||
</template>
|
||||
<template #r1>
|
||||
<up-input placeholder="请输入手机号" clearable type="number" border="none" v-model="tel"></up-input>
|
||||
<up-input placeholder="请输入手机号" clearable type="number" border="none" v-model="tel"
|
||||
style="width: 320rpx;"></up-input>
|
||||
</template>
|
||||
<template #l2>
|
||||
<div class="box-left">
|
||||
@ -20,7 +21,7 @@
|
||||
<div class="box-right">
|
||||
<up-input placeholder="请输入验证码" border="none" v-model="code">
|
||||
<template #suffix>
|
||||
<up-code ref="uCodeRef" @change="codeChange" seconds="60" changeText="60秒重新获取"
|
||||
<up-code ref="uCodeRef" @change="codeChange" seconds="60" changeText="x秒重新获取"
|
||||
endText="重新获取"></up-code>
|
||||
<up-button @tap="getCode" :text="tips" type="success" size="mini"></up-button>
|
||||
</template>
|
||||
|
@ -54,7 +54,11 @@
|
||||
import card from '@/components/card/index.vue'
|
||||
import { onMounted } from "vue";
|
||||
import { onLoad } from "@dcloudio/uni-app"
|
||||
|
||||
import mumuGetQrcode from "../../components/mumu-getQrcode/mumu-getQrcode.vue";
|
||||
import { ref, getCurrentInstance } from 'vue';
|
||||
const currentInstance = getCurrentInstance();
|
||||
const { $request } =
|
||||
currentInstance.appContext.config.globalProperties;
|
||||
onLoad((option) => {
|
||||
console.log(option);
|
||||
getQrInfo()
|
||||
|
@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<div>
|
||||
<!-- <mumuGetQrcode @success="qrcodeSucess" @error="qrcodeError"></mumuGetQrcode> -->
|
||||
<up-button type="primary" text="xxx" shape="circle" color="#000" style="width:436rpx ;"
|
||||
@click="qrcodeSucess"></up-button>
|
||||
<mumuGetQrcode @success="qrcodeSucess" @error="qrcodeError"></mumuGetQrcode>
|
||||
<!-- <up-button type="primary" text="xxx" shape="circle" color="#000" style="width:436rpx ;"
|
||||
@click="qrcodeSucess"></up-button> -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -12,12 +12,19 @@ import { ref, getCurrentInstance } from 'vue';
|
||||
const currentInstance = getCurrentInstance();
|
||||
const { $request } =
|
||||
currentInstance.appContext.config.globalProperties;
|
||||
const qrcodeSucess = () => {
|
||||
$request.qrCodeInfo({ appointmentUid: '245fa520-3724-4151-82a9-dd84d6838b68' }).then((res) => {
|
||||
if (res.status === 0) {
|
||||
const qrcodeSucess = (id) => {
|
||||
uni.showModal({
|
||||
title: id,
|
||||
content: id,
|
||||
success: () => {
|
||||
uni.navigateBack({});
|
||||
},
|
||||
});
|
||||
// $request.qrCodeInfo({ appointmentUid: '245fa520-3724-4151-82a9-dd84d6838b68' }).then((res) => {
|
||||
// if (res.status === 0) {
|
||||
|
||||
}
|
||||
})
|
||||
// }
|
||||
// })
|
||||
}
|
||||
const qrcodeError = (err) => {
|
||||
console.log(err);
|
||||
|
Loading…
Reference in New Issue
Block a user