From 4086c38a0088a0d8d2fd54ebd573df1fd275e718 Mon Sep 17 00:00:00 2001 From: tong <1326061851@qq.com> Date: Tue, 20 Dec 2022 22:10:32 +0800 Subject: [PATCH] first --- app.json | 3 +- pages/category/children/tyr/category.js | 126 ++---- pages/category/children/tyr/category.wxml | 31 +- .../category/tyr-bookdetail/tyr-bookdetail.js | 122 +++++ .../tyr-bookdetail/tyr-bookdetail.json | 3 + .../tyr-bookdetail/tyr-bookdetail.wxml | 131 ++++++ .../tyr-bookdetail/tyr-bookdetail.wxss | 428 ++++++++++++++++++ project.config.json | 17 +- 8 files changed, 755 insertions(+), 106 deletions(-) create mode 100644 pages/category/tyr-bookdetail/tyr-bookdetail.js create mode 100644 pages/category/tyr-bookdetail/tyr-bookdetail.json create mode 100644 pages/category/tyr-bookdetail/tyr-bookdetail.wxml create mode 100644 pages/category/tyr-bookdetail/tyr-bookdetail.wxss diff --git a/app.json b/app.json index b930c4c..f43e73c 100644 --- a/app.json +++ b/app.json @@ -12,7 +12,8 @@ "pages/category/whm-bookdetail/whm-bookdetail", "pages/category/byq-bookdetail/byq-bookdetail" , "pages/category/zsl-bookdetail/zsl-bookdetail", - "pages/category/bwy-bookdetail/bwy-bookdetail" + "pages/category/bwy-bookdetail/bwy-bookdetail", + "pages/category/tyr-bookdetail/tyr-bookdetail" ], "window": { "backgroundTextStyle": "light", diff --git a/pages/category/children/tyr/category.js b/pages/category/children/tyr/category.js index b614112..b639438 100644 --- a/pages/category/children/tyr/category.js +++ b/pages/category/children/tyr/category.js @@ -9,134 +9,76 @@ Page({ categories: [ { id: 1, - name: '推荐商品' + name: '推荐图书' }, { id: 2, - name: '生鲜食品' + name: '文学' }, { id: 3, - name: '粮油/速食' + name: '小说' }, { id: 4, - name: '零食酒水' + name: '历史文化' }, { id: 5, - name: '母婴天地' + name: '社会纪实' }, { id: 6, - name: '家庭清洁' + name: '科学新知' }, - { - id: 7, - name: '床上用品' - }, - { - id: 8, - name: '健身器材' - }, - { - id: 9, - name: '八度空间' - }, - { - id: 10, - name: '开不了口' - }, - { - id: 11, - name: '等你下课' - }, - { - id: 12, - name: '三鲜薯条' - }, - { - id: 13, - name: '家用电器' - }, - { - id: 14, - name: '手机数码' - }, - { - id: 15, - name: '以父之名' - }, - { - id: 16, - name: '名家名作' - }, - { - id: 17, - name: '七里香' - } ], goodsList: [ { id: 1, - title: "富丽加钙牛奶薏米饼干富丽加钙牛奶薏米饼干富丽加钙牛奶薏米饼干 300g", - image: "http://img.dmall.com/20160930/3f47a2eb-efc2-474f-be7d-af7d4d5955f6_360x360H", - price: 8.80 + title: "战斗细胞:人体免疫系统奇妙之旅", + image: "https://img2.doubanio.com/view/subject/s/public/s34319531.jpg", + score: 9.4, + link: "../../tyr-bookdetail/tyr-bookdetail" }, { id: 2, - title: "卡夫乐之薄片饼干 原味 400g", - image: "http://img.dmall.com/20161213/53aaae54-51de-49c0-8212-e1b4268f112d_360x360H", - price: 18.80 + title: "打开心智:人生破局的关键思维", + image: "https://img9.doubanio.com/view/subject/s/public/s34307445.jpg", + score: 8.6, + link: "../../tyr-bookdetail/tyr-bookdetail" }, { id: 3, - title: "[次日达] 特鲜炼奶饼干 芝士味 600g", - image: "http://img.dmall.com/20160930/13dd6624-9dd8-4b98-bfaf-cbde21e8e9ae_360x360H", - price: 6.80 + title: "四千周", + image: "https://img9.doubanio.com/view/subject/s/public/s34309435.jpg", + score: 8.0, + link: "../../tyr-bookdetail/tyr-bookdetail" + + }, { id: 4, - title: "卡夫乐之薄片饼干 原味 400g", - image: "http://img.dmall.com/20161213/53aaae54-51de-49c0-8212-e1b4268f112d_360x360H", - price: 8.80 + title: "自学大全:送给所有不想放弃学习的人55个自学方法", + image: "https://img9.doubanio.com/view/subject/s/public/s34282156.jpg", + score: 9.1, + link: "../../tyr-bookdetail/tyr-bookdetail" }, { id: 5, - title: "卡夫乐之薄片饼干 原味 400g", - image: "http://img.dmall.com/20161213/53aaae54-51de-49c0-8212-e1b4268f112d_360x360H", - price: 8.80 + title: "“没话找话”指南:给社交别扭人的破冰实操话术", + image: "https://img9.doubanio.com/view/subject/s/public/s34330754.jpg", + score: 7.7, + link: "../../tyr-bookdetail/tyr-bookdetail" + }, { id: 6, - title: "[次日达] 特鲜炼奶饼干 芝士味 600g", - image: "http://img.dmall.com/20160930/13dd6624-9dd8-4b98-bfaf-cbde21e8e9ae_360x360H", - price: 8.80 - }, - { - id: 7, - title: "卡夫乐之薄片饼干 原味 400g", - image: "http://img.dmall.com/20161213/53aaae54-51de-49c0-8212-e1b4268f112d_360x360H", - price: 8.80 - }, - { - id: 8, - title: "[次日达] 特鲜炼奶饼干 芝士味 600g", - image: "http://img.dmall.com/20160930/13dd6624-9dd8-4b98-bfaf-cbde21e8e9ae_360x360H", - price: 8.80 - }, - { - id: 9, - title: "卡夫乐之薄片饼干 原味 400g", - image: "http://img.dmall.com/20161213/53aaae54-51de-49c0-8212-e1b4268f112d_360x360H", - price: 8.80 + title: "手机大脑:让人睡眠好、心情好、脑力好的戒手机指南", + image: "https://img2.doubanio.com/view/subject/s/public/s34308663.jpg", + score: 7.1, + link: "../../tyr-bookdetail/tyr-bookdetail" + }, - { - id: 10, - title: "[次日达] 特鲜炼奶饼干 芝士味 600g", - image: "http://img.dmall.com/20160930/13dd6624-9dd8-4b98-bfaf-cbde21e8e9ae_360x360H", - price: 8.80 - } ], imageWidth: "", imageHeight: "", diff --git a/pages/category/children/tyr/category.wxml b/pages/category/children/tyr/category.wxml index aa9ba9b..e180421 100644 --- a/pages/category/children/tyr/category.wxml +++ b/pages/category/children/tyr/category.wxml @@ -6,14 +6,35 @@ - + - + + + + + 推荐图书 + + + 文学 + + + 小说 + + + 历史文化 + + + 社会纪实 + + + 科学新知 + @@ -22,8 +43,10 @@ {{item.title}} - {{item.price}} - + 评分 {{item.score}} + + 查看详细 + diff --git a/pages/category/tyr-bookdetail/tyr-bookdetail.js b/pages/category/tyr-bookdetail/tyr-bookdetail.js new file mode 100644 index 0000000..e57a464 --- /dev/null +++ b/pages/category/tyr-bookdetail/tyr-bookdetail.js @@ -0,0 +1,122 @@ +Page({ + data: { + select: 1,//tab默认选中第一个 + detailSelect: 1,//商品详情tab默认选中第一个 + slides: [ + "//img12.360buyimg.com/babel/s340x420_jfs/t20371/32/1913614468/53754/b55c71b2/5b3c4049N3ceedd04.jpg!q90!cc_340x420", + "//img12.360buyimg.com/babel/s340x420_jfs/t21397/84/1924713889/108707/a87570bf/5b3ec5bbNcec385d6.jpg!q90!cc_340x420", + "//img14.360buyimg.com/babel/s340x420_jfs/t21880/97/1771609351/101047/ebdd4882/5b336aa6Nf24d6674.jpg!q90!cc_340x420" + ], + tabs: [ + { + id: 1, + name: "评论" + }, + { + id: 2, + name: "推荐" + }, + { + id: 3, + name: "详情" + } + ], + commentList: [ + { + id: 1, + avatar: "//img12.360buyimg.com/babel/s340x420_jfs/t20371/32/1913614468/53754/b55c71b2/5b3c4049N3ceedd04.jpg!q90!cc_340x420", + nickname: "詹姆斯", + comment: "刚送到就迫不及待地打开试了下,外观挺漂亮的,吹出的风比较温和,今天的室内温度有30度,加上水用着还行,不知再热点加冰效果如何。整体来说还行,用一段时间再点评。" + }, + { + id: 2, + avatar: "//img12.360buyimg.com/babel/s340x420_jfs/t20371/32/1913614468/53754/b55c71b2/5b3c4049N3ceedd04.jpg!q90!cc_340x420", + nickname: "詹姆斯", + comment: "刚送到就迫不及待地打开试了下,外观挺漂亮的,吹出的风比较温和,今天的室内温度有30度,加上水用着还行,不知再热点加冰效果如何。整体来说还行,用一段时间再点评。" + }, + { + id: 2, + avatar: "//img12.360buyimg.com/babel/s340x420_jfs/t20371/32/1913614468/53754/b55c71b2/5b3c4049N3ceedd04.jpg!q90!cc_340x420", + nickname: "詹姆斯", + comment: "刚送到就迫不及待地打开试了下,外观挺漂亮的,吹出的风比较温和,今天的室内温度有30度,加上水用着还行,不知再热点加冰效果如何。整体来说还行,用一段时间再点评。" + }, + { + id: 2, + avatar: "//img12.360buyimg.com/babel/s340x420_jfs/t20371/32/1913614468/53754/b55c71b2/5b3c4049N3ceedd04.jpg!q90!cc_340x420", + nickname: "詹姆斯", + comment: "刚送到就迫不及待地打开试了下,外观挺漂亮的,吹出的风比较温和,今天的室内温度有30度,加上水用着还行,不知再热点加冰效果如何。整体来说还行,用一段时间再点评。" + } + ], + recommendList: [ + { + id: 1, + title: "风靡ins的伦敦腕风靡ins的伦敦腕", + img: "//img13.360buyimg.com/n1/jfs/t20062/238/2403877143/153179/a734465b/5b46bb72Nab9a6ea7.jpg", + price: "399", + originalPrice: "488" + }, + { + id: 2, + title: "京觅 新疆库尔勒香梨 一级中果 总重约2kg 新鲜水果", + img: "//img12.360buyimg.com/mobilecms/s500x500_jfs/t17515/256/1947534381/244203/f54cd223/5adef415Nf7a0a895.jpg", + price: "399", + originalPrice: "488" + }, + { + id: 3, + title: "印尼进口 Nabati 丽芝士(Richeese)休闲零食 奶酪味 威化饼干 460g/盒 早餐下午茶", + img: "//img13.360buyimg.com/n1/jfs/t17941/226/2669737138/420972/35402273/5b062750N2e8adbff.jpg", + price: "399", + originalPrice: "488" + }, + { + id: 4, + title: "联想(Lenovo)小新潮7000 14英寸轻薄笔记本电脑(英特尔八代酷睿I5-8250U 8G 2T+128G R535 office2016)", + img: "//img20.360buyimg.com/mobilecms/s700x256_jfs/t7393/171/765889073/61915/936cc270/5996e7eaNa22d72b4.jpg!q90!cc_350x128.webp", + price: "399", + originalPrice: "488" + }, + { + id: 5, + title: "联想(Lenovo)小新潮7000 14英寸轻薄笔记本电脑(英特尔八代酷睿I5-8250U 8G 2T+128G R535 office2016)", + img: "//img11.360buyimg.com/mobilecms/s700x256_jfs/t20539/229/82605291/66559/df347eb5/5af96a18N9451b1a1.jpg!q90!cc_350x128.webp", + price: "399", + originalPrice: "488" + }, + { + id: 6, + title: "联想(Lenovo)小新潮7000 14英寸轻薄笔记本电脑(英特尔八代酷睿I5-8250U 8G 2T+128G R535 office2016)", + img: "//img20.360buyimg.com/mobilecms/s700x256_jfs/t7393/171/765889073/61915/936cc270/5996e7eaNa22d72b4.jpg!q90!cc_350x128.webp", + price: "399", + originalPrice: "488" + } + ], + detailTabs: [ + { + id: 1, + name: "商品介绍" + }, + { + id: 2, + name: "咨询与售后" + } + ] + }, + /*返回上一页*/ + goBack: function() { + console.log('哈哈') + wx.navigateBack() + }, + /*点击tab切换*/ + selectTab: function (event) { + this.setData({ + select: event.currentTarget.id + }) + }, + /*商品详情tab切换*/ + selectDetailTab: function (event) { + this.setData({ + detailSelect: event.currentTarget.id + }) + } +}) \ No newline at end of file diff --git a/pages/category/tyr-bookdetail/tyr-bookdetail.json b/pages/category/tyr-bookdetail/tyr-bookdetail.json new file mode 100644 index 0000000..0e0dcd2 --- /dev/null +++ b/pages/category/tyr-bookdetail/tyr-bookdetail.json @@ -0,0 +1,3 @@ +{ + +} \ No newline at end of file diff --git a/pages/category/tyr-bookdetail/tyr-bookdetail.wxml b/pages/category/tyr-bookdetail/tyr-bookdetail.wxml new file mode 100644 index 0000000..586eea8 --- /dev/null +++ b/pages/category/tyr-bookdetail/tyr-bookdetail.wxml @@ -0,0 +1,131 @@ + + + + + + + + + 长安的荔枝 + + 作者: 马伯庸 + 出版社: 湖南文艺出版社 + 出品方: 博集天卷 + 出版年: 2022-10 + 页数: 224 + 定价: 45.00元 + 装帧: 平装 + 丛书: 博集天卷·马伯庸作品 + ISBN: 9787572608582 + + + 内容简介 + + 大唐天宝十四年,长安城的小吏李善德突然接到一个任务:要在贵妃诞日之前,从岭南运来新鲜荔枝。荔枝“一日色变,两日香变,三日味变”,而岭南距长安五千余里,山水迢迢,这是个不可能完成的任务,可为了家人,李善德决心放手一搏:“就算失败,我也想知道,自己倒在距离终点多远的地方。” + + 《长安的荔枝》是马伯庸备受好评的历史小说。 + + 唐朝诗人杜牧的一句“一骑红尘妃子笑,无人知是荔枝来”一千多年来引发了人们的无限遐想,但鲜荔枝的保鲜时限仅有三天,这场跨越五千余里的传奇转运之旅究竟是如何达成的,谁让杨贵妃在长安吃到了来自岭南的鲜荔枝?作者马伯庸就此展开了一场脑洞非常大的想象。 + + 沿袭马伯庸写作一贯以来的时空紧张感,不仅让读者看到了小人物的乱世生存之道,也感受到了事在人为的热血奋斗。随书附赠“荔枝鲜转运舆图”。 + + + + 作者简介 + + 马伯庸 + + 作家。人民文学奖、朱自清散文奖、茅盾新人奖得主。 + + 被评为沿袭“‘五四’以来历史文学创作的谱系”,致力于对“历史可能性小说”的探索。 + + 代表作:《大医》《两京十五日》《显微镜下的大明》《长安十二时辰》《古董局中局》《三国机密》《风起陇西》等。 + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pages/category/tyr-bookdetail/tyr-bookdetail.wxss b/pages/category/tyr-bookdetail/tyr-bookdetail.wxss new file mode 100644 index 0000000..781fa5d --- /dev/null +++ b/pages/category/tyr-bookdetail/tyr-bookdetail.wxss @@ -0,0 +1,428 @@ +.container { + padding-bottom: 100rpx; +} + +/*返回按钮*/ +.go-back-wrapper { + position: fixed; + z-index: 1; + top: 25px; + left: 30rpx; + width: 60rpx; + height: 60rpx; + border: 1rpx solid #fff; + padding: 10rpx; + -webkit-border-radius: 50%; + -moz-border-radius: 50%; + border-radius: 50%; +} +.icon-go-back { + width: 60rpx; + height: 60rpx; +} + +/*轮播图*/ +.swiper-wrapper { + width: 100%; + height: 780rpx; +} +/*覆盖image默认宽高*/ +.slider-image { + width: 100%; + height: 100% !important; +} + +.book-info { + width: 100%; + background: #fff; + display: flex; + flex-direction: column; + padding: 20rpx; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.content-intro { + width: 100%; + background: #fff; + display: flex; + flex-direction: column; + padding: 20rpx; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.content-intro-title { + font-size: 20px; + margin-bottom: 10rpx; + color: rgb(8, 105, 73); +} +.author-intro { + width: 100%; + background: #fff; + display: flex; + flex-direction: column; + padding: 20rpx; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.author-intro-title { + font-size: 20px; + margin-bottom: 10rpx; + color: rgb(8, 105, 73); +} +/*商品信息*/ +.goods-info { + width: 100%; + background: #fff; + display: flex; + flex-direction: column; + padding: 20rpx; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.goods-info .title { + font-size: 30px; + margin-bottom: 10rpx; +} +.goods-info .sub-title { + color: #999999; + margin-bottom: 20rpx; +} +.price-wrapper { + display: flex; + justify-content: space-between; +} +.price { + font-size: 14px; + color: #ed4040; +} +.original-price { + font-size: 13px; + color: #999999; + margin-left: 10rpx; + text-decoration: line-through; +} +.sold { + font-size: 12px; + color: #999999; +} + +/*选择规格*/ +.select-size { + width: 100%; + height: 90rpx; + display: flex; + justify-content: space-between; + align-items: center; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + padding: 0 20rpx; + background: #fff; + margin-top: 20rpx; + font-size: 12px; +} +.select-size .right_arrow { + width: 50rpx; + height: 50rpx; +} + +/*配送地址*/ +.address { + width: 100%; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + padding: 30rpx 20rpx; + background: #fff; + margin-top: 20rpx; +} +.address-detail { + margin-top: 30rpx; + display:flex; + align-items:center; +} +.icon-address { + width: 35rpx; + height: 35rpx; + margin-left: 10rpx; +} + +/*服务信息*/ +.service-info { + width: 100%; + height: 90rpx; + display: flex; + align-items: center; + padding-left: 20rpx; + font-size: 12px; + color: #707070; + background: #fff; + margin-top: 20rpx; +} +.service-item { + display: flex; + align-items: center; + margin-right: 20rpx; +} +.service-item image{ + width: 35rpx; + height: 35rpx; + margin-right: 5rpx; +} + +/*tab导航*/ +.tab-wrapper { + margin-top: 20rpx; + height: 100rpx; + width: 100%; + background: #fff; + display: flex; + justify-content: space-around; + padding: 0 100rpx; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + border-bottom: 2rpx solid #f8f8f8; +} +.tab-item { + display: flex; + align-items: center; +} +.tab-item image{ + width: 35rpx; + height: 35rpx; + margin-right: 5rpx; +} + +/*口碑精选*/ +.comment-wrapper { + background: #fff; + width: 100%; +} +.comment-header { + display: flex; + justify-content: space-between; + align-items: center; + height: 100rpx; + padding: 0 20rpx; +} +.look-all { + color: #5cadff; + font-size: 12px; +} +/*评论滚动*/ +.scroll-wrapper { + width: 100%; + height: 240rpx; + white-space: nowrap; + overflow:hidden; + font-size: 12px; +} +.comment-item { + width: 400rpx; + height: 200rpx; + display: inline-block; + background: #f8f8f8; + padding: 30rpx ; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + border-left: 20rpx solid #fff; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; +} +.comment-item:last-child { + margin-right: 20rpx; +} +.comment-item .user-info { + height: 50rpx; + display: flex; + align-items: center; + margin-bottom: 20rpx; +} +.comment-item .avatar { + width: 50rpx; + height: 50rpx; + -webkit-border-radius: 50%; + -moz-border-radius: 50%; + border-radius: 50%; + margin-right: 10rpx; +} +.comment { + /*强制换行*/ + white-space: pre-line; + /*超出两行显示省略号*/ + overflow : hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; +} +/*.look-more-item {*/ + /*width: 200rpx;*/ + /*height: 200rpx;*/ + /*display: inline-block;*/ + /*background: #f8f8f8;*/ + /*text-align: center;*/ + /*line-height: 200rpx;*/ + /*-webkit-border-radius: 3px;*/ + /*-moz-border-radius: 3px;*/ + /*border-radius: 3px;*/ + /*margin-bottom: 40px;*/ +/*}*/ +/*.font-more-chinese {*/ + /*height: 30rpx;*/ + /*border-bottom: 1px solid #999;*/ + /*margin-bottom: 10rpx;*/ + /*color: #707070;*/ +/*}*/ +/*.font-more-english {*/ + /*color: #707070;*/ + /*font-size: 10px;*/ +/*}*/ + +/*推荐*/ +.recommend-wrapper { + max-width: 100%; + background: #fff; + margin-top: 20rpx; +} +.recommend-header { + height: 100rpx; + line-height: 100rpx; + padding-left: 20rpx; + background: #fff; + border-bottom: 2rpx solid #f8f8f8; +} +.recommend-list { + max-width: 100%; + font-size: 12px; + display: flex; + /*强制换行*/ + flex-wrap: wrap; +} +.recommend-goods-item { + width: 33.3%; + border-right: 2rpx solid #f8f8f8; + border-bottom: 2rpx solid #f8f8f8; + display: flex; + flex-direction: column; + align-items: center; + padding: 20rpx; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.recommend-goods-item .goods-img { + width: 120rpx; + height: 150rpx; + margin-bottom: 10rpx; +} +.recommend-goods-item .title { + /*强制换行*/ + white-space: pre-line; + /*超出两行显示省略号*/ + overflow : hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + margin-bottom: 20rpx; +} +.recommend-goods-item .price { + width: 100%; + font-size: 14px; +} +.recommend-goods-item .original-price { + color: #999999; + text-decoration: line-through; + margin-left: 10rpx; +} + +/*商品详情*/ +.detail-wrapper { + width: 100%; + margin-top: 20rpx; +} +.detail-tab-header { + display: flex; + width: 100%; + height: 100rpx; + border-bottom: 2rpx solid #f8f8f8; + background: #fff; +} +.detail-tab-item { + flex: 1; + display: flex; + justify-content: center; +} +.detail-tab-item text { + height: 100%; + padding: 0 20rpx; + display: flex; + justify-content: center; + align-items: center; +} +.introduce, +.graphic-detail, +.consult-and-after-sales { + height: 500rpx; + display: flex; + justify-content: center; + align-items: center; + background: #fff; +} +.graphic-detail { + margin-top: 20rpx; +} + +/*到底提示*/ +.bottom-tip { + height: 120rpx; + display: flex; + justify-content: center; + align-items: center; + color: #707070; + font-size: 12px; +} + +/*底部操作按钮*/ +.handle-wrapper { + display: flex; + align-items: center; + width: 100%; + height: 100rpx; + position: fixed; + bottom: 0; + background: #fff; + border-top: 2rpx solid #f8f8f8; +} +.btn-icon { + width: 100rpx; + height: 100%; + border-right: 2rpx solid #f8f8f8; + display: flex; + justify-content: center; + align-items: center; +} +.handle-wrapper image { + width: 60rpx; + height: 60rpx; +} +.btn-buy, +.btn-add { + flex: 1; + display: flex; + justify-content: center; + align-items: center; + height: 100%; +} +.btn-add { + background: #ed4040; + color: #fff; +} \ No newline at end of file diff --git a/project.config.json b/project.config.json index 0c0587f..04a1884 100644 --- a/project.config.json +++ b/project.config.json @@ -1,9 +1,5 @@ { "description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", - "packOptions": { - "ignore": [], - "include": [] - }, "setting": { "urlCheck": true, "es6": true, @@ -31,15 +27,18 @@ "checkInvalidKey": true, "disableUseStrict": false, "useCompilerPlugins": false, - "minifyWXML": true + "minifyWXML": true, + "ignoreUploadUnusedFiles": true }, "compileType": "miniprogram", - "libVersion": "2.28.1", - "appid": "wx961f5c64c0bc7013", - "projectname": "wx_shopping_mall", "condition": {}, "editorSetting": { "tabIndent": "tab", "tabSize": 2 - } + }, + "packOptions": { + "ignore": [], + "include": [] + }, + "appid": "wx079dc22fb4855a8e" } \ No newline at end of file -- Gitee