谢杰标 2 سال پیش
والد
کامیت
c64e94d0d2

+ 1 - 0
package.json

@@ -61,6 +61,7 @@
     "sortablejs": "1.10.2",
     "v-fit-columns": "^0.2.0",
     "vue": "2.6.12",
+    "vue-barcode": "^1.3.0",
     "vue-canvas-poster": "^1.2.1",
     "vue-count-to": "1.0.13",
     "vue-cropper": "0.5.5",

BIN
src/assets/images/icon_back.png


BIN
src/assets/images/icon_seleced.png


BIN
src/assets/images/icon_wechat.png


+ 6 - 0
src/assets/styles/btn.scss

@@ -98,3 +98,9 @@
   border-radius: 4px;
 }
 
+.actived {
+  border: 2px solid #333333 !important;
+  box-sizing: border-box;
+  background: #ffffff !important;
+  background: url("../images/icon_seleced.png") no-repeat bottom right !important;
+}

+ 74 - 0
src/assets/styles/index.scss

@@ -46,6 +46,80 @@ html {
   padding: 4px 0;
 }
 
+.fl {
+  display: flex;
+  align-items: center;
+}
+
+.fl_b {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+}
+
+.fl_c {
+  display: flex;
+  align-items: center;
+  justify-content: center;
+}
+
+.line1 {
+  overflow: hidden; /*超出部分隐藏*/
+  white-space: nowrap; /*禁止换行*/
+  text-overflow: ellipsis; /*省略号*/
+}
+
+.line2 {
+  display: -webkit-box; /* 必须结合的属性 ,将对象作为弹性伸缩盒子模型显示 。*/
+  -webkit-box-orient: vertical; /* 必须结合的属性 ,设置或检索伸缩盒对象的子元素的排列方式 。*/
+  text-overflow: ellipsis; /* 可以用来多行文本的情况下,用省略号“…”隐藏超出范围的文本 。*/
+  -webkit-line-clamp: 2;
+  overflow: hidden;
+}
+
+.scrollbar {
+  &::-webkit-scrollbar {
+    width: 14px;
+    height: 14px;
+  }
+
+  &::-webkit-scrollbar-track,
+  &::-webkit-scrollbar-thumb {
+    border-radius: 999px;
+    border: 5px solid transparent;
+  }
+
+  &::-webkit-scrollbar-track {
+    box-shadow: 1px 1px 5px 0 0 5px rgba(165, 165, 165, 0.2) inset;
+  }
+
+  &::-webkit-scrollbar-thumb {
+    min-height: 20px;
+    background-clip: content-box;
+    box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.2) inset;
+  }
+
+  &::-webkit-scrollbar-corner {
+    background: transparent;
+  }
+}
+
+.contain-title {
+  padding: 0;
+  margin: 0;
+  color: #222222;
+  font-weight: bold;
+  font-size: 16px;
+  &::before {
+    content: "|";
+    background: #fa821f;
+    margin-right: 8px;
+    color: #fa821f;
+    font-size: 16px;
+    border-radius: 10px;
+  }
+}
+
 a:focus,
 a:active {
   outline: none;

+ 153 - 120
src/assets/styles/ruoyi.scss

@@ -1,125 +1,153 @@
- /**
+/**
  * 通用css样式布局处理
  * Copyright (c) 2019 ruoyi
  */
 
- /** 基础通用 **/
+/** 基础通用 **/
 .pt5 {
-	padding-top: 5px;
+  padding-top: 5px;
 }
 .pr5 {
-	padding-right: 5px;
+  padding-right: 5px;
 }
 .pb5 {
-	padding-bottom: 5px;
+  padding-bottom: 5px;
 }
 .mt5 {
-	margin-top: 5px;
+  margin-top: 5px;
 }
 .mr5 {
-	margin-right: 5px;
+  margin-right: 5px;
 }
 .mb5 {
-	margin-bottom: 5px;
+  margin-bottom: 5px;
 }
 .mb8 {
-	margin-bottom: 8px;
+  margin-bottom: 8px;
 }
 .ml5 {
-	margin-left: 5px;
+  margin-left: 5px;
 }
 .mt10 {
-	margin-top: 10px;
+  margin-top: 10px;
 }
 .mr10 {
-	margin-right: 10px;
+  margin-right: 10px;
 }
 .mb10 {
-	margin-bottom: 10px;
+  margin-bottom: 10px;
 }
 .ml0 {
-	margin-left: 10px;
+  margin-left: 10px;
 }
 .mt20 {
-	margin-top: 20px;
+  margin-top: 20px;
 }
 .mr20 {
-	margin-right: 20px;
+  margin-right: 20px;
 }
 .mb20 {
-	margin-bottom: 20px;
+  margin-bottom: 20px;
 }
 .m20 {
-	margin-left: 20px;
+  margin-left: 20px;
 }
 
-.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
-	font-family: inherit;
-	font-weight: 500;
-	line-height: 1.1;
-	color: inherit;
+.c22 {
+  color: #222222;
+  font-size: 18px;
+}
+
+.cb22 {
+  color: #222222;
+  font-size: 16px;
+  font-weight: bold;
+}
+
+.c48 {
+  color: #4a4a4b;
+  font-size: 14px;
+}
+
+.h1,
+.h2,
+.h3,
+.h4,
+.h5,
+.h6,
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+  font-family: inherit;
+  font-weight: 500;
+  line-height: 1.1;
+  color: inherit;
 }
 
 .el-dialog:not(.is-fullscreen) {
-	margin-top: 6vh !important;
+  margin-top: 6vh !important;
 }
 
 .el-dialog__wrapper.scrollbar .el-dialog .el-dialog__body {
-    overflow: auto;
-	overflow-x: hidden;
-	max-height: 70vh;
-	padding: 10px 20px 0;
+  overflow: auto;
+  overflow-x: hidden;
+  max-height: 70vh;
+  padding: 10px 20px 0;
 }
 
 .el-table {
-	.el-table__header-wrapper, .el-table__fixed-header-wrapper {
-		th {
-			word-break: break-word;
-			background-color: #f8f8f9;
-			color: #515a6e;
-			height: 40px;
-			font-size: 13px;
-		}
-	}
-	.el-table__body-wrapper {
-		.el-button [class*="el-icon-"] + span {
-			margin-left: 1px;
-		}
-	}
+  .el-table__header-wrapper,
+  .el-table__fixed-header-wrapper {
+    th {
+      word-break: break-word;
+      background-color: #f8f8f9;
+      color: #515a6e;
+      height: 40px;
+      font-size: 13px;
+    }
+  }
+  .el-table__body-wrapper {
+    .el-button [class*="el-icon-"] + span {
+      margin-left: 1px;
+    }
+  }
 }
 
 /** 表单布局 **/
 .form-header {
-    font-size:15px;
-	color:#6379bb;
-	border-bottom:1px solid #ddd;
-	margin:8px 10px 25px 10px;
-	padding-bottom:5px
+  font-size: 15px;
+  color: #6379bb;
+  border-bottom: 1px solid #ddd;
+  margin: 8px 10px 25px 10px;
+  padding-bottom: 5px;
 }
 
 /** 表格布局 **/
 .pagination-container {
-	position: relative;
-	height: 25px;
-	margin-bottom: 10px;
-	margin-top: 15px;
-	padding: 10px 20px !important;
+  position: relative;
+  height: 25px;
+  margin-bottom: 10px;
+  margin-top: 15px;
+  padding: 10px 20px !important;
 }
 
 /* tree border */
 .tree-border {
-    margin-top: 5px;
-    border: 1px solid #e5e6e7;
-    background: #FFFFFF none;
-    border-radius:4px;
+  margin-top: 5px;
+  border: 1px solid #e5e6e7;
+  background: #ffffff none;
+  border-radius: 4px;
 }
 
 .pagination-container .el-pagination {
-	right: 0;
-	position: absolute;
+  right: 0;
+  position: absolute;
 }
 
