diff --git a/miniprogram/pages/index/index.json b/miniprogram/pages/index/index.json index d121fff..e1bc229 100644 --- a/miniprogram/pages/index/index.json +++ b/miniprogram/pages/index/index.json @@ -1,5 +1,6 @@ { "usingComponents": {}, - "navigationBarBackgroundColor": "#F96352", - "navigationBarTitleText": "积分商城" + "navigationBarBackgroundColor": "#ceb17f", + "navigationBarTitleText": "积分商城", + "navigationBarTextStyle": "white" } \ No newline at end of file diff --git a/miniprogram/pages/index/index.less b/miniprogram/pages/index/index.less index 669233b..f8e70bc 100644 --- a/miniprogram/pages/index/index.less +++ b/miniprogram/pages/index/index.less @@ -6,14 +6,18 @@ image { height: 100%; } +.displex-flex { + display: flex; +} + .box-border-radius { border-radius: 10px; overflow: hidden; } .content-bg { - background: linear-gradient(to bottom, #F96352, #fff); - height: 120px; + background: linear-gradient(to bottom, #ceb17f, #fff); + height: 140px; width: 100%; left: 0; top: 0; @@ -99,12 +103,59 @@ image { height: 32px; overflow: hidden; } - .price{ + + .price { color: #f00; margin-top: 5px; } } -.displex-flex { - display: flex; +.normal-list { + .goods-item { + .displex-flex; + margin-bottom: 20px; + + &:last-child { + margin-bottom: 0; + } + } + + .image { + min-width: 80px; + height: 80px; + margin-right: 15px; + } + + .title { + line-height: 20px; + height: 40px; + overflow: hidden; + font-size: 14px; + } + + .goods-action { + margin-top: 10px; + .displex-flex; + justify-content: space-between; + } + + .price { + color: red; + font-size: 16px; + line-height: 30px; + } + + .actions { + + button { + height: 30px; + border-radius: 30px; + font-size: 13px; + background-color: red; + color: white; + width: 100px; + padding: 0; + line-height: 30px; + } + } } \ No newline at end of file diff --git a/miniprogram/pages/index/index.wxml b/miniprogram/pages/index/index.wxml index 710113c..ceb2950 100644 --- a/miniprogram/pages/index/index.wxml +++ b/miniprogram/pages/index/index.wxml @@ -53,15 +53,16 @@ - + + {{item.title}} - + {{item.price}}积分 @@ -69,6 +70,7 @@ + diff --git a/project.config.json b/project.config.json index 171ef49..1999a79 100644 --- a/project.config.json +++ b/project.config.json @@ -16,7 +16,8 @@ "ignore": [], "disablePlugins": [], "outputPath": "" - } + }, + "minified": true }, "simulatorType": "wechat", "simulatorPluginLibVersion": {},