Commit 1904333b authored by huangyuanyuan's avatar huangyuanyuan

update

parent fd021864
{ {
"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/GroupTour/GroupList/GroupList",
"pages/product/product", "pages/product/product",
"pages/visa/visa", "pages/visa/visa",
...@@ -9,7 +16,7 @@ ...@@ -9,7 +16,7 @@
"pages/Voucher/VoucherDetails/VoucherDetails", "pages/Voucher/VoucherDetails/VoucherDetails",
"pages/Voucher/write/write", "pages/Voucher/write/write",
"pages/freeTravel/free", "pages/freeTravel/free",
"pages/Home/home",
"pages/Ticket/Ticket", "pages/Ticket/Ticket",
"pages/local/localhome", "pages/local/localhome",
"pages/login/smsLogin/smsLogin", "pages/login/smsLogin/smsLogin",
...@@ -22,11 +29,12 @@ ...@@ -22,11 +29,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": {
......
// 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
})
})
},
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
......
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