Commit e9c491a0 by 李伟康

修改样式

1 parent a54f8e82
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
position: relative; position: relative;
width: 100%; width: 100%;
overflow: hidden; overflow: hidden;
margin-bottom: 10px;
img { img {
object-fit: contain; object-fit: contain;
height: auto; height: auto;
...@@ -184,7 +184,7 @@ ...@@ -184,7 +184,7 @@
.onlyone { .onlyone {
.item { .item {
width: 343px; width: 100%;
height: 192px; height: 192px;
margin: 0 auto !important; margin: 0 auto !important;
......
...@@ -10,12 +10,12 @@ body .app { ...@@ -10,12 +10,12 @@ body .app {
height: 100%; height: 100%;
// overflow: hidden; // overflow: hidden;
--themeColor: #3975C6; --themeColor: #3975C6;
-webkit-font-smoothing: antialiased;
} }
* { * {
margin: 0; margin: 0;
padding: 0; padding: 0;
-webkit-font-smoothing: antialiased;
} }
img { img {
......
...@@ -65,10 +65,8 @@ ...@@ -65,10 +65,8 @@
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
import { shopmallApi, wxConfig } from '@/api' import { shopmallApi, wxConfig } from '@/api'
import { util } from '@/utils' import { util } from '@/utils'
import PayModal from './PayModal.vue'
export default { export default {
name: 'Action', name: 'Action',
components: { PayModal },
props: ['detail', 'updata'], props: ['detail', 'updata'],
watch: { watch: {
'detail': function (n) { 'detail': function (n) {
......
...@@ -61,6 +61,8 @@ export default { ...@@ -61,6 +61,8 @@ export default {
color: #999999; color: #999999;
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
border-radius: 4px;
line-height: 17px;
.serve-text { .serve-text {
width: 254px; width: 254px;
color: #2c2c2c; color: #2c2c2c;
......
...@@ -36,7 +36,6 @@ export default { ...@@ -36,7 +36,6 @@ export default {
}, },
watch: { watch: {
value (n) { value (n) {
console.log(n)
this.showBox = n this.showBox = n
} }
}, },
......
<template>
<van-tabbar
route
@change="change"
v-model="value"
:border="false"
:safe-area-inset-bottom="true"
>
<template v-for="(i,index) in data">
<van-tabbar-item
:key="index"
replace
:to="`/${i.name}`"
:name="i.name"
>
{{i.title}}
<template #icon="props">
<img :src="props.active ? i.active : i.inactive" />
</template>
</van-tabbar-item>
</template>
</van-tabbar>
</template>
<script>
export default {
name: 'TabBar',
props: {
data: {
type: Array,
default: () => {
return []
}
}
},
data () {
return {
value: ''
}
},
methods: {
change (value) {
this.$emit('change', value)
}
}
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang='scss'>
.van-tabbar {
box-shadow: 0px -2px 4px 0px rgba(0, 0, 0, 0.1), 0px 0px 0px 0px #e5e5e5;
.van-tabbar-item--active {
color: var(--themeColor);
}
.van-tabbar-item__icon img {
width: 20px;
height: 20px;
}
}
</style>
/*
* @Descripttion:
* @version:
* @Author: limin
* @Date: 2021-06-08 19:20:13
* @LastEditors: limin
* @LastEditTime: 2021-06-25 18:09:28
*/
import Vue from 'vue' import Vue from 'vue'
const componentsFiles = require.context(`./`, true, /.vue$/) const componentsFiles = require.context(`./`, true, /.vue$/)
componentsFiles.keys().forEach(path => { componentsFiles.keys().forEach(path => {
const component = componentsFiles(path).default const component = componentsFiles(path).default
console.log(component)
Vue.component(component.name, component) Vue.component(component.name, component)
})
// export default [Icon, NavBar, TabBar, Organization, CustomerList, CustomerDetail, OrderList, OrderDetail, TimerTabs, CarType, RadioCell, CheckBoxCell, ValidateField]
\ No newline at end of file \ No newline at end of file
})
\ No newline at end of file \ No newline at end of file
import MoveGroup from './MoveGroup.vue'
import CountDown from './CountDown.vue'
import Action from './Action.vue'
import KfModal from './KfModal.vue'
import createOrderImg from './createOrderImg.vue'
import Serve from './Serve.vue'
export {
MoveGroup,
CountDown,
Action,
KfModal,
createOrderImg,
Serve
}
\ No newline at end of file \ No newline at end of file
...@@ -159,6 +159,8 @@ ...@@ -159,6 +159,8 @@
</template> </template>
<!-- 👇 服务说明 --> <!-- 👇 服务说明 -->
<serve /> <serve />
<!-- 👇 玩家心得&商品答疑 -->
<!-- <share-user-info /> -->
<!--👇 活动视频 --> <!--👇 活动视频 -->
<template v-if="detail.activityVideos && detail.activityVideos.length"> <template v-if="detail.activityVideos && detail.activityVideos.length">
<div :class="['video-box flex', { onlyone: detail.activityVideos.length == 1 }, { onlytwo: detail.activityVideos.length == 2 }]"> <div :class="['video-box flex', { onlyone: detail.activityVideos.length == 1 }, { onlytwo: detail.activityVideos.length == 2 }]">
...@@ -271,10 +273,8 @@ ...@@ -271,10 +273,8 @@
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import { shopmallApi, wxConfig, mapApi, bigdatautilApi } from '@/api' import { shopmallApi, wxConfig, mapApi, bigdatautilApi } from '@/api'
import { MoveGroup, CountDown, KfModal, Action, Serve } from './components/index'
import { Audio } from '@/utils/audio' import { Audio } from '@/utils/audio'
export default { export default {
components: { MoveGroup, CountDown, KfModal, Action, Serve },
name: 'index', name: 'index',
data () { data () {
return { return {
......
...@@ -53,10 +53,8 @@ ...@@ -53,10 +53,8 @@
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
import { shopmallApi } from '@/api' import { shopmallApi } from '@/api'
import { createOrderImg } from './components/index'
const swipeStyle = 'padding-left: 9px;' const swipeStyle = 'padding-left: 9px;'
export default { export default {
components: { createOrderImg },
name: 'orderList', name: 'orderList',
data () { data () {
return { return {
......
...@@ -24,10 +24,8 @@ ...@@ -24,10 +24,8 @@
</template> </template>
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
import { createOrderImg } from './components/index'
export default { export default {
components: { createOrderImg },
name: 'success', name: 'success',
data () { data () {
return { return {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!