Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_taobao
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
new_taobao
Commits
d7dfacb4
Commit
d7dfacb4
authored
Sep 22, 2020
by
Edwise
🍷
Browse files
Options
Browse Files
Download
Plain Diff
123
parents
b81ee20a
6d6bce2f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
53 additions
and
16 deletions
+53
-16
Main.ts
project/src/canvas/game/src/Main.ts
+8
-8
app.js
taobao_mini/client/app.js
+2
-1
app.json
taobao_mini/client/app.json
+1
-1
commessage.axml
taobao_mini/client/components/commessage/commessage.axml
+1
-1
commessage.js
taobao_mini/client/components/commessage/commessage.js
+3
-1
pagecanvas.axml
taobao_mini/client/pages/pagecanvas/pagecanvas.axml
+1
-1
pagecanvas.js
taobao_mini/client/pages/pagecanvas/pagecanvas.js
+37
-3
No files found.
project/src/canvas/game/src/Main.ts
View file @
d7dfacb4
...
...
@@ -108,16 +108,16 @@ export class Main {
// })
//获取数据,,必成功
// showWaiting();
sendTbNet
(
TbNetName
.
getAppData
,
{},
(
s
,
res
)
=>
{
console
.
log
(
'getAppData success,res'
,
s
,
res
)
})
sendTbNet
(
TbNetName
.
getActivityBaseInfoById
,
{},
(
s
,
res
)
=>
{
console
.
log
(
'getActivityBaseInfoById success,res'
,
s
,
res
)
})
//
sendTbNet(TbNetName.getAppData, {}, (s, res) => {
//
console.log('getAppData success,res',s,res)
//
})
//
sendTbNet(TbNetName.getActivityBaseInfoById, {}, (s, res) => {
//
console.log('getActivityBaseInfoById success,res',s,res)
//
})
// console.log('准备打开弹窗')
// setTimeout(() => {
// sendTbNet(TbNetName.showModal, {name:'
ruleModal'
}, (s, res) => {
// console.log('showModal
rul
eModal, success,res',s,res)
// sendTbNet(TbNetName.showModal, {name:'
messageModal',data:{catName:'喵喵'}
}, (s, res) => {
// console.log('showModal
messag
eModal, success,res',s,res)
// })
// }, 3000);
// console.log('准备切换到兑换页面')
...
...
taobao_mini/client/app.js
View file @
d7dfacb4
...
...
@@ -8,7 +8,8 @@ cloud.init({
App
({
requestType
:
'cloud'
,
// yapi,cloud: 云函数
requestType
:
'yapi'
,
// yapi,cloud: 云函数
cloudName
:
'floor'
,
// 主云函数项目名 base clientTemplate2C
cloudName
:
'tmallCat'
,
// 主云函数项目名 tmallCat
// cloudName: 'bubbleSurviva', // 主云函数项目名 tmallCat
cloud
,
tbcc
,
onLaunch
(
options
)
{
...
...
taobao_mini/client/app.json
View file @
d7dfacb4
{
"pages"
:
[
"pages/pagecanvas/pagecanvas"
,
"pages/pageshop/pageshop"
,
"pages/index/index"
,
"pages/pageshop/pageshop"
,
"pages/myprize/myprize"
],
"window"
:
{
...
...
taobao_mini/client/components/commessage/commessage.axml
View file @
d7dfacb4
...
...
@@ -2,7 +2,7 @@
<view class="message__shade modal-animate-fade-in" />
<view class="message ">
<image class="message_bg " src={{resList['0c446868-16d2-47f1-a0d6-27dadff681f2'].url}} />
<label class="message_txt ">
猫咪名字 留
</label>
<label class="message_txt ">
{{mydata.catName}}
</label>
<image class="message_btn " onTap="onModalClose" src={{resList['3ad6a924-dda8-49f4-b8fc-0e796347e802'].url}} />
<image class="message_closebtn " onTap="onModalClose" src={{resList['5488b126-f520-496f-ace6-010a89eb108f'].url}} />
</view>
...
...
taobao_mini/client/components/commessage/commessage.js
View file @
d7dfacb4
...
...
@@ -2,7 +2,9 @@
import
resList
from
'../../resconfig/resList'
;
Component
({
props
:
{},
props
:
{
mydata
:
null
},
data
:
{
resList
:
resList
},
...
...
taobao_mini/client/pages/pagecanvas/pagecanvas.axml
View file @
d7dfacb4
...
...
@@ -6,4 +6,4 @@
<rule-modal a:if="{{ruleModalVisible}}" onModalClose="closeRuleModal"><text>{{rule}}</text></rule-modal>
<levelup-modal a:if="{{levelupModalVisible}}" onModalClose="closeLevelupModal"></levelup-modal>
<message-modal a:if="{{messageModalVisible}}" onModalClose="closeMessageModal"></message-modal>
<message-modal a:if="{{messageModalVisible}}"
mydata="{{messageModalData}}"
onModalClose="closeMessageModal"></message-modal>
taobao_mini/client/pages/pagecanvas/pagecanvas.js
View file @
d7dfacb4
...
...
@@ -25,7 +25,8 @@ const checkSystem = async () => {
Page
({
data
:
{
messageModalVisible
:
true
,
messageModalVisible
:
false
,
messageModalData
:
{},
ruleModalVisible
:
false
,
levelupModalVisible
:
false
},
...
...
@@ -47,7 +48,38 @@ Page({
onReady
()
{
console
.
log
(
'on ready'
)
//授权和登录先搞
// this.getAuth();
// this.getAuth();
setTimeout
(()
=>
{
// this.onMessage({
// data: {
// netName: 'mine.showModal',
// parameter: {
// name: 'levelupModal'
// }
// }
// });
// this.onMessage({
// data: {
// netName: 'mine.showModal',
// parameter: {
// name: 'messageModal',
// data: { catName: '喵喵1122' }
// }
// }
// });
// this.onMessage({
// data: {
// netName: 'mine.navigateToPage',
// parameter: {
// name: 'pageshop'
// }
// }
// });
},
1000
);
},
init
()
{
...
...
@@ -97,7 +129,7 @@ Page({
},
postMessage
(
netName
,
data
)
{
this
.
main
.
dispatchGlobalEvent
({
this
.
main
&&
this
.
main
.
dispatchGlobalEvent
({
type
:
netName
},
data
);
//以防复用事件event串了,就用这种方式
},
...
...
@@ -143,8 +175,10 @@ Page({
data
:
{}
};
const
key
=
`
${
parameter
.
name
}
Visible`
;
const
datakey
=
`
${
parameter
.
name
}
Data`
;
const
toSetData
=
{};
toSetData
[
key
]
=
true
;
toSetData
[
datakey
]
=
parameter
.
data
;
this
.
setData
(
toSetData
);
break
;
case
'test'
:
...
...
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