Commit 78ade07f authored by 郝聪敏's avatar 郝聪敏

Merge branch 'feature/goods' into 'master'

Feature/goods

See merge request !11
parents b5730b3c 48c99550
...@@ -39,14 +39,14 @@ export default { ...@@ -39,14 +39,14 @@ export default {
} }
}; };
</script> </script>
<style lang="less"> <style lang="less" scoped>
@import "../style/var.less"; @import "../style/var.less";
.radio-btn { .radio-btn {
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
margin-bottom: 12px; margin-bottom: 12px;
/deep/ .cr-radio { @{deep} .cr-radio {
margin-right: 10px; margin-right: 10px;
flex: 1; flex: 1;
background: @white; background: @white;
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
} }
&.checked { &.checked {
background-color: @orange-light; background-color: @orange-light;
/deep/ .cr-radio__label { @{deep} .cr-radio__label {
font-weight: @font-weight-bold; font-weight: @font-weight-bold;
} }
} }
......
...@@ -93,7 +93,7 @@ export default { ...@@ -93,7 +93,7 @@ export default {
line-height: 14px; line-height: 14px;
} }
} }
/deep/ .cr-tabbar-item--active { /deep/.cr-tabbar-item--active {
.mongo-tabbar-item-name { .mongo-tabbar-item-name {
color: #000000; color: #000000;
} }
......
...@@ -57,6 +57,10 @@ const routes = [ ...@@ -57,6 +57,10 @@ const routes = [
path: "/introduction", path: "/introduction",
name: "Introduction", name: "Introduction",
component: () => import("../views/Introduction/index.vue") component: () => import("../views/Introduction/index.vue")
},
{
path: "*",
redirect: "/goods"
} }
]; ];
......
@deep: ~">>>";
// Color Palette // Color Palette
@black: #333333; @black: #333333;
@white: #fff; @white: #fff;
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
font-weight: @font-weight-bold; font-weight: @font-weight-bold;
margin: @padding-md 0; margin: @padding-md 0;
} }
/deep/ .cr-cell { @{deep} .cr-cell {
&-group { &-group {
&::after { &::after {
display: none; display: none;
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
overflow: initial; overflow: initial;
align-items: baseline; align-items: baseline;
margin-bottom: 0 !important; margin-bottom: 0 !important;
/deep/ .cr-cell { @{deep} .cr-cell {
&__title { &__title {
width: 31%; width: 31%;
flex: none; flex: none;
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
margin-right: 4px; margin-right: 4px;
} }
.cr-switch { .cr-switch {
/deep/ &__control { @{deep} &__control {
box-shadow: none; box-shadow: none;
} }
} }
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding: 14px 0; padding: 14px 0;
/deep/ .cr-checkbox__label { @{deep} .cr-checkbox__label {
font-size: @font-size-11; font-size: @font-size-11;
color: @gray-4; color: @gray-4;
margin-left: 5px; margin-left: 5px;
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
.card { .card {
padding-bottom: 0; padding-bottom: 0;
} }
/deep/ .card-body { @{deep} .card-body {
margin-bottom: 0; margin-bottom: 0;
} }
} }
...@@ -6,11 +6,11 @@ ...@@ -6,11 +6,11 @@
} }
.goods-head { .goods-head {
width: 100% !important; width: 100% !important;
/deep/ & > div { @{deep} & > div {
width: 100% !important; width: 100% !important;
z-index: 100; z-index: 100;
} }
/deep/ .cr-tabbar { @{deep} .cr-tabbar {
background-color: #f5f5f5; background-color: #f5f5f5;
font-size: @font-size-16; font-size: @font-size-16;
padding: @padding-lg+1 0; padding: @padding-lg+1 0;
......
...@@ -9,7 +9,8 @@ ...@@ -9,7 +9,8 @@
</cr-tabbar> </cr-tabbar>
</cr-sticky> --> </cr-sticky> -->
<good-list :list="goodsList" /> <good-list :list="goodsList" />
<ai-test-tip /> <record-layer v-model="showLayer" desc="敬请期待"></record-layer>
<ai-test-tip @click.native="showLayer = true" />
<tabbar></tabbar> <tabbar></tabbar>
</div> </div>
</template> </template>
...@@ -19,17 +20,20 @@ import AiTestTip from "./modules/AiTestTip"; ...@@ -19,17 +20,20 @@ import AiTestTip from "./modules/AiTestTip";
import GoodList from "@/components/GoodList/index"; import GoodList from "@/components/GoodList/index";
import Tabbar from "@/components/Tabbar"; import Tabbar from "@/components/Tabbar";
import goodsList from "@/api/goodsList.mock"; import goodsList from "@/api/goodsList.mock";
import RecordLayer from "@/components/RecordLayer";
export default { export default {
name: "GoodsList", name: "GoodsList",
components: { components: {
AiTestTip, AiTestTip,
GoodList, GoodList,
Tabbar Tabbar,
RecordLayer
}, },
data() { data() {
return { return {
active: 0, active: 0,
showLayer: false,
goodsList: [] goodsList: []
}; };
}, },
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
color: @orange-dark; color: @orange-dark;
} }
} }
/deep/ .card-body { @{deep} .card-body {
padding: 20px 20px 11px 20px; padding: 20px 20px 11px 20px;
background-color: @gray-1; background-color: @gray-1;
border-radius: @border-radius-md; border-radius: @border-radius-md;
......
...@@ -65,7 +65,7 @@ export default { ...@@ -65,7 +65,7 @@ export default {
background: @gray-1; background: @gray-1;
border-radius: @border-radius-md; border-radius: @border-radius-md;
padding: @padding-md; padding: @padding-md;
/deep/ .cr-cell { @{deep} .cr-cell {
&-group { &-group {
&::after { &::after {
display: none; display: none;
...@@ -87,21 +87,21 @@ export default { ...@@ -87,21 +87,21 @@ export default {
display: none; display: none;
} }
&-text_bold { &-text_bold {
/deep/ .cr-cell__title { @{deep} .cr-cell__title {
color: @black; color: @black;
} }
/deep/ .cr-cell__value { @{deep} .cr-cell__value {
color: @black; color: @black;
font-weight: @font-weight-bold; font-weight: @font-weight-bold;
} }
} }
&-text_noval { &-text_noval {
/deep/ .cr-cell__value { @{deep} .cr-cell__value {
display: none; display: none;
} }
} }
&_br { &_br {
/deep/ .cr-cell__value { @{deep} .cr-cell__value {
flex: none; flex: none;
width: 70%; width: 70%;
} }
......
...@@ -88,7 +88,7 @@ export default { ...@@ -88,7 +88,7 @@ export default {
width: 300px; width: 300px;
&-wrap { &-wrap {
overflow: initial; overflow: initial;
/deep/ .cr-popup--close { @{deep} .cr-popup--close {
top: -36px; top: -36px;
right: 0; right: 0;
color: @white; color: @white;
...@@ -141,7 +141,7 @@ export default { ...@@ -141,7 +141,7 @@ export default {
&::after { &::after {
bottom: 26.5px; bottom: 26.5px;
} }
/deep/ & > div:first-child { @{deep} & > div:first-child {
position: absolute; position: absolute;
left: 22.5px; left: 22.5px;
top: 35px; top: 35px;
......
...@@ -75,7 +75,7 @@ export default { ...@@ -75,7 +75,7 @@ export default {
} }
.protocol { .protocol {
z-index: 200; z-index: 200;
/deep/ .cr-icon { @{deep} .cr-icon {
color: #d0cfcf; color: #d0cfcf;
font-size: @font-size-18; font-size: @font-size-18;
top: 16px; top: 16px;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
position: relative; position: relative;
padding-bottom: 5px; padding-bottom: 5px;
} }
/deep/ .card { @{deep} .card {
&-body { &-body {
border-radius: @border-radius-md; border-radius: @border-radius-md;
background-color: @gray-1; background-color: @gray-1;
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
} }
} }
.no-url { .no-url {
/deep/ .card { @{deep} .card {
&-body { &-body {
padding: @padding-lg; padding: @padding-lg;
margin-bottom: 0; margin-bottom: 0;
......
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
} }
.rate-head { .rate-head {
width: 100% !important; width: 100% !important;
/deep/ & > div { @{deep} & > div {
width: 100% !important; width: 100% !important;
z-index: 100; z-index: 100;
} }
/deep/ .cr-tabbar { @{deep} .cr-tabbar {
font-size: @font-size-16; font-size: @font-size-16;
padding: @padding-lg+1 0; padding: @padding-lg+1 0;
&-item { &-item {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment