diff --git a/common/styles/theme.css b/common/styles/theme.css index 77e08c4..a80ccff 100644 --- a/common/styles/theme.css +++ b/common/styles/theme.css @@ -19,8 +19,8 @@ checkbox .uni-checkbox-input { radio .uni-radio-input.uni-radio-input-checked, checkbox .uni-checkbox-input.uni-checkbox-input-checked { /* border-radius: 50%; */ - border: 1px solid #1998FE !important; - background: #1998FE !important; + border: 1px solid #186c6b !important; + background: #186c6b !important; color: #FFFFFF !important; } @@ -45,8 +45,8 @@ checkbox .wx-checkbox-input { radio .wx-radio-input.wx-radio-input-checked, checkbox .wx-checkbox-input.wx-checkbox-input-checked { border-radius: 50%; - border: 1px solid #1998FE !important; - background: #1998FE !important; + border: 1px solid #186c6b !important; + background: #186c6b !important; color: #FFFFFF !important; } @@ -61,11 +61,11 @@ radio:not([disabled]) .wx-radio-input:hover checkbox:not([disabled]) .wx-checkbo /* #endif */ .lf-color-primary { - color: #1998FE !important; + color: #186c6b !important; } .lf-bg-primary { - background: #1998FE !important; + background: #186c6b !important; } .lf-color-secondary { diff --git a/components/index-banner/index-banner.vue b/components/index-banner/index-banner.vue index 94ef4aa..301d41f 100644 --- a/components/index-banner/index-banner.vue +++ b/components/index-banner/index-banner.vue @@ -25,6 +25,7 @@ indicator-dots="true" autoplay="true" circular="true" + indicator-active-color="#186c6b" > @@ -40,7 +41,7 @@ export default { // 对应data data() { return { - imgHeight: '' + imgHeight: '450' }; }, options: { @@ -74,6 +75,7 @@ export default { methods: { //内部方法建议以下划线开头 _imgLoad(e) { + return; // PS 不执行自动高 var height = e.detail.height; var width = e.detail.width; var ratio = width / height; @@ -102,9 +104,9 @@ export default { - \ No newline at end of file diff --git a/components/lf-indexFind/lf-indexFind.vue b/components/lf-indexFind/lf-indexFind.vue new file mode 100644 index 0000000..96ce7ca --- /dev/null +++ b/components/lf-indexFind/lf-indexFind.vue @@ -0,0 +1,77 @@ + + + + + diff --git a/components/lf-indexShopMatrix/lf-indexShopMatrix.vue b/components/lf-indexShopMatrix/lf-indexShopMatrix.vue new file mode 100644 index 0000000..bc72b59 --- /dev/null +++ b/components/lf-indexShopMatrix/lf-indexShopMatrix.vue @@ -0,0 +1,82 @@ + + + + + diff --git a/components/lf-multiColumnAd/lf-multiColumnAd.vue b/components/lf-multiColumnAd/lf-multiColumnAd.vue new file mode 100644 index 0000000..14b9668 --- /dev/null +++ b/components/lf-multiColumnAd/lf-multiColumnAd.vue @@ -0,0 +1,63 @@ + + + + + diff --git a/components/lf-shopGoodsCard/lf-shopGoodsCard.vue b/components/lf-shopGoodsCard/lf-shopGoodsCard.vue new file mode 100644 index 0000000..0ac1163 --- /dev/null +++ b/components/lf-shopGoodsCard/lf-shopGoodsCard.vue @@ -0,0 +1,94 @@ + + + + + diff --git a/components/lf-tabbar/lf-tabbar-box.vue b/components/lf-tabbar/lf-tabbar-box.vue index bb3cc09..90f88b3 100644 --- a/components/lf-tabbar/lf-tabbar-box.vue +++ b/components/lf-tabbar/lf-tabbar-box.vue @@ -90,7 +90,7 @@ export default { }, activeColor: { type: String, - default: '#409EFF' + default: '#186c6b' }, inactiveTextColor: String, activeTextColor: String, diff --git a/components/lf-tabbar/lf-tabbar.vue b/components/lf-tabbar/lf-tabbar.vue index 7508ca9..6f65a60 100644 --- a/components/lf-tabbar/lf-tabbar.vue +++ b/components/lf-tabbar/lf-tabbar.vue @@ -40,6 +40,20 @@ computed: { ...mapGetters(['currentTabBar', 'tabbars', 'isShowTabBar']) }, + created(){ + // 组件被创建时检查当前在哪个页面,然后校验currentTabBar是否与之匹配 + let pages = getCurrentPages(); + let page = pages[pages.length - 1].route; + let tabbar_name = ''; + this.tabbars.map(item => { + if(item.path == '/'+ page){ + tabbar_name = item.name; + } + }) + if(tabbar_name != this.currentTabBar){ + this.$store.commit('setCurrentTabBar', tabbar_name); + } + }, methods: { handleClick (options) { this.$store.commit('setCurrentTabBar', options.name); diff --git a/pages.json b/pages.json index 86fa53f..8e636a7 100644 --- a/pages.json +++ b/pages.json @@ -699,6 +699,13 @@ "navigationBarTitleText": "欢迎使用", "navigationStyle": "custom" } + }, + { + "path" : "pages/index/category/category", + "style" : { + "navigationBarTitleText": "分类", + "navigationStyle": "custom" + } } ], "globalStyle": { @@ -751,7 +758,7 @@ }, { "name": "测试", - "path": "pages/index/openScreenAd/openScreenAd", + "path": "pages/user/personal/personal", "query": "" } diff --git a/pages/address/add/add.less b/pages/address/add/add.less index fd5e5fd..8bff22a 100644 --- a/pages/address/add/add.less +++ b/pages/address/add/add.less @@ -8,16 +8,20 @@ } .address-info{ background: #FFFFFF; - + padding: 0 32rpx; .info-item{ height: 40px; line-height: 40px; - padding-left: 15px; + // padding-left: 15px; display: flex; align-items: center; color: #333333; font-size: 13px; font-weight:bold; + border-bottom: 1rpx solid #e5e5e5; + &:last-child{ + border-bottom: none; + } label{ width: 80px; display: block; @@ -115,12 +119,18 @@ } .button-box{ margin-top: 30px; - + display: flex; + justify-content: center; .submit{ - background: @mainColor; + // background: @mainColor; + width: 550rpx; + height: 100rpx; + background: #15716E; + border-radius: 50rpx; + line-height: 100rpx; } .delete { - background: @secColor; + // background: @secColor; } button{ margin: 0 20px 15px 20px; diff --git a/pages/address/add/add.vue b/pages/address/add/add.vue index f028d80..7167610 100644 --- a/pages/address/add/add.vue +++ b/pages/address/add/add.vue @@ -4,13 +4,25 @@ - + - + + + + + + + @@ -18,7 +30,7 @@ - + @@ -32,7 +44,7 @@ - + @@ -50,13 +62,20 @@ - + - + + + + + + + + @@ -80,7 +99,7 @@ - + @@ -591,6 +610,9 @@ export default { watch: {} }; - diff --git a/pages/address/list/list.less b/pages/address/list/list.less index f8e9efc..cea858f 100644 --- a/pages/address/list/list.less +++ b/pages/address/list/list.less @@ -1,14 +1,25 @@ #address-list{ .list-box{ - padding-bottom: 20px; + // padding-bottom: 20px; + padding: 30rpx 32rpx; + width: 750rpx; + height: max-content; + box-sizing: border-box; .list-item{ font-size:14px; background:#FFFFFF; - padding:15px 40px 15px 15px; - background-image:url("https://uto.ibrand.cc/m/static/img/ic_forward.png"); - background-repeat:no-repeat; - background-position:100%; - background-size:20px; + // padding:15px 40px 15px 15px; + // background-image:url("https://uto.ibrand.cc/m/static/img/ic_forward.png"); + // background-repeat:no-repeat; + // background-position:100%; + // background-size:20px; + width: 686rpx; + height: max-content; + background: #FFFFFF; + border-radius: 20rpx; + padding: 30rpx; + box-sizing: border-box; + margin-bottom: 30rpx; .user{ display: flex; @@ -33,18 +44,23 @@ } .add-address{ - - background-color: #ffffff; + display: flex; + justify-content: center; + // background-color: #ffffff; padding:10px 12px; .small-btn{ display: flex; align-items: center; justify-content:center; - background-color:#FB5054; + // background-color:#FB5054; color: #FFFFFF; - border-radius:4px; - height: 40px; - line-height: 40px; + // border-radius:4px; + // height: 40px; + line-height: 40rpx; + width: 550rpx; + height: 100rpx; + background: #15716E; + border-radius: 50rpx; .icon{ margin-right: 15px; } diff --git a/pages/address/list/list.vue b/pages/address/list/list.vue index 6cf1c22..d73f5be 100644 --- a/pages/address/list/list.vue +++ b/pages/address/list/list.vue @@ -1,8 +1,8 @@