Commit 08bdc3d5 authored by haiyoucuv's avatar haiyoucuv

改免登sb

parent 4893441b
......@@ -52,7 +52,7 @@
},
"autoReleaseAssets": false,
"_globals": {
"__id__": 197
"__id__": 202
},
"_id": "04224ebd-adcd-4112-8010-da14ed5ea48a"
},
......@@ -79,24 +79,27 @@
},
{
"__id__": 114
},
{
"__id__": 187
}
],
"_active": true,
"_components": [
{
"__id__": 187
"__id__": 192
},
{
"__id__": 188
"__id__": 193
},
{
"__id__": 189
"__id__": 194
},
{
"__id__": 190
"__id__": 195
},
{
"__id__": 191
"__id__": 196
}
],
"_prefab": null,
......@@ -188,7 +191,7 @@
"_priority": 1073741824,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight": 959.3787085514833,
"_orthoHeight": 649.8014888337469,
"_near": 1,
"_far": 2000,
"_color": {
......@@ -481,7 +484,7 @@
"y": -180,
"z": -12.000012657215834
},
"_id": "25c7M8TN9Pi4Wh51O6lDDs"
"_id": "33cdppi3RCh6+w/MwU4Y5p"
},
{
"__type__": "cc.UITransform",
......@@ -503,7 +506,7 @@
"x": 0,
"y": 1
},
"_id": "306RwBvpxHn6hVBnb6lZhn"
"_id": "a2YJ7xiCVLUasHmSrWY4oR"
},
{
"__type__": "cc.Sprite",
......@@ -539,7 +542,7 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "b6mZXNGHhM77hWSSnuVbx3"
"_id": "a65LTbrRtKE5a7azKPdLqY"
},
{
"__type__": "cc.Node",
......@@ -587,7 +590,7 @@
"y": -180,
"z": -11.00000220913452
},
"_id": "5c0QcR1sVPbIfFDbJlJdy5"
"_id": "48uc236PpNQKSETdHkl4GU"
},
{
"__type__": "cc.UITransform",
......@@ -609,7 +612,7 @@
"x": 0,
"y": 1
},
"_id": "cfoO3m+KlBboaZWocuzSLI"
"_id": "63YjKzt31E1Z/iKSfWcG/7"
},
{
"__type__": "cc.Sprite",
......@@ -645,7 +648,7 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "3dxrxyICFLH44UkPcT1ZYl"
"_id": "d0eY8/KMFDCY3y4lKKYuJ5"
},
{
"__type__": "cc.Node",
......@@ -693,7 +696,7 @@
"y": -180,
"z": -64.00000614258742
},
"_id": "achw9IYLJEWL88BWiSP2XR"
"_id": "43AedY7YVKSZRUl19pk1Wm"
},
{
"__type__": "cc.UITransform",
......@@ -715,7 +718,7 @@
"x": 0,
"y": 1
},
"_id": "14K02f3zBBYpqNBm1/kmRp"
"_id": "8bohUlN4pKQb5+bQbEBZMx"
},
{
"__type__": "cc.Sprite",
......@@ -751,7 +754,7 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "20z5VT5M1B4rj/2lxsyCwa"
"_id": "3fEmXm5j1Fc5Iuy5id3pUs"
},
{
"__type__": "cc.Node",
......@@ -799,7 +802,7 @@
"y": 180,
"z": 25.99999385741257
},
"_id": "5b7jQMyHVBT5MQMosLjd/W"
"_id": "7d1CkhdfRFMqlacS8mAsI8"
},
{
"__type__": "cc.UITransform",
......@@ -821,7 +824,7 @@
"x": 0,
"y": 1
},
"_id": "00qxnAbppLmqbenjV0RcTv"
"_id": "c6qbIyj3FP8ZA4XwU69q+q"
},
{
"__type__": "cc.Sprite",
......@@ -857,7 +860,7 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "10pFnXQ5JBNLx04JSVTUbP"
"_id": "efoD4VqvBElLRM4l81tvSq"
},
{
"__type__": "cc.UITransform",
......@@ -7232,6 +7235,174 @@
"_lockFlags": 0,
"_id": "feL1V+qoNBmKphBdZyTQJp"
},
{
"__type__": "cc.Node",
"_name": "noLoginMask",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 188
},
{
"__id__": 189
},
{
"__id__": 190
},
{
"__id__": 191
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "57nTfGkElL85sIn7HkClCJ"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 187
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 1624,
"height": 750
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "624LlMa+pGsIVEPG51Xx7R"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 187
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 100,
"_originalHeight": 100,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "e6YAtA1PlJqJsgNB9qmkQf"
},
{
"__type__": "cc.BlockInputEvents",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 187
},
"_enabled": true,
"__prefab": null,
"_id": "ccuEy8VrRPP4JJXl6V5lmL"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 187
},
"_enabled": true,
"__prefab": null,
"clickEvents": [],
"_interactable": true,
"_transition": 0,
"_normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_hoverColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_normalSprite": null,
"_hoverSprite": null,
"_pressedSprite": null,
"_disabledSprite": null,
"_duration": 0.1,
"_zoomScale": 1.2,
"_target": null,
"_id": "e8ro/Io/tKAJcaGbYR0FNb"
},
{
"__type__": "cc.UITransform",
"_name": "",
......@@ -7244,7 +7415,7 @@
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 1623.9999999999998,
"width": 1624,
"height": 750
},
"_anchorPoint": {
......@@ -7387,6 +7558,9 @@
"avatarTip": {
"__id__": 109
},
"noLoginMask": {
"__id__": 187
},
"_id": "30ywpmE6RNsozfsd/NXO0o"
},
{
......@@ -7401,19 +7575,19 @@
"__prefab": null,
"skinNodeArr": [
{
"__id__": 192
"__id__": 197
},
{
"__id__": 193
"__id__": 198
},
{
"__id__": 194
"__id__": 199
},
{
"__id__": 195
"__id__": 200
},
{
"__id__": 196
"__id__": 201
}
],
"_genSkinNode": true,
......@@ -7571,28 +7745,28 @@
{
"__type__": "cc.SceneGlobals",
"ambient": {
"__id__": 198
"__id__": 203
},
"shadows": {
"__id__": 199
"__id__": 204
},
"_skybox": {
"__id__": 200
"__id__": 205
},
"fog": {
"__id__": 201
"__id__": 206
},
"octree": {
"__id__": 202
"__id__": 207
},
"skin": {
"__id__": 203
"__id__": 208
},
"lightProbeInfo": {
"__id__": 204
"__id__": 209
},
"postSettings": {
"__id__": 205
"__id__": 210
},
"bakedWithStationaryMainLight": false,
"bakedWithHighpLightmap": false
......
......@@ -21,7 +21,7 @@ import RulePanel from "../Panels/RulePanel";
import RankPrizePanel from "../Panels/RankPrizePanel";
import SnakeSkin from "../Panels/SnakeSkin";
import shareStore from "../store/shareStore";
import { LOG_TYPE, sendLog, sendWebNet, sendWebNetWithToken, WebNetName } from "../Utils/WebNet/WebNet";
import { getProjectId, LOG_TYPE, sendLog, sendWebNet, sendWebNetWithToken, WebNetName } from "../Utils/WebNet/WebNet";
import { getUrlParams } from "../Utils/WebNet/web/webTools";
import FirstSkinPanel from "../Panels/FirstSkinPanel";
import { isType1 } from "../AppTool";
......@@ -68,11 +68,34 @@ export class HomeScene extends Scene {
@property(Node) avatarTip: Node = null;
@property(Node) noLoginMask: Node = null;
// 默认头像
avatar = isType1()
? "https://yun.duiba.com.cn/polaris/img.546cbcd3811aa2265e50d495c078108a217450b7.png"
: "https://yun.duiba.com.cn/polaris/%E9%BB%84%E8%89%B2user_img.7a7a3f11540b4fdb4645860ec3517c31564804bb.png";
doLogin() {
// 赵一鸣:
// path: package/pages/login/index
// appid: wxf7010270499c9a16
// 零食很忙:
// path: package/pages/login/index
// appid:wxb7d4a6d67d4ca5e1
const type = getUrlParams("type") || "1";
const loginId = getProjectId() == "p8ec64a64"
? "Did1NTg5NTE"
: "Did1NTkzNDM";
const centerUrl = `https://98112-activity.dexfu.cn/customShare/share?id=${loginId}&type=2&type=${type}`;
const url = "/package/pages/login/index?callback=" + encodeURIComponent(centerUrl);
// @ts-ignore
wx.miniProgram.navigateTo({ url: url });
}
onLoad() {
this.startBtn.on(Button.EventType.CLICK, this.clickStart, this);
this.ruleBtn.on(Button.EventType.CLICK, this.clickRule, this);
......@@ -85,6 +108,7 @@ export class HomeScene extends Scene {
this.bagBtn.on(Button.EventType.CLICK, this.clickMyBag, this);
this.shareBtn.on(Button.EventType.CLICK, this.clickShare, this);
this.userInfo.on(Button.EventType.CLICK, this.clickUserInfo, this);
this.noLoginMask.on(Button.EventType.CLICK, this.doLogin, this);
}
async start() {
......@@ -142,8 +166,11 @@ export class HomeScene extends Scene {
bagLightFlag,
bagSwitch,
avatarGuide,
boolNotLogin,
} = store.homeInfo || {};
this.noLoginMask.active = boolNotLogin;
this.userName.string = strFormat(nickname || "微信用户", 8);
this.pointNum.string = `${creditsNum > 999999 ? "999999+" : creditsNum}`;
this.userImg.spriteFrame = avatar || this.avatar;
......
......@@ -28,6 +28,7 @@ export interface IHomeInfo {
benefitDesc: string;
firstEntryFlag: boolean;
bagLightFlag: boolean;
boolNotLogin: boolean;
rankInfos: {
index: number;
nickname: string;
......@@ -87,6 +88,7 @@ class Store {
bagSwitch: false,
avatarGuide: false,
boolNotLogin: false,
};
async updateIndex() {
......@@ -231,7 +233,7 @@ class Store {
await sendWebNet(WebNetName.transfer, {detail: data, startId: gameStore.startInfo?.startId}, {hideMsg: true});
}
return
let shortDoc = document.getElementById('Cocos3dGameContainer');
let shortDoc = document.getElementById('Cocos3dGameContainer');
await html2canvas(shortDoc, {
useCORS: true,
allowTaint: true,
......@@ -249,7 +251,7 @@ class Store {
await sendWebNet(WebNetName.transfer, {detail:data,startId:gameStore.startInfo?.startId},{hideMsg:true});
}
});
}
}
......@@ -257,4 +259,4 @@ class Store {
const store: Store = makeAutoObservable(new Store());
export default store;
\ No newline at end of file
export default store;
......@@ -98,14 +98,14 @@
</style>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1742373370863/src/assets/plugin/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1742373370863/src/assets/plugin/declare-process.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1742373370863/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1742373370863/src/assets/plugin/jszip.min.v3.10.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1742373370863/src/assets/plugin/rem.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1747806391945/src/assets/plugin/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1747806391945/src/assets/plugin/declare-process.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1747806391945/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1747806391945/src/assets/plugin/jszip.min.v3.10.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1747806391945/src/assets/plugin/rem.min.js"></script>
<script src="//res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1742373370863/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1742373370863/custom.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1747806391945/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1747806391945/custom.css" />-->
<!-- <script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/libs/eruda.min.js"></script>-->
<!-- <script>eruda.init()</script>-->
......@@ -118,20 +118,20 @@
</div>
<!-- Polyfills bundle. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1742373370863/src/polyfills.bundle.js" charset="utf-8"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1747806391945/src/polyfills.bundle.js" charset="utf-8"></script>
<!-- SystemJS support. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1742373370863/src/system.bundle.js" charset="utf-8"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1747806391945/src/system.bundle.js" charset="utf-8"></script>
<!-- Import map -->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1742373370863/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1747806391945/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<script type="systemjs-importmap" charset="utf-8">
{"imports":{"cc":"//yun.duiba.com.cn/db_games/ccc_game/template3d/1742373370863/cocos-js/cc.js"}}
{"imports":{"cc":"//yun.duiba.com.cn/db_games/ccc_game/template3d/1747806391945/cocos-js/cc.js"}}
</script>
<script>
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1742373370863/index.js').catch(function (err) {
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1747806391945/index.js').catch(function (err) {
console.error(err);
})
</script>
......
......@@ -4,6 +4,7 @@
"actEndTime": 1735638689560,
"actStartTime": 1733565086149,
"avatar": null,
"boolNotLogin": true,
"bagPopVO": {
"bagNum": 42900739.4793739,
"bagImg": "sunt esse ea Duis",
......@@ -56,4 +57,4 @@
"message": null,
"success": true,
"timeStamp": 1733984932128
}
\ No newline at end of file
}
{"proName":"未命名项目","proDesc":"","proPath":"/Users/duibagroup/Desktop/mingsnake_241120","createTime":1705297760786}
{"proName":"未命名项目","proDesc":"","proPath":"D:\\Duiba\\mingming\\mingsnake_241120","createTime":1705297760786}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment