|
@@ -34,7 +34,11 @@
|
|
|
<img
|
|
<img
|
|
|
src="@/assets/icon_customer_tg.png"
|
|
src="@/assets/icon_customer_tg.png"
|
|
|
class="icon"
|
|
class="icon"
|
|
|
- v-else-if="item.type === 'Telegram'"
|
|
|
|
|
|
|
+ v-else-if="
|
|
|
|
|
+ item.type === 'Telegram' ||
|
|
|
|
|
+ item.type === 'Telegram Group' ||
|
|
|
|
|
+ item.type === 'TG Group'
|
|
|
|
|
+ "
|
|
|
/>
|
|
/>
|
|
|
<img src="@/assets/icon_customer.png" class="icon" v-else />
|
|
<img src="@/assets/icon_customer.png" class="icon" v-else />
|
|
|
<div class="info" @click="copyText(item.account)">
|
|
<div class="info" @click="copyText(item.account)">
|
|
@@ -142,6 +146,16 @@ async function open(item) {
|
|
|
} else {
|
|
} else {
|
|
|
await AppLauncher.openUrl({ url: `https://t.me/${item.account}` })
|
|
await AppLauncher.openUrl({ url: `https://t.me/${item.account}` })
|
|
|
}
|
|
}
|
|
|
|
|
+ } else if (item.type === 'Telegram Group' || item.type === 'TG Group') {
|
|
|
|
|
+ let account = item.account
|
|
|
|
|
+ if (account.startsWith('+')) {
|
|
|
|
|
+ account = account.substr(1)
|
|
|
|
|
+ }
|
|
|
|
|
+ if (Capacitor.isNativePlatform()) {
|
|
|
|
|
+ await AppLauncher.openUrl({ url: `tg://join?invite=${account}` })
|
|
|
|
|
+ } else {
|
|
|
|
|
+ await AppLauncher.openUrl({ url: `https://t.me/+${account}` })
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
provide('showCS', () => {
|
|
provide('showCS', () => {
|