Page({
data: {
windowHeight: 100,
array: [{
message: '推荐分类',
}, {
message: '潮流女装'
}, {
message: '个护化妆'
}, {
message: '家用电器'
}, {
message: '电脑办公'
}, {
message: '手机数码'
}, {
message: '母婴童装'
}, {
message: '图书音像'
}, {
message: '家居家纺'
}, {
message: '家居生活'
}],
childCategory:[{
title:'推荐分类',
array:[{
name:'12.19超级品牌日'
},{
name:'冬季小家电专场'
},{
name:'令全满减'
}]
},{
title:'热门分类',
array:[{
name:'手机'
},{
name:'笔记本'
},{
name:'空调'
},{
name:'收纳用品'
},{
name:'炒锅'
},{
name:'床品套件'
}]
}]
},
onLoad: function (options) {
// Do some initialize when page load.
var me = this;
//获取设备窗口信息
wx.getSystemInfo({
success: function (res) {
console.log(res.model)
console.log(res.pixelRatio)
console.log(res.windowWidth)
console.log(res.windowHeight)
console.log(res.language)
console.log(res.version)
me.setData({
windowHeight: res.windowHeight
})
}
})
},
//切换分类方法
toggleCategory: function(event) {
if(event.target.id=='category1'){
this.setData({
childCategory: [{
title:'热卖品牌',
array:[{
name:'时尚羽绒'
},{
name:'轻薄羽绒'
},{
name:'中长款羽绒'
},{
name:'针织裙'
},{
name:'毛呢大衣'
}]
},{
title:'裙装',
array:[{
name:'秋冬连衣裙'
},{
name:'长袖连衣裙'
},{
name:'针织连衣裙'
},{
name:'毛呢连衣裙'
}]
}]
})
}else{
this.setData({
childCategory:[{
title:'推荐分类',
array:[{
name:'12.19超级品牌日'
},{
name:'冬季小家电专场'
},{
name:'令全满减'
}]
},{
title:'热门分类',
array:[{
name:'手机'
},{
name:'笔记本'
},{
name:'空调'
},{
name:'收纳用品'
},{
name:'炒锅'
},{
name:'床品套件'
}]
}]
})
}
}
})
没有合适的资源?快使用搜索试试~ 我知道了~
商城2.zip小程序例子源码打包下载适合研究学习技术
共86个文件
png:31个
js:12个
wxss:11个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 109 浏览量
2022-03-13
06:51:07
上传
评论
收藏 427KB ZIP 举报
温馨提示
商城2.zip小程序例子源码打包下载适合研究学习技术商城2.zip小程序例子源码打包下载适合研究学习技术 1.适合学习做毕业设计参考模板。 2.适合程序员学习开发小程序研究用 3.适合小公司换皮做新项目参考使用用
资源推荐
资源详情
资源评论
收起资源包目录
商城2.zip (86个子文件)
商城2
xiaochengxu
image
icon64_appwx_logo.png 3KB
selectIndex.png 19KB
takeicon.jpg 1KB
favorable.jpg 2KB
record.png 6KB
icon_component_HL.png 429B
selectCar.png 2KB
lbsicon.jpg 1KB
caricon.jpg 1KB
national.jpg 3KB
selectMy.png 2KB
wechatHL.png 1KB
collecticon.png 4KB
selectHome.png 2KB
stop.png 2KB
green_tri.png 2KB
car.png 2KB
category.png 2KB
new.jpg 3KB
wechat.png 1KB
mytitle.jpg 14KB
choose.jpg 2KB
trash.png 3KB
home.png 2KB
pause.png 4KB
usericon.png 6KB
ordericon.jpg 1KB
selectCategory.png 2KB
listImg.png 113KB
couponicon.png 6KB
icon_API.png 647B
serviceicon.png 4KB
my.png 2KB
play.png 4KB
icon_component.png 431B
icon_API_HL.png 634B
plus.png 1KB
index.png 19KB
remarkicon.jpg 1KB
payicon.png 3KB
arrowright.png 1KB
app.json 1KB
pages
index
index.js 2KB
index.json 2B
index.wxss 1KB
index.wxml 1KB
cart
cart.js 124B
cart.json 231B
cart.wxss 235B
cart.wxml 151B
logs
logs.js 280B
logs.json 56B
logs.wxml 194B
logs.wxss 114B
category
category.js 3KB
category.json 228B
category.wxml 671B
category.wxss 579B
user
register.wxss 216B
login.wxml 880B
login.wxss 467B
untitled.wxss 0B
address.wxml 57B
address.json 2B
address.js 334B
untitled.js 0B
register.wxml 484B
untitled.json 0B
register.js 1KB
login.json 228B
untitled.wxml 0B
main.js 1KB
login.js 2KB
main.wxml 2KB
main.json 228B
address.wxss 29B
main.wxss 866B
register.json 228B
template
index.js 336B
index.json 2B
index.wxss 31B
index.wxml 47B
app.wxss 364B
app.js 719B
utils
util.js 2KB
demo导入说明.docx 182KB
共 86 条
- 1
资源评论
yxkfw
- 粉丝: 76
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- jj_app_h5_post_detail_v2632_66400_f903_1706162475.apk
- 光伏电池异常分类数据集2000张带分类文件信息csv.zip
- logistic回归probit回归与poission回归.pptx
- 华为od-华为od练习题之自守数-题库题解.zip
- 华为od-华为od练习题之表示数字-题库题解.zip
- matlab在优化设计中的应用.doc
- 华为od-华为od练习题之走方格的方案数-题库题解.zip
- matlab工具箱介绍-PPT.ppt
- STC89C52 单片机+DS18B20+hx711模块电子秤AD设计硬件(原理图+PCB)文件.zip
- matlab常用函数汇总.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功