|
|
@@ -4,31 +4,22 @@
|
|
|
<view class="phone-common-dialog">
|
|
|
<view class="common-body-box">
|
|
|
<view class="common-title">二维码</view>
|
|
|
- <img :src="imgSrc" class="code-img"/>
|
|
|
+ <img src="@/static/images/erweima.png" class="code-img"/>
|
|
|
<view class="common-btn-box">
|
|
|
<view class="confirm-btn" @click="handleClose">关闭</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </uni-popup>
|
|
|
-</template>
|
|
|
-
|
|
|
+ </uni-popup>
|
|
|
+</template>
|
|
|
+
|
|
|
<script setup>
|
|
|
import * as myApi from "@/api/my.js";
|
|
|
import {ref,reactive} from "vue"
|
|
|
const passwordPopup = ref(null); // 索引
|
|
|
- const imgSrc = ref('');
|
|
|
- // const $emit = defineEmits(['confirm-btn'])
|
|
|
-
|
|
|
- function init(){
|
|
|
- myApi.getGlMineQrcode().then(res => {
|
|
|
- imgSrc.value = res.data;
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
+
|
|
|
// 打开弹窗
|
|
|
function handleShow() {
|
|
|
- init();
|
|
|
passwordPopup.value.open();
|
|
|
}
|
|
|
// 取消
|
|
|
@@ -37,10 +28,10 @@
|
|
|
}
|
|
|
|
|
|
defineExpose({
|
|
|
- handleShow,
|
|
|
+ handleShow,
|
|
|
handleClose
|
|
|
- })
|
|
|
-</script>
|
|
|
-
|
|
|
-<style>
|
|
|
+ })
|
|
|
+</script>
|
|
|
+
|
|
|
+<style>
|
|
|
</style>
|