-@media ( max-width : 768px) {
+@media (max-width: 768px) {
   .pagination-container .el-pagination > .el-pagination__jump {
     display: none !important;
   }
@@ -129,145 +157,150 @@
 }
 
 .el-table .fixed-width .el-button--mini {
-	padding-left: 0;
-	padding-right: 0;
-	width: inherit;
+  padding-left: 0;
+  padding-right: 0;
+  width: inherit;
 }
 
 /** 表格更多操作下拉样式 */
 .el-table .el-dropdown-link {
-	cursor: pointer;
-	color: #409EFF;
-	margin-left: 5px;
+  cursor: pointer;
+  color: #409eff;
+  margin-left: 5px;
 }
 
-.el-table .el-dropdown, .el-icon-arrow-down {
-	font-size: 12px;
+.el-table .el-dropdown,
+.el-icon-arrow-down {
+  font-size: 12px;
 }
 
 .el-tree-node__content > .el-checkbox {
-	margin-right: 8px;
+  margin-right: 8px;
 }
 
 .list-group-striped > .list-group-item {
-	border-left: 0;
-	border-right: 0;
-	border-radius: 0;
-	padding-left: 0;
-	padding-right: 0;
+  border-left: 0;
+  border-right: 0;
+  border-radius: 0;
+  padding-left: 0;
+  padding-right: 0;
 }
 
 .list-group {
-	padding-left: 0px;
-	list-style: none;
+  padding-left: 0px;
+  list-style: none;
 }
 
 .list-group-item {
-	border-bottom: 1px solid #e7eaec;
-	border-top: 1px solid #e7eaec;
-	margin-bottom: -1px;
-	padding: 11px 0px;
-	font-size: 13px;
+  border-bottom: 1px solid #e7eaec;
+  border-top: 1px solid #e7eaec;
+  margin-bottom: -1px;
+  padding: 11px 0px;
+  font-size: 13px;
 }
 
 .pull-right {
-	float: right !important;
+  float: right !important;
 }
 
 .el-card__header {
-	padding: 14px 15px 7px;
-	min-height: 40px;
+  padding: 14px 15px 7px;
+  min-height: 40px;
 }
 
 .el-card__body {
-	padding: 15px 20px 20px 20px;
+  padding: 15px 20px 20px 20px;
 }
 
 .card-box {
-	padding-right: 15px;
-	padding-left: 15px;
-	margin-bottom: 10px;
+  padding-right: 15px;
+  padding-left: 15px;
+  margin-bottom: 10px;
 }
 
 /* button color */
 .el-button--cyan.is-active,
 .el-button--cyan:active {
-  background: #20B2AA;
-  border-color: #20B2AA;
-  color: #FFFFFF;
+  background: #20b2aa;
+  border-color: #20b2aa;
+  color: #ffffff;
 }
 
 .el-button--cyan:focus,
 .el-button--cyan:hover {
-  background: #48D1CC;
-  border-color: #48D1CC;
-  color: #FFFFFF;
+  background: #48d1cc;
+  border-color: #48d1cc;
+  color: #ffffff;
 }
 
 .el-button--cyan {
-  background-color: #20B2AA;
-  border-color: #20B2AA;
-  color: #FFFFFF;
+  background-color: #20b2aa;
+  border-color: #20b2aa;
+  color: #ffffff;
 }
 
 /* text color */
 .text-navy {
-	color: #1ab394;
+  color: #1ab394;
+}
+
+.text-21f {
+  color: #fa821f;
 }
 
 .text-primary {
-	color: inherit;
+  color: inherit;
 }
 
 .text-success {
-	color: #1c84c6;
+  color: #1c84c6;
 }
 
 .text-info {
-	color: #23c6c8;
+  color: #23c6c8;
 }
 
 .text-warning {
-	color: #f8ac59;
+  color: #f8ac59;
 }
 
 .text-danger {
-	color: #ed5565;
+  color: #ed5565;
 }
 
 .text-muted {
-	color: #888888;
+  color: #888888;
 }
 
 /* image */
 .img-circle {
-	border-radius: 50%;
+  border-radius: 50%;
 }
 
 .img-lg {
-	width: 120px;
-	height: 120px;
+  width: 120px;
+  height: 120px;
 }
 
 .avatar-upload-preview {
-	position: absolute;
-	top: 50%;
-	transform: translate(50%, -50%);
-	width: 200px;
-	height: 200px;
-	border-radius: 50%;
-	box-shadow: 0 0 4px #ccc;
-	overflow: hidden;
+  position: absolute;
+  top: 50%;
+  transform: translate(50%, -50%);
+  width: 200px;
+  height: 200px;
+  border-radius: 50%;
+  box-shadow: 0 0 4px #ccc;
+  overflow: hidden;
 }
 
 /* 拖拽列样式 */
-.sortable-ghost{
-	opacity: .8;
-	color: #fff!important;
-	background: #42b983!important;
+.sortable-ghost {
+  opacity: 0.8;
+  color: #fff !important;
+  background: #42b983 !important;
 }
 
 .top-right-btn {
-	position: relative;
-	float: right;
+  position: relative;
+  float: right;
 }

+ 1 - 15
src/components/common/container.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="mian">
-    <h1 class="mian-title">{{ title }}</h1>
+    <h1 class="contain-title">{{ title }}</h1>
     <div>
       <slot> </slot>
     </div>
@@ -37,19 +37,5 @@ export default {
   background: #ffffff;
   padding: 16px;
   border-radius: 8px;
-  .mian-title {
-    padding: 0;
-    margin: 0;
-    color: #222222;
-    font-size: 16px;
-    &::before {
-      content: "|";
-      background: #fa821f;
-      margin-right: 8px;
-      color: #fa821f;
-      font-size: 16px;
-      border-radius: 10px;
-    }
-  }
 }
 </style>

+ 125 - 0
src/views/components/index/goodsList.vue

@@ -0,0 +1,125 @@
+<template>
+  <container title="商品列表">
+    <div class="input-box">
+      <el-input
+        prefix-icon="el-icon-search"
+        placeholder="输入产品名称"
+        v-model="input1"
+      >
+      </el-input>
+    </div>
+    <div class="good-main">
+      <div class="good-category">
+        <el-tree highlight-current :data="data" :props="defaultProps"></el-tree>
+      </div>
+      <div class="good-list">123</div>
+    </div>
+  </container>
+</template>
+
+<script>
+export default {
+  name: "SaasMemberGoodsList",
+
+  data() {
+    return {
+      input1: 23,
+      data: [
+        {
+          label: "一级 1",
+          children: [
+            {
+              label: "二级 1-1",
+              children: [
+                {
+                  label: "三级 1-1-1",
+                },
+              ],
+            },
+          ],
+        },
+        {
+          label: "一级 2",
+          children: [
+            {
+              label: "二级 2-1",
+              children: [
+                {
+                  label: "三级 2-1-1",
+                },
+                {
+                  label: "三级 2-1-2",
+                },
+              ],
+            },
+            {
+              label: "二级 2-2",
+              children: [
+                {
+                  label: "三级 2-2-1",
+                },
+              ],
+            },
+          ],
+        },
+        {
+          label: "一级 3",
+          children: [
+            {
+              label: "二级 3-1",
+              children: [
+                {
+                  label: "三级 3-1-1",
+                },
+              ],
+            },
+            {
+              label: "二级 3-2",
+              children: [
+                {
+                  label: "三级 3-2-1",
+                },
+              ],
+            },
+          ],
+        },
+      ],
+      defaultProps: {
+        children: "children",
+        label: "label",
+      },
+    };
+  },
+
+  mounted() {},
+
+  methods: {},
+};
+</script>
+
+<style lang="scss" scoped>
+.input-box {
+  margin: 18px 0 16px;
+}
+.good-main {
+  height: 500px;
+  display: flex;
+  .good-category {
+    background: #f6f7f9;
+    /deep/ {
+      .el-tree-node__expand-icon {
+        display: none;
+      }
+      .el-tree {
+        background: #f6f7f9;
+      }
+      .el-tree--highlight-current
+        .el-tree-node.is-current
+        > .el-tree-node__content {
+        background: #ffffff;
+        color: #fa821f;
+      }
+    }
+  }
+}
+</style>

+ 87 - 0
src/views/components/index/keyboard.vue

@@ -0,0 +1,87 @@
+<template>
+  <div class="keyboard-wrapper">
+    <div class="keyboard">
+      <table>
+        <tr>
+          <td @click="change(1)">1</td>
+          <td @click="change(2)">2</td>
+          <td @click="change(3)">3</td>
+          <td @click="del">
+            <img src="../../../assets/images/icon_back.png" alt="" srcset="" />
+          </td>
+        </tr>
+        <tr>
+          <td @click="change(4)">4</td>
+          <td @click="change(5)">5</td>
+          <td @click="change(6)">6</td>
+          <td @click="change('-')">-</td>
+        </tr>
+        <tr>
+          <td @click="change(7)">7</td>
+          <td @click="change(8)">8</td>
+          <td @click="change(9)">9</td>
+          <td rowspan="2" class="comfirm" @click="comfirm">确 定</td>
+        </tr>
+        <tr>
+          <td @click="() => {}">+</td>
+          <td @click="change(0)">0</td>
+          <td @click="change('.')">.</td>
+        </tr>
+      </table>
+    </div>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "keyBoard",
+  data() {
+    return {};
+  },
+  methods: {
+    change(val) {
+      this.$emit("change", val);
+    },
+    del() {
+      this.$emit("backspace");
+    },
+    comfirm() {
+      this.$emit("comfirm");
+    },
+  },
+};
+</script>
+<style lang="scss" scoped>
+.keyboard-wrapper {
+  user-select: none;
+  margin: -8px 0 -8px -8px;
+  .keyboard {
+    width: 100%;
+    table {
+      width: calc(100% + 8px);
+      border-collapse: separate;
+      border-spacing: 8px 8px;
+      background: #fff;
+      font-size: 28px;
+      td {
+        cursor: pointer;
+        background: #f6f7f9;
+        width: 25%;
+        height: 90px;
+        color: #222222;
+        text-align: center;
+        border-radius: 4px;
+        &:active {
+          background: #ccc;
+        }
+      }
+      .comfirm {
+        font-family: OPPOSans-Bold, OPPOSans;
+        font-weight: bold;
+        background: #fa821f;
+        color: #fff;
+      }
+    }
+  }
+}
+</style>

+ 198 - 0
src/views/components/index/payContain.vue

@@ -0,0 +1,198 @@
+<template>
+  <container title="支付">
+    <div class="pay-top">
+      <p class="pay-title">已选商品</p>
+      <div class="good-list scrollbar">
+        <div class="good-item fl_c" v-for="(item, i) in list" :key="i">
+          <img
+            src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg"
+            alt=""
+          />
+          <div class="good-info">
+            <div class="line1">
+              鲁花花生油鲁花花生油最多一行鲁花花生油鲁花花生油最多一行
+            </div>
+            <div>
+              <span class="cb22">¥2243.00</span>
+              <span style="color: #999999; text-decoration: line-through"
+                >¥2243.00</span
+              >
+              <span class="text-21f">¥2243.00</span>
+            </div>
+          </div>
+          <div class="good-btn fl_c"><i class="el-icon-delete"></i></div>
+        </div>
+      </div>
+    </div>
+    <div class="pay-bom">
+      <p class="pay-title">商品价格</p>
+      <div class="input-ward fl">
+        ¥
+        <input placeholder="请输入金额" v-model="money" />
+      </div>
+      <div class="discount">
+        <el-checkbox v-model="checked">折扣商品</el-checkbox>
+        <span class="mr">该商品最多可抵扣</span>
+        <input type="text" />
+        <span>(2000积分)</span>
+      </div>
+      <div class="pay-bom-item c48">折扣金额:233元</div>
+      <div class="pay-bom-item c48">
+        实付金额:<span class="money">¥2243.00</span>
+      </div>
+      <div class="pay-bom-item fl c48">
+        支付方式:
+        <div
+          class="wechart fl_c"
+          :class="{ actived: active }"
+          @click="active = !active"
+        >
+          <img src="../../../assets//images//icon_wechat.png" alt="" />
+          <span>微信支付</span>
+        </div>
+      </div>
+    </div>
+  </container>
+</template>
+
+<script>
+export default {
+  name: "SaasMemberPayContain",
+
+  data() {
+    return {
+      list: [{}, {}, {}, {}, {}, {}],
+      money: "",
+      checked: true,
+      active: true,
+    };
+  },
+
+  mounted() {},
+
+  methods: {},
+};
+</script>
+
+<style lang="scss" scoped>
+.pay-title {
+  font-size: 14px;
+  color: #4a4a4b;
+}
+.pay-top {
+  margin-bottom: 50px;
+  .good-list {
+    max-height: 330px;
+    overflow-x: auto;
+    .good-item {
+      height: 60px;
+      margin-bottom: 28px;
+      &:nth-last-of-type(1) {
+        margin-bottom: 0;
+      }
+      img {
+        width: 60px;
+        height: 60px;
+        border-radius: 8px;
+        margin-right: 10px;
+      }
+      .good-info {
+        flex: 1;
+        overflow: hidden;
+        .line1 {
+          color: #4a4a4b;
+        }
+        div:nth-of-type(2) {
+          margin-top: 14px;
+          span {
+            font-size: 14px;
+            margin-right: 12px;
+          }
+        }
+      }
+      .good-btn {
+        width: 40px;
+        height: 60px;
+        background: #eb5757;
+        border-radius: 8px;
+        height: 100%;
+        margin-left: 20px;
+        i {
+          color: #ffffff;
+        }
+      }
+    }
+  }
+}
+.pay-bom {
+  height: 400px;
+  .input-ward {
+    width: 100%;
+    height: 68px;
+    background: #f6f7f9;
+    border-radius: 12px;
+    padding-left: 16px;
+    font-weight: 800;
+    color: #222222;
+    font-size: 24px;
+    margin-bottom: 28px;
+    input {
+      font-weight: 800;
+      color: #222222;
+      font-size: 24px;
+      &::-webkit-input-placeholder {
+        // 针对 谷歌 内核
+        font-weight: 600;
+        font-size: 20px;
+        line-height: 40px;
+      }
+    }
+  }
+  .discount {
+    font-size: 14px;
+    .mr {
+      margin: 0 8px 0 12px;
+    }
+    input {
+      width: 114px;
+      height: 36px;
+      padding: 0 10px;
+      border-radius: 6px;
+      color: #eb5757;
+    }
+    /deep/ {
+      .el-checkbox__label {
+        color: #000;
+        font-weight: bold;
+        color: #4a4a4b;
+        font-size: 14px;
+      }
+    }
+  }
+  .pay-bom-item {
+    margin-top: 20px;
+    .money {
+      font-weight: 800;
+      color: #eb5757;
+      font-size: 16px;
+    }
+    .wechart {
+      width: 160px;
+      height: 55px;
+      background: #f6f7f9;
+      border-radius: 12px;
+      color: #09bb07;
+      font-size: 16px;
+      cursor: pointer;
+      img {
+        margin-right: 6px;
+      }
+    }
+  }
+  input {
+    background: #f6f7f9;
+    border: none;
+    outline: none;
+  }
+}
+</style>

+ 114 - 24
src/views/components/index/scan.vue

@@ -1,47 +1,137 @@
 <template>
   <container title="扫描">
-    <div class="input-box">
-      <el-input placeholder="请扫描会员卡" v-model="input1">
-        <img src="../../../assets/images/icon_scan.png" slot="suffix" />
-      </el-input>
-    </div>
-    <h1 class="mian-title">会员信息</h1>
-    <div class="info">
-      <p>姓名:欧阳娜娜</p>
-      <p>会员码:24878389892</p>
-      <p>手机号码:15902021122</p>
-      <p>剩余积分:8328</p>
+    <div class="scan-top">
+      <div class="input-box">
+        <el-input placeholder="请扫描会员卡" v-model="input1">
+          <img src="../../../assets/images/icon_scan.png" slot="suffix" />
+        </el-input>
+      </div>
+      <div class="code">
+        <vue-barcode
+          :value="value1"
+          line-color="#222222"
+          width="2"
+          marginBottom="1"
+          text=" "
+          height="70"
+        >
+          不支持vue-barcode
+        </vue-barcode>
+      </div>
+      <button class="cancel">取消</button>
+      <h1 class="contain-title">会员信息</h1>
+      <div class="info">
+        <p>姓名:欧阳娜娜</p>
+        <p>会员码:24878389892</p>
+        <p>手机号码:15902021122</p>
+        <p>剩余积分:<scan class="text-21f">4888</scan></p>
+      </div>
     </div>
+    <div class="line"></div>
+    <key-board
+      @change="valChange"
+      @backspace="backspace"
+      @comfirm="comfirm"
+    ></key-board>
   </container>
 </template>
 
 <script>
+import keyBoard from "./keyboard";
+import VueBarcode from "vue-barcode";
 export default {
-  name: "SaasMemberScan",
-
+  name: "SaasMemberPayContain",
   data() {
     return {
-      input1: "",
+      actives: [1],
+      modeList: [
+        { label: "扫码支付", value: 1 },
+        { label: "现金收银", value: 2 },
+      ],
+      value: "",
+      value1: "1111111111111111",
     };
   },
 
   mounted() {},
 
-  methods: {},
+  methods: {
+    tab(value) {
+      const index = this.actives.findIndex((e) => e == value);
+      if (index == -1) {
+        this.actives.push(value);
+      } else {
+        this.actives.splice(index, 1);
+      }
+    },
+    valChange(val) {
+      this.value += val;
+    },
+    backspace() {
+      if (this.value.length) {
+        console.log(123);
+        this.value = this.value.substr(0, this.value.length - 1);
+      }
+    },
+    comfirm() {
+      console.log("确认");
+    },
+  },
+  components: {
+    keyBoard,
+    VueBarcode,
+  },
 };
 </script>
 
 <style lang="scss" scoped>
-.input-box {
-  margin: 15px 0 44px;
-  img {
-    margin: 8px 8px 0 0;
+.scan-top {
+  width: 100%;
+  margin-bottom: 40px;
+  .input-box {
+    margin: 18px 0 16px;
+    img {
+      margin: 8px 8px 0 0;
+    }
+  }
+  .code {
+    display: flex;
+    /deep/ {
+      & > div {
+        margin: 0 auto;
+      }
+    }
+  }
+
+  .cancel {
+    cursor: pointer;
+    display: block;
+    margin: 0 auto 40px;
+    background: #ffffff;
+    border-radius: 8px;
+    border: 1px solid #333333;
+    width: 144px;
+    height: 48px;
+    color: #222222;
+    font-weight: bold;
+    font-size: 16px;
+  }
+  .info {
+    width: 100%;
+    padding-top: 26px;
+    color: #4a4a4b;
+    font-size: 15px;
+    p {
+      margin: 0;
+      margin-bottom: 18px;
+      display: inline-block;
+      width: 50%;
+    }
   }
 }
-.info {
-  padding-top: 10px;
-  color: #666666;
-  font-size: 15px;
-  line-height: 18px;
+.line {
+  height: 2px;
+  background: #f6f7f9;
+  margin-bottom: 24px;
 }
 </style>

+ 13 - 6
src/views/index.vue

@@ -1,19 +1,24 @@
 <template>
   <div>
     <el-row :gutter="20">
-      <el-col :span="9">
-        <!-- <h1 class="mian-title">会员信息</h1> -->
-        <scan></scan>
-        <container title="商品列表" style="margin-top: 16px"></container>
+      <el-col :span="8">
+        <goods-list></goods-list>
+      </el-col>
+      <el-col :span="8">
+        <!-- <scan></scan> -->
+        <pay-contain></pay-contain>
       </el-col>
-      <el-col :span="15">
-        <container title="扫描"></container>
+      <el-col :span="8">
+        <!-- <pay-contain></pay-contain> -->
+        <scan></scan>
       </el-col>
     </el-row>
   </div>
 </template>
 <script>
 import scan from "./components/index/scan.vue";
+import goodsList from "./components/index/goodsList.vue";
+import payContain from "./components/index/payContain.vue";
 export default {
   name: "Index",
   data() {
@@ -26,6 +31,8 @@ export default {
   methods: {},
   components: {
     scan,
+    goodsList,
+    payContain,
   },
 };
 </script>