var itemList = require('../../common/itemList/itemList.js');
//index.js
var app = getApp();
Page({
data: {
headerBgOpacity: 0,
imgUrls: [
'http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg',
'http://img06.tooopen.com/images/20160818/tooopen_sy_175866434296.jpg',
'http://img06.tooopen.com/images/20160818/tooopen_sy_175833047715.jpg'
],
cateList: [
{
url: 'http://www.lsh123.com/img/bb/9c9e97710b2db4b7efb027',
name: '饮料/水'
}, {
url: 'http://www.lsh123.com/img/bb/fde2310b09de5d51af71d5',
name: '方便速食'
}, {
url: 'http://www.lsh123.com/img/bb/dfa0850f4150501ba1b658',
name: '饼干糕点'
}, {
url: 'http://www.lsh123.com/img/bb/57b9c81b6dadb0c451adf2',
name: '酒类'
}, {
url: 'http://www.lsh123.com/img/bb/4536140a98ed604e5214f5',
name: '糖果休食'
}, {
url: 'http://www.lsh123.com/img/bb/1f48388f641bb615addbb5',
name: '调料干货'
}, {
url: 'http://www.lsh123.com/img/bb/011ca600a92429e9425692',
name: '坚果炒货'
}, {
url: 'http://www.lsh123.com/img/bb/bbec229c678f9e12a72fb7',
name: '纸制品'
}
],
bannerList: [
'http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg',
'http://img06.tooopen.com/images/20160818/tooopen_sy_175866434296.jpg',
'http://img06.tooopen.com/images/20160818/tooopen_sy_175833047715.jpg'
],
footer: [
{
url: 'http://m.yougong.elianshang.com/static/home/widget/common/css-base/src/icon-img/tab_home_selected_9775ebd.png',
name: '首页'
}, {
url: 'http://m.yougong.elianshang.com/static/home/widget/common/css-base/src/icon-img/tab_category_normal_9771b7d.png',
name: '分类'
}, {
url: 'http://m.yougong.elianshang.com/static/home/widget/common/css-base/src/icon-img/tab_shoppingcart_normal_eca40de.png',
name: '购物车'
}, {
url: 'http://m.yougong.elianshang.com/static/home/widget/common/css-base/src/icon-img/tab_my_normal_dccd497.png',
name: '我的'
}
],
showCheckBox: false, // 显示选择框
// 商品列表
itemList: [
{
sku_id: 10001,
name: "可口可乐碳酸饮料330ml/听*24",
boamTags: [
{name: '畅销商品', color: '#19BEAE'}
],
tags: [
{name: '满减', color: '#19BEAE'},
{name: '特价', color: '#A1D569'}
],
errorCode: -10000,
errorInfo: '赠品不足',
checked: true
}, {
name: "可口可乐碳酸饮料330ml/听*24可口可乐碳酸饮料330ml/听*24可口可乐碳酸饮料330ml/听*24",
errorCode: -10000,
errorInfo: '赠品不足',
checked: true
},
{sku_id: 10002, name: "xxx", errorCode: 0, errorInfo: '赠品不足', checked: false },
{sku_id: 10003, name: "xxx", errorCode: -10000, errorInfo: '赠品不足', checked: true },
{sku_id: 10004, name: "xxx", errorCode: 0, errorInfo: '赠品不足', checked: false },
{sku_id: 10005, name: "xxx", errorCode: -10000, errorInfo: '赠品不足', checked: true },
{sku_id: 10006, name: "xxx", errorCode: -10000, errorInfo: '赠品不足', checked: true, disabled: true }
]
},
// header跳转到搜索页面
jumpToSearch: function () {
wx.navigateTo({
url: '../search/search'
})
},
// 滚动时颜色改变
scrollChangeBgColor: function ( e ) {
console.log( e );
},
scrollBottom: function ( e ) {
console.log( e );
},
// 增加操作
actionAdd: function ( e ) {
itemList.add( e );
}
})
没有合适的资源?快使用搜索试试~ 我知道了~
微信小程序demo:商城(源代码+截图)
共57个文件
png:15个
wxss:12个
js:11个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 29 下载量 83 浏览量
2022-06-19
18:23:33
上传
评论 10
收藏 95KB ZIP 举报
温馨提示
微信小程序demo:商城(源代码+截图)微信小程序demo:商城(源代码+截图)微信小程序demo:商城(源代码+截图)微信小程序demo:商城(源代码+截图)微信小程序demo:商城(源代码+截图)微信小程序demo:商城(源代码+截图)微信小程序demo:商城(源代码+截图)微信小程序demo:商城(源代码+截图)微信小程序demo:商城(源代码+截图)微信小程序demo:商城(源代码+截图)微信小程序demo:商城(源代码+截图)微信小程序demo:商城(源代码+截图)微信小程序demo:商城(源代码+截图)微信小程序demo:商城(源代码+截图)微信小程序demo:商城(源代码+截图)微信小程序demo:商城(源代码+截图)微信小程序demo:商城(源代码+截图)微信小程序demo:商城(源代码+截图)微信小程序demo:商城(源代码+截图)微信小程序demo:商城(源代码+截图)微信小程序demo:商城(源代码+截图)微信小程序demo:商城(源代码+截图)微信小程序demo:商城(源代码+截图)微信小程序demo:商城(源代码+截图)微信小程序demo:商城(源代码+截图)
资源推荐
资源详情
资源评论
收起资源包目录
微信小程序demo:商城(源代码+截图).zip (57个子文件)
微信小程序demo:商城
smallAPP
utils
util.js 461B
app.wxss 454B
static
fonts
iconfont.eot 9KB
iconfont.woff 6KB
iconfont.ttf 9KB
iconfont.svg 10KB
icon.wxss 2KB
images
tabBar
tab_category_normal.png 1KB
tab_my_selected.png 2KB
tab_home_normal.png 2KB
tab_category_selected.png 1KB
tab_my_normal.png 2KB
tab_shoppingcart_normal.png 2KB
tab_home_selected.png 2KB
tab_shoppingcart_selected.png 2KB
my
user_icon.png 4KB
about_icon.png 3KB
cash_coupon_icon.png 1KB
collect_icon.png 2KB
address_icon.png 4KB
discount_icon.png 4KB
orders_icon.png 3KB
app.js 276B
pages
cate
cate.wxml 0B
cate.js 37B
cate.wxss 0B
cate.json 2B
main
main.wxss 408B
main.wxml 337B
main.js 543B
search
search.wxss 0B
search.wxml 46B
search.js 384B
cart
cart.wxml 730B
cart.wxss 765B
cart.js 3KB
cart.json 45B
index
index.wxml 2KB
index.js 4KB
index.wxss 943B
my
my.js 2KB
my.wxss 2KB
my.wxml 1KB
my.json 114B
logs
logs.json 56B
logs.wxml 179B
logs.js 280B
logs.wxss 114B
common
itemList
cartModel.js 1KB
itemList.js 241B
itemList.wxss 2KB
itemList.wxml 3KB
footer
footer.wxss 550B
footer.wxml 249B
header
header.wxml 547B
header.wxss 695B
app.json 1KB
共 57 条
- 1
荣华富贵8
- 粉丝: 121
- 资源: 7649
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
- 6
前往页