Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taobaominiDemo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
taobaominiDemo
Commits
2c6bbebc
Commit
2c6bbebc
authored
Jul 01, 2020
by
lujinlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-a
parent
c83e8a59
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
33 deletions
+50
-33
index$.worker.js
.tea/entryFiles-production/index$.worker.js
+1
-28
index.js
client/pages/index/index.js
+14
-0
output.js
client/pages/index/output.js
+35
-5
No files found.
.tea/entryFiles-production/index$.worker.js
View file @
2c6bbebc
/*BUGME_START*/
const
__BUGME_START__
=
1
;
!
function
(
e
){
var
t
=
{};
function
n
(
o
){
if
(
t
[
o
])
return
t
[
o
].
exports
;
var
r
=
t
[
o
]
=
{
i
:
o
,
l
:
!
1
,
exports
:{}};
return
e
[
o
].
call
(
r
.
exports
,
r
,
r
.
exports
,
n
),
r
.
l
=!
0
,
r
.
exports
}
n
.
m
=
e
,
n
.
c
=
t
,
n
.
d
=
function
(
e
,
t
,
o
){
n
.
o
(
e
,
t
)
||
Object
.
defineProperty
(
e
,
t
,{
enumerable
:
!
0
,
get
:
o
})},
n
.
r
=
function
(
e
){
"undefined"
!=
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
e
,
Symbol
.
toStringTag
,{
value
:
"Module"
}),
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
})},
n
.
t
=
function
(
e
,
t
){
if
(
1
&
t
&&
(
e
=
n
(
e
)),
8
&
t
)
return
e
;
if
(
4
&
t
&&
"object"
==
typeof
e
&&
e
&&
e
.
__esModule
)
return
e
;
var
o
=
Object
.
create
(
null
);
if
(
n
.
r
(
o
),
Object
.
defineProperty
(
o
,
"default"
,{
enumerable
:
!
0
,
value
:
e
}),
2
&
t
&&
"string"
!=
typeof
e
)
for
(
var
r
in
e
)
n
.
d
(
o
,
r
,
function
(
t
){
return
e
[
t
]}.
bind
(
null
,
r
));
return
o
},
n
.
n
=
function
(
e
){
var
t
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
n
.
d
(
t
,
"a"
,
t
),
t
},
n
.
o
=
function
(
e
,
t
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
t
)},
n
.
p
=
""
,
n
(
n
.
s
=
43
)}({
0
:
function
(
e
,
t
,
n
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
}),
function
(
e
){
e
.
Connect
=
"RemoteX.connect"
,
e
.
Disconnect
=
"RemoteX.disconnect"
,
e
.
PageChanged
=
"RemoteX.pageChanged"
,
e
.
DataChanged
=
"RemoteX.dataChanged"
,
e
.
EvaluteScript
=
"RemoteX.evaluteScript"
,
e
.
RegisterChannel
=
"RemoteX.registerChannel"
,
e
.
PassByWorker
=
"RemoteX.PassByWorker"
,
e
.
syncStorage
=
"RemoteX.syncStorage"
,
e
.
setStorage
=
"RemoteX.setStorage"
,
e
.
removeStorage
=
"RemoteX.removeStoarge"
,
e
.
requestWillBeSent
=
"RemoteX.requestWillBeSent"
,
e
.
requestFinished
=
"RemoteX.requestFinished"
,
e
.
ExitApp
=
"RemoteX.exitApp"
,
e
.
Ping
=
"RemoteX.ping"
,
e
.
Pong
=
"RemoteX.pong"
,
e
.
PerfTrace
=
"Perf.trace"
,
e
.
NativeTrace
=
"Perf.native"
,
e
.
NetworkTrace
=
"Perf.network"
,
e
.
JsapiTrace
=
"Perf.jsapi"
}(
t
.
RemoteXMethods
||
(
t
.
RemoteXMethods
=
{}))},
1
:
function
(
e
,
t
,
n
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
}),
t
.
getUserAgent
=
function
(){
return
navigator
.
swuserAgent
||
navigator
.
userAgent
||
""
},
t
.
checkIOS
=
function
(){
return
/
\(
i
[^
;
]
+;
(
U;
)?
CPU.+Mac OS X/
.
test
(
t
.
getUserAgent
())};
var
o
=
self
.
AlipayJSBridge
&&
self
.
AlipayJSBridge
.
call
,
r
=
self
.
fetch
;
t
.
callInternalAPI
=
function
(
e
,
t
){
var
n
=
{
data
:{
method
:
e
,
param
:
t
},
action
:
"internalAPI"
},
s
=
encodeURIComponent
(
JSON
.
stringify
(
n
));
r
?
r
(
"https://alipay.kylinBridge/?data="
+
s
,{
mode
:
"no-cors"
}).
then
((
function
(){})).
catch
((
function
(){})):
o
&&
o
(
"internalAPI"
,{
method
:
e
,
param
:
t
})},
t
.
getStartupParams
=
function
(){
return
self
.
__appxStartupParams
||
{}},
t
.
getBridge
=
function
(){
return
self
.
AFAppX
.
bridge
},
t
.
debug
=
console
.
log
,
t
.
waitForAppx
=
function
(
e
){
self
.
AFAppX
?
e
():
setTimeout
((
function
(){
t
.
waitForAppx
(
e
)}),
50
)};
var
s
=
Function
;
t
.
executeScript
=
function
(
e
){
return
new
s
(
"var res = "
+
e
+
"; return res;"
)()}},
11
:
function
(
e
,
t
){
/*!
Copyright (C) 2013-2017 by Andrea Giammarchi - @WebReflection
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
var
n
=
"
\\
x"
+
(
"0"
+
"~"
.
charCodeAt
(
0
).
toString
(
16
)).
slice
(
-
2
),
o
=
"
\
\"
+n,r=new RegExp(n,"
g
"),s=new RegExp(o,"
g
"),a=new RegExp("
(?:
^|
([
^
\\\\
]))
"+o),i=[].indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},c=String;function u(e,t,n){return t instanceof Array?function(e,t,n){for(var o=0,r=t.length;o<r;o++)t[o]=u(e,t[o],n);return t}(e,t,n):t instanceof c?t.length?n.hasOwnProperty(t)?n[t]:n[t]=function(e,t){for(var n=0,o=t.length;n<o;e=e[t[n++].replace(s,"
~
")]);return e}(e,t.split("
~
")):e:t instanceof Object?function(e,t,n){for(var o in t)t.hasOwnProperty(o)&&(t[o]=u(e,t[o],n));return t}(e,t,n):t}var l={stringify:function(e,t,s,a){return l.parser.stringify(e,function(e,t,s){var a,c,u=!1,l=!!t,d=[],f=[e],g=[e],h=[s?"
~
":"
[
Circular
]
"],p=e,m=1;return l&&(c="
object
"==typeof t?function(e,n){return""!==e&&t.indexOf(e)<0?void 0:n}:t),function(e,t){return l&&(t=c.call(this,e,t)),u?(p!==this&&(a=m-i.call(f,this)-1,m-=a,f.splice(m,f.length),d.splice(m-1,d.length),p=this),"
object
"==typeof t&&t?(i.call(f,t)<0&&f.push(p=t),m=f.length,(a=i.call(g,t))<0?(a=g.push(t)-1,s?(d.push((""+e).replace(r,n)),h[a]="
~
"+d.join("
~
")):h[a]=h[0]):t=h[a]):"
string
"==typeof t&&s&&(t=t.replace(n,o).replace("
~
",n))):u=!0,t}}(e,t,!a),s)},parse:function(e,t){return l.parser.parse(e,function(e){return function(t,r){var s="
string
"==typeof r;return s&&"
~
"===r.charAt(0)?new c(r.slice(1)):(""===t&&(r=u(r,r,{})),s&&(r=r.replace(a,"
$1
~
").replace(o,n)),e?e.call(this,t,r):r)}}(t))},parser:JSON};e.exports=l},4:function(e,t,n){"
use
strict
";Object.defineProperty(t,"
__esModule
",{value:!0});var o=n(5),r=n(0),s=n(1);t.ChannelPot={_activeViewId:null,_map:{},get:function(e){return this._map[e]||null},set:function(e,t){this._map[e]=t},remove:function(e){delete this._map[e]},setActiveId:function(e){this._activeViewId=e},sendToMainChannel:function(e){o.SocketConn.send(e)},sendToActiveChannel:function(e){this.get(this._activeViewId)?this.get(this._activeViewId).postMessage(e):s.debug("
[
bugme
]
missing
active
channel
",e,this._activeViewId)}};var a=function(){function e(e){var t=this;this._port=e,this._port.onmessage=this.onMessage,Object.defineProperty(e,"
onmessage
",{get:function(){return t.onMessage},set:function(){}})}return e.prototype.onMessage=function(e){if(e.data){var n=e.data,o=n.method,s=n.params;o===r.RemoteXMethods.PassByWorker&&t.ChannelPot.sendToMainChannel(s)}},e.prototype.postMessage=function(e){this._port.postMessage(e)},e}();t.ChannelHandler=a},43:function(e,t,n){"
use
strict
";Object.defineProperty(t,"
__esModule
",{value:!0});var o=n(44),r=n(47),s=n(1);s.getStartupParams().isRemoteX?s.waitForAppx(o.registerRemoteX):r.registerPreview()},44:function(e,t,n){"
use
strict
";Object.defineProperty(t,"
__esModule
",{value:!0});var o=n(4),r=n(5),s=n(1),a=n(0),i=n(45);t.registerRemoteX=function(){if(self.addEventListener&&self.navigator){s.debug("
[
bugme
]
start
to
register
remotex
"),i.listenEvents(),r.SocketConn.open(),self.addEventListener("
message
",(function(e){if(e&&e.data){var t=e.data;if(t.method===a.RemoteXMethods.RegisterChannel){var n=e.ports[0],r=String(t.params.viewId);o.ChannelPot.set(r,new o.ChannelHandler(n)),o.ChannelPot.setActiveId(r),o.ChannelPot.sendToMainChannel({method:a.RemoteXMethods.PageChanged})}}})),self.bugmeAPI={send:function(e){r.SocketConn.send(e)}};self.document&&self.document.dispatchEvent?self.document.dispatchEvent("
bugmeInjected
"):self.dispatchEvent&&self.dispatchEvent(new CustomEvent("
bugmeInjected
"))}}},45:function(e,t,n){"
use
strict
";Object.defineProperty(t,"
__esModule
",{value:!0});var o=n(4),r=n(0),s=n(1),a=n(5),i=n(46);function c(e){if(!e||"
object
"!=typeof e)return{};var t={};return Object.keys(e).forEach((function(n){t[n]=""+e[n]})),t}var u=/^https?:
\
/
\
/hpmweb
\
.alipay
\
.com/,l=function(e){u.test(e.url)||o.ChannelPot.sendToMainChannel({method:r.RemoteXMethods.requestWillBeSent,params:{reqId:e.requestId,url:e.url,method:(e.method||"
GET
").toUpperCase(),body:e.postBody,headers:c(e.headers)}})},d=function(e){u.test(e.url)||o.ChannelPot.sendToMainChannel({method:r.RemoteXMethods.requestFinished,params:{reqId:e.requestId,url:e.url,status:e.status,body:e.body,headers:c(e.headers)}})},f=function(e){u.test(e.url)||o.ChannelPot.sendToMainChannel({method:r.RemoteXMethods.requestFinished,params:{reqId:e.requestId,url:e.url,status:null}})},g=function(e){var t={};Object.keys(e.data).forEach((function(n){try{t[n]=JSON.parse(e.data[n]).APDataStorage}catch(e){}})),o.ChannelPot.sendToMainChannel({method:r.RemoteXMethods.syncStorage,params:{data:t}})};t.listenEvents=function(){var e=s.getBridge();e.on("
pageResume
",(function(){var e=self.getCurrentPages().filter((function(e){return e})),t=e[e.length-1].$viewId;o.ChannelPot.setActiveId(String(t)),o.ChannelPot.sendToMainChannel({method:r.RemoteXMethods.PageChanged})})),e.on("
tinyRemoteDebugPanelButtonClick
",(function(){a.SocketConn.close()})),s.checkIOS()?(e.on(i.ERiverDebugEvent.networkRequest,(function(e){var t=e.data;l(t)})),e.on(i.ERiverDebugEvent.networkResponse,(function(e){var t=e.data;d(t)})),e.on(i.ERiverDebugEvent.networkError,(function(e){var t=e.data;f(t)})),e.on(i.ERiverDebugEvent.storageChanged,(function(e){var t=e.data;g(t)}))):e.on(i.ERiverDebugEvent.debugConsole,(function(e){var t,n=e.data,o=n.type,r=n.content;try{t=JSON.parse(r)}catch(e){return}switch(o){case i.ERiverDebugEvent.networkRequest:l(t);break;case i.ERiverDebugEvent.networkResponse:d(t);break;case i.ERiverDebugEvent.networkError:f(t);break;case i.ERiverDebugEvent.storageChanged:g(t)}}))}},46:function(e,t,n){"
use
strict
";Object.defineProperty(t,"
__esModule
",{value:!0}),function(e){e.networkRequest="
tinyAppRemoteDebug_network_request
",e.networkResponse="
tinyAppRemoteDebug_network_response
",e.networkError="
tinyAppRemoteDebug_network_error
",e.storageChanged="
tinyAppRemoteDebug_storage
",e.debugConsole="
onTinyDebugConsole
"}(t.ERiverDebugEvent||(t.ERiverDebugEvent={}))},47:function(e,t,n){"
use
strict
";Object.defineProperty(t,"
__esModule
",{value:!0});var o=n(11),r=n(1),s=function(e,t){return void 0===t?"
©
undefined
":null===t?"
©
null
":t===-1/0?"
©
-
Infinity
":t===1/0?"
©
Infinity
":"
number
"==typeof t&&isNaN(t)?"
©
NaN
":"
function
"==typeof t?"
©
function
":t},a=Function,i=function(e){try{if(e.fromVConsoleToWorker){var t=e.requestId;if("
exec
"===e.method){try{new a("
requestId
","
sendBack
","
var
res
=
"+e.script+"
;
console
.
log
(
res
);
")(t,(function(e){return r.callInternalAPI("
tinyDebugConsole
",{type:"
msgFromWorkerToVConsole
",content:o.stringify({requestId:t,returnValue:e},s)})}))}catch(e){console.error(e.name+"
:
"+e.message)}}}}catch(e){}};t.registerPreview=function(){setTimeout((function(){self.document?self.document.addEventListener("
push
",(function(e){try{var t=e.data.param;i(JSON.parse(t.content||t.data.content))}catch(e){}})):self.addEventListener&&self.addEventListener("
push
",(function(e){try{var t=JSON.parse(JSON.parse(e.data.text()).param.data.content);i(t)}catch(e){}}))}),10),["
log
","
info
","
error
","
debug
","
warn
"].forEach((function(e){var t="
o
"+e;console[t]||(console[t]=console[e],console[e]=function(){for(var n,a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];console[t].apply(console,a);try{n=o.stringify(a.map((function(e){return e instanceof Error?e.name+"
:
"+e.message:e})),s)}catch(e){return void console.error(e.name+"
:
"+e.message)}r.callInternalAPI("
tinyDebugConsole
",{content:n,type:"
console_
"+e})})}))}},5:function(e,t,n){"
use
strict
";Object.defineProperty(t,"
__esModule
",{value:!0});var o=n(11),r=n(4),s=n(1),a=n(0),i=function(){s.getBridge().call("
showRemoteDebugPanel
",{status:"
connecting
",text:"
远程调试准备中
",buttonTitle:"
退出
"})},c=function(){s.getBridge().call("
showRemoteDebugPanel
",{status:"
connected
",text:"
远程调试已连接
",buttonTitle:"
退出
"})},u=function(){s.getBridge().call("
showRemoteDebugPanel
",{status:"
disconnected
",text:"
远程调试已断开
",buttonTitle:"
退出
"})},l=function(){r.ChannelPot.sendToActiveChannel({method:a.RemoteXMethods.ExitApp})};t.SocketConn={messageQueue:[],socketTask:null,send:function(e){var t=this,n="
string
"==typeof e?e:JSON.stringify(e);n.length>5242880?s.debug("
[
bugme
]
socket
send
failed
,
size
:
",n.length):this.socketTask?(this.messageQueue.length&&(this.messageQueue.forEach((function(e){t.socketTask.send({data:e})})),this.messageQueue=[]),this.socketTask.send({data:n})):this.messageQueue.push(n)},close:function(){this.socketTask?this.socketTask.close():l()},connect:function(e){var t=this,n=s.getBridge(),o=n.connectSocket({url:e,multiple:!0});o.onOpen((function(){t.socketTask=o,t.onopen()})),o.onMessage((function(e){t.onmessage(e)})),o.onClose((function(){t.onclose()})),o.onError((function(){t.socketTask||(u(),n.showToast({content:"
本次真机调试已结束,请重新生成调试版本
",duration:2e3,success:function(){l()}}))}))},open:function(){var e=this,t=s.getStartupParams().channelId;if(t){i();var n=s.getBridge(),o="
wss
:
//openchannel.alipay.com/host/"+t;if(s.checkIOS()){this.connect(o);var r=n.connectSocket;n.connectSocket=function(e){if(e&&e.multiple)return r(e);n.showToast({content:"iOS 真机调试暂不支持 connectSocket JSAPI",duration:1e3})},n.onSocketOpen=n.offSocketOpen=n.onSocketMessage=n.offSocketMessage=function(){}}else setTimeout((function(){e.connect(o)}),1200)}else s.debug("[bugme] missing channelId in startup params")},onopen:function(){var e=s.getBridge(),t=e.getSystemInfoSync();this.send({method:a.RemoteXMethods.Connect,params:{userAgent:s.getUserAgent(),sdkVersion:e.SDKVersion,alipayVersion:t.version,model:t.model,system:t.system}}),c()},onmessage:function(e){try{var t=JSON.parse(e.data.data),n=t.method,i=t.id,c=t.params;if(n===a.RemoteXMethods.Disconnect)this.close();else if(n===a.RemoteXMethods.EvaluteScript){if(c&&c.code)try{var u=s.executeScript(c.code);this.send({returnId:i,payload:o.stringify(u)})}catch(e){s.debug("[remoteX worker evaluteScript] ",e)}}else n===a.RemoteXMethods.Ping?this.send({method:a.RemoteXMethods.Pong,params:{returnId:i}}):r.ChannelPot.sendToActiveChannel(t)}catch(t){s.debug("RemoteX onSocketMessage error",t,e)}},onclose:function(){this.socketTask=null,this.messageQueue=[],u(),s.getBridge().call("alert",{title:"调试中断",button:"退出"},(function(){l()}))}}}});
const
__BUGME_END__
=
1
;
/*BUGME_END*/
if
(
!
self
.
__appxInited
)
{
if
(
!
self
.
__appxInited
)
{
self
.
__appxInited
=
1
;
...
...
client/pages/index/index.js
View file @
2c6bbebc
...
...
@@ -168,6 +168,16 @@ Page({
this
.
postMessage
(
'mine.favorShop'
,
{
success
:
true
})
}
},
async
isFavorShop
(){
const
isTmpFollow
=
await
checkShopFavoredStatus
(
app
.
sellerId
).
catch
(()
=>
{})
console
.
warn
(
'查询是否已关注过店铺'
,
isTmpFollow
);
if
(
isTmpFollow
){
this
.
postMessage
(
'isFavorShop'
,
{
success
:
true
})
}
else
{
this
.
postMessage
(
'isFavorShop'
,
{
success
:
false
})
}
},
//和main通信的方法,接收main的信息
onMessage
(
e
)
{
try
{
...
...
@@ -189,6 +199,10 @@ Page({
else
if
(
netName
==
"mine.favorShop"
)
{
this
.
doFavorShop
()
}
//关注店铺的操作
else
if
(
netName
==
"mine.isFavorShop"
)
{
this
.
isFavorShop
();
}
//前端接口
else
if
(
netName
.
indexOf
(
"mine"
)
==
0
)
{
var
data
=
{
success
:
true
}
...
...
client/pages/index/output.js
View file @
2c6bbebc
...
...
@@ -4458,7 +4458,7 @@ exports.ResJson = {
}
}
],
"path"
:
"https://yun.duiba.com.cn/db_games/activity/kickball-feile/15935
88569
/resource/"
"path"
:
"https://yun.duiba.com.cn/db_games/activity/kickball-feile/15935
91887
/resource/"
};
...
...
@@ -4521,6 +4521,7 @@ var TbNetName;
TbNetName
[
"doAdopt"
]
=
"squirrelsAdopt2c.doAdopt"
;
TbNetName
[
"authorize"
]
=
"mine.authorize"
;
TbNetName
[
"favorShop"
]
=
"mine.favorShop"
;
TbNetName
[
"isFavorShop"
]
=
"mine.isFavorShop"
;
TbNetName
[
"getUserAddress"
]
=
"mine.getUserAddress"
;
TbNetName
[
"getAppData"
]
=
"mine.getAppData"
;
TbNetName
[
"navigateToOutside"
]
=
"mine.navigateToOutside"
;
...
...
@@ -9319,9 +9320,9 @@ var TaskPanel = (function (_super) {
Main_1
.
GDispatcher
.
removeEventListener
(
'onShow'
,
this
.
followBack
,
this
);
this
.
updateData
();
};
TaskPanel
.
prototype
.
favorShopBack
=
function
(
succes
s
)
{
TaskPanel
.
prototype
.
favorShopBack
=
function
(
re
s
)
{
Main_1
.
GDispatcher
.
removeEventListener
(
TaoBaoNet_1
.
TbNetName
.
favorShop
,
this
.
favorShopBack
,
this
);
if
(
success
)
{
if
(
res
.
data
.
success
)
{
sendLog_1
.
default
(
LogType_1
.
default
.
favorShop
);
this
.
clickComplete
(
TASK_TYPE_1
.
TASK_TYPE
.
FOLLOW
);
}
...
...
@@ -9362,8 +9363,8 @@ var TaskPanel = (function (_super) {
TaoBaoNet_1
.
sendTbNet
(
TaoBaoNet_1
.
TbNetName
.
navigateToOutside
,
{
url
:
taskData
.
value
});
}
if
(
taskData
.
taskType
==
TASK_TYPE_1
.
TASK_TYPE
.
FOLLOW
)
{
Main_1
.
GDispatcher
.
addEventListener
(
TaoBaoNet_1
.
TbNetName
.
favorShop
,
tmpThis
.
favorShopBack
,
tmpThis
);
TaoBaoNet_1
.
sendTbNet
(
TaoBaoNet_1
.
TbNetName
.
f
avorShop
);
Main_1
.
GDispatcher
.
addEventListener
(
'isFavorShop'
,
tmpThis
.
isFavorShop
,
tmpThis
);
TaoBaoNet_1
.
sendTbNet
(
TaoBaoNet_1
.
TbNetName
.
isF
avorShop
);
}
if
(
!
(
taskData
.
taskType
==
TASK_TYPE_1
.
TASK_TYPE
.
INVITE
))
return
[
3
,
5
];
sendLog_1
.
default
(
LogType_1
.
default
.
clickInvitation
);
...
...
@@ -9380,6 +9381,16 @@ var TaskPanel = (function (_super) {
});
});
};
TaskPanel
.
prototype
.
isFavorShop
=
function
(
res
)
{
console
.
log
(
'是否已关注店铺事件返回'
,
res
.
data
.
success
);
if
(
res
.
data
.
success
)
{
ctrls_1
.
showToast
(
'已关注过该店铺'
);
}
else
{
Main_1
.
GDispatcher
.
addEventListener
(
TaoBaoNet_1
.
TbNetName
.
favorShop
,
this
.
favorShopBack
,
this
);
TaoBaoNet_1
.
sendTbNet
(
TaoBaoNet_1
.
TbNetName
.
favorShop
);
}
};
TaskPanel
.
prototype
.
updateData
=
function
()
{
return
__awaiter
(
this
,
void
0
,
void
0
,
function
()
{
var
_a
,
success
,
code
,
data
,
message
,
index
,
tmpTask
,
index_1
,
tmpTaskData
;
...
...
@@ -10555,6 +10566,8 @@ var Scene_1 = __webpack_require__(/*! ../../module/views/Scene */ "./module/view
var
Tools_1
=
__webpack_require__
(
/*! ../Tools */
"./src/Tools.ts"
);
var
layers_1
=
__webpack_require__
(
/*! ../../module/views/layers */
"./module/views/layers.ts"
);
var
RES_1
=
__webpack_require__
(
/*! ../../module/RES */
"./module/RES.ts"
);
var
ctrls_1
=
__webpack_require__
(
/*! ../../module/ctrls */
"./module/ctrls/index.ts"
);
var
StartScene_1
=
__webpack_require__
(
/*! ./StartScene */
"./src/scenes/StartScene.ts"
);
var
doHelp_1
=
__webpack_require__
(
/*! ../ctrls/doHelp */
"./src/ctrls/doHelp.ts"
);
var
TaoBaoNet_1
=
__webpack_require__
(
/*! ../TaoBaoNet */
"./src/TaoBaoNet.ts"
);
var
Main_1
=
__webpack_require__
(
/*! ../Main */
"./src/Main.ts"
);
...
...
@@ -10602,6 +10615,7 @@ var AssistScene = (function (_super) {
case
1
:
_a
.
sent
();
console
.
log
(
'跳转活动界面'
);
ctrls_1
.
changeScene
(
StartScene_1
.
StartScene
);
return
[
2
];
}
});
...
...
@@ -10614,6 +10628,12 @@ var AssistScene = (function (_super) {
return
__generator
(
this
,
function
(
_b
)
{
switch
(
_b
.
label
)
{
case
0
:
if
(
global_1
.
getBeforeStartTime
())
{
return
[
2
,
toastCtrl_1
.
showToast
(
'活动未开始'
)];
}
if
(
global_1
.
getAfterEndTime
())
{
return
[
2
,
toastCtrl_1
.
showToast
(
'活动已结束'
)];
}
sendLog_1
.
default
(
LogType_1
.
default
.
clickAssistBtn
);
return
[
4
,
doRecord_1
.
default
(
'help'
)];
case
1
:
...
...
@@ -10631,12 +10651,16 @@ var AssistScene = (function (_super) {
else
if
(
code
==
"930005"
)
{
console
.
log
(
'邀请码'
,
global_1
.
getShareCode
());
toastCtrl_1
.
showToast
(
'邀请码无效'
);
this
.
_goPlayBtn
.
visible
=
true
;
this
.
_assistBtn
.
visible
=
false
;
}
else
if
(
code
==
"930003"
)
{
this
.
assistFailShow
();
}
else
{
toastCtrl_1
.
showToast
(
message
);
this
.
_goPlayBtn
.
visible
=
true
;
this
.
_assistBtn
.
visible
=
false
;
}
}
return
[
2
];
...
...
@@ -10698,6 +10722,9 @@ var AssistScene = (function (_super) {
assistSuccess
.
anchorTexture
.
set
(
0.5
,
0.5
);
assistSuccess
.
position
.
set
(
750
/
2
,
800
);
this
.
addChild
(
assistSuccess
);
setTimeout
(
function
()
{
assistSuccess
.
visible
=
false
;
},
1500
);
};
AssistScene
.
prototype
.
assistFailShow
=
function
()
{
this
.
_goPlayBtn
.
visible
=
true
;
...
...
@@ -10706,6 +10733,9 @@ var AssistScene = (function (_super) {
assistFail
.
anchorTexture
.
set
(
0.5
,
0.5
);
assistFail
.
position
.
set
(
750
/
2
,
820
);
this
.
addChild
(
assistFail
);
setTimeout
(
function
()
{
assistFail
.
visible
=
false
;
},
1500
);
};
return
AssistScene
;
}(
Scene_1
.
Scene
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment