|
@@ -0,0 +1,159 @@
|
|
|
+<template>
|
|
|
+ <div>
|
|
|
+ <div class="store-list">
|
|
|
+ <div class="store-list-item" :class=" index == 0 ? 'active' : '' " v-for="(item, index) in storeList" :key="index">{{ item.name }}</div>
|
|
|
+ </div>
|
|
|
+ <div class="take-out-list">
|
|
|
+ <div class="item">
|
|
|
+ <div class="item-top">
|
|
|
+ <div class="name">美团外卖</div>
|
|
|
+ <div class="top-right">
|
|
|
+ <span>开启后自动接单</span>
|
|
|
+ <el-switch />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="item-bottom">
|
|
|
+ <div class="left">
|
|
|
+ <div class="l-l">
|
|
|
+ <img src="../../../static/image/alipay.png" class="l-l-img" />
|
|
|
+ </div>
|
|
|
+ <div class="take-out-name">
|
|
|
+ <div>店铺名称:一点点</div>
|
|
|
+ <div>店铺ID:2222222</div>
|
|
|
+ <div>配送门店:一点点</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="right">
|
|
|
+ <el-button type="primary" size="small" class="right-btn">去绑定</el-button>
|
|
|
+ <el-button size="small">解 绑</el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+ export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ storeList: [
|
|
|
+ { id: 1, name: '门店名称-1' },
|
|
|
+ { id: 2, name: '门店名称-2' },
|
|
|
+ { id: 3, name: '门店名称-3' },
|
|
|
+ { id: 4, name: '门店名称-4' },
|
|
|
+ { id: 5, name: '门店名称-5' },
|
|
|
+ { id: 6, name: '门店名称-6' },
|
|
|
+ { id: 7, name: '门店名称-7' }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+ .store-list {
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: nowrap;
|
|
|
+ width: 100%;
|
|
|
+ white-space: nowrap;
|
|
|
+ overflow-x: auto;
|
|
|
+ padding-bottom: 10px;
|
|
|
+ &-item {
|
|
|
+ padding: 8px 27px;
|
|
|
+ background-color: #fff;
|
|
|
+ font-size: 14px;
|
|
|
+ font-family: PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #B1B1B1;
|
|
|
+ box-sizing: border-box;
|
|
|
+ border: 1px solid #eee;
|
|
|
+ border-radius: 17px;
|
|
|
+ cursor: pointer;
|
|
|
+ margin-right: 10px;
|
|
|
+ &.active {
|
|
|
+ color: #017E61;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .store-list::-webkit-scrollbar {
|
|
|
+ height: 6px;
|
|
|
+ }
|
|
|
+ .store-list::-webkit-scrollbar-track {
|
|
|
+ background-color: #eee;
|
|
|
+ /*border-radius: 5px;
|
|
|
+ -webkit-border-radius: 5px;
|
|
|
+ -moz-border-radius: 5px;*/
|
|
|
+ }
|
|
|
+ .store-list::-webkit-scrollbar-thumb {
|
|
|
+ background-color: #999;
|
|
|
+ border-radius: 6px;
|
|
|
+ -webkit-border-radius: 6px;
|
|
|
+ -moz-border-radius: 6px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .take-out-list {
|
|
|
+ .item {
|
|
|
+ background-color: #fff;
|
|
|
+ .item-top {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 20px 18px;
|
|
|
+ align-items: center;
|
|
|
+ border-bottom: 1px solid #eee;
|
|
|
+ .name {
|
|
|
+ font-size: 16px;
|
|
|
+ font-family: PingFang SC;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #FFA608;
|
|
|
+ }
|
|
|
+ .top-right {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ span {
|
|
|
+ font-size: 14px;
|
|
|
+ font-family: PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #B1B1B1;
|
|
|
+ margin-right: 12px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .item-bottom {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 25px 18px;
|
|
|
+ align-items: center;
|
|
|
+ .left {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ .l-l {
|
|
|
+ width: 160px;
|
|
|
+ height: 50px;
|
|
|
+ font-size: 0;
|
|
|
+ .l-l-img {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .take-out-name {
|
|
|
+ font-size: 13px;
|
|
|
+ font-family: PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #333333;
|
|
|
+ line-height: 20px;
|
|
|
+ margin-left: 30px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .right {
|
|
|
+ .right-btn {
|
|
|
+ background-color: #FC7200;
|
|
|
+ border: none;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+</style>
|