fixed
This commit is contained in:
parent
bcd07e0c8f
commit
f904c8205c
16
.env
16
.env
@ -1,16 +1,16 @@
|
|||||||
VITE_APP_H5_NO=1
|
VITE_APP_H5_NO=1
|
||||||
VITE_CHANNEL_ID=""
|
VITE_CHANNEL_ID=""
|
||||||
# VITE_APP_NAME=Spinz777
|
VITE_APP_NAME=Spinz777
|
||||||
VITE_APP_NAME=Winzz777
|
# VITE_APP_NAME=Winzz777
|
||||||
VITE_APP_THEME=red
|
VITE_APP_THEME=red
|
||||||
# VITE_APP_ID=101
|
VITE_APP_ID=101
|
||||||
VITE_APP_ID=103
|
# VITE_APP_ID=103
|
||||||
# VITE_APP_DOWNLOAD_URL="https://www.777spinz.com/spinz777_101_1.0.0.apk"
|
VITE_APP_DOWNLOAD_URL="https://www.777spinz.com/spinz777_101_1.0.0.apk"
|
||||||
VITE_APP_DOWNLOAD_URL="https://www.777spinz.com/Winzz777_103_100.apk"
|
# VITE_APP_DOWNLOAD_URL="https://www.777spinz.com/Winzz777_103_100.apk"
|
||||||
VITE_APP_LOCALE=en
|
VITE_APP_LOCALE=en
|
||||||
VITE_APP_IMAGE_URL="https://img1.sp77.in/frontimg"
|
VITE_APP_IMAGE_URL="https://img1.sp77.in/frontimg"
|
||||||
VITE_WALLET_URL="https://inrchain.in/#/?inviteCode=m5ncrxv0"
|
VITE_WALLET_URL="https://inrchain.in/#/?inviteCode=m5ncrxv0"
|
||||||
# VITE_NAME_UPPER=SPINZ777
|
VITE_NAME_UPPER=SPINZ777
|
||||||
VITE_NAME_UPPER=WINZZ777
|
# VITE_NAME_UPPER=WINZZ777
|
||||||
VITE_CURRENCY=INR
|
VITE_CURRENCY=INR
|
||||||
VITE_CURRENCY_SYMBOL=₹
|
VITE_CURRENCY_SYMBOL=₹
|
@ -17,8 +17,8 @@
|
|||||||
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
|
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
|
||||||
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
|
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
|
||||||
</script> -->
|
</script> -->
|
||||||
<!-- <title>Spinz777</title> -->
|
<title>Spinz777</title>
|
||||||
<title>Winzz777</title>
|
<!-- <title>Winzz777</title> -->
|
||||||
<!--preload-links-->
|
<!--preload-links-->
|
||||||
<!--app-context-->
|
<!--app-context-->
|
||||||
</head>
|
</head>
|
||||||
|
64
src/App.vue
64
src/App.vue
@ -21,43 +21,12 @@ import { getAndroidId } from "@/uni_modules/x-uniq-id"
|
|||||||
import md5 from "crypto-js/md5"
|
import md5 from "crypto-js/md5"
|
||||||
export default {
|
export default {
|
||||||
onLaunch: function (options) {
|
onLaunch: function (options) {
|
||||||
|
// #ifdef APP-PLUS
|
||||||
|
plus.navigator.hideSystemNavigation()
|
||||||
|
// #endif
|
||||||
console.log('App Launch', options)
|
console.log('App Launch', options)
|
||||||
console.log('Process.env', process.env)
|
console.log('Process.env', process.env)
|
||||||
this.handleAppLaunch(options);
|
this.handleAppLaunch(options);
|
||||||
// #ifdef APP-PLUS
|
|
||||||
plus.navigator.hideSystemNavigation()
|
|
||||||
// getGoogleAdId().then(adId => {
|
|
||||||
// console.log("Google 广告 ID:", adId);
|
|
||||||
// }).catch(err => {
|
|
||||||
// console.error('Google err:', err);
|
|
||||||
// });
|
|
||||||
// #endif
|
|
||||||
|
|
||||||
// uni.getClipboardData({
|
|
||||||
// success: (res) => {
|
|
||||||
// if (res.data) {
|
|
||||||
// console.log("Clipboard:", res.data)
|
|
||||||
// try {
|
|
||||||
// const params = JSON.parse(res.data)
|
|
||||||
// const appStore = useAppStore()
|
|
||||||
// appStore.channelId = params?.channelId
|
|
||||||
// appStore.h5No = params?.h5no
|
|
||||||
// appStore.fbc = params?.fbc
|
|
||||||
// appStore.fbp = params?.fbp
|
|
||||||
// uni.setClipboardData({
|
|
||||||
// data: '',
|
|
||||||
// })
|
|
||||||
// } catch (error) {
|
|
||||||
// console.log(error);
|
|
||||||
|
|
||||||
// }
|
|
||||||
// uni.hideToast()
|
|
||||||
// }
|
|
||||||
// uni.hideToast()
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
|
|
||||||
},
|
},
|
||||||
onShow: function (options) {
|
onShow: function (options) {
|
||||||
console.log('App Show', options)
|
console.log('App Show', options)
|
||||||
@ -97,26 +66,38 @@ export default {
|
|||||||
const langStore = useLangStore()
|
const langStore = useLangStore()
|
||||||
langStore.asyncFromLocal()
|
langStore.asyncFromLocal()
|
||||||
const res = uni.getSystemInfoSync()
|
const res = uni.getSystemInfoSync()
|
||||||
|
const dInfo = uni.getStorageSync('DEVICE_INFO')
|
||||||
|
console.log("DEVICE_INFO:", dInfo);
|
||||||
|
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
|
if (!dInfo) {
|
||||||
let s = ''
|
let s = ''
|
||||||
try {
|
try {
|
||||||
const gaid = await getAdid()
|
const gaid = await getAdid()
|
||||||
appStore.androidId = gaid
|
appStore.androidId = gaid
|
||||||
console.log("gaid:", gaid);
|
|
||||||
s = 'g_'
|
s = 'g_'
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
appStore.androidId = await getAndroidId()
|
appStore.androidId = await getAndroidId()
|
||||||
s = 'a_'
|
s = 'a_'
|
||||||
|
if (!appStore.androidId) {
|
||||||
|
appStore.androidId = res.deviceId
|
||||||
|
}
|
||||||
|
}
|
||||||
|
appStore.deviceId = s + md5(appStore.packageName + appStore.androidId).toString()
|
||||||
|
uni.setStorageSync('DEVICE_INFO', JSON.stringify({
|
||||||
|
androidId: appStore.androidId,
|
||||||
|
s
|
||||||
|
}))
|
||||||
|
} else {
|
||||||
|
const info = JSON.parse(dInfo)
|
||||||
|
appStore.androidId = info.androidId
|
||||||
|
appStore.deviceId = info.s + md5(appStore.packageName + info.androidId).toString()
|
||||||
}
|
}
|
||||||
console.log("androidId:", appStore.androidId);
|
console.log("androidId:", appStore.androidId);
|
||||||
|
|
||||||
appStore.deviceId = s + md5(appStore.packageName + appStore.androidId).toString()
|
|
||||||
// appStore.deviceId = s + appStore.androidId
|
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
//系统信息
|
//系统信息
|
||||||
// #ifdef H5
|
// #ifdef WEB
|
||||||
appStore.deviceId = res.deviceId
|
appStore.deviceId = res.deviceId
|
||||||
// #endif
|
// #endif
|
||||||
appStore.systemInfo = res
|
appStore.systemInfo = res
|
||||||
@ -152,7 +133,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
appStore.uniKey = '' + Date.now() + Math.floor(Math.random() * 1000)
|
appStore.uniKey = '' + Date.now() + Math.floor(Math.random() * 1000)
|
||||||
}
|
}
|
||||||
if(options.query.mcId) {
|
if (options.query.mcId) {
|
||||||
appStore.mcId = options.query.mcId
|
appStore.mcId = options.query.mcId
|
||||||
}
|
}
|
||||||
// NOTE: for 殼包
|
// NOTE: for 殼包
|
||||||
@ -464,9 +445,10 @@ div {
|
|||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
}
|
}
|
||||||
|
|
||||||
.items-start{
|
.items-start {
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.uni-modal {
|
.uni-modal {
|
||||||
background-color: #610606 !important;
|
background-color: #610606 !important;
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
/* Spinz777 *///
|
/* Spinz777 *///
|
||||||
"name" : "Winzz777",
|
// "name" : "Winzz777",
|
||||||
// "name" : "Spinz777",
|
"name" : "Spinz777",
|
||||||
"appid" : "__UNI__FECBD22",
|
"appid" : "__UNI__FECBD22",
|
||||||
"description" : "Winzz777",
|
// "description" : "Winzz777",
|
||||||
// "description" : "Spinz777",
|
"description" : "Spinz777",
|
||||||
"versionName" : "1.2.2",
|
"versionName" : "1.2.2",
|
||||||
"versionCode" : 122,
|
"versionCode" : 122,
|
||||||
"channel_list" : [
|
"channel_list" : [
|
||||||
|
@ -362,8 +362,8 @@
|
|||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
"navigationStyle": "custom",
|
"navigationStyle": "custom",
|
||||||
"navigationBarTextStyle": "white",
|
"navigationBarTextStyle": "white",
|
||||||
// "navigationBarTitleText": "Spinz777",
|
"navigationBarTitleText": "Spinz777",
|
||||||
"navigationBarTitleText": "Winzz777",
|
// "navigationBarTitleText": "Winzz777",
|
||||||
"navigationBarBackgroundColor": "#F8F8F8",
|
"navigationBarBackgroundColor": "#F8F8F8",
|
||||||
"backgroundColor": "#FFFFFF",
|
"backgroundColor": "#FFFFFF",
|
||||||
"app-plus": {
|
"app-plus": {
|
||||||
|
@ -727,7 +727,13 @@ const getUserBankrupt = async () => {
|
|||||||
const { data } = await checkBankruptApi();
|
const { data } = await checkBankruptApi();
|
||||||
console.log("getUserBankrupt:", data);
|
console.log("getUserBankrupt:", data);
|
||||||
const { state, details } = data;
|
const { state, details } = data;
|
||||||
if (state === 0) return;
|
if (state === 0) {
|
||||||
|
const idx = slideItems.value.findIndex(item => item.dotName === 'bankrupt_doted');
|
||||||
|
if (idx > -1) {
|
||||||
|
slideItems.value.splice(idx, 1);
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
};
|
||||||
if (state === 1) {
|
if (state === 1) {
|
||||||
const arr = details.sort((a, b) => a.recharge - b.recharge);
|
const arr = details.sort((a, b) => a.recharge - b.recharge);
|
||||||
bankruptArr.value = [arr[0], arr[2], arr[1]];
|
bankruptArr.value = [arr[0], arr[2], arr[1]];
|
||||||
@ -745,6 +751,7 @@ const getUserBankrupt = async () => {
|
|||||||
dotName: "bankrupt_doted",
|
dotName: "bankrupt_doted",
|
||||||
count: 1
|
count: 1
|
||||||
});
|
});
|
||||||
|
showPopQueue()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (state === 2) {
|
if (state === 2) {
|
||||||
@ -848,6 +855,9 @@ onLoad(async () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
onShow(() => {
|
onShow(() => {
|
||||||
|
setTimeout(() => {
|
||||||
|
userStore.getUserInfo()
|
||||||
|
}, 500);
|
||||||
getUserBankrupt();
|
getUserBankrupt();
|
||||||
getPageData();
|
getPageData();
|
||||||
checkRedepositApi().then(({ data }) => {
|
checkRedepositApi().then(({ data }) => {
|
||||||
|
@ -122,6 +122,9 @@ const initData = async () => {
|
|||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
if (!appStore.androidId) {
|
if (!appStore.androidId) {
|
||||||
console.log("init");
|
console.log("init");
|
||||||
|
const systemInfo = uni.getSystemInfoSync()
|
||||||
|
const deviceInfo = uni.getStorageSync('DEVICE_INFO')
|
||||||
|
if (!deviceInfo) {
|
||||||
let s = ''
|
let s = ''
|
||||||
try {
|
try {
|
||||||
const gaid = await getAdid()
|
const gaid = await getAdid()
|
||||||
@ -131,11 +134,18 @@ const initData = async () => {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
appStore.androidId = getAndroidId()
|
appStore.androidId = getAndroidId()
|
||||||
s = 'a_'
|
s = 'a_'
|
||||||
|
if(!appStore.androidId){
|
||||||
|
appStore.androidId = systemInfo.deviceId
|
||||||
|
}
|
||||||
}
|
}
|
||||||
console.log("androidId:", appStore.androidId)
|
console.log("androidId:", appStore.androidId)
|
||||||
// appStore.deviceId = s + appStore.androidId
|
|
||||||
appStore.deviceId = s + md5(appStore.packageName + appStore.androidId).toString()
|
appStore.deviceId = s + md5(appStore.packageName + appStore.androidId).toString()
|
||||||
appStore.saveToLocal()
|
uni.setStorageSync('DEVICE_INFO', JSON.stringify({ androidId: appStore.androidId, s }))
|
||||||
|
} else {
|
||||||
|
const info = JSON.parse(deviceInfo)
|
||||||
|
appStore.androidId = info.androidId
|
||||||
|
appStore.deviceId = info.s + md5(appStore.packageName + appStore.androidId).toString()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// #endif
|
// #endif
|
||||||
console.log('isLogin', userStore.isLogin);
|
console.log('isLogin', userStore.isLogin);
|
||||||
@ -164,6 +174,7 @@ const initData = async () => {
|
|||||||
await requestAppFbparams({ fbc: appStore.fbc, fbp: appStore.fbp, uniKey: appStore.uniKey })
|
await requestAppFbparams({ fbc: appStore.fbc, fbp: appStore.fbp, uniKey: appStore.uniKey })
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
|
||||||
await userStore.guestLogin()
|
await userStore.guestLogin()
|
||||||
await userStore.getAgentInfoV2()
|
await userStore.getAgentInfoV2()
|
||||||
await usePromoStore().getPromoList()
|
await usePromoStore().getPromoList()
|
||||||
|
@ -86,6 +86,7 @@ onLoad(async (option) => {
|
|||||||
// }
|
// }
|
||||||
})
|
})
|
||||||
const onBack = () => {
|
const onBack = () => {
|
||||||
|
// reportGameOut()
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
plus.webview.close(webviewInstance)
|
plus.webview.close(webviewInstance)
|
||||||
// #endif
|
// #endif
|
||||||
@ -168,7 +169,6 @@ onUnmounted(() => {
|
|||||||
uni.offWindowResize(computeWebviewHeight)
|
uni.offWindowResize(computeWebviewHeight)
|
||||||
stopReport()
|
stopReport()
|
||||||
requestJiliLogout()
|
requestJiliLogout()
|
||||||
reportGameOut()
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const startReport = () => {
|
const startReport = () => {
|
||||||
|
@ -136,9 +136,9 @@ export const useAppStore = defineStore({
|
|||||||
updateText: '',
|
updateText: '',
|
||||||
updateType: 0
|
updateType: 0
|
||||||
},
|
},
|
||||||
// packageName: 'uni.UNIFECBD22',//101 Spinz777
|
packageName: 'uni.UNIFECBD22',//101 Spinz777
|
||||||
// packageName: 'uni.UNIFECBD22', //102
|
// packageName: 'uni.UNIFECBD22', //102
|
||||||
packageName: 'com.kllksgqoCasw3d.game',//103 Winzz777
|
// packageName: 'com.kllksgqoCasw3d.game',//103 Winzz777
|
||||||
}),
|
}),
|
||||||
// "dependencies": [
|
// "dependencies": [
|
||||||
// {
|
// {
|
||||||
|
@ -54,6 +54,10 @@ export const useUserStore = defineStore({
|
|||||||
this.agentInfo = data || {}
|
this.agentInfo = data || {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
async getUserInfo() {
|
||||||
|
const {data} = await requestUserInfo({})
|
||||||
|
this.userInfo = data
|
||||||
|
},
|
||||||
async getUserTotalInfo() {
|
async getUserTotalInfo() {
|
||||||
const appStore = useAppStore()
|
const appStore = useAppStore()
|
||||||
const resList = await Promise.all([requestUserInfo(), getVipInfo()])
|
const resList = await Promise.all([requestUserInfo(), getVipInfo()])
|
||||||
|
Loading…
Reference in New Issue
Block a user