|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div class="sign-box">
|
|
|
- <img class="sign-result-img" v-if="valueData" />
|
|
|
+ <img class="sign-result-img" :src="valueData" v-if="valueData" />
|
|
|
<t-popup trigger="click" :onVisibleChange="visibleChange" v-else>
|
|
|
<template #triggerElement>
|
|
|
<t-button>添加签名</t-button>
|
|
@@ -32,11 +32,15 @@ const emit = defineEmits(['update:modelValue', 'change']);
|
|
|
|
|
|
const valueData = ref('');
|
|
|
const getSignResultImg = () => {
|
|
|
- getAttachmentListByKey(key.value).then((res) => {
|
|
|
- if (res && res?.url) {
|
|
|
- valueData.value = res.url;
|
|
|
- emitChange();
|
|
|
- pause();
|
|
|
+ // getAttachmentListByKey(key.value).then((res) => {
|
|
|
+ //先用体验版的测试扫码链接,只能写死传'1',后期小程序发正式版本再增加支持活的参数
|
|
|
+ getAttachmentListByKey('1').then((res) => {
|
|
|
+ if (Array.isArray(res)) {
|
|
|
+ if (res && res[0]?.url) {
|
|
|
+ valueData.value = res[0].url;
|
|
|
+ emitChange();
|
|
|
+ pause();
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
};
|
|
@@ -72,10 +76,11 @@ const visibleChange = (visible) => {
|
|
|
if (visible) {
|
|
|
resume();
|
|
|
} else {
|
|
|
- pause();
|
|
|
+ // pause();
|
|
|
}
|
|
|
};
|
|
|
const createQrcodeValue = computed(() => {
|
|
|
+ //先用体验版的测试扫码链接,只能写死,后期小程序发正式版本再增加支持活的参数
|
|
|
return 'https://sopwxapp.qmth.com.cn/sign/?key=1';
|
|
|
});
|
|
|
</script>
|
|
@@ -83,7 +88,7 @@ const createQrcodeValue = computed(() => {
|
|
|
<style lang="less" scoped>
|
|
|
.sign-box {
|
|
|
.sign-result-img {
|
|
|
- height: 80px;
|
|
|
+ height: 100px;
|
|
|
}
|
|
|
}
|
|
|
</style>
|