xiongzhu há 2 anos atrás
pai
commit
2f4e40b6b3

+ 1 - 1
android/app/build.gradle

@@ -6,7 +6,7 @@ android {
         applicationId "com.bigauction.mobile"
         minSdkVersion rootProject.ext.minSdkVersion
         targetSdkVersion rootProject.ext.targetSdkVersion
-        versionCode 79
+        versionCode 81
         versionName "1.0.0"
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
         aaptOptions {

BIN
android/app/src/main/assets/cdvasset.manifest


+ 2 - 2
ios/App/App.xcodeproj/project.pbxproj

@@ -352,7 +352,7 @@
 				CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = NO;
 				CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
 				CODE_SIGN_STYLE = Automatic;
-				CURRENT_PROJECT_VERSION = 79;
+				CURRENT_PROJECT_VERSION = 81;
 				DEFINES_MODULE = NO;
 				DEVELOPMENT_TEAM = 72P5Y6N578;
 				INFOPLIST_FILE = App/Info.plist;
@@ -377,7 +377,7 @@
 				CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = NO;
 				CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
 				CODE_SIGN_STYLE = Automatic;
-				CURRENT_PROJECT_VERSION = 79;
+				CURRENT_PROJECT_VERSION = 81;
 				DEFINES_MODULE = NO;
 				DEVELOPMENT_TEAM = 72P5Y6N578;
 				INFOPLIST_FILE = App/Info.plist;

+ 18 - 4
src/App.vue

@@ -30,12 +30,18 @@
                     <div class="item" v-for="(item, i) in customers" :key="i">
                         <img class="bg" src="@/assets/bg_customer.png" />
                         <div class="item-content">
-                            <img src="@/assets/icon_customer.png" class="icon" />
+                            <img src="@/assets/icon_customer_wa.png" class="icon" v-if="item.type === 'WhatsApp'" />
+                            <img
+                                src="@/assets/icon_customer_tg.png"
+                                class="icon"
+                                v-else-if="item.type === 'Telegram'"
+                            />
+                            <img src="@/assets/icon_customer.png" class="icon" v-else />
                             <div class="info" @click="copyText(item.account)">
                                 <div class="name">{{ $t('common.customerService') }}</div>
                                 <div class="num">{{ item.type }}: {{ item.account }}</div>
                             </div>
-                            <div class="btn-open" @click="open(item)">{{ $t('common.open') }}</div>
+                            <div class="btn-open" @click="open(item)">OPEN</div>
                         </div>
                     </div>
                     <div class="tips">{{ $t('common.serviceTime') }}</div>
@@ -125,9 +131,17 @@ async function copyText(text) {
 }
 async function open(item) {
     if (item.type === 'WhatsApp') {
-        await AppLauncher.openUrl({ url: `https://wa.me/${item.account}` })
+        if (Capacitor.isNativePlatform()) {
+            await AppLauncher.openUrl({ url: `whatsapp://send?phone=${item.account}` })
+        } else {
+            await AppLauncher.openUrl({ url: `https://wa.me/${item.account}` })
+        }
     } else if (item.type === 'Telegram') {
-        await AppLauncher.openUrl({ url: `https://t.me/${item.account}` })
+        if (Capacitor.isNativePlatform()) {
+            await AppLauncher.openUrl({ url: `tg://resolve?domain=${item.account}` })
+        } else {
+            await AppLauncher.openUrl({ url: `https://t.me/${item.account}` })
+        }
     }
 }
 provide('showCS', () => {

BIN
src/assets/icon_customer_tg.png


BIN
src/assets/icon_customer_wa.png


+ 3 - 3
src/version.json

@@ -1,12 +1,12 @@
 {
     "ios": {
         "version": "1.0.0",
-        "build": 79
+        "build": 81
     },
     "android": {
         "version": "1.0.0",
-        "build": 79,
+        "build": 81,
         "versionCode": 12
     },
-    "www": 1064
+    "www": 1066
 }