//获取应用实例
var app = getApp()
Page({
data: {
indicatorDots: true,
vertical: false,
autoplay: true,
interval: 3000,
duration: 1000,
loadingHidden: false // loading
},
//事件处理函数
swiperchange: function(e) {
//console.log(e.detail.current)
},
onLoad: function() {
console.log('onLoad')
var that = this
//调用应用实例的方法获取全局数据
app.getUserInfo(function(userInfo) {
//更新数据
that.setData({
userInfo: userInfo
})
})
//sliderList
wx.request({
url: 'http://huanqiuxiaozhen.com/wemall/slider/list',
method: 'GET',
data: {},
header: {
'Accept': 'application/json'
},
success: function(res) {
that.setData({
images: res.data
})
}
})
//venuesList
wx.request({
url: 'http://huanqiuxiaozhen.com/wemall/venues/venuesList',
method: 'GET',
data: {},
header: {
'Accept': 'application/json'
},
success: function(res) {
that.setData({
venuesItems: res.data.data
})
setTimeout(function () {
that.setData({
loadingHidden: true
})
}, 1500)
}
})
//choiceList
wx.request({
url: 'http://huanqiuxiaozhen.com/wemall/goods/choiceList',
method: 'GET',
data: {},
header: {
'Accept': 'application/json'
},
success: function(res) {
that.setData({
choiceItems: res.data.data.dataList
})
setTimeout(function () {
that.setData({
loadingHidden: true
})
}, 1500)
}
})
}
})
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
微信小程序开发-移动端商城案例源码.zip (64个子文件)
移动端商城
临时资源.zip 1.27MB
screenshorts-05.png 62KB
screenshorts-02(1).png 31KB
screenshorts-03.png 5KB
wechat-weapp-mall
style
layout.wxss 54B
images
iconfont-help.png 789B
icon_pressed.png 429B
iconfont-card.png 758B
iconfont-kefu.png 831B
footer-icon-04.png 587B
footer-icon-01.png 728B
footer-icon-03.png 506B
footer-icon-02-active.png 886B
screenshots
screenshorts-02.png 31KB
screenshorts-05.png 62KB
screenshorts-03.png 5KB
screenshorts-01.png 215KB
screenshorts-04.png 24KB
footer-icon-03-active.png 531B
icon_normal.png 431B
footer-icon-01-active.png 771B
iconfont-shouhuodizhi.png 721B
iconfont-tuihuo.png 450B
iconfont-icontuan.png 537B
iconfont-dingdan.png 435B
footer-icon-04-active.png 630B
cart-null.png 807B
icon-arrowdown.png 326B
footer-icon-02.png 815B
app.json 1KB
pages
index
index.js 2KB
index.wxss 1KB
index.wxml 2KB
classify
index.js 835B
index.json 42B
index.wxss 943B
index.wxml 1KB
list
index.js 571B
index.json 48B
index.wxss 1KB
index.wxml 808B
cart
index.js 125B
index.json 45B
index.wxss 236B
index.wxml 108B
my
index.js 1KB
index.json 42B
index.wxss 1KB
index.wxml 747B
details
index.js 1KB
index.json 48B
index.wxss 452B
index.wxml 685B
brand
index.js 537B
index.json 42B
index.wxss 587B
index.wxml 651B
.gitignore 574B
app.wxss 277B
app.js 863B
utils
util.js 460B
.gitattributes 378B
screenshorts-01.png 215KB
screenshorts-04.png 24KB
共 64 条
- 1
资源评论
- 轻描°2022-06-18用户下载后在一定时间内未进行评价,系统默认好评。
芝麻粒儿
- 粉丝: 5w+
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功