|
@@ -1,13 +1,30 @@
|
|
|
<template lang="">
|
|
|
- <div></div>
|
|
|
+ <div>
|
|
|
+ <!-- <v-btn @click="open({ templateId: 6635862 })">双子星模板</v-btn>
|
|
|
+ <v-btn @click="open({ templateId: 6634867 })">唔即云模板</v-btn> -->
|
|
|
+ </div>
|
|
|
</template>
|
|
|
<script>
|
|
|
+import qs from 'qs';
|
|
|
+
|
|
|
export default {
|
|
|
head() {
|
|
|
return {
|
|
|
script: [
|
|
|
{
|
|
|
- src: 'https://qiyukf.com/script/98112bcf552907c28ee450c6a58269c3.js',
|
|
|
+ src:
|
|
|
+ 'https://qiyukf.com/script/98112bcf552907c28ee450c6a58269c3.js' +
|
|
|
+ qs.stringify(
|
|
|
+ {
|
|
|
+ hidden: 0,
|
|
|
+ sdkTemplateId:
|
|
|
+ this.$route.query?.templateId ??
|
|
|
+ process.env.QIYUKF_TEMPLATE_ID,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ addQueryPrefix: true,
|
|
|
+ },
|
|
|
+ ),
|
|
|
async: true,
|
|
|
callback: () => {
|
|
|
// console.log(window.ysf);
|
|
@@ -37,6 +54,7 @@ export default {
|
|
|
|
|
|
await new Promise((resolve, reject) => {
|
|
|
ysf('config', {
|
|
|
+ // welcomeTemplateId: 6635862,
|
|
|
uid: String(this.$auth.user.id),
|
|
|
name: this.$auth.user.userName,
|
|
|
mobile: this.$auth.user.phone,
|
|
@@ -78,7 +96,9 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
if (this.isAutoOpen) {
|
|
|
- this.open();
|
|
|
+ this.open({
|
|
|
+ // templateId: 6635862,
|
|
|
+ });
|
|
|
}
|
|
|
if (this.isOnunread) {
|
|
|
this.onunread();
|