From 41eb15084c37ad11a1c7e9be55415dac192df287 Mon Sep 17 00:00:00 2001 From: sws <1141121512@qq.com> Date: Wed, 13 Sep 2023 14:01:36 +0800 Subject: [PATCH] =?UTF-8?q?1=E7=A7=AF=E5=88=86+=E5=BA=97=E9=93=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 7 +- common/css/page.css | 7 +- components/goods-list/goods-list.vue | 688 ++++++++++++++------------ components/title/title.vue | 53 ++ pages.json | 1 - pages/plugins/points/index/index.css | 87 ++-- pages/plugins/points/index/index.vue | 253 +++++++--- pages/plugins/seckill/index/index.css | 3 +- pages/plugins/seckill/index/index.vue | 56 ++- pages/plugins/shop/detail/detail.css | 99 ++-- pages/plugins/shop/detail/detail.vue | 174 ++++--- pages/plugins/shop/index/index.vue | 54 +- pages/user-integral/user-integral.css | 10 +- pages/user-integral/user-integral.vue | 44 +- 14 files changed, 888 insertions(+), 648 deletions(-) create mode 100644 components/title/title.vue diff --git a/App.vue b/App.vue index 46f0d6ee..37cac98e 100644 --- a/App.vue +++ b/App.vue @@ -1198,7 +1198,7 @@ return this.data.static_url + 'static/plugins/images/' + type + '/'; } else { // 根据配置的静态url地址+主题标识+参数类型组合远程静态文件地址 - return this.data.static_url + 'static/app/' + this.data.default_theme + '/' + type + '/'; + return this.data.static_url + 'static/app/' + this.get_theme_value() + '/' + type + '/'; } }, // rpx转px @@ -1726,12 +1726,13 @@ // 蓝色 blue #1677ff // 棕色 brown #8B4513 // 紫色 purple #623cec - var default_theme = 'brown'; + var default_theme = 'blue'; return uni.getStorageSync('theme') || default_theme; }, // 设置主题 set_theme_value() { let theme = this.get_theme_value(); + console.log(theme); // import `@/common/theme/theme-${mode}.scss`; //记住不能import哦 require(`./common/css/theme/${theme}.css`); }, @@ -1793,6 +1794,8 @@ // 协议验证处理 this.globalData.weixin_privacy_setting(); // #endif + // 主题设置 + this.globalData.set_theme_value(); }, // 从前台进入后台 onHide() { diff --git a/common/css/page.css b/common/css/page.css index d454e496..c6068d44 100644 --- a/common/css/page.css +++ b/common/css/page.css @@ -977,11 +977,6 @@ button[disabled].bg-gray { right: 8rpx; } -.goods-list .right-cart-icon { - bottom: 8rpx; - right: 20rpx; -} - .goods-list .error-msg { position: absolute; top: 0; @@ -1044,7 +1039,7 @@ button[disabled].bg-gray { .goods-data-grid-list .item { width: calc(50% - 10rpx); float: left; - padding-bottom: 10rpx; + padding-bottom: 20rpx; margin-bottom: 20rpx; } diff --git a/components/goods-list/goods-list.vue b/components/goods-list/goods-list.vue index e81238ec..8d98c2c3 100644 --- a/components/goods-list/goods-list.vue +++ b/components/goods-list/goods-list.vue @@ -1,320 +1,370 @@ - - - \ No newline at end of file diff --git a/components/title/title.vue b/components/title/title.vue new file mode 100644 index 00000000..96efc25c --- /dev/null +++ b/components/title/title.vue @@ -0,0 +1,53 @@ + + + + + \ No newline at end of file diff --git a/pages.json b/pages.json index 98313bc7..45e1d323 100644 --- a/pages.json +++ b/pages.json @@ -780,7 +780,6 @@ { "path": "detail/detail", "style": { - "enablePullDownRefresh": true, "navigationBarTitleText": "店铺首页" } }, diff --git a/pages/plugins/points/index/index.css b/pages/plugins/points/index/index.css index e7ebf8f8..ce1619d5 100644 --- a/pages/plugins/points/index/index.css +++ b/pages/plugins/points/index/index.css @@ -1,51 +1,68 @@ /** * 顶部 */ +.points-content { + padding-top: 448rpx; +} + .points-user { - background-color: #fe3e28; - padding: 80rpx 0 100rpx 0; + padding: 28rpx; } + .points-user .avatar { - width: 160rpx; - height: 160rpx; - margin: 0 auto; + width: 100rpx; + height: 100rpx; } -.points-user .desc { - color: #ffe7b2; -} -.points-user .login-submit { - color: #5eb95e; - background-color: #E4F3E4; - border-color: #d2e8d2; + +.points-user .share-submit { + width: 112rpx; + height: 52rpx; + line-height: 52rpx; + padding: 0; + background: #D8D8D8 linear-gradient(93deg, #FF9747 0%, #FF6E01 100%); + border-radius: 200rpx 0 0 200rpx; + top: 54rpx; + right: 0; } -.points-user-menu-submit { - border: 1px solid #ffd606; - color: #fae501; - top: 20rpx; - right: 20rpx; - padding: 6rpx 20rpx; + +.points-integral { + padding: 28rpx 28rpx 0 28rpx; } -.points-user .share-submit { - bottom: 20rpx; - right: 20rpx; - color: #F37B1D; - background-color: #ffe5be; - border-color: #f8d093; + +.points-integral .item .list { + border-bottom: 2rpx solid #eee; + padding: 30rpx 0; +} + +.points-integral .item .list:last-of-type { + border: 0; } /** -* 商品列表 -*/ -.data-list .item { - width: calc(50% - 10rpx); + * 积分规则 + */ +.rule-btn { + top: 242rpx; + width: 148rpx; + height: 52rpx; + padding: 0; + line-height: 52rpx; + background: rgba(0, 0, 0, 0.3); + border-radius: 200rpx 0 0 200rpx; } -.data-list .item:nth-child(2n) { - float: right; + +.rule { + padding: 56rpx 24rpx; + max-height: 50vh; } -.data-list .item:nth-child(2n+1) { - float: left; + +.rule .item { + padding-bottom: 100rpx; + max-height: calc(50vh - 164rpx); } -.data-list .item .goods-img { - width: 100%; - height: 380rpx !important; + +.rule button { + margin: 20rpx 70rpx 42rpx 70rpx; + height: 80rpx; + line-height: 80rpx; } \ No newline at end of file diff --git a/pages/plugins/points/index/index.vue b/pages/plugins/points/index/index.vue index cbfd6f45..7765c07b 100644 --- a/pages/plugins/points/index/index.vue +++ b/pages/plugins/points/index/index.vue @@ -1,62 +1,99 @@