|
@@ -210,13 +210,13 @@
|
|
placeholder="手机号"
|
|
placeholder="手机号"
|
|
type="digit"
|
|
type="digit"
|
|
v-model="laoginData.phone"
|
|
v-model="laoginData.phone"
|
|
- clearable
|
|
|
|
|
|
+ clearable
|
|
maxLength="11"
|
|
maxLength="11"
|
|
/>
|
|
/>
|
|
<van-field
|
|
<van-field
|
|
placeholder="验证码"
|
|
placeholder="验证码"
|
|
v-model="laoginData.code"
|
|
v-model="laoginData.code"
|
|
- clearable
|
|
|
|
|
|
+ clearable
|
|
type="digit"
|
|
type="digit"
|
|
maxLength="6"
|
|
maxLength="6"
|
|
>
|
|
>
|
|
@@ -272,6 +272,7 @@ import customProgress from './customProgress.vue';
|
|
import loadList from '@/components/loadList';
|
|
import loadList from '@/components/loadList';
|
|
import { fileKeyToUrl } from '@/plugins/file-center.js';
|
|
import { fileKeyToUrl } from '@/plugins/file-center.js';
|
|
import Verify from '@/components/verifition/Verify';
|
|
import Verify from '@/components/verifition/Verify';
|
|
|
|
+import { writeToClipboard } from '@/plugins/plugins.js';
|
|
export default {
|
|
export default {
|
|
props: {
|
|
props: {
|
|
operateActivityId: {
|
|
operateActivityId: {
|
|
@@ -647,20 +648,17 @@ export default {
|
|
if (this.$userAgent.isSzx || this.$userAgent.isSzxBrowser) {
|
|
if (this.$userAgent.isSzx || this.$userAgent.isSzxBrowser) {
|
|
this.$native.share(shareInfo);
|
|
this.$native.share(shareInfo);
|
|
} else {
|
|
} else {
|
|
- // 微信环境不支持复制
|
|
|
|
- if (this.$userAgent.isWx || this.$userAgent.isMiniProgram) {
|
|
|
|
- setTimeout(() => {
|
|
|
|
- this.$toast.fail(
|
|
|
|
- '链接复制失败,请访问客户端或网页复制该链接',
|
|
|
|
- );
|
|
|
|
|
|
+ writeToClipboard(res.data.link)
|
|
|
|
+ .then(() => {
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.$toast('链接复制成功');
|
|
|
|
+ });
|
|
|
|
+ })
|
|
|
|
+ .catch((err) => {
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.$toast('链接复制失败');
|
|
|
|
+ });
|
|
});
|
|
});
|
|
- return;
|
|
|
|
- }
|
|
|
|
- // 浏览器环境
|
|
|
|
- await this.$native.clipboard.writeText(res.data.link);
|
|
|
|
- setTimeout(() => {
|
|
|
|
- this.$toast.success('链接复制成功');
|
|
|
|
- });
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|