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