Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
FlashMan
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
华国豪
FlashMan
Commits
65dd5b18
Commit
65dd5b18
authored
Jun 28, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Plain Diff
合并
parents
68864631
cce343bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
5 deletions
+29
-5
app.json
app.json
+10
-4
home.js
pages/Home/home.js
+19
-1
No files found.
app.json
View file @
65dd5b18
{
{
"pages"
:
[
"pages"
:
[
"pages/Home/home"
,
"pages/login/login"
,
"pages/GroupTour/Pay/Pay"
,
"pages/GroupTour/FillOrder/FillOrder"
,
"pages/GroupTour/ChDateNum/ChDateNum"
,
"pages/GroupTour/GroupDetails/GroupDetails"
,
"pages/GroupTour/GroupList/GroupList"
,
"pages/product/product"
,
"pages/product/product"
,
"pages/GroupTour/GroupTour"
,
"pages/GroupTour/GroupTour"
,
"pages/Home/home"
,
"pages/member/member"
,
"pages/member/member"
,
"pages/member/memberCenter/memberCenter"
,
"pages/member/memberCenter/memberCenter"
,
"pages/member/memberInfo/memberInfo"
,
"pages/member/memberInfo/memberInfo"
,
"pages/member/memberInfoED/memberInfoED"
,
"pages/member/memberInfoED/memberInfoED"
,
"pages/GroupTour/GroupList/GroupList"
,
"pages/visa/visa"
,
"pages/visa/visa"
,
"pages/Voucher/Voucher"
,
"pages/Voucher/Voucher"
,
"pages/Voucher/rating/rating"
,
"pages/Voucher/rating/rating"
,
...
@@ -26,11 +31,12 @@
...
@@ -26,11 +31,12 @@
"pages/product/productSite/productSite"
,
"pages/product/productSite/productSite"
,
"pages/product/productOrder/productOrder"
,
"pages/product/productOrder/productOrder"
,
"pages/mine/mine"
,
"pages/mine/mine"
,
"pages/login/login"
,
"pages/login/activate/activate"
,
"pages/login/activate/activate"
,
"pages/product/SametradeZW/SametradeZW"
,
"pages/product/SametradeZW/SametradeZW"
,
"pages/product/SametradeZW/Applicationnotes/Applicationnotes"
,
"pages/product/SametradeZW/Applicationnotes/Applicationnotes"
,
"pages/product/SametradeZW/Successview/Successview"
"pages/product/SametradeZW/Successview/Successview"
,
"component/amount/amount"
],
],
"window"
:
{
"window"
:
{
"backgroundTextStyle"
:
"light"
,
"backgroundTextStyle"
:
"light"
,
...
...
pages/Home/home.js
View file @
65dd5b18
// pages/Home/home.js
// pages/Home/home.js
let
app
=
getApp
();
Page
({
Page
({
/**
/**
...
@@ -12,7 +13,7 @@ Page({
...
@@ -12,7 +13,7 @@ Page({
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
this
.
GetInitData
();
},
},
/**
/**
...
@@ -28,6 +29,23 @@ Page({
...
@@ -28,6 +29,23 @@ Page({
onShow
:
function
()
{
onShow
:
function
()
{
},
},
GetInitData
(){
console
.
log
(
"111"
);
app
.
$api
(
'/api/b2b/home/getHomeInitData'
,
{}).
then
(
res
=>
{
console
.
log
(
"首页数据"
,
res
);
// wx.showToast({
// title: '提交成功!',
// icon: 'none',
// duration: 1000
// })
}).
catch
(
err
=>
{
wx
.
showToast
({
title
:
err
.
message
,
icon
:
'none'
,
duration
:
1000
})
})
},
/**
/**
* 生命周期函数--监听页面隐藏
* 生命周期函数--监听页面隐藏
...
...
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