Commit 65dd5b18 authored by 华国豪's avatar 华国豪 🙄

合并

parents 68864631 cce343bd
{
"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/GroupTour/GroupTour",
"pages/Home/home",
"pages/member/member",
"pages/member/memberCenter/memberCenter",
"pages/member/memberInfo/memberInfo",
"pages/member/memberInfoED/memberInfoED",
"pages/GroupTour/GroupList/GroupList",
"pages/visa/visa",
"pages/Voucher/Voucher",
"pages/Voucher/rating/rating",
......@@ -26,11 +31,12 @@
"pages/product/productSite/productSite",
"pages/product/productOrder/productOrder",
"pages/mine/mine",
"pages/login/login",
"pages/login/activate/activate",
"pages/product/SametradeZW/SametradeZW",
"pages/product/SametradeZW/Applicationnotes/Applicationnotes",
"pages/product/SametradeZW/Successview/Successview"
"pages/product/SametradeZW/Successview/Successview",
"component/amount/amount"
],
"window": {
"backgroundTextStyle": "light",
......
// pages/Home/home.js
let app = getApp();
Page({
/**
......@@ -12,7 +13,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.GetInitData();
},
/**
......@@ -28,6 +29,23 @@ Page({
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