...
|
...
|
@@ -8,12 +8,13 @@ |
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { createNamespacedHelpers } from "vuex";
|
|
|
import { createNamespacedHelpers, mapState } from 'vuex';
|
|
|
import { get } from 'lodash';
|
|
|
|
|
|
const { mapActions } = createNamespacedHelpers("home/mine");
|
|
|
const { mapActions } = createNamespacedHelpers('home/mine');
|
|
|
|
|
|
export default {
|
|
|
name: "tabItem",
|
|
|
name: 'tabItem',
|
|
|
props: {
|
|
|
data: {
|
|
|
type: Object,
|
...
|
...
|
@@ -61,35 +62,39 @@ export default { |
|
|
},
|
|
|
titleClass() {
|
|
|
return {
|
|
|
"title-bold": this.titleBold,
|
|
|
"title-small": this.titleSmall
|
|
|
'title-bold': this.titleBold,
|
|
|
'title-small': this.titleSmall
|
|
|
};
|
|
|
}
|
|
|
},
|
|
|
...mapState(['yoho'])
|
|
|
},
|
|
|
mounted() {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
goPage({ page: name, params = {} }) {
|
|
|
if (!name) {
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
if(name === 'service') {
|
|
|
// this.$createDialog({
|
|
|
// type: 'alert',
|
|
|
// content: '请致电 <a href="tel:400-889-9646"> 400-889-9646 </a>联系有货客服',
|
|
|
// confirmBtn: {
|
|
|
// text: '我知道了',
|
|
|
// active: true
|
|
|
// }
|
|
|
// }).show()
|
|
|
// this.$router.push({path: '/xianyu-service/service/im'})
|
|
|
this.$xianyu.goXianyuNewPage({
|
|
|
url: window.location.origin+'/xianyu-service/service/im'
|
|
|
});
|
|
|
return
|
|
|
|
|
|
if (name === 'service') {
|
|
|
if (get(this.yoho.config, 'closeservice', false)) {
|
|
|
this.$createDialog({
|
|
|
type: 'alert',
|
|
|
content: '请致电 <a href="tel:400-889-9646"> 400-889-9646 </a>联系有货客服',
|
|
|
confirmBtn: {
|
|
|
text: '我知道了',
|
|
|
active: true
|
|
|
}
|
|
|
}).show();
|
|
|
} else {
|
|
|
this.$xianyu.goXianyuNewPage({
|
|
|
url: window.location.origin + '/xianyu-service/service/im?nodownload=1'
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
this.$router.push({ name, params });
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -103,19 +108,23 @@ export default { |
|
|
height: 120px;
|
|
|
line-height: 120px;
|
|
|
}
|
|
|
|
|
|
.tab-icon {
|
|
|
font-size: 36px;
|
|
|
color: #444;
|
|
|
font-size: 36px;
|
|
|
color: #444;
|
|
|
}
|
|
|
|
|
|
.small {
|
|
|
height: 90px;
|
|
|
line-height: 90px;
|
|
|
}
|
|
|
|
|
|
.title-small {
|
|
|
font-size: 30px;
|
|
|
font-size: 30px;
|
|
|
}
|
|
|
|
|
|
.grey {
|
|
|
background-color: #F2F2F2;
|
|
|
background-color: #f2f2f2;
|
|
|
margin: 0 -40px;
|
|
|
padding: 0 40px;
|
|
|
}
|
...
|
...
|
@@ -139,7 +148,8 @@ export default { |
|
|
color: black;
|
|
|
text-align: right;
|
|
|
font-size: 32px;
|
|
|
@include num
|
|
|
|
|
|
@include num;
|
|
|
}
|
|
|
|
|
|
.cubeic-arrow {
|
...
|
...
|
|