diff --git a/.env.production b/.env.production index 8808c55..2fc5bbc 100644 --- a/.env.production +++ b/.env.production @@ -1,5 +1,5 @@ NODE_ENV='production' # 请求域名前缀 -VUE_APP_URL='https://api.sutenong.com' +VUE_APP_URL='https://swsz.api.js-dyyj.com' # 打包后输出目录 VUE_APP_OUTPUTDIR='dist' \ No newline at end of file diff --git a/dist/css/110.854f9bc2.css b/dist/css/110.854f9bc2.css new file mode 100644 index 0000000..6e1267c --- /dev/null +++ b/dist/css/110.854f9bc2.css @@ -0,0 +1 @@ +.bg[data-v-3baef56b]{display:flex}.left-container[data-v-3baef56b]{width:150px;flex-shrink:0;display:flex;flex-direction:column;height:-moz-fit-content;height:fit-content;background-color:#fff;box-shadow:0 0 10px rgba(0,0,0,.1);overflow:hidden}.left-container .route-item[data-v-3baef56b]{padding:10px;cursor:pointer;font-size:14px}.left-container .route-item[data-v-3baef56b]:hover{background-color:#f9f9f9}.left-container .route-item.active[data-v-3baef56b]{background-color:#6a8a27;color:#fff}.right-container[data-v-3baef56b]{flex:1;width:1px;padding-left:20px} \ No newline at end of file diff --git a/dist/css/135.643ed51b.css b/dist/css/135.643ed51b.css new file mode 100644 index 0000000..939a141 --- /dev/null +++ b/dist/css/135.643ed51b.css @@ -0,0 +1 @@ +.bg[data-v-2bf96cfd]{display:flex;flex-direction:column}.bg[data-v-2bf96cfd] .el-button--text,.bg[data-v-2bf96cfd] .el-tabs__item.is-active{color:#6a8a27}.bg[data-v-2bf96cfd] .el-tabs__active-bar{background-color:#6a8a27}.bg[data-v-2bf96cfd] .el-tabs__item:hover{color:#6a8a27}.order-card[data-v-2bf96cfd]{border-radius:4px;overflow:hidden}.order-header[data-v-2bf96cfd]{padding:12px 20px;display:flex;align-items:center;background:#f8f9fa;border-bottom:1px solid #999;color:#666;font-size:14px}.order-products[data-v-2bf96cfd]{padding:10px 20px}.product-item[data-v-2bf96cfd]{display:flex;align-items:center;padding:15px 0;border-bottom:1px dashed #eee;font-size:14px}.product-item[data-v-2bf96cfd]:last-child{border-bottom:none}.product-image[data-v-2bf96cfd]{width:80px;height:80px;-o-object-fit:cover;object-fit:cover;margin-right:15px;border-radius:4px}.product-details[data-v-2bf96cfd]{flex:1}.product-name[data-v-2bf96cfd]{color:#333}.product-spec[data-v-2bf96cfd]{color:#999;font-size:12px}.product-box[data-v-2bf96cfd]{width:100px;text-align:center;color:#333}.product-quantity[data-v-2bf96cfd]{width:160px;text-align:center;color:#333}.product-select[data-v-2bf96cfd]{width:80px;color:#333}.product-price[data-v-2bf96cfd]{color:#ff5252}.cart-footer[data-v-2bf96cfd]{display:flex;justify-content:space-between;align-items:center;margin-top:10px;padding:15px;background-color:#f5f7fa;border-radius:4px}.selected-info[data-v-2bf96cfd]{color:#666;font-size:14px;padding-right:50px}.import-text[data-v-2bf96cfd]{color:#c7020b;font-size:20px;font-weight:700}.total-price[data-v-2bf96cfd]:before{content:"¥";margin-right:5px;font-size:12px} \ No newline at end of file diff --git a/dist/css/143.ecb72621.css b/dist/css/143.ecb72621.css new file mode 100644 index 0000000..f45b900 --- /dev/null +++ b/dist/css/143.ecb72621.css @@ -0,0 +1 @@ +.order-page[data-v-4237bdf4]{max-width:1200px;margin:0 auto;padding:20px;background-color:#fff;border:1px solid #e6e6e6;border-radius:4px}.order-page .page-header[data-v-4237bdf4]{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.order-page .page-header h2[data-v-4237bdf4]{font-size:18px;font-weight:500;color:#333;margin:0}.order-page .page-header .address-book-btn[data-v-4237bdf4]{color:#409eff}.order-page .info-section[data-v-4237bdf4]{margin-bottom:20px}.order-page .info-section h3[data-v-4237bdf4]{font-size:16px;font-weight:500;color:#333;margin-bottom:15px;padding-bottom:5px;border-bottom:1px solid #f0f0f0}.order-page .info-section .address-item[data-v-4237bdf4],.order-page .info-section .invoice-address-item[data-v-4237bdf4],.order-page .info-section .invoice-title-item[data-v-4237bdf4],.order-page .info-section .invoice-type-item[data-v-4237bdf4],.order-page .info-section .trade-type-item[data-v-4237bdf4]{margin-bottom:15px;display:flex;align-items:flex-start}.order-page .info-section .address-item .label[data-v-4237bdf4],.order-page .info-section .invoice-address-item .label[data-v-4237bdf4],.order-page .info-section .invoice-title-item .label[data-v-4237bdf4],.order-page .info-section .invoice-type-item .label[data-v-4237bdf4],.order-page .info-section .trade-type-item .label[data-v-4237bdf4]{width:120px;color:#666;font-size:14px;padding-top:5px}.order-page .info-section .address-item .address-content[data-v-4237bdf4],.order-page .info-section .invoice-address-item .address-content[data-v-4237bdf4],.order-page .info-section .invoice-title-item .address-content[data-v-4237bdf4],.order-page .info-section .invoice-type-item .address-content[data-v-4237bdf4],.order-page .info-section .trade-type-item .address-content[data-v-4237bdf4]{flex:1}.order-page .info-section .address-item .saved-address[data-v-4237bdf4],.order-page .info-section .invoice-address-item .saved-address[data-v-4237bdf4],.order-page .info-section .invoice-title-item .saved-address[data-v-4237bdf4],.order-page .info-section .invoice-type-item .saved-address[data-v-4237bdf4],.order-page .info-section .trade-type-item .saved-address[data-v-4237bdf4]{margin-bottom:10px;display:flex;align-items:center;flex-wrap:wrap;padding:8px;border:1px solid #e6e6e6;border-radius:4px;width:100%;cursor:pointer;transition:all .3s}.order-page .info-section .address-item .saved-address.selected[data-v-4237bdf4],.order-page .info-section .invoice-address-item .saved-address.selected[data-v-4237bdf4],.order-page .info-section .invoice-title-item .saved-address.selected[data-v-4237bdf4],.order-page .info-section .invoice-type-item .saved-address.selected[data-v-4237bdf4],.order-page .info-section .trade-type-item .saved-address.selected[data-v-4237bdf4]{border-color:#6a8a27;background-color:rgba(106,138,39,.05)}.order-page .info-section .address-item .saved-address .name-tag[data-v-4237bdf4],.order-page .info-section .invoice-address-item .saved-address .name-tag[data-v-4237bdf4],.order-page .info-section .invoice-title-item .saved-address .name-tag[data-v-4237bdf4],.order-page .info-section .invoice-type-item .saved-address .name-tag[data-v-4237bdf4],.order-page .info-section .trade-type-item .saved-address .name-tag[data-v-4237bdf4]{background-color:#f8f8f8;color:#333;padding:2px 6px;border-radius:3px;margin-right:10px;font-size:13px}.order-page .info-section .address-item .saved-address .detail[data-v-4237bdf4],.order-page .info-section .invoice-address-item .saved-address .detail[data-v-4237bdf4],.order-page .info-section .invoice-title-item .saved-address .detail[data-v-4237bdf4],.order-page .info-section .invoice-type-item .saved-address .detail[data-v-4237bdf4],.order-page .info-section .trade-type-item .saved-address .detail[data-v-4237bdf4]{flex:1;font-size:14px;color:#666;min-width:200px;margin-bottom:5px}.order-page .info-section .address-item .saved-address .delete-btn[data-v-4237bdf4],.order-page .info-section .address-item .saved-address .edit-btn[data-v-4237bdf4],.order-page .info-section .address-item .saved-address .set-default-btn[data-v-4237bdf4],.order-page .info-section .invoice-address-item .saved-address .delete-btn[data-v-4237bdf4],.order-page .info-section .invoice-address-item .saved-address .edit-btn[data-v-4237bdf4],.order-page .info-section .invoice-address-item .saved-address .set-default-btn[data-v-4237bdf4],.order-page .info-section .invoice-title-item .saved-address .delete-btn[data-v-4237bdf4],.order-page .info-section .invoice-title-item .saved-address .edit-btn[data-v-4237bdf4],.order-page .info-section .invoice-title-item .saved-address .set-default-btn[data-v-4237bdf4],.order-page .info-section .invoice-type-item .saved-address .delete-btn[data-v-4237bdf4],.order-page .info-section .invoice-type-item .saved-address .edit-btn[data-v-4237bdf4],.order-page .info-section .invoice-type-item .saved-address .set-default-btn[data-v-4237bdf4],.order-page .info-section .trade-type-item .saved-address .delete-btn[data-v-4237bdf4],.order-page .info-section .trade-type-item .saved-address .edit-btn[data-v-4237bdf4],.order-page .info-section .trade-type-item .saved-address .set-default-btn[data-v-4237bdf4]{margin-left:10px;color:#409eff;font-size:13px;padding:0;height:auto}.order-page .info-section .address-item .el-radio[data-v-4237bdf4],.order-page .info-section .invoice-address-item .el-radio[data-v-4237bdf4],.order-page .info-section .invoice-title-item .el-radio[data-v-4237bdf4],.order-page .info-section .invoice-type-item .el-radio[data-v-4237bdf4],.order-page .info-section .trade-type-item .el-radio[data-v-4237bdf4]{margin-right:15px;margin-top:3px}.order-page .info-section .address-item .invoice-title-select[data-v-4237bdf4],.order-page .info-section .invoice-address-item .invoice-title-select[data-v-4237bdf4],.order-page .info-section .invoice-title-item .invoice-title-select[data-v-4237bdf4],.order-page .info-section .invoice-type-item .invoice-title-select[data-v-4237bdf4],.order-page .info-section .trade-type-item .invoice-title-select[data-v-4237bdf4]{width:300px;margin-top:3px}.order-page .info-section .address-item .add-title-btn[data-v-4237bdf4],.order-page .info-section .invoice-address-item .add-title-btn[data-v-4237bdf4],.order-page .info-section .invoice-title-item .add-title-btn[data-v-4237bdf4],.order-page .info-section .invoice-type-item .add-title-btn[data-v-4237bdf4],.order-page .info-section .trade-type-item .add-title-btn[data-v-4237bdf4]{margin-left:10px;color:#409eff;padding:0;height:auto}.order-page .contract-section[data-v-4237bdf4]{margin-bottom:20px;padding:15px;background-color:#f9f9f9;border-radius:4px}.order-page .contract-section h3[data-v-4237bdf4]{font-size:16px;font-weight:500;color:#333;margin-bottom:10px;margin-top:0}.order-page .contract-section p[data-v-4237bdf4]{font-size:14px;color:#666;margin:0}.order-page .goods-section h3[data-v-4237bdf4]{font-size:16px;font-weight:500;color:#333;margin-bottom:15px;padding-bottom:5px;border-bottom:1px solid #f0f0f0}.order-page .goods-section .order-group[data-v-4237bdf4]{margin-bottom:20px;border:1px solid #e6e6e6;border-radius:4px;overflow:hidden}.order-page .goods-section .order-group .supplier-info[data-v-4237bdf4]{background-color:#f5f7fa;padding:10px 15px;font-size:14px;color:#333;border-bottom:1px solid #e6e6e6}.order-page .goods-section .order-group .goods-table[data-v-4237bdf4]{width:100%;border-collapse:collapse}.order-page .goods-section .order-group .goods-table th[data-v-4237bdf4]{background-color:#f5f7fa;text-align:left;padding:10px 15px;border:1px solid #e6e6e6;font-weight:500;color:#333;font-size:14px}.order-page .goods-section .order-group .goods-table td[data-v-4237bdf4]{padding:10px 15px;border:1px solid #e6e6e6;vertical-align:middle;font-size:14px;color:#666}.order-page .goods-section .order-group .goods-table .goods-img[data-v-4237bdf4]{width:50px;height:50px;margin-right:10px;vertical-align:middle;border-radius:4px}.order-page .goods-section .order-group .goods-table .goods-name[data-v-4237bdf4]{vertical-align:middle;max-width:200px;display:inline-block}.order-page .goods-section .order-group .goods-table .subtotal[data-v-4237bdf4]{color:#ff4d4f;font-weight:500}.order-page .goods-section .order-group .order-remark[data-v-4237bdf4]{padding:15px;font-size:14px;color:#666;border-top:1px solid #e6e6e6;background-color:#f9f9f9}.order-page .goods-section .order-group .order-remark .remark-label[data-v-4237bdf4]{display:block;margin-bottom:10px;font-weight:500}.order-page .goods-section .order-group .order-remark .rich-text-editor[data-v-4237bdf4]{border:1px solid #e6e6e6;border-radius:4px;overflow:hidden}.order-page .goods-section .order-group .order-remark .rich-text-editor .remark-editor[data-v-4237bdf4]{border:none;border-bottom:1px solid #e6e6e6;border-radius:0;min-height:100px}.order-page .goods-section .order-group .order-remark .rich-text-editor .editor-toolbar[data-v-4237bdf4]{padding:5px 10px;background-color:#f5f5f5;border-top:1px solid #e6e6e6}.order-page .goods-section .order-group .order-remark .rich-text-editor .editor-toolbar .el-button[data-v-4237bdf4]{margin-right:5px}.order-page .goods-section .total-info[data-v-4237bdf4]{text-align:right;padding:20px;background-color:#f5f7fa;border-radius:4px;margin-top:10px}.order-page .goods-section .total-info p[data-v-4237bdf4]{margin:8px 0;color:#333;font-size:14px}.order-page .goods-section .total-info .pay-amount[data-v-4237bdf4]{font-weight:700;color:#ff4d4f;font-size:16px;margin:15px 0}.order-page .goods-section .total-info .address-info[data-v-4237bdf4]{font-size:13px;color:#999;margin-top:15px;line-height:1.6;text-align:right}.order-page .goods-section .total-info .submit-btn[data-v-4237bdf4]{margin-top:20px;width:150px;height:40px;background-color:#ff4d4f;border:none;font-size:16px}.order-page .goods-section .total-info .submit-btn[data-v-4237bdf4]:hover{background-color:#e03e40}@media(max-width:768px){.order-page[data-v-4237bdf4]{padding:10px}.info-section .address-item[data-v-4237bdf4],.info-section .invoice-address-item[data-v-4237bdf4],.info-section .invoice-title-item[data-v-4237bdf4],.info-section .invoice-type-item[data-v-4237bdf4],.info-section .trade-type-item[data-v-4237bdf4]{flex-direction:column}.info-section .address-item .label[data-v-4237bdf4],.info-section .invoice-address-item .label[data-v-4237bdf4],.info-section .invoice-title-item .label[data-v-4237bdf4],.info-section .invoice-type-item .label[data-v-4237bdf4],.info-section .trade-type-item .label[data-v-4237bdf4]{width:100%;margin-bottom:5px;padding-top:0}.info-section .address-item .saved-address[data-v-4237bdf4],.info-section .invoice-address-item .saved-address[data-v-4237bdf4],.info-section .invoice-title-item .saved-address[data-v-4237bdf4],.info-section .invoice-type-item .saved-address[data-v-4237bdf4],.info-section .trade-type-item .saved-address[data-v-4237bdf4]{flex-direction:column;align-items:flex-start}.info-section .address-item .saved-address .detail[data-v-4237bdf4],.info-section .address-item .saved-address .name-tag[data-v-4237bdf4],.info-section .invoice-address-item .saved-address .detail[data-v-4237bdf4],.info-section .invoice-address-item .saved-address .name-tag[data-v-4237bdf4],.info-section .invoice-title-item .saved-address .detail[data-v-4237bdf4],.info-section .invoice-title-item .saved-address .name-tag[data-v-4237bdf4],.info-section .invoice-type-item .saved-address .detail[data-v-4237bdf4],.info-section .invoice-type-item .saved-address .name-tag[data-v-4237bdf4],.info-section .trade-type-item .saved-address .detail[data-v-4237bdf4],.info-section .trade-type-item .saved-address .name-tag[data-v-4237bdf4]{margin-bottom:8px;width:100%}.info-section .address-item .saved-address .delete-btn[data-v-4237bdf4],.info-section .address-item .saved-address .edit-btn[data-v-4237bdf4],.info-section .address-item .saved-address .set-default-btn[data-v-4237bdf4],.info-section .invoice-address-item .saved-address .delete-btn[data-v-4237bdf4],.info-section .invoice-address-item .saved-address .edit-btn[data-v-4237bdf4],.info-section .invoice-address-item .saved-address .set-default-btn[data-v-4237bdf4],.info-section .invoice-title-item .saved-address .delete-btn[data-v-4237bdf4],.info-section .invoice-title-item .saved-address .edit-btn[data-v-4237bdf4],.info-section .invoice-title-item .saved-address .set-default-btn[data-v-4237bdf4],.info-section .invoice-type-item .saved-address .delete-btn[data-v-4237bdf4],.info-section .invoice-type-item .saved-address .edit-btn[data-v-4237bdf4],.info-section .invoice-type-item .saved-address .set-default-btn[data-v-4237bdf4],.info-section .trade-type-item .saved-address .delete-btn[data-v-4237bdf4],.info-section .trade-type-item .saved-address .edit-btn[data-v-4237bdf4],.info-section .trade-type-item .saved-address .set-default-btn[data-v-4237bdf4]{margin-left:0;margin-right:10px;display:inline-block}.info-section .address-item .invoice-title-select[data-v-4237bdf4],.info-section .invoice-address-item .invoice-title-select[data-v-4237bdf4],.info-section .invoice-title-item .invoice-title-select[data-v-4237bdf4],.info-section .invoice-type-item .invoice-title-select[data-v-4237bdf4],.info-section .trade-type-item .invoice-title-select[data-v-4237bdf4]{width:100%}.goods-section .goods-table[data-v-4237bdf4]{font-size:12px}.goods-section .order-group .goods-table td[data-v-4237bdf4],.goods-section .order-group .goods-table th[data-v-4237bdf4]{padding:8px;font-size:12px}.goods-section .order-group .goods-name[data-v-4237bdf4]{max-width:100px}.goods-section .total-info[data-v-4237bdf4]{padding:15px}.goods-section .total-info .submit-btn[data-v-4237bdf4]{width:100%}} \ No newline at end of file diff --git a/dist/css/164.8de68017.css b/dist/css/164.8de68017.css deleted file mode 100644 index b8f9187..0000000 --- a/dist/css/164.8de68017.css +++ /dev/null @@ -1 +0,0 @@ -.home-layout-container[data-v-7c7e64da]{display:flex;width:100%;height:auto}.left-nav[data-v-7c7e64da]{width:200px;background-color:#f8f9fa;padding:20px 0;box-sizing:border-box}.nav-list[data-v-7c7e64da]{list-style:none;margin:0;padding:0}.nav-item[data-v-7c7e64da]{padding:12px 20px;cursor:pointer;color:#333;transition:all .3s ease}.nav-item i[data-v-7c7e64da]{color:#f63131;margin-right:5px}.nav-item[data-v-7c7e64da]:hover{background-color:#e9ecef;padding-left:25px}.main-content[data-v-7c7e64da]{flex:1;height:auto;overflow:hidden}.carousel-img[data-v-7c7e64da]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.main-content[data-v-7c7e64da] .el-carousel__container{height:100%!important}.right-info[data-v-7c7e64da]{width:280px;background-color:#fff;padding:20px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;border-left:1px solid #eee}.avatar-container[data-v-7c7e64da]{display:flex;flex-direction:column;align-items:center;margin-bottom:20px}.user-avatar[data-v-7c7e64da]{width:60px;height:60px;border-radius:50%;margin-bottom:10px;border:2px solid #f0f0f0}.welcome-text[data-v-7c7e64da]{font-size:14px;color:#333}.btn-group[data-v-7c7e64da]{display:flex;gap:10px;margin-bottom:30px;width:100%}.func-icons[data-v-7c7e64da]{display:flex;justify-content:space-around;width:100%;margin-bottom:30px;padding:10px 0;border-top:1px dashed #eee;border-bottom:1px dashed #eee}.icon-item[data-v-7c7e64da]{display:flex;flex-direction:column;align-items:center;cursor:pointer;color:#666;transition:color .3s ease;width:50px}.icon-item[data-v-7c7e64da]:hover{color:#1890ff}.icon[data-v-7c7e64da]{font-size:24px;margin-bottom:5px}.icon-item span[data-v-7c7e64da]{font-size:12px}.announcement[data-v-7c7e64da]{display:flex;align-items:center;font-size:12px;color:#666;width:100%;padding-top:10px}.announcement span[data-v-7c7e64da]{margin-left:10px}.product-list .product-grid[data-v-019f4a60]{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:20px}.product-list .product-card[data-v-019f4a60]{border:1px solid #eaeaea;border-radius:8px;overflow:hidden;transition:all .3s ease;padding:10px}.product-list .product-card[data-v-019f4a60]:hover{transform:translateY(-5px);box-shadow:0 5px 15px rgba(0,0,0,.1)}.product-list .product-card .product-img[data-v-019f4a60]{height:250px;overflow:hidden}.product-list .product-card .product-img .product-pic[data-v-019f4a60]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;transition:transform .5s ease}.product-list .product-card .product-img .product-pic[data-v-019f4a60]:hover{transform:scale(1.05)}.product-list .product-card .product-info[data-v-019f4a60]{padding:10px}.product-list .product-card .product-info .product-name[data-v-019f4a60]{font-size:14px;line-height:20px;min-height:40px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-bottom:10px}.product-list .product-card .product-info .product-name a[data-v-019f4a60]{color:#333}.product-list .product-card .product-info .product-name a[data-v-019f4a60]:hover{color:#409eff}.product-list .product-card .product-info .product-price[data-v-019f4a60]{margin-bottom:15px}.product-list .product-card .product-info .product-price .current-price[data-v-019f4a60]{color:#f40;font-size:16px;font-weight:700}.product-list .product-card .product-info .product-price .original-price[data-v-019f4a60]{color:#999;font-size:12px;text-decoration:line-through;margin-left:8px}.product-list .product-card .product-info .product-actions[data-v-019f4a60]{margin-bottom:10px}.product-list .product-card .product-info .product-sales[data-v-019f4a60]{font-size:12px;color:#999;margin-bottom:15px}.product-list .no-products[data-v-019f4a60]{padding:50px 0;text-align:center}.product-box[data-v-765f70e7]{margin:30px 0}.product-box h2[data-v-765f70e7]{margin-bottom:20px} \ No newline at end of file diff --git a/dist/css/198.dd2194dd.css b/dist/css/198.dd2194dd.css deleted file mode 100644 index 60a7c20..0000000 --- a/dist/css/198.dd2194dd.css +++ /dev/null @@ -1 +0,0 @@ -.product-grid-page[data-v-7212ada1]{padding:20px;background-color:#fff}.product-grid-page .filter-bar[data-v-7212ada1]{display:flex;gap:15px;margin-bottom:20px;flex-wrap:wrap}.product-grid-page .filter-bar .filter-select[data-v-7212ada1]{min-width:150px}.product-grid-page .filter-bar .search-input[data-v-7212ada1]{flex:1;max-width:300px}.product-grid-page .product-grid[data-v-7212ada1]{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px}.product-grid-page .product-card[data-v-7212ada1]{background:#fff;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.05);overflow:hidden;transition:transform .3s,box-shadow .3s;cursor:pointer;position:relative}.product-grid-page .product-card[data-v-7212ada1]:hover{transform:translateY(-5px);box-shadow:0 4px 12px rgba(0,0,0,.1)}.product-grid-page .product-card .product-img[data-v-7212ada1]{width:100%;height:200px;border-radius:8px 8px 0 0}.product-grid-page .product-card .tag[data-v-7212ada1]{position:absolute;top:10px;left:10px;padding:4px 8px;border-radius:4px;color:#fff;font-size:12px;z-index:1}.product-grid-page .product-card .product-info[data-v-7212ada1]{padding:15px;position:relative}.product-grid-page .product-card .product-info .product-name[data-v-7212ada1]{font-size:14px;font-weight:500;margin-bottom:8px;line-height:1.4;height:36px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.product-grid-page .product-card .product-info .price-row[data-v-7212ada1]{display:flex;align-items:baseline;gap:8px;margin-bottom:10px}.product-grid-page .product-card .product-info .price-row .current-price[data-v-7212ada1]{font-size:16px;color:#ff4d4f;font-weight:700}.product-grid-page .product-card .product-info .price-row .original-price[data-v-7212ada1]{font-size:12px;color:#999;text-decoration:line-through}.product-grid-page .product-card .product-info .cart-btn[data-v-7212ada1]{position:absolute;bottom:15px;right:15px;padding:4px 12px;font-size:12px}.product-grid-page .image-placeholder[data-v-7212ada1]{width:100%;height:200px;display:flex;align-items:center;justify-content:center;background-color:#f8f8f8;color:#ccc}.product-grid-page .empty-state[data-v-7212ada1]{text-align:center;padding:50px 0}.product-grid-page .pagination-container[data-v-7212ada1]{display:flex;justify-content:center;margin-top:20px}@media(max-width:768px){.product-grid[data-v-7212ada1]{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}.product-card .product-img[data-v-7212ada1]{height:160px}} \ No newline at end of file diff --git a/dist/css/213.2c6b15af.css b/dist/css/213.2c6b15af.css deleted file mode 100644 index d3b00a5..0000000 --- a/dist/css/213.2c6b15af.css +++ /dev/null @@ -1 +0,0 @@ -.bg[data-v-76ebf0c8]{display:flex;flex-direction:column;font-size:14px}.common-card[data-v-76ebf0c8]{width:100%;background-color:#fff;padding:20px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.order-status[data-v-76ebf0c8]{border-right:1px solid #eee;width:350px;height:220px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:space-between}.order-status .order-no[data-v-76ebf0c8]{color:#999}.order-status .order-no .el-button[data-v-76ebf0c8]{width:-moz-fit-content;width:fit-content;margin:0;display:inline-block;padding:0}.order-status .status-title[data-v-76ebf0c8]{display:flex;align-items:center;font-size:16px;font-weight:700}.order-status .status-title i[data-v-76ebf0c8]{font-size:24px}.order-status .el-button[data-v-76ebf0c8]{width:120px;display:block;margin:0 auto}.order-step[data-v-76ebf0c8]{flex:1;width:1px;padding:0 20px;display:flex;align-items:center}.order-step[data-v-76ebf0c8] .el-step__icon.is-text{border:none;width:30px;height:30px;border-radius:50%;background:#c0c4cc;color:#fff}.order-step[data-v-76ebf0c8] .el-step__line{top:13px}.order-step[data-v-76ebf0c8] .el-step__line-inner{border-color:#c0c4cc}.order-step .process-title[data-v-76ebf0c8]{color:#666;font-weight:700;font-size:14px;margin-top:-70px}.order-step .process-description[data-v-76ebf0c8]{color:#666;font-size:12px;margin-top:45px}.order-step[data-v-76ebf0c8] .is-finish .el-step__icon{background:#67c23a}.order-info-card[data-v-76ebf0c8]{display:flex}.order-info-card[data-v-76ebf0c8] .el-descriptions{flex:1;flex-shrink:0;border-right:1px solid hsla(0,0%,60%,.1);padding:0 20px}.order-info-card[data-v-76ebf0c8] .el-descriptions .el-descriptions-item__label{width:90px}.product-image[data-v-76ebf0c8]{width:80px;height:80px;-o-object-fit:cover;object-fit:cover;margin-right:15px;border-radius:4px}.total-card[data-v-76ebf0c8]{margin-top:20px;background:#fafafa;box-shadow:none}.total-card[data-v-76ebf0c8] .el-descriptions__body{background:none;text-align:right}.total-card[data-v-76ebf0c8] .el-descriptions__body .el-descriptions-item__label{width:90%;text-align:right;justify-content:flex-end}.total-card[data-v-76ebf0c8] .el-descriptions__body .el-descriptions-item__content{justify-content:flex-end} \ No newline at end of file diff --git a/dist/css/217.aab8f461.css b/dist/css/217.aab8f461.css new file mode 100644 index 0000000..cfce753 --- /dev/null +++ b/dist/css/217.aab8f461.css @@ -0,0 +1 @@ +.bg[data-v-cda00668]{display:flex;flex-direction:column}.bg[data-v-cda00668] .el-button--text,.bg[data-v-cda00668] .el-tabs__item.is-active{color:#6a8a27}.bg[data-v-cda00668] .el-tabs__active-bar{background-color:#6a8a27}.bg[data-v-cda00668] .el-tabs__item:hover{color:#6a8a27}.filter-bar[data-v-cda00668]{margin-bottom:20px}.order-card[data-v-cda00668]{border:1px solid #eee;border-radius:4px;margin-bottom:20px;overflow:hidden}.order-header[data-v-cda00668]{background-color:#f8f9fa;padding:12px 20px;display:flex;align-items:center;border-bottom:1px solid #eee;color:#666;font-size:14px}.order-products[data-v-cda00668]{padding:10px 20px}.product-item[data-v-cda00668]{display:flex;align-items:center;padding:15px 0;border-bottom:1px dashed #eee;font-size:14px}.product-item[data-v-cda00668]:last-child{border-bottom:none}.product-image[data-v-cda00668]{width:80px;height:80px;-o-object-fit:cover;object-fit:cover;margin-right:15px;border-radius:4px}.product-details[data-v-cda00668]{flex:1}.product-name[data-v-cda00668]{color:#333;margin-bottom:5px}.product-spec[data-v-cda00668]{color:#999;font-size:12px}.product-price[data-v-cda00668]{width:120px;text-align:center;color:#333}.product-quantity[data-v-cda00668]{width:100px;text-align:center;color:#666}.product-total[data-v-cda00668]{width:120px;text-align:center;color:#333;font-weight:500}.product-actions[data-v-cda00668],.product-status[data-v-cda00668]{width:150px;text-align:center}.order-footer[data-v-cda00668]{background-color:#f8f9fa;padding:15px 20px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid #eee}.order-summary[data-v-cda00668]{text-align:right}.order-amount[data-v-cda00668]{color:#333;margin-bottom:5px}.order-amount strong[data-v-cda00668]{color:#ff4d4f;font-size:16px}.order-tips[data-v-cda00668]{font-size:12px;color:#999}.order-actions[data-v-cda00668]{display:flex;gap:10px} \ No newline at end of file diff --git a/dist/css/23.8e6862d0.css b/dist/css/23.8e6862d0.css deleted file mode 100644 index 8462369..0000000 --- a/dist/css/23.8e6862d0.css +++ /dev/null @@ -1 +0,0 @@ -.login-page[data-v-d5fcf218]{position:relative;width:100%;height:100vh;overflow:hidden}.login-page .bg-container[data-v-d5fcf218]{width:100%;height:100%;position:absolute;left:0;top:0;z-index:1}.login-page .bg-container .bg-img[data-v-d5fcf218]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.login-page .form-card[data-v-d5fcf218]{position:absolute;right:8%;top:50%;transform:translateY(-50%);width:360px;background:#fff;border-radius:8px;box-shadow:0 2px 16px rgba(0,0,0,.1);z-index:2;padding:30px 25px}.login-page .form-card .tab-bar[data-v-d5fcf218]{display:flex;justify-content:center;margin-bottom:25px}.login-page .form-card .tab-bar .tab-item[data-v-d5fcf218]{width:50%;text-align:center;padding:10px 0;color:#666;cursor:pointer;border-bottom:2px solid transparent}.login-page .form-card .tab-bar .tab-item.active[data-v-d5fcf218]{color:#1890ff;border-bottom-color:#1890ff}.login-page .form-card .login-form .el-form-item[data-v-d5fcf218]{margin-bottom:20px}.login-page .form-card .login-form .el-input[data-v-d5fcf218]{height:40px;line-height:40px}.login-page .form-card .login-form .code-btn[data-v-d5fcf218]{padding:0 15px;height:40px}.login-page .form-card .login-form .remember-item[data-v-d5fcf218]{padding-left:0;margin-bottom:10px}.login-page .form-card .login-form .login-btn[data-v-d5fcf218]{width:100%;background:#ff4d4f;border:none}.login-page .form-card .login-form .login-btn[data-v-d5fcf218]:hover{background:#e03e40}.login-page .form-card .login-form .register-guide[data-v-d5fcf218]{text-align:center;margin-top:15px;color:#999}.login-page .form-card .login-form .register-guide .register-link[data-v-d5fcf218]{color:#ff4d4f;text-decoration:underline;margin-left:5px}@media(max-width:992px){.login-page .form-card[data-v-d5fcf218]{right:5%;width:320px}}@media(max-width:576px){.login-page .form-card[data-v-d5fcf218]{right:50%;transform:translate(50%,-50%);width:90%}} \ No newline at end of file diff --git a/dist/css/241.47c7ac13.css b/dist/css/241.47c7ac13.css new file mode 100644 index 0000000..778195f --- /dev/null +++ b/dist/css/241.47c7ac13.css @@ -0,0 +1 @@ +.bg[data-v-56d6bf2e]{display:flex;flex-direction:column;font-size:14px}.common-card[data-v-56d6bf2e]{width:100%;background-color:#fff;padding:20px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.order-status[data-v-56d6bf2e]{border-right:1px solid #eee;width:350px;height:220px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:space-between}.order-status .order-no[data-v-56d6bf2e]{color:#999}.order-status .order-no .el-button[data-v-56d6bf2e]{width:-moz-fit-content;width:fit-content;margin:0;display:inline-block;padding:0}.order-status .status-title[data-v-56d6bf2e]{display:flex;align-items:center;font-size:16px;font-weight:700}.order-status .status-title i[data-v-56d6bf2e]{font-size:24px}.order-status .el-button[data-v-56d6bf2e]{width:120px;display:block;margin:0 auto}.order-step[data-v-56d6bf2e]{flex:1;width:1px;padding:0 20px;display:flex;align-items:center}.order-step[data-v-56d6bf2e] .el-step__icon.is-text{border:none;width:30px;height:30px;border-radius:50%;background:#c0c4cc;color:#fff}.order-step[data-v-56d6bf2e] .el-step__line{top:13px}.order-step[data-v-56d6bf2e] .el-step__line-inner{border-color:#c0c4cc}.order-step .process-title[data-v-56d6bf2e]{color:#666;font-weight:700;font-size:14px;margin-top:-70px}.order-step .process-description[data-v-56d6bf2e]{color:#666;font-size:12px;margin-top:45px}.order-step[data-v-56d6bf2e] .is-finish .el-step__icon{background:#67c23a}.order-info-card[data-v-56d6bf2e]{display:flex}.order-info-card[data-v-56d6bf2e] .el-descriptions{flex:1;flex-shrink:0;border-right:1px solid hsla(0,0%,60%,.1);padding:0 20px}.order-info-card[data-v-56d6bf2e] .el-descriptions .el-descriptions-item__label{width:90px}.product-image[data-v-56d6bf2e]{width:80px;height:80px;-o-object-fit:cover;object-fit:cover;margin-right:15px;border-radius:4px}.total-card[data-v-56d6bf2e]{margin-top:20px;background:#fafafa;box-shadow:none}.total-card[data-v-56d6bf2e] .el-descriptions__body{background:none;text-align:right}.total-card[data-v-56d6bf2e] .el-descriptions__body .el-descriptions-item__label{width:90%;text-align:right;justify-content:flex-end}.total-card[data-v-56d6bf2e] .el-descriptions__body .el-descriptions-item__content{justify-content:flex-end} \ No newline at end of file diff --git a/dist/css/285.65995e3f.css b/dist/css/285.65995e3f.css deleted file mode 100644 index 473d5d8..0000000 --- a/dist/css/285.65995e3f.css +++ /dev/null @@ -1 +0,0 @@ -.bg[data-v-eb1727b2]{display:flex;flex-direction:column}.bg[data-v-eb1727b2] .el-button--text,.bg[data-v-eb1727b2] .el-tabs__item.is-active{color:#6a8a27}.bg[data-v-eb1727b2] .el-tabs__active-bar{background-color:#6a8a27}.bg[data-v-eb1727b2] .el-tabs__item:hover{color:#6a8a27}.filter-bar[data-v-eb1727b2]{margin-bottom:20px}.order-card[data-v-eb1727b2]{border:1px solid #eee;border-radius:4px;margin-bottom:20px;overflow:hidden}.order-header[data-v-eb1727b2]{background-color:#f8f9fa;padding:12px 20px;display:flex;align-items:center;border-bottom:1px solid #eee;color:#666;font-size:14px}.order-products[data-v-eb1727b2]{padding:10px 20px}.product-item[data-v-eb1727b2]{display:flex;align-items:center;padding:15px 0;border-bottom:1px dashed #eee;font-size:14px}.product-item[data-v-eb1727b2]:last-child{border-bottom:none}.product-image[data-v-eb1727b2]{width:80px;height:80px;-o-object-fit:cover;object-fit:cover;margin-right:15px;border-radius:4px}.product-details[data-v-eb1727b2]{flex:1}.product-name[data-v-eb1727b2]{color:#333;margin-bottom:5px}.product-spec[data-v-eb1727b2]{color:#999;font-size:12px}.product-price[data-v-eb1727b2]{width:120px;text-align:center;color:#333}.product-quantity[data-v-eb1727b2]{width:100px;text-align:center;color:#666}.product-total[data-v-eb1727b2]{width:120px;text-align:center;color:#333;font-weight:500}.product-actions[data-v-eb1727b2],.product-status[data-v-eb1727b2]{width:150px;text-align:center}.order-footer[data-v-eb1727b2]{background-color:#f8f9fa;padding:15px 20px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid #eee}.order-summary[data-v-eb1727b2]{text-align:right}.order-amount[data-v-eb1727b2]{color:#333;margin-bottom:5px}.order-amount strong[data-v-eb1727b2]{color:#ff4d4f;font-size:16px}.order-tips[data-v-eb1727b2]{font-size:12px;color:#999}.order-actions[data-v-eb1727b2]{display:flex;gap:10px} \ No newline at end of file diff --git a/dist/css/29.2661f71c.css b/dist/css/29.2661f71c.css new file mode 100644 index 0000000..1c16cf1 --- /dev/null +++ b/dist/css/29.2661f71c.css @@ -0,0 +1 @@ +.register-page[data-v-4e3838a4]{min-height:100vh;background-color:#fff;padding:40px 20px}.register-page .header[data-v-4e3838a4]{display:flex;align-items:center;justify-content:space-between;margin-bottom:40px}.register-page .header .logo-area[data-v-4e3838a4]{display:flex;align-items:center}.register-page .header .logo-area .logo-img[data-v-4e3838a4]{height:40px;margin-right:10px}.register-page .header .logo-area .domain[data-v-4e3838a4]{font-size:14px;color:#999}.register-page .header .hotline[data-v-4e3838a4]{font-size:14px;color:#666}.register-page .form-container[data-v-4e3838a4]{max-width:600px;margin:0 auto}.register-page .form-container .form-title[data-v-4e3838a4]{font-size:20px;font-weight:700;margin-bottom:30px;color:#333}.register-page .form-container .el-form-item[data-v-4e3838a4]{margin-bottom:20px}.register-page .form-container .code-btn[data-v-4e3838a4]{margin-left:10px;padding:0 20px;height:40px}.register-page .form-container .form-tip[data-v-4e3838a4]{font-size:12px;color:#999;margin-top:4px;line-height:1.4}.register-page .form-container .agreement-checkbox[data-v-4e3838a4]{font-size:12px;color:#666}.register-page .form-container .agreement-checkbox .protocol-link[data-v-4e3838a4]{color:#ff4d4f;text-decoration:underline;margin:0 4px}.register-page .form-container .register-btn[data-v-4e3838a4]{width:100%;background-color:#c00;border:none}.register-page .form-container .register-btn[data-v-4e3838a4]:hover{background-color:#a00}.register-page .form-container .bottom-tip[data-v-4e3838a4]{text-align:center;margin-top:20px;font-size:12px;color:#666}.register-page .form-container .bottom-tip .supplier-link[data-v-4e3838a4]{color:#ff4d4f;text-decoration:underline} \ No newline at end of file diff --git a/dist/css/295.de484ffc.css b/dist/css/295.de484ffc.css deleted file mode 100644 index 3f28708..0000000 --- a/dist/css/295.de484ffc.css +++ /dev/null @@ -1 +0,0 @@ -.bg[data-v-32a28e68]{display:flex}.left-container[data-v-32a28e68]{width:150px;flex-shrink:0;display:flex;flex-direction:column;height:-moz-fit-content;height:fit-content;background-color:#fff;box-shadow:0 0 10px rgba(0,0,0,.1);overflow:hidden}.left-container .route-item[data-v-32a28e68]{padding:10px;cursor:pointer;font-size:14px}.left-container .route-item[data-v-32a28e68]:hover{background-color:#f9f9f9}.left-container .route-item.active[data-v-32a28e68]{background-color:#6a8a27;color:#fff}.right-container[data-v-32a28e68]{flex:1;width:1px;padding-left:20px} \ No newline at end of file diff --git a/dist/css/312.5068c08a.css b/dist/css/312.5068c08a.css deleted file mode 100644 index ee4102c..0000000 --- a/dist/css/312.5068c08a.css +++ /dev/null @@ -1 +0,0 @@ -.bg[data-v-ab581bbc]{display:flex;flex-direction:column}.bg[data-v-ab581bbc] .el-button--text{color:#6a8a27}.el-card[data-v-ab581bbc]{margin-bottom:20px;border-radius:6px;box-shadow:0 2px 12px 0 rgba(0,0,0,.05);border:none}.el-card__header[data-v-ab581bbc]{padding:16px 20px;border-bottom:1px solid #f0f0f0;background-color:#fff;font-size:16px;font-weight:500}.el-card__body[data-v-ab581bbc]{padding:20px}.notice-bar[data-v-ab581bbc]{background-color:#fffbe6;border:1px solid #ffe58f;padding:12px 16px;border-radius:4px;margin-bottom:20px;justify-content:space-between;color:#fa8c16;font-size:14px}.notice-bar[data-v-ab581bbc],.notice-bar__content[data-v-ab581bbc]{display:flex;align-items:center}.notice-bar__content i[data-v-ab581bbc]{margin-right:8px}.notice-bar__close[data-v-ab581bbc]{cursor:pointer;transition:color .2s}.notice-bar__close[data-v-ab581bbc]:hover{color:#fa8c16}.user-info[data-v-ab581bbc]{display:flex;align-items:flex-start;padding:10px 0}.user-avatar[data-v-ab581bbc]{width:100px;height:100px;border-radius:50%;margin-right:20px;border:4px solid #f5f7fa}.user-details[data-v-ab581bbc]{flex:1}.user-name[data-v-ab581bbc]{font-size:20px;font-weight:500;margin-bottom:10px;color:#1f2329}.user-other-info[data-v-ab581bbc]{color:#4e5969;margin-bottom:6px;font-size:14px}.login-info[data-v-ab581bbc]{display:flex;padding-top:20px}.login-section[data-v-ab581bbc]{flex:1}.login-section-title[data-v-ab581bbc]{font-weight:500;margin-bottom:10px;color:#1f2329;font-size:15px}.login-detail[data-v-ab581bbc]{color:#4e5969;font-size:14px;margin-bottom:6px}.feature-grid[data-v-ab581bbc]{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-top:15px}.feature-item[data-v-ab581bbc]{display:flex;flex-direction:column;align-items:center;padding:15px 10px;border-radius:6px;transition:all .2s;cursor:pointer}.feature-item[data-v-ab581bbc]:hover{background-color:#f5f7fa}.feature-icon[data-v-ab581bbc]{width:48px;height:48px;display:flex;align-items:center;justify-content:center;border-radius:50%;margin-bottom:10px;font-size:20px;color:#6a8a27;background-color:rgba(106,138,39,.1)}.feature-name[data-v-ab581bbc]{font-size:14px;color:#4e5969} \ No newline at end of file diff --git a/dist/css/4.0070063a.css b/dist/css/4.0070063a.css new file mode 100644 index 0000000..8ed6ac0 --- /dev/null +++ b/dist/css/4.0070063a.css @@ -0,0 +1 @@ +.product-grid-page[data-v-16ce8d0c]{padding:20px;background-color:#f5f7fa;max-width:1400px;margin:0 auto}.product-grid-page .filter-bar[data-v-16ce8d0c]{display:flex;gap:15px;margin-bottom:20px;flex-wrap:wrap;align-items:center;padding:15px;background-color:#fff;border-radius:8px;box-shadow:0 2px 4px rgba(0,0,0,.05)}.product-grid-page .filter-bar .search-input[data-v-16ce8d0c]{flex:1;min-width:200px}.product-grid-page .filter-bar .filter-select[data-v-16ce8d0c]{min-width:140px}.product-grid-page .result-stats[data-v-16ce8d0c]{margin:0 0 15px 5px;color:#666;font-size:14px;padding:5px 0}.product-grid-page .result-stats .category[data-v-16ce8d0c],.product-grid-page .result-stats .keyword[data-v-16ce8d0c]{color:#ff4d4f;font-weight:500;margin:0 5px}.product-grid-page .product-grid[data-v-16ce8d0c]{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px;margin-bottom:30px}.product-grid-page .product-card[data-v-16ce8d0c]{background:#fff;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.05);overflow:hidden;transition:transform .3s,box-shadow .3s;cursor:pointer;position:relative}.product-grid-page .product-card[data-v-16ce8d0c]:hover{transform:translateY(-5px);box-shadow:0 8px 16px rgba(0,0,0,.1)}.product-grid-page .product-card .product-img[data-v-16ce8d0c]{width:100%;height:200px;background-color:#f5f5f5}.product-grid-page .product-card .image-placeholder[data-v-16ce8d0c]{width:100%;height:200px;display:flex;align-items:center;justify-content:center;background-color:#f5f5f5}.product-grid-page .product-card .tag[data-v-16ce8d0c]{position:absolute;top:10px;left:10px;padding:3px 8px;font-size:12px;color:#fff;border-radius:4px;z-index:1}.product-grid-page .product-card .product-info[data-v-16ce8d0c]{padding:15px}.product-grid-page .product-card .product-info .product-name[data-v-16ce8d0c]{font-size:14px;color:#333;margin-bottom:10px;height:40px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-grid-page .product-card .product-info .price-row[data-v-16ce8d0c]{display:flex;align-items:center;margin-bottom:8px}.product-grid-page .product-card .product-info .price-row .current-price[data-v-16ce8d0c]{color:#ff4d4f;font-weight:700;font-size:16px}.product-grid-page .product-card .product-info .price-row .original-price[data-v-16ce8d0c]{color:#999;font-size:12px;text-decoration:line-through;margin-left:8px}.product-grid-page .product-card .product-info .sales-volume[data-v-16ce8d0c]{font-size:12px;color:#666;margin-bottom:10px;display:flex;align-items:center}.product-grid-page .product-card .product-info .sales-volume i[data-v-16ce8d0c]{font-size:12px;margin-right:4px}.product-grid-page .product-card .product-info .cart-btn[data-v-16ce8d0c]{width:100%}.product-grid-page .empty-state[data-v-16ce8d0c]{grid-column:1/-1;padding:60px 0;text-align:center}.product-grid-page .pagination-container[data-v-16ce8d0c]{display:flex;justify-content:center;margin-top:20px;padding:10px}@media(max-width:768px){.product-grid-page[data-v-16ce8d0c]{padding:10px}.product-grid-page .filter-bar[data-v-16ce8d0c]{padding:10px;gap:10px}.product-grid-page .product-grid[data-v-16ce8d0c]{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}.product-grid-page .product-card .image-placeholder[data-v-16ce8d0c],.product-grid-page .product-card .product-img[data-v-16ce8d0c]{height:140px}} \ No newline at end of file diff --git a/dist/css/40.614e9a44.css b/dist/css/40.614e9a44.css new file mode 100644 index 0000000..5b7ff88 --- /dev/null +++ b/dist/css/40.614e9a44.css @@ -0,0 +1 @@ +.home-layout-container[data-v-340df0cc]{display:flex;width:100%;height:auto}.left-nav[data-v-340df0cc]{width:200px;background-color:#f8f9fa;padding:20px 0;box-sizing:border-box}.nav-list[data-v-340df0cc]{list-style:none;margin:0;padding:0}.nav-item[data-v-340df0cc]{padding:12px 20px;cursor:pointer;color:#333;transition:all .3s ease;display:flex}.nav-item img[data-v-340df0cc]{width:20px;margin-right:5px}.nav-item[data-v-340df0cc]:hover{background-color:#e9ecef;padding-left:25px}.main-content[data-v-340df0cc]{flex:1;height:auto;overflow:hidden}.carousel-img[data-v-340df0cc]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.main-content[data-v-340df0cc] .el-carousel__container{height:100%!important}.right-info[data-v-340df0cc]{width:280px;background-color:#fff;padding:20px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;border-left:1px solid #eee}.avatar-container[data-v-340df0cc]{display:flex;flex-direction:column;align-items:center;margin-bottom:20px}.user-avatar[data-v-340df0cc]{width:60px;height:60px;border-radius:50%;margin-bottom:10px;border:2px solid #f0f0f0}.welcome-text[data-v-340df0cc]{font-size:14px;color:#333}.btn-group[data-v-340df0cc]{display:flex;gap:10px;margin-bottom:30px;width:100%}.func-icons[data-v-340df0cc]{display:flex;justify-content:space-around;width:100%;margin-bottom:30px;padding:10px 0;border-top:1px dashed #eee;border-bottom:1px dashed #eee}.icon-item[data-v-340df0cc]{display:flex;flex-direction:column;align-items:center;cursor:pointer;color:#666;transition:color .3s ease;width:50px}.icon-item[data-v-340df0cc]:hover{color:#1890ff}.icon[data-v-340df0cc]{font-size:24px;margin-bottom:5px}.icon-item span[data-v-340df0cc]{font-size:12px}.announcement[data-v-340df0cc]{display:flex;align-items:center;font-size:12px;color:#666;width:100%;padding-top:10px}.announcement span[data-v-340df0cc]{margin-left:10px}.product-list .product-grid[data-v-6ecfbe40]{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:20px}.product-list .product-card[data-v-6ecfbe40]{border:1px solid #eaeaea;border-radius:8px;overflow:hidden;transition:all .3s ease;padding:10px}.product-list .product-card[data-v-6ecfbe40]:hover{transform:translateY(-5px);box-shadow:0 5px 15px rgba(0,0,0,.1)}.product-list .product-card .product-img[data-v-6ecfbe40]{height:250px;overflow:hidden}.product-list .product-card .product-img .product-pic[data-v-6ecfbe40]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;transition:transform .5s ease}.product-list .product-card .product-img .product-pic[data-v-6ecfbe40]:hover{transform:scale(1.05)}.product-list .product-card .product-info[data-v-6ecfbe40]{padding:10px}.product-list .product-card .product-info .product-name[data-v-6ecfbe40]{font-size:14px;line-height:20px;min-height:40px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-bottom:10px}.product-list .product-card .product-info .product-name a[data-v-6ecfbe40]{color:#333}.product-list .product-card .product-info .product-name a[data-v-6ecfbe40]:hover{color:#409eff}.product-list .product-card .product-info .product-price[data-v-6ecfbe40]{margin-bottom:15px}.product-list .product-card .product-info .product-price .current-price[data-v-6ecfbe40]{color:#f40;font-size:16px;font-weight:700}.product-list .product-card .product-info .product-price .original-price[data-v-6ecfbe40]{color:#999;font-size:12px;text-decoration:line-through;margin-left:8px}.product-list .product-card .product-info .product-actions[data-v-6ecfbe40]{margin-bottom:10px}.product-list .product-card .product-info .product-sales[data-v-6ecfbe40]{font-size:12px;color:#999;margin-bottom:15px}.product-list .no-products[data-v-6ecfbe40]{padding:50px 0;text-align:center}.product-box[data-v-17e3f187]{margin:30px 0}.product-box h2[data-v-17e3f187]{margin-bottom:20px} \ No newline at end of file diff --git a/dist/css/406.efb923d9.css b/dist/css/406.efb923d9.css new file mode 100644 index 0000000..73f9367 --- /dev/null +++ b/dist/css/406.efb923d9.css @@ -0,0 +1 @@ +.bg[data-v-f9006c4c]{display:flex;flex-direction:column}.bg[data-v-f9006c4c] .el-button--text,.bg[data-v-f9006c4c] .el-tabs__item.is-active{color:#6a8a27}.bg[data-v-f9006c4c] .el-tabs__active-bar{background-color:#6a8a27}.bg[data-v-f9006c4c] .el-tabs__item:hover{color:#6a8a27}.filter-bar[data-v-f9006c4c]{margin-bottom:20px}.filter-bar[data-v-f9006c4c] .el-input-number__decrease,.filter-bar[data-v-f9006c4c] .el-input-number__increase{display:none}.filter-bar[data-v-f9006c4c] .el-input-number .el-input__inner{padding-left:10px;padding-right:10px}.order-card[data-v-f9006c4c]{border:1px solid #eee;border-radius:4px;margin-bottom:20px;overflow:hidden}.order-header[data-v-f9006c4c]{background-color:#f8f9fa;padding:12px 20px;display:flex;align-items:center;border-bottom:1px solid #eee;color:#666;font-size:14px}.order-products[data-v-f9006c4c]{padding:10px 20px}.product-item[data-v-f9006c4c]{display:flex;align-items:center;padding:15px 0;border-bottom:1px dashed #eee;font-size:14px}.product-item[data-v-f9006c4c]:last-child{border-bottom:none}.product-image[data-v-f9006c4c]{width:80px;height:80px;-o-object-fit:cover;object-fit:cover;margin-right:15px;border-radius:4px}.product-details[data-v-f9006c4c]{flex:1}.product-name[data-v-f9006c4c]{color:#333;margin-bottom:5px}.product-spec[data-v-f9006c4c]{color:#999;font-size:12px}.product-price[data-v-f9006c4c]{width:120px;text-align:center;color:#333}.product-quantity[data-v-f9006c4c]{width:100px;text-align:center;color:#666}.product-total[data-v-f9006c4c]{width:120px;text-align:center;color:#333;font-weight:500}.product-actions[data-v-f9006c4c],.product-status[data-v-f9006c4c]{width:150px;text-align:center}.order-footer[data-v-f9006c4c]{background-color:#f8f9fa;padding:15px 20px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid #eee}.order-summary[data-v-f9006c4c]{text-align:right}.order-amount[data-v-f9006c4c]{color:#333;margin-bottom:5px}.order-amount strong[data-v-f9006c4c]{color:#ff4d4f;font-size:16px}.order-tips[data-v-f9006c4c]{font-size:12px;color:#999}.order-actions[data-v-f9006c4c]{display:flex;gap:10px}.notice-bar[data-v-f9006c4c]{background-color:#fffbe6;border:1px solid #ffe58f;padding:12px 16px;border-radius:4px;margin-bottom:20px;display:flex;justify-content:space-between;align-items:center;color:#fa8c16;font-size:14px;line-height:1.5} \ No newline at end of file diff --git a/dist/css/510.c2f47d4f.css b/dist/css/510.c2f47d4f.css deleted file mode 100644 index 9f5a0d3..0000000 --- a/dist/css/510.c2f47d4f.css +++ /dev/null @@ -1 +0,0 @@ -.register-page[data-v-54891a54]{min-height:100vh;background-color:#fff;padding:40px 20px}.register-page .header[data-v-54891a54]{display:flex;align-items:center;justify-content:space-between;margin-bottom:40px}.register-page .header .logo-area[data-v-54891a54]{display:flex;align-items:center}.register-page .header .logo-area .logo-img[data-v-54891a54]{height:40px;margin-right:10px}.register-page .header .logo-area .domain[data-v-54891a54]{font-size:14px;color:#999}.register-page .header .hotline[data-v-54891a54]{font-size:14px;color:#666}.register-page .form-container[data-v-54891a54]{max-width:600px;margin:0 auto}.register-page .form-container .form-title[data-v-54891a54]{font-size:20px;font-weight:700;margin-bottom:30px;color:#333}.register-page .form-container .el-form-item[data-v-54891a54]{margin-bottom:20px}.register-page .form-container .code-btn[data-v-54891a54]{margin-left:10px;padding:0 20px;height:40px}.register-page .form-container .form-tip[data-v-54891a54]{font-size:12px;color:#999;margin-top:4px;line-height:1.4}.register-page .form-container .agreement-checkbox[data-v-54891a54]{font-size:12px;color:#666}.register-page .form-container .agreement-checkbox .protocol-link[data-v-54891a54]{color:#ff4d4f;text-decoration:underline;margin:0 4px}.register-page .form-container .register-btn[data-v-54891a54]{width:100%;background-color:#c00;border:none}.register-page .form-container .register-btn[data-v-54891a54]:hover{background-color:#a00}.register-page .form-container .bottom-tip[data-v-54891a54]{text-align:center;margin-top:20px;font-size:12px;color:#666}.register-page .form-container .bottom-tip .supplier-link[data-v-54891a54]{color:#ff4d4f;text-decoration:underline} \ No newline at end of file diff --git a/dist/css/581.3b673a7d.css b/dist/css/581.3b673a7d.css deleted file mode 100644 index 4cd5d04..0000000 --- a/dist/css/581.3b673a7d.css +++ /dev/null @@ -1 +0,0 @@ -.product-review-section[data-v-3412a0b2]{padding:20px;background:#fff;border:1px solid #eee;border-radius:4px}.product-review-section .review-header[data-v-3412a0b2]{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;flex-wrap:wrap}.product-review-section .review-header .rating-box[data-v-3412a0b2]{display:flex;align-items:center}.product-review-section .review-header .rating-box .rating-score[data-v-3412a0b2]{font-size:24px;color:#ff4d4f;font-weight:700;margin-right:10px}.product-review-section .review-header .rating-box .rating-text[data-v-3412a0b2]{font-size:14px;color:#999}.product-review-section .review-header .filter-tabs[data-v-3412a0b2]{display:flex;gap:10px;flex-wrap:wrap}.product-review-section .review-header .filter-tabs .tab-item[data-v-3412a0b2]{padding:6px 12px;border:1px solid #ddd;border-radius:4px;color:#666;cursor:pointer;transition:all .3s ease}.product-review-section .review-header .filter-tabs .tab-item.active[data-v-3412a0b2],.product-review-section .review-header .filter-tabs .tab-item[data-v-3412a0b2]:hover{border-color:#ff4d4f;color:#ff4d4f}.product-review-section .review-list[data-v-3412a0b2]{display:flex;flex-direction:column;gap:20px;margin-bottom:30px}.product-review-section .review-list .review-item[data-v-3412a0b2]{padding:15px;border:1px solid #f5f5f5;border-radius:4px;background:#fdfdfd}.product-review-section .review-list .review-item .user-info[data-v-3412a0b2]{display:flex;align-items:center;margin-bottom:10px}.product-review-section .review-list .review-item .user-info .avatar[data-v-3412a0b2]{width:40px;height:40px;border-radius:50%;margin-right:10px}.product-review-section .review-list .review-item .user-info .user-name[data-v-3412a0b2]{font-size:14px;color:#333;font-weight:500}.product-review-section .review-list .review-item .user-info .rating-stars[data-v-3412a0b2]{margin-left:auto;color:#ff4d4f;font-size:14px}.product-review-section .review-list .review-item .review-content[data-v-3412a0b2]{font-size:14px;color:#666;line-height:1.6;margin-bottom:10px}.product-review-section .review-list .review-item .review-content.empty[data-v-3412a0b2]{color:#999;font-style:italic}.product-review-section .review-list .review-item .review-images[data-v-3412a0b2]{display:flex;gap:8px;margin-bottom:10px}.product-review-section .review-list .review-item .review-images img[data-v-3412a0b2]{width:80px;height:80px;border-radius:4px;-o-object-fit:cover;object-fit:cover;border:1px solid #eee;cursor:pointer;transition:transform .2s}.product-review-section .review-list .review-item .review-images img[data-v-3412a0b2]:hover{transform:scale(1.05)}.product-review-section .review-list .review-item .review-time[data-v-3412a0b2]{font-size:12px;color:#999;margin-top:5px}.product-review-section .review-list .empty-state[data-v-3412a0b2]{padding:50px 0;text-align:center}.product-review-section .pagination-container[data-v-3412a0b2]{display:flex;justify-content:center;margin-top:20px;padding-top:10px;border-top:1px solid #f5f5f5}@media(max-width:768px){.product-review-section .review-header[data-v-3412a0b2]{flex-direction:column;align-items:flex-start;gap:15px}.product-review-section .pagination-container[data-v-3412a0b2]{padding:0 10px}}.image-preview-dialog .el-dialog__body[data-v-3412a0b2]{padding:0;height:80vh;display:flex;align-items:center;justify-content:center}.preview-container[data-v-3412a0b2]{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.preview-img-wrapper[data-v-3412a0b2]{width:-moz-fit-content;width:fit-content;display:flex;align-items:center;justify-content:center}.preview-img[data-v-3412a0b2]{min-height:50vh;max-height:70vh;-o-object-fit:contain;object-fit:contain}.preview-btn[data-v-3412a0b2]{position:absolute;width:40px;height:40px;background-color:rgba(0,0,0,.5);color:#fff;border:none;z-index:10;opacity:.7;transition:opacity .3s}.preview-btn[data-v-3412a0b2]:hover{opacity:1;color:#fff;background-color:rgba(0,0,0,.7)}.prev-btn[data-v-3412a0b2]{left:20px}.next-btn[data-v-3412a0b2]{right:20px}.review-images img[data-v-3412a0b2]{cursor:zoom-in}.product-detail-container[data-v-61588775]{display:flex;padding:20px;background-color:#fff;border:1px solid #eaeaea;border-radius:4px}.product-detail-container .left-section[data-v-61588775]{width:40%;margin-right:20px;display:flex;flex-direction:column}.product-detail-container .left-section .product-carousel[data-v-61588775]{border:1px solid #eaeaea;border-radius:4px;margin-bottom:15px}.product-detail-container .left-section .product-carousel .carousel-img[data-v-61588775]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.product-detail-container .left-section .hint-text[data-v-61588775]{color:#ccc;font-size:12px;margin-bottom:10px}.product-detail-container .left-section .image-indicators[data-v-61588775]{display:flex;gap:10px;justify-content:center;padding:5px 0}.product-detail-container .left-section .image-indicators .indicator-item[data-v-61588775]{width:80px;height:80px;cursor:pointer;border:2px solid transparent;border-radius:4px;transition:all .3s ease;overflow:hidden}.product-detail-container .left-section .image-indicators .indicator-item.active[data-v-61588775]{border-color:#409eff;box-shadow:0 0 0 2px rgba(64,158,255,.2)}.product-detail-container .left-section .image-indicators .indicator-item .indicator-img[data-v-61588775]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;display:block}.product-detail-container .right-section[data-v-61588775]{width:60%}.product-detail-container .right-section .product-title[data-v-61588775]{font-size:20px;font-weight:700;margin-bottom:10px}.product-detail-container .right-section .product-title .product-count[data-v-61588775]{font-size:14px;color:#666}.product-detail-container .right-section .product-tags[data-v-61588775]{margin-bottom:15px}.product-detail-container .right-section .product-tags .subtitle[data-v-61588775]{margin-left:5px;color:#666}.product-detail-container .right-section .price-info[data-v-61588775]{display:flex;align-items:center;margin-bottom:15px}.product-detail-container .right-section .price-info .price-label[data-v-61588775]{font-weight:700;margin-right:10px}.product-detail-container .right-section .price-info .price-amount[data-v-61588775]{font-size:24px;color:#ff4d4f;margin-right:20px}.product-detail-container .right-section .price-info .sales-volume[data-v-61588775]{color:#999}.product-detail-container .right-section .product-attr[data-v-61588775]{margin-bottom:20px}.product-detail-container .right-section .product-attr .attr-item[data-v-61588775]{display:flex;flex-direction:column;margin-bottom:15px}.product-detail-container .right-section .product-attr .attr-item .attr-label[data-v-61588775]{font-weight:700;margin-bottom:8px;color:#333}.product-detail-container .right-section .product-attr .attr-item .attr-value[data-v-61588775]{color:#666}.product-detail-container .right-section .product-attr .attr-item.spec-group[data-v-61588775]{margin-top:20px;margin-bottom:20px}.product-detail-container .right-section .product-attr .attr-item.spec-group .custom-radio-group[data-v-61588775]{display:flex;flex-wrap:wrap;gap:10px;margin-top:5px}.product-detail-container .right-section .product-attr .attr-item.spec-group .custom-radio-group .custom-radio[data-v-61588775]{display:inline-block;padding:8px 15px;border:1px solid #ddd;border-radius:4px;cursor:pointer;transition:all .3s ease;background-color:#fff;position:relative}.product-detail-container .right-section .product-attr .attr-item.spec-group .custom-radio-group .custom-radio[data-v-61588775]:hover{border-color:#409eff}.product-detail-container .right-section .product-attr .attr-item.spec-group .custom-radio-group .custom-radio.is-checked[data-v-61588775]{border-color:#409eff;background-color:#f0f7ff;color:#409eff;font-weight:500}.product-detail-container .right-section .product-attr .attr-item.spec-group .custom-radio-group .custom-radio.is-checked[data-v-61588775]:after{position:absolute;right:5px;bottom:2px;font-size:12px;color:#409eff}.product-detail-container .right-section .product-attr .attr-item.spec-group .custom-radio-group .custom-radio .radio-text[data-v-61588775]{-webkit-user-select:none;-moz-user-select:none;user-select:none}.product-detail-container .right-section .quantity-control[data-v-61588775]{display:flex;align-items:center;gap:10px;margin-top:30px}.product-detail-container .right-section .quantity-control .quantity-value[data-v-61588775]{width:40px;text-align:center}.product-detail-container .right-section .quantity-control .bargain-btn[data-v-61588775],.product-detail-container .right-section .quantity-control .buy-btn[data-v-61588775],.product-detail-container .right-section .quantity-control .cart-btn[data-v-61588775]{margin-right:10px}.product-bottom[data-v-61588775]{margin-top:50px;display:flex}.product-bottom .hot-recommend-sidebar[data-v-61588775]{min-width:200px;padding:10px;background-color:#f7f9fa;margin-right:20px}.product-bottom .hot-recommend-sidebar .hot-title[data-v-61588775]{border-left:4px solid #ff4d4f;padding-left:10px;margin-bottom:20px}.product-bottom .hot-recommend-sidebar .product-item[data-v-61588775]{margin-bottom:20px;text-align:center}.product-bottom .hot-recommend-sidebar .product-item img[data-v-61588775]{width:100%;height:auto;margin-bottom:8px}.product-bottom .hot-recommend-sidebar .product-item .product-name[data-v-61588775]{font-size:14px;margin-bottom:4px}.product-bottom .hot-recommend-sidebar .product-item .product-price[data-v-61588775]{font-size:12px;color:#f40}.product-bottom .product-right[data-v-61588775]{width:1000%}.product-bottom .product-tabs[data-v-61588775]{display:flex;margin-bottom:10px;background-color:#f7f9fa;padding:10px}.product-bottom .product-tabs .tab-item[data-v-61588775]{padding:10px 20px;cursor:pointer;margin-right:10px;color:#333}.product-bottom .product-tabs .tab-item.active[data-v-61588775]{color:#ff4d4f;border-bottom:2px solid #ff4d4f}.product-bottom .product-detail-main[data-v-61588775]{flex:1;padding:10px;background-color:#fff}.product-bottom .product-detail-main .product-banner[data-v-61588775]{width:100%;height:auto;margin-bottom:20px}.product-bottom .product-detail-main .product-desc[data-v-61588775]{font-size:14px;line-height:1.6;color:#666} \ No newline at end of file diff --git a/dist/css/592.09b799c2.css b/dist/css/592.09b799c2.css new file mode 100644 index 0000000..3935e34 --- /dev/null +++ b/dist/css/592.09b799c2.css @@ -0,0 +1 @@ +.bg[data-v-43d0d592]{display:flex;flex-direction:column}.bg[data-v-43d0d592] .el-button--text,.bg[data-v-43d0d592] .el-tabs__item.is-active{color:#6a8a27}.bg[data-v-43d0d592] .el-tabs__active-bar{background-color:#6a8a27}.bg[data-v-43d0d592] .el-tabs__item:hover{color:#6a8a27}.filter-bar[data-v-43d0d592]{margin-bottom:20px}.order-card[data-v-43d0d592]{border:1px solid #eee;border-radius:4px;margin-bottom:20px;overflow:hidden}.order-header[data-v-43d0d592]{background-color:#f8f9fa;padding:12px 20px;display:flex;align-items:center;border-bottom:1px solid #eee;color:#666;font-size:14px}.order-products[data-v-43d0d592]{padding:10px 20px}.product-item[data-v-43d0d592]{display:flex;align-items:center;padding:15px 0;border-bottom:1px dashed #eee;font-size:14px}.product-item[data-v-43d0d592]:last-child{border-bottom:none}.product-image[data-v-43d0d592]{width:80px;height:80px;-o-object-fit:cover;object-fit:cover;margin-right:15px;border-radius:4px}.product-details[data-v-43d0d592]{flex:1}.product-name[data-v-43d0d592]{color:#333;margin-bottom:5px}.product-spec[data-v-43d0d592]{color:#999;font-size:12px}.product-price[data-v-43d0d592]{width:120px;text-align:center;color:#333}.product-quantity[data-v-43d0d592]{width:100px;text-align:center;color:#666}.product-total[data-v-43d0d592]{width:120px;text-align:center;color:#333;font-weight:500}.product-actions[data-v-43d0d592],.product-status[data-v-43d0d592]{width:150px;text-align:center}.order-footer[data-v-43d0d592]{background-color:#f8f9fa;padding:15px 20px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid #eee}.order-summary[data-v-43d0d592]{text-align:right}.order-amount[data-v-43d0d592]{color:#333;margin-bottom:5px}.order-amount strong[data-v-43d0d592]{color:#ff4d4f;font-size:16px}.order-tips[data-v-43d0d592]{font-size:12px;color:#999}.order-actions[data-v-43d0d592]{display:flex;gap:10px} \ No newline at end of file diff --git a/dist/css/639.c184e302.css b/dist/css/639.c184e302.css new file mode 100644 index 0000000..b22c7da --- /dev/null +++ b/dist/css/639.c184e302.css @@ -0,0 +1 @@ +.product-review-section[data-v-3412a0b2]{padding:20px;background:#fff;border:1px solid #eee;border-radius:4px}.product-review-section .review-header[data-v-3412a0b2]{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;flex-wrap:wrap}.product-review-section .review-header .rating-box[data-v-3412a0b2]{display:flex;align-items:center}.product-review-section .review-header .rating-box .rating-score[data-v-3412a0b2]{font-size:24px;color:#ff4d4f;font-weight:700;margin-right:10px}.product-review-section .review-header .rating-box .rating-text[data-v-3412a0b2]{font-size:14px;color:#999}.product-review-section .review-header .filter-tabs[data-v-3412a0b2]{display:flex;gap:10px;flex-wrap:wrap}.product-review-section .review-header .filter-tabs .tab-item[data-v-3412a0b2]{padding:6px 12px;border:1px solid #ddd;border-radius:4px;color:#666;cursor:pointer;transition:all .3s ease}.product-review-section .review-header .filter-tabs .tab-item.active[data-v-3412a0b2],.product-review-section .review-header .filter-tabs .tab-item[data-v-3412a0b2]:hover{border-color:#ff4d4f;color:#ff4d4f}.product-review-section .review-list[data-v-3412a0b2]{display:flex;flex-direction:column;gap:20px;margin-bottom:30px}.product-review-section .review-list .review-item[data-v-3412a0b2]{padding:15px;border:1px solid #f5f5f5;border-radius:4px;background:#fdfdfd}.product-review-section .review-list .review-item .user-info[data-v-3412a0b2]{display:flex;align-items:center;margin-bottom:10px}.product-review-section .review-list .review-item .user-info .avatar[data-v-3412a0b2]{width:40px;height:40px;border-radius:50%;margin-right:10px}.product-review-section .review-list .review-item .user-info .user-name[data-v-3412a0b2]{font-size:14px;color:#333;font-weight:500}.product-review-section .review-list .review-item .user-info .rating-stars[data-v-3412a0b2]{margin-left:auto;color:#ff4d4f;font-size:14px}.product-review-section .review-list .review-item .review-content[data-v-3412a0b2]{font-size:14px;color:#666;line-height:1.6;margin-bottom:10px}.product-review-section .review-list .review-item .review-content.empty[data-v-3412a0b2]{color:#999;font-style:italic}.product-review-section .review-list .review-item .review-images[data-v-3412a0b2]{display:flex;gap:8px;margin-bottom:10px}.product-review-section .review-list .review-item .review-images img[data-v-3412a0b2]{width:80px;height:80px;border-radius:4px;-o-object-fit:cover;object-fit:cover;border:1px solid #eee;cursor:pointer;transition:transform .2s}.product-review-section .review-list .review-item .review-images img[data-v-3412a0b2]:hover{transform:scale(1.05)}.product-review-section .review-list .review-item .review-time[data-v-3412a0b2]{font-size:12px;color:#999;margin-top:5px}.product-review-section .review-list .empty-state[data-v-3412a0b2]{padding:50px 0;text-align:center}.product-review-section .pagination-container[data-v-3412a0b2]{display:flex;justify-content:center;margin-top:20px;padding-top:10px;border-top:1px solid #f5f5f5}@media(max-width:768px){.product-review-section .review-header[data-v-3412a0b2]{flex-direction:column;align-items:flex-start;gap:15px}.product-review-section .pagination-container[data-v-3412a0b2]{padding:0 10px}}.image-preview-dialog .el-dialog__body[data-v-3412a0b2]{padding:0;height:80vh;display:flex;align-items:center;justify-content:center}.preview-container[data-v-3412a0b2]{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.preview-img-wrapper[data-v-3412a0b2]{width:-moz-fit-content;width:fit-content;display:flex;align-items:center;justify-content:center}.preview-img[data-v-3412a0b2]{min-height:50vh;max-height:70vh;-o-object-fit:contain;object-fit:contain}.preview-btn[data-v-3412a0b2]{position:absolute;width:40px;height:40px;background-color:rgba(0,0,0,.5);color:#fff;border:none;z-index:10;opacity:.7;transition:opacity .3s}.preview-btn[data-v-3412a0b2]:hover{opacity:1;color:#fff;background-color:rgba(0,0,0,.7)}.prev-btn[data-v-3412a0b2]{left:20px}.next-btn[data-v-3412a0b2]{right:20px}.review-images img[data-v-3412a0b2]{cursor:zoom-in}.product-detail-container[data-v-6a5a5b52]{display:flex;padding:20px;background-color:#fff;border:1px solid #eaeaea;border-radius:4px}.product-detail-container .left-section[data-v-6a5a5b52]{width:40%;margin-right:20px;display:flex;flex-direction:column}.product-detail-container .left-section .product-carousel[data-v-6a5a5b52]{border:1px solid #eaeaea;border-radius:4px;margin-bottom:15px}.product-detail-container .left-section .product-carousel .carousel-img[data-v-6a5a5b52]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.product-detail-container .left-section .hint-text[data-v-6a5a5b52]{color:#ccc;font-size:12px;margin-bottom:10px}.product-detail-container .left-section .image-indicators[data-v-6a5a5b52]{display:flex;gap:10px;justify-content:center;padding:5px 0}.product-detail-container .left-section .image-indicators .indicator-item[data-v-6a5a5b52]{width:80px;height:80px;cursor:pointer;border:2px solid transparent;border-radius:4px;transition:all .3s ease;overflow:hidden}.product-detail-container .left-section .image-indicators .indicator-item.active[data-v-6a5a5b52]{border-color:#409eff;box-shadow:0 0 0 2px rgba(64,158,255,.2)}.product-detail-container .left-section .image-indicators .indicator-item .indicator-img[data-v-6a5a5b52]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;display:block}.product-detail-container .right-section[data-v-6a5a5b52]{width:60%}.product-detail-container .right-section .product-title[data-v-6a5a5b52]{font-size:20px;font-weight:700;margin-bottom:10px}.product-detail-container .right-section .product-title .product-count[data-v-6a5a5b52]{font-size:14px;color:#666}.product-detail-container .right-section .product-tags[data-v-6a5a5b52]{margin-bottom:15px}.product-detail-container .right-section .product-tags .subtitle[data-v-6a5a5b52]{color:#666}.product-detail-container .right-section .price-info[data-v-6a5a5b52]{display:flex;align-items:center;margin-bottom:15px}.product-detail-container .right-section .price-info .price-label[data-v-6a5a5b52]{font-weight:700;margin-right:10px}.product-detail-container .right-section .price-info .price-amount[data-v-6a5a5b52]{font-size:24px;color:#ff4d4f;margin-right:20px}.product-detail-container .right-section .price-info .sales-volume[data-v-6a5a5b52]{color:#999}.product-detail-container .right-section .product-attr[data-v-6a5a5b52]{margin-bottom:20px}.product-detail-container .right-section .product-attr .attr-item[data-v-6a5a5b52]{display:flex;flex-direction:column;margin-bottom:15px}.product-detail-container .right-section .product-attr .attr-item .attr-label[data-v-6a5a5b52]{font-weight:700;margin-bottom:8px;color:#333}.product-detail-container .right-section .product-attr .attr-item .attr-value[data-v-6a5a5b52]{color:#666}.product-detail-container .right-section .product-attr .attr-item.spec-group[data-v-6a5a5b52]{margin-top:20px;margin-bottom:20px}.product-detail-container .right-section .product-attr .attr-item.spec-group .custom-radio-group[data-v-6a5a5b52]{display:flex;flex-wrap:wrap;gap:10px;margin-top:5px}.product-detail-container .right-section .product-attr .attr-item.spec-group .custom-radio-group .custom-radio[data-v-6a5a5b52]{display:inline-block;padding:8px 15px;border:1px solid #ddd;border-radius:4px;cursor:pointer;transition:all .3s ease;background-color:#fff;position:relative}.product-detail-container .right-section .product-attr .attr-item.spec-group .custom-radio-group .custom-radio[data-v-6a5a5b52]:hover{border-color:#409eff}.product-detail-container .right-section .product-attr .attr-item.spec-group .custom-radio-group .custom-radio.is-checked[data-v-6a5a5b52]{border-color:#409eff;background-color:#f0f7ff;color:#409eff;font-weight:500}.product-detail-container .right-section .product-attr .attr-item.spec-group .custom-radio-group .custom-radio.is-checked[data-v-6a5a5b52]:after{position:absolute;right:5px;bottom:2px;font-size:12px;color:#409eff}.product-detail-container .right-section .product-attr .attr-item.spec-group .custom-radio-group .custom-radio .radio-text[data-v-6a5a5b52]{-webkit-user-select:none;-moz-user-select:none;user-select:none}.product-detail-container .right-section .quantity-control[data-v-6a5a5b52]{display:flex;align-items:center;gap:10px;margin-top:30px}.product-detail-container .right-section .quantity-control .quantity-value[data-v-6a5a5b52]{width:40px;text-align:center}.product-detail-container .right-section .quantity-control .bargain-btn[data-v-6a5a5b52],.product-detail-container .right-section .quantity-control .buy-btn[data-v-6a5a5b52],.product-detail-container .right-section .quantity-control .cart-btn[data-v-6a5a5b52]{margin-right:10px}.product-bottom[data-v-6a5a5b52]{margin-top:50px;display:flex}.product-bottom .hot-recommend-sidebar[data-v-6a5a5b52]{min-width:200px;padding:10px;background-color:#f7f9fa;margin-right:20px}.product-bottom .hot-recommend-sidebar .hot-title[data-v-6a5a5b52]{border-left:4px solid #ff4d4f;padding-left:10px;margin-bottom:20px}.product-bottom .hot-recommend-sidebar .product-item[data-v-6a5a5b52]{margin-bottom:20px;text-align:center}.product-bottom .hot-recommend-sidebar .product-item img[data-v-6a5a5b52]{width:100%;height:auto;margin-bottom:8px}.product-bottom .hot-recommend-sidebar .product-item .product-name[data-v-6a5a5b52]{font-size:14px;margin-bottom:4px}.product-bottom .hot-recommend-sidebar .product-item .product-price[data-v-6a5a5b52]{font-size:12px;color:#f40}.product-bottom .product-right[data-v-6a5a5b52]{width:1000%}.product-bottom .product-tabs[data-v-6a5a5b52]{display:flex;margin-bottom:10px;background-color:#f7f9fa;padding:10px}.product-bottom .product-tabs .tab-item[data-v-6a5a5b52]{padding:10px 20px;cursor:pointer;margin-right:10px;color:#333}.product-bottom .product-tabs .tab-item.active[data-v-6a5a5b52]{color:#ff4d4f;border-bottom:2px solid #ff4d4f}.product-bottom .product-detail-main[data-v-6a5a5b52]{flex:1;padding:10px;background-color:#fff}.product-bottom .product-detail-main .product-banner[data-v-6a5a5b52]{width:100%;height:auto;margin-bottom:20px}.product-bottom .product-detail-main .product-desc[data-v-6a5a5b52]{font-size:14px;line-height:1.6;color:#666} \ No newline at end of file diff --git a/dist/css/64.c294a0d0.css b/dist/css/64.c294a0d0.css new file mode 100644 index 0000000..e428242 --- /dev/null +++ b/dist/css/64.c294a0d0.css @@ -0,0 +1 @@ +.bg[data-v-281b462a]{display:flex;flex-direction:column}.bg[data-v-281b462a] .el-button--text{color:#6a8a27}.el-card[data-v-281b462a]{margin-bottom:20px;border-radius:6px;box-shadow:0 2px 12px 0 rgba(0,0,0,.05);border:none}.el-card__header[data-v-281b462a]{padding:16px 20px;border-bottom:1px solid #f0f0f0;background-color:#fff;font-size:16px;font-weight:500}.el-card__body[data-v-281b462a]{padding:20px}.notice-bar[data-v-281b462a]{background-color:#fffbe6;border:1px solid #ffe58f;padding:12px 16px;border-radius:4px;margin-bottom:20px;justify-content:space-between;color:#fa8c16;font-size:14px}.notice-bar[data-v-281b462a],.notice-bar__content[data-v-281b462a]{display:flex;align-items:center}.notice-bar__content i[data-v-281b462a]{margin-right:8px}.notice-bar__close[data-v-281b462a]{cursor:pointer;transition:color .2s}.notice-bar__close[data-v-281b462a]:hover{color:#fa8c16}.user-info[data-v-281b462a]{display:flex;align-items:flex-start;padding:10px 0}.user-avatar[data-v-281b462a]{width:100px;height:100px;border-radius:50%;margin-right:20px;border:4px solid #f5f7fa;-o-object-fit:cover;object-fit:cover}.user-details[data-v-281b462a]{flex:1}.user-name[data-v-281b462a]{font-size:20px;font-weight:500;margin-bottom:10px;color:#1f2329}.user-other-info[data-v-281b462a]{color:#4e5969;margin-bottom:6px;font-size:14px}.login-info[data-v-281b462a]{display:flex;padding-top:20px}.login-section[data-v-281b462a]{flex:1}.login-section-title[data-v-281b462a]{font-weight:500;margin-bottom:10px;color:#1f2329;font-size:15px}.login-detail[data-v-281b462a]{color:#4e5969;font-size:14px;margin-bottom:6px}.feature-grid[data-v-281b462a]{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-top:15px}.feature-item[data-v-281b462a]{display:flex;flex-direction:column;align-items:center;padding:15px 10px;border-radius:6px;transition:all .2s;cursor:pointer}.feature-item[data-v-281b462a]:hover{background-color:#f5f7fa}.feature-icon[data-v-281b462a]{width:48px;height:48px;display:flex;align-items:center;justify-content:center;border-radius:50%;margin-bottom:10px;font-size:20px;color:#6a8a27;background-color:rgba(106,138,39,.1)}.feature-name[data-v-281b462a]{font-size:14px;color:#4e5969} \ No newline at end of file diff --git a/dist/css/778.2e87b3dc.css b/dist/css/778.2e87b3dc.css deleted file mode 100644 index dd8daf8..0000000 --- a/dist/css/778.2e87b3dc.css +++ /dev/null @@ -1 +0,0 @@ -.common-card[data-v-0c1d405f]{width:100%;background-color:#fff;padding:20px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.cart-page .cart-header[data-v-0c1d405f]{margin-bottom:10px}.cart-page .product-img[data-v-0c1d405f]{width:60px;height:60px;-o-object-fit:cover;object-fit:cover}.cart-page .cart-footer[data-v-0c1d405f]{display:flex;justify-content:space-between;align-items:center;margin-top:10px;padding:15px;background-color:#f5f7fa;border-radius:4px}.cart-page .selected-info[data-v-0c1d405f]{color:#666;font-size:14px} \ No newline at end of file diff --git a/dist/css/828.449ccc53.css b/dist/css/828.96d8e95b.css similarity index 76% rename from dist/css/828.449ccc53.css rename to dist/css/828.96d8e95b.css index ad353a5..772cc9f 100644 --- a/dist/css/828.449ccc53.css +++ b/dist/css/828.96d8e95b.css @@ -1 +1 @@ -.product-list .product-grid[data-v-019f4a60]{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:20px}.product-list .product-card[data-v-019f4a60]{border:1px solid #eaeaea;border-radius:8px;overflow:hidden;transition:all .3s ease;padding:10px}.product-list .product-card[data-v-019f4a60]:hover{transform:translateY(-5px);box-shadow:0 5px 15px rgba(0,0,0,.1)}.product-list .product-card .product-img[data-v-019f4a60]{height:250px;overflow:hidden}.product-list .product-card .product-img .product-pic[data-v-019f4a60]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;transition:transform .5s ease}.product-list .product-card .product-img .product-pic[data-v-019f4a60]:hover{transform:scale(1.05)}.product-list .product-card .product-info[data-v-019f4a60]{padding:10px}.product-list .product-card .product-info .product-name[data-v-019f4a60]{font-size:14px;line-height:20px;min-height:40px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-bottom:10px}.product-list .product-card .product-info .product-name a[data-v-019f4a60]{color:#333}.product-list .product-card .product-info .product-name a[data-v-019f4a60]:hover{color:#409eff}.product-list .product-card .product-info .product-price[data-v-019f4a60]{margin-bottom:15px}.product-list .product-card .product-info .product-price .current-price[data-v-019f4a60]{color:#f40;font-size:16px;font-weight:700}.product-list .product-card .product-info .product-price .original-price[data-v-019f4a60]{color:#999;font-size:12px;text-decoration:line-through;margin-left:8px}.product-list .product-card .product-info .product-actions[data-v-019f4a60]{margin-bottom:10px}.product-list .product-card .product-info .product-sales[data-v-019f4a60]{font-size:12px;color:#999;margin-bottom:15px}.product-list .no-products[data-v-019f4a60]{padding:50px 0;text-align:center}.home-page .home-carousel[data-v-34d6a3aa]{margin-bottom:30px}.home-page .home-carousel .carousel-img[data-v-34d6a3aa]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.home-page .category-nav[data-v-34d6a3aa]{margin-bottom:40px}.home-page .category-nav .category-list[data-v-34d6a3aa]{display:flex;justify-content:space-between;flex-wrap:wrap;gap:20px;margin-top:20px}.home-page .category-nav .category-item[data-v-34d6a3aa]{flex:1;min-width:120px;height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #eaeaea;border-radius:8px;cursor:pointer;transition:all .3s ease}.home-page .category-nav .category-item[data-v-34d6a3aa]:hover{transform:translateY(-5px);box-shadow:0 5px 15px rgba(0,0,0,.1);border-color:#409eff}.home-page .category-nav .category-item .category-icon[data-v-34d6a3aa]{font-size:36px;color:#409eff;margin-bottom:15px}.home-page .category-nav .category-item .category-name[data-v-34d6a3aa]{font-size:16px;font-weight:500}.home-page .section-title[data-v-34d6a3aa]{font-size:24px;color:#333;padding-bottom:10px;border-bottom:2px solid #409eff;display:inline-block;margin-bottom:20px}.home-page .section-header[data-v-34d6a3aa]{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.home-page .section-header .more-link[data-v-34d6a3aa]{color:#409eff;font-size:14px;display:flex;align-items:center}.home-page .section-header .more-link[data-v-34d6a3aa]:hover{text-decoration:underline}.home-page .section-header .more-link i[data-v-34d6a3aa]{margin-left:5px;font-size:16px}.home-page .hot-products[data-v-34d6a3aa],.home-page .new-products[data-v-34d6a3aa]{margin-bottom:40px}.home-page .promotion-section[data-v-34d6a3aa]{margin:40px 0}.home-page .promotion-section .promotion-container[data-v-34d6a3aa]{display:flex;gap:20px;margin-top:20px}@media(max-width:768px){.home-page .promotion-section .promotion-container[data-v-34d6a3aa]{flex-direction:column}}.home-page .promotion-section .promotion-item[data-v-34d6a3aa]{flex:1;position:relative;height:300px;border-radius:8px;overflow:hidden}.home-page .promotion-section .promotion-item .promotion-img[data-v-34d6a3aa]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;transition:transform .5s ease}.home-page .promotion-section .promotion-item .promotion-img[data-v-34d6a3aa]:hover{transform:scale(1.05)}.home-page .promotion-section .promotion-item .promotion-info[data-v-34d6a3aa]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;text-align:center}.home-page .promotion-section .promotion-item .promotion-info h3[data-v-34d6a3aa]{font-size:24px;margin-bottom:10px}.home-page .promotion-section .promotion-item .promotion-info p[data-v-34d6a3aa]{font-size:16px;margin-bottom:20px} \ No newline at end of file +.product-list .product-grid[data-v-6ecfbe40]{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:20px}.product-list .product-card[data-v-6ecfbe40]{border:1px solid #eaeaea;border-radius:8px;overflow:hidden;transition:all .3s ease;padding:10px}.product-list .product-card[data-v-6ecfbe40]:hover{transform:translateY(-5px);box-shadow:0 5px 15px rgba(0,0,0,.1)}.product-list .product-card .product-img[data-v-6ecfbe40]{height:250px;overflow:hidden}.product-list .product-card .product-img .product-pic[data-v-6ecfbe40]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;transition:transform .5s ease}.product-list .product-card .product-img .product-pic[data-v-6ecfbe40]:hover{transform:scale(1.05)}.product-list .product-card .product-info[data-v-6ecfbe40]{padding:10px}.product-list .product-card .product-info .product-name[data-v-6ecfbe40]{font-size:14px;line-height:20px;min-height:40px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-bottom:10px}.product-list .product-card .product-info .product-name a[data-v-6ecfbe40]{color:#333}.product-list .product-card .product-info .product-name a[data-v-6ecfbe40]:hover{color:#409eff}.product-list .product-card .product-info .product-price[data-v-6ecfbe40]{margin-bottom:15px}.product-list .product-card .product-info .product-price .current-price[data-v-6ecfbe40]{color:#f40;font-size:16px;font-weight:700}.product-list .product-card .product-info .product-price .original-price[data-v-6ecfbe40]{color:#999;font-size:12px;text-decoration:line-through;margin-left:8px}.product-list .product-card .product-info .product-actions[data-v-6ecfbe40]{margin-bottom:10px}.product-list .product-card .product-info .product-sales[data-v-6ecfbe40]{font-size:12px;color:#999;margin-bottom:15px}.product-list .no-products[data-v-6ecfbe40]{padding:50px 0;text-align:center}.home-page .home-carousel[data-v-34d6a3aa]{margin-bottom:30px}.home-page .home-carousel .carousel-img[data-v-34d6a3aa]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.home-page .category-nav[data-v-34d6a3aa]{margin-bottom:40px}.home-page .category-nav .category-list[data-v-34d6a3aa]{display:flex;justify-content:space-between;flex-wrap:wrap;gap:20px;margin-top:20px}.home-page .category-nav .category-item[data-v-34d6a3aa]{flex:1;min-width:120px;height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #eaeaea;border-radius:8px;cursor:pointer;transition:all .3s ease}.home-page .category-nav .category-item[data-v-34d6a3aa]:hover{transform:translateY(-5px);box-shadow:0 5px 15px rgba(0,0,0,.1);border-color:#409eff}.home-page .category-nav .category-item .category-icon[data-v-34d6a3aa]{font-size:36px;color:#409eff;margin-bottom:15px}.home-page .category-nav .category-item .category-name[data-v-34d6a3aa]{font-size:16px;font-weight:500}.home-page .section-title[data-v-34d6a3aa]{font-size:24px;color:#333;padding-bottom:10px;border-bottom:2px solid #409eff;display:inline-block;margin-bottom:20px}.home-page .section-header[data-v-34d6a3aa]{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.home-page .section-header .more-link[data-v-34d6a3aa]{color:#409eff;font-size:14px;display:flex;align-items:center}.home-page .section-header .more-link[data-v-34d6a3aa]:hover{text-decoration:underline}.home-page .section-header .more-link i[data-v-34d6a3aa]{margin-left:5px;font-size:16px}.home-page .hot-products[data-v-34d6a3aa],.home-page .new-products[data-v-34d6a3aa]{margin-bottom:40px}.home-page .promotion-section[data-v-34d6a3aa]{margin:40px 0}.home-page .promotion-section .promotion-container[data-v-34d6a3aa]{display:flex;gap:20px;margin-top:20px}@media(max-width:768px){.home-page .promotion-section .promotion-container[data-v-34d6a3aa]{flex-direction:column}}.home-page .promotion-section .promotion-item[data-v-34d6a3aa]{flex:1;position:relative;height:300px;border-radius:8px;overflow:hidden}.home-page .promotion-section .promotion-item .promotion-img[data-v-34d6a3aa]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;transition:transform .5s ease}.home-page .promotion-section .promotion-item .promotion-img[data-v-34d6a3aa]:hover{transform:scale(1.05)}.home-page .promotion-section .promotion-item .promotion-info[data-v-34d6a3aa]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;text-align:center}.home-page .promotion-section .promotion-item .promotion-info h3[data-v-34d6a3aa]{font-size:24px;margin-bottom:10px}.home-page .promotion-section .promotion-item .promotion-info p[data-v-34d6a3aa]{font-size:16px;margin-bottom:20px} \ No newline at end of file diff --git a/dist/css/838.4c0b65d7.css b/dist/css/838.4c0b65d7.css new file mode 100644 index 0000000..869d480 --- /dev/null +++ b/dist/css/838.4c0b65d7.css @@ -0,0 +1 @@ +.notification-page[data-v-b0cdd62a]{width:100%}.mark-all-read[data-v-b0cdd62a]{text-align:right;display:block;margin-bottom:10px}.notification-card[data-v-b0cdd62a]{margin-bottom:10px;border:1px solid #ebeef5;border-radius:4px;overflow:hidden}.notification-header[data-v-b0cdd62a]{display:flex;justify-content:space-between;align-items:center;padding:10px;cursor:pointer}.dot[data-v-b0cdd62a]{color:red;margin-right:8px}.title[data-v-b0cdd62a]{flex:1}.expand-btn[data-v-b0cdd62a]{padding:0;margin:0 10px}.date[data-v-b0cdd62a]{color:#909399;font-size:13px}.notification-content[data-v-b0cdd62a]{padding:0 10px 10px 10px;color:#606266;white-space:pre-line}.read[data-v-b0cdd62a]{opacity:.6}.pagination[data-v-b0cdd62a]{margin-top:20px;text-align:right} \ No newline at end of file diff --git a/dist/css/86.3b46bb21.css b/dist/css/86.3b46bb21.css new file mode 100644 index 0000000..66cb53d --- /dev/null +++ b/dist/css/86.3b46bb21.css @@ -0,0 +1 @@ +.bg[data-v-a18e9d96]{display:flex;flex-direction:column}.bg[data-v-a18e9d96] .el-button--text,.bg[data-v-a18e9d96] .el-tabs__item.is-active{color:#6a8a27}.bg[data-v-a18e9d96] .el-tabs__active-bar{background-color:#6a8a27}.bg[data-v-a18e9d96] .el-tabs__item:hover{color:#6a8a27}.filter-bar[data-v-a18e9d96]{margin-bottom:20px}.order-card[data-v-a18e9d96]{border:1px solid #eee;border-radius:4px;margin-bottom:20px;overflow:hidden}.order-header[data-v-a18e9d96]{background-color:#f8f9fa;padding:12px 20px;display:flex;align-items:center;border-bottom:1px solid #eee;color:#666;font-size:14px}.order-products[data-v-a18e9d96]{padding:10px 20px}.product-item[data-v-a18e9d96]{display:flex;align-items:center;padding:15px 0;border-bottom:1px dashed #eee;font-size:14px}.product-item[data-v-a18e9d96]:last-child{border-bottom:none}.product-image[data-v-a18e9d96]{width:80px;height:80px;-o-object-fit:cover;object-fit:cover;margin-right:15px;border-radius:4px}.product-details[data-v-a18e9d96]{flex:1}.product-name[data-v-a18e9d96]{color:#333;margin-bottom:5px}.product-spec[data-v-a18e9d96]{color:#999;font-size:12px}.product-price[data-v-a18e9d96]{width:120px;text-align:center;color:#333}.product-quantity[data-v-a18e9d96]{width:100px;text-align:center;color:#666}.product-total[data-v-a18e9d96]{width:120px;text-align:center;color:#333;font-weight:500}.product-actions[data-v-a18e9d96],.product-status[data-v-a18e9d96]{width:150px;text-align:center}.order-footer[data-v-a18e9d96]{background-color:#f8f9fa;padding:15px 20px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid #eee}.order-summary[data-v-a18e9d96]{text-align:right}.order-amount[data-v-a18e9d96]{color:#333;margin-bottom:5px}.order-amount strong[data-v-a18e9d96]{color:#ff4d4f;font-size:16px}.order-tips[data-v-a18e9d96]{font-size:12px;color:#999}.order-actions[data-v-a18e9d96]{display:flex;gap:10px} \ No newline at end of file diff --git a/dist/css/937.e1a5ac5a.css b/dist/css/893.3aae9905.css similarity index 50% rename from dist/css/937.e1a5ac5a.css rename to dist/css/893.3aae9905.css index 835658b..8a461c0 100644 --- a/dist/css/937.e1a5ac5a.css +++ b/dist/css/893.3aae9905.css @@ -1 +1 @@ -.avatar-uploader-icon[data-v-03a7f9a5]{font-size:28px;color:#8c939d;width:100px;height:100px;line-height:100px;text-align:center}[data-v-03a7f9a5] .avatar-uploader .el-upload{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.avatar[data-v-03a7f9a5]{width:100px;height:100px;display:block}.hover-tip[data-v-03a7f9a5]{position:absolute;bottom:0;left:0;right:0;width:100%;height:20px;text-align:center;line-height:20px;font-size:14px;color:#fff;background:rgba(0,0,0,.5)} \ No newline at end of file +.avatar-uploader-icon[data-v-0e767484]{font-size:28px;color:#8c939d;width:100px;height:100px;line-height:100px;text-align:center}[data-v-0e767484] .avatar-uploader .el-upload{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.avatar[data-v-0e767484]{width:100px;height:100px;display:block}.hover-tip[data-v-0e767484]{position:absolute;bottom:0;left:0;right:0;width:100%;height:20px;text-align:center;line-height:20px;font-size:14px;color:#fff;background:rgba(0,0,0,.5)} \ No newline at end of file diff --git a/dist/css/900.57bae3a8.css b/dist/css/900.57bae3a8.css new file mode 100644 index 0000000..46b45f3 --- /dev/null +++ b/dist/css/900.57bae3a8.css @@ -0,0 +1 @@ +.login-page[data-v-0c4c6f6a]{position:relative;left:0;width:100%;height:100%;overflow:hidden}.login-page .bg-container[data-v-0c4c6f6a]{width:100vw;height:100%;left:0;top:0;z-index:1}.login-page .bg-container .bg-img[data-v-0c4c6f6a]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.login-page .form-card[data-v-0c4c6f6a]{position:absolute;right:8%;top:50%;transform:translateY(-50%);width:360px;background:#fff;border-radius:8px;box-shadow:0 2px 16px rgba(0,0,0,.1);z-index:2;padding:30px 25px}.login-page .form-card .tab-bar[data-v-0c4c6f6a]{display:flex;justify-content:center;margin-bottom:25px}.login-page .form-card .tab-bar .tab-item[data-v-0c4c6f6a]{width:50%;text-align:center;padding:10px 0;color:#666;cursor:pointer;border-bottom:2px solid transparent}.login-page .form-card .tab-bar .tab-item.active[data-v-0c4c6f6a]{color:#6a8a27;border-bottom-color:#6a8a27}.login-page .form-card .login-form .el-form-item[data-v-0c4c6f6a]{margin-bottom:20px}.login-page .form-card .login-form .el-input[data-v-0c4c6f6a]{height:40px;line-height:40px}.login-page .form-card .login-form .captcha-img[data-v-0c4c6f6a]{display:inline-block;width:30%;height:40px;margin-left:8px;cursor:pointer;vertical-align:middle}.login-page .form-card .login-form .captcha-img .captcha-pic[data-v-0c4c6f6a]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;border-radius:4px}.login-page .form-card .login-form .code-btn[data-v-0c4c6f6a]{padding:0 5px;height:40px;background-color:#6a8a27;border:none;margin-left:5px}.login-page .form-card .login-form .remember-item[data-v-0c4c6f6a]{padding-left:0;margin-bottom:10px}.login-page .form-card .login-form .login-btn[data-v-0c4c6f6a]{width:100%;background:#6a8a27;border:none}.login-page .form-card .login-form .login-btn[data-v-0c4c6f6a]:hover{background:#e03e40}.login-page .form-card .login-form .register-guide[data-v-0c4c6f6a]{text-align:center;margin-top:15px;color:#999}.login-page .form-card .login-form .register-guide .register-link[data-v-0c4c6f6a]{color:#6a8a27;text-decoration:underline;margin-left:5px}@media(max-width:992px){.login-page .form-card[data-v-0c4c6f6a]{right:5%;width:320px}}@media(max-width:576px){.login-page .form-card[data-v-0c4c6f6a]{right:50%;transform:translate(50%,-50%);width:90%}} \ No newline at end of file diff --git a/dist/css/app.5178ac73.css b/dist/css/app.5178ac73.css new file mode 100644 index 0000000..c93903c --- /dev/null +++ b/dist/css/app.5178ac73.css @@ -0,0 +1 @@ +.header-nav[data-v-397f4a13]{width:100%}.header-nav .top-notice[data-v-397f4a13]{background-color:#f5f5f5;padding:8px 0}.header-nav .top-notice .container[data-v-397f4a13]{display:flex;justify-content:space-between;align-items:center;max-width:1200px;margin:0 auto;padding:0 20px}.header-nav .top-notice .container p[data-v-397f4a13]{font-size:14px;color:#666;margin:0}.header-nav .top-notice .container p .highlight[data-v-397f4a13]{color:#f40;margin:0 5px;font-weight:500}.header-nav .top-notice .container .top-links[data-v-397f4a13]{display:flex;align-items:center;gap:15px;font-size:14px}.header-nav .top-notice .container .top-links .avatar[data-v-397f4a13]{width:24px;height:24px;border-radius:50%;margin-right:5px;vertical-align:middle;-o-object-fit:cover;object-fit:cover}.header-nav .top-notice .container .top-links .separator[data-v-397f4a13]{color:#ccc}.header-nav .top-notice .container .top-links .logout-btn[data-v-397f4a13],.header-nav .top-notice .container .top-links a[data-v-397f4a13]{color:#666;transition:color .2s;cursor:pointer;text-decoration:none}.header-nav .top-notice .container .top-links .logout-btn[data-v-397f4a13]:hover,.header-nav .top-notice .container .top-links a[data-v-397f4a13]:hover{color:#6a8a27}.header-nav .top-notice .container .top-links .user-link[data-v-397f4a13]{display:flex;align-items:center}.header-nav .top-notice .container .top-links .cart-link[data-v-397f4a13]{display:inline-flex;align-items:center}.header-nav .main-nav[data-v-397f4a13]{background-color:#fff;padding:15px 0;box-shadow:0 2px 5px rgba(0,0,0,.05)}.header-nav .main-nav .container[data-v-397f4a13]{display:flex;justify-content:space-between;align-items:center;max-width:1200px;margin:0 auto;padding:0 20px}.header-nav .main-nav .logo a[data-v-397f4a13]{display:block}.header-nav .main-nav .logo a .logo-img[data-v-397f4a13]{height:40px;-o-object-fit:contain;object-fit:contain}.header-nav .main-nav .search-box[data-v-397f4a13]{flex:0 0 500px}@media(max-width:992px){.header-nav .main-nav .search-box[data-v-397f4a13]{flex:0 0 400px}}@media(max-width:768px){.header-nav .main-nav .search-box[data-v-397f4a13]{display:none}}.header-nav .main-nav .search-box .search-input[data-v-397f4a13]{width:100%;border:1px solid #6a8a27}.header-nav .main-nav .search-box .search-input[data-v-397f4a13] .el-input__inner{border-right:none}.header-nav .main-nav .search-box .search-input[data-v-397f4a13] .el-input-group__append{background-color:#6a8a27;border-color:#6a8a27;color:#fff}.header-nav .main-nav .search-box .hot-tags[data-v-397f4a13]{margin-top:8px;font-size:12px;color:#999;display:flex;align-items:center}.header-nav .main-nav .search-box .hot-tags span[data-v-397f4a13]{margin-right:5px}.header-nav .main-nav .search-box .hot-tags .hot-tag[data-v-397f4a13]{margin:0 5px;color:#666;cursor:pointer;transition:color .2s}.header-nav .main-nav .search-box .hot-tags .hot-tag[data-v-397f4a13]:hover{color:#409eff;text-decoration:underline}.header-nav .main-nav .phone-entry a[data-v-397f4a13]{display:flex;align-items:center;color:#333;font-size:16px;text-decoration:none}.header-nav .main-nav .phone-entry a img[data-v-397f4a13]{width:24px;height:24px}.header-nav .main-nav .phone-entry a span[data-v-397f4a13]{margin-left:10px}.header-nav .main-nav .phone-entry a .cart-count[data-v-397f4a13]{display:inline-block;width:18px;height:18px;background-color:#f40;color:#fff;border-radius:50%;font-size:12px;text-align:center;line-height:18px;margin-left:5px}.header-nav .category-nav[data-v-397f4a13]{background-color:#409eff}.header-nav .category-nav .container[data-v-397f4a13]{max-width:1200px;margin:0 auto;padding:0 20px}.header-nav .category-nav .nav-list[data-v-397f4a13]{display:flex;margin:0;padding:0}@media(max-width:992px){.header-nav .category-nav .nav-list[data-v-397f4a13]{overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch}}.header-nav .category-nav .nav-list .nav-item[data-v-397f4a13]{list-style:none}.header-nav .category-nav .nav-list .nav-item .nav-link[data-v-397f4a13]{display:inline-block;padding:12px 20px;color:#fff;font-size:16px;transition:background-color .2s;text-decoration:none}.header-nav .category-nav .nav-list .nav-item .nav-link.active[data-v-397f4a13],.header-nav .category-nav .nav-list .nav-item .nav-link[data-v-397f4a13]:hover{background-color:#337ab7}.footer-container[data-v-683e198c]{background-color:#fff;color:#666;font-size:12px;border-top:1px solid #eaeaea}.footer-top[data-v-683e198c]{display:flex;justify-content:space-around;padding:20px 0;flex-wrap:wrap}.footer-link[data-v-683e198c]{display:flex;gap:20px;align-items:center}.footer-link span[data-v-683e198c]{cursor:pointer;transition:color .3s ease}.footer-link span[data-v-683e198c]:hover{color:#1890ff}.contact-info p[data-v-683e198c]{margin:5px 0}.footer-column[data-v-683e198c]{margin-bottom:20px}.footer-column h3[data-v-683e198c]{font-size:14px;font-weight:700;margin-bottom:10px;color:#333}.footer-column ul[data-v-683e198c]{list-style:none;padding:0;margin:0}.footer-column ul li[data-v-683e198c]{margin:5px 0;cursor:pointer;transition:color .3s ease}.footer-column ul li[data-v-683e198c]:hover{color:#1890ff}.qrcode-group[data-v-683e198c]{display:flex;gap:40px}.qrcode-item[data-v-683e198c]{text-align:center}.footer-bottom[data-v-683e198c]{text-align:center;padding:10px 0;border-top:1px solid #eaeaea}.footer-bottom p[data-v-683e198c]{margin:5px 0}.sidebar-container[data-v-0ddafffa]{position:fixed;right:20px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;background-color:#fff;border-radius:8px;box-shadow:0 2px 12px rgba(0,0,0,.1);padding:15px 10px;z-index:999}.sidebar-container .sidebar-item[data-v-0ddafffa]{display:flex;flex-direction:column;align-items:center;cursor:pointer;margin-bottom:20px;color:#666;transition:all .3s}.sidebar-container .sidebar-item[data-v-0ddafffa]:last-child{margin-bottom:0}.sidebar-container .sidebar-item i[data-v-0ddafffa]{font-size:20px;margin-bottom:5px}.sidebar-container .sidebar-item .item-text[data-v-0ddafffa]{font-size:12px}.sidebar-container .sidebar-item[data-v-0ddafffa]:hover{color:#409eff}.sidebar-container .item-badge .el-badge__content[data-v-0ddafffa]{background-color:#ff4d4f;top:-5px;right:-10px}.sidebar-container .back-to-top.active[data-v-0ddafffa]{color:#409eff}@media(max-width:768px){.sidebar-container[data-v-0ddafffa]{right:10px;padding:10px 5px}.sidebar-container .sidebar-item[data-v-0ddafffa]{margin-bottom:15px}.sidebar-container .sidebar-item i[data-v-0ddafffa]{font-size:18px}.sidebar-container .sidebar-item .item-text[data-v-0ddafffa]{font-size:10px}}.back-to-top[data-v-7ea6dee0]{position:fixed;bottom:30px;right:30px;width:40px;height:40px;background-color:#409eff;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.1);transition:all .3s ease;z-index:1000}.back-to-top[data-v-7ea6dee0]:hover{background-color:#337ab7;transform:translateY(-3px)}.back-to-top .el-icon-arrow-up[data-v-7ea6dee0]{font-size:20px}#app{font-family:Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,微软雅黑,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#333;min-height:100vh;display:flex;flex-direction:column}.main-container{flex:1;width:100%;max-width:1200px;margin:0 auto;padding:20px;box-sizing:border-box}@media(max-width:1200px){.main-container{padding:15px}}@media(max-width:768px){.main-container{padding:10px}}.main-containers{flex:1;width:100%}*{margin:0;padding:0;box-sizing:border-box}a{text-decoration:none;color:inherit}ul{list-style:none}img{vertical-align:middle}body,html{padding:0;margin:0}div{box-sizing:border-box}.text-overflow{overflow-x:hidden;overflow-y:inherit;text-overflow:ellipsis;white-space:nowrap}.text-overflowRows{overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;word-break:break-all;display:-webkit-box;-webkit-box-orient:vertical}.flex-between{justify-content:space-between}.flex-between,.flex-center{display:flex;align-items:center}.flex-center{justify-content:center}.flex-around{display:flex;justify-content:space-around;align-items:center}.flex-column{display:flex;flex-direction:column}.normal-margin-bottom{margin-bottom:20px} \ No newline at end of file diff --git a/dist/css/app.d25e61e5.css b/dist/css/app.d25e61e5.css deleted file mode 100644 index 8c47373..0000000 --- a/dist/css/app.d25e61e5.css +++ /dev/null @@ -1 +0,0 @@ -.header-nav[data-v-52acec02]{width:100%}.header-nav .top-notice[data-v-52acec02]{background-color:#f5f5f5;padding:8px 0}.header-nav .top-notice .container[data-v-52acec02]{display:flex;justify-content:space-between;align-items:center;max-width:1200px;margin:0 auto;padding:0 20px}.header-nav .top-notice .container p[data-v-52acec02]{font-size:14px;color:#666}.header-nav .top-notice .container p .highlight[data-v-52acec02]{color:#f40;margin:0 5px;font-weight:500}.header-nav .top-notice .container .top-links[data-v-52acec02]{display:flex;align-items:center;gap:15px;font-size:14px}.header-nav .top-notice .container .top-links .avatar[data-v-52acec02]{width:24px;height:24px;border-radius:50%;margin-right:5px;vertical-align:middle}.header-nav .top-notice .container .top-links .separator[data-v-52acec02]{color:#ccc}.header-nav .top-notice .container .top-links a[data-v-52acec02]{color:#666;transition:color .2s}.header-nav .top-notice .container .top-links a[data-v-52acec02]:hover{color:#409eff}.header-nav .main-nav[data-v-52acec02]{background-color:#fff;padding:15px 0;box-shadow:0 2px 5px rgba(0,0,0,.05)}.header-nav .main-nav .container[data-v-52acec02]{display:flex;justify-content:space-between;align-items:center;max-width:1200px;margin:0 auto;padding:0 20px}.header-nav .main-nav .logo a[data-v-52acec02]{display:block}.header-nav .main-nav .logo a h1[data-v-52acec02]{font-size:28px;color:#409eff;margin:0;font-weight:700}.header-nav .main-nav .search-box[data-v-52acec02]{flex:0 0 500px}@media(max-width:992px){.header-nav .main-nav .search-box[data-v-52acec02]{flex:0 0 350px}}@media(max-width:768px){.header-nav .main-nav .search-box[data-v-52acec02]{display:none}}.header-nav .main-nav .search-box .search-input[data-v-52acec02]{width:100%}.header-nav .main-nav .search-box .hot-tags[data-v-52acec02]{margin-top:8px;font-size:12px;color:#999}.header-nav .main-nav .search-box .hot-tags span[data-v-52acec02]{margin-right:5px}.header-nav .main-nav .search-box .hot-tags a[data-v-52acec02]{margin:0 5px;color:#666}.header-nav .main-nav .search-box .hot-tags a[data-v-52acec02]:hover{color:#409eff;text-decoration:underline}.header-nav .main-nav .cart-entry .cart-link[data-v-52acec02]{display:flex;align-items:center;color:#333;font-size:16px}.header-nav .main-nav .cart-entry .cart-link .cart-icon[data-v-52acec02]{font-size:20px;margin-right:5px}.header-nav .main-nav .cart-entry .cart-link .cart-count[data-v-52acec02]{display:inline-block;width:18px;height:18px;background-color:#f40;color:#fff;border-radius:50%;font-size:12px;text-align:center;line-height:18px;margin-left:5px}.header-nav .category-nav[data-v-52acec02]{background-color:#409eff}.header-nav .category-nav .container[data-v-52acec02]{max-width:1200px;margin:0 auto;padding:0 20px}.header-nav .category-nav .nav-list[data-v-52acec02]{display:flex;margin:0;padding:0}@media(max-width:992px){.header-nav .category-nav .nav-list[data-v-52acec02]{overflow-x:auto;white-space:nowrap}}.header-nav .category-nav .nav-list .nav-item[data-v-52acec02]{list-style:none}.header-nav .category-nav .nav-list .nav-item .nav-link[data-v-52acec02]{display:inline-block;padding:12px 20px;color:#fff;font-size:16px;transition:background-color .2s}.header-nav .category-nav .nav-list .nav-item .nav-link.active[data-v-52acec02],.header-nav .category-nav .nav-list .nav-item .nav-link[data-v-52acec02]:hover{background-color:#337ab7}.footer-container[data-v-683e198c]{background-color:#fff;color:#666;font-size:12px;border-top:1px solid #eaeaea}.footer-top[data-v-683e198c]{display:flex;justify-content:space-around;padding:20px 0;flex-wrap:wrap}.footer-link[data-v-683e198c]{display:flex;gap:20px;align-items:center}.footer-link span[data-v-683e198c]{cursor:pointer;transition:color .3s ease}.footer-link span[data-v-683e198c]:hover{color:#1890ff}.contact-info p[data-v-683e198c]{margin:5px 0}.footer-column[data-v-683e198c]{margin-bottom:20px}.footer-column h3[data-v-683e198c]{font-size:14px;font-weight:700;margin-bottom:10px;color:#333}.footer-column ul[data-v-683e198c]{list-style:none;padding:0;margin:0}.footer-column ul li[data-v-683e198c]{margin:5px 0;cursor:pointer;transition:color .3s ease}.footer-column ul li[data-v-683e198c]:hover{color:#1890ff}.qrcode-group[data-v-683e198c]{display:flex;gap:40px}.qrcode-item[data-v-683e198c]{text-align:center}.footer-bottom[data-v-683e198c]{text-align:center;padding:10px 0;border-top:1px solid #eaeaea}.footer-bottom p[data-v-683e198c]{margin:5px 0}.sidebar-container[data-v-12c0b5e0]{position:fixed;right:20px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;background-color:#fff;border-radius:8px;box-shadow:0 2px 12px rgba(0,0,0,.1);padding:15px 10px;z-index:999}.sidebar-container .sidebar-item[data-v-12c0b5e0]{display:flex;flex-direction:column;align-items:center;cursor:pointer;margin-bottom:20px;color:#666;transition:all .3s}.sidebar-container .sidebar-item[data-v-12c0b5e0]:last-child{margin-bottom:0}.sidebar-container .sidebar-item i[data-v-12c0b5e0]{font-size:20px;margin-bottom:5px}.sidebar-container .sidebar-item .item-text[data-v-12c0b5e0]{font-size:12px}.sidebar-container .sidebar-item[data-v-12c0b5e0]:hover{color:#409eff}.sidebar-container .item-badge .el-badge__content[data-v-12c0b5e0]{background-color:#ff4d4f;top:-5px;right:-10px}.sidebar-container .back-to-top.active[data-v-12c0b5e0]{color:#409eff}@media(max-width:768px){.sidebar-container[data-v-12c0b5e0]{right:10px;padding:10px 5px}.sidebar-container .sidebar-item[data-v-12c0b5e0]{margin-bottom:15px}.sidebar-container .sidebar-item i[data-v-12c0b5e0]{font-size:18px}.sidebar-container .sidebar-item .item-text[data-v-12c0b5e0]{font-size:10px}}.back-to-top[data-v-7ea6dee0]{position:fixed;bottom:30px;right:30px;width:40px;height:40px;background-color:#409eff;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.1);transition:all .3s ease;z-index:1000}.back-to-top[data-v-7ea6dee0]:hover{background-color:#337ab7;transform:translateY(-3px)}.back-to-top .el-icon-arrow-up[data-v-7ea6dee0]{font-size:20px}#app{font-family:Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,微软雅黑,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#333;min-height:100vh;display:flex;flex-direction:column}.main-container{flex:1;width:100%;max-width:1200px;margin:0 auto;padding:20px;box-sizing:border-box}@media(max-width:1200px){.main-container{padding:15px}}@media(max-width:768px){.main-container{padding:10px}}*{margin:0;padding:0;box-sizing:border-box}a{text-decoration:none;color:inherit}ul{list-style:none}img{vertical-align:middle}body,html{padding:0;margin:0}div{box-sizing:border-box}.text-overflow{overflow-x:hidden;overflow-y:inherit;text-overflow:ellipsis;white-space:nowrap}.text-overflowRows{overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;word-break:break-all;display:-webkit-box;-webkit-box-orient:vertical}.flex-between{justify-content:space-between}.flex-between,.flex-center{display:flex;align-items:center}.flex-center{justify-content:center}.flex-around{display:flex;justify-content:space-around;align-items:center}.flex-column{display:flex;flex-direction:column}.normal-margin-bottom{margin-bottom:20px} \ No newline at end of file diff --git a/dist/index.html b/dist/index.html index 77add54..9f9b2a9 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1 +1 @@ -abcdf
\ No newline at end of file +abcdf
\ No newline at end of file diff --git a/dist/js/110.4a93ee72.js b/dist/js/110.4a93ee72.js new file mode 100644 index 0000000..c2be100 --- /dev/null +++ b/dist/js/110.4a93ee72.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[110],{9110:function(t,e,s){s.r(e),s.d(e,{default:function(){return c}});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"bg"},[e("div",{staticClass:"left-container"},t._l(t.navList,function(s,a){return e("router-link",{key:a,class:["route-item",t.selectIndex==a?"active":""],attrs:{to:s.path}},[t._v(t._s(s.title))])}),1),e("div",{staticClass:"right-container"},[e("router-view")],1)])},r=[],i={data(){return{selectIndex:0,navList:[{title:"个人中心",path:"/User/UserCenter"},{title:"我的购物车",path:"/User/ShoppingCart"},{title:"我的订单",path:"/User/OrderList"},{title:"评价管理",path:"/User/CommentManage"},{title:"我的发票",path:"/User/UserInvoiceList"},{title:"发票抬头",path:"/User/UserInvoice"},{title:"合同管理",path:"/User/ContractList"},{title:"我的足迹",path:"/User/ViewHistory"},{title:"消息中心",path:"/User/MessageList"},{title:"个人信息",path:"/User/UserInfo"},{title:"采购人信息",path:"/User/PurchaserAdd"},{title:"我的收货地址",path:"/User/UserAddress"}]}},watch:{$route(t,e){let s=t.path.toLocaleLowerCase(),a=this.navList.findIndex(t=>t.path.toLocaleLowerCase()==s);a>=0&&(this.selectIndex=a)}},computed:{},created(){let t=this.$route.path.toLocaleLowerCase(),e=this.navList.findIndex(e=>e.path.toLocaleLowerCase()==t);e>=0&&(this.selectIndex=e)},methods:{}},n=i,l=s(1656),o=(0,l.A)(n,a,r,!1,null,"3baef56b",null),c=o.exports}}]); +//# sourceMappingURL=110.4a93ee72.js.map \ No newline at end of file diff --git a/dist/js/110.4a93ee72.js.map b/dist/js/110.4a93ee72.js.map new file mode 100644 index 0000000..08c391f --- /dev/null +++ b/dist/js/110.4a93ee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nB,QAAAoB,UAAAC,GAAAA,EAAAd,KAAAW,qBAAAX,GACAY,GAAA,IACA,KAAAd,YAAAc,EAGA,EACAK,QAAA,CAEA,GC7D6P,I,UCQzPC,GAAY,OACd,EACAhC,EACAkB,GACA,EACA,KACA,WACA,MAIF,EAAec,E","sources":["webpack://abcdf/./src/views/User/Index.vue","webpack://abcdf/src/views/User/Index.vue","webpack://abcdf/./src/views/User/Index.vue?5d75","webpack://abcdf/./src/views/User/Index.vue?c30c"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg\"},[_c('div',{staticClass:\"left-container\"},_vm._l((_vm.navList),function(item,i){return _c('router-link',{key:i,class:['route-item',_vm.selectIndex==i?'active':''],attrs:{\"to\":item.path}},[_vm._v(_vm._s(item.title))])}),1),_c('div',{staticClass:\"right-container\"},[_c('router-view')],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=3baef56b&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=3baef56b&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3baef56b\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","_l","navList","item","i","key","class","selectIndex","attrs","path","_v","_s","title","staticRenderFns","data","watch","$route","to","from","toPath","toLocaleLowerCase","index","findIndex","x","computed","created","methods","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/113.5c3b5964.js b/dist/js/113.5c3b5964.js new file mode 100644 index 0000000..6dd82d5 --- /dev/null +++ b/dist/js/113.5c3b5964.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[113],{6113:function(e,s,t){t.r(s),t.d(s,{default:function(){return o}});var a=function(){var e=this,s=e._self._c;return s("div",{staticClass:"bg"},[s("el-card",{staticStyle:{width:"100%"}},[s("div",{staticClass:"clearfix flex-between",attrs:{slot:"header"},slot:"header"},[s("span",[e._v("我的发票")]),s("div",{staticClass:"flex-between"},[s("span",{staticStyle:{color:"#666","font-size":"12px"}},[e._v("您已保存了1个发票抬头信息,做多可创建5个。")]),s("el-button",{staticStyle:{float:"right"},attrs:{size:"small",type:"primary"},on:{click:function(s){return e.openDialog("add",{})}}},[e._v("新增")])],1)]),s("el-table",{staticStyle:{width:"100%"},attrs:{data:e.addresses,border:""}},[s("el-table-column",{attrs:{prop:"receiver",label:"发票抬头",width:"120"}}),s("el-table-column",{attrs:{prop:"region",label:"纳税人识别号",width:"120"}}),s("el-table-column",{attrs:{prop:"detailAddress",label:"开户银行",width:"300"}}),s("el-table-column",{attrs:{prop:"phone",label:"银行账号",width:"150"}}),s("el-table-column",{attrs:{prop:"fixedPhone",label:"注册电话",width:"150"}}),s("el-table-column",{attrs:{prop:"alias",label:"注册地址",width:"120"}}),s("el-table-column",{attrs:{label:"操作",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-button",{attrs:{size:"mini"},on:{click:function(s){return e.handleEdit(t.row)}}},[e._v("编辑")]),s("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(s){return e.handleDelete(t.row)}}},[e._v("删除")])]}}])})],1)],1),s("el-dialog",{attrs:{title:"编辑发票抬头",visible:e.dialogVisible,width:"700px"},on:{"update:visible":function(s){e.dialogVisible=s}}},[s("el-form",{attrs:{model:e.address,"label-width":"120px",size:"small"}},[s("el-form-item",{attrs:{label:"*发票抬头"}},[s("el-input",{attrs:{placeholder:"请填写发票抬头"},model:{value:e.address.receiver,callback:function(s){e.$set(e.address,"receiver",s)},expression:"address.receiver"}})],1),s("el-form-item",{attrs:{label:"*纳税人识别号"}},[s("el-input",{attrs:{placeholder:"请填写纳税人识别号"},model:{value:e.address.region,callback:function(s){e.$set(e.address,"region",s)},expression:"address.region"}})],1),s("el-form-item",{attrs:{label:"*开户银行"}},[s("el-input",{attrs:{placeholder:"请填写开户银行"},model:{value:e.address.detailAddress,callback:function(s){e.$set(e.address,"detailAddress",s)},expression:"address.detailAddress"}})],1),s("el-form-item",{attrs:{label:"*银行账号"}},[s("el-input",{attrs:{placeholder:"请填写银行账号"},model:{value:e.address.phone,callback:function(s){e.$set(e.address,"phone",s)},expression:"address.phone"}})],1),s("el-form-item",{attrs:{label:"注册电话"}},[s("el-input",{attrs:{placeholder:"请填写注册号码"},model:{value:e.address.fixedPhone,callback:function(s){e.$set(e.address,"fixedPhone",s)},expression:"address.fixedPhone"}})],1),s("el-form-item",{attrs:{label:"注册地址"}},[s("el-input",{attrs:{placeholder:"请填写注册地址"},model:{value:e.address.alias,callback:function(s){e.$set(e.address,"alias",s)},expression:"address.alias"}})],1)],1),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{attrs:{size:"small"},on:{click:function(s){e.dialogVisible=!1}}},[e._v("取消")]),s("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.saveAddress}},[e._v("保存")])],1)],1)],1)},i=[],l=(t(4114),{name:"UserInfo",data(){return{user:{},searchParam:{pageSize:5,currentPage:1,total:10},dialogVisible:!1,addresses:[{id:1,receiver:"张三",region:"北京",detailAddress:"北京市朝阳区xx街道xx小区xx号楼xx单元",phone:"13800138000",fixedPhone:"010-12345678",alias:"家"},{id:2,receiver:"李四",region:"上海",detailAddress:"上海市浦东新区xx街道xx小区xx号楼xx单元",phone:"13900139000",fixedPhone:"021-12345678",alias:"公司"},{id:3,receiver:"王五",region:"广州",detailAddress:"广州市天河区xx街道xx小区xx号楼xx单元",phone:"13700137000",fixedPhone:"020-12345678",alias:"朋友家"}],address:{type:"add",id:"",receiver:"",region:"",detailAddress:"",phone:"",fixedPhone:"",alias:""}}},methods:{handleSizeChange(e){this.searchParam.pageSize=e},handleCurrentChange(e){this.searchParam.currentPage=e},openDialog(e,s){this.address={type:e,id:s.id||"",receiver:s.receiver||"",region:s.region||"",detailAddress:s.detailAddress||"",phone:s.phone||"",fixedPhone:s.fixedPhone||"",alias:s.alias||""},this.dialogVisible=!0},saveAddress(){if(this.address.id){const e=this.addresses.findIndex(e=>e.id===this.address.id);-1!==e&&(this.addresses[e]={...this.address})}else this.address.id=Date.now(),this.addresses.push({...this.address});this.$message({message:"保存成功",type:"success"}),this.dialogVisible=!1},handleEdit(e){this.address={...e},this.dialogVisible=!0},handleDelete(e){this.$confirm("此操作将永久删除该地址, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const s=this.addresses.findIndex(s=>s.id===e.id);-1!==s&&this.addresses.splice(s,1),this.$message({type:"success",message:"删除成功!"})}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}}),d=l,r=t(1656),n=(0,r.A)(d,a,i,!1,null,"0b642f68",null),o=n.exports}}]); +//# sourceMappingURL=113.5c3b5964.js.map \ No newline at end of file diff --git a/dist/js/113.5c3b5964.js.map b/dist/js/113.5c3b5964.js.map new file mode 100644 index 0000000..1442497 --- /dev/null +++ b/dist/js/113.5c3b5964.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/113.5c3b5964.js","mappings":"sJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,E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,iBAAA,KACAf,KAAA,YACAgB,KAAA,KACA,MAAAV,EAAA,KAAAvC,UAAAwC,UAAAF,GAAAA,EAAAN,KAAAzB,EAAAyB,KACA,IAAAO,GACA,KAAAvC,UAAAkD,OAAAX,EAAA,GAEA,KAAAK,SAAA,CACAX,KAAA,UACAY,QAAA,YAEAM,MAAA,KACA,KAAAP,SAAA,CACAX,KAAA,OACAY,QAAA,WAGA,KC3LmQ,I,UCO/PO,GAAY,OACd,EACAjE,EACAqC,GACA,EACA,KACA,WACA,MAIF,EAAe4B,E","sources":["webpack://abcdf/./src/views/User/UserInvoice.vue","webpack://abcdf/src/views/User/UserInvoice.vue","webpack://abcdf/./src/views/User/UserInvoice.vue?a45f","webpack://abcdf/./src/views/User/UserInvoice.vue?ca6a"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg\"},[_c('el-card',{staticStyle:{\"width\":\"100%\"}},[_c('div',{staticClass:\"clearfix flex-between\",attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('span',[_vm._v(\"我的发票\")]),_c('div',{staticClass:\"flex-between\"},[_c('span',{staticStyle:{\"color\":\"#666\",\"font-size\":\"12px\"}},[_vm._v(\"您已保存了1个发票抬头信息,做多可创建5个。\")]),_c('el-button',{staticStyle:{\"float\":\"right\"},attrs:{\"size\":\"small\",\"type\":\"primary\"},on:{\"click\":function($event){return _vm.openDialog('add', {})}}},[_vm._v(\"新增\")])],1)]),_c('el-table',{staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.addresses,\"border\":\"\"}},[_c('el-table-column',{attrs:{\"prop\":\"receiver\",\"label\":\"发票抬头\",\"width\":\"120\"}}),_c('el-table-column',{attrs:{\"prop\":\"region\",\"label\":\"纳税人识别号\",\"width\":\"120\"}}),_c('el-table-column',{attrs:{\"prop\":\"detailAddress\",\"label\":\"开户银行\",\"width\":\"300\"}}),_c('el-table-column',{attrs:{\"prop\":\"phone\",\"label\":\"银行账号\",\"width\":\"150\"}}),_c('el-table-column',{attrs:{\"prop\":\"fixedPhone\",\"label\":\"注册电话\",\"width\":\"150\"}}),_c('el-table-column',{attrs:{\"prop\":\"alias\",\"label\":\"注册地址\",\"width\":\"120\"}}),_c('el-table-column',{attrs:{\"label\":\"操作\",\"width\":\"200\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.handleEdit(scope.row)}}},[_vm._v(\"编辑\")]),_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){return _vm.handleDelete(scope.row)}}},[_vm._v(\"删除\")])]}}])})],1)],1),_c('el-dialog',{attrs:{\"title\":\"编辑发票抬头\",\"visible\":_vm.dialogVisible,\"width\":\"700px\"},on:{\"update:visible\":function($event){_vm.dialogVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.address,\"label-width\":\"120px\",\"size\":\"small\"}},[_c('el-form-item',{attrs:{\"label\":\"*发票抬头\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写发票抬头\"},model:{value:(_vm.address.receiver),callback:function ($$v) {_vm.$set(_vm.address, \"receiver\", $$v)},expression:\"address.receiver\"}})],1),_c('el-form-item',{attrs:{\"label\":\"*纳税人识别号\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写纳税人识别号\"},model:{value:(_vm.address.region),callback:function ($$v) {_vm.$set(_vm.address, \"region\", $$v)},expression:\"address.region\"}})],1),_c('el-form-item',{attrs:{\"label\":\"*开户银行\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写开户银行\"},model:{value:(_vm.address.detailAddress),callback:function ($$v) {_vm.$set(_vm.address, \"detailAddress\", $$v)},expression:\"address.detailAddress\"}})],1),_c('el-form-item',{attrs:{\"label\":\"*银行账号\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写银行账号\"},model:{value:(_vm.address.phone),callback:function ($$v) {_vm.$set(_vm.address, \"phone\", $$v)},expression:\"address.phone\"}})],1),_c('el-form-item',{attrs:{\"label\":\"注册电话\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写注册号码\"},model:{value:(_vm.address.fixedPhone),callback:function ($$v) {_vm.$set(_vm.address, \"fixedPhone\", $$v)},expression:\"address.fixedPhone\"}})],1),_c('el-form-item',{attrs:{\"label\":\"注册地址\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写注册地址\"},model:{value:(_vm.address.alias),callback:function ($$v) {_vm.$set(_vm.address, \"alias\", $$v)},expression:\"address.alias\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"size\":\"small\"},on:{\"click\":function($event){_vm.dialogVisible = false}}},[_vm._v(\"取消\")]),_c('el-button',{attrs:{\"size\":\"small\",\"type\":\"primary\"},on:{\"click\":_vm.saveAddress}},[_vm._v(\"保存\")])],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./UserInvoice.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./UserInvoice.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./UserInvoice.vue?vue&type=template&id=0b642f68&scoped=true\"\nimport script from \"./UserInvoice.vue?vue&type=script&lang=js\"\nexport * from \"./UserInvoice.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0b642f68\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","staticStyle","attrs","slot","_v","on","$event","openDialog","addresses","scopedSlots","_u","key","fn","scope","handleEdit","row","handleDelete","dialogVisible","address","model","value","receiver","callback","$$v","$set","expression","region","detailAddress","phone","fixedPhone","alias","saveAddress","staticRenderFns","name","data","user","searchParam","pageSize","currentPage","total","id","type","methods","handleSizeChange","val","handleCurrentChange","item","index","findIndex","Date","now","push","$message","message","$confirm","confirmButtonText","cancelButtonText","then","splice","catch","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/133.73086f3e.js b/dist/js/133.73086f3e.js deleted file mode 100644 index 6e99df1..0000000 --- a/dist/js/133.73086f3e.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[133],{4133:function(e,s,a){a.r(s),a.d(s,{default:function(){return o}});var t=function(){var e=this,s=e._self._c;return s("div",{staticClass:"bg"},[s("el-card",{staticStyle:{width:"100%"}},[s("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[s("span",[e._v("我的发票")]),s("el-button",{staticStyle:{float:"right"},attrs:{size:"small",type:"primary"},on:{click:function(s){return e.openDialog("add",{})}}},[e._v("新增")])],1),s("el-table",{staticStyle:{width:"100%"},attrs:{data:e.addresses,border:""}},[s("el-table-column",{attrs:{prop:"receiver",label:"发票抬头",width:"120"}}),s("el-table-column",{attrs:{prop:"region",label:"纳税人识别号",width:"120"}}),s("el-table-column",{attrs:{prop:"detailAddress",label:"开户银行",width:"300"}}),s("el-table-column",{attrs:{prop:"phone",label:"银行账号",width:"150"}}),s("el-table-column",{attrs:{prop:"fixedPhone",label:"注册电话",width:"150"}}),s("el-table-column",{attrs:{prop:"alias",label:"注册地址",width:"120"}}),s("el-table-column",{attrs:{label:"操作",width:"200"},scopedSlots:e._u([{key:"default",fn:function(a){return[s("el-button",{attrs:{size:"mini"},on:{click:function(s){return e.handleEdit(a.row)}}},[e._v("编辑")]),s("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(s){return e.handleDelete(a.row)}}},[e._v("删除")])]}}])})],1),s("div",{staticStyle:{"text-align":"right","margin-top":"20px"}},[s("el-pagination",{attrs:{"current-page":e.searchParam.currentPage,"page-sizes":[5,10,20],"page-size":e.searchParam.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.searchParam.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1),s("el-dialog",{attrs:{title:"编辑发票抬头",visible:e.dialogVisible,width:"700px"},on:{"update:visible":function(s){e.dialogVisible=s}}},[s("el-form",{attrs:{model:e.address,"label-width":"120px",size:"small"}},[s("el-form-item",{attrs:{label:"*发票抬头"}},[s("el-input",{attrs:{placeholder:"请填写发票抬头"},model:{value:e.address.receiver,callback:function(s){e.$set(e.address,"receiver",s)},expression:"address.receiver"}})],1),s("el-form-item",{attrs:{label:"*纳税人识别号"}},[s("el-input",{attrs:{placeholder:"请填写纳税人识别号"},model:{value:e.address.region,callback:function(s){e.$set(e.address,"region",s)},expression:"address.region"}})],1),s("el-form-item",{attrs:{label:"*开户银行"}},[s("el-input",{attrs:{placeholder:"请填写开户银行"},model:{value:e.address.detailAddress,callback:function(s){e.$set(e.address,"detailAddress",s)},expression:"address.detailAddress"}})],1),s("el-form-item",{attrs:{label:"*银行账号"}},[s("el-input",{attrs:{placeholder:"请填写银行账号"},model:{value:e.address.phone,callback:function(s){e.$set(e.address,"phone",s)},expression:"address.phone"}})],1),s("el-form-item",{attrs:{label:"注册电话"}},[s("el-input",{attrs:{placeholder:"请填写注册号码"},model:{value:e.address.fixedPhone,callback:function(s){e.$set(e.address,"fixedPhone",s)},expression:"address.fixedPhone"}})],1),s("el-form-item",{attrs:{label:"注册地址"}},[s("el-input",{attrs:{placeholder:"请填写注册地址"},model:{value:e.address.alias,callback:function(s){e.$set(e.address,"alias",s)},expression:"address.alias"}})],1)],1),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{attrs:{size:"small"},on:{click:function(s){e.dialogVisible=!1}}},[e._v("取消")]),s("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.saveAddress}},[e._v("保存")])],1)],1)],1)},i=[],l=(a(4114),{name:"UserInfo",data(){return{user:{},searchParam:{pageSize:5,currentPage:1,total:10},dialogVisible:!1,addresses:[{id:1,receiver:"张三",region:"北京",detailAddress:"北京市朝阳区xx街道xx小区xx号楼xx单元",phone:"13800138000",fixedPhone:"010-12345678",alias:"家"},{id:2,receiver:"李四",region:"上海",detailAddress:"上海市浦东新区xx街道xx小区xx号楼xx单元",phone:"13900139000",fixedPhone:"021-12345678",alias:"公司"},{id:3,receiver:"王五",region:"广州",detailAddress:"广州市天河区xx街道xx小区xx号楼xx单元",phone:"13700137000",fixedPhone:"020-12345678",alias:"朋友家"}],address:{type:"add",id:"",receiver:"",region:"",detailAddress:"",phone:"",fixedPhone:"",alias:""}}},methods:{handleSizeChange(e){this.searchParam.pageSize=e},handleCurrentChange(e){this.searchParam.currentPage=e},openDialog(e,s){this.address={type:e,id:s.id||"",receiver:s.receiver||"",region:s.region||"",detailAddress:s.detailAddress||"",phone:s.phone||"",fixedPhone:s.fixedPhone||"",alias:s.alias||""},this.dialogVisible=!0},saveAddress(){if(this.address.id){const e=this.addresses.findIndex(e=>e.id===this.address.id);-1!==e&&(this.addresses[e]={...this.address})}else this.address.id=Date.now(),this.addresses.push({...this.address});this.$message({message:"保存成功",type:"success"}),this.dialogVisible=!1},handleEdit(e){this.address={...e},this.dialogVisible=!0},handleDelete(e){this.$confirm("此操作将永久删除该地址, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const s=this.addresses.findIndex(s=>s.id===e.id);-1!==s&&this.addresses.splice(s,1),this.$message({type:"success",message:"删除成功!"})}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}}),r=l,d=a(1656),n=(0,d.A)(r,t,i,!1,null,"ccab2488",null),o=n.exports}}]); -//# sourceMappingURL=133.73086f3e.js.map \ No newline at end of file diff --git a/dist/js/133.73086f3e.js.map b/dist/js/133.73086f3e.js.map deleted file mode 100644 index 33fa874..0000000 --- a/dist/js/133.73086f3e.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/133.73086f3e.js","mappings":"sJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,MAAM,CAACF,EAAG,UAAU,CAACG,YAAY,CAAC,MAAQ,SAAS,CAACH,EAAG,MAAM,CAACE,YAAY,WAAWE,MAAM,CAAC,KAAO,UAAUC,KAAK,UAAU,CAACL,EAAG,OAAO,CAACF,EAAIQ,GAAG,UAAUN,EAAG,YAAY,CAACG,YAAY,CAAC,MAAQ,SAASC,MAAM,CAAC,KAAO,QAAQ,KAAO,WAAWG,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOV,EAAIW,WAAW,MAAO,CAAC,EAAE,IAAI,CAACX,EAAIQ,GAAG,SAAS,GAAGN,EAAG,WAAW,CAACG,YAAY,CAAC,MAAQ,QAAQC,MAAM,CAAC,KAAON,EAAIY,UAAU,OAAS,KAAK,CAACV,EAAG,kBAAkB,CAACI,MAAM,CAAC,KAAO,WAAW,MAAQ,OAAO,MAAQ,SAASJ,EAAG,kBAAkB,CAACI,MAAM,CAAC,KAAO,SAAS,MAAQ,SAAS,MAAQ,SAASJ,EAAG,kBAAkB,CAACI,MAAM,CAAC,KAAO,gBAAgB,MAAQ,OAAO,MAAQ,SAASJ,EAAG,kBAAkB,CAACI,MAAM,CAAC,KAAO,QAAQ,MAAQ,OAAO,MAAQ,SAASJ,EAAG,kBAAkB,CAACI,MAAM,CAAC,KAAO,aAAa,MAAQ,OAAO,MAAQ,SAASJ,EAAG,kBAAkB,CAACI,MAAM,CAAC,KAAO,QAAQ,MAAQ,OAAO,MAAQ,SAASJ,EAAG,kBAAkB,CAACI,MAAM,CAAC,MAAQ,KAAK,MAAQ,O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EA,MAAAK,EAAA,KAAAvC,UAAAwC,UAAAF,GAAAA,EAAAJ,KAAA,KAAAlB,QAAAkB,KACA,IAAAK,IACA,KAAAvC,UAAAuC,GAAA,SAAAvB,SAEA,MAEA,KAAAA,QAAAkB,GAAAO,KAAAC,MACA,KAAA1C,UAAA2C,KAAA,SAAA3B,UAEA,KAAA4B,SAAA,CACAC,QAAA,OACAV,KAAA,YAEA,KAAApB,eAAA,CACA,EACAT,UAAAA,CAAAC,GACA,KAAAS,QAAA,IAAAT,GACA,KAAAQ,eAAA,CACA,EACAP,YAAAA,CAAAD,GACA,KAAAuC,SAAA,2BACAC,kBAAA,KACAC,iBAAA,KACAb,KAAA,YACAc,KAAA,KACA,MAAAV,EAAA,KAAAvC,UAAAwC,UAAAF,GAAAA,EAAAJ,KAAA3B,EAAA2B,KACA,IAAAK,GACA,KAAAvC,UAAAkD,OAAAX,EAAA,GAEA,KAAAK,SAAA,CACAT,KAAA,UACAU,QAAA,YAEAM,MAAA,KACA,KAAAP,SAAA,CACAT,KAAA,OACAU,QAAA,WAGA,KCxLmQ,I,UCO/PO,GAAY,OACd,EACAjE,EACA2C,GACA,EACA,KACA,WACA,MAIF,EAAesB,E","sources":["webpack://abcdf/./src/views/User/UserInvoice.vue","webpack://abcdf/src/views/User/UserInvoice.vue","webpack://abcdf/./src/views/User/UserInvoice.vue?a45f","webpack://abcdf/./src/views/User/UserInvoice.vue?ca6a"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg\"},[_c('el-card',{staticStyle:{\"width\":\"100%\"}},[_c('div',{staticClass:\"clearfix\",attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('span',[_vm._v(\"我的发票\")]),_c('el-button',{staticStyle:{\"float\":\"right\"},attrs:{\"size\":\"small\",\"type\":\"primary\"},on:{\"click\":function($event){return _vm.openDialog('add', {})}}},[_vm._v(\"新增\")])],1),_c('el-table',{staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.addresses,\"border\":\"\"}},[_c('el-table-column',{attrs:{\"prop\":\"receiver\",\"label\":\"发票抬头\",\"width\":\"120\"}}),_c('el-table-column',{attrs:{\"prop\":\"region\",\"label\":\"纳税人识别号\",\"width\":\"120\"}}),_c('el-table-column',{attrs:{\"prop\":\"detailAddress\",\"label\":\"开户银行\",\"width\":\"300\"}}),_c('el-table-column',{attrs:{\"prop\":\"phone\",\"label\":\"银行账号\",\"width\":\"150\"}}),_c('el-table-column',{attrs:{\"prop\":\"fixedPhone\",\"label\":\"注册电话\",\"width\":\"150\"}}),_c('el-table-column',{attrs:{\"prop\":\"alias\",\"label\":\"注册地址\",\"width\":\"120\"}}),_c('el-table-column',{attrs:{\"label\":\"操作\",\"width\":\"200\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.handleEdit(scope.row)}}},[_vm._v(\"编辑\")]),_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){return _vm.handleDelete(scope.row)}}},[_vm._v(\"删除\")])]}}])})],1),_c('div',{staticStyle:{\"text-align\":\"right\",\"margin-top\":\"20px\"}},[_c('el-pagination',{attrs:{\"current-page\":_vm.searchParam.currentPage,\"page-sizes\":[5, 10, 20],\"page-size\":_vm.searchParam.pageSize,\"layout\":\"total, sizes, prev, pager, next, jumper\",\"total\":_vm.searchParam.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1)],1),_c('el-dialog',{attrs:{\"title\":\"编辑发票抬头\",\"visible\":_vm.dialogVisible,\"width\":\"700px\"},on:{\"update:visible\":function($event){_vm.dialogVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.address,\"label-width\":\"120px\",\"size\":\"small\"}},[_c('el-form-item',{attrs:{\"label\":\"*发票抬头\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写发票抬头\"},model:{value:(_vm.address.receiver),callback:function ($$v) {_vm.$set(_vm.address, \"receiver\", $$v)},expression:\"address.receiver\"}})],1),_c('el-form-item',{attrs:{\"label\":\"*纳税人识别号\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写纳税人识别号\"},model:{value:(_vm.address.region),callback:function ($$v) {_vm.$set(_vm.address, \"region\", $$v)},expression:\"address.region\"}})],1),_c('el-form-item',{attrs:{\"label\":\"*开户银行\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写开户银行\"},model:{value:(_vm.address.detailAddress),callback:function ($$v) {_vm.$set(_vm.address, \"detailAddress\", $$v)},expression:\"address.detailAddress\"}})],1),_c('el-form-item',{attrs:{\"label\":\"*银行账号\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写银行账号\"},model:{value:(_vm.address.phone),callback:function ($$v) {_vm.$set(_vm.address, \"phone\", $$v)},expression:\"address.phone\"}})],1),_c('el-form-item',{attrs:{\"label\":\"注册电话\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写注册号码\"},model:{value:(_vm.address.fixedPhone),callback:function ($$v) {_vm.$set(_vm.address, \"fixedPhone\", $$v)},expression:\"address.fixedPhone\"}})],1),_c('el-form-item',{attrs:{\"label\":\"注册地址\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写注册地址\"},model:{value:(_vm.address.alias),callback:function ($$v) {_vm.$set(_vm.address, \"alias\", $$v)},expression:\"address.alias\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"size\":\"small\"},on:{\"click\":function($event){_vm.dialogVisible = false}}},[_vm._v(\"取消\")]),_c('el-button',{attrs:{\"size\":\"small\",\"type\":\"primary\"},on:{\"click\":_vm.saveAddress}},[_vm._v(\"保存\")])],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./UserInvoice.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./UserInvoice.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./UserInvoice.vue?vue&type=template&id=ccab2488&scoped=true\"\nimport script from \"./UserInvoice.vue?vue&type=script&lang=js\"\nexport * from \"./UserInvoice.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"ccab2488\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","staticStyle","attrs","slot","_v","on","$event","openDialog","addresses","scopedSlots","_u","key","fn","scope","handleEdit","row","handleDelete","searchParam","currentPage","pageSize","total","handleSizeChange","handleCurrentChange","dialogVisible","address","model","value","receiver","callback","$$v","$set","expression","region","detailAddress","phone","fixedPhone","alias","saveAddress","staticRenderFns","name","data","user","id","type","methods","val","item","index","findIndex","Date","now","push","$message","message","$confirm","confirmButtonText","cancelButtonText","then","splice","catch","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/135.08e8073a.js b/dist/js/135.08e8073a.js new file mode 100644 index 0000000..9529d09 --- /dev/null +++ b/dist/js/135.08e8073a.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[135],{2135:function(t,e,s){s.r(e),s.d(e,{default:function(){return r}});var l=function(){var t=this,e=t._self._c;return e("div",{staticClass:"bg"},[e("div",[e("div",{staticClass:"order-products",staticStyle:{padding:"0 20px",background:"#f8f9fa","border-top":"1px solid #eee","border-bottom":"1px solid #eee","margin-bottom":"20px"}},[e("div",{staticClass:"product-item"},[e("div",{staticClass:"product-select"},[e("el-checkbox",{on:{change:t.handleSelectAll},model:{value:t.selectAll,callback:function(e){t.selectAll=e},expression:"selectAll"}},[t._v("全选")])],1),t._m(0),e("div",{staticClass:"product-box"},[t._v("单价(元)")]),e("div",{staticClass:"product-quantity"},[t._v("数量")]),e("div",{staticClass:"product-box"},[t._v("收货方式")]),e("div",{staticClass:"product-box"},[t._v("小计(元)")]),e("div",{staticClass:"product-box"},[t._v("操作")])])]),t._l(t.list,function(s){return e("div",{key:s.id,staticClass:"order-card"},[e("div",{staticClass:"order-header flex-between"},[e("div",{staticClass:"product-select"},[e("el-checkbox",{on:{change:function(e){return t.handleSelectShop(s)}},model:{value:s.selected,callback:function(e){t.$set(s,"selected",e)},expression:"shop.selected"}},[e("span",{staticStyle:{opacity:"0"}},[t._v("全选")])])],1),e("div",{staticClass:"product-details"},[e("div",{staticClass:"product-name"},[t._v("供应商名称:"+t._s(s.shop_name))])])]),e("div",{staticClass:"order-products"},t._l(s.goods,function(s){return e("div",{key:s.id,staticClass:"product-item"},[e("div",{staticClass:"product-select"},[e("el-checkbox",{on:{change:t.handleSelect},model:{value:s.selected,callback:function(e){t.$set(s,"selected",e)},expression:"goods.selected"}},[e("span",{staticStyle:{opacity:"0"}},[t._v("全选")])])],1),e("div",{staticClass:"product-details flex-between"},[e("img",{staticClass:"product-image",attrs:{src:s.product.headimg}}),e("div",{staticClass:"product-details"},[e("div",{staticClass:"product-name"},[t._v(t._s(s.product.title))]),e("div",{staticClass:"product-spec"},[t._v(t._s(s.sku.sku_name))])])]),e("div",{staticClass:"product-box"},[t._v("¥"+t._s((s.sku.price/100).toFixed(2)))]),e("div",{staticClass:"product-quantity"},[e("el-input-number",{attrs:{size:"small",min:1,step:1},on:{change:function(e){return t.handleNumChange(s)}},model:{value:s.num,callback:function(e){t.$set(s,"num",e)},expression:"goods.num"}})],1),e("div",{staticClass:"product-box"},[t._v("邮寄")]),e("div",{staticClass:"product-box product-price"},[t._v("¥"+t._s((s.num*s.sku.price/100).toFixed(2)))]),e("div",{staticClass:"product-box"},[e("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(e){return t.delItem(s)}}},[t._v("删除")])],1)])}),0)])}),t.list.length<=0?e("el-empty",{attrs:{description:"暂无数据"}}):t._e(),e("div",{staticClass:"cart-footer"},[e("el-button",{attrs:{disabled:0===t.selectedRows.length,type:"text",size:"mini"},on:{click:t.deleteSelected}},[t._v(" 删除选中商品 ")]),e("div",{staticClass:"flex-between"},[e("div",{staticClass:"selected-info"},[t._v(" 已选商品 "),e("span",{staticClass:"import-text"},[t._v(t._s(t.selectedRows.length))]),t._v(" 件    总价: "),e("span",{staticClass:"import-text total-price"},[t._v(t._s(t.totalPrice))]),t._v(" (不含运费) ")]),e("el-button",{attrs:{type:"primary",disabled:0===t.selectedRows.length},on:{click:t.handleCheckout}},[t._v("去结算")])],1)],1)],2)])},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"product-details"},[e("div",{staticClass:"product-name"},[t._v("商品")])])}],c=(s(4114),s(8111),s(1148),s(7588),s(1701),s(3579),{name:"OrderList",data(){return{activeTab:"all",currentPage:1,pageSize:10,list:[],selectAll:!1}},mounted(){this.getList()},computed:{selectedRows(){let t=[];return this.list.forEach(e=>{e.goods.forEach(e=>{e.selected&&t.push(e)})}),t},totalPrice(){let t=0;return this.selectedRows.forEach(e=>{t+=e.num*e.sku.price/100}),t.toFixed(2)}},methods:{getList(){this.post({customBaseURL:"/api"},"/api/cart/get_list",!0).then(t=>{let e=t.data||[],s=this.selectedRows.map(t=>t.id);e.forEach(t=>{t.selected=!1,t.goods.forEach(t=>{t.selected=s.includes(t.id)})}),this.list=e,this.judgeSelectAll()})},handleSelectAll(t){t?this.list.forEach(t=>{t.goods.forEach(t=>{t&&t.product&&t.sku&&"off"==t.sku.flag?t.selected=!1:t.selected=!0})}):this.cartList.forEach(t=>{t.selected=!1}),this.judgeSelectAll()},handleSelectShop(t){t.selected&&t.goods.forEach(t=>{t&&t.product&&t.sku&&"off"==t.sku.flag?t.selected=!1:t.selected=!0}),this.judgeSelectAll()},handleSelect(){this.judgeSelectAll()},judgeSelectAll(){this.selectedRows=[],this.list.forEach(t=>{t.goods.some(t=>"on"==t.sku.flag)?t.goods.some(t=>"on"==t.sku.flag&&!t.selected)?t.selected=!1:t.selected=!0:t.selected=!1}),this.list.every(t=>t.selected)&&this.list.length>0?this.selectAll=!0:this.selectAll=!1},handleNumChange(t){this.post({id:t.id,num:t.num,customBaseURL:"/api"},"/api/cart/update_sku").then(t=>{})},delItem(t){this.post({id:t.id,customBaseURL:"/api"},"/api/cart/del_sku").then(t=>{this.getList()})},deleteSelected(){let t=this.selectedRows.map(t=>t.id).join(",");this.post({ids:t,customBaseURL:"/api"},"/api/cart/del_skus").then(t=>{this.getList()})},handleSizeChange(t){this.pageSize=t},handleCurrentChange(t){this.currentPage=t},payOrder(t){this.$message({message:`订单 ${t} 去付款`,type:"info"})}}}),a=c,d=s(1656),o=(0,d.A)(a,l,i,!1,null,"2bf96cfd",null),r=o.exports}}]); +//# sourceMappingURL=135.08e8073a.js.map \ No newline at end of file diff --git a/dist/js/135.08e8073a.js.map b/dist/js/135.08e8073a.js.map new file mode 100644 index 0000000..9d2a7d9 --- /dev/null +++ b/dist/js/135.08e8073a.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/135.08e8073a.js","mappings":"sJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,MAAM,CAACF,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,iBAAiBC,YAAY,CAAC,QAAU,SAAS,WAAa,UAAU,aAAa,iBAAiB,gBAAgB,iBAAiB,gBAAgB,SAAS,CAACH,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,MAAM,CAACE,YAAY,kBAAkB,CAACF,EAAG,cAAc,CAACI,GAAG,CAAC,OAASN,EAAIO,iBAAiBC,MAA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,aAAA,GACA,KAAAzB,KAAAuC,QAAAC,IACAA,EAAA9B,MAAA+C,KAAAC,GAAA,MAAAA,EAAA1C,IAAAuC,MACAf,EAAA9B,MAAA+C,KAAAC,GAAA,MAAAA,EAAA1C,IAAAuC,OAAAG,EAAApD,UACAkC,EAAAlC,UAAA,EAEAkC,EAAAlC,UAAA,EAGAkC,EAAAlC,UAAA,IAIA,KAAAN,KAAA2D,MAAAnB,GAAAA,EAAAlC,WAAA,KAAAN,KAAAuB,OAAA,EACA,KAAA9B,WAAA,EAEA,KAAAA,WAAA,CAEA,EAGA2B,eAAAA,CAAAV,GACA,KAAAiC,KAAA,CAAAxC,GAAAO,EAAAP,GAAAkB,IAAAX,EAAAW,IAAAuB,cAAA,gCAAAC,KAAAC,MAGA,EAEAxB,OAAAA,CAAA4B,GACA,KAAAP,KAAA,CAAAxC,GAAA+C,EAAA/C,GAAAyC,cAAA,6BAAAC,KAAAC,IACA,KAAAV,WAEA,EACAV,cAAAA,GACA,IAAAkC,EAAA,KAAAnC,aAAAwB,IAAAT,GAAAA,EAAArC,IAAA0D,KAAA,KACA,KAAAlB,KAAA,CAAAiB,IAAAA,EAAAhB,cAAA,8BAAAC,KAAAC,IACA,KAAAV,WAEA,EAMA0B,gBAAAA,CAAAT,GACA,KAAAnB,SAAAmB,CACA,EAGAU,mBAAAA,CAAAV,GACA,KAAApB,YAAAoB,CACA,EAIAW,QAAAA,CAAAC,GACA,KAAAC,SAAA,CACAC,QAAA,MAAAF,QACAG,KAAA,QAEA,KChPoQ,I,UCQhQC,GAAY,OACd,EACAvF,EACA+C,GACA,EACA,KACA,WACA,MAIF,EAAewC,E","sources":["webpack://abcdf/./src/views/User/ShoppingCart.vue","webpack://abcdf/src/views/User/ShoppingCart.vue","webpack://abcdf/./src/views/User/ShoppingCart.vue?5cfe","webpack://abcdf/./src/views/User/ShoppingCart.vue?8f0f"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg\"},[_c('div',[_c('div',{staticClass:\"order-products\",staticStyle:{\"padding\":\"0 20px\",\"background\":\"#f8f9fa\",\"border-top\":\"1px solid #eee\",\"border-bottom\":\"1px solid #eee\",\"margin-bottom\":\"20px\"}},[_c('div',{staticClass:\"product-item\"},[_c('div',{staticClass:\"product-select\"},[_c('el-checkbox',{on:{\"change\":_vm.handleSelectAll},model:{value:(_vm.selectAll),callback:function ($$v) {_vm.selectAll=$$v},expression:\"selectAll\"}},[_vm._v(\"全选\")])],1),_vm._m(0),_c('div',{staticClass:\"product-box\"},[_vm._v(\"单价(元)\")]),_c('div',{staticClass:\"product-quantity\"},[_vm._v(\"数量\")]),_c('div',{staticClass:\"product-box\"},[_vm._v(\"收货方式\")]),_c('div',{staticClass:\"product-box\"},[_vm._v(\"小计(元)\")]),_c('div',{staticClass:\"product-box\"},[_vm._v(\"操作\")])])]),_vm._l((_vm.list),function(shop){return _c('div',{key:shop.id,staticClass:\"order-card\"},[_c('div',{staticClass:\"order-header flex-between\"},[_c('div',{staticClass:\"product-select\"},[_c('el-checkbox',{on:{\"change\":function($event){return _vm.handleSelectShop(shop)}},model:{value:(shop.selected),callback:function ($$v) {_vm.$set(shop, \"selected\", $$v)},expression:\"shop.selected\"}},[_c('span',{staticStyle:{\"opacity\":\"0\"}},[_vm._v(\"全选\")])])],1),_c('div',{staticClass:\"product-details\"},[_c('div',{staticClass:\"product-name\"},[_vm._v(\"供应商名称:\"+_vm._s(shop.shop_name))])])]),_c('div',{staticClass:\"order-products\"},_vm._l((shop.goods),function(goods){return _c('div',{key:goods.id,staticClass:\"product-item\"},[_c('div',{staticClass:\"product-select\"},[_c('el-checkbox',{on:{\"change\":_vm.handleSelect},model:{value:(goods.selected),callback:function ($$v) {_vm.$set(goods, \"selected\", $$v)},expression:\"goods.selected\"}},[_c('span',{staticStyle:{\"opacity\":\"0\"}},[_vm._v(\"全选\")])])],1),_c('div',{staticClass:\"product-details flex-between\"},[_c('img',{staticClass:\"product-image\",attrs:{\"src\":goods.product.headimg}}),_c('div',{staticClass:\"product-details\"},[_c('div',{staticClass:\"product-name\"},[_vm._v(_vm._s(goods.product.title))]),_c('div',{staticClass:\"product-spec\"},[_vm._v(_vm._s(goods.sku.sku_name))])])]),_c('div',{staticClass:\"product-box\"},[_vm._v(\"¥\"+_vm._s((goods.sku.price/100).toFixed(2)))]),_c('div',{staticClass:\"product-quantity\"},[_c('el-input-number',{attrs:{\"size\":\"small\",\"min\":1,\"step\":1},on:{\"change\":function($event){return _vm.handleNumChange(goods)}},model:{value:(goods.num),callback:function ($$v) {_vm.$set(goods, \"num\", $$v)},expression:\"goods.num\"}})],1),_c('div',{staticClass:\"product-box\"},[_vm._v(\"邮寄\")]),_c('div',{staticClass:\"product-box product-price\"},[_vm._v(\"¥\"+_vm._s((goods.num * goods.sku.price/100).toFixed(2)))]),_c('div',{staticClass:\"product-box\"},[_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.delItem(goods)}}},[_vm._v(\"删除\")])],1)])}),0)])}),(_vm.list.length<=0)?_c('el-empty',{attrs:{\"description\":\"暂无数据\"}}):_vm._e(),_c('div',{staticClass:\"cart-footer\"},[_c('el-button',{attrs:{\"disabled\":_vm.selectedRows.length === 0,\"type\":\"text\",\"size\":\"mini\"},on:{\"click\":_vm.deleteSelected}},[_vm._v(\" 删除选中商品 \")]),_c('div',{staticClass:\"flex-between\"},[_c('div',{staticClass:\"selected-info\"},[_vm._v(\" 已选商品 \"),_c('span',{staticClass:\"import-text\"},[_vm._v(_vm._s(_vm.selectedRows.length))]),_vm._v(\" 件    总价: \"),_c('span',{staticClass:\"import-text total-price\"},[_vm._v(_vm._s(_vm.totalPrice))]),_vm._v(\" (不含运费) \")]),_c('el-button',{attrs:{\"type\":\"primary\",\"disabled\":_vm.selectedRows.length === 0},on:{\"click\":_vm.handleCheckout}},[_vm._v(\"去结算\")])],1)],1)],2)])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"product-details\"},[_c('div',{staticClass:\"product-name\"},[_vm._v(\"商品\")])])\n}]\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ShoppingCart.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ShoppingCart.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ShoppingCart.vue?vue&type=template&id=2bf96cfd&scoped=true\"\nimport script from \"./ShoppingCart.vue?vue&type=script&lang=js\"\nexport * from \"./ShoppingCart.vue?vue&type=script&lang=js\"\nimport style0 from \"./ShoppingCart.vue?vue&type=style&index=0&id=2bf96cfd&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2bf96cfd\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","staticStyle","on","handleSelectAll","model","value","selectAll","callback","$$v","expression","_v","_m","_l","list","shop","key","id","$event","handleSelectShop","selected","$set","_s","shop_name","goods","handleSelect","attrs","product","headimg","title","sku","sku_name","price","toFixed","handleNumChange","num","delItem","length","_e","selectedRows","deleteSelected","totalPrice","handleCheckout","staticRenderFns","name","data","activeTab","currentPage","pageSize","mounted","getList","computed","rows","forEach","v","push","methods","post","customBaseURL","then","res","resData","currentSelectGoodsIds","map","item","includes","judgeSelectAll","val","t","flag","cartList","some","x","every","ids","join","handleSizeChange","handleCurrentChange","payOrder","orderId","$message","message","type","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/143.9d51e2ee.js b/dist/js/143.9d51e2ee.js new file mode 100644 index 0000000..d222b6d --- /dev/null +++ b/dist/js/143.9d51e2ee.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[143],{8524:function(e,s,t){t.r(s),t.d(s,{default:function(){return c}});var a=function(){var e=this,s=e._self._c;return s("div",{staticClass:"order-page"},[s("div",{staticClass:"page-header"},[s("h2",[e._v("填写收货人信息")]),s("el-button",{staticClass:"address-book-btn",attrs:{type:"text"}},[e._v(" 新增/修改地址 ")])],1),s("div",{staticClass:"info-section"},[s("h3",[e._v("收货人信息")]),s("div",{staticClass:"address-item"},[s("span",{staticClass:"label"},[e._v("收货人地址:")]),s("div",{staticClass:"address-content"},e._l(e.addresses,function(t,a){return s("div",{key:a,staticClass:"saved-address",class:{selected:e.selectedAddressIndex===a},on:{click:function(s){return e.selectAddress(a)}}},[s("span",{staticClass:"name-tag"},[e._v(e._s(t.name)+" "+e._s(t.province))]),s("span",{staticClass:"detail"},[e._v(e._s(t.address)+" "+e._s(t.phone))]),s("el-button",{staticClass:"set-default-btn",attrs:{type:"text"}},[e._v("设为默认")]),s("el-button",{staticClass:"edit-btn",attrs:{type:"text"}},[e._v("编辑")]),s("el-button",{staticClass:"delete-btn",attrs:{type:"text"}},[e._v("删除")])],1)}),0)]),s("div",{staticClass:"trade-type-item"},[s("span",{staticClass:"label"},[e._v("交易方式:")]),s("el-radio-group",{model:{value:e.selectedTradeType,callback:function(s){e.selectedTradeType=s},expression:"selectedTradeType"}},[s("el-radio",{attrs:{label:1}},[e._v("先款后货")]),s("el-radio",{attrs:{label:2}},[e._v("货到付款")])],1)],1),s("h3",[e._v("发票信息")]),s("div",{staticClass:"invoice-type-item"},[s("span",{staticClass:"label"},[e._v("发票类型:")]),s("el-radio-group",{model:{value:e.selectedInvoiceType,callback:function(s){e.selectedInvoiceType=s},expression:"selectedInvoiceType"}},[s("el-radio",{attrs:{label:1}},[e._v("增值税普通发票")]),s("el-radio",{attrs:{label:2}},[e._v("普通电子发票")])],1)],1),s("div",{staticClass:"invoice-title-item"},[s("span",{staticClass:"label"},[e._v("发票抬头:")]),s("el-select",{staticClass:"invoice-title-select",attrs:{placeholder:"请选择发票抬头"},model:{value:e.selectedInvoiceTitle,callback:function(s){e.selectedInvoiceTitle=s},expression:"selectedInvoiceTitle"}},e._l(e.invoiceTitles,function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id}})}),1),s("el-button",{staticClass:"add-title-btn",attrs:{type:"text"}},[e._v("+ 添加")])],1),s("h3",[e._v("收票地址")]),s("div",{staticClass:"invoice-address-item"},[s("span",{staticClass:"label"},[e._v("收票地址:")]),s("div",{staticClass:"address-content"},e._l(e.invoiceAddresses,function(t,a){return s("div",{key:a,staticClass:"saved-address",class:{selected:e.selectedInvoiceAddressIndex===a},on:{click:function(s){return e.selectInvoiceAddress(a)}}},[s("span",{staticClass:"name-tag"},[e._v(e._s(t.name)+" "+e._s(t.province))]),s("span",{staticClass:"detail"},[e._v(e._s(t.address)+" "+e._s(t.phone))]),s("el-button",{staticClass:"set-default-btn",attrs:{type:"text"}},[e._v("设为默认")]),s("el-button",{staticClass:"edit-btn",attrs:{type:"text"}},[e._v("编辑")]),s("el-button",{staticClass:"delete-btn",attrs:{type:"text"}},[e._v("删除")])],1)}),0)])]),e._m(0),s("div",{staticClass:"goods-section"},[s("h3",[e._v("商品清单")]),e._l(e.orderGroups,function(t,a){return s("div",{key:a,staticClass:"order-group"},[s("div",{staticClass:"supplier-info"},[s("span",[e._v("供货名称:"+e._s(t.supplier))])]),s("table",{staticClass:"goods-table"},[e._m(1,!0),s("tbody",e._l(t.items,function(t,a){return s("tr",{key:a},[s("td",[s("img",{staticClass:"goods-img",attrs:{src:t.image,alt:"商品图片"}}),s("span",{staticClass:"goods-name"},[e._v(e._s(t.name))])]),s("td",[e._v(e._s(t.spec))]),s("td",[e._v(e._s(t.price))]),s("td",[e._v(e._s(t.quantity))]),s("td",[e._v(e._s(t.freight))]),s("td",[e._v(e._s(t.deliveryType))]),s("td",{staticClass:"subtotal"},[e._v(e._s(t.subtotal))])])}),0)]),s("div",{staticClass:"order-remark"},[s("span",{staticClass:"remark-label"},[e._v("订单备注:")]),s("div",{staticClass:"rich-text-editor"},[s("el-input",{staticClass:"remark-editor",attrs:{type:"textarea",rows:"4",placeholder:"请输入订单备注信息"},model:{value:t.remark,callback:function(s){e.$set(t,"remark",s)},expression:"group.remark"}}),e._e()],1)])])}),s("div",{staticClass:"total-info"},[s("p",[e._v(" 共 "+e._s(e.totalGoodsCount)+" 件商品,总商品金额 ¥"+e._s(e.totalGoodsAmount)+" ")]),s("p",[e._v("总运费 ¥"+e._s(e.totalFreight))]),s("p",{staticClass:"pay-amount"},[e._v("实付总金额 ¥"+e._s(e.totalPayAmount))]),s("p",{staticClass:"address-info"},[e._v(" 配送地:"+e._s(e.selectedAddress.address)),s("br"),e._v(" 交货地:"+e._s(e.selectedAddress.address)+" "+e._s(e.selectedAddress.phone)+" ")]),s("el-button",{staticClass:"submit-btn",attrs:{type:"primary"},on:{click:e.submitOrder}},[e._v(" 提交订单 ")])],1)],2)])},i=[function(){var e=this,s=e._self._c;return s("div",{staticClass:"contract-section"},[s("h3",[e._v("签署合同")]),s("p",[e._v("如需签署合同,提交订单后,请至采购中心>合同中心签署")])])},function(){var e=this,s=e._self._c;return s("thead",[s("tr",[s("th",[e._v("商品")]),s("th",[e._v("规格")]),s("th",[e._v("单价(元)")]),s("th",[e._v("数量")]),s("th",[e._v("运费")]),s("th",[e._v("收货方式")]),s("th",[e._v("小计(元)")])])])}],d={name:"OrderPage",data(){return{addresses:[{id:1,name:"郑小工",province:"江苏省",address:"苏州市吴中区文化创意大厦16层",phone:"13000000000",isDefault:!0},{id:2,name:"郑小工",province:"江苏省",address:"苏州市吴中区文化创意大厦16层",phone:"13000000001",isDefault:!1}],selectedAddressIndex:0,selectedTradeType:1,selectedInvoiceType:1,invoiceTitles:[{id:1,name:"苏州特色农产品发展有限公司"},{id:2,name:"个人"},{id:3,name:"苏州科技有限公司"}],selectedInvoiceTitle:null,invoiceAddresses:[{id:1,name:"郑小工",province:"江苏省",address:"苏州市吴中区文化创意大厦16层",phone:"13000000000",isDefault:!0},{id:2,name:"郑小工",province:"江苏省",address:"苏州市吴中区文化创意大厦16层",phone:"13000000001",isDefault:!1}],selectedInvoiceAddressIndex:0,orderGroups:[{supplier:"新疆特色农产品开发有限公司",items:[{image:"https://picsum.photos/50/50?random=1",name:"产品标题产品标题产品标题",spec:"规格名称一样",price:"¥449",quantity:1,freight:"¥0.00",deliveryType:"邮寄",subtotal:"¥449.00"},{image:"https://picsum.photos/50/50?random=2",name:"产品标题产品标题",spec:"规格名称一样",price:"¥199",quantity:1,freight:"¥0.00",deliveryType:"快递",subtotal:"¥199.00"}],remark:""},{supplier:"新疆特色农产品开发有限公司",items:[{image:"https://picsum.photos/50/50?random=3",name:"产品标题产品标题产品标题",spec:"规格名称一样",price:"¥339",quantity:1,freight:"¥0.00",deliveryType:"邮寄",subtotal:"¥339.00"}],remark:""}],totalGoodsCount:3,totalGoodsAmount:973,totalFreight:0,totalPayAmount:973}},computed:{selectedAddress(){return this.addresses[this.selectedAddressIndex]||{}}},methods:{selectAddress(e){this.selectedAddressIndex=e},selectInvoiceAddress(e){this.selectedInvoiceAddressIndex=e},submitOrder(){null!==this.selectedAddressIndex?this.selectedInvoiceTitle?null!==this.selectedInvoiceAddressIndex?this.$message.success("订单提交成功!"):this.$message.warning("请选择收票地址"):this.$message.warning("请选择发票抬头"):this.$message.warning("请选择收货地址")}}},l=d,n=t(1656),r=(0,n.A)(l,a,i,!1,null,"4237bdf4",null),c=r.exports}}]); +//# sourceMappingURL=143.9d51e2ee.js.map \ No newline at end of file diff --git a/dist/js/143.9d51e2ee.js.map b/dist/js/143.9d51e2ee.js.map new file mode 100644 index 0000000..d5f8c3f --- /dev/null +++ b/dist/js/143.9d51e2ee.js.map @@ -0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,KAAAI,qBAAAJ,CACA,EAGA0B,oBAAAA,CAAA1B,GACA,KAAAyB,4BAAAzB,CACA,EAGAkD,WAAAA,GAEA,YAAA9C,qBAKA,KAAAgB,qBAKA,YAAAK,4BAKA,KAAA+B,SAAAC,QAAA,WAJA,KAAAD,SAAAE,QAAA,WALA,KAAAF,SAAAE,QAAA,WALA,KAAAF,SAAAE,QAAA,UAiBA,ICzV6P,I,UCQzPC,GAAY,OACd,EACAtE,EACA8D,GACA,EACA,KACA,WACA,MAIF,EAAeQ,E","sources":["webpack://abcdf/./src/views/Order/Index.vue","webpack://abcdf/src/views/Order/Index.vue","webpack://abcdf/./src/views/Order/Index.vue?7896","webpack://abcdf/./src/views/Order/Index.vue?7cca"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"order-page\"},[_c('div',{staticClass:\"page-header\"},[_c('h2',[_vm._v(\"填写收货人信息\")]),_c('el-button',{staticClass:\"address-book-btn\",attrs:{\"type\":\"text\"}},[_vm._v(\" 新增/修改地址 \")])],1),_c('div',{staticClass:\"info-section\"},[_c('h3',[_vm._v(\"收货人信息\")]),_c('div',{staticClass:\"address-item\"},[_c('span',{staticClass:\"label\"},[_vm._v(\"收货人地址:\")]),_c('div',{staticClass:\"address-content\"},_vm._l((_vm.addresses),function(addr,index){return _c('div',{key:index,staticClass:\"saved-address\",class:{ selected: _vm.selectedAddressIndex === index },on:{\"click\":function($event){return _vm.selectAddress(index)}}},[_c('span',{staticClass:\"name-tag\"},[_vm._v(_vm._s(addr.name)+\" \"+_vm._s(addr.province))]),_c('span',{staticClass:\"detail\"},[_vm._v(_vm._s(addr.address)+\" \"+_vm._s(addr.phone))]),_c('el-button',{staticClass:\"set-default-btn\",attrs:{\"type\":\"text\"}},[_vm._v(\"设为默认\")]),_c('el-button',{staticClass:\"edit-btn\",attrs:{\"type\":\"text\"}},[_vm._v(\"编辑\")]),_c('el-button',{staticClass:\"delete-btn\",attrs:{\"type\":\"text\"}},[_vm._v(\"删除\")])],1)}),0)]),_c('div',{staticClass:\"trade-type-item\"},[_c('span',{staticClass:\"label\"},[_vm._v(\"交易方式:\")]),_c('el-radio-group',{model:{value:(_vm.selectedTradeType),callback:function ($$v) {_vm.selectedTradeType=$$v},expression:\"selectedTradeType\"}},[_c('el-radio',{attrs:{\"label\":1}},[_vm._v(\"先款后货\")]),_c('el-radio',{attrs:{\"label\":2}},[_vm._v(\"货到付款\")])],1)],1),_c('h3',[_vm._v(\"发票信息\")]),_c('div',{staticClass:\"invoice-type-item\"},[_c('span',{staticClass:\"label\"},[_vm._v(\"发票类型:\")]),_c('el-radio-group',{model:{value:(_vm.selectedInvoiceType),callback:function ($$v) {_vm.selectedInvoiceType=$$v},expression:\"selectedInvoiceType\"}},[_c('el-radio',{attrs:{\"label\":1}},[_vm._v(\"增值税普通发票\")]),_c('el-radio',{attrs:{\"label\":2}},[_vm._v(\"普通电子发票\")])],1)],1),_c('div',{staticClass:\"invoice-title-item\"},[_c('span',{staticClass:\"label\"},[_vm._v(\"发票抬头:\")]),_c('el-select',{staticClass:\"invoice-title-select\",attrs:{\"placeholder\":\"请选择发票抬头\"},model:{value:(_vm.selectedInvoiceTitle),callback:function ($$v) {_vm.selectedInvoiceTitle=$$v},expression:\"selectedInvoiceTitle\"}},_vm._l((_vm.invoiceTitles),function(title,index){return _c('el-option',{key:index,attrs:{\"label\":title.name,\"value\":title.id}})}),1),_c('el-button',{staticClass:\"add-title-btn\",attrs:{\"type\":\"text\"}},[_vm._v(\"+ 添加\")])],1),_c('h3',[_vm._v(\"收票地址\")]),_c('div',{staticClass:\"invoice-address-item\"},[_c('span',{staticClass:\"label\"},[_vm._v(\"收票地址:\")]),_c('div',{staticClass:\"address-content\"},_vm._l((_vm.invoiceAddresses),function(addr,index){return _c('div',{key:index,staticClass:\"saved-address\",class:{ selected: _vm.selectedInvoiceAddressIndex === index },on:{\"click\":function($event){return _vm.selectInvoiceAddress(index)}}},[_c('span',{staticClass:\"name-tag\"},[_vm._v(_vm._s(addr.name)+\" \"+_vm._s(addr.province))]),_c('span',{staticClass:\"detail\"},[_vm._v(_vm._s(addr.address)+\" \"+_vm._s(addr.phone))]),_c('el-button',{staticClass:\"set-default-btn\",attrs:{\"type\":\"text\"}},[_vm._v(\"设为默认\")]),_c('el-button',{staticClass:\"edit-btn\",attrs:{\"type\":\"text\"}},[_vm._v(\"编辑\")]),_c('el-button',{staticClass:\"delete-btn\",attrs:{\"type\":\"text\"}},[_vm._v(\"删除\")])],1)}),0)])]),_vm._m(0),_c('div',{staticClass:\"goods-section\"},[_c('h3',[_vm._v(\"商品清单\")]),_vm._l((_vm.orderGroups),function(group,groupIndex){return _c('div',{key:groupIndex,staticClass:\"order-group\"},[_c('div',{staticClass:\"supplier-info\"},[_c('span',[_vm._v(\"供货名称:\"+_vm._s(group.supplier))])]),_c('table',{staticClass:\"goods-table\"},[_vm._m(1,true),_c('tbody',_vm._l((group.items),function(item,itemIndex){return _c('tr',{key:itemIndex},[_c('td',[_c('img',{staticClass:\"goods-img\",attrs:{\"src\":item.image,\"alt\":\"商品图片\"}}),_c('span',{staticClass:\"goods-name\"},[_vm._v(_vm._s(item.name))])]),_c('td',[_vm._v(_vm._s(item.spec))]),_c('td',[_vm._v(_vm._s(item.price))]),_c('td',[_vm._v(_vm._s(item.quantity))]),_c('td',[_vm._v(_vm._s(item.freight))]),_c('td',[_vm._v(_vm._s(item.deliveryType))]),_c('td',{staticClass:\"subtotal\"},[_vm._v(_vm._s(item.subtotal))])])}),0)]),_c('div',{staticClass:\"order-remark\"},[_c('span',{staticClass:\"remark-label\"},[_vm._v(\"订单备注:\")]),_c('div',{staticClass:\"rich-text-editor\"},[_c('el-input',{staticClass:\"remark-editor\",attrs:{\"type\":\"textarea\",\"rows\":\"4\",\"placeholder\":\"请输入订单备注信息\"},model:{value:(group.remark),callback:function ($$v) {_vm.$set(group, \"remark\", $$v)},expression:\"group.remark\"}}),(false)?_c('div',{staticClass:\"editor-toolbar\"},[_c('el-button',{attrs:{\"type\":\"text\",\"icon\":\"el-icon-bold\",\"size\":\"mini\"}}),_c('el-button',{attrs:{\"type\":\"text\",\"icon\":\"el-icon-italic\",\"size\":\"mini\"}}),_c('el-button',{attrs:{\"type\":\"text\",\"icon\":\"el-icon-underline\",\"size\":\"mini\"}}),_c('el-button',{attrs:{\"type\":\"text\",\"icon\":\"el-icon-link\",\"size\":\"mini\"}}),_c('el-button',{attrs:{\"type\":\"text\",\"icon\":\"el-icon-picture\",\"size\":\"mini\"}})],1):_vm._e()],1)])])}),_c('div',{staticClass:\"total-info\"},[_c('p',[_vm._v(\" 共 \"+_vm._s(_vm.totalGoodsCount)+\" 件商品,总商品金额 ¥\"+_vm._s(_vm.totalGoodsAmount)+\" \")]),_c('p',[_vm._v(\"总运费 ¥\"+_vm._s(_vm.totalFreight))]),_c('p',{staticClass:\"pay-amount\"},[_vm._v(\"实付总金额 ¥\"+_vm._s(_vm.totalPayAmount))]),_c('p',{staticClass:\"address-info\"},[_vm._v(\" 配送地:\"+_vm._s(_vm.selectedAddress.address)),_c('br'),_vm._v(\" 交货地:\"+_vm._s(_vm.selectedAddress.address)+\" \"+_vm._s(_vm.selectedAddress.phone)+\" \")]),_c('el-button',{staticClass:\"submit-btn\",attrs:{\"type\":\"primary\"},on:{\"click\":_vm.submitOrder}},[_vm._v(\" 提交订单 \")])],1)],2)])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"contract-section\"},[_c('h3',[_vm._v(\"签署合同\")]),_c('p',[_vm._v(\"如需签署合同,提交订单后,请至采购中心>合同中心签署\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('thead',[_c('tr',[_c('th',[_vm._v(\"商品\")]),_c('th',[_vm._v(\"规格\")]),_c('th',[_vm._v(\"单价(元)\")]),_c('th',[_vm._v(\"数量\")]),_c('th',[_vm._v(\"运费\")]),_c('th',[_vm._v(\"收货方式\")]),_c('th',[_vm._v(\"小计(元)\")])])])\n}]\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n ","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=4237bdf4&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=4237bdf4&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4237bdf4\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","_v","attrs","_l","addresses","addr","index","key","class","selected","selectedAddressIndex","on","$event","selectAddress","_s","name","province","address","phone","model","value","selectedTradeType","callback","$$v","expression","selectedInvoiceType","selectedInvoiceTitle","invoiceTitles","title","id","invoiceAddresses","selectedInvoiceAddressIndex","selectInvoiceAddress","_m","orderGroups","group","groupIndex","supplier","items","item","itemIndex","image","spec","price","quantity","freight","deliveryType","subtotal","remark","$set","_e","totalGoodsCount","totalGoodsAmount","totalFreight","totalPayAmount","selectedAddress","submitOrder","staticRenderFns","data","isDefault","computed","methods","$message","success","warning","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/164.81e2faa4.js b/dist/js/164.81e2faa4.js deleted file mode 100644 index 80f8937..0000000 --- a/dist/js/164.81e2faa4.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[164],{3164:function(t,s,i){i.r(s),i.d(s,{default:function(){return C}});var a=function(){var t=this,s=t._self._c;return s("div",{staticClass:"bg"},[s("HomeLayout"),s("div",{staticClass:"product-box"},[s("h2",[t._v("今日推荐")]),s("ProductList",{attrs:{products:t.newProducts}})],1),s("div",{staticClass:"product-box"},[s("h2",[t._v("热销排行")]),s("ProductList",{attrs:{products:t.newProducts}})],1),s("div",{staticClass:"product-box"},[s("h2",[t._v("新品上市")]),s("ProductList",{attrs:{products:t.newProducts}})],1)],1)},e=[],c=function(){var t=this,s=t._self._c;return s("div",{staticClass:"home-layout-container"},[s("router-link",{staticClass:"left-nav",attrs:{to:"/productList"}},[s("ul",{staticClass:"nav-list"},[s("li",{staticClass:"nav-item"},[s("i",{staticClass:"el-icon-sell"}),t._v("全部商品")]),s("li",{staticClass:"nav-item"},[s("i",{staticClass:"el-icon-burger"}),t._v("米面油")]),s("li",{staticClass:"nav-item"},[s("i",{staticClass:"el-icon-fork-spoon"}),t._v("调味干货")]),s("li",{staticClass:"nav-item"},[s("i",{staticClass:"el-icon-potato-strips"}),t._v("休闲食品")]),s("li",{staticClass:"nav-item"},[s("i",{staticClass:"el-icon-dish"}),t._v("禽畜肉蛋")]),s("li",{staticClass:"nav-item"},[s("i",{staticClass:"el-icon-grape"}),t._v("鲜果蔬菜")]),s("li",{staticClass:"nav-item"},[s("i",{staticClass:"el-icon-present"}),t._v("组合集市")])])]),s("div",{staticClass:"main-content"},[s("el-carousel",{staticStyle:{height:"100%"}},t._l(4,function(t){return s("el-carousel-item",{key:t.id},[s("img",{staticClass:"carousel-img",attrs:{src:"\n https://static.ticket.sz-trip.com/jundaosuzhou/images/scenicType/topImg.png\n "}})])}),1)],1),s("div",{staticClass:"right-info"},[t._m(0),s("div",{staticClass:"btn-group"},[s("el-button",{attrs:{type:"danger",size:"mini"}},[t._v("登录")]),s("el-button",{attrs:{type:"warning",size:"mini"}},[t._v("注册")]),s("el-button",{attrs:{type:"primary",size:"mini"}},[t._v("客服")])],1),t._m(1),s("div",{staticClass:"announcement"},[s("el-tag",{attrs:{type:"danger",size:"mini"}},[t._v("公告")]),s("span",[t._v("2099年12月平台重要新规速递")])],1)])],1)},n=[function(){var t=this,s=t._self._c;return s("div",{staticClass:"avatar-container"},[s("img",{staticClass:"user-avatar",attrs:{src:"https://picsum.photos/id/64/120/120",alt:"用户头像"}}),s("div",{staticClass:"welcome-text"},[t._v("Hi-欢迎您")])])},function(){var t=this,s=t._self._c;return s("div",{staticClass:"func-icons"},[s("div",{staticClass:"icon-item"},[s("i",{staticClass:"icon el-icon-user"}),s("span",[t._v("个人中心")])]),s("div",{staticClass:"icon-item"},[s("i",{staticClass:"icon el-icon-goods"}),s("span",[t._v("我的订单")])]),s("div",{staticClass:"icon-item"},[s("i",{staticClass:"icon el-icon-star-off"}),s("span",[t._v("我的收藏")])]),s("div",{staticClass:"icon-item"},[s("i",{staticClass:"icon el-icon-pie-chart"}),s("span",[t._v("议价单")])])])}],r={name:"HomeLayout",data(){return{carouselItems:[{id:1,imageUrl:"https://picsum.photos/id/26/1200/500",altText:"新鲜水果促销"},{id:2,imageUrl:"https://picsum.photos/id/292/1200/500",altText:"有机蔬菜专场"},{id:3,imageUrl:"https://picsum.photos/id/431/1200/500",altText:"粮油特惠活动"}]}}},o=r,l=i(1656),d=(0,l.A)(o,c,n,!1,null,"7c7e64da",null),p=d.exports,u=i(3280),m={components:{HomeLayout:p,ProductList:u.A},data(){return{topBanner:[],newProducts:[{id:7,name:"高清投影仪高清投影仪高清投影仪高清投影仪高清投影仪高清投影仪高清投影仪高清投影仪",price:3299,originalPrice:3699,image:"https://static.ticket.sz-trip.com/jundaosuzhou/images/scenicType/topImg.png",sales:156,categoryId:1},{id:8,name:"保湿面霜",price:299,originalPrice:359,image:"https://static.ticket.sz-trip.com/jundaosuzhou/images/scenicType/topImg.png",sales:423,categoryId:4},{id:9,name:"有机水果礼盒",price:159,originalPrice:199,image:"https://static.ticket.sz-trip.com/jundaosuzhou/images/scenicType/topImg.png",sales:287,categoryId:5},{id:10,name:"经典文学名著",price:129,originalPrice:199,image:"https://static.ticket.sz-trip.com/jundaosuzhou/images/scenicType/topImg.png",sales:342,categoryId:6}]}},created(){this.getTopBanner()},methods:{getTopBanner(){this.post({type_id:6,position:0},"/api/adv/getAdv").then(t=>{t&&(this.topBanner=t.data)})}}},v=m,g=(0,l.A)(v,a,e,!1,null,"765f70e7",null),C=g.exports},3280:function(t,s,i){i.d(s,{A:function(){return d}});var a=function(){var t=this,s=t._self._c;return s("div",{staticClass:"product-list"},[s("div",{staticClass:"product-grid"},t._l(t.products,function(i){return s("div",{key:i.id,staticClass:"product-card"},[s("div",{staticClass:"product-img"},[s("a",{attrs:{href:`/detail/${i.id}`,to:`/detail/${i.id}`}},[s("img",{directives:[{name:"lazy",rawName:"v-lazy",value:i.image,expression:"product.image"}],staticClass:"product-pic",attrs:{alt:i.name}})])]),s("div",{staticClass:"product-info"},[s("div",{staticClass:"flex-between"},[s("div",{staticClass:"product-price"},[s("span",{staticClass:"current-price"},[t._v("¥"+t._s(i.price.toFixed(2)))]),i.originalPrice?s("span",{staticClass:"original-price"},[t._v("¥"+t._s(i.originalPrice.toFixed(2)))]):t._e()]),i.sales?s("div",{staticClass:"product-sales"},[s("span",[t._v("已售 "+t._s(i.sales)+" 件")])]):t._e()]),s("h3",{staticClass:"product-name"},[s("a",{attrs:{href:`/detail/${i.id}`,to:`/detail/${i.id}`}},[t._v(" "+t._s(i.name)+" ")])]),s("div",{staticClass:"product-actions"},[s("el-button",{staticStyle:{"background-color":"#6a8a27",border:"none"},attrs:{type:"primary",size:"small"},on:{click:function(s){return t.addToCart(i)}}},[s("el-icon",{attrs:{name:"el-icon-shopping-cart"}}),t._v(" 加入购物车 ")],1)],1)])])}),0),0===t.products.length?s("div",{staticClass:"no-products"},[s("el-empty",{attrs:{description:"暂无相关商品"}})],1):t._e()])},e=[],c=(i(4114),i(3518)),n={name:"ProductList",props:{products:{type:Array,default:()=>[]}},methods:{...(0,c.i0)(["addToCart"]),addToCart(t){this.$store.getters.isUserLogin?(this.addToCart({id:t.id,name:t.name,price:t.price,image:t.image,quantity:1}),this.$message.success("已加入购物车")):this.$confirm("您尚未登录,是否前往登录?","提示",{confirmButtonText:"登录",cancelButtonText:"取消",type:"info"}).then(()=>{this.$router.push({path:"/login",query:{redirect:this.$route.fullPath}})}).catch(()=>{})}}},r=n,o=i(1656),l=(0,o.A)(r,a,e,!1,null,"019f4a60",null),d=l.exports}}]); -//# sourceMappingURL=164.81e2faa4.js.map \ No newline at end of file diff --git a/dist/js/164.81e2faa4.js.map b/dist/js/164.81e2faa4.js.map deleted file mode 100644 index f80567c..0000000 --- a/dist/js/164.81e2faa4.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/164.81e2faa4.js","mappings":"sJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,MAAM,CAACF,EAAG,cAAcA,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,KAAK,CAACF,EAAIK,GAAG,UAAUH,EAAG,cAAc,CAACI,MAAM,CAAC,SAAWN,EAAIO,gBAAgB,GAAGL,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,KAAK,CAACF,EAAIK,GAAG,UAAUH,EAAG,cAAc,CAACI,MAAM,CAAC,SAAWN,EAAIO,gBAAgB,GAAGL,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,KAAK,CAACF,EAAIK,GAAG,UAAUH,EAAG,cAAc,CAACI,MAAM,CAAC,SAAWN,EAAIO,gBAAgB,IAAI,EACne,EACIC,EAAkB,GCFlBT,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,yBAAyB,CAACF,EAAG,cAAc,CAACE,YAAY,W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ACriD,EACItC,EAAkB,G,oBCoDtB,GACAO,KAAA,cACAoC,MAAA,CACAb,SAAA,CACAc,KAAAC,MACAC,QAAAA,IAAA,KAGAtB,QAAA,KACAuB,EAAAA,EAAAA,IAAA,eACAN,SAAAA,CAAAV,GAEA,KAAAiB,OAAAC,QAAAC,aAkBA,KAAAT,UAAA,CACApC,GAAA0B,EAAA1B,GACAE,KAAAwB,EAAAxB,KACAU,MAAAc,EAAAd,MACAE,MAAAY,EAAAZ,MACAgC,SAAA,IAEA,KAAAC,SAAAC,QAAA,WAxBA,KAAAC,SAAA,sBACAC,kBAAA,KACAC,iBAAA,KACAZ,KAAA,SAEAhB,KAAA,KACA,KAAA6B,QAAAC,KAAA,CACAC,KAAA,SACAC,MAAA,CAAAC,SAAA,KAAAC,OAAAC,cAGAC,MAAA,OAcA,IC5FmQ,I,UCQ/PpD,GAAY,OACd,EACArB,EACAS,GACA,EACA,KACA,WACA,MAIF,EAAeY,E","sources":["webpack://abcdf/./src/views/Index.vue","webpack://abcdf/./src/components/layout/HomeLayout.vue","webpack://abcdf/src/components/layout/HomeLayout.vue","webpack://abcdf/./src/components/layout/HomeLayout.vue?06d9","webpack://abcdf/./src/components/layout/HomeLayout.vue?b436","webpack://abcdf/src/views/Index.vue","webpack://abcdf/./src/views/Index.vue?cb95","webpack://abcdf/./src/views/Index.vue?e2bc","webpack://abcdf/./src/components/product/ProductList.vue","webpack://abcdf/src/components/product/ProductList.vue","webpack://abcdf/./src/components/product/ProductList.vue?43ae","webpack://abcdf/./src/components/product/ProductList.vue?0bfb"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg\"},[_c('HomeLayout'),_c('div',{staticClass:\"product-box\"},[_c('h2',[_vm._v(\"今日推荐\")]),_c('ProductList',{attrs:{\"products\":_vm.newProducts}})],1),_c('div',{staticClass:\"product-box\"},[_c('h2',[_vm._v(\"热销排行\")]),_c('ProductList',{attrs:{\"products\":_vm.newProducts}})],1),_c('div',{staticClass:\"product-box\"},[_c('h2',[_vm._v(\"新品上市\")]),_c('ProductList',{attrs:{\"products\":_vm.newProducts}})],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"home-layout-container\"},[_c('router-link',{staticClass:\"left-nav\",attrs:{\"to\":\"/productList\"}},[_c('ul',{staticClass:\"nav-list\"},[_c('li',{staticClass:\"nav-item\"},[_c('i',{staticClass:\"el-icon-sell\"}),_vm._v(\"全部商品\")]),_c('li',{staticClass:\"nav-item\"},[_c('i',{staticClass:\"el-icon-burger\"}),_vm._v(\"米面油\")]),_c('li',{staticClass:\"nav-item\"},[_c('i',{staticClass:\"el-icon-fork-spoon\"}),_vm._v(\"调味干货\")]),_c('li',{staticClass:\"nav-item\"},[_c('i',{staticClass:\"el-icon-potato-strips\"}),_vm._v(\"休闲食品\")]),_c('li',{staticClass:\"nav-item\"},[_c('i',{staticClass:\"el-icon-dish\"}),_vm._v(\"禽畜肉蛋\")]),_c('li',{staticClass:\"nav-item\"},[_c('i',{staticClass:\"el-icon-grape\"}),_vm._v(\"鲜果蔬菜\")]),_c('li',{staticClass:\"nav-item\"},[_c('i',{staticClass:\"el-icon-present\"}),_vm._v(\"组合集市\")])])]),_c('div',{staticClass:\"main-content\"},[_c('el-carousel',{staticStyle:{\"height\":\"100%\"}},_vm._l((4),function(item){return _c('el-carousel-item',{key:item.id},[_c('img',{staticClass:\"carousel-img\",attrs:{\"src\":\"\\n https://static.ticket.sz-trip.com/jundaosuzhou/images/scenicType/topImg.png\\n \"}})])}),1)],1),_c('div',{staticClass:\"right-info\"},[_vm._m(0),_c('div',{staticClass:\"btn-group\"},[_c('el-button',{attrs:{\"type\":\"danger\",\"size\":\"mini\"}},[_vm._v(\"登录\")]),_c('el-button',{attrs:{\"type\":\"warning\",\"size\":\"mini\"}},[_vm._v(\"注册\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"mini\"}},[_vm._v(\"客服\")])],1),_vm._m(1),_c('div',{staticClass:\"announcement\"},[_c('el-tag',{attrs:{\"type\":\"danger\",\"size\":\"mini\"}},[_vm._v(\"公告\")]),_c('span',[_vm._v(\"2099年12月平台重要新规速递\")])],1)])],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"avatar-container\"},[_c('img',{staticClass:\"user-avatar\",attrs:{\"src\":\"https://picsum.photos/id/64/120/120\",\"alt\":\"用户头像\"}}),_c('div',{staticClass:\"welcome-text\"},[_vm._v(\"Hi-欢迎您\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"func-icons\"},[_c('div',{staticClass:\"icon-item\"},[_c('i',{staticClass:\"icon el-icon-user\"}),_c('span',[_vm._v(\"个人中心\")])]),_c('div',{staticClass:\"icon-item\"},[_c('i',{staticClass:\"icon el-icon-goods\"}),_c('span',[_vm._v(\"我的订单\")])]),_c('div',{staticClass:\"icon-item\"},[_c('i',{staticClass:\"icon el-icon-star-off\"}),_c('span',[_vm._v(\"我的收藏\")])]),_c('div',{staticClass:\"icon-item\"},[_c('i',{staticClass:\"icon el-icon-pie-chart\"}),_c('span',[_vm._v(\"议价单\")])])])\n}]\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n ","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./HomeLayout.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./HomeLayout.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./HomeLayout.vue?vue&type=template&id=7c7e64da&scoped=true\"\nimport script from \"./HomeLayout.vue?vue&type=script&lang=js\"\nexport * from \"./HomeLayout.vue?vue&type=script&lang=js\"\nimport style0 from \"./HomeLayout.vue?vue&type=style&index=0&id=7c7e64da&prod&scoped=true&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7c7e64da\",\n null\n \n)\n\nexport default component.exports","\r\n\r\n\r\n\r\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=765f70e7&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=765f70e7&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"765f70e7\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"product-list\"},[_c('div',{staticClass:\"product-grid\"},_vm._l((_vm.products),function(product){return _c('div',{key:product.id,staticClass:\"product-card\"},[_c('div',{staticClass:\"product-img\"},[_c('a',{attrs:{\"href\":`/detail/${product.id}`,\"to\":`/detail/${product.id}`}},[_c('img',{directives:[{name:\"lazy\",rawName:\"v-lazy\",value:(product.image),expression:\"product.image\"}],staticClass:\"product-pic\",attrs:{\"alt\":product.name}})])]),_c('div',{staticClass:\"product-info\"},[_c('div',{staticClass:\"flex-between\"},[_c('div',{staticClass:\"product-price\"},[_c('span',{staticClass:\"current-price\"},[_vm._v(\"¥\"+_vm._s(product.price.toFixed(2)))]),(product.originalPrice)?_c('span',{staticClass:\"original-price\"},[_vm._v(\"¥\"+_vm._s(product.originalPrice.toFixed(2)))]):_vm._e()]),(product.sales)?_c('div',{staticClass:\"product-sales\"},[_c('span',[_vm._v(\"已售 \"+_vm._s(product.sales)+\" 件\")])]):_vm._e()]),_c('h3',{staticClass:\"product-name\"},[_c('a',{attrs:{\"href\":`/detail/${product.id}`,\"to\":`/detail/${product.id}`}},[_vm._v(\" \"+_vm._s(product.name)+\" \")])]),_c('div',{staticClass:\"product-actions\"},[_c('el-button',{staticStyle:{\"background-color\":\"#6a8a27\",\"border\":\"none\"},attrs:{\"type\":\"primary\",\"size\":\"small\"},on:{\"click\":function($event){return _vm.addToCart(product)}}},[_c('el-icon',{attrs:{\"name\":\"el-icon-shopping-cart\"}}),_vm._v(\" 加入购物车 \")],1)],1)])])}),0),(_vm.products.length === 0)?_c('div',{staticClass:\"no-products\"},[_c('el-empty',{attrs:{\"description\":\"暂无相关商品\"}})],1):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ProductList.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ProductList.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ProductList.vue?vue&type=template&id=019f4a60&scoped=true\"\nimport script from \"./ProductList.vue?vue&type=script&lang=js\"\nexport * from \"./ProductList.vue?vue&type=script&lang=js\"\nimport style0 from \"./ProductList.vue?vue&type=style&index=0&id=019f4a60&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"019f4a60\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","_v","attrs","newProducts","staticRenderFns","staticStyle","_l","item","key","id","_m","name","data","carouselItems","imageUrl","altText","component","components","HomeLayout","ProductList","topBanner","price","originalPrice","image","sales","categoryId","created","getTopBanner","methods","post","type_id","position","then","res","products","product","directives","rawName","value","expression","_s","toFixed","_e","on","$event","addToCart","length","props","type","Array","default","mapActions","$store","getters","isUserLogin","quantity","$message","success","$confirm","confirmButtonText","cancelButtonText","$router","push","path","query","redirect","$route","fullPath","catch"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/198.45ac7378.js b/dist/js/198.45ac7378.js deleted file mode 100644 index 583795f..0000000 --- a/dist/js/198.45ac7378.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[198],{8198:function(e,t,i){i.r(t),i.d(t,{default:function(){return n}});var a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"product-grid-page"},[e.showFilter?t("div",{staticClass:"filter-bar"},[t("el-select",{staticClass:"filter-select",attrs:{placeholder:"选择分类"},model:{value:e.selectedCategory,callback:function(t){e.selectedCategory=t},expression:"selectedCategory"}},e._l(e.categories,function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),t("el-select",{staticClass:"filter-select",attrs:{placeholder:"排序方式"},model:{value:e.selectedSort,callback:function(t){e.selectedSort=t},expression:"selectedSort"}},e._l(e.sortOptions,function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),t("el-input",{staticClass:"search-input",attrs:{placeholder:"搜索商品",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch.apply(null,arguments)}},model:{value:e.searchKeyword,callback:function(t){e.searchKeyword=t},expression:"searchKeyword"}},[t("i",{staticClass:"el-icon-search",staticStyle:{"line-height":"3"},attrs:{slot:"suffix"},on:{click:e.handleSearch},slot:"suffix"})])],1):e._e(),t("div",{staticClass:"product-grid"},[e._l(e.visibleProducts,function(i,a){return t("div",{key:a,staticClass:"product-card",on:{click:function(t){return e.goToDetail(i.id)}}},[t("el-image",{directives:[{name:"lazy",rawName:"v-lazy",value:i.image,expression:"product.image"}],staticClass:"product-img",attrs:{alt:i.name,lazy:"",fit:"cover"}},[t("div",{staticClass:"image-placeholder",attrs:{slot:"placeholder"},slot:"placeholder"},[t("i",{staticClass:"el-icon-loading"})])]),i.tag?t("div",{staticClass:"tag",style:{backgroundColor:i.tagColor}},[e._v(" "+e._s(i.tag)+" ")]):e._e(),t("div",{staticClass:"product-info"},[t("div",{staticClass:"product-name"},[e._v(e._s(i.name))]),t("div",{staticClass:"price-row"},[t("span",{staticClass:"current-price"},[e._v("¥"+e._s(i.price))]),i.originalPrice?t("span",{staticClass:"original-price"},[e._v("¥"+e._s(i.originalPrice))]):e._e()]),t("el-button",{staticClass:"cart-btn",attrs:{type:"primary",size:"mini"},on:{click:function(t){return t.preventDefault(),e.addToCart(i)}}},[e._v(" 加入购物车 ")])],1)],1)}),0===e.visibleProducts.length?t("div",{staticClass:"empty-state"},[t("el-empty",{attrs:{description:"暂无商品"}})],1):e._e()],2),t("div",{staticClass:"pagination-container"},[t("el-pagination",{attrs:{"current-page":e.currentPage,"page-sizes":[12,24,36],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.totalProducts},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)])},r=[],s=(i(4114),i(8111),i(2489),{name:"ProductGridPage",data(){return{selectedCategory:"",selectedSort:"",searchKeyword:"",showFilter:!0,currentPage:1,pageSize:12,products:[{id:1,name:"产品名称产品名称1",image:"https://picsum.photos/id/101/200/200",price:359,originalPrice:499,tag:"限时折扣",tagColor:"#FF6B6B"},{id:2,name:"产品名称产品名称",image:"https://picsum.photos/id/102/200/200",price:259,originalPrice:329,tag:"新品",tagColor:"#4ECDC4"},{id:3,name:"产品名称产品名称",image:"https://picsum.photos/id/103/200/200",price:159,originalPrice:229,tag:"爆款",tagColor:"#FFD166"},{id:4,name:"产品名称产品名称",image:"https://picsum.photos/id/104/200/200",price:215,originalPrice:299,tag:"推荐",tagColor:"#06D6A0"},{id:5,name:"产品名称产品名称",image:"https://picsum.photos/id/105/200/200",price:299,originalPrice:399,tag:"限时折扣",tagColor:"#FF6B6B"},{id:6,name:"产品名称产品名称",image:"https://picsum.photos/id/106/200/200",price:159,originalPrice:229,tag:"新品",tagColor:"#4ECDC4"},{id:7,name:"产品名称产品名称",image:"https://picsum.photos/id/107/200/200",price:229,originalPrice:329,tag:"爆款",tagColor:"#FFD166"},{id:8,name:"产品名称产品名称",image:"https://picsum.photos/id/108/200/200",price:289,originalPrice:399,tag:"推荐",tagColor:"#06D6A0"},{id:9,name:"产品名称产品名称",image:"https://picsum.photos/id/109/200/200",price:359,originalPrice:499,tag:"限时折扣",tagColor:"#FF6B6B"},{id:10,name:"产品名称产品名称",image:"https://picsum.photos/id/110/200/200",price:159,originalPrice:229,tag:"新品",tagColor:"#4ECDC4"},{id:11,name:"产品名称产品名称",image:"https://picsum.photos/id/111/200/200",price:259,originalPrice:329,tag:"爆款",tagColor:"#FFD166"},{id:12,name:"产品名称产品名称",image:"https://picsum.photos/id/112/200/200",price:299,originalPrice:399,tag:"推荐",tagColor:"#06D6A0"},{id:13,name:"产品名称产品名称",image:"https://picsum.photos/id/113/200/200",price:359,originalPrice:499,tag:"限时折扣",tagColor:"#FF6B6B"},{id:14,name:"产品名称产品名称",image:"https://picsum.photos/id/114/200/200",price:159,originalPrice:229,tag:"新品",tagColor:"#4ECDC4"},{id:15,name:"产品名称产品名称",image:"https://picsum.photos/id/115/200/200",price:259,originalPrice:329,tag:"爆款",tagColor:"#FFD166"},{id:16,name:"产品名称产品名称",image:"https://picsum.photos/id/116/200/200",price:299,originalPrice:399,tag:"推荐",tagColor:"#06D6A0"},{id:17,name:"产品名称产品名称",image:"https://picsum.photos/id/117/200/200",price:359,originalPrice:499,tag:"限时折扣",tagColor:"#FF6B6B"},{id:18,name:"产品名称产品名称",image:"https://picsum.photos/id/118/200/200",price:159,originalPrice:229,tag:"新品",tagColor:"#4ECDC4"},{id:19,name:"产品名称产品名称",image:"https://picsum.photos/id/119/200/200",price:259,originalPrice:329,tag:"爆款",tagColor:"#FFD166"},{id:20,name:"产品名称产品名称",image:"https://picsum.photos/id/120/200/200",price:299,originalPrice:399,tag:"推荐",tagColor:"#06D6A0"}],currentPage:1,pageSize:12,categories:[{label:"全部",value:""},{label:"美食",value:"food"},{label:"生活",value:"life"},{label:"数码",value:"digital"}],sortOptions:[{label:"默认排序",value:""},{label:"价格 ascending",value:"price_asc"},{label:"价格 descending",value:"price_desc"}]}},computed:{filteredProducts(){return this.products.filter(e=>{const t=!this.selectedCategory||e.category===this.selectedCategory,i=!this.searchKeyword||e.name.includes(this.searchKeyword);return t&&i})},sortedProducts(){return"price_asc"===this.selectedSort?this.filteredProducts.sort((e,t)=>e.price-t.price):"price_desc"===this.selectedSort?this.filteredProducts.sort((e,t)=>t.price-e.price):this.filteredProducts},visibleProducts(){const e=(this.currentPage-1)*this.pageSize,t=e+this.pageSize;return this.sortedProducts.slice(e,t)},totalProducts(){return this.sortedProducts.length}},methods:{handleSearch(){this.currentPage=1},handleSizeChange(e){this.pageSize=e,this.currentPage=1},handleCurrentChange(e){this.currentPage=e},addToCart(e){this.$message.success(`${e.name} 已加入购物车`)},goToDetail(e){this.$router.push(`/product/${e}`)}}}),o=s,c=i(1656),l=(0,c.A)(o,a,r,!1,null,"7212ada1",null),n=l.exports}}]); -//# sourceMappingURL=198.45ac7378.js.map \ No newline at end of file diff --git a/dist/js/198.45ac7378.js.map b/dist/js/198.45ac7378.js.map deleted file mode 100644 index fbbf066..0000000 --- a/dist/js/198.45ac7378.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/198.45ac7378.js","mappings":"sJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,qBAAqB,CAAEJ,EAAIK,WAAYH,EAAG,MAAM,CAACE,YAAY,cAAc,CAACF,EAAG,YAAY,CAACE,YAAY,gBAAgBE,MAAM,CAAC,YAAc,QAAQC,MAAM,CAACC,MAAOR,EAAIS,iBAAkBC,SAAS,SAAUC,GAAMX,EAAIS,iBAAiBE,CAAG,EAAEC,WAAW,qBAAqBZ,EAAIa,GAAIb,EAAIc,WAAY,SAASC,GAAK,OAAOb,EAAG,YAAY,CAACc,IAAID,EAAIP,MAAMF,MAAM,CAAC,MAAQS,EAAIE,MAAM,MAAQF,EAAIP,QAAQ,GAAG,GAAGN,EAAG,YAAY,CAACE,YAAY,gBAAgBE,MAAM,CAAC,YAAc,QAAQC,MAAM,CAACC,MAAOR,EAAIkB,aAAcR,SAAS,SAAUC,GAAMX,EAAIkB,aAAaP,CAAG,EAAEC,WAAW,iBAAiBZ,EAAIa,GAAIb,EAAImB,YAAa,SAASC,GAAM,OAAOlB,EAAG,YAAY,CAACc,IAAII,EAAKZ,MAAMF,MAAM,CAAC,MAAQc,EAAKH,MAAM,MAAQG,EAAKZ,QAAQ,GAAG,GAAGN,EAAG,WAAW,CAACE,YAAY,eAAeE,MAAM,CAAC,YAAc,OAAO,UAAY,IAAIe,SAAS,CAAC,MAAQ,SAASC,GAAQ,OAAIA,EAAOC,KAAKC,QAAQ,QAAQxB,EAAIyB,GAAGH,EAAOI,QAAQ,QAAQ,GAAGJ,EAAON,IAAI,SAAgB,KAAYhB,EAAI2B,aAAaC,MAAM,KAAMC,UAAU,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A,CACA,EAGAI,mBAAAA,CAAAkB,GACA,KAAAtB,YAAAsB,CACA,EAGAxB,SAAAA,CAAAjB,GACA,KAAA0C,SAAAC,QAAA,GAAA3C,EAAAK,cACA,EAGAH,UAAAA,CAAAC,GACA,KAAAyC,QAAAC,KAAA,YAAA1C,IACA,KCtY6P,I,UCQzP2C,GAAY,OACd,EACAnF,EACA6D,GACA,EACA,KACA,WACA,MAIF,EAAesB,E","sources":["webpack://abcdf/./src/views/ProductPage/Index.vue","webpack://abcdf/src/views/ProductPage/Index.vue","webpack://abcdf/./src/views/ProductPage/Index.vue?c00e","webpack://abcdf/./src/views/ProductPage/Index.vue?ce43"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"product-grid-page\"},[(_vm.showFilter)?_c('div',{staticClass:\"filter-bar\"},[_c('el-select',{staticClass:\"filter-select\",attrs:{\"placeholder\":\"选择分类\"},model:{value:(_vm.selectedCategory),callback:function ($$v) {_vm.selectedCategory=$$v},expression:\"selectedCategory\"}},_vm._l((_vm.categories),function(cat){return _c('el-option',{key:cat.value,attrs:{\"label\":cat.label,\"value\":cat.value}})}),1),_c('el-select',{staticClass:\"filter-select\",attrs:{\"placeholder\":\"排序方式\"},model:{value:(_vm.selectedSort),callback:function ($$v) {_vm.selectedSort=$$v},expression:\"selectedSort\"}},_vm._l((_vm.sortOptions),function(sort){return _c('el-option',{key:sort.value,attrs:{\"label\":sort.label,\"value\":sort.value}})}),1),_c('el-input',{staticClass:\"search-input\",attrs:{\"placeholder\":\"搜索商品\",\"clearable\":\"\"},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.handleSearch.apply(null, arguments)}},model:{value:(_vm.searchKeyword),callback:function ($$v) {_vm.searchKeyword=$$v},expression:\"searchKeyword\"}},[_c('i',{staticClass:\"el-icon-search\",staticStyle:{\"line-height\":\"3\"},attrs:{\"slot\":\"suffix\"},on:{\"click\":_vm.handleSearch},slot:\"suffix\"})])],1):_vm._e(),_c('div',{staticClass:\"product-grid\"},[_vm._l((_vm.visibleProducts),function(product,index){return _c('div',{key:index,staticClass:\"product-card\",on:{\"click\":function($event){return _vm.goToDetail(product.id)}}},[_c('el-image',{directives:[{name:\"lazy\",rawName:\"v-lazy\",value:(product.image),expression:\"product.image\"}],staticClass:\"product-img\",attrs:{\"alt\":product.name,\"lazy\":\"\",\"fit\":\"cover\"}},[_c('div',{staticClass:\"image-placeholder\",attrs:{\"slot\":\"placeholder\"},slot:\"placeholder\"},[_c('i',{staticClass:\"el-icon-loading\"})])]),(product.tag)?_c('div',{staticClass:\"tag\",style:({ backgroundColor: product.tagColor })},[_vm._v(\" \"+_vm._s(product.tag)+\" \")]):_vm._e(),_c('div',{staticClass:\"product-info\"},[_c('div',{staticClass:\"product-name\"},[_vm._v(_vm._s(product.name))]),_c('div',{staticClass:\"price-row\"},[_c('span',{staticClass:\"current-price\"},[_vm._v(\"¥\"+_vm._s(product.price))]),(product.originalPrice)?_c('span',{staticClass:\"original-price\"},[_vm._v(\"¥\"+_vm._s(product.originalPrice))]):_vm._e()]),_c('el-button',{staticClass:\"cart-btn\",attrs:{\"type\":\"primary\",\"size\":\"mini\"},on:{\"click\":function($event){$event.preventDefault();return _vm.addToCart(product)}}},[_vm._v(\" 加入购物车 \")])],1)],1)}),(_vm.visibleProducts.length === 0)?_c('div',{staticClass:\"empty-state\"},[_c('el-empty',{attrs:{\"description\":\"暂无商品\"}})],1):_vm._e()],2),_c('div',{staticClass:\"pagination-container\"},[_c('el-pagination',{attrs:{\"current-page\":_vm.currentPage,\"page-sizes\":[12, 24, 36],\"page-size\":_vm.pageSize,\"layout\":\"total, sizes, prev, pager, next, jumper\",\"total\":_vm.totalProducts},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=7212ada1&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=7212ada1&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7212ada1\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","showFilter","attrs","model","value","selectedCategory","callback","$$v","expression","_l","categories","cat","key","label","selectedSort","sortOptions","sort","nativeOn","$event","type","indexOf","_k","keyCode","handleSearch","apply","arguments","searchKeyword","staticStyle","on","slot","_e","visibleProducts","product","index","goToDetail","id","directives","name","rawName","image","tag","style","backgroundColor","tagColor","_v","_s","price","originalPrice","preventDefault","addToCart","length","currentPage","pageSize","totalProducts","handleSizeChange","handleCurrentChange","staticRenderFns","data","products","computed","filteredProducts","filter","categoryMatch","category","keywordMatch","includes","sortedProducts","a","b","start","end","slice","methods","val","$message","success","$router","push","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/213.7d6a2655.js.map b/dist/js/213.7d6a2655.js.map deleted file mode 100644 index 09e92f5..0000000 --- a/dist/js/213.7d6a2655.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/213.7d6a2655.js","mappings":"sJAAA,IAAI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AA,GACA,OACAlC,WAAA,CACA,CAAAM,OAAA,OAAAC,UAAA,uBACA,CAAAD,OAAA,OAAAC,UAAA,uBACA,CAAAD,OAAA,OAAAC,UAAA,uBACA,CAAAD,OAAA,OAAAC,UAAA,uBACA,CAAAD,OAAA,MAAAC,UAAA,uBACA,CAAAD,OAAA,MAAAC,UAAA,wBAEAC,UAAA,CACAC,YAAA,iBACAH,OAAA,MACAI,UAAA,uBAEAC,aAAA,CACAC,SAAA,KACAC,QAAA,mBACAC,MAAA,cACAC,eAAA,KACAC,qBAAA,cAEAC,YAAA,CACAC,cAAA,MACAC,cAAA,MACAC,YAAA,uBAEAC,YAAA,CACA,CAAAM,KAAA,MAAAQ,KAAA,MAAAC,MAAA,IAAAC,SAAA,EAAAT,SAAA,IAAAF,MAAA,0CACA,CAAAC,KAAA,MAAAQ,KAAA,MAAAC,MAAA,IAAAC,SAAA,EAAAT,SAAA,IAAAF,MAAA,2CAEAG,WAAA,CACAC,aAAA,IACAC,YAAA,EACAC,cAAA,KAGA,EACAM,SAAA,CAEA,EACAC,QAAA,CAEA,GC9ImQ,I,UCQ/PC,GAAY,OACd,EACApD,EACA6C,GACA,EACA,KACA,WACA,MAIF,EAAeO,E","sources":["webpack://abcdf/./src/views/User/OrderDetail.vue","webpack://abcdf/src/views/User/OrderDetail.vue","webpack://abcdf/./src/views/User/OrderDetail.vue?daa9","webpack://abcdf/./src/views/User/OrderDetail.vue?59a3"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg\"},[_c('div',{staticClass:\"normal-margin-bottom\"},[_c('el-breadcrumb',{attrs:{\"separator-class\":\"el-icon-arrow-right\"}},[_c('el-breadcrumb-item',{attrs:{\"to\":{ path: '/User/UserCenter' }}},[_vm._v(\"个人中心\")]),_c('el-breadcrumb-item',{attrs:{\"to\":{ path: '/User/OrderList' }}},[_vm._v(\"我的订单\")]),_c('el-breadcrumb-item',[_vm._v(\" 订单详情\")])],1)],1),_c('div',{staticClass:\"common-card normal-margin-bottom\",staticStyle:{\"padding\":\"20px 0\",\"display\":\"flex\"}},[_c('div',{staticClass:\"order-status\"},[_c('div',{staticClass:\"order-no\"},[_vm._v(\"订单号: 209907091214560078 \"),_c('el-button',{staticStyle:{\"color\":\"#999\"},attrs:{\"type\":\"text\",\"icon\":\"el-icon-document-copy\"}})],1),_vm._m(0),_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"medium\"}},[_vm._v(\"在线付款\")]),_c('el-button',{staticStyle:{\"padding\":\"0\"},attrs:{\"type\":\"text\",\"size\":\"small\"}},[_vm._v(\"打印订单\")])],1),_c('div',{staticClass:\"order-step\"},[_c('el-steps',{staticStyle:{\"width\":\"100%\"},attrs:{\"active\":2,\"align-center\":\"\"}},_vm._l((_vm.activities),function(item,i){return _c('el-step',{key:i},[_c('div',{staticClass:\"process-title\",attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(_vm._s(item.status))]),_c('div',{attrs:{\"slot\":\"icon\"},slot:\"icon\"},[(i>=2)?_c('span',[_vm._v(_vm._s(i+1))]):_c('i',{staticClass:\"el-icon-check\",staticStyle:{\"color\":\"#fff\"}})]),_c('div',{staticClass:\"process-description\",attrs:{\"slot\":\"description\"},slot:\"description\"},[_vm._v(_vm._s(item.timestamp))])])}),1)],1)]),_c('div',{staticClass:\"common-card normal-margin-bottom order-info-card\",staticStyle:{\"display\":\"flex\",\"padding\":\"20px 0\"}},[_c('el-descriptions',{attrs:{\"title\":\"订单信息\",\"column\":1}},[_c('el-descriptions-item',{attrs:{\"label\":\"订单号\"}},[_vm._v(_vm._s(_vm.orderInfo.orderNumber))]),_c('el-descriptions-item',{attrs:{\"label\":\"订单状态\"}},[_vm._v(_vm._s(_vm.orderInfo.status))]),_c('el-descriptions-item',{attrs:{\"label\":\"下单时间\"}},[_vm._v(_vm._s(_vm.orderInfo.orderTime))])],1),_c('el-descriptions',{attrs:{\"title\":\"配送信息\",\"column\":1}},[_c('el-descriptions-item',{attrs:{\"label\":\"收货人\"}},[_vm._v(_vm._s(_vm.deliveryInfo.receiver))]),_c('el-descriptions-item',{attrs:{\"label\":\"地址\"}},[_vm._v(_vm._s(_vm.deliveryInfo.address))]),_c('el-descriptions-item',{attrs:{\"label\":\"手机号码\"}},[_vm._v(_vm._s(_vm.deliveryInfo.phone))]),_c('el-descriptions-item',{attrs:{\"label\":\"配送方式\"}},[_vm._v(_vm._s(_vm.deliveryInfo.deliveryMethod))]),_c('el-descriptions-item',{attrs:{\"label\":\"期望送达时间\"}},[_vm._v(_vm._s(_vm.deliveryInfo.expectedDeliveryTime))])],1),_c('el-descriptions',{staticStyle:{\"border\":\"none\"},attrs:{\"title\":\"支付信息\",\"column\":1}},[_c('el-descriptions-item',{attrs:{\"label\":\"支付方式\"}},[_vm._v(_vm._s(_vm.paymentInfo.paymentMethod))]),_c('el-descriptions-item',{attrs:{\"label\":\"支付状态\"}},[_vm._v(_vm._s(_vm.paymentInfo.paymentStatus))]),_c('el-descriptions-item',{attrs:{\"label\":\"支付时间\"}},[_vm._v(_vm._s(_vm.paymentInfo.paymentTime))])],1)],1),_c('el-table',{staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.productList}},[_c('el-table-column',{attrs:{\"prop\":\"name\",\"label\":\"商品名称\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function({row}){return [_c('div',{staticStyle:{\"display\":\"flex\",\"align-items\":\"center\"}},[_c('img',{staticClass:\"product-image\",attrs:{\"src\":row.image,\"alt\":row.name}}),_c('div',[_vm._v(_vm._s(row.name))])])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"spec\",\"label\":\"规格\",\"align\":\"center\"}}),_c('el-table-column',{attrs:{\"prop\":\"price\",\"label\":\"单价(元)\",\"align\":\"center\",\"width\":\"200\"}}),_c('el-table-column',{attrs:{\"prop\":\"quantity\",\"label\":\"数量\",\"align\":\"center\",\"width\":\"100\"}}),_c('el-table-column',{attrs:{\"prop\":\"subtotal\",\"label\":\"小计(元)\",\"align\":\"center\",\"width\":\"200\"},scopedSlots:_vm._u([{key:\"default\",fn:function({row}){return [_c('div',{staticStyle:{\"color\":\"#ff1111\"}},[_vm._v(\"¥\"+_vm._s(row.subtotal))])]}}])})],1),_c('div',{staticClass:\"common-card normal-margin-bottom total-card\"},[_c('el-descriptions',{attrs:{\"column\":1}},[_c('el-descriptions-item',{attrs:{\"label\":\"商品总价\"}},[_vm._v(\"¥\"+_vm._s(_vm.totalPrice.productTotal))]),_c('el-descriptions-item',{attrs:{\"label\":\"运费\"}},[_vm._v(\"¥\"+_vm._s(_vm.totalPrice.shippingFee))]),_c('el-descriptions-item',{attrs:{\"label\":\"实付款\"}},[_c('span',{staticStyle:{\"font-size\":\"16px\",\"font-weight\":\"bold\",\"color\":\"#ff1111\"}},[_vm._v(\"¥\"+_vm._s(_vm.totalPrice.actualPayment))])])],1)],1)],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"status-title\"},[_c('i',{staticClass:\"el-icon-time\",staticStyle:{\"color\":\"#ff9800\",\"font-size\":\"32px\"}}),_c('span',{staticStyle:{\"height\":\"24px\",\"line-height\":\"24px\",\"padding-left\":\"5px\"}},[_vm._v(\"订单状态: 待付款\")])])\n}]\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./OrderDetail.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./OrderDetail.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./OrderDetail.vue?vue&type=template&id=76ebf0c8&scoped=true\"\nimport script from \"./OrderDetail.vue?vue&type=script&lang=js\"\nexport * from \"./OrderDetail.vue?vue&type=script&lang=js\"\nimport style0 from \"./OrderDetail.vue?vue&type=style&index=0&id=76ebf0c8&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"76ebf0c8\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","attrs","path","_v","staticStyle","_m","_l","activities","item","i","key","slot","_s","status","timestamp","orderInfo","orderNumber","orderTime","deliveryInfo","receiver","address","phone","deliveryMethod","expectedDeliveryTime","paymentInfo","paymentMethod","paymentStatus","paymentTime","productList","scopedSlots","_u","fn","row","image","name","subtotal","totalPrice","productTotal","shippingFee","actualPayment","staticRenderFns","data","spec","price","quantity","computed","methods","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/217.d6b5d26b.js b/dist/js/217.d6b5d26b.js new file mode 100644 index 0000000..e1cbd72 --- /dev/null +++ b/dist/js/217.d6b5d26b.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[217],{8217:function(e,t,a){a.r(t),a.d(t,{default:function(){return d}});var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"bg"},[t("el-tabs",{model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[t("el-tab-pane",{attrs:{label:"已开票订单",name:"pendingPayment"}}),t("el-tab-pane",{attrs:{label:"未开票订单",name:"pendingDelivery"}})],1),t("div",{staticClass:"filter-bar"},[t("el-form",{attrs:{inline:!0,model:e.filterForm,size:"small"}},[t("el-form-item",{attrs:{label:"订单编号"}},[t("el-input",{attrs:{placeholder:"请输入订单编号"},model:{value:e.filterForm.orderNo,callback:function(t){e.$set(e.filterForm,"orderNo",t)},expression:"filterForm.orderNo"}})],1),t("el-form-item",{attrs:{label:"交易状态"}},[t("el-select",{staticStyle:{width:"200px"},attrs:{placeholder:"请选择"},model:{value:e.filterForm.tradeStatus,callback:function(t){e.$set(e.filterForm,"tradeStatus",t)},expression:"filterForm.tradeStatus"}},[t("el-option",{attrs:{label:"全部",value:""}}),t("el-option",{attrs:{label:"待付款",value:"pendingPayment"}}),t("el-option",{attrs:{label:"待发货",value:"pendingDelivery"}}),t("el-option",{attrs:{label:"配送中",value:"delivering"}}),t("el-option",{attrs:{label:"已完成",value:"completed"}}),t("el-option",{attrs:{label:"已取消",value:"cancelled"}})],1)],1),t("el-form-item",{attrs:{label:"下单时间"}},[t("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},model:{value:e.filterForm.createTime,callback:function(t){e.$set(e.filterForm,"createTime",t)},expression:"filterForm.createTime"}})],1),t("el-form-item",[t("el-button",{staticStyle:{background:"#6a8a27",border:"none"},attrs:{type:"primary"},on:{click:e.search}},[e._v("搜索")])],1),t("el-form-item",[t("el-button",{on:{click:e.reset}},[e._v("重置")])],1)],1)],1),t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.orders,border:""}},[t("el-table-column",{attrs:{prop:"orderNo",label:"订单号","min-width":"120"}}),t("el-table-column",{attrs:{prop:"status",label:"订单状态",width:"120"}}),t("el-table-column",{attrs:{prop:"createTime",label:"下单时间",width:"200"}}),t("el-table-column",{attrs:{prop:"totalAmount",label:"发票金额",width:"120"}}),t("el-table-column",{attrs:{prop:"orderNo",label:"发票抬头","min-width":"120"}}),t("el-table-column",{attrs:{prop:"orderNo",label:"发票类型",width:"120"}}),t("el-table-column",{attrs:{prop:"orderNo",label:"开票状态",width:"120"}}),t("el-table-column",{attrs:{label:"操作",width:"200"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.handleEdit(a.row)}}},[e._v("下载发票")]),t("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.handleDelete(a.row)}}},[e._v("申请发票")])]}}])})],1),t("div",{staticStyle:{"text-align":"right","margin-top":"20px"}},[t("el-pagination",{attrs:{"current-page":e.filterForm.currentPage,"page-sizes":[5,10,20],"page-size":e.filterForm.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.filterForm.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)},i=[],l=(a(4114),a(8111),a(2489),a(3579),{name:"OrderList",data(){return{activeTab:"all",currentPage:1,pageSize:10,filterForm:{goodsName:"",orderNo:"",createTime:"",merchantName:"",tradeStatus:""},orders:[{id:1,orderNo:"209907091214560078",createTime:"2099-07-09 10:47:49",status:"pendingPayment",totalAmount:937,freight:15,isReviewed:!1,merchant:{id:101,name:"花艺生活馆",isOfficial:!0},products:[{id:1001,name:"深情挚爱/卡罗拉玫瑰",image:"https://picsum.photos/200/200?random=1",spec:"卡罗拉玫瑰33枝",price:349,quantity:1,status:"pendingPayment"},{id:1002,name:"精美包装纸",image:"https://picsum.photos/200/200?random=4",spec:"粉色",price:38,quantity:2,status:"pendingPayment"}]},{id:2,orderNo:"209907091214560079",createTime:"2099-07-09 10:48:49",status:"pendingDelivery",totalAmount:199,freight:0,isReviewed:!1,merchant:{id:102,name:"北欧家居旗舰店",isOfficial:!0},products:[{id:2001,name:"北欧花艺素雅仿真花",image:"https://picsum.photos/200/200?random=2",spec:"白色",price:199,quantity:1,status:"pendingDelivery"}]},{id:3,orderNo:"209907091214560080",createTime:"2099-07-09 10:49:49",status:"delivering",totalAmount:389,freight:10,isReviewed:!1,merchant:{id:101,name:"花艺生活馆",isOfficial:!0},products:[{id:3001,name:"香槟玫瑰+白玫瑰混搭",image:"https://picsum.photos/200/200?random=3",spec:"混搭",price:389,quantity:1,status:"delivering"}]}]}},computed:{filteredOrders(){let e=[...this.orders];if("all"!==this.activeTab&&(e=e.filter(e=>e.status===this.activeTab)),this.filterForm.goodsName){const t=this.filterForm.goodsName.toLowerCase();e=e.filter(e=>e.products.some(e=>e.name.toLowerCase().includes(t)))}if(this.filterForm.orderNo&&(e=e.filter(e=>e.orderNo.includes(this.filterForm.orderNo))),this.filterForm.merchantName){const t=this.filterForm.merchantName.toLowerCase();e=e.filter(e=>e.merchant.name.toLowerCase().includes(t))}return this.filterForm.tradeStatus&&(e=e.filter(e=>e.status===this.filterForm.tradeStatus)),e}},methods:{search(){this.currentPage=1,this.$message({message:"搜索条件已应用",type:"info"})},reset(){this.filterForm={goodsName:"",orderNo:"",createTime:"",merchantName:"",tradeStatus:""},this.activeTab="all",this.currentPage=1},handleSizeChange(e){this.pageSize=e},handleCurrentChange(e){this.currentPage=e},getStatusText(e){const t={pendingPayment:"待付款",pendingDelivery:"待发货",delivering:"配送中",completed:"已完成",cancelled:"已取消"};return t[e]||e},getStatusTagType(e){const t={pendingPayment:"warning",pendingDelivery:"info",delivering:"primary",completed:"success",cancelled:"danger"};return t[e]||"default"},payOrder(e){this.$message({message:`订单 ${e} 去付款`,type:"info"})},remindDelivery(e){this.$message({message:`已提醒订单 ${e} 发货`,type:"success"})},checkLogistics(e){this.$message({message:`查看订单 ${e} 物流`,type:"info"})},gotoReview(e){this.$message({message:`去评价订单 ${e}`,type:"info"})},viewOrderDetail(e){this.$router.push({name:"OrderDetail"})}}}),s=l,o=a(1656),n=(0,o.A)(s,r,i,!1,null,"cda00668",null),d=n.exports}}]); +//# sourceMappingURL=217.d6b5d26b.js.map \ No newline at end of file diff --git a/dist/js/217.d6b5d26b.js.map b/dist/js/217.d6b5d26b.js.map new file mode 100644 index 0000000..bd1ad88 --- /dev/null +++ b/dist/js/217.d6b5d26b.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/217.d6b5d26b.js","mappings":"sJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,MAAM,CAACF,EAAG,UAAU,CAACG,MAAM,CAACC,MAAON,EAAIO,UAAWC,S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3B,QAAA,GACAI,WAAA,GACAwB,aAAA,GACAzB,YAAA,IAEA,KAAAT,UAAA,MACA,KAAAyB,YAAA,CACA,EAGAG,gBAAAA,CAAAiC,GACA,KAAAnC,SAAAmC,CACA,EAGAhC,mBAAAA,CAAAgC,GACA,KAAApC,YAAAoC,CACA,EAGAC,aAAAA,CAAA1B,GACA,MAAA2B,EAAA,CACAC,eAAA,MACAC,gBAAA,MACAC,WAAA,MACAC,UAAA,MACAC,UAAA,OAEA,OAAAL,EAAA3B,IAAAA,CACA,EAGAiC,gBAAAA,CAAAjC,GACA,MAAAkC,EAAA,CACAN,eAAA,UACAC,gBAAA,OACAC,WAAA,UACAC,UAAA,UACAC,UAAA,UAEA,OAAAE,EAAAlC,IAAA,SACA,EAGAmC,QAAAA,CAAAC,GACA,KAAAd,SAAA,CACAC,QAAA,MAAAa,QACAZ,KAAA,QAEA,EAGAa,cAAAA,CAAAD,GACA,KAAAd,SAAA,CACAC,QAAA,SAAAa,OACAZ,KAAA,WAEA,EAGAc,cAAAA,CAAAF,GACA,KAAAd,SAAA,CACAC,QAAA,QAAAa,OACAZ,KAAA,QAEA,EAGAe,UAAAA,CAAAH,GACA,KAAAd,SAAA,CACAC,QAAA,SAAAa,IACAZ,KAAA,QAEA,EAGAgB,eAAAA,CAAAJ,GACA,KAAAK,QAAAC,KAAA,CACA/C,KAAA,eAEA,KC1TuQ,I,UCQnQgD,GAAY,OACd,EACAvF,EACAsC,GACA,EACA,KACA,WACA,MAIF,EAAeiD,E","sources":["webpack://abcdf/./src/views/User/UserInvoiceList.vue","webpack://abcdf/src/views/User/UserInvoiceList.vue","webpack://abcdf/./src/views/User/UserInvoiceList.vue?81d6","webpack://abcdf/./src/views/User/UserInvoiceList.vue?5e4f"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg\"},[_c('el-tabs',{model:{value:(_vm.activeTab),callback:function ($$v) {_vm.activeTab=$$v},expression:\"activeTab\"}},[_c('el-tab-pane',{attrs:{\"label\":\"已开票订单\",\"name\":\"pendingPayment\"}}),_c('el-tab-pane',{attrs:{\"label\":\"未开票订单\",\"name\":\"pendingDelivery\"}})],1),_c('div',{staticClass:\"filter-bar\"},[_c('el-form',{attrs:{\"inline\":true,\"model\":_vm.filterForm,\"size\":\"small\"}},[_c('el-form-item',{attrs:{\"label\":\"订单编号\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入订单编号\"},model:{value:(_vm.filterForm.orderNo),callback:function ($$v) {_vm.$set(_vm.filterForm, \"orderNo\", $$v)},expression:\"filterForm.orderNo\"}})],1),_c('el-form-item',{attrs:{\"label\":\"交易状态\"}},[_c('el-select',{staticStyle:{\"width\":\"200px\"},attrs:{\"placeholder\":\"请选择\"},model:{value:(_vm.filterForm.tradeStatus),callback:function ($$v) {_vm.$set(_vm.filterForm, \"tradeStatus\", $$v)},expression:\"filterForm.tradeStatus\"}},[_c('el-option',{attrs:{\"label\":\"全部\",\"value\":\"\"}}),_c('el-option',{attrs:{\"label\":\"待付款\",\"value\":\"pendingPayment\"}}),_c('el-option',{attrs:{\"label\":\"待发货\",\"value\":\"pendingDelivery\"}}),_c('el-option',{attrs:{\"label\":\"配送中\",\"value\":\"delivering\"}}),_c('el-option',{attrs:{\"label\":\"已完成\",\"value\":\"completed\"}}),_c('el-option',{attrs:{\"label\":\"已取消\",\"value\":\"cancelled\"}})],1)],1),_c('el-form-item',{attrs:{\"label\":\"下单时间\"}},[_c('el-date-picker',{attrs:{\"type\":\"daterange\",\"range-separator\":\"至\",\"start-placeholder\":\"开始日期\",\"end-placeholder\":\"结束日期\",\"value-format\":\"yyyy-MM-dd\"},model:{value:(_vm.filterForm.createTime),callback:function ($$v) {_vm.$set(_vm.filterForm, \"createTime\", $$v)},expression:\"filterForm.createTime\"}})],1),_c('el-form-item',[_c('el-button',{staticStyle:{\"background\":\"#6a8a27\",\"border\":\"none\"},attrs:{\"type\":\"primary\"},on:{\"click\":_vm.search}},[_vm._v(\"搜索\")])],1),_c('el-form-item',[_c('el-button',{on:{\"click\":_vm.reset}},[_vm._v(\"重置\")])],1)],1)],1),_c('el-table',{staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.orders,\"border\":\"\"}},[_c('el-table-column',{attrs:{\"prop\":\"orderNo\",\"label\":\"订单号\",\"min-width\":\"120\"}}),_c('el-table-column',{attrs:{\"prop\":\"status\",\"label\":\"订单状态\",\"width\":\"120\"}}),_c('el-table-column',{attrs:{\"prop\":\"createTime\",\"label\":\"下单时间\",\"width\":\"200\"}}),_c('el-table-column',{attrs:{\"prop\":\"totalAmount\",\"label\":\"发票金额\",\"width\":\"120\"}}),_c('el-table-column',{attrs:{\"prop\":\"orderNo\",\"label\":\"发票抬头\",\"min-width\":\"120\"}}),_c('el-table-column',{attrs:{\"prop\":\"orderNo\",\"label\":\"发票类型\",\"width\":\"120\"}}),_c('el-table-column',{attrs:{\"prop\":\"orderNo\",\"label\":\"开票状态\",\"width\":\"120\"}}),_c('el-table-column',{attrs:{\"label\":\"操作\",\"width\":\"200\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.handleEdit(scope.row)}}},[_vm._v(\"下载发票\")]),_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){return _vm.handleDelete(scope.row)}}},[_vm._v(\"申请发票\")])]}}])})],1),_c('div',{staticStyle:{\"text-align\":\"right\",\"margin-top\":\"20px\"}},[_c('el-pagination',{attrs:{\"current-page\":_vm.filterForm.currentPage,\"page-sizes\":[5, 10, 20],\"page-size\":_vm.filterForm.pageSize,\"layout\":\"total, sizes, prev, pager, next, jumper\",\"total\":_vm.filterForm.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./UserInvoiceList.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./UserInvoiceList.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./UserInvoiceList.vue?vue&type=template&id=cda00668&scoped=true\"\nimport script from \"./UserInvoiceList.vue?vue&type=script&lang=js\"\nexport * from \"./UserInvoiceList.vue?vue&type=script&lang=js\"\nimport style0 from \"./UserInvoiceList.vue?vue&type=style&index=0&id=cda00668&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"cda00668\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","model","value","activeTab","callback","$$v","expression","attrs","filterForm","orderNo","$set","staticStyle","tradeStatus","createTime","on","search","_v","reset","orders","scopedSlots","_u","key","fn","scope","$event","handleEdit","row","handleDelete","currentPage","pageSize","total","handleSizeChange","handleCurrentChange","staticRenderFns","name","data","goodsName","merchantName","id","status","totalAmount","freight","isReviewed","merchant","isOfficial","products","image","spec","price","quantity","computed","filteredOrders","result","filter","order","keyword","toLowerCase","some","product","includes","methods","$message","message","type","val","getStatusText","statusMap","pendingPayment","pendingDelivery","delivering","completed","cancelled","getStatusTagType","typeMap","payOrder","orderId","remindDelivery","checkLogistics","gotoReview","viewOrderDetail","$router","push","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/23.5e60beb0.js b/dist/js/23.5e60beb0.js deleted file mode 100644 index b30a61c..0000000 --- a/dist/js/23.5e60beb0.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[23],{3023:function(e,t,s){s.r(t),s.d(t,{default:function(){return c}});var o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"login-page"},[e._m(0),t("div",{staticClass:"form-card"},[t("div",{staticClass:"tab-bar"},[t("div",{staticClass:"tab-item",class:{active:"sms"===e.loginType},on:{click:function(t){e.loginType="sms"}}},[e._v(" 短信登录 ")]),t("div",{staticClass:"tab-item",class:{active:"password"===e.loginType},on:{click:function(t){e.loginType="password"}}},[e._v(" 密码登录 ")])]),t("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.form,rules:e.rules,"label-width":"0"}},[t("el-form-item",{attrs:{prop:"phone"}},[t("el-input",{attrs:{placeholder:"请输入手机号码",clearable:"","prefix-icon":"el-icon-phone"},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1),"sms"===e.loginType?t("el-form-item",{attrs:{prop:"code"}},[t("el-input",{staticStyle:{width:"65%"},attrs:{placeholder:"请输入验证码",clearable:"","prefix-icon":"el-icon-message"},model:{value:e.form.code,callback:function(t){e.$set(e.form,"code",t)},expression:"form.code"}}),t("el-button",{staticClass:"code-btn",attrs:{type:"primary",disabled:e.codeDisabled},on:{click:e.handleGetCode}},[e._v(" "+e._s(e.codeText)+" ")])],1):e._e(),"password"===e.loginType?t("el-form-item",{attrs:{prop:"password"}},[t("el-input",{attrs:{type:"password",placeholder:"请输入密码",clearable:"","prefix-icon":"el-icon-lock"},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}})],1):e._e(),t("el-form-item",{staticClass:"remember-item"},[t("el-checkbox",{attrs:{size:"mini"},model:{value:e.rememberPhone,callback:function(t){e.rememberPhone=t},expression:"rememberPhone"}},[e._v(" 记住用户名/手机号码 ")])],1),t("el-form-item",[t("el-button",{staticClass:"login-btn",attrs:{type:"primary",loading:e.submitting},on:{click:e.handleLogin}},[e._v(" 立即登录 ")])],1),t("div",{staticClass:"register-guide"},[e._v(" 首次使用? "),t("router-link",{staticClass:"register-link",attrs:{to:"/Register"},on:{click:e.goToRegister}},[e._v(" 点击注册 ")])],1)],1)],1)])},r=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"bg-container"},[t("img",{staticClass:"bg-img",attrs:{src:s(3153),alt:"login background"}})])}],i=(s(4114),{name:"Login",data(){return{loginType:"sms",form:{phone:"",code:"",password:""},rules:{phone:[{required:!0,message:"请输入手机号码",trigger:"blur"},{pattern:/^1\d{10}$/,message:"手机号码格式错误",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"},{pattern:/^\d{6}$/,message:"验证码为6位数字",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"},{min:6,message:"密码至少6位",trigger:"blur"}]},codeText:"获取验证码",codeDisabled:!1,countdown:60,rememberPhone:!1,submitting:!1}},mounted(){const e=localStorage.getItem("rememberedPhone");e&&(this.form.phone=e,this.rememberPhone=!0)},methods:{switchLoginType(e){this.loginType=e,this.resetForm()},resetForm(){this.form.code="",this.form.password="",this.$refs.loginForm.resetValidation()},handleGetCode(){if(!this.form.phone)return void this.$message.warning("请先输入手机号码");this.codeDisabled=!0,this.codeText=`重新发送(${this.countdown}s)`;const e=setInterval(()=>{this.countdown--,this.codeText=`重新发送(${this.countdown}s)`,this.countdown<=0&&(clearInterval(e),this.codeText="获取验证码",this.codeDisabled=!1,this.countdown=60)},1e3)},handleLogin(){this.$refs.loginForm.validate(e=>{e&&(this.submitting=!0,setTimeout(()=>{this.$message.success("登录成功!"),this.submitting=!1,this.rememberPhone?localStorage.setItem("rememberedPhone",this.form.phone):localStorage.removeItem("rememberedPhone")},1500))})},goToRegister(){this.$router.push("/register")}}}),a=i,n=s(1656),l=(0,n.A)(a,o,r,!1,null,"d5fcf218",null),c=l.exports}}]); -//# sourceMappingURL=23.5e60beb0.js.map \ No newline at end of file diff --git a/dist/js/23.5e60beb0.js.map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AEA,IAGA,EAGAX,WAAAA,GACA,KAAAoB,MAAAC,UAAAO,SAAAC,IACAA,IACA,KAAA9B,YAAA,EAEA+B,WAAA,KACA,KAAAP,SAAAQ,QAAA,SACA,KAAAhC,YAAA,EAEA,KAAAD,cACAgB,aAAAkB,QAAA,uBAAAnD,KAAAI,OAEA6B,aAAAmB,WAAA,oBAMA,QAGA,EAGAhC,YAAAA,GACA,KAAAiC,QAAAC,KAAA,YACA,KChOoP,I,UCQhPC,GAAY,OACd,EACAtE,EACAoC,GACA,EACA,KACA,WACA,MAIF,EAAekC,E","sources":["webpack://abcdf/./src/views/Login.vue","webpack://abcdf/src/views/Login.vue","webpack://abcdf/./src/views/Login.vue?3cb7","webpack://abcdf/./src/views/Login.vue?a6ee"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"login-page\"},[_vm._m(0),_c('div',{staticClass:\"form-card\"},[_c('div',{staticClass:\"tab-bar\"},[_c('div',{staticClass:\"tab-item\",class:{ active: _vm.loginType === 'sms' },on:{\"click\":function($event){_vm.loginType = 'sms'}}},[_vm._v(\" 短信登录 \")]),_c('div',{staticClass:\"tab-item\",class:{ active: _vm.loginType === 'password' },on:{\"click\":function($event){_vm.loginType = 'password'}}},[_vm._v(\" 密码登录 \")])]),_c('el-form',{ref:\"loginForm\",staticClass:\"login-form\",attrs:{\"model\":_vm.form,\"rules\":_vm.rules,\"label-width\":\"0\"}},[_c('el-form-item',{attrs:{\"prop\":\"phone\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入手机号码\",\"clearable\":\"\",\"prefix-icon\":\"el-icon-phone\"},model:{value:(_vm.form.phone),callback:function ($$v) {_vm.$set(_vm.form, \"phone\", $$v)},expression:\"form.phone\"}})],1),(_vm.loginType === 'sms')?_c('el-form-item',{attrs:{\"prop\":\"code\"}},[_c('el-input',{staticStyle:{\"width\":\"65%\"},attrs:{\"placeholder\":\"请输入验证码\",\"clearable\":\"\",\"prefix-icon\":\"el-icon-message\"},model:{value:(_vm.form.code),callback:function ($$v) {_vm.$set(_vm.form, \"code\", $$v)},expression:\"form.code\"}}),_c('el-button',{staticClass:\"code-btn\",attrs:{\"type\":\"primary\",\"disabled\":_vm.codeDisabled},on:{\"click\":_vm.handleGetCode}},[_vm._v(\" \"+_vm._s(_vm.codeText)+\" \")])],1):_vm._e(),(_vm.loginType === 'password')?_c('el-form-item',{attrs:{\"prop\":\"password\"}},[_c('el-input',{attrs:{\"type\":\"password\",\"placeholder\":\"请输入密码\",\"clearable\":\"\",\"prefix-icon\":\"el-icon-lock\"},model:{value:(_vm.form.password),callback:function ($$v) {_vm.$set(_vm.form, \"password\", $$v)},expression:\"form.password\"}})],1):_vm._e(),_c('el-form-item',{staticClass:\"remember-item\"},[_c('el-checkbox',{attrs:{\"size\":\"mini\"},model:{value:(_vm.rememberPhone),callback:function ($$v) {_vm.rememberPhone=$$v},expression:\"rememberPhone\"}},[_vm._v(\" 记住用户名/手机号码 \")])],1),_c('el-form-item',[_c('el-button',{staticClass:\"login-btn\",attrs:{\"type\":\"primary\",\"loading\":_vm.submitting},on:{\"click\":_vm.handleLogin}},[_vm._v(\" 立即登录 \")])],1),_c('div',{staticClass:\"register-guide\"},[_vm._v(\" 首次使用? \"),_c('router-link',{staticClass:\"register-link\",attrs:{\"to\":\"/Register\"},on:{\"click\":_vm.goToRegister}},[_vm._v(\" 点击注册 \")])],1)],1)],1)])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg-container\"},[_c('img',{staticClass:\"bg-img\",attrs:{\"src\":require(\"@/assets/logo.png\"),\"alt\":\"login background\"}})])\n}]\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Login.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Login.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Login.vue?vue&type=template&id=d5fcf218&scoped=true\"\nimport script from \"./Login.vue?vue&type=script&lang=js\"\nexport * from \"./Login.vue?vue&type=script&lang=js\"\nimport style0 from \"./Login.vue?vue&type=style&index=0&id=d5fcf218&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"d5fcf218\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","_m","class","active","loginType","on","$event","_v","ref","attrs","form","rules","model","value","phone","callback","$$v","$set","expression","staticStyle","code","codeDisabled","handleGetCode","_s","codeText","_e","password","rememberPhone","submitting","handleLogin","goToRegister","staticRenderFns","require","name","data","required","message","trigger","pattern","min","countdown","mounted","rememberedPhone","localStorage","getItem","methods","switchLoginType","type","resetForm","$refs","loginForm","resetValidation","$message","warning","timer","setInterval","clearInterval","validate","valid","setTimeout","success","setItem","removeItem","$router","push","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/213.7d6a2655.js b/dist/js/241.231f8707.js similarity index 97% rename from dist/js/213.7d6a2655.js rename to dist/js/241.231f8707.js index a828a29..43784b5 100644 --- a/dist/js/213.7d6a2655.js +++ b/dist/js/241.231f8707.js @@ -1,2 +1,2 @@ -"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[213],{2213:function(t,e,s){s.r(e),s.d(e,{default:function(){return c}});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"bg"},[e("div",{staticClass:"normal-margin-bottom"},[e("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[e("el-breadcrumb-item",{attrs:{to:{path:"/User/UserCenter"}}},[t._v("个人中心")]),e("el-breadcrumb-item",{attrs:{to:{path:"/User/OrderList"}}},[t._v("我的订单")]),e("el-breadcrumb-item",[t._v(" 订单详情")])],1)],1),e("div",{staticClass:"common-card normal-margin-bottom",staticStyle:{padding:"20px 0",display:"flex"}},[e("div",{staticClass:"order-status"},[e("div",{staticClass:"order-no"},[t._v("订单号: 209907091214560078 "),e("el-button",{staticStyle:{color:"#999"},attrs:{type:"text",icon:"el-icon-document-copy"}})],1),t._m(0),e("el-button",{attrs:{type:"primary",size:"medium"}},[t._v("在线付款")]),e("el-button",{staticStyle:{padding:"0"},attrs:{type:"text",size:"small"}},[t._v("打印订单")])],1),e("div",{staticClass:"order-step"},[e("el-steps",{staticStyle:{width:"100%"},attrs:{active:2,"align-center":""}},t._l(t.activities,function(s,a){return e("el-step",{key:a},[e("div",{staticClass:"process-title",attrs:{slot:"title"},slot:"title"},[t._v(t._s(s.status))]),e("div",{attrs:{slot:"icon"},slot:"icon"},[a>=2?e("span",[t._v(t._s(a+1))]):e("i",{staticClass:"el-icon-check",staticStyle:{color:"#fff"}})]),e("div",{staticClass:"process-description",attrs:{slot:"description"},slot:"description"},[t._v(t._s(s.timestamp))])])}),1)],1)]),e("div",{staticClass:"common-card normal-margin-bottom order-info-card",staticStyle:{display:"flex",padding:"20px 0"}},[e("el-descriptions",{attrs:{title:"订单信息",column:1}},[e("el-descriptions-item",{attrs:{label:"订单号"}},[t._v(t._s(t.orderInfo.orderNumber))]),e("el-descriptions-item",{attrs:{label:"订单状态"}},[t._v(t._s(t.orderInfo.status))]),e("el-descriptions-item",{attrs:{label:"下单时间"}},[t._v(t._s(t.orderInfo.orderTime))])],1),e("el-descriptions",{attrs:{title:"配送信息",column:1}},[e("el-descriptions-item",{attrs:{label:"收货人"}},[t._v(t._s(t.deliveryInfo.receiver))]),e("el-descriptions-item",{attrs:{label:"地址"}},[t._v(t._s(t.deliveryInfo.address))]),e("el-descriptions-item",{attrs:{label:"手机号码"}},[t._v(t._s(t.deliveryInfo.phone))]),e("el-descriptions-item",{attrs:{label:"配送方式"}},[t._v(t._s(t.deliveryInfo.deliveryMethod))]),e("el-descriptions-item",{attrs:{label:"期望送达时间"}},[t._v(t._s(t.deliveryInfo.expectedDeliveryTime))])],1),e("el-descriptions",{staticStyle:{border:"none"},attrs:{title:"支付信息",column:1}},[e("el-descriptions-item",{attrs:{label:"支付方式"}},[t._v(t._s(t.paymentInfo.paymentMethod))]),e("el-descriptions-item",{attrs:{label:"支付状态"}},[t._v(t._s(t.paymentInfo.paymentStatus))]),e("el-descriptions-item",{attrs:{label:"支付时间"}},[t._v(t._s(t.paymentInfo.paymentTime))])],1)],1),e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.productList}},[e("el-table-column",{attrs:{prop:"name",label:"商品名称",align:"center"},scopedSlots:t._u([{key:"default",fn:function({row:s}){return[e("div",{staticStyle:{display:"flex","align-items":"center"}},[e("img",{staticClass:"product-image",attrs:{src:s.image,alt:s.name}}),e("div",[t._v(t._s(s.name))])])]}}])}),e("el-table-column",{attrs:{prop:"spec",label:"规格",align:"center"}}),e("el-table-column",{attrs:{prop:"price",label:"单价(元)",align:"center",width:"200"}}),e("el-table-column",{attrs:{prop:"quantity",label:"数量",align:"center",width:"100"}}),e("el-table-column",{attrs:{prop:"subtotal",label:"小计(元)",align:"center",width:"200"},scopedSlots:t._u([{key:"default",fn:function({row:s}){return[e("div",{staticStyle:{color:"#ff1111"}},[t._v("¥"+t._s(s.subtotal))])]}}])})],1),e("div",{staticClass:"common-card normal-margin-bottom total-card"},[e("el-descriptions",{attrs:{column:1}},[e("el-descriptions-item",{attrs:{label:"商品总价"}},[t._v("¥"+t._s(t.totalPrice.productTotal))]),e("el-descriptions-item",{attrs:{label:"运费"}},[t._v("¥"+t._s(t.totalPrice.shippingFee))]),e("el-descriptions-item",{attrs:{label:"实付款"}},[e("span",{staticStyle:{"font-size":"16px","font-weight":"bold",color:"#ff1111"}},[t._v("¥"+t._s(t.totalPrice.actualPayment))])])],1)],1)],1)},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"status-title"},[e("i",{staticClass:"el-icon-time",staticStyle:{color:"#ff9800","font-size":"32px"}}),e("span",{staticStyle:{height:"24px","line-height":"24px","padding-left":"5px"}},[t._v("订单状态: 待付款")])])}],l={name:"OrderDetail",data(){return{activities:[{status:"提交订单",timestamp:"2025-08-01 15:30:00"},{status:"支付成功",timestamp:"2025-08-01 15:35:00"},{status:"商家接单",timestamp:"2025-08-01 15:40:00"},{status:"商品出库",timestamp:"2025-08-01 16:00:00"},{status:"配送中",timestamp:"2025-08-01 16:30:00"},{status:"已完成",timestamp:"2025-08-01 17:00:00"}],orderInfo:{orderNumber:"20250801123456",status:"已完成",orderTime:"2025-08-01 15:30:00"},deliveryInfo:{receiver:"张三",address:"北京市海淀区xxx街道xxx小区",phone:"13800138000",deliveryMethod:"快递",expectedDeliveryTime:"2025-08-02"},paymentInfo:{paymentMethod:"支付宝",paymentStatus:"已支付",paymentTime:"2025-08-01 15:35:00"},productList:[{name:"商品1",spec:"规格1",price:100,quantity:1,subtotal:100,image:"https://picsum.photos/200/200?random=1"},{name:"商品2",spec:"规格2",price:200,quantity:2,subtotal:400,image:"https://picsum.photos/200/200?random=1"}],totalPrice:{productTotal:500,shippingFee:0,actualPayment:500}}},computed:{},methods:{}},r=l,o=s(1656),n=(0,o.A)(r,a,i,!1,null,"76ebf0c8",null),c=n.exports}}]); -//# sourceMappingURL=213.7d6a2655.js.map \ No newline at end of file +"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[241],{6241:function(t,e,s){s.r(e),s.d(e,{default:function(){return c}});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"bg"},[e("div",{staticClass:"normal-margin-bottom"},[e("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[e("el-breadcrumb-item",{attrs:{to:{path:"/User/UserCenter"}}},[t._v("个人中心")]),e("el-breadcrumb-item",{attrs:{to:{path:"/User/OrderList"}}},[t._v("我的订单")]),e("el-breadcrumb-item",[t._v(" 订单详情")])],1)],1),e("div",{staticClass:"common-card normal-margin-bottom",staticStyle:{padding:"20px 0",display:"flex"}},[e("div",{staticClass:"order-status"},[e("div",{staticClass:"order-no"},[t._v("订单号: 209907091214560078 "),e("el-button",{staticStyle:{color:"#999"},attrs:{type:"text",icon:"el-icon-document-copy"}})],1),t._m(0),e("el-button",{attrs:{type:"primary",size:"medium"}},[t._v("在线付款")]),e("el-button",{staticStyle:{padding:"0"},attrs:{type:"text",size:"small"}},[t._v("打印订单")])],1),e("div",{staticClass:"order-step"},[e("el-steps",{staticStyle:{width:"100%"},attrs:{active:2,"align-center":""}},t._l(t.activities,function(s,a){return e("el-step",{key:a},[e("div",{staticClass:"process-title",attrs:{slot:"title"},slot:"title"},[t._v(t._s(s.status))]),e("div",{attrs:{slot:"icon"},slot:"icon"},[a>=2?e("span",[t._v(t._s(a+1))]):e("i",{staticClass:"el-icon-check",staticStyle:{color:"#fff"}})]),e("div",{staticClass:"process-description",attrs:{slot:"description"},slot:"description"},[t._v(t._s(s.timestamp))])])}),1)],1)]),e("div",{staticClass:"common-card normal-margin-bottom order-info-card",staticStyle:{display:"flex",padding:"20px 0"}},[e("el-descriptions",{attrs:{title:"订单信息",column:1}},[e("el-descriptions-item",{attrs:{label:"订单号"}},[t._v(t._s(t.orderInfo.orderNumber))]),e("el-descriptions-item",{attrs:{label:"订单状态"}},[t._v(t._s(t.orderInfo.status))]),e("el-descriptions-item",{attrs:{label:"下单时间"}},[t._v(t._s(t.orderInfo.orderTime))])],1),e("el-descriptions",{attrs:{title:"配送信息",column:1}},[e("el-descriptions-item",{attrs:{label:"收货人"}},[t._v(t._s(t.deliveryInfo.receiver))]),e("el-descriptions-item",{attrs:{label:"地址"}},[t._v(t._s(t.deliveryInfo.address))]),e("el-descriptions-item",{attrs:{label:"手机号码"}},[t._v(t._s(t.deliveryInfo.phone))]),e("el-descriptions-item",{attrs:{label:"配送方式"}},[t._v(t._s(t.deliveryInfo.deliveryMethod))]),e("el-descriptions-item",{attrs:{label:"期望送达时间"}},[t._v(t._s(t.deliveryInfo.expectedDeliveryTime))])],1),e("el-descriptions",{staticStyle:{border:"none"},attrs:{title:"支付信息",column:1}},[e("el-descriptions-item",{attrs:{label:"支付方式"}},[t._v(t._s(t.paymentInfo.paymentMethod))]),e("el-descriptions-item",{attrs:{label:"支付状态"}},[t._v(t._s(t.paymentInfo.paymentStatus))]),e("el-descriptions-item",{attrs:{label:"支付时间"}},[t._v(t._s(t.paymentInfo.paymentTime))])],1)],1),e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.productList}},[e("el-table-column",{attrs:{prop:"name",label:"商品名称",align:"center"},scopedSlots:t._u([{key:"default",fn:function({row:s}){return[e("div",{staticStyle:{display:"flex","align-items":"center"}},[e("img",{staticClass:"product-image",attrs:{src:s.image,alt:s.name}}),e("div",[t._v(t._s(s.name))])])]}}])}),e("el-table-column",{attrs:{prop:"spec",label:"规格",align:"center"}}),e("el-table-column",{attrs:{prop:"price",label:"单价(元)",align:"center",width:"200"}}),e("el-table-column",{attrs:{prop:"quantity",label:"数量",align:"center",width:"100"}}),e("el-table-column",{attrs:{prop:"subtotal",label:"小计(元)",align:"center",width:"200"},scopedSlots:t._u([{key:"default",fn:function({row:s}){return[e("div",{staticStyle:{color:"#ff1111"}},[t._v("¥"+t._s(s.subtotal))])]}}])})],1),e("div",{staticClass:"common-card normal-margin-bottom total-card"},[e("el-descriptions",{attrs:{column:1}},[e("el-descriptions-item",{attrs:{label:"商品总价"}},[t._v("¥"+t._s(t.totalPrice.productTotal))]),e("el-descriptions-item",{attrs:{label:"运费"}},[t._v("¥"+t._s(t.totalPrice.shippingFee))]),e("el-descriptions-item",{attrs:{label:"实付款"}},[e("span",{staticStyle:{"font-size":"16px","font-weight":"bold",color:"#ff1111"}},[t._v("¥"+t._s(t.totalPrice.actualPayment))])])],1)],1)],1)},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"status-title"},[e("i",{staticClass:"el-icon-time",staticStyle:{color:"#ff9800","font-size":"32px"}}),e("span",{staticStyle:{height:"24px","line-height":"24px","padding-left":"5px"}},[t._v("订单状态: 待付款")])])}],l={name:"OrderDetail",data(){return{activities:[{status:"提交订单",timestamp:"2025-08-01 15:30:00"},{status:"支付成功",timestamp:"2025-08-01 15:35:00"},{status:"商家接单",timestamp:"2025-08-01 15:40:00"},{status:"商品出库",timestamp:"2025-08-01 16:00:00"},{status:"配送中",timestamp:"2025-08-01 16:30:00"},{status:"已完成",timestamp:"2025-08-01 17:00:00"}],orderInfo:{orderNumber:"20250801123456",status:"已完成",orderTime:"2025-08-01 15:30:00"},deliveryInfo:{receiver:"张三",address:"北京市海淀区xxx街道xxx小区",phone:"13800138000",deliveryMethod:"快递",expectedDeliveryTime:"2025-08-02"},paymentInfo:{paymentMethod:"支付宝",paymentStatus:"已支付",paymentTime:"2025-08-01 15:35:00"},productList:[{name:"商品1",spec:"规格1",price:100,quantity:1,subtotal:100,image:"https://picsum.photos/200/200?random=1"},{name:"商品2",spec:"规格2",price:200,quantity:2,subtotal:400,image:"https://picsum.photos/200/200?random=1"}],totalPrice:{productTotal:500,shippingFee:0,actualPayment:500}}},computed:{},methods:{}},r=l,o=s(1656),n=(0,o.A)(r,a,i,!1,null,"56d6bf2e",null),c=n.exports}}]); +//# sourceMappingURL=241.231f8707.js.map \ No newline at end of file diff --git a/dist/js/241.231f8707.js.map b/dist/js/241.231f8707.js.map new file mode 100644 index 0000000..b103957 --- /dev/null +++ b/dist/js/241.231f8707.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/241.231f8707.js","mappings":"sJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,MAAM,CAACF,EAAG,MAAM,CAACE,YAAY,wBAAwB,CAACF,EAAG,gBAAgB,CAACG,MAAM,CAAC,kBAAkB,wBAAwB,CA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AA,MAAAC,UAAA,wBAEAC,UAAA,CACAC,YAAA,iBACAH,OAAA,MACAI,UAAA,uBAEAC,aAAA,CACAC,SAAA,KACAC,QAAA,mBACAC,MAAA,cACAC,eAAA,KACAC,qBAAA,cAEAC,YAAA,CACAC,cAAA,MACAC,cAAA,MACAC,YAAA,uBAEAC,YAAA,CACA,CAAAM,KAAA,MAAAQ,KAAA,MAAAC,MAAA,IAAAC,SAAA,EAAAT,SAAA,IAAAF,MAAA,0CACA,CAAAC,KAAA,MAAAQ,KAAA,MAAAC,MAAA,IAAAC,SAAA,EAAAT,SAAA,IAAAF,MAAA,2CAEAG,WAAA,CACAC,aAAA,IACAC,YAAA,EACAC,cAAA,KAGA,EACAM,SAAA,CAEA,EACAC,QAAA,CAEA,GC9ImQ,I,UCQ/PC,GAAY,OACd,EACApD,EACA6C,GACA,EACA,KACA,WACA,MAIF,EAAeO,E","sources":["webpack://abcdf/./src/views/Order/OrderDetail.vue","webpack://abcdf/src/views/Order/OrderDetail.vue","webpack://abcdf/./src/views/Order/OrderDetail.vue?32d4","webpack://abcdf/./src/views/Order/OrderDetail.vue?fd9f"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg\"},[_c('div',{staticClass:\"normal-margin-bottom\"},[_c('el-breadcrumb',{attrs:{\"separator-class\":\"el-icon-arrow-right\"}},[_c('el-breadcrumb-item',{attrs:{\"to\":{ path: '/User/UserCenter' }}},[_vm._v(\"个人中心\")]),_c('el-breadcrumb-item',{attrs:{\"to\":{ path: '/User/OrderList' }}},[_vm._v(\"我的订单\")]),_c('el-breadcrumb-item',[_vm._v(\" 订单详情\")])],1)],1),_c('div',{staticClass:\"common-card normal-margin-bottom\",staticStyle:{\"padding\":\"20px 0\",\"display\":\"flex\"}},[_c('div',{staticClass:\"order-status\"},[_c('div',{staticClass:\"order-no\"},[_vm._v(\"订单号: 209907091214560078 \"),_c('el-button',{staticStyle:{\"color\":\"#999\"},attrs:{\"type\":\"text\",\"icon\":\"el-icon-document-copy\"}})],1),_vm._m(0),_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"medium\"}},[_vm._v(\"在线付款\")]),_c('el-button',{staticStyle:{\"padding\":\"0\"},attrs:{\"type\":\"text\",\"size\":\"small\"}},[_vm._v(\"打印订单\")])],1),_c('div',{staticClass:\"order-step\"},[_c('el-steps',{staticStyle:{\"width\":\"100%\"},attrs:{\"active\":2,\"align-center\":\"\"}},_vm._l((_vm.activities),function(item,i){return _c('el-step',{key:i},[_c('div',{staticClass:\"process-title\",attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(_vm._s(item.status))]),_c('div',{attrs:{\"slot\":\"icon\"},slot:\"icon\"},[(i>=2)?_c('span',[_vm._v(_vm._s(i+1))]):_c('i',{staticClass:\"el-icon-check\",staticStyle:{\"color\":\"#fff\"}})]),_c('div',{staticClass:\"process-description\",attrs:{\"slot\":\"description\"},slot:\"description\"},[_vm._v(_vm._s(item.timestamp))])])}),1)],1)]),_c('div',{staticClass:\"common-card normal-margin-bottom order-info-card\",staticStyle:{\"display\":\"flex\",\"padding\":\"20px 0\"}},[_c('el-descriptions',{attrs:{\"title\":\"订单信息\",\"column\":1}},[_c('el-descriptions-item',{attrs:{\"label\":\"订单号\"}},[_vm._v(_vm._s(_vm.orderInfo.orderNumber))]),_c('el-descriptions-item',{attrs:{\"label\":\"订单状态\"}},[_vm._v(_vm._s(_vm.orderInfo.status))]),_c('el-descriptions-item',{attrs:{\"label\":\"下单时间\"}},[_vm._v(_vm._s(_vm.orderInfo.orderTime))])],1),_c('el-descriptions',{attrs:{\"title\":\"配送信息\",\"column\":1}},[_c('el-descriptions-item',{attrs:{\"label\":\"收货人\"}},[_vm._v(_vm._s(_vm.deliveryInfo.receiver))]),_c('el-descriptions-item',{attrs:{\"label\":\"地址\"}},[_vm._v(_vm._s(_vm.deliveryInfo.address))]),_c('el-descriptions-item',{attrs:{\"label\":\"手机号码\"}},[_vm._v(_vm._s(_vm.deliveryInfo.phone))]),_c('el-descriptions-item',{attrs:{\"label\":\"配送方式\"}},[_vm._v(_vm._s(_vm.deliveryInfo.deliveryMethod))]),_c('el-descriptions-item',{attrs:{\"label\":\"期望送达时间\"}},[_vm._v(_vm._s(_vm.deliveryInfo.expectedDeliveryTime))])],1),_c('el-descriptions',{staticStyle:{\"border\":\"none\"},attrs:{\"title\":\"支付信息\",\"column\":1}},[_c('el-descriptions-item',{attrs:{\"label\":\"支付方式\"}},[_vm._v(_vm._s(_vm.paymentInfo.paymentMethod))]),_c('el-descriptions-item',{attrs:{\"label\":\"支付状态\"}},[_vm._v(_vm._s(_vm.paymentInfo.paymentStatus))]),_c('el-descriptions-item',{attrs:{\"label\":\"支付时间\"}},[_vm._v(_vm._s(_vm.paymentInfo.paymentTime))])],1)],1),_c('el-table',{staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.productList}},[_c('el-table-column',{attrs:{\"prop\":\"name\",\"label\":\"商品名称\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function({row}){return [_c('div',{staticStyle:{\"display\":\"flex\",\"align-items\":\"center\"}},[_c('img',{staticClass:\"product-image\",attrs:{\"src\":row.image,\"alt\":row.name}}),_c('div',[_vm._v(_vm._s(row.name))])])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"spec\",\"label\":\"规格\",\"align\":\"center\"}}),_c('el-table-column',{attrs:{\"prop\":\"price\",\"label\":\"单价(元)\",\"align\":\"center\",\"width\":\"200\"}}),_c('el-table-column',{attrs:{\"prop\":\"quantity\",\"label\":\"数量\",\"align\":\"center\",\"width\":\"100\"}}),_c('el-table-column',{attrs:{\"prop\":\"subtotal\",\"label\":\"小计(元)\",\"align\":\"center\",\"width\":\"200\"},scopedSlots:_vm._u([{key:\"default\",fn:function({row}){return [_c('div',{staticStyle:{\"color\":\"#ff1111\"}},[_vm._v(\"¥\"+_vm._s(row.subtotal))])]}}])})],1),_c('div',{staticClass:\"common-card normal-margin-bottom total-card\"},[_c('el-descriptions',{attrs:{\"column\":1}},[_c('el-descriptions-item',{attrs:{\"label\":\"商品总价\"}},[_vm._v(\"¥\"+_vm._s(_vm.totalPrice.productTotal))]),_c('el-descriptions-item',{attrs:{\"label\":\"运费\"}},[_vm._v(\"¥\"+_vm._s(_vm.totalPrice.shippingFee))]),_c('el-descriptions-item',{attrs:{\"label\":\"实付款\"}},[_c('span',{staticStyle:{\"font-size\":\"16px\",\"font-weight\":\"bold\",\"color\":\"#ff1111\"}},[_vm._v(\"¥\"+_vm._s(_vm.totalPrice.actualPayment))])])],1)],1)],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"status-title\"},[_c('i',{staticClass:\"el-icon-time\",staticStyle:{\"color\":\"#ff9800\",\"font-size\":\"32px\"}}),_c('span',{staticStyle:{\"height\":\"24px\",\"line-height\":\"24px\",\"padding-left\":\"5px\"}},[_vm._v(\"订单状态: 待付款\")])])\n}]\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./OrderDetail.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./OrderDetail.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./OrderDetail.vue?vue&type=template&id=56d6bf2e&scoped=true\"\nimport script from \"./OrderDetail.vue?vue&type=script&lang=js\"\nexport * from \"./OrderDetail.vue?vue&type=script&lang=js\"\nimport style0 from \"./OrderDetail.vue?vue&type=style&index=0&id=56d6bf2e&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"56d6bf2e\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","attrs","path","_v","staticStyle","_m","_l","activities","item","i","key","slot","_s","status","timestamp","orderInfo","orderNumber","orderTime","deliveryInfo","receiver","address","phone","deliveryMethod","expectedDeliveryTime","paymentInfo","paymentMethod","paymentStatus","paymentTime","productList","scopedSlots","_u","fn","row","image","name","subtotal","totalPrice","productTotal","shippingFee","actualPayment","staticRenderFns","data","spec","price","quantity","computed","methods","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/285.b163593c.js b/dist/js/285.b163593c.js deleted file mode 100644 index 7ee845a..0000000 --- a/dist/js/285.b163593c.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[285],{8285:function(e,t,a){a.r(t),a.d(t,{default:function(){return d}});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"bg"},[t("el-tabs",{model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[t("el-tab-pane",{attrs:{label:"所有订单",name:"all"}}),t("el-tab-pane",{attrs:{label:"待付款",name:"pendingPayment"}}),t("el-tab-pane",{attrs:{label:"待发货",name:"pendingDelivery"}}),t("el-tab-pane",{attrs:{label:"配送中",name:"delivering"}}),t("el-tab-pane",{attrs:{label:"待评价",name:"pendingReview"}})],1),t("div",{staticClass:"filter-bar"},[t("el-form",{attrs:{inline:!0,model:e.filterForm,size:"small"}},[t("el-form-item",{attrs:{label:"商品名称"}},[t("el-input",{attrs:{placeholder:"请输入商品名称"},model:{value:e.filterForm.goodsName,callback:function(t){e.$set(e.filterForm,"goodsName",t)},expression:"filterForm.goodsName"}})],1),t("el-form-item",{attrs:{label:"订单编号"}},[t("el-input",{attrs:{placeholder:"请输入订单编号"},model:{value:e.filterForm.orderNo,callback:function(t){e.$set(e.filterForm,"orderNo",t)},expression:"filterForm.orderNo"}})],1),t("el-form-item",{attrs:{label:"下单时间"}},[t("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},model:{value:e.filterForm.createTime,callback:function(t){e.$set(e.filterForm,"createTime",t)},expression:"filterForm.createTime"}})],1),t("el-form-item",{attrs:{label:"商家名称"}},[t("el-input",{attrs:{placeholder:"请输入商家名称"},model:{value:e.filterForm.merchantName,callback:function(t){e.$set(e.filterForm,"merchantName",t)},expression:"filterForm.merchantName"}})],1),t("el-form-item",{attrs:{label:"交易状态"}},[t("el-select",{staticStyle:{width:"200px"},attrs:{placeholder:"请选择"},model:{value:e.filterForm.tradeStatus,callback:function(t){e.$set(e.filterForm,"tradeStatus",t)},expression:"filterForm.tradeStatus"}},[t("el-option",{attrs:{label:"全部",value:""}}),t("el-option",{attrs:{label:"待付款",value:"pendingPayment"}}),t("el-option",{attrs:{label:"待发货",value:"pendingDelivery"}}),t("el-option",{attrs:{label:"配送中",value:"delivering"}}),t("el-option",{attrs:{label:"已完成",value:"completed"}}),t("el-option",{attrs:{label:"已取消",value:"cancelled"}})],1)],1),t("el-form-item",{attrs:{label:"完成时间"}},[t("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},model:{value:e.filterForm.createTime,callback:function(t){e.$set(e.filterForm,"createTime",t)},expression:"filterForm.createTime"}})],1),t("el-form-item",[t("el-button",{staticStyle:{background:"#6a8a27",border:"none"},attrs:{type:"primary"},on:{click:e.search}},[e._v("搜索")])],1),t("el-form-item",[t("el-button",{on:{click:e.reset}},[e._v("重置")])],1)],1)],1),t("div",[e._m(0),e._l(e.filteredOrders,function(a){return t("div",{key:a.id,staticClass:"order-card"},[t("div",{staticClass:"order-header flex-between"},[t("div",{staticStyle:{display:"flex"}},[t("div",[e._v("订单号: "+e._s(a.orderNo))]),t("div",{staticStyle:{"padding-left":"60px"}},[e._v("下单时间:"+e._s(a.createTime))])]),t("div",{staticClass:"product-status"},[t("el-tag",{attrs:{type:e.getStatusTagType(a.status),size:"small"}},[e._v(e._s(e.getStatusText(a.status)))])],1)]),t("div",{staticClass:"order-products"},e._l(a.products,function(a){return t("div",{key:a.id,staticClass:"product-item"},[t("img",{staticClass:"product-image",attrs:{src:a.image,alt:a.name}}),t("div",{staticClass:"product-details"},[t("div",{staticClass:"product-name"},[e._v(e._s(a.name))]),t("div",{staticClass:"product-spec"},[e._v(e._s(a.spec))])]),t("div",{staticClass:"product-price"},[e._v("¥"+e._s(a.price.toFixed(2)))]),t("div",{staticClass:"product-quantity"},[e._v("x"+e._s(a.quantity))]),t("div",{staticClass:"product-total"},[e._v("¥"+e._s((a.price*a.quantity).toFixed(2)))]),t("div",{staticClass:"product-actions"},[t("el-button",{attrs:{type:"text",size:"mini"}},[e._v(" 商品详情")])],1)])}),0),t("div",{staticClass:"order-footer"},[t("div",{staticClass:"order-summary"},[t("div",{staticClass:"order-amount"},[e._v(" 合计: "),t("strong",[e._v("¥"+e._s(a.totalAmount.toFixed(2)))]),e._v(" (含运费 ¥"+e._s(a.freight.toFixed(2))+") ")])]),t("div",{staticClass:"order-actions"},[t("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(t){return e.viewOrderDetail(a.id)}}},[e._v("订单详情")]),"pendingPayment"===a.status?t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.payOrder(a.id)}}},[e._v("去付款")]):e._e(),"pendingDelivery"===a.status?t("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(t){return e.remindDelivery(a.id)}}},[e._v("提醒发货")]):e._e(),"delivering"===a.status?t("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(t){return e.checkLogistics(a.id)}}},[e._v("查看物流")]):e._e(),"completed"!==a.status||a.isReviewed?e._e():t("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(t){return e.gotoReview(a.id)}}},[e._v("去评价")])],1)])])}),e.filteredOrders.length<=0?t("el-empty",{attrs:{description:"暂无订单"}}):e._e(),t("div",{staticStyle:{"text-align":"right","margin-top":"20px"}},[t("el-pagination",{attrs:{"current-page":e.currentPage,"page-sizes":[5,10,20],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.filteredOrders.length},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],2)],1)},r=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"order-products",staticStyle:{padding:"0 20px",background:"#f8f9fa","border-top":"1px solid #eee","border-bottom":"1px solid #eee","margin-bottom":"20px"}},[t("div",{staticClass:"product-item"},[t("div",{staticClass:"product-details"},[t("div",{staticClass:"product-name"},[e._v("商品信息")])]),t("div",{staticClass:"product-price"},[e._v("单价(元)")]),t("div",{staticClass:"product-quantity"},[e._v("数量")]),t("div",{staticClass:"product-total"},[e._v("小计(元)")]),t("div",{staticClass:"product-actions"})])])}],s=(a(8111),a(2489),a(3579),{name:"OrderList",data(){return{activeTab:"all",currentPage:1,pageSize:10,filterForm:{goodsName:"",orderNo:"",createTime:"",merchantName:"",tradeStatus:""},orders:[{id:1,orderNo:"209907091214560078",createTime:"2099-07-09 10:47:49",status:"pendingPayment",totalAmount:937,freight:15,isReviewed:!1,merchant:{id:101,name:"花艺生活馆",isOfficial:!0},products:[{id:1001,name:"深情挚爱/卡罗拉玫瑰",image:"https://picsum.photos/200/200?random=1",spec:"卡罗拉玫瑰33枝",price:349,quantity:1,status:"pendingPayment"},{id:1002,name:"精美包装纸",image:"https://picsum.photos/200/200?random=4",spec:"粉色",price:38,quantity:2,status:"pendingPayment"}]},{id:2,orderNo:"209907091214560079",createTime:"2099-07-09 10:48:49",status:"pendingDelivery",totalAmount:199,freight:0,isReviewed:!1,merchant:{id:102,name:"北欧家居旗舰店",isOfficial:!0},products:[{id:2001,name:"北欧花艺素雅仿真花",image:"https://picsum.photos/200/200?random=2",spec:"白色",price:199,quantity:1,status:"pendingDelivery"}]},{id:3,orderNo:"209907091214560080",createTime:"2099-07-09 10:49:49",status:"delivering",totalAmount:389,freight:10,isReviewed:!1,merchant:{id:101,name:"花艺生活馆",isOfficial:!0},products:[{id:3001,name:"香槟玫瑰+白玫瑰混搭",image:"https://picsum.photos/200/200?random=3",spec:"混搭",price:389,quantity:1,status:"delivering"}]}]}},computed:{filteredOrders(){let e=[...this.orders];if("all"!==this.activeTab&&(e=e.filter(e=>e.status===this.activeTab)),this.filterForm.goodsName){const t=this.filterForm.goodsName.toLowerCase();e=e.filter(e=>e.products.some(e=>e.name.toLowerCase().includes(t)))}if(this.filterForm.orderNo&&(e=e.filter(e=>e.orderNo.includes(this.filterForm.orderNo))),this.filterForm.merchantName){const t=this.filterForm.merchantName.toLowerCase();e=e.filter(e=>e.merchant.name.toLowerCase().includes(t))}return this.filterForm.tradeStatus&&(e=e.filter(e=>e.status===this.filterForm.tradeStatus)),e}},methods:{search(){this.currentPage=1,this.$message({message:"搜索条件已应用",type:"info"})},reset(){this.filterForm={goodsName:"",orderNo:"",createTime:"",merchantName:"",tradeStatus:""},this.activeTab="all",this.currentPage=1},handleSizeChange(e){this.pageSize=e},handleCurrentChange(e){this.currentPage=e},getStatusText(e){const t={pendingPayment:"待付款",pendingDelivery:"待发货",delivering:"配送中",completed:"已完成",cancelled:"已取消"};return t[e]||e},getStatusTagType(e){const t={pendingPayment:"warning",pendingDelivery:"info",delivering:"primary",completed:"success",cancelled:"danger"};return t[e]||"default"},payOrder(e){this.$message({message:`订单 ${e} 去付款`,type:"info"})},remindDelivery(e){this.$message({message:`已提醒订单 ${e} 发货`,type:"success"})},checkLogistics(e){this.$message({message:`查看订单 ${e} 物流`,type:"info"})},gotoReview(e){this.$message({message:`去评价订单 ${e}`,type:"info"})},viewOrderDetail(e){this.$message({message:`查看订单 ${e} 详情`,type:"info"})}}}),l=s,o=a(1656),n=(0,o.A)(l,i,r,!1,null,"eb1727b2",null),d=n.exports}}]); -//# sourceMappingURL=285.b163593c.js.map \ No newline at end of file diff --git a/dist/js/285.b163593c.js.map b/dist/js/285.b163593c.js.map deleted file mode 100644 index e813423..0000000 --- a/dist/js/285.b163593c.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/285.b163593c.js","mappings":"sJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,MAAM,CAACF,EAAG,UAAU,CAACG,MAAM,CAACC,MAAON,EAAIO,UAAWC,SAAS,SAAUC,GAAMT,EAAIO,UAAUE,CAAG,EAAEC,WAAW,cAAc,CAACR,EAAG,cAAc,CAACS,MAAM,CAAC,MAAQ,OAAO,KAAO,SAAST,EAAG,cAAc,CAACS,MAAM,CAAC,MAAQ,MAAM,KAAO,oBAAoBT,EAAG,cAAc,CAACS,MAAM,CAAC,MAAQ,MAAM,KAAO,qBAAqBT,EAAG,cAAc,CAACS,MAAM,CAAC,MAAQ,MAAM,KAAO,gBAAgBT,EAAG,cAAc,CAACS,MAAM,CAAC,MAAQ,MAAM,KAAO,oBAAoB,GAAGT,EAAG,MAAM,CAACE,YAAY,cAAc,CAACF,EAAG,UAAU,CAACS,MAAM,CAAC,QAAS,EAAK,MAAQX,EAAIY,WAAW,KAAO,UAAU,CAACV,EAAG,eAAe,CAACS,MAAM,CAAC,MAAQ,SAAS,CAACT,EAAG,WAAW,CAACS,MAAM,CAAC,YAAc,WAAWN,MAAM,CAACC,MAAON,EAAIY,WAAWC,UAAWL,SAAS,SAAUC,GAAMT,EAAIc,KAAKd,EAAIY,WAAY,YAAaH,EAAI,EAAEC,WAAW,2BAA2B,GAAGR,EAAG,eAAe,CAACS,MAAM,CAAC,MAAQ,SAAS,CAACT,EAAG,WAAW,CAACS,MAAM,CAAC,YAAc,WAAWN,MAAM,CAACC,MAAON,EAAIY,WAAWG,QAASP,SAAS,SAAUC,GAAMT,EAAIc,KAAKd,EAAIY,WAAY,UAAWH,EAAI,EAAEC,WAAW,yBAAy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WAAA,GACAC,aAAA,GACAE,YAAA,IAEA,KAAAZ,UAAA,MACA,KAAA8C,YAAA,CACA,EAGAE,gBAAAA,CAAAkB,GACA,KAAAnB,SAAAmB,CACA,EAGAjB,mBAAAA,CAAAiB,GACA,KAAApB,YAAAoB,CACA,EAGAxC,aAAAA,CAAAD,GACA,MAAA0C,EAAA,CACAC,eAAA,MACAC,gBAAA,MACAC,WAAA,MACAC,UAAA,MACAC,UAAA,OAEA,OAAAL,EAAA1C,IAAAA,CACA,EAGAD,gBAAAA,CAAAC,GACA,MAAAgD,EAAA,CACAL,eAAA,UACAC,gBAAA,OACAC,WAAA,UACAC,UAAA,UACAC,UAAA,UAEA,OAAAC,EAAAhD,IAAA,SACA,EAGAc,QAAAA,CAAAmC,GACA,KAAAX,SAAA,CACAC,QAAA,MAAAU,QACAT,KAAA,QAEA,EAGAxB,cAAAA,CAAAiC,GACA,KAAAX,SAAA,CACAC,QAAA,SAAAU,OACAT,KAAA,WAEA,EAGAvB,cAAAA,CAAAgC,GACA,KAAAX,SAAA,CACAC,QAAA,QAAAU,OACAT,KAAA,QAEA,EAGArB,UAAAA,CAAA8B,GACA,KAAAX,SAAA,CACAC,QAAA,SAAAU,IACAT,KAAA,QAEA,EAGA3B,eAAAA,CAAAoC,GACA,KAAAX,SAAA,CACAC,QAAA,QAAAU,OACAT,KAAA,QAEA,KCpZiQ,I,UCQ7PU,GAAY,OACd,EACAnF,EACA0D,GACA,EACA,KACA,WACA,MAIF,EAAeyB,E","sources":["webpack://abcdf/./src/views/User/OrderList.vue","webpack://abcdf/src/views/User/OrderList.vue","webpack://abcdf/./src/views/User/OrderList.vue?f8b7","webpack://abcdf/./src/views/User/OrderList.vue?604f"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg\"},[_c('el-tabs',{model:{value:(_vm.activeTab),callback:function ($$v) {_vm.activeTab=$$v},expression:\"activeTab\"}},[_c('el-tab-pane',{attrs:{\"label\":\"所有订单\",\"name\":\"all\"}}),_c('el-tab-pane',{attrs:{\"label\":\"待付款\",\"name\":\"pendingPayment\"}}),_c('el-tab-pane',{attrs:{\"label\":\"待发货\",\"name\":\"pendingDelivery\"}}),_c('el-tab-pane',{attrs:{\"label\":\"配送中\",\"name\":\"delivering\"}}),_c('el-tab-pane',{attrs:{\"label\":\"待评价\",\"name\":\"pendingReview\"}})],1),_c('div',{staticClass:\"filter-bar\"},[_c('el-form',{attrs:{\"inline\":true,\"model\":_vm.filterForm,\"size\":\"small\"}},[_c('el-form-item',{attrs:{\"label\":\"商品名称\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入商品名称\"},model:{value:(_vm.filterForm.goodsName),callback:function ($$v) {_vm.$set(_vm.filterForm, \"goodsName\", $$v)},expression:\"filterForm.goodsName\"}})],1),_c('el-form-item',{attrs:{\"label\":\"订单编号\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入订单编号\"},model:{value:(_vm.filterForm.orderNo),callback:function ($$v) {_vm.$set(_vm.filterForm, \"orderNo\", $$v)},expression:\"filterForm.orderNo\"}})],1),_c('el-form-item',{attrs:{\"label\":\"下单时间\"}},[_c('el-date-picker',{attrs:{\"type\":\"daterange\",\"range-separator\":\"至\",\"start-placeholder\":\"开始日期\",\"end-placeholder\":\"结束日期\",\"value-format\":\"yyyy-MM-dd\"},model:{value:(_vm.filterForm.createTime),callback:function ($$v) {_vm.$set(_vm.filterForm, \"createTime\", $$v)},expression:\"filterForm.createTime\"}})],1),_c('el-form-item',{attrs:{\"label\":\"商家名称\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入商家名称\"},model:{value:(_vm.filterForm.merchantName),callback:function ($$v) {_vm.$set(_vm.filterForm, \"merchantName\", $$v)},expression:\"filterForm.merchantName\"}})],1),_c('el-form-item',{attrs:{\"label\":\"交易状态\"}},[_c('el-select',{staticStyle:{\"width\":\"200px\"},attrs:{\"placeholder\":\"请选择\"},model:{value:(_vm.filterForm.tradeStatus),callback:function ($$v) {_vm.$set(_vm.filterForm, \"tradeStatus\", $$v)},expression:\"filterForm.tradeStatus\"}},[_c('el-option',{attrs:{\"label\":\"全部\",\"value\":\"\"}}),_c('el-option',{attrs:{\"label\":\"待付款\",\"value\":\"pendingPayment\"}}),_c('el-option',{attrs:{\"label\":\"待发货\",\"value\":\"pendingDelivery\"}}),_c('el-option',{attrs:{\"label\":\"配送中\",\"value\":\"delivering\"}}),_c('el-option',{attrs:{\"label\":\"已完成\",\"value\":\"completed\"}}),_c('el-option',{attrs:{\"label\":\"已取消\",\"value\":\"cancelled\"}})],1)],1),_c('el-form-item',{attrs:{\"label\":\"完成时间\"}},[_c('el-date-picker',{attrs:{\"type\":\"daterange\",\"range-separator\":\"至\",\"start-placeholder\":\"开始日期\",\"end-placeholder\":\"结束日期\",\"value-format\":\"yyyy-MM-dd\"},model:{value:(_vm.filterForm.createTime),callback:function ($$v) {_vm.$set(_vm.filterForm, \"createTime\", $$v)},expression:\"filterForm.createTime\"}})],1),_c('el-form-item',[_c('el-button',{staticStyle:{\"background\":\"#6a8a27\",\"border\":\"none\"},attrs:{\"type\":\"primary\"},on:{\"click\":_vm.search}},[_vm._v(\"搜索\")])],1),_c('el-form-item',[_c('el-button',{on:{\"click\":_vm.reset}},[_vm._v(\"重置\")])],1)],1)],1),_c('div',[_vm._m(0),_vm._l((_vm.filteredOrders),function(order){return _c('div',{key:order.id,staticClass:\"order-card\"},[_c('div',{staticClass:\"order-header flex-between\"},[_c('div',{staticStyle:{\"display\":\"flex\"}},[_c('div',[_vm._v(\"订单号: \"+_vm._s(order.orderNo))]),_c('div',{staticStyle:{\"padding-left\":\"60px\"}},[_vm._v(\"下单时间:\"+_vm._s(order.createTime))])]),_c('div',{staticClass:\"product-status\"},[_c('el-tag',{attrs:{\"type\":_vm.getStatusTagType(order.status),\"size\":\"small\"}},[_vm._v(_vm._s(_vm.getStatusText(order.status)))])],1)]),_c('div',{staticClass:\"order-products\"},_vm._l((order.products),function(product){return _c('div',{key:product.id,staticClass:\"product-item\"},[_c('img',{staticClass:\"product-image\",attrs:{\"src\":product.image,\"alt\":product.name}}),_c('div',{staticClass:\"product-details\"},[_c('div',{staticClass:\"product-name\"},[_vm._v(_vm._s(product.name))]),_c('div',{staticClass:\"product-spec\"},[_vm._v(_vm._s(product.spec))])]),_c('div',{staticClass:\"product-price\"},[_vm._v(\"¥\"+_vm._s(product.price.toFixed(2)))]),_c('div',{staticClass:\"product-quantity\"},[_vm._v(\"x\"+_vm._s(product.quantity))]),_c('div',{staticClass:\"product-total\"},[_vm._v(\"¥\"+_vm._s((product.price * product.quantity).toFixed(2)))]),_c('div',{staticClass:\"product-actions\"},[_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"mini\"}},[_vm._v(\" 商品详情\")])],1)])}),0),_c('div',{staticClass:\"order-footer\"},[_c('div',{staticClass:\"order-summary\"},[_c('div',{staticClass:\"order-amount\"},[_vm._v(\" 合计: \"),_c('strong',[_vm._v(\"¥\"+_vm._s(order.totalAmount.toFixed(2)))]),_vm._v(\" (含运费 ¥\"+_vm._s(order.freight.toFixed(2))+\") \")])]),_c('div',{staticClass:\"order-actions\"},[_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.viewOrderDetail(order.id)}}},[_vm._v(\"订单详情\")]),(order.status === 'pendingPayment')?_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.payOrder(order.id)}}},[_vm._v(\"去付款\")]):_vm._e(),(order.status === 'pendingDelivery')?_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.remindDelivery(order.id)}}},[_vm._v(\"提醒发货\")]):_vm._e(),(order.status === 'delivering')?_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.checkLogistics(order.id)}}},[_vm._v(\"查看物流\")]):_vm._e(),(order.status === 'completed' && !order.isReviewed)?_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.gotoReview(order.id)}}},[_vm._v(\"去评价\")]):_vm._e()],1)])])}),(_vm.filteredOrders.length<=0)?_c('el-empty',{attrs:{\"description\":\"暂无订单\"}}):_vm._e(),_c('div',{staticStyle:{\"text-align\":\"right\",\"margin-top\":\"20px\"}},[_c('el-pagination',{attrs:{\"current-page\":_vm.currentPage,\"page-sizes\":[5, 10, 20],\"page-size\":_vm.pageSize,\"layout\":\"total, sizes, prev, pager, next, jumper\",\"total\":_vm.filteredOrders.length},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1)],2)],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"order-products\",staticStyle:{\"padding\":\"0 20px\",\"background\":\"#f8f9fa\",\"border-top\":\"1px solid #eee\",\"border-bottom\":\"1px solid #eee\",\"margin-bottom\":\"20px\"}},[_c('div',{staticClass:\"product-item\"},[_c('div',{staticClass:\"product-details\"},[_c('div',{staticClass:\"product-name\"},[_vm._v(\"商品信息\")])]),_c('div',{staticClass:\"product-price\"},[_vm._v(\"单价(元)\")]),_c('div',{staticClass:\"product-quantity\"},[_vm._v(\"数量\")]),_c('div',{staticClass:\"product-total\"},[_vm._v(\"小计(元)\")]),_c('div',{staticClass:\"product-actions\"})])])\n}]\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./OrderList.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./OrderList.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./OrderList.vue?vue&type=template&id=eb1727b2&scoped=true\"\nimport script from \"./OrderList.vue?vue&type=script&lang=js\"\nexport * from \"./OrderList.vue?vue&type=script&lang=js\"\nimport style0 from \"./OrderList.vue?vue&type=style&index=0&id=eb1727b2&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"eb1727b2\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","model","value","activeTab","callback","$$v","expression","attrs","filterForm","goodsName","$set","orderNo","createTime","merchantName","staticStyle","tradeStatus","on","search","_v","reset","_m","_l","filteredOrders","order","key","id","_s","getStatusTagType","status","getStatusText","products","product","image","name","spec","price","toFixed","quantity","totalAmount","freight","$event","viewOrderDetail","payOrder","_e","remindDelivery","checkLogistics","isReviewed","gotoReview","length","currentPage","pageSize","handleSizeChange","handleCurrentChange","staticRenderFns","data","orders","merchant","isOfficial","computed","result","filter","keyword","toLowerCase","some","includes","methods","$message","message","type","val","statusMap","pendingPayment","pendingDelivery","delivering","completed","cancelled","typeMap","orderId","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/29.7eef1ca9.js b/dist/js/29.7eef1ca9.js new file mode 100644 index 0000000..ec12715 --- /dev/null +++ b/dist/js/29.7eef1ca9.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[29],{3029:function(e,t,r){r.r(t),r.d(t,{default:function(){return c}});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"register-page"},[e._m(0),t("div",{staticClass:"form-container"},[t("h2",{staticClass:"form-title"},[e._v("注册页")]),t("el-form",{ref:"registerForm",staticClass:"register-form",attrs:{model:e.form,rules:e.rules,"label-width":"80px"}},[t("el-form-item",{attrs:{label:"手机号码",prop:"phone"}},[t("el-input",{attrs:{placeholder:"请输入手机号码",clearable:"","prefix-icon":"el-icon-phone"},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1),t("el-form-item",{attrs:{label:"手机验证码",prop:"code"}},[t("el-input",{staticStyle:{width:"60%"},attrs:{placeholder:"请输入验证码",clearable:"","prefix-icon":"el-icon-message"},model:{value:e.form.code,callback:function(t){e.$set(e.form,"code",t)},expression:"form.code"}}),t("el-button",{staticClass:"code-btn",attrs:{type:"success",disabled:e.codeBtnDisabled},on:{click:e.handleGetCode}},[e._v(" "+e._s(e.codeBtnText)+" ")])],1),t("el-form-item",{attrs:{label:"用户名",prop:"username"}},[t("el-input",{attrs:{placeholder:"账户唯一识别,可用来登录",clearable:"","prefix-icon":"el-icon-user"},model:{value:e.form.username,callback:function(t){e.$set(e.form,"username",t)},expression:"form.username"}}),t("div",{staticClass:"form-tip"},[e._v(" 请输入4-32位字符,只能包含英文字母、数字和下划线,不能为纯数字/不能为纯下划线 ")])],1),t("el-form-item",{attrs:{label:"设重密码",prop:"password"}},[t("el-input",{attrs:{type:"password",placeholder:"请设置登录密码",clearable:"","prefix-icon":"el-icon-lock"},on:{input:e.handlePasswordInput},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}}),t("div",{staticClass:"form-tip"},[e._v(" 请输入8-30位密码,密码必须同时包含字母和数字 ")])],1),t("el-form-item",{attrs:{label:"确认密码",prop:"confirmPassword"}},[t("el-input",{attrs:{type:"password",placeholder:"请再次输入登录密码",clearable:"","prefix-icon":"el-icon-lock"},model:{value:e.form.confirmPassword,callback:function(t){e.$set(e.form,"confirmPassword",t)},expression:"form.confirmPassword"}}),t("div",{staticClass:"form-tip"},[e._v("请与上方填写的密码保持一致")])],1),t("el-form-item",[t("el-checkbox",{staticClass:"agreement-checkbox",model:{value:e.agreement,callback:function(t){e.agreement=t},expression:"agreement"}},[e._v(" 我已阅读并同意 "),t("router-link",{staticClass:"protocol-link",attrs:{to:"javascript:;"}},[e._v("《用户注册协议》")]),e._v(" 《"),t("router-link",{staticClass:"protocol-link",attrs:{to:"javascript:;"}},[e._v("隐私协议")]),e._v("》 ")],1)],1),t("el-form-item",[t("el-button",{staticClass:"register-btn",attrs:{type:"primary",disabled:!e.agreement||e.submitting},on:{click:e.handleRegister}},[e._v(" "+e._s(e.submitting?"注册中...":"立即注册")+" ")])],1),e._e()],1)],1)])},a=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"header"},[t("div",{staticClass:"logo-area"},[t("img",{staticClass:"logo-img",attrs:{src:r(3153),alt:"logo"}}),t("span",{staticClass:"domain"},[e._v("yunming.com")])]),t("div",{staticClass:"hotline"},[e._v("400-123-4xxx")])])}],o={name:"RegisterPage",data(){const e=(e,t,r)=>{/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,30}$/.test(t)?r():r(new Error("请输入8-30位密码,必须同时包含字母和数字"))},t=(e,t,r)=>{/^(?!_+$)(?!\d+$)[a-zA-Z0-9_]{4,32}$/.test(t)?r():r(new Error("请输入4-32位字符,只能包含字母、数字和下划线,不能为纯数字/纯下划线"))};return{form:{phone:"",code:"",username:"",password:"",confirmPassword:""},rules:{phone:[{required:!0,message:"请输入手机号码",trigger:"blur"},{pattern:/^1\d{10}$/,message:"请输入正确的手机号码格式",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"},{pattern:/^\d{6}$/,message:"请输入6位数字验证码",trigger:"blur"}],username:[{required:!0,message:"请输入用户名",trigger:"blur"},{validator:t,trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"},{validator:e,trigger:"blur"}],confirmPassword:[{required:!0,message:"请确认密码",trigger:"blur"},{validator:(e,t,r)=>{t!==this.form.password?r(new Error("两次输入密码不一致")):r()},trigger:"blur"}]},agreement:!1,codeBtnText:"获取验证码",codeBtnDisabled:!1,submitting:!1,countdown:60}},methods:{handleGetCode(){if(!this.form.phone)return void this.$message.warning("请先输入手机号码");this.codeBtnDisabled=!0,this.codeBtnText=`重新发送(${this.countdown}s)`;const e=setInterval(()=>{this.countdown--,this.codeBtnText=`重新发送(${this.countdown}s)`,this.countdown<=0&&(clearInterval(e),this.codeBtnText="获取验证码",this.codeBtnDisabled=!1,this.countdown=60)},1e3)},handlePasswordInput(){},handleRegister(){this.$refs.registerForm.validate(e=>{e&&this.agreement?(this.submitting=!0,setTimeout(()=>{this.$message.success("注册成功!"),this.submitting=!1},1500)):this.agreement||this.$message.warning("请勾选用户协议")})}}},i=o,l=r(1656),n=(0,l.A)(i,s,a,!1,null,"4e3838a4",null),c=n.exports}}]); +//# sourceMappingURL=29.7eef1ca9.js.map \ No newline at end of file diff --git a/dist/js/29.7eef1ca9.js.map b/dist/js/29.7eef1ca9.js.map new file mode 100644 index 0000000..2b9f5f0 --- /dev/null +++ b/dist/js/29.7eef1ca9.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/29.7eef1ca9.js","mappings":"qJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,iBAAiB,CAACJ,EAAIK,GAAG,GAAGH,EAAG,MAAM,CAACE,YAAY,kBAAkB,CAACF,EAAG,KAAK,CAACE,YAAY,cAAc,CAACJ,EAAIM,GAAG,SAASJ,EAAG,UAAU,CAACK,IAAI,eAAeH,YAAY,gBAAgBI,MAAM,CAAC,MAAQR,EAAIS,KAAK,MAAQT,EAAIU,MAAM,cAAc,SAAS,CAACR,EAAG,eAAe,CAACM,MAAM,CAAC,MAAQ,OAAO,KAAO,UAAU,CAACN,EAAG,WAAW,CAACM,MAAM,CAAC,YAAc,UAAU,UAAY,GAAG,cAAc,iBAAiBG,MAAM,CAACC,MAAOZ,EAAIS,KAAKI,MAAOC,SAAS,SAAUC,GAAMf,EAAIgB,KAAKhB,EAAIS,KAAM,QAASM,EAAI,EAAEE,WAAW,iBAAiB,GAAGf,EAAG,eAAe,CAACM,MAAM,CAAC,MAAQ,QAAQ,KAAO,SAAS,C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3B,YAAA,QACA,KAAAJ,iBAAA,EACA,KAAA2B,UAAA,KAEA,IAGA,EAGArB,mBAAAA,GACA,EAIAK,cAAAA,GACA,KAAAuB,MAAAC,aAAAC,SAAAC,IACAA,GAAA,KAAA5B,WACA,KAAAC,YAAA,EAEA4B,WAAA,KACA,KAAAT,SAAAU,QAAA,SACA,KAAA7B,YAAA,GAKA,OACA,KAAAD,WACA,KAAAoB,SAAAC,QAAA,YAGA,IC9PuP,I,UCQnPU,GAAY,OACd,EACA7D,EACAkC,GACA,EACA,KACA,WACA,MAIF,EAAe2B,E","sources":["webpack://abcdf/./src/views/Register.vue","webpack://abcdf/src/views/Register.vue","webpack://abcdf/./src/views/Register.vue?517e","webpack://abcdf/./src/views/Register.vue?65fd"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"register-page\"},[_vm._m(0),_c('div',{staticClass:\"form-container\"},[_c('h2',{staticClass:\"form-title\"},[_vm._v(\"注册页\")]),_c('el-form',{ref:\"registerForm\",staticClass:\"register-form\",attrs:{\"model\":_vm.form,\"rules\":_vm.rules,\"label-width\":\"80px\"}},[_c('el-form-item',{attrs:{\"label\":\"手机号码\",\"prop\":\"phone\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入手机号码\",\"clearable\":\"\",\"prefix-icon\":\"el-icon-phone\"},model:{value:(_vm.form.phone),callback:function ($$v) {_vm.$set(_vm.form, \"phone\", $$v)},expression:\"form.phone\"}})],1),_c('el-form-item',{attrs:{\"label\":\"手机验证码\",\"prop\":\"code\"}},[_c('el-input',{staticStyle:{\"width\":\"60%\"},attrs:{\"placeholder\":\"请输入验证码\",\"clearable\":\"\",\"prefix-icon\":\"el-icon-message\"},model:{value:(_vm.form.code),callback:function ($$v) {_vm.$set(_vm.form, \"code\", $$v)},expression:\"form.code\"}}),_c('el-button',{staticClass:\"code-btn\",attrs:{\"type\":\"success\",\"disabled\":_vm.codeBtnDisabled},on:{\"click\":_vm.handleGetCode}},[_vm._v(\" \"+_vm._s(_vm.codeBtnText)+\" \")])],1),_c('el-form-item',{attrs:{\"label\":\"用户名\",\"prop\":\"username\"}},[_c('el-input',{attrs:{\"placeholder\":\"账户唯一识别,可用来登录\",\"clearable\":\"\",\"prefix-icon\":\"el-icon-user\"},model:{value:(_vm.form.username),callback:function ($$v) {_vm.$set(_vm.form, \"username\", $$v)},expression:\"form.username\"}}),_c('div',{staticClass:\"form-tip\"},[_vm._v(\" 请输入4-32位字符,只能包含英文字母、数字和下划线,不能为纯数字/不能为纯下划线 \")])],1),_c('el-form-item',{attrs:{\"label\":\"设重密码\",\"prop\":\"password\"}},[_c('el-input',{attrs:{\"type\":\"password\",\"placeholder\":\"请设置登录密码\",\"clearable\":\"\",\"prefix-icon\":\"el-icon-lock\"},on:{\"input\":_vm.handlePasswordInput},model:{value:(_vm.form.password),callback:function ($$v) {_vm.$set(_vm.form, \"password\", $$v)},expression:\"form.password\"}}),_c('div',{staticClass:\"form-tip\"},[_vm._v(\" 请输入8-30位密码,密码必须同时包含字母和数字 \")])],1),_c('el-form-item',{attrs:{\"label\":\"确认密码\",\"prop\":\"confirmPassword\"}},[_c('el-input',{attrs:{\"type\":\"password\",\"placeholder\":\"请再次输入登录密码\",\"clearable\":\"\",\"prefix-icon\":\"el-icon-lock\"},model:{value:(_vm.form.confirmPassword),callback:function ($$v) {_vm.$set(_vm.form, \"confirmPassword\", $$v)},expression:\"form.confirmPassword\"}}),_c('div',{staticClass:\"form-tip\"},[_vm._v(\"请与上方填写的密码保持一致\")])],1),_c('el-form-item',[_c('el-checkbox',{staticClass:\"agreement-checkbox\",model:{value:(_vm.agreement),callback:function ($$v) {_vm.agreement=$$v},expression:\"agreement\"}},[_vm._v(\" 我已阅读并同意 \"),_c('router-link',{staticClass:\"protocol-link\",attrs:{\"to\":\"javascript:;\"}},[_vm._v(\"《用户注册协议》\")]),_vm._v(\" 《\"),_c('router-link',{staticClass:\"protocol-link\",attrs:{\"to\":\"javascript:;\"}},[_vm._v(\"隐私协议\")]),_vm._v(\"》 \")],1)],1),_c('el-form-item',[_c('el-button',{staticClass:\"register-btn\",attrs:{\"type\":\"primary\",\"disabled\":!_vm.agreement || _vm.submitting},on:{\"click\":_vm.handleRegister}},[_vm._v(\" \"+_vm._s(_vm.submitting ? \"注册中...\" : \"立即注册\")+\" \")])],1),(false)?_c('div',{staticClass:\"bottom-tip\"},[_vm._v(\" 如需注册供应商请点击 \"),_c('router-link',{staticClass:\"supplier-link\",attrs:{\"to\":\"javascript:;\"}},[_vm._v(\"这里\")])],1):_vm._e()],1)],1)])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"header\"},[_c('div',{staticClass:\"logo-area\"},[_c('img',{staticClass:\"logo-img\",attrs:{\"src\":require(\"@/assets/logo.png\"),\"alt\":\"logo\"}}),_c('span',{staticClass:\"domain\"},[_vm._v(\"yunming.com\")])]),_c('div',{staticClass:\"hotline\"},[_vm._v(\"400-123-4xxx\")])])\n}]\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Register.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Register.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Register.vue?vue&type=template&id=4e3838a4&scoped=true\"\nimport script from \"./Register.vue?vue&type=script&lang=js\"\nexport * from \"./Register.vue?vue&type=script&lang=js\"\nimport style0 from \"./Register.vue?vue&type=style&index=0&id=4e3838a4&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4e3838a4\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","_m","_v","ref","attrs","form","rules","model","value","phone","callback","$$v","$set","expression","staticStyle","code","codeBtnDisabled","on","handleGetCode","_s","codeBtnText","username","handlePasswordInput","password","confirmPassword","agreement","submitting","handleRegister","_e","staticRenderFns","require","name","data","validatePassword","rule","test","Error","validateUsername","required","message","trigger","pattern","validator","countdown","methods","$message","warning","timer","setInterval","clearInterval","$refs","registerForm","validate","valid","setTimeout","success","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/295.2b6ac216.js b/dist/js/295.2b6ac216.js deleted file mode 100644 index 9d7a5b9..0000000 --- a/dist/js/295.2b6ac216.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[295],{8295:function(t,e,s){s.r(e),s.d(e,{default:function(){return c}});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"bg"},[e("div",{staticClass:"left-container"},t._l(t.navList,function(s,a){return e("router-link",{key:a,class:["route-item",t.selectIndex==a?"active":""],attrs:{to:s.path}},[t._v(t._s(s.title))])}),1),e("div",{staticClass:"right-container"},[e("router-view")],1)])},i=[],r={data(){return{selectIndex:0,navList:[{title:"个人中心",path:"/User/UserCenter"},{title:"我的购物车",path:"/User/ShoppingCart"},{title:"我的订单",path:"/User/OrderList"},{title:"评价管理",path:""},{title:"我的发票",path:"/User/UserInvoice"},{title:"我的收藏",path:""},{title:"我的足迹",path:"/User/ViewHistory"},{title:"个人信息",path:"/User/UserInfo"},{title:"账号设置",path:""},{title:"我的收货地址",path:"/User/UserAddress"}]}},watch:{$route(t,e){let s=t.path.toLocaleLowerCase(),a=this.navList.findIndex(t=>t.path.toLocaleLowerCase()==s);a>=0&&(this.selectIndex=a)}},computed:{},created(){let t=this.$route.path.toLocaleLowerCase(),e=this.navList.findIndex(e=>e.path.toLocaleLowerCase()==t);e>=0&&(this.selectIndex=e)},methods:{}},n=r,l=s(1656),o=(0,l.A)(n,a,i,!1,null,"32a28e68",null),c=o.exports}}]); -//# sourceMappingURL=295.2b6ac216.js.map \ No newline at end of file diff --git a/dist/js/295.2b6ac216.js.map b/dist/js/295.2b6ac216.js.map deleted file mode 100644 index 61803f4..0000000 --- a/dist/js/295.2b6ac216.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/295.2b6ac216.js","mappings":"sJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,MAAM,CAACF,EAAG,MAAM,CAACE,YAAY,kBAAkBJ,EAAIK,GAAIL,EAAIM,QAAS,SAASC,EAAKC,GAAG,OAAON,EAAG,cAAc,CAACO,IAAID,EAAEE,MAAM,CAAC,aAAaV,EAAIW,aAAaH,EAAE,SAAS,IAAII,MAAM,CAAC,GAAKL,EAAKM,OAAO,CAACb,EAAIc,GAAGd,EAAIe,GAAGR,EAAKS,SAAS,GAAG,GAAGd,EAAG,MAAM,CAACE,YAAY,mBAAmB,CAACF,EAAG,gBAAgB,IACzX,EACIe,EAAkB,GCYtB,GACAC,IAAAA,GACA,OACAP,YAAA,EACAL,QAAA,CACA,CAAAU,MAAA,OAAAH,KAAA,oBACA,CAAAG,MAAA,QAAAH,KAAA,sBACA,CAAAG,MAAA,OAAAH,KAAA,mBACA,CAAAG,MAAA,OAAAH,KAAA,IACA,CAAAG,MAAA,OAAAH,KAAA,qBACA,CAAAG,MAAA,OAAAH,KAAA,IACA,CAAAG,MAAA,OAAAH,KAAA,qBACA,CAAAG,MAAA,OAAAH,KAAA,kBACA,CAAAG,MAAA,OAAAH,KAAA,IACA,CAAAG,MAAA,SAAAH,KAAA,sBAGA,EACAM,MAAA,CAEAC,MAAAA,CAAAC,EAAAC,GACA,IAAAC,EAAAF,EAAAR,KAAAW,oBACAC,EAAA,KAAAnB,QAAAoB,UAAAC,GAAAA,EAAAd,KAAAW,qBAAAD,GACAE,GAAA,IACA,KAAAd,YAAAc,EAEA,GAGAG,SAAA,CAEA,EACAC,OAAAA,GACA,IAAAhB,EAAA,KAAAO,OAAAP,KAAAW,oBACAC,EAAA,KAAAnB,QAAAoB,UAAAC,GAAAA,EAAAd,KAAAW,qBAAAX,GACAY,GAAA,IACA,KAAAd,YAAAc,EAGA,EACAK,QAAA,CAEA,GCxD6P,I,UCQzPC,GAAY,OACd,EACAhC,EACAkB,GACA,EACA,KACA,WACA,MAIF,EAAec,E","sources":["webpack://abcdf/./src/views/User/Index.vue","webpack://abcdf/src/views/User/Index.vue","webpack://abcdf/./src/views/User/Index.vue?5d75","webpack://abcdf/./src/views/User/Index.vue?c30c"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg\"},[_c('div',{staticClass:\"left-container\"},_vm._l((_vm.navList),function(item,i){return _c('router-link',{key:i,class:['route-item',_vm.selectIndex==i?'active':''],attrs:{\"to\":item.path}},[_vm._v(_vm._s(item.title))])}),1),_c('div',{staticClass:\"right-container\"},[_c('router-view')],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=32a28e68&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=32a28e68&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"32a28e68\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","_l","navList","item","i","key","class","selectIndex","attrs","path","_v","_s","title","staticRenderFns","data","watch","$route","to","from","toPath","toLocaleLowerCase","index","findIndex","x","computed","created","methods","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/312.4c90c76d.js b/dist/js/312.4c90c76d.js deleted file mode 100644 index badb750..0000000 --- a/dist/js/312.4c90c76d.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[312],{9312:function(t,e,i){i.r(e),i.d(e,{default:function(){return r}});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"bg"},[t.showNotice?e("div",{staticClass:"notice-bar"},[t._m(0),e("div",{staticClass:"notice-bar__close",on:{click:function(e){t.showNotice=!1}}},[e("i",{staticClass:"el-icon-close"})])]):t._e(),e("el-card",[e("el-row",{attrs:{gutter:20}},t._l(t.headFun,function(i,s){return e("el-col",{key:s,attrs:{xs:24,sm:8,md:8}},[e("div",{staticClass:"feature-item"},[e("div",{staticClass:"feature-icon"},[e("i",{class:i.icon})]),e("span",{staticClass:"feature-name"},[t._v(t._s(i.title))]),e("el-button",{staticStyle:{"margin-top":"5px"},attrs:{type:"text",size:"mini"}},[t._v("去设置")])],1)])}),1)],1),e("el-card",[e("div",{attrs:{slot:"header"},slot:"header"},[t._v("个人信息")]),e("div",{staticClass:"user-info"},[e("img",{staticClass:"user-avatar",attrs:{src:"https://picsum.photos/id/1005/200/200",alt:"用户头像"}}),e("div",{staticClass:"user-details"},[e("div",[e("div",{staticClass:"user-name"},[t._v("张三哥")]),e("div",{staticClass:"user-other-info"},[t._v(" ID: 200901071124 "),e("el-button",{attrs:{type:"text",size:"mini"},on:{click:t.copyId}},[t._v("复制")])],1),e("div",{staticClass:"user-other-info"},[t._v("手机号: 138****5678")])]),e("div",{staticClass:"login-info"},[e("div",{staticClass:"login-section"},[e("div",{staticClass:"login-section-title"},[t._v("当前登录信息")]),e("div",{staticClass:"login-detail"},[t._v("登录设备: Edge浏览器")]),e("div",{staticClass:"login-detail"},[t._v("登录地点: 中国广东深圳")]),e("div",{staticClass:"login-detail"},[t._v("登录时间: 2099-02-23 10:09:50")])]),e("div",{staticClass:"login-section"},[e("div",{staticClass:"login-section-title"},[t._v("上次登录信息")]),e("div",{staticClass:"login-detail"},[t._v("登录设备: 微信小程序")]),e("div",{staticClass:"login-detail"},[t._v("登录地点: 中国广东深圳")]),e("div",{staticClass:"login-detail"},[t._v("登录时间: 2099-02-05 10:46:45")])])])]),e("div",[e("el-button",{staticStyle:{"background-color":"#6a8a27",border:"none"},attrs:{type:"primary",size:"mini"}},[e("i",{staticClass:"el-icon-edit"}),t._v(" 编辑个人信息 ")])],1)])]),e("div",{staticClass:"flex-center"},[e("el-card",{staticStyle:{flex:"1"}},[e("div",{attrs:{slot:"header"},slot:"header"},[t._v("我的议价")]),e("div",{staticClass:"feature-grid"},t._l(t.bargaining,function(i,s){return e("div",{key:s,staticClass:"feature-item"},[i.value?e("el-badge",{attrs:{value:i.value,type:"danger"}},[e("div",{staticClass:"feature-icon"},[e("i",{class:i.icon})])]):e("div",{staticClass:"feature-icon"},[e("i",{class:i.icon})]),e("span",{staticClass:"feature-name"},[t._v(t._s(i.title))])],1)}),0)]),e("div",{staticStyle:{width:"20px","flex-shrink":"0"}}),e("el-card",{staticStyle:{flex:"1"}},[e("div",{attrs:{slot:"header"},slot:"header"},[t._v("我的订单")]),e("div",{staticClass:"feature-grid"},t._l(t.order,function(i,s){return e("div",{key:s,staticClass:"feature-item"},[i.value?e("el-badge",{attrs:{value:i.value,type:"danger"}},[e("div",{staticClass:"feature-icon"},[e("i",{class:i.icon})])]):e("div",{staticClass:"feature-icon"},[e("i",{class:i.icon})]),e("span",{staticClass:"feature-name"},[t._v(t._s(i.title))])],1)}),0)])],1)],1)},a=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"notice-bar__content"},[e("i",{staticClass:"el-icon-lightbulb"}),t._v(" 尊敬的采购人,欢迎来到xxx平台!您可以先完成下方的基础设置,方便您更高效的采购。 ")])}],l={name:"UserCenter",data(){return{showNotice:!0,userId:"200901071124",headFun:[{icon:"el-icon-location",title:"设置收货地址",path:""},{icon:"el-icon-document",title:"设置发票抬头",path:""},{icon:"el-icon-user",title:"设置采购人信息",path:""}],bargaining:[{icon:"el-icon-time",title:"待回复",path:"",value:2},{icon:"el-icon-truck",title:"已取消",path:"",value:2},{icon:"el-icon-menu",title:"已成交",path:"",value:2}],order:[{icon:"el-icon-time",title:"待付款",path:"",value:2},{icon:"el-icon-truck",title:"未发货",path:"",value:2},{icon:"el-icon-menu",title:"全部订单",path:"",value:2}]}},computed:{},created(){},methods:{copyId(){const t=document.createElement("input");t.value=this.userId,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),this.$message({message:"ID已复制",type:"success"})}}},c=l,n=i(1656),o=(0,n.A)(c,s,a,!1,null,"ab581bbc",null),r=o.exports}}]); -//# sourceMappingURL=312.4c90c76d.js.map \ No newline at end of file diff --git a/dist/js/312.4c90c76d.js.map b/dist/js/312.4c90c76d.js.map deleted file mode 100644 index 60b7097..0000000 --- a/dist/js/312.4c90c76d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/312.4c90c76d.js","mappings":"sJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,MAAM,CAAEJ,EAAIK,WAAYH,EAAG,MAAM,CAACE,YAAY,cAAc,CAACJ,EAAIM,GAAG,GAAGJ,EAAG,MAAM,CAACE,YAAY,oBAAoBG,GAA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KAAA,IACA,CAAAd,KAAA,mBAAAG,MAAA,SAAAW,KAAA,IACA,CAAAd,KAAA,eAAAG,MAAA,UAAAW,KAAA,KAEAP,WAAA,CACA,CAAAP,KAAA,eAAAG,MAAA,MAAAW,KAAA,GAAAN,MAAA,GACA,CAAAR,KAAA,gBAAAG,MAAA,MAAAW,KAAA,GAAAN,MAAA,GACA,CAAAR,KAAA,eAAAG,MAAA,MAAAW,KAAA,GAAAN,MAAA,IAEAC,MAAA,CACA,CAAAT,KAAA,eAAAG,MAAA,MAAAW,KAAA,GAAAN,MAAA,GACA,CAAAR,KAAA,gBAAAG,MAAA,MAAAW,KAAA,GAAAN,MAAA,GACA,CAAAR,KAAA,eAAAG,MAAA,OAAAW,KAAA,GAAAN,MAAA,IAKA,EACAO,SAAA,CAEA,EACAC,OAAAA,GAEA,EACAC,QAAA,CAEAX,MAAAA,GACA,MAAAY,EAAAC,SAAAC,cAAA,SACAF,EAAAV,MAAA,KAAAK,OACAM,SAAAE,KAAAC,YAAAJ,GACAA,EAAAK,SACAJ,SAAAK,YAAA,QACAL,SAAAE,KAAAI,YAAAP,GAEA,KAAAQ,SAAA,CACAC,QAAA,QACAC,KAAA,WAEA,ICpJkQ,I,UCQ9PC,GAAY,OACd,EACA/C,EACA4B,GACA,EACA,KACA,WACA,MAIF,EAAemB,E","sources":["webpack://abcdf/./src/views/User/UserCenter.vue","webpack://abcdf/src/views/User/UserCenter.vue","webpack://abcdf/./src/views/User/UserCenter.vue?f7cc","webpack://abcdf/./src/views/User/UserCenter.vue?715c"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg\"},[(_vm.showNotice)?_c('div',{staticClass:\"notice-bar\"},[_vm._m(0),_c('div',{staticClass:\"notice-bar__close\",on:{\"click\":function($event){_vm.showNotice = false}}},[_c('i',{staticClass:\"el-icon-close\"})])]):_vm._e(),_c('el-card',[_c('el-row',{attrs:{\"gutter\":20}},_vm._l((_vm.headFun),function(item,i){return _c('el-col',{key:i,attrs:{\"xs\":24,\"sm\":8,\"md\":8}},[_c('div',{staticClass:\"feature-item\"},[_c('div',{staticClass:\"feature-icon\"},[_c('i',{class:item.icon})]),_c('span',{staticClass:\"feature-name\"},[_vm._v(_vm._s(item.title))]),_c('el-button',{staticStyle:{\"margin-top\":\"5px\"},attrs:{\"type\":\"text\",\"size\":\"mini\"}},[_vm._v(\"去设置\")])],1)])}),1)],1),_c('el-card',[_c('div',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_vm._v(\"个人信息\")]),_c('div',{staticClass:\"user-info\"},[_c('img',{staticClass:\"user-avatar\",attrs:{\"src\":\"https://picsum.photos/id/1005/200/200\",\"alt\":\"用户头像\"}}),_c('div',{staticClass:\"user-details\"},[_c('div',[_c('div',{staticClass:\"user-name\"},[_vm._v(\"张三哥\")]),_c('div',{staticClass:\"user-other-info\"},[_vm._v(\" ID: 200901071124 \"),_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"mini\"},on:{\"click\":_vm.copyId}},[_vm._v(\"复制\")])],1),_c('div',{staticClass:\"user-other-info\"},[_vm._v(\"手机号: 138****5678\")])]),_c('div',{staticClass:\"login-info\"},[_c('div',{staticClass:\"login-section\"},[_c('div',{staticClass:\"login-section-title\"},[_vm._v(\"当前登录信息\")]),_c('div',{staticClass:\"login-detail\"},[_vm._v(\"登录设备: Edge浏览器\")]),_c('div',{staticClass:\"login-detail\"},[_vm._v(\"登录地点: 中国广东深圳\")]),_c('div',{staticClass:\"login-detail\"},[_vm._v(\"登录时间: 2099-02-23 10:09:50\")])]),_c('div',{staticClass:\"login-section\"},[_c('div',{staticClass:\"login-section-title\"},[_vm._v(\"上次登录信息\")]),_c('div',{staticClass:\"login-detail\"},[_vm._v(\"登录设备: 微信小程序\")]),_c('div',{staticClass:\"login-detail\"},[_vm._v(\"登录地点: 中国广东深圳\")]),_c('div',{staticClass:\"login-detail\"},[_vm._v(\"登录时间: 2099-02-05 10:46:45\")])])])]),_c('div',[_c('el-button',{staticStyle:{\"background-color\":\"#6a8a27\",\"border\":\"none\"},attrs:{\"type\":\"primary\",\"size\":\"mini\"}},[_c('i',{staticClass:\"el-icon-edit\"}),_vm._v(\" 编辑个人信息 \")])],1)])]),_c('div',{staticClass:\"flex-center\"},[_c('el-card',{staticStyle:{\"flex\":\"1\"}},[_c('div',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_vm._v(\"我的议价\")]),_c('div',{staticClass:\"feature-grid\"},_vm._l((_vm.bargaining),function(item,i){return _c('div',{key:i,staticClass:\"feature-item\"},[(item.value)?_c('el-badge',{attrs:{\"value\":item.value,\"type\":\"danger\"}},[_c('div',{staticClass:\"feature-icon\"},[_c('i',{class:item.icon})])]):_c('div',{staticClass:\"feature-icon\"},[_c('i',{class:item.icon})]),_c('span',{staticClass:\"feature-name\"},[_vm._v(_vm._s(item.title))])],1)}),0)]),_c('div',{staticStyle:{\"width\":\"20px\",\"flex-shrink\":\"0\"}}),_c('el-card',{staticStyle:{\"flex\":\"1\"}},[_c('div',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_vm._v(\"我的订单\")]),_c('div',{staticClass:\"feature-grid\"},_vm._l((_vm.order),function(item,i){return _c('div',{key:i,staticClass:\"feature-item\"},[(item.value)?_c('el-badge',{attrs:{\"value\":item.value,\"type\":\"danger\"}},[_c('div',{staticClass:\"feature-icon\"},[_c('i',{class:item.icon})])]):_c('div',{staticClass:\"feature-icon\"},[_c('i',{class:item.icon})]),_c('span',{staticClass:\"feature-name\"},[_vm._v(_vm._s(item.title))])],1)}),0)])],1)],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"notice-bar__content\"},[_c('i',{staticClass:\"el-icon-lightbulb\"}),_vm._v(\" 尊敬的采购人,欢迎来到xxx平台!您可以先完成下方的基础设置,方便您更高效的采购。 \")])\n}]\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./UserCenter.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./UserCenter.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./UserCenter.vue?vue&type=template&id=ab581bbc&scoped=true\"\nimport script from \"./UserCenter.vue?vue&type=script&lang=js\"\nexport * from \"./UserCenter.vue?vue&type=script&lang=js\"\nimport style0 from \"./UserCenter.vue?vue&type=style&index=0&id=ab581bbc&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"ab581bbc\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","showNotice","_m","on","$event","_e","attrs","_l","headFun","item","i","key","class","icon","_v","_s","title","staticStyle","slot","copyId","bargaining","value","order","staticRenderFns","name","data","userId","path","computed","created","methods","input","document","createElement","body","appendChild","select","execCommand","removeChild","$message","message","type","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/4.e0df9c1a.js b/dist/js/4.e0df9c1a.js new file mode 100644 index 0000000..7935803 --- /dev/null +++ b/dist/js/4.e0df9c1a.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[4],{9004:function(e,t,a){a.r(t),a.d(t,{default:function(){return n}});a(8111),a(116);var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"product-grid-page"},[e.showFilter?t("div",{staticClass:"filter-bar"},[t("el-select",{staticClass:"filter-select",attrs:{placeholder:"全部分类"},on:{change:e.handleCategoryChange},model:{value:e.selectedCategory,callback:function(t){e.selectedCategory=t},expression:"selectedCategory"}},e._l(e.categories,function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),t("el-select",{staticClass:"filter-select",attrs:{placeholder:"综合排序"},on:{change:e.handleSortChange},model:{value:e.selectedSort,callback:function(t){e.selectedSort=t},expression:"selectedSort"}},[t("el-option",{attrs:{label:"综合排序",value:"default"}}),t("el-option",{attrs:{label:"销量↑",value:"sales_asc"}}),t("el-option",{attrs:{label:"销量↓",value:"sales_desc"}}),t("el-option",{attrs:{label:"价格↑",value:"price_asc"}}),t("el-option",{attrs:{label:"价格↓",value:"price_desc"}})],1)],1):e._e(),"search"==e.type?t("div",{staticClass:"result-stats"},[t("span",[e._v("全部结果 >")]),e.searchKeyword?t("span",{staticClass:"keyword"},[e._v('"'+e._s(e.searchKeyword)+'"')]):e._e(),e.selectedCategory&&e.categories.find(t=>t.value===e.selectedCategory)?t("span",{staticClass:"category"},[e._v(' "'+e._s(e.categories.find(t=>t.value===e.selectedCategory).label)+'" ')]):e._e(),t("span",[e._v("共"+e._s(e.totalProducts)+"个结果")])]):e._e(),t("div",{staticClass:"product-grid"},[e._l(e.visibleProducts,function(a,s){return t("div",{key:a.id,staticClass:"product-card",on:{click:function(t){return e.goToDetail(a.id)}}},[t("el-image",{directives:[{name:"lazy",rawName:"v-lazy",value:a.image,expression:"product.image"}],staticClass:"product-img",attrs:{alt:a.name,lazy:"",fit:"cover"}},[t("div",{staticClass:"image-placeholder",attrs:{slot:"placeholder"},slot:"placeholder"},[t("i",{staticClass:"el-icon-loading"})])]),a.tag?t("div",{staticClass:"tag",style:{backgroundColor:a.tagColor}},[e._v(" "+e._s(a.tag)+" ")]):e._e(),t("div",{staticClass:"product-info"},[t("div",{staticClass:"product-name"},[e._v(e._s(a.name))]),t("div",{staticClass:"price-row"},[t("span",{staticClass:"current-price"},[e._v("¥"+e._s(a.price.toFixed(2)))]),a.originalPrice?t("span",{staticClass:"original-price"},[e._v("¥"+e._s(a.originalPrice.toFixed(2)))]):e._e()]),a.sales>0?t("div",{staticClass:"sales-volume"},[t("i",{staticClass:"el-icon-shopping-cart"}),e._v(" 已售 "+e._s(a.sales)+" ")]):e._e(),t("el-button",{staticClass:"cart-btn",attrs:{type:"primary",size:"mini"},on:{click:function(t){return t.preventDefault(),e.addToCart(a)}}},[e._v(" 加入购物车 ")])],1)],1)}),0===e.visibleProducts.length?t("div",{staticClass:"empty-state"},[t("el-empty",{attrs:{description:"暂无符合条件的商品"}})],1):e._e()],2),e.totalProducts>0?t("div",{staticClass:"pagination-container"},[t("el-pagination",{attrs:{"current-page":e.currentPage,"page-sizes":[12,24,36],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.totalProducts},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()])},i=[],r=(a(4114),a(2489),a(3518)),c={name:"ProductGridPage",data(){return{type:"",searchKeyword:"",selectedCategory:"",selectedSort:"default",showFilter:!0,currentPage:1,pageSize:12,products:[{id:1,name:"无线蓝牙耳机 主动降噪长续航",image:"https://picsum.photos/id/101/300/300",price:359,originalPrice:499,category:"digital",tag:"限时折扣",tagColor:"#FF6B6B",sales:120},{id:2,name:"智能手表 心率监测运动计步",image:"https://picsum.photos/id/102/300/300",price:259,originalPrice:329,category:"digital",tag:"新品",tagColor:"#4ECDC4",sales:86},{id:3,name:"纯棉短袖T恤 宽松休闲",image:"https://picsum.photos/id/103/300/300",price:89,originalPrice:129,category:"life",sales:320},{id:4,name:"新鲜水果礼盒 当季混合装",image:"https://picsum.photos/id/104/300/300",price:159,category:"food",tag:"热销",tagColor:"#FF9F1C",sales:215},{id:5,name:"全自动咖啡机 家用小型",image:"https://picsum.photos/id/105/300/300",price:1299,originalPrice:1599,category:"life",sales:45},{id:6,name:"高清投影仪 家用办公两用",image:"https://picsum.photos/id/106/300/300",price:2499,category:"digital",tag:"推荐",tagColor:"#2EC4B6",sales:78},{id:7,name:"进口红酒 赤霞珠干红",image:"https://picsum.photos/id/107/300/300",price:199,originalPrice:258,category:"food",sales:63},{id:8,name:"瑜伽垫 防滑专业健身垫",image:"https://picsum.photos/id/108/300/300",price:129,category:"life",sales:156},{id:9,name:"机械键盘 青轴游戏专用",image:"https://picsum.photos/id/109/300/300",price:299,originalPrice:399,category:"digital",tag:"限时折扣",tagColor:"#FF6B6B",sales:92},{id:10,name:"有机蔬菜礼盒 新鲜配送",image:"https://picsum.photos/id/110/300/300",price:89,category:"food",sales:205},{id:11,name:"北欧风落地灯 客厅卧室",image:"https://picsum.photos/id/111/300/300",price:199,category:"life",sales:57},{id:12,name:"便携式充电宝 20000mAh",image:"https://picsum.photos/id/112/300/300",price:129,originalPrice:169,category:"digital",sales:310}],categories:[{label:"全部",value:""},{label:"美食",value:"food"},{label:"生活",value:"life"},{label:"数码",value:"digital"}]}},computed:{...(0,r.L8)(["getSearchText"]),filteredProducts(){return this.products.filter(e=>{const t=!this.selectedCategory||e.category===this.selectedCategory,a=!this.searchKeyword||e.name.toLowerCase().includes(this.searchKeyword.toLowerCase());return t&&a})},sortedProducts(){const e=[...this.filteredProducts];switch(console.log(...this.filteredProducts,e),this.selectedSort){case"price_asc":return e.sort((e,t)=>e.price-t.price);case"price_desc":return e.sort((e,t)=>t.price-e.price);case"sales_asc":return e.sort((e,t)=>e.sales-t.sales);case"sales_desc":return e.sort((e,t)=>t.sales-e.sales);default:return e.sort((e,t)=>e.id-t.id)}},visibleProducts(){const e=(this.currentPage-1)*this.pageSize,t=e+this.pageSize;return this.sortedProducts.slice(e,t)},totalProducts(){return this.sortedProducts.length}},watch:{getSearchText(e,t){e!==t&&(this.searchKeyword=e,this.fetchProducts())}},created(){this.type=this.$route.query?.type,this.searchKeyword=this.getSearchText,this.fetchProducts()},methods:{async fetchProducts(){console.log(this.getSearchText)},handleSearch(){this.currentPage=1},handleCategoryChange(){this.currentPage=1},handleSortChange(){this.currentPage=1},handleSizeChange(e){this.pageSize=e,this.currentPage=1},handleCurrentChange(e){this.currentPage=e,window.scrollTo(0,0)},addToCart(e){this.$message.success(`${e.name} 已加入购物车`)},goToDetail(e){this.$router.push(`/product/${e}`)}}},l=c,o=a(1656),d=(0,o.A)(l,s,i,!1,null,"16ce8d0c",null),n=d.exports}}]); +//# sourceMappingURL=4.e0df9c1a.js.map \ No newline at end of file diff --git a/dist/js/4.e0df9c1a.js.map b/dist/js/4.e0df9c1a.js.map new file mode 100644 index 0000000..9cc1a0f --- /dev/null +++ b/dist/js/4.e0df9c1a.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/4.e0df9c1a.js","mappings":"uKAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,qBAAqB,CAAEJ,EAAIK,WAAYH,EAAG,MAAM,CAACE,YAAY,cAAc,CAACF,EAAG,YAAY,CAACE,YAAY,gBAAgBE,MAAM,CAAC,YAAc,QAAQC,GAAG,CAAC,OAASP,EAAIQ,sBAAsBC,MAAM,CAACC,MAAOV,EAAIW,iBAAkBC,SAAS,SAAUC,GAAMb,EAAIW,iBAAiBE,CAAG,EAAEC,WAAW,qBAAqBd,EAAIe,GAAIf,EAAIgB,WAAY,SAASC,GAAK,OAAOf,EAAG,YAAY,CAACgB,IAAID,EAAIP,MAAMJ,MAAM,CAAC,MAAQW,EAAIE,MAAM,MAAQF,EAAIP,QAAQ,GAAG,GAAGR,EAAG,YAAY,CAACE,YAAY,gBAAgBE,MAAM,CAAC,YAAc,QAAQC,GAAG,CAAC,OAASP,EAAIoB,kBAAkBX,MAAM,CAACC,MAAOV,EAAIqB,aAAcT,SAAS,SAAUC,GAAMb,EAAIqB,aAAaR,CAAG,EAAEC,WAAW,iBAAiB,CAACZ,EAAG,YAAY,CAACI,MAAM,CAAC,MAAQ,OAAO,MAAQ,aAAaJ,EAAG,YAAY,CAACI,MAAM,CAAC,MAAQ,MAAM,MAAQ,eAAeJ,EAAG,YAAY,CAACI,MAAM,CAAC,MAA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A,EAEAH,eAAAA,GACA,MAAA6C,GAAA,KAAAvB,YAAA,QAAAC,SACAuB,EAAAD,EAAA,KAAAtB,SACA,YAAAe,eAAAS,MAAAF,EAAAC,EACA,EAEA/C,aAAAA,GACA,YAAAuC,eAAAjB,MACA,GAEA2B,MAAA,CAEAC,aAAAA,CAAAC,EAAAC,GACAD,IAAAC,IACA,KAAAvD,cAAAsD,EACA,KAAAE,gBAEA,GAEAC,OAAAA,GACA,KAAA3D,KAAA,KAAA4D,OAAAC,OAAA7D,KACA,KAAAE,cAAA,KAAAqD,cACA,KAAAG,eACA,EACAI,QAAA,CAEA,mBAAAJ,GACAZ,QAAAC,IAAA,KAAAQ,cAEA,EAGAQ,YAAAA,GACA,KAAAnC,YAAA,CACA,EAGA3C,oBAAAA,GACA,KAAA2C,YAAA,CACA,EAGA/B,gBAAAA,GACA,KAAA+B,YAAA,CACA,EAGAE,gBAAAA,CAAAkC,GACA,KAAAnC,SAAAmC,EACA,KAAApC,YAAA,CACA,EAGAG,mBAAAA,CAAAiC,GACA,KAAApC,YAAAoC,EAEAC,OAAAC,SAAA,IACA,EAGAxC,SAAAA,CAAAnB,GACA,KAAA4D,SAAAC,QAAA,GAAA7D,EAAAM,cAEA,EAGAF,UAAAA,CAAAF,GACA,KAAA4D,QAAAC,KAAA,YAAA7D,IACA,IC7W6P,I,UCQzP8D,GAAY,OACd,EACA/F,EACAwD,GACA,EACA,KACA,WACA,MAIF,EAAeuC,E","sources":["webpack://abcdf/./src/views/ProductPage/Index.vue","webpack://abcdf/src/views/ProductPage/Index.vue","webpack://abcdf/./src/views/ProductPage/Index.vue?c00e","webpack://abcdf/./src/views/ProductPage/Index.vue?ce43"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"product-grid-page\"},[(_vm.showFilter)?_c('div',{staticClass:\"filter-bar\"},[_c('el-select',{staticClass:\"filter-select\",attrs:{\"placeholder\":\"全部分类\"},on:{\"change\":_vm.handleCategoryChange},model:{value:(_vm.selectedCategory),callback:function ($$v) {_vm.selectedCategory=$$v},expression:\"selectedCategory\"}},_vm._l((_vm.categories),function(cat){return _c('el-option',{key:cat.value,attrs:{\"label\":cat.label,\"value\":cat.value}})}),1),_c('el-select',{staticClass:\"filter-select\",attrs:{\"placeholder\":\"综合排序\"},on:{\"change\":_vm.handleSortChange},model:{value:(_vm.selectedSort),callback:function ($$v) {_vm.selectedSort=$$v},expression:\"selectedSort\"}},[_c('el-option',{attrs:{\"label\":\"综合排序\",\"value\":\"default\"}}),_c('el-option',{attrs:{\"label\":\"销量↑\",\"value\":\"sales_asc\"}}),_c('el-option',{attrs:{\"label\":\"销量↓\",\"value\":\"sales_desc\"}}),_c('el-option',{attrs:{\"label\":\"价格↑\",\"value\":\"price_asc\"}}),_c('el-option',{attrs:{\"label\":\"价格↓\",\"value\":\"price_desc\"}})],1)],1):_vm._e(),(_vm.type == 'search')?_c('div',{staticClass:\"result-stats\"},[_c('span',[_vm._v(\"全部结果 >\")]),(_vm.searchKeyword)?_c('span',{staticClass:\"keyword\"},[_vm._v(\"\\\"\"+_vm._s(_vm.searchKeyword)+\"\\\"\")]):_vm._e(),(\n _vm.selectedCategory &&\n _vm.categories.find((cat) => cat.value === _vm.selectedCategory)\n )?_c('span',{staticClass:\"category\"},[_vm._v(\" \\\"\"+_vm._s(_vm.categories.find((cat) => cat.value === _vm.selectedCategory).label)+\"\\\" \")]):_vm._e(),_c('span',[_vm._v(\"共\"+_vm._s(_vm.totalProducts)+\"个结果\")])]):_vm._e(),_c('div',{staticClass:\"product-grid\"},[_vm._l((_vm.visibleProducts),function(product,index){return _c('div',{key:product.id,staticClass:\"product-card\",on:{\"click\":function($event){return _vm.goToDetail(product.id)}}},[_c('el-image',{directives:[{name:\"lazy\",rawName:\"v-lazy\",value:(product.image),expression:\"product.image\"}],staticClass:\"product-img\",attrs:{\"alt\":product.name,\"lazy\":\"\",\"fit\":\"cover\"}},[_c('div',{staticClass:\"image-placeholder\",attrs:{\"slot\":\"placeholder\"},slot:\"placeholder\"},[_c('i',{staticClass:\"el-icon-loading\"})])]),(product.tag)?_c('div',{staticClass:\"tag\",style:({ backgroundColor: product.tagColor })},[_vm._v(\" \"+_vm._s(product.tag)+\" \")]):_vm._e(),_c('div',{staticClass:\"product-info\"},[_c('div',{staticClass:\"product-name\"},[_vm._v(_vm._s(product.name))]),_c('div',{staticClass:\"price-row\"},[_c('span',{staticClass:\"current-price\"},[_vm._v(\"¥\"+_vm._s(product.price.toFixed(2)))]),(product.originalPrice)?_c('span',{staticClass:\"original-price\"},[_vm._v(\"¥\"+_vm._s(product.originalPrice.toFixed(2)))]):_vm._e()]),(product.sales > 0)?_c('div',{staticClass:\"sales-volume\"},[_c('i',{staticClass:\"el-icon-shopping-cart\"}),_vm._v(\" 已售 \"+_vm._s(product.sales)+\" \")]):_vm._e(),_c('el-button',{staticClass:\"cart-btn\",attrs:{\"type\":\"primary\",\"size\":\"mini\"},on:{\"click\":function($event){$event.preventDefault();return _vm.addToCart(product)}}},[_vm._v(\" 加入购物车 \")])],1)],1)}),(_vm.visibleProducts.length === 0)?_c('div',{staticClass:\"empty-state\"},[_c('el-empty',{attrs:{\"description\":\"暂无符合条件的商品\"}})],1):_vm._e()],2),(_vm.totalProducts > 0)?_c('div',{staticClass:\"pagination-container\"},[_c('el-pagination',{attrs:{\"current-page\":_vm.currentPage,\"page-sizes\":[12, 24, 36],\"page-size\":_vm.pageSize,\"layout\":\"total, sizes, prev, pager, next, jumper\",\"total\":_vm.totalProducts},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=16ce8d0c&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=16ce8d0c&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"16ce8d0c\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","showFilter","attrs","on","handleCategoryChange","model","value","selectedCategory","callback","$$v","expression","_l","categories","cat","key","label","handleSortChange","selectedSort","_e","type","_v","searchKeyword","_s","find","totalProducts","visibleProducts","product","index","id","$event","goToDetail","directives","name","rawName","image","slot","tag","style","backgroundColor","tagColor","price","toFixed","originalPrice","sales","preventDefault","addToCart","length","currentPage","pageSize","handleSizeChange","handleCurrentChange","staticRenderFns","data","products","category","computed","mapGetters","filteredProducts","filter","categoryMatch","keywordMatch","toLowerCase","includes","sortedProducts","sorted","console","log","sort","a","b","start","end","slice","watch","getSearchText","newVal","oldVal","fetchProducts","created","$route","query","methods","handleSearch","val","window","scrollTo","$message","success","$router","push","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/40.e5eed29a.js b/dist/js/40.e5eed29a.js new file mode 100644 index 0000000..63b7538 --- /dev/null +++ b/dist/js/40.e5eed29a.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[40],{4458:function(t,s,i){i.d(s,{A:function(){return u}});var a=function(){var t=this,s=t._self._c;return s("div",{staticClass:"product-list"},[s("div",{staticClass:"product-grid"},t._l(t.products,function(i){return s("div",{key:i.id,staticClass:"product-card"},[s("div",{staticClass:"product-img"},[s("router-link",{attrs:{to:`/Detail/${i.id}`}},[s("img",{directives:[{name:"lazy",rawName:"v-lazy",value:i.headimg,expression:"product.headimg"}],staticClass:"product-pic",attrs:{alt:i.title}})])],1),s("div",{staticClass:"product-info"},[s("div",{staticClass:"flex-between"},[s("div",{staticClass:"product-price"},[s("span",{staticClass:"current-price"},[t._v("¥"+t._s(i.price/100))]),i.market_price?s("span",{staticClass:"original-price"},[t._v("¥"+t._s(i.market_price/100))]):t._e()]),i.sales?s("div",{staticClass:"product-sales"},[s("span",[t._v("已售 "+t._s(i.sales_number)+" 件")])]):t._e()]),s("h3",{staticClass:"product-name"},[s("router-link",{attrs:{to:`/Detail/${i.id}`}},[t._v(" "+t._s(i.title)+" ")])],1),s("div",{staticClass:"product-actions"},[s("el-button",{staticStyle:{"background-color":"#6a8a27",border:"none"},attrs:{type:"primary",size:"small"},on:{click:function(s){return t.addToCart(i)}}},[s("el-icon",{attrs:{name:"el-icon-shopping-cart"}}),t._v(" 加入购物车 ")],1)],1)])])}),0),0===t.products.length?s("div",{staticClass:"no-products"},[s("el-empty",{attrs:{description:"暂无相关商品"}})],1):t._e()])},e=[],r=(i(4114),i(3518)),c={name:"ProductList",props:{products:{type:Array,default:()=>[]}},methods:{...(0,r.i0)(["addToCart"]),addToCart(t){this.$store.getters.isUserLogin?(this.addToCart({id:t.id,name:t.name,price:t.price,image:t.image,quantity:1}),this.$message.success("已加入购物车")):this.$confirm("您尚未登录,是否前往登录?","提示",{confirmButtonText:"登录",cancelButtonText:"取消",type:"info"}).then(()=>{this.$router.push({path:"/login",query:{redirect:this.$route.fullPath}})}).catch(()=>{})}}},o=c,n=i(1656),l=(0,n.A)(o,a,e,!1,null,"6ecfbe40",null),u=l.exports},5040:function(t,s,i){i.r(s),i.d(s,{default:function(){return h}});var a=function(){var t=this,s=t._self._c;return s("div",{staticClass:"bg"},[s("HomeLayout",{attrs:{topBanner:t.topBanner,tagList:t.tagList}}),s("div",{staticClass:"product-box"},[s("h2",[t._v("今日推荐")]),s("ProductList",{attrs:{products:t.prouctList[0].list}})],1),s("div",{staticClass:"product-box"},[s("h2",[t._v("热销排行")]),s("ProductList",{attrs:{products:t.prouctList[1].list}})],1),s("div",{staticClass:"product-box"},[s("h2",[t._v("新品上市")]),s("ProductList",{attrs:{products:t.prouctList[2].list}})],1)],1)},e=[],r=(i(8111),i(1701),function(){var t=this,s=t._self._c;return s("div",{staticClass:"home-layout-container"},[s("router-link",{staticClass:"left-nav",attrs:{to:"/productList"}},[s("ul",{staticClass:"nav-list"},t._l(t.tagList,function(i){return s("li",{key:i.id,staticClass:"nav-item"},[s("img",{attrs:{src:t.util.showImg(i.image),alt:""}}),t._v(t._s(i.name)+" ")])}),0)]),s("div",{staticClass:"main-content"},[s("el-carousel",{staticStyle:{height:"100%"}},t._l(t.topBanner,function(t){return s("el-carousel-item",{key:t.id},[s("img",{staticClass:"carousel-img",attrs:{src:t.head_img}})])}),1)],1),s("div",{staticClass:"right-info"},[t.$store.getters.isUserLogin?s("div",{staticClass:"avatar-container"},[s("img",{staticClass:"user-avatar",attrs:{src:t.$store.getters.getUserInfo.avatar,alt:"用户头像"}}),s("div",{staticClass:"welcome-text"},[t._v("Hi-欢迎您")])]):t._e(),t._e(),t.$store.getters.isUserLogin?s("div",{staticClass:"func-icons"},[t._m(0),t._m(1),t._m(2),t._m(3)]):t._e(),s("div",{staticClass:"announcement"},[s("el-tag",{attrs:{type:"danger",size:"mini"}},[t._v("公告")]),s("span",[t._v("2099年12月平台重要新规速递")])],1)])],1)}),c=[function(){var t=this,s=t._self._c;return s("div",{staticClass:"icon-item"},[s("i",{staticClass:"icon el-icon-user"}),s("span",[t._v("个人中心")])])},function(){var t=this,s=t._self._c;return s("div",{staticClass:"icon-item"},[s("i",{staticClass:"icon el-icon-goods"}),s("span",[t._v("我的订单")])])},function(){var t=this,s=t._self._c;return s("div",{staticClass:"icon-item"},[s("i",{staticClass:"icon el-icon-star-off"}),s("span",[t._v("我的收藏")])])},function(){var t=this,s=t._self._c;return s("div",{staticClass:"icon-item"},[s("i",{staticClass:"icon el-icon-pie-chart"}),s("span",[t._v("议价单")])])}],o={name:"HomeLayout",props:{topBanner:{type:Array,default:()=>[]},tagList:{type:Array,default:()=>[]}},data(){return{}}},n=o,l=i(1656),u=(0,l.A)(n,r,c,!1,null,"340df0cc",null),d=u.exports,p=i(4458),g={components:{HomeLayout:d,ProductList:p.A},data(){return{topBanner:[],tagList:[],prouctList:[{id:670,title:"今日推荐",list:[]},{id:671,title:"热销排行",list:[]},{id:672,title:"新品上市",list:[]}],newProducts:[{id:7,name:"高清投影仪高清投影仪高清投影仪高清投影仪高清投影仪高清投影仪高清投影仪高清投影仪",price:3299,originalPrice:3699,image:"https://static.ticket.sz-trip.com/jundaosuzhou/images/scenicType/topImg.png",sales:156,categoryId:1},{id:8,name:"保湿面霜",price:299,originalPrice:359,image:"https://static.ticket.sz-trip.com/jundaosuzhou/images/scenicType/topImg.png",sales:423,categoryId:4},{id:9,name:"有机水果礼盒",price:159,originalPrice:199,image:"https://static.ticket.sz-trip.com/jundaosuzhou/images/scenicType/topImg.png",sales:287,categoryId:5},{id:10,name:"经典文学名著",price:129,originalPrice:199,image:"https://static.ticket.sz-trip.com/jundaosuzhou/images/scenicType/topImg.png",sales:342,categoryId:6}]}},created(){this.getTopBanner(),this.getTags(),this.getProductList(),this.post({},"/api/uservice/user/getMyInfo").then(t=>{})},methods:{getTopBanner(){this.post({type_id:6,position:0},"/api/adv/getAdv").then(t=>{t&&(this.topBanner=t.data)})},getTags(){this.post({pid:662},"/api/product/tag_list").then(t=>{this.tagList=t.data})},getProductList(){this.prouctList.map(t=>{this.post({tag_id:t.id,offset:0,limit:4},"/api/product/get_product_by_tag").then(s=>{t.list=s.data.list})})}}},m=g,v=(0,l.A)(m,a,e,!1,null,"17e3f187",null),h=v.exports}}]); +//# sourceMappingURL=40.e5eed29a.js.map \ No newline at end of file diff --git a/dist/js/40.e5eed29a.js.map b/dist/js/40.e5eed29a.js.map new file mode 100644 index 0000000..8e5012e --- /dev/null +++ b/dist/js/40.e5eed29a.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/40.e5eed29a.js","mappings":"wIAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,MAAM,CAACE,YAAY,gBAAgBJ,EAAIK,GAAIL,EAAIM,SAAU,SAASC,GAAS,OAAOL,EAAG,MAAM,CAACM,IAAID,EAAQE,GAAGL,YAAY,gBAAgB,CAACF,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,cAAc,CAACQ,MAAM,CAAC,GAAK,WAAWH,EAAQE,OAAO,CAACP,EAAG,MAAM,CAACS,WAAW,CAAC,CAACC,KAAK,OAAOC,QAAQ,SAASC,MAAOP,EAAQQ,QAASC,WAAW,oBAAoBZ,YAAY,cAAcM,MAAM,CAAC,IAAMH,EAAQU,YAAY,GAAGf,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,MAAM,CAACE,YAAY,iBAAiB,CAACF,EAAG,OAAO,CAACE,YAAY,iBAAiB,CAACJ,EAAIkB,GAAG,IAAIlB,EAAImB,GAAGZ,EAAQa,MAAQ,QAASb,EAAQc,aAAcnB,EAAG,OAAO,CAACE,YAAY,kBAAkB,CAACJ,EAAIkB,GAAG,IAAIlB,EAAImB,GAAGZ,EAAQc,aAAe,QAAQrB,EAAIsB,OAAQf,EAAQgB,MAAOrB,EAAG,MAAM,CAACE,YAAY,iBAAiB,CAACF,EAAG,OAAO,CAACF,EAAIkB,GAAG,MAAMlB,EAAImB,GAAGZ,EAAQiB,cAAc,UAAUxB,EAAIsB,OAAOpB,EAAG,KAAK,CAACE,YAAY,gBAAgB,CAACF,EAAG,c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MACA,EACA7C,QAAA,CAEAyC,YAAAA,GACA,KAAAG,KACA,CACAE,QAAA,EACAC,SAAA,GAEA,mBACAnC,KAAAiC,IACAA,IACA,KAAAvB,UAAAuB,EAAAZ,OAGA,EAEAS,OAAAA,GACA,KAAAE,KACA,CACAI,IAAA,KAEA,yBACApC,KAAAiC,IACA,KAAAtB,QAAAsB,EAAAZ,MAEA,EAEAU,cAAAA,GACA,KAAAnB,WAAAyB,IAAAC,IACA,KAAAN,KACA,CACAO,OAAAD,EAAA5E,GACA8E,OAAA,EACAC,MAAA,GAEA,mCACAzC,KAAAiC,IACAK,EAAAzB,KAAAoB,EAAAZ,KAAAR,QAGA,IC7IoP,ICQhP,GAAY,OACd,EACA7D,EACA+B,GACA,EACA,KACA,WACA,MAIF,EAAe,E","sources":["webpack://abcdf/./src/components/product/ProductList.vue","webpack://abcdf/src/components/product/ProductList.vue","webpack://abcdf/./src/components/product/ProductList.vue?43ae","webpack://abcdf/./src/components/product/ProductList.vue?0bfb","webpack://abcdf/./src/views/Index.vue","webpack://abcdf/./src/components/layout/HomeLayout.vue","webpack://abcdf/src/components/layout/HomeLayout.vue","webpack://abcdf/./src/components/layout/HomeLayout.vue?06d9","webpack://abcdf/./src/components/layout/HomeLayout.vue?b436","webpack://abcdf/src/views/Index.vue","webpack://abcdf/./src/views/Index.vue?cb95","webpack://abcdf/./src/views/Index.vue?e2bc"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"product-list\"},[_c('div',{staticClass:\"product-grid\"},_vm._l((_vm.products),function(product){return _c('div',{key:product.id,staticClass:\"product-card\"},[_c('div',{staticClass:\"product-img\"},[_c('router-link',{attrs:{\"to\":`/Detail/${product.id}`}},[_c('img',{directives:[{name:\"lazy\",rawName:\"v-lazy\",value:(product.headimg),expression:\"product.headimg\"}],staticClass:\"product-pic\",attrs:{\"alt\":product.title}})])],1),_c('div',{staticClass:\"product-info\"},[_c('div',{staticClass:\"flex-between\"},[_c('div',{staticClass:\"product-price\"},[_c('span',{staticClass:\"current-price\"},[_vm._v(\"¥\"+_vm._s(product.price / 100))]),(product.market_price)?_c('span',{staticClass:\"original-price\"},[_vm._v(\"¥\"+_vm._s(product.market_price / 100))]):_vm._e()]),(product.sales)?_c('div',{staticClass:\"product-sales\"},[_c('span',[_vm._v(\"已售 \"+_vm._s(product.sales_number)+\" 件\")])]):_vm._e()]),_c('h3',{staticClass:\"product-name\"},[_c('router-link',{attrs:{\"to\":`/Detail/${product.id}`}},[_vm._v(\" \"+_vm._s(product.title)+\" \")])],1),_c('div',{staticClass:\"product-actions\"},[_c('el-button',{staticStyle:{\"background-color\":\"#6a8a27\",\"border\":\"none\"},attrs:{\"type\":\"primary\",\"size\":\"small\"},on:{\"click\":function($event){return _vm.addToCart(product)}}},[_c('el-icon',{attrs:{\"name\":\"el-icon-shopping-cart\"}}),_vm._v(\" 加入购物车 \")],1)],1)])])}),0),(_vm.products.length === 0)?_c('div',{staticClass:\"no-products\"},[_c('el-empty',{attrs:{\"description\":\"暂无相关商品\"}})],1):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ProductList.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ProductList.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ProductList.vue?vue&type=template&id=6ecfbe40&scoped=true\"\nimport script from \"./ProductList.vue?vue&type=script&lang=js\"\nexport * from \"./ProductList.vue?vue&type=script&lang=js\"\nimport style0 from \"./ProductList.vue?vue&type=style&index=0&id=6ecfbe40&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6ecfbe40\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg\"},[_c('HomeLayout',{attrs:{\"topBanner\":_vm.topBanner,\"tagList\":_vm.tagList}}),_c('div',{staticClass:\"product-box\"},[_c('h2',[_vm._v(\"今日推荐\")]),_c('ProductList',{attrs:{\"products\":_vm.prouctList[0].list}})],1),_c('div',{staticClass:\"product-box\"},[_c('h2',[_vm._v(\"热销排行\")]),_c('ProductList',{attrs:{\"products\":_vm.prouctList[1].list}})],1),_c('div',{staticClass:\"product-box\"},[_c('h2',[_vm._v(\"新品上市\")]),_c('ProductList',{attrs:{\"products\":_vm.prouctList[2].list}})],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"home-layout-container\"},[_c('router-link',{staticClass:\"left-nav\",attrs:{\"to\":\"/productList\"}},[_c('ul',{staticClass:\"nav-list\"},_vm._l((_vm.tagList),function(item){return _c('li',{key:item.id,staticClass:\"nav-item\"},[_c('img',{attrs:{\"src\":_vm.util.showImg(item.image),\"alt\":\"\"}}),_vm._v(_vm._s(item.name)+\" \")])}),0)]),_c('div',{staticClass:\"main-content\"},[_c('el-carousel',{staticStyle:{\"height\":\"100%\"}},_vm._l((_vm.topBanner),function(item){return _c('el-carousel-item',{key:item.id},[_c('img',{staticClass:\"carousel-img\",attrs:{\"src\":item.head_img}})])}),1)],1),_c('div',{staticClass:\"right-info\"},[(_vm.$store.getters.isUserLogin)?_c('div',{staticClass:\"avatar-container\"},[_c('img',{staticClass:\"user-avatar\",attrs:{\"src\":_vm.$store.getters.getUserInfo.avatar,\"alt\":\"用户头像\"}}),_c('div',{staticClass:\"welcome-text\"},[_vm._v(\"Hi-欢迎您\")])]):_vm._e(),(false)?_c('div',{staticClass:\"btn-group\"},[_c('el-button',{attrs:{\"type\":\"danger\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.gotoPath('/Login')}}},[_vm._v(\"登录\")]),_c('el-button',{attrs:{\"type\":\"warning\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.gotoPath('/Register')}}},[_vm._v(\"注册\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"mini\"}},[_vm._v(\"客服\")])],1):_vm._e(),(_vm.$store.getters.isUserLogin)?_c('div',{staticClass:\"func-icons\"},[_vm._m(0),_vm._m(1),_vm._m(2),_vm._m(3)]):_vm._e(),_c('div',{staticClass:\"announcement\"},[_c('el-tag',{attrs:{\"type\":\"danger\",\"size\":\"mini\"}},[_vm._v(\"公告\")]),_c('span',[_vm._v(\"2099年12月平台重要新规速递\")])],1)])],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"icon-item\"},[_c('i',{staticClass:\"icon el-icon-user\"}),_c('span',[_vm._v(\"个人中心\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"icon-item\"},[_c('i',{staticClass:\"icon el-icon-goods\"}),_c('span',[_vm._v(\"我的订单\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"icon-item\"},[_c('i',{staticClass:\"icon el-icon-star-off\"}),_c('span',[_vm._v(\"我的收藏\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"icon-item\"},[_c('i',{staticClass:\"icon el-icon-pie-chart\"}),_c('span',[_vm._v(\"议价单\")])])\n}]\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n ","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./HomeLayout.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./HomeLayout.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./HomeLayout.vue?vue&type=template&id=340df0cc&scoped=true\"\nimport script from \"./HomeLayout.vue?vue&type=script&lang=js\"\nexport * from \"./HomeLayout.vue?vue&type=script&lang=js\"\nimport style0 from \"./HomeLayout.vue?vue&type=style&index=0&id=340df0cc&prod&scoped=true&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"340df0cc\",\n null\n \n)\n\nexport default component.exports","\r\n\r\n\r\n\r\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=17e3f187&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=17e3f187&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"17e3f187\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","_l","products","product","key","id","attrs","directives","name","rawName","value","headimg","expression","title","_v","_s","price","market_price","_e","sales","sales_number","staticStyle","on","$event","addToCart","length","staticRenderFns","props","type","Array","default","methods","mapActions","$store","getters","isUserLogin","image","quantity","$message","success","$confirm","confirmButtonText","cancelButtonText","then","$router","push","path","query","redirect","$route","fullPath","catch","component","topBanner","tagList","prouctList","list","item","util","showImg","head_img","getUserInfo","avatar","_m","data","components","HomeLayout","ProductList","newProducts","originalPrice","categoryId","created","getTopBanner","getTags","getProductList","post","res","type_id","position","pid","map","i","tag_id","offset","limit"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/406.069a7943.js b/dist/js/406.069a7943.js new file mode 100644 index 0000000..dea60e8 --- /dev/null +++ b/dist/js/406.069a7943.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[406],{3406:function(e,t,r){r.r(t),r.d(t,{default:function(){return m}});var a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"bg"},[e._m(0),t("div",{staticClass:"filter-bar"},[t("el-form",{attrs:{inline:!0,model:e.filterForm,size:"small"}},[t("el-form-item",{attrs:{label:"合同号"}},[t("el-input",{attrs:{placeholder:"请输入订单编号"},model:{value:e.filterForm.orderNo,callback:function(t){e.$set(e.filterForm,"orderNo",t)},expression:"filterForm.orderNo"}})],1),t("el-form-item",{attrs:{label:"订单编号"}},[t("el-input",{attrs:{placeholder:"请输入订单编号"},model:{value:e.filterForm.orderNo,callback:function(t){e.$set(e.filterForm,"orderNo",t)},expression:"filterForm.orderNo"}})],1),t("el-form-item",{attrs:{label:"下单时间"}},[t("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},model:{value:e.filterForm.createTime,callback:function(t){e.$set(e.filterForm,"createTime",t)},expression:"filterForm.createTime"}})],1),t("el-form-item",{attrs:{label:"供应商名称"}},[t("el-input",{attrs:{placeholder:"请输入订单编号"},model:{value:e.filterForm.orderNo,callback:function(t){e.$set(e.filterForm,"orderNo",t)},expression:"filterForm.orderNo"}})],1),t("el-form-item",{attrs:{label:"商品名称"}},[t("el-input",{attrs:{placeholder:"请输入订单编号"},model:{value:e.filterForm.orderNo,callback:function(t){e.$set(e.filterForm,"orderNo",t)},expression:"filterForm.orderNo"}})],1),t("el-form-item",{attrs:{label:"合同金额"}},[t("el-input-number",{model:{value:e.filterForm.min,callback:function(t){e.$set(e.filterForm,"min",t)},expression:"filterForm.min"}}),e._v(" 至 "),t("el-input-number",{model:{value:e.filterForm.max,callback:function(t){e.$set(e.filterForm,"max",t)},expression:"filterForm.max"}})],1),t("el-form-item",[t("el-button",{staticStyle:{background:"#6a8a27",border:"none"},attrs:{type:"primary"},on:{click:e.search}},[e._v("搜索")])],1),t("el-form-item",[t("el-button",{on:{click:e.reset}},[e._v("重置")])],1)],1)],1),t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.orders,border:""}},[t("el-table-column",{attrs:{prop:"createTime",label:"下单时间",width:"200"}}),t("el-table-column",{attrs:{prop:"orderNo",label:"订单号","min-width":"120"}}),t("el-table-column",{attrs:{prop:"status",label:"商品信息",width:"120"}}),t("el-table-column",{attrs:{prop:"totalAmount",label:"合同号",width:"120"}}),t("el-table-column",{attrs:{prop:"orderNo",label:"合同金额","min-width":"120"}}),t("el-table-column",{attrs:{label:"操作",width:"200"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.handleEdit(r.row)}}},[e._v("查看")]),t("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.handleDelete(r.row)}}},[e._v("下载合同模板")])]}}])})],1),t("div",{staticStyle:{"text-align":"right","margin-top":"20px"}},[t("el-pagination",{attrs:{"current-page":e.filterForm.currentPage,"page-sizes":[5,10,20],"page-size":e.filterForm.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.filterForm.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)},i=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"notice-bar"},[t("div",{staticClass:"notice-bar__content"},[t("div",[e._v("说明:")]),t("div",[e._v("1.订单提交成功,系统将根据订单内容自动为您创建交易合同。")]),t("div",[e._v("2.您可直接“下载合同模板”,线下邮寄盖章使用。")])])])}],o=(r(4114),r(8111),r(2489),r(3579),{name:"OrderList",data(){return{activeTab:"all",currentPage:1,pageSize:10,filterForm:{goodsName:"",orderNo:"",createTime:"",merchantName:"",tradeStatus:""},orders:[{id:1,orderNo:"209907091214560078",createTime:"2099-07-09 10:47:49",status:"pendingPayment",totalAmount:937,freight:15,isReviewed:!1,merchant:{id:101,name:"花艺生活馆",isOfficial:!0},products:[{id:1001,name:"深情挚爱/卡罗拉玫瑰",image:"https://picsum.photos/200/200?random=1",spec:"卡罗拉玫瑰33枝",price:349,quantity:1,status:"pendingPayment"},{id:1002,name:"精美包装纸",image:"https://picsum.photos/200/200?random=4",spec:"粉色",price:38,quantity:2,status:"pendingPayment"}]},{id:2,orderNo:"209907091214560079",createTime:"2099-07-09 10:48:49",status:"pendingDelivery",totalAmount:199,freight:0,isReviewed:!1,merchant:{id:102,name:"北欧家居旗舰店",isOfficial:!0},products:[{id:2001,name:"北欧花艺素雅仿真花",image:"https://picsum.photos/200/200?random=2",spec:"白色",price:199,quantity:1,status:"pendingDelivery"}]},{id:3,orderNo:"209907091214560080",createTime:"2099-07-09 10:49:49",status:"delivering",totalAmount:389,freight:10,isReviewed:!1,merchant:{id:101,name:"花艺生活馆",isOfficial:!0},products:[{id:3001,name:"香槟玫瑰+白玫瑰混搭",image:"https://picsum.photos/200/200?random=3",spec:"混搭",price:389,quantity:1,status:"delivering"}]}]}},computed:{filteredOrders(){let e=[...this.orders];if("all"!==this.activeTab&&(e=e.filter(e=>e.status===this.activeTab)),this.filterForm.goodsName){const t=this.filterForm.goodsName.toLowerCase();e=e.filter(e=>e.products.some(e=>e.name.toLowerCase().includes(t)))}if(this.filterForm.orderNo&&(e=e.filter(e=>e.orderNo.includes(this.filterForm.orderNo))),this.filterForm.merchantName){const t=this.filterForm.merchantName.toLowerCase();e=e.filter(e=>e.merchant.name.toLowerCase().includes(t))}return this.filterForm.tradeStatus&&(e=e.filter(e=>e.status===this.filterForm.tradeStatus)),e}},methods:{search(){this.currentPage=1,this.$message({message:"搜索条件已应用",type:"info"})},reset(){this.filterForm={goodsName:"",orderNo:"",createTime:"",merchantName:"",tradeStatus:""},this.activeTab="all",this.currentPage=1},handleSizeChange(e){this.pageSize=e},handleCurrentChange(e){this.currentPage=e},getStatusText(e){const t={pendingPayment:"待付款",pendingDelivery:"待发货",delivering:"配送中",completed:"已完成",cancelled:"已取消"};return t[e]||e},getStatusTagType(e){const t={pendingPayment:"warning",pendingDelivery:"info",delivering:"primary",completed:"success",cancelled:"danger"};return t[e]||"default"},payOrder(e){this.$message({message:`订单 ${e} 去付款`,type:"info"})},remindDelivery(e){this.$message({message:`已提醒订单 ${e} 发货`,type:"success"})},checkLogistics(e){this.$message({message:`查看订单 ${e} 物流`,type:"info"})},gotoReview(e){this.$message({message:`去评价订单 ${e}`,type:"info"})},viewOrderDetail(e){this.$router.push({name:"OrderDetail"})}}}),l=o,s=r(1656),n=(0,s.A)(l,a,i,!1,null,"f9006c4c",null),m=n.exports}}]); +//# sourceMappingURL=406.069a7943.js.map \ No newline at end of file diff --git a/dist/js/406.069a7943.js.map b/dist/js/406.069a7943.js.map new file mode 100644 index 0000000..0e54086 --- /dev/null +++ b/dist/js/406.069a7943.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/406.069a7943.js","mappings":"sJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,MAAM,CAACJ,EAAIK,GAAG,GAAGH,EAAG,MAAM,CAACE,YAAY,cAAc,CAACF,EAAG,UAAU,CAACI,MAAM,CAAC,QAAS,EAAK,MAAQN,EAAIO,WAAW,KAAO,UAAU,CAAC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://abcdf/src/views/User/ContractList.vue","webpack://abcdf/./src/views/User/ContractList.vue?59d9","webpack://abcdf/./src/views/User/ContractList.vue?898c"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg\"},[_vm._m(0),_c('div',{staticClass:\"filter-bar\"},[_c('el-form',{attrs:{\"inline\":true,\"model\":_vm.filterForm,\"size\":\"small\"}},[_c('el-form-item',{attrs:{\"label\":\"合同号\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入订单编号\"},model:{value:(_vm.filterForm.orderNo),callback:function ($$v) {_vm.$set(_vm.filterForm, \"orderNo\", $$v)},expression:\"filterForm.orderNo\"}})],1),_c('el-form-item',{attrs:{\"label\":\"订单编号\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入订单编号\"},model:{value:(_vm.filterForm.orderNo),callback:function ($$v) {_vm.$set(_vm.filterForm, \"orderNo\", $$v)},expression:\"filterForm.orderNo\"}})],1),_c('el-form-item',{attrs:{\"label\":\"下单时间\"}},[_c('el-date-picker',{attrs:{\"type\":\"daterange\",\"range-separator\":\"至\",\"start-placeholder\":\"开始日期\",\"end-placeholder\":\"结束日期\",\"value-format\":\"yyyy-MM-dd\"},model:{value:(_vm.filterForm.createTime),callback:function ($$v) {_vm.$set(_vm.filterForm, \"createTime\", $$v)},expression:\"filterForm.createTime\"}})],1),_c('el-form-item',{attrs:{\"label\":\"供应商名称\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入订单编号\"},model:{value:(_vm.filterForm.orderNo),callback:function ($$v) {_vm.$set(_vm.filterForm, \"orderNo\", $$v)},expression:\"filterForm.orderNo\"}})],1),_c('el-form-item',{attrs:{\"label\":\"商品名称\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入订单编号\"},model:{value:(_vm.filterForm.orderNo),callback:function ($$v) {_vm.$set(_vm.filterForm, \"orderNo\", $$v)},expression:\"filterForm.orderNo\"}})],1),_c('el-form-item',{attrs:{\"label\":\"合同金额\"}},[_c('el-input-number',{model:{value:(_vm.filterForm.min),callback:function ($$v) {_vm.$set(_vm.filterForm, \"min\", $$v)},expression:\"filterForm.min\"}}),_vm._v(\" 至 \"),_c('el-input-number',{model:{value:(_vm.filterForm.max),callback:function ($$v) {_vm.$set(_vm.filterForm, \"max\", $$v)},expression:\"filterForm.max\"}})],1),_c('el-form-item',[_c('el-button',{staticStyle:{\"background\":\"#6a8a27\",\"border\":\"none\"},attrs:{\"type\":\"primary\"},on:{\"click\":_vm.search}},[_vm._v(\"搜索\")])],1),_c('el-form-item',[_c('el-button',{on:{\"click\":_vm.reset}},[_vm._v(\"重置\")])],1)],1)],1),_c('el-table',{staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.orders,\"border\":\"\"}},[_c('el-table-column',{attrs:{\"prop\":\"createTime\",\"label\":\"下单时间\",\"width\":\"200\"}}),_c('el-table-column',{attrs:{\"prop\":\"orderNo\",\"label\":\"订单号\",\"min-width\":\"120\"}}),_c('el-table-column',{attrs:{\"prop\":\"status\",\"label\":\"商品信息\",\"width\":\"120\"}}),_c('el-table-column',{attrs:{\"prop\":\"totalAmount\",\"label\":\"合同号\",\"width\":\"120\"}}),_c('el-table-column',{attrs:{\"prop\":\"orderNo\",\"label\":\"合同金额\",\"min-width\":\"120\"}}),_c('el-table-column',{attrs:{\"label\":\"操作\",\"width\":\"200\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.handleEdit(scope.row)}}},[_vm._v(\"查看\")]),_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){return _vm.handleDelete(scope.row)}}},[_vm._v(\"下载合同模板\")])]}}])})],1),_c('div',{staticStyle:{\"text-align\":\"right\",\"margin-top\":\"20px\"}},[_c('el-pagination',{attrs:{\"current-page\":_vm.filterForm.currentPage,\"page-sizes\":[5, 10, 20],\"page-size\":_vm.filterForm.pageSize,\"layout\":\"total, sizes, prev, pager, next, jumper\",\"total\":_vm.filterForm.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1)],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"notice-bar\"},[_c('div',{staticClass:\"notice-bar__content\"},[_c('div',[_vm._v(\"说明:\")]),_c('div',[_vm._v(\"1.订单提交成功,系统将根据订单内容自动为您创建交易合同。\")]),_c('div',[_vm._v(\"2.您可直接“下载合同模板”,线下邮寄盖章使用。\")])])])\n}]\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ContractList.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ContractList.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ContractList.vue?vue&type=template&id=f9006c4c&scoped=true\"\nimport script from \"./ContractList.vue?vue&type=script&lang=js\"\nexport * from \"./ContractList.vue?vue&type=script&lang=js\"\nimport style0 from \"./ContractList.vue?vue&type=style&index=0&id=f9006c4c&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"f9006c4c\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","_m","attrs","filterForm","model","value","orderNo","callback","$$v","$set","expression","createTime","min","_v","max","staticStyle","on","search","reset","orders","scopedSlots","_u","key","fn","scope","$event","handleEdit","row","handleDelete","currentPage","pageSize","total","handleSizeChange","handleCurrentChange","staticRenderFns","name","data","activeTab","goodsName","merchantName","tradeStatus","id","status","totalAmount","freight","isReviewed","merchant","isOfficial","products","image","spec","price","quantity","computed","filteredOrders","result","filter","order","keyword","toLowerCase","some","product","includes","methods","$message","message","type","val","getStatusText","statusMap","pendingPayment","pendingDelivery","delivering","completed","cancelled","getStatusTagType","typeMap","payOrder","orderId","remindDelivery","checkLogistics","gotoReview","viewOrderDetail","$router","push","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/510.a937fc39.js b/dist/js/510.a937fc39.js deleted file mode 100644 index 2daa893..0000000 --- a/dist/js/510.a937fc39.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[510],{7510:function(e,t,s){s.r(t),s.d(t,{default:function(){return c}});var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"register-page"},[e._m(0),t("div",{staticClass:"form-container"},[t("h2",{staticClass:"form-title"},[e._v("注册页")]),t("el-form",{ref:"registerForm",staticClass:"register-form",attrs:{model:e.form,rules:e.rules,"label-width":"80px"}},[t("el-form-item",{attrs:{label:"手机号码",prop:"phone"}},[t("el-input",{attrs:{placeholder:"请输入手机号码",clearable:"","prefix-icon":"el-icon-phone"},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1),t("el-form-item",{attrs:{label:"手机验证码",prop:"code"}},[t("el-input",{staticStyle:{width:"60%"},attrs:{placeholder:"请输入验证码",clearable:"","prefix-icon":"el-icon-message"},model:{value:e.form.code,callback:function(t){e.$set(e.form,"code",t)},expression:"form.code"}}),t("el-button",{staticClass:"code-btn",attrs:{type:"success",disabled:e.codeBtnDisabled},on:{click:e.handleGetCode}},[e._v(" "+e._s(e.codeBtnText)+" ")])],1),t("el-form-item",{attrs:{label:"用户名",prop:"username"}},[t("el-input",{attrs:{placeholder:"账户唯一识别,可用来登录",clearable:"","prefix-icon":"el-icon-user"},model:{value:e.form.username,callback:function(t){e.$set(e.form,"username",t)},expression:"form.username"}}),t("div",{staticClass:"form-tip"},[e._v(" 请输入4-32位字符,只能包含英文字母、数字和下划线,不能为纯数字/不能为纯下划线 ")])],1),t("el-form-item",{attrs:{label:"设重密码",prop:"password"}},[t("el-input",{attrs:{type:"password",placeholder:"请设置登录密码",clearable:"","prefix-icon":"el-icon-lock"},on:{input:e.handlePasswordInput},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}}),t("div",{staticClass:"form-tip"},[e._v(" 请输入8-30位密码,密码必须同时包含字母和数字 ")])],1),t("el-form-item",{attrs:{label:"确认密码",prop:"confirmPassword"}},[t("el-input",{attrs:{type:"password",placeholder:"请再次输入登录密码",clearable:"","prefix-icon":"el-icon-lock"},model:{value:e.form.confirmPassword,callback:function(t){e.$set(e.form,"confirmPassword",t)},expression:"form.confirmPassword"}}),t("div",{staticClass:"form-tip"},[e._v("请与上方填写的密码保持一致")])],1),t("el-form-item",[t("el-checkbox",{staticClass:"agreement-checkbox",model:{value:e.agreement,callback:function(t){e.agreement=t},expression:"agreement"}},[e._v(" 我已阅读并同意 "),t("a",{staticClass:"protocol-link",attrs:{href:"javascript:;"}},[e._v("《用户注册协议》")]),e._v(" 《"),t("a",{staticClass:"protocol-link",attrs:{href:"javascript:;"}},[e._v("隐私协议")]),e._v("》 ")])],1),t("el-form-item",[t("el-button",{staticClass:"register-btn",attrs:{type:"primary",disabled:!e.agreement||e.submitting},on:{click:e.handleRegister}},[e._v(" "+e._s(e.submitting?"注册中...":"立即注册")+" ")])],1),e._e()],1)],1)])},a=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"header"},[t("div",{staticClass:"logo-area"},[t("img",{staticClass:"logo-img",attrs:{src:s(3153),alt:"logo"}}),t("span",{staticClass:"domain"},[e._v("yunming.com")])]),t("div",{staticClass:"hotline"},[e._v("400-123-4xxx")])])}],o={name:"RegisterPage",data(){const e=(e,t,s)=>{/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,30}$/.test(t)?s():s(new Error("请输入8-30位密码,必须同时包含字母和数字"))},t=(e,t,s)=>{/^(?!_+$)(?!\d+$)[a-zA-Z0-9_]{4,32}$/.test(t)?s():s(new Error("请输入4-32位字符,只能包含字母、数字和下划线,不能为纯数字/纯下划线"))};return{form:{phone:"",code:"",username:"",password:"",confirmPassword:""},rules:{phone:[{required:!0,message:"请输入手机号码",trigger:"blur"},{pattern:/^1\d{10}$/,message:"请输入正确的手机号码格式",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"},{pattern:/^\d{6}$/,message:"请输入6位数字验证码",trigger:"blur"}],username:[{required:!0,message:"请输入用户名",trigger:"blur"},{validator:t,trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"},{validator:e,trigger:"blur"}],confirmPassword:[{required:!0,message:"请确认密码",trigger:"blur"},{validator:(e,t,s)=>{t!==this.form.password?s(new Error("两次输入密码不一致")):s()},trigger:"blur"}]},agreement:!1,codeBtnText:"获取验证码",codeBtnDisabled:!1,submitting:!1,countdown:60}},methods:{handleGetCode(){if(!this.form.phone)return void this.$message.warning("请先输入手机号码");this.codeBtnDisabled=!0,this.codeBtnText=`重新发送(${this.countdown}s)`;const e=setInterval(()=>{this.countdown--,this.codeBtnText=`重新发送(${this.countdown}s)`,this.countdown<=0&&(clearInterval(e),this.codeBtnText="获取验证码",this.codeBtnDisabled=!1,this.countdown=60)},1e3)},handlePasswordInput(){},handleRegister(){this.$refs.registerForm.validate(e=>{e&&this.agreement?(this.submitting=!0,setTimeout(()=>{this.$message.success("注册成功!"),this.submitting=!1},1500)):this.agreement||this.$message.warning("请勾选用户协议")})}}},i=o,l=s(1656),n=(0,l.A)(i,r,a,!1,null,"54891a54",null),c=n.exports}}]); -//# sourceMappingURL=510.a937fc39.js.map \ No newline at end of file diff --git a/dist/js/510.a937fc39.js.map b/dist/js/510.a937fc39.js.map deleted file mode 100644 index 8aa4212..0000000 --- a/dist/js/510.a937fc39.js.map +++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AAAC,QAAA,SAAAC,QAAA,QACA,CACAC,QAAA,UACAF,QAAA,aACAC,QAAA,SAGAnB,SAAA,CACA,CAAAiB,UAAA,EAAAC,QAAA,SAAAC,QAAA,QACA,CAAAE,UAAAL,EAAAG,QAAA,SAEAjB,SAAA,CACA,CAAAe,UAAA,EAAAC,QAAA,QAAAC,QAAA,QACA,CAAAE,UAAAT,EAAAO,QAAA,SAEAhB,gBAAA,CACA,CAAAc,UAAA,EAAAC,QAAA,QAAAC,QAAA,QACA,CACAE,UAAAA,CAAAR,EAAA1B,EAAAE,KACAF,IAAA,KAAAH,KAAAkB,SACAb,EAAA,IAAA0B,MAAA,cAEA1B,KAGA8B,QAAA,UAIAf,WAAA,EACAL,YAAA,QACAJ,iBAAA,EACAU,YAAA,EACAiB,UAAA,GAEA,EACAC,QAAA,CAEA1B,aAAAA,GACA,SAAAb,KAAAI,MAEA,YADA,KAAAoC,SAAAC,QAAA,YAIA,KAAA9B,iBAAA,EACA,KAAAI,YAAA,aAAAuB,cACA,MAAAI,EAAAC,YAAA,KACA,KAAAL,YACA,KAAAvB,YAAA,aAAAuB,cACA,KAAAA,WAAA,IACAM,cAAAF,GACA,KAAA3B,YAAA,QACA,KAAAJ,iBAAA,EACA,KAAA2B,UAAA,KAEA,IAGA,EAGArB,mBAAAA,GACA,EAIAK,cAAAA,GACA,KAAAuB,MAAAC,aAAAC,SAAAC,IACAA,GAAA,KAAA5B,WACA,KAAAC,YAAA,EAEA4B,WAAA,KACA,KAAAT,SAAAU,QAAA,SACA,KAAA7B,YAAA,GAKA,OACA,KAAAD,WACA,KAAAoB,SAAAC,QAAA,YAGA,ICxPuP,I,UCQnPU,GAAY,OACd,EACA7D,EACAkC,GACA,EACA,KACA,WACA,MAIF,EAAe2B,E","sources":["webpack://abcdf/./src/views/Register.vue","webpack://abcdf/src/views/Register.vue","webpack://abcdf/./src/views/Register.vue?517e","webpack://abcdf/./src/views/Register.vue?65fd"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"register-page\"},[_vm._m(0),_c('div',{staticClass:\"form-container\"},[_c('h2',{staticClass:\"form-title\"},[_vm._v(\"注册页\")]),_c('el-form',{ref:\"registerForm\",staticClass:\"register-form\",attrs:{\"model\":_vm.form,\"rules\":_vm.rules,\"label-width\":\"80px\"}},[_c('el-form-item',{attrs:{\"label\":\"手机号码\",\"prop\":\"phone\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入手机号码\",\"clearable\":\"\",\"prefix-icon\":\"el-icon-phone\"},model:{value:(_vm.form.phone),callback:function ($$v) {_vm.$set(_vm.form, \"phone\", $$v)},expression:\"form.phone\"}})],1),_c('el-form-item',{attrs:{\"label\":\"手机验证码\",\"prop\":\"code\"}},[_c('el-input',{staticStyle:{\"width\":\"60%\"},attrs:{\"placeholder\":\"请输入验证码\",\"clearable\":\"\",\"prefix-icon\":\"el-icon-message\"},model:{value:(_vm.form.code),callback:function ($$v) {_vm.$set(_vm.form, \"code\", $$v)},expression:\"form.code\"}}),_c('el-button',{staticClass:\"code-btn\",attrs:{\"type\":\"success\",\"disabled\":_vm.codeBtnDisabled},on:{\"click\":_vm.handleGetCode}},[_vm._v(\" \"+_vm._s(_vm.codeBtnText)+\" \")])],1),_c('el-form-item',{attrs:{\"label\":\"用户名\",\"prop\":\"username\"}},[_c('el-input',{attrs:{\"placeholder\":\"账户唯一识别,可用来登录\",\"clearable\":\"\",\"prefix-icon\":\"el-icon-user\"},model:{value:(_vm.form.username),callback:function ($$v) {_vm.$set(_vm.form, \"username\", $$v)},expression:\"form.username\"}}),_c('div',{staticClass:\"form-tip\"},[_vm._v(\" 请输入4-32位字符,只能包含英文字母、数字和下划线,不能为纯数字/不能为纯下划线 \")])],1),_c('el-form-item',{attrs:{\"label\":\"设重密码\",\"prop\":\"password\"}},[_c('el-input',{attrs:{\"type\":\"password\",\"placeholder\":\"请设置登录密码\",\"clearable\":\"\",\"prefix-icon\":\"el-icon-lock\"},on:{\"input\":_vm.handlePasswordInput},model:{value:(_vm.form.password),callback:function ($$v) {_vm.$set(_vm.form, \"password\", $$v)},expression:\"form.password\"}}),_c('div',{staticClass:\"form-tip\"},[_vm._v(\" 请输入8-30位密码,密码必须同时包含字母和数字 \")])],1),_c('el-form-item',{attrs:{\"label\":\"确认密码\",\"prop\":\"confirmPassword\"}},[_c('el-input',{attrs:{\"type\":\"password\",\"placeholder\":\"请再次输入登录密码\",\"clearable\":\"\",\"prefix-icon\":\"el-icon-lock\"},model:{value:(_vm.form.confirmPassword),callback:function ($$v) {_vm.$set(_vm.form, \"confirmPassword\", $$v)},expression:\"form.confirmPassword\"}}),_c('div',{staticClass:\"form-tip\"},[_vm._v(\"请与上方填写的密码保持一致\")])],1),_c('el-form-item',[_c('el-checkbox',{staticClass:\"agreement-checkbox\",model:{value:(_vm.agreement),callback:function ($$v) {_vm.agreement=$$v},expression:\"agreement\"}},[_vm._v(\" 我已阅读并同意 \"),_c('a',{staticClass:\"protocol-link\",attrs:{\"href\":\"javascript:;\"}},[_vm._v(\"《用户注册协议》\")]),_vm._v(\" 《\"),_c('a',{staticClass:\"protocol-link\",attrs:{\"href\":\"javascript:;\"}},[_vm._v(\"隐私协议\")]),_vm._v(\"》 \")])],1),_c('el-form-item',[_c('el-button',{staticClass:\"register-btn\",attrs:{\"type\":\"primary\",\"disabled\":!_vm.agreement || _vm.submitting},on:{\"click\":_vm.handleRegister}},[_vm._v(\" \"+_vm._s(_vm.submitting ? \"注册中...\" : \"立即注册\")+\" \")])],1),(false)?_c('div',{staticClass:\"bottom-tip\"},[_vm._v(\" 如需注册供应商请点击 \"),_c('a',{staticClass:\"supplier-link\",attrs:{\"href\":\"javascript:;\"}},[_vm._v(\"这里\")])]):_vm._e()],1)],1)])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"header\"},[_c('div',{staticClass:\"logo-area\"},[_c('img',{staticClass:\"logo-img\",attrs:{\"src\":require(\"@/assets/logo.png\"),\"alt\":\"logo\"}}),_c('span',{staticClass:\"domain\"},[_vm._v(\"yunming.com\")])]),_c('div',{staticClass:\"hotline\"},[_vm._v(\"400-123-4xxx\")])])\n}]\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Register.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Register.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Register.vue?vue&type=template&id=54891a54&scoped=true\"\nimport script from \"./Register.vue?vue&type=script&lang=js\"\nexport * from \"./Register.vue?vue&type=script&lang=js\"\nimport style0 from \"./Register.vue?vue&type=style&index=0&id=54891a54&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"54891a54\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","_m","_v","ref","attrs","form","rules","model","value","phone","callback","$$v","$set","expression","staticStyle","code","codeBtnDisabled","on","handleGetCode","_s","codeBtnText","username","handlePasswordInput","password","confirmPassword","agreement","submitting","handleRegister","_e","staticRenderFns","require","name","data","validatePassword","rule","test","Error","validateUsername","required","message","trigger","pattern","validator","countdown","methods","$message","warning","timer","setInterval","clearInterval","$refs","registerForm","validate","valid","setTimeout","success","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/561.b0e1e346.js b/dist/js/561.b0e1e346.js deleted file mode 100644 index 45eec2e..0000000 --- a/dist/js/561.b0e1e346.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[561],{5561:function(e,s,a){a.r(s),a.d(s,{default:function(){return o}});var t=function(){var e=this,s=e._self._c;return s("div",{staticClass:"bg"},[s("el-card",{staticStyle:{width:"100%"}},[s("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[s("span",[e._v("收货地址")]),s("el-button",{staticStyle:{float:"right"},attrs:{size:"small",type:"primary"},on:{click:function(s){return e.openDialog("add",{})}}},[e._v("新增地址")])],1),s("el-table",{staticStyle:{width:"100%"},attrs:{data:e.addresses,border:""}},[s("el-table-column",{attrs:{prop:"receiver",label:"收货人",width:"120"}}),s("el-table-column",{attrs:{prop:"region",label:"所在地区",width:"120"}}),s("el-table-column",{attrs:{prop:"detailAddress",label:"详细地址",width:"300"}}),s("el-table-column",{attrs:{prop:"phone",label:"手机号码",width:"150"}}),s("el-table-column",{attrs:{prop:"fixedPhone",label:"固定电话",width:"150"}}),s("el-table-column",{attrs:{prop:"alias",label:"地区别名",width:"120"}}),s("el-table-column",{attrs:{label:"操作",width:"200"},scopedSlots:e._u([{key:"default",fn:function(a){return[s("el-button",{attrs:{size:"mini"},on:{click:function(s){return e.handleEdit(a.row)}}},[e._v("编辑")]),s("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(s){return e.handleDelete(a.row)}}},[e._v("删除")])]}}])})],1),s("div",{staticStyle:{"text-align":"right","margin-top":"20px"}},[s("el-pagination",{attrs:{"current-page":e.searchParam.currentPage,"page-sizes":[5,10,20],"page-size":e.searchParam.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.searchParam.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1),s("el-dialog",{attrs:{title:("add"===e.address.type?"新增":"编辑")+"收货地址",visible:e.dialogVisible,width:"700px"},on:{"update:visible":function(s){e.dialogVisible=s}}},[s("el-form",{attrs:{model:e.address,"label-width":"100px",size:"small"}},[s("el-form-item",{attrs:{label:"*收货人"}},[s("el-input",{attrs:{placeholder:"请填写收货人姓名,限制40个字符"},model:{value:e.address.receiver,callback:function(s){e.$set(e.address,"receiver",s)},expression:"address.receiver"}})],1),s("el-form-item",{attrs:{label:"*所在地区"}},[s("el-select",{attrs:{placeholder:"请选择所在地区"},model:{value:e.address.region,callback:function(s){e.$set(e.address,"region",s)},expression:"address.region"}},[s("el-option",{attrs:{label:"北京",value:"北京"}}),s("el-option",{attrs:{label:"上海",value:"上海"}}),s("el-option",{attrs:{label:"广州",value:"广州"}}),s("el-option",{attrs:{label:"深圳",value:"深圳"}})],1)],1),s("el-form-item",{attrs:{label:"*详细地址"}},[s("el-input",{attrs:{placeholder:"请填写详细地址,限制500个字符"},model:{value:e.address.detailAddress,callback:function(s){e.$set(e.address,"detailAddress",s)},expression:"address.detailAddress"}})],1),s("el-form-item",{attrs:{label:"*手机号码"}},[s("el-input",{attrs:{placeholder:"请填写手机号码,限制11位数字"},model:{value:e.address.phone,callback:function(s){e.$set(e.address,"phone",s)},expression:"address.phone"}})],1),s("el-form-item",{attrs:{label:"固定电话"}},[s("el-input",{attrs:{placeholder:"请填写固定号码,限制40个字符"},model:{value:e.address.fixedPhone,callback:function(s){e.$set(e.address,"fixedPhone",s)},expression:"address.fixedPhone"}})],1),s("el-form-item",{attrs:{label:"地区别名"}},[s("el-input",{attrs:{placeholder:"请填写常用名称,限制40个字符"},model:{value:e.address.alias,callback:function(s){e.$set(e.address,"alias",s)},expression:"address.alias"}})],1)],1),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{attrs:{size:"small"},on:{click:function(s){e.dialogVisible=!1}}},[e._v("取消")]),s("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.saveAddress}},[e._v("保存")])],1)],1)],1)},l=[],i=(a(4114),{name:"UserInfo",data(){return{user:{},searchParam:{pageSize:5,currentPage:1,total:10},dialogVisible:!1,addresses:[{id:1,receiver:"张三",region:"北京",detailAddress:"北京市朝阳区xx街道xx小区xx号楼xx单元",phone:"13800138000",fixedPhone:"010-12345678",alias:"家"},{id:2,receiver:"李四",region:"上海",detailAddress:"上海市浦东新区xx街道xx小区xx号楼xx单元",phone:"13900139000",fixedPhone:"021-12345678",alias:"公司"},{id:3,receiver:"王五",region:"广州",detailAddress:"广州市天河区xx街道xx小区xx号楼xx单元",phone:"13700137000",fixedPhone:"020-12345678",alias:"朋友家"}],address:{type:"add",id:"",receiver:"",region:"",detailAddress:"",phone:"",fixedPhone:"",alias:""}}},methods:{handleSizeChange(e){this.searchParam.pageSize=e},handleCurrentChange(e){this.searchParam.currentPage=e},openDialog(e,s){this.address={type:e,id:s.id||"",receiver:s.receiver||"",region:s.region||"",detailAddress:s.detailAddress||"",phone:s.phone||"",fixedPhone:s.fixedPhone||"",alias:s.alias||""},this.dialogVisible=!0},saveAddress(){if(this.address.id){const e=this.addresses.findIndex(e=>e.id===this.address.id);-1!==e&&(this.addresses[e]={...this.address})}else this.address.id=Date.now(),this.addresses.push({...this.address});this.$message({message:"保存成功",type:"success"}),this.dialogVisible=!1},handleEdit(e){this.address={...e},this.dialogVisible=!0},handleDelete(e){this.$confirm("此操作将永久删除该地址, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const s=this.addresses.findIndex(s=>s.id===e.id);-1!==s&&this.addresses.splice(s,1),this.$message({type:"success",message:"删除成功!"})}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}}),r=i,d=a(1656),n=(0,d.A)(r,t,l,!1,null,"4ff704a1",null),o=n.exports}}]); -//# sourceMappingURL=561.b0e1e346.js.map \ No newline at end of file diff --git a/dist/js/561.b0e1e346.js.map b/dist/js/561.b0e1e346.js.map deleted file mode 100644 index b028da5..0000000 --- a/dist/js/561.b0e1e346.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/561.b0e1e346.js","mappings":"sJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MA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AAA,GACA,QAAAf,QAAAoB,GAAA,CAEA,MAAAI,EAAA,KAAAvC,UAAAwC,UAAAF,GAAAA,EAAAH,KAAA,KAAApB,QAAAoB,KACA,IAAAI,IACA,KAAAvC,UAAAuC,GAAA,SAAAxB,SAEA,MAEA,KAAAA,QAAAoB,GAAAM,KAAAC,MACA,KAAA1C,UAAA2C,KAAA,SAAA5B,UAEA,KAAA6B,SAAA,CACAC,QAAA,OACA7B,KAAA,YAEA,KAAAC,eAAA,CACA,EACAX,UAAAA,CAAAC,GACA,KAAAQ,QAAA,IAAAR,GACA,KAAAU,eAAA,CACA,EACAT,YAAAA,CAAAD,GACA,KAAAuC,SAAA,2BACAC,kBAAA,KACAC,iBAAA,KACAhC,KAAA,YACAiC,KAAA,KACA,MAAAV,EAAA,KAAAvC,UAAAwC,UAAAF,GAAAA,EAAAH,KAAA5B,EAAA4B,KACA,IAAAI,GACA,KAAAvC,UAAAkD,OAAAX,EAAA,GAEA,KAAAK,SAAA,CACA5B,KAAA,UACA6B,QAAA,YAEAM,MAAA,KACA,KAAAP,SAAA,CACA5B,KAAA,OACA6B,QAAA,WAGA,KC7LmQ,I,UCO/PO,GAAY,OACd,EACAjE,EACA4C,GACA,EACA,KACA,WACA,MAIF,EAAeqB,E","sources":["webpack://abcdf/./src/views/User/UserAddress.vue","webpack://abcdf/src/views/User/UserAddress.vue","webpack://abcdf/./src/views/User/UserAddress.vue?e7fa","webpack://abcdf/./src/views/User/UserAddress.vue?5d77"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg\"},[_c('el-card',{staticStyle:{\"width\":\"100%\"}},[_c('div',{staticClass:\"clearfix\",attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('span',[_vm._v(\"收货地址\")]),_c('el-button',{staticStyle:{\"float\":\"right\"},attrs:{\"size\":\"small\",\"type\":\"primary\"},on:{\"click\":function($event){return _vm.openDialog('add', {})}}},[_vm._v(\"新增地址\")])],1),_c('el-table',{staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.addresses,\"border\":\"\"}},[_c('el-table-column',{attrs:{\"prop\":\"receiver\",\"label\":\"收货人\",\"width\":\"120\"}}),_c('el-table-column',{attrs:{\"prop\":\"region\",\"label\":\"所在地区\",\"width\":\"120\"}}),_c('el-table-column',{attrs:{\"prop\":\"detailAddress\",\"label\":\"详细地址\",\"width\":\"300\"}}),_c('el-table-column',{attrs:{\"prop\":\"phone\",\"label\":\"手机号码\",\"width\":\"150\"}}),_c('el-table-column',{attrs:{\"prop\":\"fixedPhone\",\"label\":\"固定电话\",\"width\":\"150\"}}),_c('el-table-column',{attrs:{\"prop\":\"alias\",\"label\":\"地区别名\",\"width\":\"120\"}}),_c('el-table-column',{attrs:{\"label\":\"操作\",\"width\":\"200\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.handleEdit(scope.row)}}},[_vm._v(\"编辑\")]),_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){return _vm.handleDelete(scope.row)}}},[_vm._v(\"删除\")])]}}])})],1),_c('div',{staticStyle:{\"text-align\":\"right\",\"margin-top\":\"20px\"}},[_c('el-pagination',{attrs:{\"current-page\":_vm.searchParam.currentPage,\"page-sizes\":[5, 10, 20],\"page-size\":_vm.searchParam.pageSize,\"layout\":\"total, sizes, prev, pager, next, jumper\",\"total\":_vm.searchParam.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1)],1),_c('el-dialog',{attrs:{\"title\":`${_vm.address.type === 'add' ? '新增' : '编辑'}收货地址`,\"visible\":_vm.dialogVisible,\"width\":\"700px\"},on:{\"update:visible\":function($event){_vm.dialogVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.address,\"label-width\":\"100px\",\"size\":\"small\"}},[_c('el-form-item',{attrs:{\"label\":\"*收货人\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写收货人姓名,限制40个字符\"},model:{value:(_vm.address.receiver),callback:function ($$v) {_vm.$set(_vm.address, \"receiver\", $$v)},expression:\"address.receiver\"}})],1),_c('el-form-item',{attrs:{\"label\":\"*所在地区\"}},[_c('el-select',{attrs:{\"placeholder\":\"请选择所在地区\"},model:{value:(_vm.address.region),callback:function ($$v) {_vm.$set(_vm.address, \"region\", $$v)},expression:\"address.region\"}},[_c('el-option',{attrs:{\"label\":\"北京\",\"value\":\"北京\"}}),_c('el-option',{attrs:{\"label\":\"上海\",\"value\":\"上海\"}}),_c('el-option',{attrs:{\"label\":\"广州\",\"value\":\"广州\"}}),_c('el-option',{attrs:{\"label\":\"深圳\",\"value\":\"深圳\"}})],1)],1),_c('el-form-item',{attrs:{\"label\":\"*详细地址\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写详细地址,限制500个字符\"},model:{value:(_vm.address.detailAddress),callback:function ($$v) {_vm.$set(_vm.address, \"detailAddress\", $$v)},expression:\"address.detailAddress\"}})],1),_c('el-form-item',{attrs:{\"label\":\"*手机号码\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写手机号码,限制11位数字\"},model:{value:(_vm.address.phone),callback:function ($$v) {_vm.$set(_vm.address, \"phone\", $$v)},expression:\"address.phone\"}})],1),_c('el-form-item',{attrs:{\"label\":\"固定电话\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写固定号码,限制40个字符\"},model:{value:(_vm.address.fixedPhone),callback:function ($$v) {_vm.$set(_vm.address, \"fixedPhone\", $$v)},expression:\"address.fixedPhone\"}})],1),_c('el-form-item',{attrs:{\"label\":\"地区别名\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写常用名称,限制40个字符\"},model:{value:(_vm.address.alias),callback:function ($$v) {_vm.$set(_vm.address, \"alias\", $$v)},expression:\"address.alias\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"size\":\"small\"},on:{\"click\":function($event){_vm.dialogVisible = false}}},[_vm._v(\"取消\")]),_c('el-button',{attrs:{\"size\":\"small\",\"type\":\"primary\"},on:{\"click\":_vm.saveAddress}},[_vm._v(\"保存\")])],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./UserAddress.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./UserAddress.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./UserAddress.vue?vue&type=template&id=4ff704a1&scoped=true\"\nimport script from \"./UserAddress.vue?vue&type=script&lang=js\"\nexport * from \"./UserAddress.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4ff704a1\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","staticStyle","attrs","slot","_v","on","$event","openDialog","addresses","scopedSlots","_u","key","fn","scope","handleEdit","row","handleDelete","searchParam","currentPage","pageSize","total","handleSizeChange","handleCurrentChange","address","type","dialogVisible","model","value","receiver","callback","$$v","$set","expression","region","detailAddress","phone","fixedPhone","alias","saveAddress","staticRenderFns","name","data","user","id","methods","val","item","index","findIndex","Date","now","push","$message","message","$confirm","confirmButtonText","cancelButtonText","then","splice","catch","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/581.b9f47383.js b/dist/js/581.b9f47383.js deleted file mode 100644 index f44638c..0000000 --- a/dist/js/581.b9f47383.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[581],{3581:function(t,e,i){i.r(e),i.d(e,{default:function(){return g}});var s=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"product-detail-container"},[e("div",{staticClass:"left-section"},[e("el-carousel",{ref:"carousel",staticClass:"product-carousel",attrs:{height:"500px","indicator-position":"none"},on:{change:t.handleCarouselChange}},t._l(t.productImages,function(t,i){return e("el-carousel-item",{key:i},[e("img",{staticClass:"carousel-img",attrs:{src:t,alt:`商品图片${i+1}`}})])}),1),e("div",{staticClass:"hint-text"},[t._v(" 温馨提示:以上图片仅供参考,若图片与实物有所不同,则以实物为准。 ")]),e("div",{staticClass:"image-indicators"},t._l(t.productImages,function(i,s){return e("div",{key:s,staticClass:"indicator-item",class:{active:t.activeIndex===s},on:{click:function(e){return t.handleIndicatorClick(s)}}},[e("img",{staticClass:"indicator-img",attrs:{src:i,alt:`缩略图${s+1}`}})])}),0)],1),e("div",{staticClass:"right-section"},[e("h2",{staticClass:"product-title"},[t._v(" "+t._s(t.productTitle)+" "),e("span",{staticClass:"product-count"},[t._v("["+t._s(t.productCount)+"]")])]),e("div",{staticClass:"product-tags"},[e("el-tag",{attrs:{type:"info",size:"mini"}},[t._v("[产品标签]")]),e("span",{staticClass:"subtitle"},[t._v(t._s(t.productSubtitle))])],1),e("div",{staticClass:"price-info"},[e("span",{staticClass:"price-label"},[t._v("售价")]),e("span",{staticClass:"price-amount"},[t._v("¥"+t._s(t.productPrice))]),e("span",{staticClass:"sales-volume"},[t._v("已售 "+t._s(t.salesVolume)+"万")])]),e("div",{staticClass:"product-attr"},[e("div",{staticClass:"attr-item"},[e("span",{staticClass:"attr-label"},[t._v("起订量")]),e("span",{staticClass:"attr-value"},[t._v(t._s(t.moq))])]),e("div",{staticClass:"attr-item"},[e("span",{staticClass:"attr-label"},[t._v("收货方式")]),e("span",{staticClass:"attr-value"},[t._v(t._s(t.deliveryMethod))])]),e("div",{staticClass:"attr-item spec-group"},[e("span",{staticClass:"attr-label"},[t._v("商品规格")]),e("div",{staticClass:"custom-radio-group"},t._l(t.productSpecs,function(i,s){return e("label",{key:s,staticClass:"custom-radio",class:{"is-checked":t.selectedSpec===i},on:{click:function(e){t.selectedSpec=i}}},[e("span",{staticClass:"radio-text"},[t._v(t._s(i))])])}),0)]),e("div",{staticClass:"attr-item"},[e("span",{staticClass:"attr-label"},[t._v("发货地")]),e("span",{staticClass:"attr-value"},[t._v(t._s(t.origin))])]),e("div",{staticClass:"attr-item"},[e("span",{staticClass:"attr-label"},[t._v("其他")]),e("span",{staticClass:"attr-value"},[t._v(t._s(t.otherInfo))])]),e("div",{staticClass:"attr-item"},[e("span",{staticClass:"attr-label"},[t._v("配送范围")]),e("span",{staticClass:"attr-value"},[t._v(t._s(t.deliveryRange))])])]),e("div",{staticClass:"quantity-control"},[e("el-button",{attrs:{icon:"el-icon-minus",circle:""},on:{click:t.decreaseQuantity}}),e("span",{staticClass:"quantity-value"},[t._v(t._s(t.quantity))]),e("el-button",{attrs:{icon:"el-icon-plus",circle:""},on:{click:t.increaseQuantity}}),e("el-button",{staticClass:"buy-btn",attrs:{type:"primary"}},[t._v("一口价购买")]),e("el-button",{staticClass:"cart-btn",attrs:{type:"success"}},[t._v("加入购物车")]),e("el-button",{staticClass:"bargain-btn",attrs:{type:"info"}},[t._v("议价")]),e("el-button",{staticClass:"share-btn",attrs:{icon:"el-icon-share",circle:""},on:{click:t.handleShare}})],1)])]),e("div",{staticClass:"product-bottom"},[e("div",{staticClass:"hot-recommend-sidebar"},[e("div",{staticClass:"hot-title"},[t._v("热销推荐")]),t._l(t.hotRecommendData,function(i,s){return e("div",{key:s,staticClass:"product-item"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:i.imgUrl,expression:"item.imgUrl"}],attrs:{alt:""}}),e("div",{staticClass:"product-name"},[t._v(t._s(i.title))]),e("div",{staticClass:"product-price"},[t._v("¥"+t._s(i.price))])])})],2),e("div",{staticClass:"product-right"},[e("div",{staticClass:"product-tabs"},[e("span",{class:["tab-item",{active:!t.tabIndex}],on:{click:function(e){t.tabIndex=0}}},[t._v("商品详情")]),e("span",{class:["tab-item",{active:t.tabIndex}],on:{click:function(e){t.tabIndex=1}}},[t._v("商品评价(125)")])]),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.tabIndex,expression:"!tabIndex"}],staticClass:"product-detail-main"}),e("Evaluate",{directives:[{name:"show",rawName:"v-show",value:t.tabIndex,expression:"tabIndex"}]})],1)])])},a=[],r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"product-review-section"},[e("div",{staticClass:"review-header"},[e("div",{staticClass:"rating-box"},[e("div",{staticClass:"rating-score"},[t._v(t._s(t.averageScore)+" 分")]),e("div",{staticClass:"rating-text"},[t._v("综合评分 (共 "+t._s(t.totalReviews)+" 条)")])]),e("div",{staticClass:"filter-tabs"},[e("div",{staticClass:"tab-item",class:{active:"all"===t.activeFilter},on:{click:function(e){return t.handleFilterChange("all")}}},[t._v(" 全部("+t._s(t.totalReviews)+") ")]),e("div",{staticClass:"tab-item",class:{active:"image"===t.activeFilter},on:{click:function(e){return t.handleFilterChange("image")}}},[t._v(" 有图("+t._s(t.hasImageCount)+") ")]),e("div",{staticClass:"tab-item",class:{active:"good"===t.activeFilter},on:{click:function(e){return t.handleFilterChange("good")}}},[t._v(" 好评("+t._s(t.goodReviewsCount)+") ")]),e("div",{staticClass:"tab-item",class:{active:"medium"===t.activeFilter},on:{click:function(e){return t.handleFilterChange("medium")}}},[t._v(" 中评("+t._s(t.mediumReviewsCount)+") ")]),e("div",{staticClass:"tab-item",class:{active:"bad"===t.activeFilter},on:{click:function(e){return t.handleFilterChange("bad")}}},[t._v(" 差评("+t._s(t.badReviewsCount)+") ")])])]),e("div",{staticClass:"review-list"},[t._l(t.currentPageReviews,function(i,s){return e("div",{key:i.id,staticClass:"review-item"},[e("div",{staticClass:"user-info"},[e("img",{staticClass:"avatar",attrs:{src:i.avatar,alt:i.userName+"的头像"}}),e("div",{staticClass:"user-name"},[t._v(t._s(i.userName))]),e("div",{staticClass:"rating-stars"},t._l(5,function(s){return e("span",{key:s},[t._v(" "+t._s(s<=i.rating?"★":"☆")+" ")])}),0)]),e("div",{staticClass:"review-content",class:{empty:!i.content}},[t._v(" "+t._s(i.content||"该用户没有填写评价内容")+" ")]),i.images&&i.images.length?e("div",{staticClass:"review-images"},t._l(i.images,function(s,a){return e("img",{key:a,attrs:{src:s,alt:`${i.userName}的评价图片${a+1}`},on:{click:function(e){return t.openPreview(i.images,a)}}})}),0):t._e(),e("div",{staticClass:"review-time"},[t._v(t._s(i.time))])])}),0===t.filteredReviews.length?e("div",{staticClass:"empty-state"},[e("el-empty",{attrs:{description:"暂无符合条件的评价"}})],1):t._e()],2),t.filteredReviews.length>0?e("div",{staticClass:"pagination-container"},[e("el-pagination",{attrs:{"current-page":t.currentPage,"page-sizes":[5,10,20],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.filteredReviews.length},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e(),e("el-dialog",{attrs:{visible:t.previewVisible,modal:!0,title:`查看图片 ${t.previewIndex+1}/${t.previewImages.length}`,width:"80%",height:"80%","custom-class":"image-preview-dialog","close-on-click-modal":!0},on:{"update:visible":function(e){t.previewVisible=e}}},[e("div",{staticClass:"preview-container"},[e("el-button",{staticClass:"preview-btn prev-btn",attrs:{icon:"el-icon-arrow-left",circle:"",disabled:0===t.previewIndex},on:{click:function(e){return t.changePreview("prev")}}}),e("div",{staticClass:"preview-img-wrapper"},[e("img",{staticClass:"preview-img",attrs:{src:t.previewImages[t.previewIndex],alt:`预览图片 ${t.previewIndex+1}`}})]),e("el-button",{staticClass:"preview-btn next-btn",attrs:{icon:"el-icon-arrow-right",circle:"",disabled:t.previewIndex===t.previewImages.length-1},on:{click:function(e){return t.changePreview("next")}}})],1)])],1)},n=[],c=(i(8111),i(2489),i(8237),i(9143)),l={name:"ProductReviews",components:{ElEmpty:c.Empty,ElPagination:c.Pagination},data(){return{activeFilter:"all",currentPage:1,pageSize:10,reviews:[{id:1,userName:"张**",avatar:"https://picsum.photos/id/64/40/40",rating:5,content:"商品质量很好,超出预期,非常满意的一次购物体验!包装很用心,完全没有损坏,会回购的。",images:["https://picsum.photos/id/26/80/80","https://picsum.photos/id/292/80/80"],time:"2023-10-15 14:30:22"},{id:2,userName:"李**",avatar:"https://picsum.photos/id/65/40/40",rating:4,content:"总体不错,就是物流有点慢,其他都还好,给个四星吧",images:[],time:"2023-10-14 09:15:47"},{id:3,userName:"王**",avatar:"https://picsum.photos/id/66/40/40",rating:5,content:"",images:["https://picsum.photos/id/431/80/80"],time:"2023-10-13 20:45:11"},{id:4,userName:"赵**",avatar:"https://picsum.photos/id/67/40/40",rating:2,content:"不太满意,和描述的有点差距,希望商家能改进",images:[],time:"2023-10-12 16:20:33"},{id:5,userName:"陈**",avatar:"https://picsum.photos/id/68/40/40",rating:5,content:"第二次购买了,品质一如既往的好,推荐给大家!",images:["https://picsum.photos/id/102/80/80","https://picsum.photos/id/103/80/80","https://picsum.photos/id/104/80/80"],time:"2023-10-11 11:05:59"},{id:6,userName:"刘**",avatar:"https://picsum.photos/id/69/40/40",rating:3,content:"一般般吧,没有特别惊艳的地方,价格还算合理",images:[],time:"2023-10-10 18:30:15"},{id:7,userName:"黄**",avatar:"https://picsum.photos/id/70/40/40",rating:5,content:"包装精美,送礼自用都合适,性价比很高",images:["https://picsum.photos/id/105/80/80"],time:"2023-10-09 08:45:27"},{id:8,userName:"周**",avatar:"https://picsum.photos/id/71/40/40",rating:4,content:"东西不错,物流很快,客服态度也好",images:["https://picsum.photos/id/106/80/80"],time:"2023-10-08 15:22:10"},{id:9,userName:"吴**",avatar:"https://picsum.photos/id/72/40/40",rating:5,content:"非常满意,推荐购买!",images:[],time:"2023-10-07 10:15:33"},{id:10,userName:"郑**",avatar:"https://picsum.photos/id/73/40/40",rating:1,content:"很差的购物体验,不会再买了",images:[],time:"2023-10-06 19:40:25"},{id:11,userName:"孙**",avatar:"https://picsum.photos/id/74/40/40",rating:5,content:"质量很好,和图片描述一致,值得购买",images:["https://picsum.photos/id/107/80/80","https://picsum.photos/id/108/80/80"],time:"2023-10-05 09:20:18"},{id:12,userName:"徐**",avatar:"https://picsum.photos/id/75/40/40",rating:4,content:"不错的商品,推荐给朋友了",images:[],time:"2023-10-04 16:50:47"},{id:13,userName:"马**",avatar:"https://picsum.photos/id/76/40/40",rating:5,content:"很好用,已经回购多次",images:["https://picsum.photos/id/109/80/80"],time:"2023-10-03 14:30:55"},{id:14,userName:"朱**",avatar:"https://picsum.photos/id/77/40/40",rating:3,content:"还行吧,没有想象中好",images:[],time:"2023-10-02 11:15:32"},{id:15,userName:"胡**",avatar:"https://picsum.photos/id/78/40/40",rating:5,content:"非常满意的一次购物,五星推荐!",images:["https://picsum.photos/id/110/80/80","https://picsum.photos/id/111/80/80"],time:"2023-10-01 08:40:17"}],previewVisible:!1,previewImages:[],previewIndex:0}},computed:{totalReviews(){return this.reviews.length},hasImageCount(){return this.reviews.filter(t=>t.images&&t.images.length).length},goodReviewsCount(){return this.reviews.filter(t=>t.rating>=4).length},mediumReviewsCount(){return this.reviews.filter(t=>3===t.rating).length},badReviewsCount(){return this.reviews.filter(t=>t.rating<=2).length},averageScore(){const t=this.reviews.reduce((t,e)=>t+e.rating,0);return(t/this.totalReviews).toFixed(1)},filteredReviews(){let t=[...this.reviews];switch(this.activeFilter){case"image":t=t.filter(t=>t.images&&t.images.length);break;case"good":t=t.filter(t=>t.rating>=4);break;case"medium":t=t.filter(t=>3===t.rating);break;case"bad":t=t.filter(t=>t.rating<=2);break;default:break}return t},currentPageReviews(){const t=(this.currentPage-1)*this.pageSize,e=t+this.pageSize;return this.filteredReviews.slice(t,e)}},methods:{handleFilterChange(t){this.activeFilter=t,this.currentPage=1},handleSizeChange(t){this.pageSize=t,this.currentPage=1},handleCurrentChange(t){this.currentPage=t,document.querySelector(".review-list").scrollIntoView({behavior:"smooth"})},openPreview(t,e){this.previewImages=t,this.previewIndex=e,this.previewVisible=!0},changePreview(t){"prev"===t&&this.previewIndex>0?this.previewIndex--:"next"===t&&this.previewIndex{document.querySelector(".el-dialog__title").textContent=`查看图片 ${this.previewIndex+1}/${this.previewImages.length}`})}}},o=l,d=i(1656),p=(0,d.A)(o,r,n,!1,null,"3412a0b2",null),u=p.exports,v={name:"ProductDetail",components:{Evaluate:u},data(){return{productImages:["https://picsum.photos/id/102/500/500","https://picsum.photos/id/103/500/500","https://picsum.photos/id/104/500/500","https://picsum.photos/id/105/500/500"],activeIndex:0,productTitle:"面包",productCount:"52个",productSubtitle:"副标题",productPrice:509,salesVolume:1.22,moq:1,deliveryMethod:"邮寄",productSpecs:["规格一","规格二","规格三","规格四","规格五"],selectedSpec:"规格一",origin:"江苏省苏州市吴中区",otherInfo:"下单填写留言,即免费赠送精美贺卡!",deliveryRange:"全国(可配送至全国1000多个城市,苏州市区内免配送费)",quantity:1,hotRecommendData:[{id:1,imgUrl:"https://picsum.photos/id/103/500/500",title:"北欧花艺素雅仿真花",price:359},{id:2,imgUrl:"https://picsum.photos/id/103/500/500",title:"生日玫瑰鲜花",price:359},{id:3,imgUrl:"https://picsum.photos/id/103/500/500",title:"香雪兰小苍兰鲜花",price:359},{id:4,imgUrl:"https://picsum.photos/id/103/500/500",title:"现代创意简约仿真花艺",price:359}],tabIndex:0}},methods:{handleCarouselChange(t){this.activeIndex=t},handleIndicatorClick(t){this.activeIndex=t,this.$nextTick(()=>{this.$refs.carousel&&this.$refs.carousel.setActiveItem(t)})},decreaseQuantity(){this.quantity>1&&this.quantity--},increaseQuantity(){this.quantity++},handleShare(){this.$message.info("分享功能待实现")}},mounted(){this.$refs.carousel||console.warn("轮播组件未正确加载,请检查ref属性是否设置")}},m=v,h=(0,d.A)(m,s,a,!1,null,"61588775",null),g=h.exports}}]); -//# sourceMappingURL=581.b9f47383.js.map \ No newline at end of file diff --git a/dist/js/581.b9f47383.js.map b/dist/js/581.b9f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KACA,WACA,MAIF,EAAeA,E,QCiJf,GACApE,KAAA,gBACAyC,WAAA,CACA4B,SAAAA,GAEAvB,IAAAA,GACA,OACA9E,cAAA,CACA,uCACA,uCACA,uCACA,wCAEAO,YAAA,EACAI,aAAA,KACAC,aAAA,MACAC,gBAAA,MACAC,aAAA,IACAC,YAAA,KACAC,IAAA,EACAC,eAAA,KACAC,aAAA,gCACAG,aAAA,MACAC,OAAA,YACAC,UAAA,oBACAC,cAAA,+BACAE,SAAA,EACAG,iBAAA,CACA,CACAsB,GAAA,EACAhB,OAAA,uCACAE,MAAA,YACAC,MAAA,KAEA,CACAa,GAAA,EACAhB,OAAA,uCACAE,MAAA,SACAC,MAAA,KAEA,CACAa,GAAA,EACAhB,OAAA,uCACAE,MAAA,WACAC,MAAA,KAEA,CACAa,GAAA,EACAhB,OAAA,uCACAE,MAAA,aACAC,MAAA,MAGAC,SAAA,EAEA,EACAmD,QAAA,CAEA5F,oBAAAA,CAAAI,GACA,KAAAK,YAAAL,CACA,EAGAO,oBAAAA,CAAAP,GAEA,KAAAK,YAAAL,EAGA,KAAAgG,UAAA,KACA,KAAAI,MAAAC,UAEA,KAAAD,MAAAC,SAAAC,cAAAtG,IAGA,EAEAuB,gBAAAA,GACA,KAAAC,SAAA,GACA,KAAAA,UAEA,EAEAC,gBAAAA,GACA,KAAAD,UACA,EAEAE,WAAAA,GACA,KAAA6E,SAAAC,KAAA,UACA,GAEAC,OAAAA,GAEA,KAAAL,MAAAC,UACAK,QAAAC,KAAA,yBAEA,GCnQ6P,ICQzP,GAAY,OACd,EACAxH,EACAmD,GACA,EACA,KACA,WACA,MAIF,EAAe,E","sources":["webpack://abcdf/./src/views/Detail/Index.vue","webpack://abcdf/./src/components/product/Evaluate.vue","webpack://abcdf/src/components/product/Evaluate.vue","webpack://abcdf/./src/components/product/Evaluate.vue?9dbf","webpack://abcdf/./src/components/product/Evaluate.vue?9ce1","webpack://abcdf/src/views/Detail/Index.vue","webpack://abcdf/./src/views/Detail/Index.vue?1ab6","webpack://abcdf/./src/views/Detail/Index.vue?db7a"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{staticClass:\"product-detail-container\"},[_c('div',{staticClass:\"left-section\"},[_c('el-carousel',{ref:\"carousel\",staticClass:\"product-carousel\",attrs:{\"height\":\"500px\",\"indicator-position\":\"none\"},on:{\"change\":_vm.handleCarouselChange}},_vm._l((_vm.productImages),function(img,index){return _c('el-carousel-item',{key:index},[_c('img',{staticClass:\"carousel-img\",attrs:{\"src\":img,\"alt\":`商品图片${index + 1}`}})])}),1),_c('div',{staticClass:\"hint-text\"},[_vm._v(\" 温馨提示:以上图片仅供参考,若图片与实物有所不同,则以实物为准。 \")]),_c('div',{staticClass:\"image-indicators\"},_vm._l((_vm.productImages),function(img,index){return _c('div',{key:index,staticClass:\"indicator-item\",class:{ active: _vm.activeIndex === index },on:{\"click\":function($event){return _vm.handleIndicatorClick(index)}}},[_c('img',{staticClass:\"indicator-img\",attrs:{\"src\":img,\"alt\":`缩略图${index + 1}`}})])}),0)],1),_c('div',{staticClass:\"right-section\"},[_c('h2',{staticClass:\"product-title\"},[_vm._v(\" \"+_vm._s(_vm.productTitle)+\" \"),_c('span',{staticClass:\"product-count\"},[_vm._v(\"[\"+_vm._s(_vm.productCount)+\"]\")])]),_c('div',{staticClass:\"product-tags\"},[_c('el-tag',{attrs:{\"type\":\"info\",\"size\":\"mini\"}},[_vm._v(\"[产品标签]\")]),_c('span',{staticClass:\"subtitle\"},[_vm._v(_vm._s(_vm.productSubtitle))])],1),_c('div',{staticClass:\"price-info\"},[_c('span',{staticClass:\"price-label\"},[_vm._v(\"售价\")]),_c('span',{staticClass:\"price-amount\"},[_vm._v(\"¥\"+_vm._s(_vm.productPrice))]),_c('span',{staticClass:\"sales-volume\"},[_vm._v(\"已售 \"+_vm._s(_vm.salesVolume)+\"万\")])]),_c('div',{staticClass:\"product-attr\"},[_c('div',{staticClass:\"attr-item\"},[_c('span',{staticClass:\"attr-label\"},[_vm._v(\"起订量\")]),_c('span',{staticClass:\"attr-value\"},[_vm._v(_vm._s(_vm.moq))])]),_c('div',{staticClass:\"attr-item\"},[_c('span',{staticClass:\"attr-label\"},[_vm._v(\"收货方式\")]),_c('span',{staticClass:\"attr-value\"},[_vm._v(_vm._s(_vm.deliveryMethod))])]),_c('div',{staticClass:\"attr-item spec-group\"},[_c('span',{staticClass:\"attr-label\"},[_vm._v(\"商品规格\")]),_c('div',{staticClass:\"custom-radio-group\"},_vm._l((_vm.productSpecs),function(spec,idx){return _c('label',{key:idx,staticClass:\"custom-radio\",class:{ 'is-checked': _vm.selectedSpec === spec },on:{\"click\":function($event){_vm.selectedSpec = spec}}},[_c('span',{staticClass:\"radio-text\"},[_vm._v(_vm._s(spec))])])}),0)]),_c('div',{staticClass:\"attr-item\"},[_c('span',{staticClass:\"attr-label\"},[_vm._v(\"发货地\")]),_c('span',{staticClass:\"attr-value\"},[_vm._v(_vm._s(_vm.origin))])]),_c('div',{staticClass:\"attr-item\"},[_c('span',{staticClass:\"attr-label\"},[_vm._v(\"其他\")]),_c('span',{staticClass:\"attr-value\"},[_vm._v(_vm._s(_vm.otherInfo))])]),_c('div',{staticClass:\"attr-item\"},[_c('span',{staticClass:\"attr-label\"},[_vm._v(\"配送范围\")]),_c('span',{staticClass:\"attr-value\"},[_vm._v(_vm._s(_vm.deliveryRange))])])]),_c('div',{staticClass:\"quantity-control\"},[_c('el-button',{attrs:{\"icon\":\"el-icon-minus\",\"circle\":\"\"},on:{\"click\":_vm.decreaseQuantity}}),_c('span',{staticClass:\"quantity-value\"},[_vm._v(_vm._s(_vm.quantity))]),_c('el-button',{attrs:{\"icon\":\"el-icon-plus\",\"circle\":\"\"},on:{\"click\":_vm.increaseQuantity}}),_c('el-button',{staticClass:\"buy-btn\",attrs:{\"type\":\"primary\"}},[_vm._v(\"一口价购买\")]),_c('el-button',{staticClass:\"cart-btn\",attrs:{\"type\":\"success\"}},[_vm._v(\"加入购物车\")]),_c('el-button',{staticClass:\"bargain-btn\",attrs:{\"type\":\"info\"}},[_vm._v(\"议价\")]),_c('el-button',{staticClass:\"share-btn\",attrs:{\"icon\":\"el-icon-share\",\"circle\":\"\"},on:{\"click\":_vm.handleShare}})],1)])]),_c('div',{staticClass:\"product-bottom\"},[_c('div',{staticClass:\"hot-recommend-sidebar\"},[_c('div',{staticClass:\"hot-title\"},[_vm._v(\"热销推荐\")]),_vm._l((_vm.hotRecommendData),function(item,index){return _c('div',{key:index,staticClass:\"product-item\"},[_c('img',{directives:[{name:\"lazy\",rawName:\"v-lazy\",value:(item.imgUrl),expression:\"item.imgUrl\"}],attrs:{\"alt\":\"\"}}),_c('div',{staticClass:\"product-name\"},[_vm._v(_vm._s(item.title))]),_c('div',{staticClass:\"product-price\"},[_vm._v(\"¥\"+_vm._s(item.price))])])})],2),_c('div',{staticClass:\"product-right\"},[_c('div',{staticClass:\"product-tabs\"},[_c('span',{class:['tab-item', { active: !_vm.tabIndex }],on:{\"click\":function($event){_vm.tabIndex = 0}}},[_vm._v(\"商品详情\")]),_c('span',{class:['tab-item', { active: _vm.tabIndex }],on:{\"click\":function($event){_vm.tabIndex = 1}}},[_vm._v(\"商品评价(125)\")])]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.tabIndex),expression:\"!tabIndex\"}],staticClass:\"product-detail-main\"}),_c('Evaluate',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.tabIndex),expression:\"tabIndex\"}]})],1)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"product-review-section\"},[_c('div',{staticClass:\"review-header\"},[_c('div',{staticClass:\"rating-box\"},[_c('div',{staticClass:\"rating-score\"},[_vm._v(_vm._s(_vm.averageScore)+\" 分\")]),_c('div',{staticClass:\"rating-text\"},[_vm._v(\"综合评分 (共 \"+_vm._s(_vm.totalReviews)+\" 条)\")])]),_c('div',{staticClass:\"filter-tabs\"},[_c('div',{staticClass:\"tab-item\",class:{ active: _vm.activeFilter === 'all' },on:{\"click\":function($event){return _vm.handleFilterChange('all')}}},[_vm._v(\" 全部(\"+_vm._s(_vm.totalReviews)+\") \")]),_c('div',{staticClass:\"tab-item\",class:{ active: _vm.activeFilter === 'image' },on:{\"click\":function($event){return _vm.handleFilterChange('image')}}},[_vm._v(\" 有图(\"+_vm._s(_vm.hasImageCount)+\") \")]),_c('div',{staticClass:\"tab-item\",class:{ active: _vm.activeFilter === 'good' },on:{\"click\":function($event){return _vm.handleFilterChange('good')}}},[_vm._v(\" 好评(\"+_vm._s(_vm.goodReviewsCount)+\") \")]),_c('div',{staticClass:\"tab-item\",class:{ active: _vm.activeFilter === 'medium' },on:{\"click\":function($event){return _vm.handleFilterChange('medium')}}},[_vm._v(\" 中评(\"+_vm._s(_vm.mediumReviewsCount)+\") \")]),_c('div',{staticClass:\"tab-item\",class:{ active: _vm.activeFilter === 'bad' },on:{\"click\":function($event){return _vm.handleFilterChange('bad')}}},[_vm._v(\" 差评(\"+_vm._s(_vm.badReviewsCount)+\") \")])])]),_c('div',{staticClass:\"review-list\"},[_vm._l((_vm.currentPageReviews),function(review,index){return _c('div',{key:review.id,staticClass:\"review-item\"},[_c('div',{staticClass:\"user-info\"},[_c('img',{staticClass:\"avatar\",attrs:{\"src\":review.avatar,\"alt\":review.userName + '的头像'}}),_c('div',{staticClass:\"user-name\"},[_vm._v(_vm._s(review.userName))]),_c('div',{staticClass:\"rating-stars\"},_vm._l((5),function(star){return _c('span',{key:star},[_vm._v(\" \"+_vm._s(star <= review.rating ? \"★\" : \"☆\")+\" \")])}),0)]),_c('div',{staticClass:\"review-content\",class:{ empty: !review.content }},[_vm._v(\" \"+_vm._s(review.content || \"该用户没有填写评价内容\")+\" \")]),(review.images && review.images.length)?_c('div',{staticClass:\"review-images\"},_vm._l((review.images),function(img,imgIndex){return _c('img',{key:imgIndex,attrs:{\"src\":img,\"alt\":`${review.userName}的评价图片${imgIndex + 1}`},on:{\"click\":function($event){return _vm.openPreview(review.images, imgIndex)}}})}),0):_vm._e(),_c('div',{staticClass:\"review-time\"},[_vm._v(_vm._s(review.time))])])}),(_vm.filteredReviews.length === 0)?_c('div',{staticClass:\"empty-state\"},[_c('el-empty',{attrs:{\"description\":\"暂无符合条件的评价\"}})],1):_vm._e()],2),(_vm.filteredReviews.length > 0)?_c('div',{staticClass:\"pagination-container\"},[_c('el-pagination',{attrs:{\"current-page\":_vm.currentPage,\"page-sizes\":[5, 10, 20],\"page-size\":_vm.pageSize,\"layout\":\"total, sizes, prev, pager, next, jumper\",\"total\":_vm.filteredReviews.length},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1):_vm._e(),_c('el-dialog',{attrs:{\"visible\":_vm.previewVisible,\"modal\":true,\"title\":`查看图片 ${_vm.previewIndex + 1}/${_vm.previewImages.length}`,\"width\":\"80%\",\"height\":\"80%\",\"custom-class\":\"image-preview-dialog\",\"close-on-click-modal\":true},on:{\"update:visible\":function($event){_vm.previewVisible=$event}}},[_c('div',{staticClass:\"preview-container\"},[_c('el-button',{staticClass:\"preview-btn prev-btn\",attrs:{\"icon\":\"el-icon-arrow-left\",\"circle\":\"\",\"disabled\":_vm.previewIndex === 0},on:{\"click\":function($event){return _vm.changePreview('prev')}}}),_c('div',{staticClass:\"preview-img-wrapper\"},[_c('img',{staticClass:\"preview-img\",attrs:{\"src\":_vm.previewImages[_vm.previewIndex],\"alt\":`预览图片 ${_vm.previewIndex + 1}`}})]),_c('el-button',{staticClass:\"preview-btn next-btn\",attrs:{\"icon\":\"el-icon-arrow-right\",\"circle\":\"\",\"disabled\":_vm.previewIndex === _vm.previewImages.length - 1},on:{\"click\":function($event){return _vm.changePreview('next')}}})],1)])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n ","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Evaluate.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Evaluate.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Evaluate.vue?vue&type=template&id=3412a0b2&scoped=true\"\nimport script from \"./Evaluate.vue?vue&type=script&lang=js\"\nexport * from \"./Evaluate.vue?vue&type=script&lang=js\"\nimport style0 from \"./Evaluate.vue?vue&type=style&index=0&id=3412a0b2&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3412a0b2\",\n null\n \n)\n\nexport default component.exports","\r\n\r\n\r\n\r\n\r\n ","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=61588775&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=61588775&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"61588775\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","ref","attrs","on","handleCarouselChange","_l","productImages","img","index","key","_v","class","active","activeIndex","$event","handleIndicatorClick","_s","productTitle","productCount","productSubtitle","productPrice","salesVolume","moq","deliveryMethod","productSpecs","spec","idx","selectedSpec","origin","otherInfo","deliveryRange","decreaseQuantity","quantity","increaseQuantity","handleShare","hotRecommendData","item","directives","name","rawName","value","imgUrl","expression","title","price","tabIndex","staticRenderFns","averageScore","totalReviews","activeFilter","handleFilterChange","hasImageCount","goodReviewsCount","mediumReviewsCount","badReviewsCount","currentPageReviews","review","id","avatar","userName","star","rating","empty","content","images","length","imgIndex","openPreview","_e","time","filteredReviews","currentPage","pageSize","handleSizeChange","handleCurrentChange","previewVisible","previewIndex","previewImages","changePreview","components","ElEmpty","Empty","ElPagination","Pagination","data","reviews","computed","filter","sum","reduce","total","toFixed","result","startIndex","endIndex","slice","methods","filterType","val","document","querySelector","scrollIntoView","behavior","type","$nextTick","textContent","component","Evaluate","$refs","carousel","setActiveItem","$message","info","mounted","console","warn"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/592.90e06992.js b/dist/js/592.90e06992.js new file mode 100644 index 0000000..09719c4 --- /dev/null +++ b/dist/js/592.90e06992.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[592],{4592:function(e,t,a){a.r(t),a.d(t,{default:function(){return d}});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"bg"},[t("el-tabs",{model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[t("el-tab-pane",{attrs:{label:"待评价订单",name:"pendingPayment"}}),t("el-tab-pane",{attrs:{label:"已评价",name:"pendingDelivery"}})],1),t("div",{staticClass:"filter-bar"},[t("el-form",{attrs:{inline:!0,model:e.filterForm,size:"small"}},[t("el-form-item",{attrs:{label:"订单编号"}},[t("el-input",{attrs:{placeholder:"请输入订单编号"},model:{value:e.filterForm.orderNo,callback:function(t){e.$set(e.filterForm,"orderNo",t)},expression:"filterForm.orderNo"}})],1),t("el-form-item",{attrs:{label:"商品名称"}},[t("el-input",{attrs:{placeholder:"请输入商品名称"},model:{value:e.filterForm.goodsName,callback:function(t){e.$set(e.filterForm,"goodsName",t)},expression:"filterForm.goodsName"}})],1),t("el-form-item",{attrs:{label:"供应商名称"}},[t("el-input",{attrs:{placeholder:"请输入商家名称"},model:{value:e.filterForm.merchantName,callback:function(t){e.$set(e.filterForm,"merchantName",t)},expression:"filterForm.merchantName"}})],1),t("el-form-item",{attrs:{label:"下单时间"}},[t("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},model:{value:e.filterForm.createTime,callback:function(t){e.$set(e.filterForm,"createTime",t)},expression:"filterForm.createTime"}})],1),t("el-form-item",[t("el-button",{staticStyle:{background:"#6a8a27",border:"none"},attrs:{type:"primary"},on:{click:e.search}},[e._v("搜索")])],1),t("el-form-item",[t("el-button",{on:{click:e.reset}},[e._v("重置")])],1)],1)],1),t("div",[e._m(0),e._l(e.filteredOrders,function(a){return t("div",{key:a.id,staticClass:"order-card"},[t("div",{staticClass:"order-header flex-between"},[t("div",{staticStyle:{display:"flex"}},[t("div",[e._v("订单号: "+e._s(a.orderNo))]),t("div",{staticStyle:{"padding-left":"60px"}},[e._v("下单时间:"+e._s(a.createTime))])]),t("div",{staticClass:"product-status"})]),t("div",{staticClass:"order-products"},e._l(a.products,function(a){return t("div",{key:a.id,staticClass:"product-item"},[t("img",{staticClass:"product-image",attrs:{src:a.image,alt:a.name}}),t("div",{staticClass:"product-details"},[t("div",{staticClass:"product-name"},[e._v(e._s(a.name))]),t("div",{staticClass:"product-spec"},[e._v(e._s(a.spec))])]),t("div",{staticClass:"product-price"},[e._v("¥"+e._s(a.price.toFixed(2)))]),t("div",{staticClass:"product-quantity"},[e._v("x"+e._s(a.quantity))]),t("div",{staticClass:"product-total"},[e._v("¥"+e._s((a.price*a.quantity).toFixed(2)))]),t("div",{staticClass:"product-actions"},[t("el-button",{attrs:{type:"text",size:"mini"}},[e._v(" 商品详情")])],1)])}),0),t("div",{staticClass:"order-footer"},[t("div",{staticClass:"order-summary"},[t("div",{staticClass:"order-amount"},[e._v(" 合计: "),t("strong",[e._v("¥"+e._s(a.totalAmount.toFixed(2)))]),e._v(" (含运费 ¥"+e._s(a.freight.toFixed(2))+") ")])]),t("div",{staticClass:"order-actions"},[t("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(t){return e.gotoReview(a.id)}}},[e._v("去评价")])],1)])])}),e.filteredOrders.length<=0?t("el-empty",{attrs:{description:"暂无订单"}}):e._e(),t("div",{staticStyle:{"text-align":"right","margin-top":"20px"}},[t("el-pagination",{attrs:{"current-page":e.currentPage,"page-sizes":[5,10,20],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.filteredOrders.length},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],2)],1)},r=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"order-products",staticStyle:{padding:"0 20px",background:"#f8f9fa","border-top":"1px solid #eee","border-bottom":"1px solid #eee","margin-bottom":"20px"}},[t("div",{staticClass:"product-item"},[t("div",{staticClass:"product-details"},[t("div",{staticClass:"product-name"},[e._v("商品信息")])]),t("div",{staticClass:"product-price"},[e._v("单价(元)")]),t("div",{staticClass:"product-quantity"},[e._v("数量")]),t("div",{staticClass:"product-total"},[e._v("小计(元)")]),t("div",{staticClass:"product-actions"})])])}],s=(a(4114),a(8111),a(2489),a(3579),{name:"OrderList",data(){return{activeTab:"all",currentPage:1,pageSize:10,filterForm:{goodsName:"",orderNo:"",createTime:"",merchantName:"",tradeStatus:""},orders:[{id:1,orderNo:"209907091214560078",createTime:"2099-07-09 10:47:49",status:"pendingPayment",totalAmount:937,freight:15,isReviewed:!1,merchant:{id:101,name:"花艺生活馆",isOfficial:!0},products:[{id:1001,name:"深情挚爱/卡罗拉玫瑰",image:"https://picsum.photos/200/200?random=1",spec:"卡罗拉玫瑰33枝",price:349,quantity:1,status:"pendingPayment"},{id:1002,name:"精美包装纸",image:"https://picsum.photos/200/200?random=4",spec:"粉色",price:38,quantity:2,status:"pendingPayment"}]},{id:2,orderNo:"209907091214560079",createTime:"2099-07-09 10:48:49",status:"pendingDelivery",totalAmount:199,freight:0,isReviewed:!1,merchant:{id:102,name:"北欧家居旗舰店",isOfficial:!0},products:[{id:2001,name:"北欧花艺素雅仿真花",image:"https://picsum.photos/200/200?random=2",spec:"白色",price:199,quantity:1,status:"pendingDelivery"}]},{id:3,orderNo:"209907091214560080",createTime:"2099-07-09 10:49:49",status:"delivering",totalAmount:389,freight:10,isReviewed:!1,merchant:{id:101,name:"花艺生活馆",isOfficial:!0},products:[{id:3001,name:"香槟玫瑰+白玫瑰混搭",image:"https://picsum.photos/200/200?random=3",spec:"混搭",price:389,quantity:1,status:"delivering"}]}]}},computed:{filteredOrders(){let e=[...this.orders];if("all"!==this.activeTab&&(e=e.filter(e=>e.status===this.activeTab)),this.filterForm.goodsName){const t=this.filterForm.goodsName.toLowerCase();e=e.filter(e=>e.products.some(e=>e.name.toLowerCase().includes(t)))}if(this.filterForm.orderNo&&(e=e.filter(e=>e.orderNo.includes(this.filterForm.orderNo))),this.filterForm.merchantName){const t=this.filterForm.merchantName.toLowerCase();e=e.filter(e=>e.merchant.name.toLowerCase().includes(t))}return this.filterForm.tradeStatus&&(e=e.filter(e=>e.status===this.filterForm.tradeStatus)),e}},methods:{search(){this.currentPage=1,this.$message({message:"搜索条件已应用",type:"info"})},reset(){this.filterForm={goodsName:"",orderNo:"",createTime:"",merchantName:"",tradeStatus:""},this.activeTab="all",this.currentPage=1},handleSizeChange(e){this.pageSize=e},handleCurrentChange(e){this.currentPage=e},getStatusText(e){const t={pendingPayment:"待付款",pendingDelivery:"待发货",delivering:"配送中",completed:"已完成",cancelled:"已取消"};return t[e]||e},getStatusTagType(e){const t={pendingPayment:"warning",pendingDelivery:"info",delivering:"primary",completed:"success",cancelled:"danger"};return t[e]||"default"},payOrder(e){this.$message({message:`订单 ${e} 去付款`,type:"info"})},remindDelivery(e){this.$message({message:`已提醒订单 ${e} 发货`,type:"success"})},checkLogistics(e){this.$message({message:`查看订单 ${e} 物流`,type:"info"})},gotoReview(e){this.$message({message:`去评价订单 ${e}`,type:"info"})},viewOrderDetail(e){this.$router.push({name:"OrderDetail"})}}}),o=s,l=a(1656),n=(0,l.A)(o,i,r,!1,null,"43d0d592",null),d=n.exports}}]); +//# sourceMappingURL=592.90e06992.js.map \ No newline at end of file diff --git a/dist/js/592.90e06992.js.map b/dist/js/592.90e06992.js.map new file mode 100644 index 0000000..0f05fd0 --- /dev/null +++ b/dist/js/592.90e06992.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/592.90e06992.js","mappings":"sJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,MAAM,CAACF,EAAG,UAAU,CAACG,MAAM,CAACC,MAAON,EAAIO,UAAWC,SAAS,SAAUC,GAAMT,EAAIO,UAAUE,CAAG,EAAEC,WAAW,cAAc,CAACR,EAAG,cAAc,CAACS,MAAM,CAAC,MAAQ,QAAQ,KAAO,oBAAoBT,EAAG,cAAc,CAACS,MAAM,CAAC,MAAQ,MAAM,KAAO,sBAAsB,GAAGT,EAAG,MAAM,CAACE,YAAY,cAAc,CAACF,EAAG,UAAU,CAACS,MAAM,CAAC,QAAS,EAAK,MAAQX,EAAIY,WAAW,KAAO,UAAU,CAACV,EAAG,eAAe,CAACS,MAAM,CAAC,MAAQ,SAAS,CAACT,EAAG,WAAW,CAACS,MAAM,CAAC,YAAc,WAAWN,MAAM,CAACC,MAAON,EAAIY,WAAWC,QAASL,SAAS,SAAUC,GAAMT,EAAIc,KAAKd,EAAIY,WAAY,UAAWH,EAAI,EAAEC,WAAW,yBAAyB,G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xB,IAAA,SACA,EAGAyB,QAAAA,CAAAC,GACA,KAAAd,SAAA,CACAC,QAAA,MAAAa,QACAZ,KAAA,QAEA,EAGAa,cAAAA,CAAAD,GACA,KAAAd,SAAA,CACAC,QAAA,SAAAa,OACAZ,KAAA,WAEA,EAGAc,cAAAA,CAAAF,GACA,KAAAd,SAAA,CACAC,QAAA,QAAAa,OACAZ,KAAA,QAEA,EAGAzB,UAAAA,CAAAqC,GACA,KAAAd,SAAA,CACAC,QAAA,SAAAa,IACAZ,KAAA,QAEA,EAGAe,eAAAA,CAAAH,GACA,KAAAI,QAAAC,KAAA,CACAlD,KAAA,eAEA,KCtWqQ,I,UCQjQmD,GAAY,OACd,EACArF,EACAiD,GACA,EACA,KACA,WACA,MAIF,EAAeoC,E","sources":["webpack://abcdf/./src/views/User/CommentManage.vue","webpack://abcdf/src/views/User/CommentManage.vue","webpack://abcdf/./src/views/User/CommentManage.vue?cd48","webpack://abcdf/./src/views/User/CommentManage.vue?0d4f"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg\"},[_c('el-tabs',{model:{value:(_vm.activeTab),callback:function ($$v) {_vm.activeTab=$$v},expression:\"activeTab\"}},[_c('el-tab-pane',{attrs:{\"label\":\"待评价订单\",\"name\":\"pendingPayment\"}}),_c('el-tab-pane',{attrs:{\"label\":\"已评价\",\"name\":\"pendingDelivery\"}})],1),_c('div',{staticClass:\"filter-bar\"},[_c('el-form',{attrs:{\"inline\":true,\"model\":_vm.filterForm,\"size\":\"small\"}},[_c('el-form-item',{attrs:{\"label\":\"订单编号\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入订单编号\"},model:{value:(_vm.filterForm.orderNo),callback:function ($$v) {_vm.$set(_vm.filterForm, \"orderNo\", $$v)},expression:\"filterForm.orderNo\"}})],1),_c('el-form-item',{attrs:{\"label\":\"商品名称\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入商品名称\"},model:{value:(_vm.filterForm.goodsName),callback:function ($$v) {_vm.$set(_vm.filterForm, \"goodsName\", $$v)},expression:\"filterForm.goodsName\"}})],1),_c('el-form-item',{attrs:{\"label\":\"供应商名称\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入商家名称\"},model:{value:(_vm.filterForm.merchantName),callback:function ($$v) {_vm.$set(_vm.filterForm, \"merchantName\", $$v)},expression:\"filterForm.merchantName\"}})],1),_c('el-form-item',{attrs:{\"label\":\"下单时间\"}},[_c('el-date-picker',{attrs:{\"type\":\"daterange\",\"range-separator\":\"至\",\"start-placeholder\":\"开始日期\",\"end-placeholder\":\"结束日期\",\"value-format\":\"yyyy-MM-dd\"},model:{value:(_vm.filterForm.createTime),callback:function ($$v) {_vm.$set(_vm.filterForm, \"createTime\", $$v)},expression:\"filterForm.createTime\"}})],1),_c('el-form-item',[_c('el-button',{staticStyle:{\"background\":\"#6a8a27\",\"border\":\"none\"},attrs:{\"type\":\"primary\"},on:{\"click\":_vm.search}},[_vm._v(\"搜索\")])],1),_c('el-form-item',[_c('el-button',{on:{\"click\":_vm.reset}},[_vm._v(\"重置\")])],1)],1)],1),_c('div',[_vm._m(0),_vm._l((_vm.filteredOrders),function(order){return _c('div',{key:order.id,staticClass:\"order-card\"},[_c('div',{staticClass:\"order-header flex-between\"},[_c('div',{staticStyle:{\"display\":\"flex\"}},[_c('div',[_vm._v(\"订单号: \"+_vm._s(order.orderNo))]),_c('div',{staticStyle:{\"padding-left\":\"60px\"}},[_vm._v(\"下单时间:\"+_vm._s(order.createTime))])]),_c('div',{staticClass:\"product-status\"})]),_c('div',{staticClass:\"order-products\"},_vm._l((order.products),function(product){return _c('div',{key:product.id,staticClass:\"product-item\"},[_c('img',{staticClass:\"product-image\",attrs:{\"src\":product.image,\"alt\":product.name}}),_c('div',{staticClass:\"product-details\"},[_c('div',{staticClass:\"product-name\"},[_vm._v(_vm._s(product.name))]),_c('div',{staticClass:\"product-spec\"},[_vm._v(_vm._s(product.spec))])]),_c('div',{staticClass:\"product-price\"},[_vm._v(\"¥\"+_vm._s(product.price.toFixed(2)))]),_c('div',{staticClass:\"product-quantity\"},[_vm._v(\"x\"+_vm._s(product.quantity))]),_c('div',{staticClass:\"product-total\"},[_vm._v(\"¥\"+_vm._s((product.price * product.quantity).toFixed(2)))]),_c('div',{staticClass:\"product-actions\"},[_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"mini\"}},[_vm._v(\" 商品详情\")])],1)])}),0),_c('div',{staticClass:\"order-footer\"},[_c('div',{staticClass:\"order-summary\"},[_c('div',{staticClass:\"order-amount\"},[_vm._v(\" 合计: \"),_c('strong',[_vm._v(\"¥\"+_vm._s(order.totalAmount.toFixed(2)))]),_vm._v(\" (含运费 ¥\"+_vm._s(order.freight.toFixed(2))+\") \")])]),_c('div',{staticClass:\"order-actions\"},[_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.gotoReview(order.id)}}},[_vm._v(\"去评价\")])],1)])])}),(_vm.filteredOrders.length<=0)?_c('el-empty',{attrs:{\"description\":\"暂无订单\"}}):_vm._e(),_c('div',{staticStyle:{\"text-align\":\"right\",\"margin-top\":\"20px\"}},[_c('el-pagination',{attrs:{\"current-page\":_vm.currentPage,\"page-sizes\":[5, 10, 20],\"page-size\":_vm.pageSize,\"layout\":\"total, sizes, prev, pager, next, jumper\",\"total\":_vm.filteredOrders.length},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1)],2)],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"order-products\",staticStyle:{\"padding\":\"0 20px\",\"background\":\"#f8f9fa\",\"border-top\":\"1px solid #eee\",\"border-bottom\":\"1px solid #eee\",\"margin-bottom\":\"20px\"}},[_c('div',{staticClass:\"product-item\"},[_c('div',{staticClass:\"product-details\"},[_c('div',{staticClass:\"product-name\"},[_vm._v(\"商品信息\")])]),_c('div',{staticClass:\"product-price\"},[_vm._v(\"单价(元)\")]),_c('div',{staticClass:\"product-quantity\"},[_vm._v(\"数量\")]),_c('div',{staticClass:\"product-total\"},[_vm._v(\"小计(元)\")]),_c('div',{staticClass:\"product-actions\"})])])\n}]\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./CommentManage.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./CommentManage.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./CommentManage.vue?vue&type=template&id=43d0d592&scoped=true\"\nimport script from \"./CommentManage.vue?vue&type=script&lang=js\"\nexport * from \"./CommentManage.vue?vue&type=script&lang=js\"\nimport style0 from \"./CommentManage.vue?vue&type=style&index=0&id=43d0d592&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"43d0d592\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","model","value","activeTab","callback","$$v","expression","attrs","filterForm","orderNo","$set","goodsName","merchantName","createTime","staticStyle","on","search","_v","reset","_m","_l","filteredOrders","order","key","id","_s","products","product","image","name","spec","price","toFixed","quantity","totalAmount","freight","$event","gotoReview","length","_e","currentPage","pageSize","handleSizeChange","handleCurrentChange","staticRenderFns","data","tradeStatus","orders","status","isReviewed","merchant","isOfficial","computed","result","filter","keyword","toLowerCase","some","includes","methods","$message","message","type","val","getStatusText","statusMap","pendingPayment","pendingDelivery","delivering","completed","cancelled","getStatusTagType","typeMap","payOrder","orderId","remindDelivery","checkLogistics","viewOrderDetail","$router","push","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/639.edae0537.js b/dist/js/639.edae0537.js new file mode 100644 index 0000000..dda1fd5 --- /dev/null +++ b/dist/js/639.edae0537.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[639],{4639:function(t,e,i){i.r(e),i.d(e,{default:function(){return g}});var s=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"product-detail-container"},[e("div",{staticClass:"left-section"},[e("el-carousel",{ref:"carousel",staticClass:"product-carousel",attrs:{height:"500px","indicator-position":"none"},on:{change:t.handleCarouselChange}},t._l(t.info.listimg,function(t,i){return e("el-carousel-item",{key:i},[e("img",{staticClass:"carousel-img",attrs:{src:t,alt:`商品图片${i+1}`}})])}),1),e("div",{staticClass:"hint-text"},[t._v(" 温馨提示:以上图片仅供参考,若图片与实物有所不同,则以实物为准。 ")]),e("div",{staticClass:"image-indicators"},t._l(t.info.listimg,function(i,s){return e("div",{key:s,staticClass:"indicator-item",class:{active:t.activeIndex===s},on:{click:function(e){return t.handleIndicatorClick(s)}}},[e("img",{staticClass:"indicator-img",attrs:{src:i,alt:`缩略图${s+1}`}})])}),0)],1),e("div",{staticClass:"right-section"},[e("h2",{staticClass:"product-title"},[t._v(" "+t._s(t.info.title)+" ")]),e("div",{staticClass:"product-tags"},[t._l(t.info.display_tags.split(","),function(i,s){return e("el-tag",{key:s,staticStyle:{"margin-right":"5px"},attrs:{effect:"dark",size:"mini"}},[t._v(t._s(i))])}),e("span",{staticClass:"subtitle"},[t._v(t._s(t.info.subtitle))])],2),e("div",{staticClass:"price-info"},[e("span",{staticClass:"price-label"},[t._v("售价")]),e("span",{staticClass:"price-amount"},[t._v("¥"+t._s(t.info.price/100))]),e("span",{staticClass:"sales-volume"},[t._v("已售 "+t._s(t.info.sales_number))])]),e("div",{staticClass:"product-attr"},[e("div",{staticClass:"attr-item"},[e("span",{staticClass:"attr-label"},[t._v("起订量")]),e("span",{staticClass:"attr-value"},[t._v(t._s(t.moq))])]),e("div",{staticClass:"attr-item"},[e("span",{staticClass:"attr-label"},[t._v("收货方式")]),e("span",{staticClass:"attr-value"},[t._v(t._s(t.deliveryMethod))])]),e("div",{staticClass:"attr-item spec-group"},[e("span",{staticClass:"attr-label"},[t._v("商品规格")]),e("div",{staticClass:"custom-radio-group"},t._l(t.info.sku,function(i,s){return e("label",{key:s,staticClass:"custom-radio",class:{"is-checked":t.selectedSpec===s},on:{click:function(e){t.selectedSpec=s}}},[e("span",{staticClass:"radio-text"},[t._v(t._s(i.sku_name))])])}),0)]),e("div",{staticClass:"attr-item"},[e("span",{staticClass:"attr-label"},[t._v("发货地")]),e("span",{staticClass:"attr-value"},[t._v(t._s(t.info.supplier_address))])]),e("div",{staticClass:"attr-item"},[e("span",{staticClass:"attr-label"},[t._v("其他")]),e("span",{staticClass:"attr-value"},[t._v(t._s(t.otherInfo))])]),e("div",{staticClass:"attr-item"},[e("span",{staticClass:"attr-label"},[t._v("配送范围")]),e("span",{staticClass:"attr-value"},[t._v(t._s(t.deliveryRange))])])]),e("div",{staticClass:"quantity-control"},[e("el-button",{attrs:{icon:"el-icon-minus",circle:""},on:{click:t.decreaseQuantity}}),e("span",{staticClass:"quantity-value"},[t._v(t._s(t.quantity))]),e("el-button",{attrs:{icon:"el-icon-plus",circle:""},on:{click:t.increaseQuantity}}),e("el-button",{staticClass:"buy-btn",attrs:{type:"primary"}},[t._v("一口价购买")]),e("el-button",{staticClass:"cart-btn",attrs:{type:"success"}},[t._v("加入购物车")]),e("el-button",{staticClass:"bargain-btn",attrs:{type:"info"}},[t._v("议价")]),e("el-button",{staticClass:"share-btn",attrs:{icon:"el-icon-share",circle:""},on:{click:t.handleShare}})],1)])]),e("div",{staticClass:"product-bottom"},[e("div",{staticClass:"hot-recommend-sidebar"},[e("div",{staticClass:"hot-title"},[t._v("热销推荐")]),t._l(t.hotRecommendData,function(i,s){return e("div",{key:s,staticClass:"product-item"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:i.imgUrl,expression:"item.imgUrl"}],attrs:{alt:""}}),e("div",{staticClass:"product-name"},[t._v(t._s(i.title))]),e("div",{staticClass:"product-price"},[t._v("¥"+t._s(i.price))])])})],2),e("div",{staticClass:"product-right"},[e("div",{staticClass:"product-tabs"},[e("span",{class:["tab-item",{active:!t.tabIndex}],on:{click:function(e){t.tabIndex=0}}},[t._v("商品详情")]),e("span",{class:["tab-item",{active:t.tabIndex}],on:{click:function(e){t.tabIndex=1}}},[t._v("商品评价(125)")])]),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.tabIndex,expression:"!tabIndex"}],staticClass:"product-detail-main",domProps:{innerHTML:t._s(t.util.formateRichText(t.info.content))}}),e("Evaluate",{directives:[{name:"show",rawName:"v-show",value:t.tabIndex,expression:"tabIndex"}]})],1)])])},a=[],r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"product-review-section"},[e("div",{staticClass:"review-header"},[e("div",{staticClass:"rating-box"},[e("div",{staticClass:"rating-score"},[t._v(t._s(t.averageScore)+" 分")]),e("div",{staticClass:"rating-text"},[t._v("综合评分 (共 "+t._s(t.totalReviews)+" 条)")])]),e("div",{staticClass:"filter-tabs"},[e("div",{staticClass:"tab-item",class:{active:"all"===t.activeFilter},on:{click:function(e){return t.handleFilterChange("all")}}},[t._v(" 全部("+t._s(t.totalReviews)+") ")]),e("div",{staticClass:"tab-item",class:{active:"image"===t.activeFilter},on:{click:function(e){return t.handleFilterChange("image")}}},[t._v(" 有图("+t._s(t.hasImageCount)+") ")]),e("div",{staticClass:"tab-item",class:{active:"good"===t.activeFilter},on:{click:function(e){return t.handleFilterChange("good")}}},[t._v(" 好评("+t._s(t.goodReviewsCount)+") ")]),e("div",{staticClass:"tab-item",class:{active:"medium"===t.activeFilter},on:{click:function(e){return t.handleFilterChange("medium")}}},[t._v(" 中评("+t._s(t.mediumReviewsCount)+") ")]),e("div",{staticClass:"tab-item",class:{active:"bad"===t.activeFilter},on:{click:function(e){return t.handleFilterChange("bad")}}},[t._v(" 差评("+t._s(t.badReviewsCount)+") ")])])]),e("div",{staticClass:"review-list"},[t._l(t.currentPageReviews,function(i,s){return e("div",{key:i.id,staticClass:"review-item"},[e("div",{staticClass:"user-info"},[e("img",{staticClass:"avatar",attrs:{src:i.avatar,alt:i.userName+"的头像"}}),e("div",{staticClass:"user-name"},[t._v(t._s(i.userName))]),e("div",{staticClass:"rating-stars"},t._l(5,function(s){return e("span",{key:s},[t._v(" "+t._s(s<=i.rating?"★":"☆")+" ")])}),0)]),e("div",{staticClass:"review-content",class:{empty:!i.content}},[t._v(" "+t._s(i.content||"该用户没有填写评价内容")+" ")]),i.images&&i.images.length?e("div",{staticClass:"review-images"},t._l(i.images,function(s,a){return e("img",{key:a,attrs:{src:s,alt:`${i.userName}的评价图片${a+1}`},on:{click:function(e){return t.openPreview(i.images,a)}}})}),0):t._e(),e("div",{staticClass:"review-time"},[t._v(t._s(i.time))])])}),0===t.filteredReviews.length?e("div",{staticClass:"empty-state"},[e("el-empty",{attrs:{description:"暂无符合条件的评价"}})],1):t._e()],2),t.filteredReviews.length>0?e("div",{staticClass:"pagination-container"},[e("el-pagination",{attrs:{"current-page":t.currentPage,"page-sizes":[5,10,20],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.filteredReviews.length},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e(),e("el-dialog",{attrs:{visible:t.previewVisible,modal:!0,title:`查看图片 ${t.previewIndex+1}/${t.previewImages.length}`,width:"80%",height:"80%","custom-class":"image-preview-dialog","close-on-click-modal":!0},on:{"update:visible":function(e){t.previewVisible=e}}},[e("div",{staticClass:"preview-container"},[e("el-button",{staticClass:"preview-btn prev-btn",attrs:{icon:"el-icon-arrow-left",circle:"",disabled:0===t.previewIndex},on:{click:function(e){return t.changePreview("prev")}}}),e("div",{staticClass:"preview-img-wrapper"},[e("img",{staticClass:"preview-img",attrs:{src:t.previewImages[t.previewIndex],alt:`预览图片 ${t.previewIndex+1}`}})]),e("el-button",{staticClass:"preview-btn next-btn",attrs:{icon:"el-icon-arrow-right",circle:"",disabled:t.previewIndex===t.previewImages.length-1},on:{click:function(e){return t.changePreview("next")}}})],1)])],1)},n=[],c=(i(8111),i(2489),i(8237),i(9143)),l={name:"ProductReviews",components:{ElEmpty:c.Empty,ElPagination:c.Pagination},data(){return{activeFilter:"all",currentPage:1,pageSize:10,reviews:[{id:1,userName:"张**",avatar:"https://picsum.photos/id/64/40/40",rating:5,content:"商品质量很好,超出预期,非常满意的一次购物体验!包装很用心,完全没有损坏,会回购的。",images:["https://picsum.photos/id/26/80/80","https://picsum.photos/id/292/80/80"],time:"2023-10-15 14:30:22"},{id:2,userName:"李**",avatar:"https://picsum.photos/id/65/40/40",rating:4,content:"总体不错,就是物流有点慢,其他都还好,给个四星吧",images:[],time:"2023-10-14 09:15:47"},{id:3,userName:"王**",avatar:"https://picsum.photos/id/66/40/40",rating:5,content:"",images:["https://picsum.photos/id/431/80/80"],time:"2023-10-13 20:45:11"},{id:4,userName:"赵**",avatar:"https://picsum.photos/id/67/40/40",rating:2,content:"不太满意,和描述的有点差距,希望商家能改进",images:[],time:"2023-10-12 16:20:33"},{id:5,userName:"陈**",avatar:"https://picsum.photos/id/68/40/40",rating:5,content:"第二次购买了,品质一如既往的好,推荐给大家!",images:["https://picsum.photos/id/102/80/80","https://picsum.photos/id/103/80/80","https://picsum.photos/id/104/80/80"],time:"2023-10-11 11:05:59"},{id:6,userName:"刘**",avatar:"https://picsum.photos/id/69/40/40",rating:3,content:"一般般吧,没有特别惊艳的地方,价格还算合理",images:[],time:"2023-10-10 18:30:15"},{id:7,userName:"黄**",avatar:"https://picsum.photos/id/70/40/40",rating:5,content:"包装精美,送礼自用都合适,性价比很高",images:["https://picsum.photos/id/105/80/80"],time:"2023-10-09 08:45:27"},{id:8,userName:"周**",avatar:"https://picsum.photos/id/71/40/40",rating:4,content:"东西不错,物流很快,客服态度也好",images:["https://picsum.photos/id/106/80/80"],time:"2023-10-08 15:22:10"},{id:9,userName:"吴**",avatar:"https://picsum.photos/id/72/40/40",rating:5,content:"非常满意,推荐购买!",images:[],time:"2023-10-07 10:15:33"},{id:10,userName:"郑**",avatar:"https://picsum.photos/id/73/40/40",rating:1,content:"很差的购物体验,不会再买了",images:[],time:"2023-10-06 19:40:25"},{id:11,userName:"孙**",avatar:"https://picsum.photos/id/74/40/40",rating:5,content:"质量很好,和图片描述一致,值得购买",images:["https://picsum.photos/id/107/80/80","https://picsum.photos/id/108/80/80"],time:"2023-10-05 09:20:18"},{id:12,userName:"徐**",avatar:"https://picsum.photos/id/75/40/40",rating:4,content:"不错的商品,推荐给朋友了",images:[],time:"2023-10-04 16:50:47"},{id:13,userName:"马**",avatar:"https://picsum.photos/id/76/40/40",rating:5,content:"很好用,已经回购多次",images:["https://picsum.photos/id/109/80/80"],time:"2023-10-03 14:30:55"},{id:14,userName:"朱**",avatar:"https://picsum.photos/id/77/40/40",rating:3,content:"还行吧,没有想象中好",images:[],time:"2023-10-02 11:15:32"},{id:15,userName:"胡**",avatar:"https://picsum.photos/id/78/40/40",rating:5,content:"非常满意的一次购物,五星推荐!",images:["https://picsum.photos/id/110/80/80","https://picsum.photos/id/111/80/80"],time:"2023-10-01 08:40:17"}],previewVisible:!1,previewImages:[],previewIndex:0}},computed:{totalReviews(){return this.reviews.length},hasImageCount(){return this.reviews.filter(t=>t.images&&t.images.length).length},goodReviewsCount(){return this.reviews.filter(t=>t.rating>=4).length},mediumReviewsCount(){return this.reviews.filter(t=>3===t.rating).length},badReviewsCount(){return this.reviews.filter(t=>t.rating<=2).length},averageScore(){const t=this.reviews.reduce((t,e)=>t+e.rating,0);return(t/this.totalReviews).toFixed(1)},filteredReviews(){let t=[...this.reviews];switch(this.activeFilter){case"image":t=t.filter(t=>t.images&&t.images.length);break;case"good":t=t.filter(t=>t.rating>=4);break;case"medium":t=t.filter(t=>3===t.rating);break;case"bad":t=t.filter(t=>t.rating<=2);break;default:break}return t},currentPageReviews(){const t=(this.currentPage-1)*this.pageSize,e=t+this.pageSize;return this.filteredReviews.slice(t,e)}},methods:{handleFilterChange(t){this.activeFilter=t,this.currentPage=1},handleSizeChange(t){this.pageSize=t,this.currentPage=1},handleCurrentChange(t){this.currentPage=t,document.querySelector(".review-list").scrollIntoView({behavior:"smooth"})},openPreview(t,e){this.previewImages=t,this.previewIndex=e,this.previewVisible=!0},changePreview(t){"prev"===t&&this.previewIndex>0?this.previewIndex--:"next"===t&&this.previewIndex{document.querySelector(".el-dialog__title").textContent=`查看图片 ${this.previewIndex+1}/${this.previewImages.length}`})}}},o=l,d=i(1656),u=(0,d.A)(o,r,n,!1,null,"3412a0b2",null),p=u.exports,v={name:"ProductDetail",components:{Evaluate:p},data(){return{info:{},activeIndex:0,productCount:"52个",productSubtitle:"副标题",moq:1,deliveryMethod:"邮寄",selectedSpec:0,otherInfo:"下单填写留言,即免费赠送精美贺卡!",deliveryRange:"全国(可配送至全国1000多个城市,苏州市区内免配送费)",quantity:1,hotRecommendData:[{id:1,imgUrl:"https://picsum.photos/id/103/500/500",title:"北欧花艺素雅仿真花",price:359},{id:2,imgUrl:"https://picsum.photos/id/103/500/500",title:"生日玫瑰鲜花",price:359},{id:3,imgUrl:"https://picsum.photos/id/103/500/500",title:"香雪兰小苍兰鲜花",price:359},{id:4,imgUrl:"https://picsum.photos/id/103/500/500",title:"现代创意简约仿真花艺",price:359}],tabIndex:0}},methods:{handleCarouselChange(t){this.activeIndex=t},handleIndicatorClick(t){this.activeIndex=t,this.$nextTick(()=>{this.$refs.carousel&&this.$refs.carousel.setActiveItem(t)})},decreaseQuantity(){this.quantity>1&&this.quantity--},increaseQuantity(){this.quantity++},handleShare(){this.$message.info("分享功能待实现")}},mounted(){this.$refs.carousel||console.warn("轮播组件未正确加载,请检查ref属性是否设置"),this.get({id:this.$route.params.id},"/api/product/get_product_detail").then(t=>{this.info=t.data})}},m=v,h=(0,d.A)(m,s,a,!1,null,"6a5a5b52",null),g=h.exports}}]); +//# sourceMappingURL=639.edae0537.js.map \ No newline at end of file diff --git a/dist/js/639.edae0537.js.map b/dist/js/639.edae0537.js.map new file mode 100644 index 0000000..88ef54b --- /dev/null +++ b/dist/js/639.edae0537.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/639.edae0537.js","mappings":"sJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,4BAA4B,CAACF,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,cAAc,CAACG,IAAI,WAAWD,YAAY,mBAAmBE,MAAM,CAAC,OAAS,QAAQ,qBAAqB,QAAQC,GAAG,CAAC,OAASP,EAAIQ,uBAAuBR,EAAIS,GAAIT,EAAIU,KAAKC,QAAS,SAASC,EAAIC,GAAO,OAAOX,EAAG,mBAAmB,CAACY,IAAID,GAAO,CAACX,EAAG,MAAM,CAACE,YAAY,eAAeE,MAAM,CAAC,IAAMM,EAAI,IAAM,OAAOC,EAAQ,QAAQ,GAAG,GAAGX,EAAG,MAAM,CAACE,YAAY,aAAa,CAACJ,EAAIe,GAAG,wCAAwCb,EAAG,MAAM,CAACE,YAAY,oBAAoBJ,EAAIS,GAAIT,EAAIU,KAAKC,QAAS,SAASC,EAAIC,GAAO,OAAOX,EAAG,MAAM,CAACY,IAAID,EAAMT,YAAY,iBAAiBY,MAAM,CAAEC,OAAQjB,EAAIkB,cAAgBL,GAAQN,GAAG,CAAC,MAAQ,SAASY,GAAQ,OAAOnB,EAAIoB,qBAAqBP,EAAM,IAAI,CAACX,EAAG,MAAM,CAACE,YAAY,gBAAgBE,MAAM,CAAC,IAAMM,EAAI,IAAM,MAAMC,EAAQ,QAAQ,GAAG,IAAI,GAAGX,EAAG,MAAM,CAACE,YAAY,iBAAiB,CAACF,EAAG,KAAK,CAACE,YAAY,iBAAiB,CAACJ,EA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ACA8D,KAAAC,IACA,KAAAxH,KAAAwH,EAAArC,MAEA,GC3Q6P,ICQzP,GAAY,OACd,EACA9F,EACAyD,GACA,EACA,KACA,WACA,MAIF,EAAe,E","sources":["webpack://abcdf/./src/views/Detail/Index.vue","webpack://abcdf/./src/components/product/Evaluate.vue","webpack://abcdf/src/components/product/Evaluate.vue","webpack://abcdf/./src/components/product/Evaluate.vue?9dbf","webpack://abcdf/./src/components/product/Evaluate.vue?9ce1","webpack://abcdf/src/views/Detail/Index.vue","webpack://abcdf/./src/views/Detail/Index.vue?1ab6","webpack://abcdf/./src/views/Detail/Index.vue?db7a"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{staticClass:\"product-detail-container\"},[_c('div',{staticClass:\"left-section\"},[_c('el-carousel',{ref:\"carousel\",staticClass:\"product-carousel\",attrs:{\"height\":\"500px\",\"indicator-position\":\"none\"},on:{\"change\":_vm.handleCarouselChange}},_vm._l((_vm.info.listimg),function(img,index){return _c('el-carousel-item',{key:index},[_c('img',{staticClass:\"carousel-img\",attrs:{\"src\":img,\"alt\":`商品图片${index + 1}`}})])}),1),_c('div',{staticClass:\"hint-text\"},[_vm._v(\" 温馨提示:以上图片仅供参考,若图片与实物有所不同,则以实物为准。 \")]),_c('div',{staticClass:\"image-indicators\"},_vm._l((_vm.info.listimg),function(img,index){return _c('div',{key:index,staticClass:\"indicator-item\",class:{ active: _vm.activeIndex === index },on:{\"click\":function($event){return _vm.handleIndicatorClick(index)}}},[_c('img',{staticClass:\"indicator-img\",attrs:{\"src\":img,\"alt\":`缩略图${index + 1}`}})])}),0)],1),_c('div',{staticClass:\"right-section\"},[_c('h2',{staticClass:\"product-title\"},[_vm._v(\" \"+_vm._s(_vm.info.title)+\" \")]),_c('div',{staticClass:\"product-tags\"},[_vm._l((_vm.info.display_tags.split(',')),function(item,index){return _c('el-tag',{key:index,staticStyle:{\"margin-right\":\"5px\"},attrs:{\"effect\":\"dark\",\"size\":\"mini\"}},[_vm._v(_vm._s(item))])}),_c('span',{staticClass:\"subtitle\"},[_vm._v(_vm._s(_vm.info.subtitle))])],2),_c('div',{staticClass:\"price-info\"},[_c('span',{staticClass:\"price-label\"},[_vm._v(\"售价\")]),_c('span',{staticClass:\"price-amount\"},[_vm._v(\"¥\"+_vm._s(_vm.info.price / 100))]),_c('span',{staticClass:\"sales-volume\"},[_vm._v(\"已售 \"+_vm._s(_vm.info.sales_number))])]),_c('div',{staticClass:\"product-attr\"},[_c('div',{staticClass:\"attr-item\"},[_c('span',{staticClass:\"attr-label\"},[_vm._v(\"起订量\")]),_c('span',{staticClass:\"attr-value\"},[_vm._v(_vm._s(_vm.moq))])]),_c('div',{staticClass:\"attr-item\"},[_c('span',{staticClass:\"attr-label\"},[_vm._v(\"收货方式\")]),_c('span',{staticClass:\"attr-value\"},[_vm._v(_vm._s(_vm.deliveryMethod))])]),_c('div',{staticClass:\"attr-item spec-group\"},[_c('span',{staticClass:\"attr-label\"},[_vm._v(\"商品规格\")]),_c('div',{staticClass:\"custom-radio-group\"},_vm._l((_vm.info.sku),function(spec,idx){return _c('label',{key:idx,staticClass:\"custom-radio\",class:{ 'is-checked': _vm.selectedSpec === idx },on:{\"click\":function($event){_vm.selectedSpec = idx}}},[_c('span',{staticClass:\"radio-text\"},[_vm._v(_vm._s(spec.sku_name))])])}),0)]),_c('div',{staticClass:\"attr-item\"},[_c('span',{staticClass:\"attr-label\"},[_vm._v(\"发货地\")]),_c('span',{staticClass:\"attr-value\"},[_vm._v(_vm._s(_vm.info.supplier_address))])]),_c('div',{staticClass:\"attr-item\"},[_c('span',{staticClass:\"attr-label\"},[_vm._v(\"其他\")]),_c('span',{staticClass:\"attr-value\"},[_vm._v(_vm._s(_vm.otherInfo))])]),_c('div',{staticClass:\"attr-item\"},[_c('span',{staticClass:\"attr-label\"},[_vm._v(\"配送范围\")]),_c('span',{staticClass:\"attr-value\"},[_vm._v(_vm._s(_vm.deliveryRange))])])]),_c('div',{staticClass:\"quantity-control\"},[_c('el-button',{attrs:{\"icon\":\"el-icon-minus\",\"circle\":\"\"},on:{\"click\":_vm.decreaseQuantity}}),_c('span',{staticClass:\"quantity-value\"},[_vm._v(_vm._s(_vm.quantity))]),_c('el-button',{attrs:{\"icon\":\"el-icon-plus\",\"circle\":\"\"},on:{\"click\":_vm.increaseQuantity}}),_c('el-button',{staticClass:\"buy-btn\",attrs:{\"type\":\"primary\"}},[_vm._v(\"一口价购买\")]),_c('el-button',{staticClass:\"cart-btn\",attrs:{\"type\":\"success\"}},[_vm._v(\"加入购物车\")]),_c('el-button',{staticClass:\"bargain-btn\",attrs:{\"type\":\"info\"}},[_vm._v(\"议价\")]),_c('el-button',{staticClass:\"share-btn\",attrs:{\"icon\":\"el-icon-share\",\"circle\":\"\"},on:{\"click\":_vm.handleShare}})],1)])]),_c('div',{staticClass:\"product-bottom\"},[_c('div',{staticClass:\"hot-recommend-sidebar\"},[_c('div',{staticClass:\"hot-title\"},[_vm._v(\"热销推荐\")]),_vm._l((_vm.hotRecommendData),function(item,index){return _c('div',{key:index,staticClass:\"product-item\"},[_c('img',{directives:[{name:\"lazy\",rawName:\"v-lazy\",value:(item.imgUrl),expression:\"item.imgUrl\"}],attrs:{\"alt\":\"\"}}),_c('div',{staticClass:\"product-name\"},[_vm._v(_vm._s(item.title))]),_c('div',{staticClass:\"product-price\"},[_vm._v(\"¥\"+_vm._s(item.price))])])})],2),_c('div',{staticClass:\"product-right\"},[_c('div',{staticClass:\"product-tabs\"},[_c('span',{class:['tab-item', { active: !_vm.tabIndex }],on:{\"click\":function($event){_vm.tabIndex = 0}}},[_vm._v(\"商品详情\")]),_c('span',{class:['tab-item', { active: _vm.tabIndex }],on:{\"click\":function($event){_vm.tabIndex = 1}}},[_vm._v(\"商品评价(125)\")])]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.tabIndex),expression:\"!tabIndex\"}],staticClass:\"product-detail-main\",domProps:{\"innerHTML\":_vm._s(_vm.util.formateRichText(_vm.info.content))}}),_c('Evaluate',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.tabIndex),expression:\"tabIndex\"}]})],1)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"product-review-section\"},[_c('div',{staticClass:\"review-header\"},[_c('div',{staticClass:\"rating-box\"},[_c('div',{staticClass:\"rating-score\"},[_vm._v(_vm._s(_vm.averageScore)+\" 分\")]),_c('div',{staticClass:\"rating-text\"},[_vm._v(\"综合评分 (共 \"+_vm._s(_vm.totalReviews)+\" 条)\")])]),_c('div',{staticClass:\"filter-tabs\"},[_c('div',{staticClass:\"tab-item\",class:{ active: _vm.activeFilter === 'all' },on:{\"click\":function($event){return _vm.handleFilterChange('all')}}},[_vm._v(\" 全部(\"+_vm._s(_vm.totalReviews)+\") \")]),_c('div',{staticClass:\"tab-item\",class:{ active: _vm.activeFilter === 'image' },on:{\"click\":function($event){return _vm.handleFilterChange('image')}}},[_vm._v(\" 有图(\"+_vm._s(_vm.hasImageCount)+\") \")]),_c('div',{staticClass:\"tab-item\",class:{ active: _vm.activeFilter === 'good' },on:{\"click\":function($event){return _vm.handleFilterChange('good')}}},[_vm._v(\" 好评(\"+_vm._s(_vm.goodReviewsCount)+\") \")]),_c('div',{staticClass:\"tab-item\",class:{ active: _vm.activeFilter === 'medium' },on:{\"click\":function($event){return _vm.handleFilterChange('medium')}}},[_vm._v(\" 中评(\"+_vm._s(_vm.mediumReviewsCount)+\") \")]),_c('div',{staticClass:\"tab-item\",class:{ active: _vm.activeFilter === 'bad' },on:{\"click\":function($event){return _vm.handleFilterChange('bad')}}},[_vm._v(\" 差评(\"+_vm._s(_vm.badReviewsCount)+\") \")])])]),_c('div',{staticClass:\"review-list\"},[_vm._l((_vm.currentPageReviews),function(review,index){return _c('div',{key:review.id,staticClass:\"review-item\"},[_c('div',{staticClass:\"user-info\"},[_c('img',{staticClass:\"avatar\",attrs:{\"src\":review.avatar,\"alt\":review.userName + '的头像'}}),_c('div',{staticClass:\"user-name\"},[_vm._v(_vm._s(review.userName))]),_c('div',{staticClass:\"rating-stars\"},_vm._l((5),function(star){return _c('span',{key:star},[_vm._v(\" \"+_vm._s(star <= review.rating ? \"★\" : \"☆\")+\" \")])}),0)]),_c('div',{staticClass:\"review-content\",class:{ empty: !review.content }},[_vm._v(\" \"+_vm._s(review.content || \"该用户没有填写评价内容\")+\" \")]),(review.images && review.images.length)?_c('div',{staticClass:\"review-images\"},_vm._l((review.images),function(img,imgIndex){return _c('img',{key:imgIndex,attrs:{\"src\":img,\"alt\":`${review.userName}的评价图片${imgIndex + 1}`},on:{\"click\":function($event){return _vm.openPreview(review.images, imgIndex)}}})}),0):_vm._e(),_c('div',{staticClass:\"review-time\"},[_vm._v(_vm._s(review.time))])])}),(_vm.filteredReviews.length === 0)?_c('div',{staticClass:\"empty-state\"},[_c('el-empty',{attrs:{\"description\":\"暂无符合条件的评价\"}})],1):_vm._e()],2),(_vm.filteredReviews.length > 0)?_c('div',{staticClass:\"pagination-container\"},[_c('el-pagination',{attrs:{\"current-page\":_vm.currentPage,\"page-sizes\":[5, 10, 20],\"page-size\":_vm.pageSize,\"layout\":\"total, sizes, prev, pager, next, jumper\",\"total\":_vm.filteredReviews.length},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1):_vm._e(),_c('el-dialog',{attrs:{\"visible\":_vm.previewVisible,\"modal\":true,\"title\":`查看图片 ${_vm.previewIndex + 1}/${_vm.previewImages.length}`,\"width\":\"80%\",\"height\":\"80%\",\"custom-class\":\"image-preview-dialog\",\"close-on-click-modal\":true},on:{\"update:visible\":function($event){_vm.previewVisible=$event}}},[_c('div',{staticClass:\"preview-container\"},[_c('el-button',{staticClass:\"preview-btn prev-btn\",attrs:{\"icon\":\"el-icon-arrow-left\",\"circle\":\"\",\"disabled\":_vm.previewIndex === 0},on:{\"click\":function($event){return _vm.changePreview('prev')}}}),_c('div',{staticClass:\"preview-img-wrapper\"},[_c('img',{staticClass:\"preview-img\",attrs:{\"src\":_vm.previewImages[_vm.previewIndex],\"alt\":`预览图片 ${_vm.previewIndex + 1}`}})]),_c('el-button',{staticClass:\"preview-btn next-btn\",attrs:{\"icon\":\"el-icon-arrow-right\",\"circle\":\"\",\"disabled\":_vm.previewIndex === _vm.previewImages.length - 1},on:{\"click\":function($event){return _vm.changePreview('next')}}})],1)])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n ","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Evaluate.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Evaluate.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Evaluate.vue?vue&type=template&id=3412a0b2&scoped=true\"\nimport script from \"./Evaluate.vue?vue&type=script&lang=js\"\nexport * from \"./Evaluate.vue?vue&type=script&lang=js\"\nimport style0 from \"./Evaluate.vue?vue&type=style&index=0&id=3412a0b2&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3412a0b2\",\n null\n \n)\n\nexport default component.exports","\r\n\r\n\r\n\r\n\r\n ","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=6a5a5b52&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=6a5a5b52&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6a5a5b52\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","ref","attrs","on","handleCarouselChange","_l","info","listimg","img","index","key","_v","class","active","activeIndex","$event","handleIndicatorClick","_s","title","display_tags","split","item","staticStyle","subtitle","price","sales_number","moq","deliveryMethod","sku","spec","idx","selectedSpec","sku_name","supplier_address","otherInfo","deliveryRange","decreaseQuantity","quantity","increaseQuantity","handleShare","hotRecommendData","directives","name","rawName","value","imgUrl","expression","tabIndex","domProps","util","formateRichText","content","staticRenderFns","averageScore","totalReviews","activeFilter","handleFilterChange","hasImageCount","goodReviewsCount","mediumReviewsCount","badReviewsCount","currentPageReviews","review","id","avatar","userName","star","rating","empty","images","length","imgIndex","openPreview","_e","time","filteredReviews","currentPage","pageSize","handleSizeChange","handleCurrentChange","previewVisible","previewIndex","previewImages","changePreview","components","ElEmpty","Empty","ElPagination","Pagination","data","reviews","computed","filter","sum","reduce","total","toFixed","result","startIndex","endIndex","slice","methods","filterType","val","document","querySelector","scrollIntoView","behavior","type","$nextTick","textContent","component","Evaluate","productCount","productSubtitle","$refs","carousel","setActiveItem","$message","mounted","console","warn","get","$route","params","then","res"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/64.57193698.js b/dist/js/64.57193698.js new file mode 100644 index 0000000..b03d985 --- /dev/null +++ b/dist/js/64.57193698.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[64],{1064:function(t,e,s){s.r(e),s.d(e,{default:function(){return r}});var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"bg"},[t.showNotice?e("div",{staticClass:"notice-bar"},[t._m(0),e("div",{staticClass:"notice-bar__close",on:{click:function(e){t.showNotice=!1}}},[e("i",{staticClass:"el-icon-close"})])]):t._e(),e("el-card",[e("el-row",{attrs:{gutter:20}},t._l(t.headFun,function(s,i){return e("el-col",{key:i,attrs:{xs:24,sm:8,md:8}},[e("router-link",{staticClass:"feature-item",attrs:{to:s.path}},[e("div",{staticClass:"feature-icon"},[e("i",{class:s.icon})]),e("span",{staticClass:"feature-name"},[t._v(t._s(s.title))]),e("el-button",{staticStyle:{"margin-top":"5px"},attrs:{type:"text",size:"mini"}},[t._v("去设置")])],1)],1)}),1)],1),t.userInfo?e("el-card",[e("div",{attrs:{slot:"header"},slot:"header"},[t._v("个人信息")]),e("div",{staticClass:"user-info"},[e("img",{staticClass:"user-avatar",attrs:{src:t.userInfo.avatar,alt:"用户头像"}}),e("div",{staticClass:"user-details"},[e("div",[e("div",{staticClass:"user-name"},[t._v(t._s(t.userInfo.nickname))]),e("div",{staticClass:"user-other-info"},[t._v(" ID: "+t._s(t.userInfo.user_id)+" "),e("el-button",{attrs:{type:"text",size:"mini"},on:{click:t.copyId}},[t._v("复制")])],1),e("div",{staticClass:"user-other-info"},[t._v("手机号: "+t._s(t.userInfo.mobile))])]),e("div",{staticClass:"login-info"},[e("div",{staticClass:"login-section"},[e("div",{staticClass:"login-section-title"},[t._v("当前登录信息")]),e("div",{staticClass:"login-detail"},[t._v("登录设备: Edge浏览器")]),e("div",{staticClass:"login-detail"},[t._v("登录地点: 中国广东深圳")]),e("div",{staticClass:"login-detail"},[t._v("登录时间: 2099-02-23 10:09:50")])]),e("div",{staticClass:"login-section"},[e("div",{staticClass:"login-section-title"},[t._v("上次登录信息")]),e("div",{staticClass:"login-detail"},[t._v("登录设备: 微信小程序")]),e("div",{staticClass:"login-detail"},[t._v("登录地点: 中国广东深圳")]),e("div",{staticClass:"login-detail"},[t._v("登录时间: 2099-02-05 10:46:45")])])])]),e("div",[e("el-button",{staticStyle:{"background-color":"#6a8a27",border:"none"},attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.goPath("/User/UserInfo")}}},[e("i",{staticClass:"el-icon-edit"}),t._v(" 编辑个人信息 ")])],1)])]):t._e(),e("div",{staticClass:"flex-center"},[e("el-card",{staticStyle:{flex:"1"}},[e("div",{attrs:{slot:"header"},slot:"header"},[t._v("我的议价")]),e("div",{staticClass:"feature-grid"},t._l(t.bargaining,function(s,i){return e("div",{key:i,staticClass:"feature-item"},[s.value?e("el-badge",{attrs:{value:s.value,type:"danger"}},[e("div",{staticClass:"feature-icon"},[e("i",{class:s.icon})])]):e("div",{staticClass:"feature-icon"},[e("i",{class:s.icon})]),e("span",{staticClass:"feature-name"},[t._v(t._s(s.title))])],1)}),0)]),e("div",{staticStyle:{width:"20px","flex-shrink":"0"}}),e("el-card",{staticStyle:{flex:"1"}},[e("div",{attrs:{slot:"header"},slot:"header"},[t._v("我的订单")]),e("div",{staticClass:"feature-grid"},t._l(t.order,function(s,i){return e("div",{key:i,staticClass:"feature-item"},[s.value?e("el-badge",{attrs:{value:s.value,type:"danger"}},[e("div",{staticClass:"feature-icon"},[e("i",{class:s.icon})])]):e("div",{staticClass:"feature-icon"},[e("i",{class:s.icon})]),e("span",{staticClass:"feature-name"},[t._v(t._s(s.title))])],1)}),0)])],1)],1)},a=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"notice-bar__content"},[e("i",{staticClass:"el-icon-lightbulb"}),t._v(" 尊敬的采购人,欢迎来到xxx平台!您可以先完成下方的基础设置,方便您更高效的采购。 ")])}],l=(s(4114),{name:"UserCenter",data(){return{showNotice:!0,userId:"200901071124",headFun:[{icon:"el-icon-location",title:"设置收货地址",path:"/User/UserAddress"},{icon:"el-icon-document",title:"设置发票抬头",path:"/User/UserInvoice"},{icon:"el-icon-user",title:"设置采购人信息",path:"/User/PurchaserAdd"}],bargaining:[{icon:"el-icon-time",title:"待回复",path:"",value:2},{icon:"el-icon-truck",title:"已取消",path:"",value:2},{icon:"el-icon-menu",title:"已成交",path:"",value:2}],order:[{icon:"el-icon-time",title:"待付款",path:"",value:2},{icon:"el-icon-truck",title:"未发货",path:"",value:2},{icon:"el-icon-menu",title:"全部订单",path:"",value:2}],userInfo:null}},computed:{},mounted(){this.getUserInfo()},methods:{getUserInfo(){this.post({customBaseURL:"/api"},"/api/uservice/user/getMyInfo").then(t=>{this.userInfo=t.data,console.log(this.userInfo)})},goPath(t){this.$router.push(t)},copyId(){const t=document.createElement("input");t.value=this.userId,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),this.$message({message:"ID已复制",type:"success"})}}}),n=l,c=s(1656),o=(0,c.A)(n,i,a,!1,null,"281b462a",null),r=o.exports}}]); +//# sourceMappingURL=64.57193698.js.map \ No newline at end of file diff --git a/dist/js/64.57193698.js.map b/dist/js/64.57193698.js.map new file mode 100644 index 0000000..346d484 --- /dev/null +++ b/dist/js/64.57193698.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/64.57193698.js","mappings":"qJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,MAAM,CAAEJ,EAAIK,WAAYH,EAAG,MAAM,CAACE,YAAY,cAAc,CAACJ,EAAIM,GAAG,GAAGJ,EAAG,MAAM,CAACE,YAAY,oBAAoBG,GAAG,CAAC,MAAQ,SAASC,GAAQR,EAAIK,YAAa,CAAK,IAAI,CAACH,EAAG,IAAI,CAACE,YAAY,sBAAsBJ,EAAIS,KAAKP,EAAG,UAAU,CAACA,EAAG,SAAS,CAACQ,MAAM,CAAC,OAAS,KAAKV,EAAIW,GAAIX,EAAIY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ACAC,IAAAA,GACA,OACA/B,YAAA,EACAgC,OAAA,eACAzB,QAAA,CACA,CAAAM,KAAA,mBAAAG,MAAA,SAAAL,KAAA,qBACA,CAAAE,KAAA,mBAAAG,MAAA,SAAAL,KAAA,qBACA,CAAAE,KAAA,eAAAG,MAAA,UAAAL,KAAA,uBAEAe,WAAA,CACA,CAAAb,KAAA,eAAAG,MAAA,MAAAL,KAAA,GAAAgB,MAAA,GACA,CAAAd,KAAA,gBAAAG,MAAA,MAAAL,KAAA,GAAAgB,MAAA,GACA,CAAAd,KAAA,eAAAG,MAAA,MAAAL,KAAA,GAAAgB,MAAA,IAEAC,MAAA,CACA,CAAAf,KAAA,eAAAG,MAAA,MAAAL,KAAA,GAAAgB,MAAA,GACA,CAAAd,KAAA,gBAAAG,MAAA,MAAAL,KAAA,GAAAgB,MAAA,GACA,CAAAd,KAAA,eAAAG,MAAA,OAAAL,KAAA,GAAAgB,MAAA,IAGAT,SAAA,KAIA,EACAe,SAAA,CAEA,EACAC,OAAAA,GACA,KAAAC,aACA,EACAC,QAAA,CACAD,WAAAA,GAEA,KAAAE,KAAA,CAAAC,cAAA,wCAAAC,KAAAC,IACA,KAAAtB,SAAAsB,EAAAT,KACAU,QAAAC,IAAA,KAAAxB,WAEA,EAEAO,MAAAA,CAAAd,GACA,KAAAgC,QAAAC,KAAAjC,EACA,EAGAY,MAAAA,GACA,MAAAsB,EAAAC,SAAAC,cAAA,SACAF,EAAAlB,MAAA,KAAAK,OACAc,SAAAE,KAAAC,YAAAJ,GACAA,EAAAK,SACAJ,SAAAK,YAAA,QACAL,SAAAE,KAAAI,YAAAP,GAEA,KAAAQ,SAAA,CACAC,QAAA,QACAC,KAAA,WAEA,KClKkQ,I,UCQ9PC,GAAY,OACd,EACA9D,EACAmC,GACA,EACA,KACA,WACA,MAIF,EAAe2B,E","sources":["webpack://abcdf/./src/views/User/UserCenter.vue","webpack://abcdf/src/views/User/UserCenter.vue","webpack://abcdf/./src/views/User/UserCenter.vue?f7cc","webpack://abcdf/./src/views/User/UserCenter.vue?715c"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg\"},[(_vm.showNotice)?_c('div',{staticClass:\"notice-bar\"},[_vm._m(0),_c('div',{staticClass:\"notice-bar__close\",on:{\"click\":function($event){_vm.showNotice = false}}},[_c('i',{staticClass:\"el-icon-close\"})])]):_vm._e(),_c('el-card',[_c('el-row',{attrs:{\"gutter\":20}},_vm._l((_vm.headFun),function(item,i){return _c('el-col',{key:i,attrs:{\"xs\":24,\"sm\":8,\"md\":8}},[_c('router-link',{staticClass:\"feature-item\",attrs:{\"to\":item.path}},[_c('div',{staticClass:\"feature-icon\"},[_c('i',{class:item.icon})]),_c('span',{staticClass:\"feature-name\"},[_vm._v(_vm._s(item.title))]),_c('el-button',{staticStyle:{\"margin-top\":\"5px\"},attrs:{\"type\":\"text\",\"size\":\"mini\"}},[_vm._v(\"去设置\")])],1)],1)}),1)],1),(_vm.userInfo)?_c('el-card',[_c('div',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_vm._v(\"个人信息\")]),_c('div',{staticClass:\"user-info\"},[_c('img',{staticClass:\"user-avatar\",attrs:{\"src\":_vm.userInfo.avatar,\"alt\":\"用户头像\"}}),_c('div',{staticClass:\"user-details\"},[_c('div',[_c('div',{staticClass:\"user-name\"},[_vm._v(_vm._s(_vm.userInfo.nickname))]),_c('div',{staticClass:\"user-other-info\"},[_vm._v(\" ID: \"+_vm._s(_vm.userInfo.user_id)+\" \"),_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"mini\"},on:{\"click\":_vm.copyId}},[_vm._v(\"复制\")])],1),_c('div',{staticClass:\"user-other-info\"},[_vm._v(\"手机号: \"+_vm._s(_vm.userInfo.mobile))])]),_c('div',{staticClass:\"login-info\"},[_c('div',{staticClass:\"login-section\"},[_c('div',{staticClass:\"login-section-title\"},[_vm._v(\"当前登录信息\")]),_c('div',{staticClass:\"login-detail\"},[_vm._v(\"登录设备: Edge浏览器\")]),_c('div',{staticClass:\"login-detail\"},[_vm._v(\"登录地点: 中国广东深圳\")]),_c('div',{staticClass:\"login-detail\"},[_vm._v(\"登录时间: 2099-02-23 10:09:50\")])]),_c('div',{staticClass:\"login-section\"},[_c('div',{staticClass:\"login-section-title\"},[_vm._v(\"上次登录信息\")]),_c('div',{staticClass:\"login-detail\"},[_vm._v(\"登录设备: 微信小程序\")]),_c('div',{staticClass:\"login-detail\"},[_vm._v(\"登录地点: 中国广东深圳\")]),_c('div',{staticClass:\"login-detail\"},[_vm._v(\"登录时间: 2099-02-05 10:46:45\")])])])]),_c('div',[_c('el-button',{staticStyle:{\"background-color\":\"#6a8a27\",\"border\":\"none\"},attrs:{\"type\":\"primary\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.goPath('/User/UserInfo')}}},[_c('i',{staticClass:\"el-icon-edit\"}),_vm._v(\" 编辑个人信息 \")])],1)])]):_vm._e(),_c('div',{staticClass:\"flex-center\"},[_c('el-card',{staticStyle:{\"flex\":\"1\"}},[_c('div',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_vm._v(\"我的议价\")]),_c('div',{staticClass:\"feature-grid\"},_vm._l((_vm.bargaining),function(item,i){return _c('div',{key:i,staticClass:\"feature-item\"},[(item.value)?_c('el-badge',{attrs:{\"value\":item.value,\"type\":\"danger\"}},[_c('div',{staticClass:\"feature-icon\"},[_c('i',{class:item.icon})])]):_c('div',{staticClass:\"feature-icon\"},[_c('i',{class:item.icon})]),_c('span',{staticClass:\"feature-name\"},[_vm._v(_vm._s(item.title))])],1)}),0)]),_c('div',{staticStyle:{\"width\":\"20px\",\"flex-shrink\":\"0\"}}),_c('el-card',{staticStyle:{\"flex\":\"1\"}},[_c('div',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_vm._v(\"我的订单\")]),_c('div',{staticClass:\"feature-grid\"},_vm._l((_vm.order),function(item,i){return _c('div',{key:i,staticClass:\"feature-item\"},[(item.value)?_c('el-badge',{attrs:{\"value\":item.value,\"type\":\"danger\"}},[_c('div',{staticClass:\"feature-icon\"},[_c('i',{class:item.icon})])]):_c('div',{staticClass:\"feature-icon\"},[_c('i',{class:item.icon})]),_c('span',{staticClass:\"feature-name\"},[_vm._v(_vm._s(item.title))])],1)}),0)])],1)],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"notice-bar__content\"},[_c('i',{staticClass:\"el-icon-lightbulb\"}),_vm._v(\" 尊敬的采购人,欢迎来到xxx平台!您可以先完成下方的基础设置,方便您更高效的采购。 \")])\n}]\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./UserCenter.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./UserCenter.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./UserCenter.vue?vue&type=template&id=281b462a&scoped=true\"\nimport script from \"./UserCenter.vue?vue&type=script&lang=js\"\nexport * from \"./UserCenter.vue?vue&type=script&lang=js\"\nimport style0 from \"./UserCenter.vue?vue&type=style&index=0&id=281b462a&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"281b462a\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","showNotice","_m","on","$event","_e","attrs","_l","headFun","item","i","key","path","class","icon","_v","_s","title","staticStyle","userInfo","slot","avatar","nickname","user_id","copyId","mobile","goPath","bargaining","value","order","staticRenderFns","name","data","userId","computed","mounted","getUserInfo","methods","post","customBaseURL","then","res","console","log","$router","push","input","document","createElement","body","appendChild","select","execCommand","removeChild","$message","message","type","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/700.6882c630.js b/dist/js/700.6882c630.js new file mode 100644 index 0000000..23a464c --- /dev/null +++ b/dist/js/700.6882c630.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[700],{700:function(e,s,a){a.r(s),a.d(s,{default:function(){return o}});var t=function(){var e=this,s=e._self._c;return s("div",{staticClass:"bg"},[s("el-card",{staticStyle:{width:"100%"}},[s("div",{staticClass:"clearfix flex-between",attrs:{slot:"header"},slot:"header"},[s("div",[e._v(" 收货地址 "),s("span",{staticStyle:{"font-size":"12px",color:"#666"}},[e._v("收票人地址统一使用该地址管理设置")])]),s("el-button",{staticStyle:{float:"right"},attrs:{size:"small",type:"primary"},on:{click:function(s){return e.openDialog("add",{})}}},[e._v("新增地址")])],1),s("el-table",{staticStyle:{width:"100%"},attrs:{data:e.addresses,border:""}},[s("el-table-column",{attrs:{prop:"receiver",label:"收货人",width:"120"}}),s("el-table-column",{attrs:{prop:"region",label:"所在地区",width:"120"}}),s("el-table-column",{attrs:{prop:"detailAddress",label:"详细地址",width:"300"}}),s("el-table-column",{attrs:{prop:"phone",label:"手机号码",width:"150"}}),s("el-table-column",{attrs:{prop:"fixedPhone",label:"固定电话",width:"150"}}),s("el-table-column",{attrs:{prop:"alias",label:"地区别名",width:"120"}}),s("el-table-column",{attrs:{label:"操作",width:"200"},scopedSlots:e._u([{key:"default",fn:function(a){return[s("el-button",{attrs:{size:"mini"},on:{click:function(s){return e.handleEdit(a.row)}}},[e._v("编辑")]),s("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(s){return e.handleDelete(a.row)}}},[e._v("删除")])]}}])})],1),s("div",{staticStyle:{"text-align":"right","margin-top":"20px"}},[s("el-pagination",{attrs:{"current-page":e.searchParam.currentPage,"page-sizes":[5,10,20],"page-size":e.searchParam.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.searchParam.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1),s("el-dialog",{attrs:{title:("add"===e.address.type?"新增":"编辑")+"收货地址",visible:e.dialogVisible,width:"700px"},on:{"update:visible":function(s){e.dialogVisible=s}}},[s("el-form",{attrs:{model:e.address,"label-width":"100px",size:"small"}},[s("el-form-item",{attrs:{label:"*收货人"}},[s("el-input",{attrs:{placeholder:"请填写收货人姓名,限制40个字符"},model:{value:e.address.receiver,callback:function(s){e.$set(e.address,"receiver",s)},expression:"address.receiver"}})],1),s("el-form-item",{attrs:{label:"*所在地区"}},[s("el-select",{attrs:{placeholder:"请选择所在地区"},model:{value:e.address.region,callback:function(s){e.$set(e.address,"region",s)},expression:"address.region"}},[s("el-option",{attrs:{label:"北京",value:"北京"}}),s("el-option",{attrs:{label:"上海",value:"上海"}}),s("el-option",{attrs:{label:"广州",value:"广州"}}),s("el-option",{attrs:{label:"深圳",value:"深圳"}})],1)],1),s("el-form-item",{attrs:{label:"*详细地址"}},[s("el-input",{attrs:{placeholder:"请填写详细地址,限制500个字符"},model:{value:e.address.detailAddress,callback:function(s){e.$set(e.address,"detailAddress",s)},expression:"address.detailAddress"}})],1),s("el-form-item",{attrs:{label:"*手机号码"}},[s("el-input",{attrs:{placeholder:"请填写手机号码,限制11位数字"},model:{value:e.address.phone,callback:function(s){e.$set(e.address,"phone",s)},expression:"address.phone"}})],1),s("el-form-item",{attrs:{label:"固定电话"}},[s("el-input",{attrs:{placeholder:"请填写固定号码,限制40个字符"},model:{value:e.address.fixedPhone,callback:function(s){e.$set(e.address,"fixedPhone",s)},expression:"address.fixedPhone"}})],1),s("el-form-item",{attrs:{label:"地区别名"}},[s("el-input",{attrs:{placeholder:"请填写常用名称,限制40个字符"},model:{value:e.address.alias,callback:function(s){e.$set(e.address,"alias",s)},expression:"address.alias"}})],1)],1),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{attrs:{size:"small"},on:{click:function(s){e.dialogVisible=!1}}},[e._v("取消")]),s("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.saveAddress}},[e._v("保存")])],1)],1)],1)},l=[],i=(a(4114),{name:"UserInfo",data(){return{user:{},searchParam:{pageSize:5,currentPage:1,total:10},dialogVisible:!1,addresses:[{id:1,receiver:"张三",region:"北京",detailAddress:"北京市朝阳区xx街道xx小区xx号楼xx单元",phone:"13800138000",fixedPhone:"010-12345678",alias:"家"},{id:2,receiver:"李四",region:"上海",detailAddress:"上海市浦东新区xx街道xx小区xx号楼xx单元",phone:"13900139000",fixedPhone:"021-12345678",alias:"公司"},{id:3,receiver:"王五",region:"广州",detailAddress:"广州市天河区xx街道xx小区xx号楼xx单元",phone:"13700137000",fixedPhone:"020-12345678",alias:"朋友家"}],address:{type:"add",id:"",receiver:"",region:"",detailAddress:"",phone:"",fixedPhone:"",alias:""}}},methods:{handleSizeChange(e){this.searchParam.pageSize=e},handleCurrentChange(e){this.searchParam.currentPage=e},openDialog(e,s){this.address={type:e,id:s.id||"",receiver:s.receiver||"",region:s.region||"",detailAddress:s.detailAddress||"",phone:s.phone||"",fixedPhone:s.fixedPhone||"",alias:s.alias||""},this.dialogVisible=!0},saveAddress(){if(this.address.id){const e=this.addresses.findIndex(e=>e.id===this.address.id);-1!==e&&(this.addresses[e]={...this.address})}else this.address.id=Date.now(),this.addresses.push({...this.address});this.$message({message:"保存成功",type:"success"}),this.dialogVisible=!1},handleEdit(e){this.address={...e},this.dialogVisible=!0},handleDelete(e){this.$confirm("此操作将永久删除该地址, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const s=this.addresses.findIndex(s=>s.id===e.id);-1!==s&&this.addresses.splice(s,1),this.$message({type:"success",message:"删除成功!"})}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}}),r=i,d=a(1656),n=(0,d.A)(r,t,l,!1,null,"2982dbfe",null),o=n.exports}}]); +//# sourceMappingURL=700.6882c630.js.map \ No newline at end of file diff --git a/dist/js/700.6882c630.js.map b/dist/js/700.6882c630.js.map new file mode 100644 index 0000000..4e60351 --- /dev/null +++ b/dist/js/700.6882c630.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/700.6882c630.js","mappings":"qJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,MAAM,CAACF,EAAG,UAAU,CAACG,YAAY,CAAC,MAAQ,SAAS,CAACH,EAAG,MAAM,CAACE,YAAY,wBAAwBE,MAAM,CAAC,KAAO,UAAUC,KAAK,UAAU,CAACL,EAAG,MAAM,CAACF,EAAIQ,GAAG,UAAUN,EAAG,OAAO,CAACG,YAAY,CAAC,YAAY,OAAO,MAAQ,SAAS,CAACL,EAAIQ,GAAG,wBAAwBN,EAAG,YAAY,CAACG,YAAY,CAAC,MAAQ,SAASC,MAAM,CAAC,KAAO,QAAQ,KAAO,WAAWG,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOV,EAAIW,WAAW,MAAO,CAAC,EAAE,IAAI,CAACX,EAAIQ,GAAG,WAAW,GAAGN,EAAG,WAAW,CAACG,YAAY,CAAC,MAAQ,QAAQC,MAAM,CAAC,KAAON,EAAIY,UAAU,OAAS,KAAK,CAACV,EAAG,kBAAkB,CAACI,MAAM,CAAC,KAAO,WAAW,MAAQ,MAAM,MAAQ,SAASJ,EAAG,kBAAkB,CAACI,MAAM,CAAC,KAAO,SAAS,MAAQ,OAAO,MAAQ,SAASJ,EAAG,kBAAkB,CAACI,MAAM,CAAC,KAAO,gBAAgB,MAAQ,OAAO,MAAQ,SAASJ,EAAG,kBAAkB,CAACI,MAAM,CAAC,KAAO,QAAQ,MAAQ,OAAO,MAAQ,SAASJ,EAAG,kBAAkB,CAACI,MAAM,CAAC,KAAO,aAAa,MAAQ,OAAO,MAAQ,SAASJ,EA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","webpack://abcdf/./src/views/User/UserAddress.vue?e7fa","webpack://abcdf/./src/views/User/UserAddress.vue?5d77"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg\"},[_c('el-card',{staticStyle:{\"width\":\"100%\"}},[_c('div',{staticClass:\"clearfix flex-between\",attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('div',[_vm._v(\" 收货地址 \"),_c('span',{staticStyle:{\"font-size\":\"12px\",\"color\":\"#666\"}},[_vm._v(\"收票人地址统一使用该地址管理设置\")])]),_c('el-button',{staticStyle:{\"float\":\"right\"},attrs:{\"size\":\"small\",\"type\":\"primary\"},on:{\"click\":function($event){return _vm.openDialog('add', {})}}},[_vm._v(\"新增地址\")])],1),_c('el-table',{staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.addresses,\"border\":\"\"}},[_c('el-table-column',{attrs:{\"prop\":\"receiver\",\"label\":\"收货人\",\"width\":\"120\"}}),_c('el-table-column',{attrs:{\"prop\":\"region\",\"label\":\"所在地区\",\"width\":\"120\"}}),_c('el-table-column',{attrs:{\"prop\":\"detailAddress\",\"label\":\"详细地址\",\"width\":\"300\"}}),_c('el-table-column',{attrs:{\"prop\":\"phone\",\"label\":\"手机号码\",\"width\":\"150\"}}),_c('el-table-column',{attrs:{\"prop\":\"fixedPhone\",\"label\":\"固定电话\",\"width\":\"150\"}}),_c('el-table-column',{attrs:{\"prop\":\"alias\",\"label\":\"地区别名\",\"width\":\"120\"}}),_c('el-table-column',{attrs:{\"label\":\"操作\",\"width\":\"200\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.handleEdit(scope.row)}}},[_vm._v(\"编辑\")]),_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){return _vm.handleDelete(scope.row)}}},[_vm._v(\"删除\")])]}}])})],1),_c('div',{staticStyle:{\"text-align\":\"right\",\"margin-top\":\"20px\"}},[_c('el-pagination',{attrs:{\"current-page\":_vm.searchParam.currentPage,\"page-sizes\":[5, 10, 20],\"page-size\":_vm.searchParam.pageSize,\"layout\":\"total, sizes, prev, pager, next, jumper\",\"total\":_vm.searchParam.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1)],1),_c('el-dialog',{attrs:{\"title\":`${_vm.address.type === 'add' ? '新增' : '编辑'}收货地址`,\"visible\":_vm.dialogVisible,\"width\":\"700px\"},on:{\"update:visible\":function($event){_vm.dialogVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.address,\"label-width\":\"100px\",\"size\":\"small\"}},[_c('el-form-item',{attrs:{\"label\":\"*收货人\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写收货人姓名,限制40个字符\"},model:{value:(_vm.address.receiver),callback:function ($$v) {_vm.$set(_vm.address, \"receiver\", $$v)},expression:\"address.receiver\"}})],1),_c('el-form-item',{attrs:{\"label\":\"*所在地区\"}},[_c('el-select',{attrs:{\"placeholder\":\"请选择所在地区\"},model:{value:(_vm.address.region),callback:function ($$v) {_vm.$set(_vm.address, \"region\", $$v)},expression:\"address.region\"}},[_c('el-option',{attrs:{\"label\":\"北京\",\"value\":\"北京\"}}),_c('el-option',{attrs:{\"label\":\"上海\",\"value\":\"上海\"}}),_c('el-option',{attrs:{\"label\":\"广州\",\"value\":\"广州\"}}),_c('el-option',{attrs:{\"label\":\"深圳\",\"value\":\"深圳\"}})],1)],1),_c('el-form-item',{attrs:{\"label\":\"*详细地址\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写详细地址,限制500个字符\"},model:{value:(_vm.address.detailAddress),callback:function ($$v) {_vm.$set(_vm.address, \"detailAddress\", $$v)},expression:\"address.detailAddress\"}})],1),_c('el-form-item',{attrs:{\"label\":\"*手机号码\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写手机号码,限制11位数字\"},model:{value:(_vm.address.phone),callback:function ($$v) {_vm.$set(_vm.address, \"phone\", $$v)},expression:\"address.phone\"}})],1),_c('el-form-item',{attrs:{\"label\":\"固定电话\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写固定号码,限制40个字符\"},model:{value:(_vm.address.fixedPhone),callback:function ($$v) {_vm.$set(_vm.address, \"fixedPhone\", $$v)},expression:\"address.fixedPhone\"}})],1),_c('el-form-item',{attrs:{\"label\":\"地区别名\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写常用名称,限制40个字符\"},model:{value:(_vm.address.alias),callback:function ($$v) {_vm.$set(_vm.address, \"alias\", $$v)},expression:\"address.alias\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"size\":\"small\"},on:{\"click\":function($event){_vm.dialogVisible = false}}},[_vm._v(\"取消\")]),_c('el-button',{attrs:{\"size\":\"small\",\"type\":\"primary\"},on:{\"click\":_vm.saveAddress}},[_vm._v(\"保存\")])],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./UserAddress.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./UserAddress.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./UserAddress.vue?vue&type=template&id=2982dbfe&scoped=true\"\nimport script from \"./UserAddress.vue?vue&type=script&lang=js\"\nexport * from \"./UserAddress.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2982dbfe\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","staticStyle","attrs","slot","_v","on","$event","openDialog","addresses","scopedSlots","_u","key","fn","scope","handleEdit","row","handleDelete","searchParam","currentPage","pageSize","total","handleSizeChange","handleCurrentChange","address","type","dialogVisible","model","value","receiver","callback","$$v","$set","expression","region","detailAddress","phone","fixedPhone","alias","saveAddress","staticRenderFns","name","data","user","id","methods","val","item","index","findIndex","Date","now","push","$message","message","$confirm","confirmButtonText","cancelButtonText","then","splice","catch","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/778.d732e8ad.js b/dist/js/778.d732e8ad.js deleted file mode 100644 index e978b9c..0000000 --- a/dist/js/778.d732e8ad.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[778],{2778:function(e,t,l){l.r(t),l.d(t,{default:function(){return o}});var a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"bg"},[t("div",{staticClass:"cart-page common-card"},[t("div",{staticClass:"cart-header"},[e._v(" 购物车(全部 "+e._s(e.totalCount)+" 件) ")]),t("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.currentPageData},on:{select:e.selectRow,"select-all":e.selectAll}},[t("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),t("el-table-column",{attrs:{label:"商品",prop:"image"},scopedSlots:e._u([{key:"default",fn:function(l){return[t("div",{staticStyle:{display:"flex","align-items":"center"}},[t("img",{staticClass:"product-img",attrs:{src:"https://picsum.photos/200/200?random=1",alt:"商品"}}),t("div",{staticStyle:{"padding-left":"10px"}},[e._v(e._s(l.row.title))])])]}}])}),t("el-table-column",{attrs:{label:"规格",prop:"spec",align:"center"}}),t("el-table-column",{attrs:{label:"单价(元)",prop:"price",align:"center",width:"100"}}),t("el-table-column",{attrs:{label:"数量",prop:"quantity",width:"160",align:"center"},scopedSlots:e._u([{key:"default",fn:function(l){return[t("el-input-number",{attrs:{size:"small",min:1,step:1},model:{value:l.row.quantity,callback:function(t){e.$set(l.row,"quantity",t)},expression:"scope.row.quantity"}})]}}])}),t("el-table-column",{attrs:{label:"金额(元)",prop:"amount",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" ¥"+e._s(t.row.price*t.row.quantity)+" ")]}}])}),t("el-table-column",{attrs:{label:"操作",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(l){return[t("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handleDelete(l.row)}}},[e._v("删除")])]}}])})],1),t("el-pagination",{staticStyle:{"margin-top":"20px","text-align":"right"},attrs:{"current-page":e.currentPage,"page-sizes":[3,5,10],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}),t("div",{staticClass:"cart-footer"},[t("div",{staticClass:"selected-info"},[e._v(" 已选商品 "+e._s(e.selectedRows.length)+" 件 总价: ¥0 (不含运费) ")]),t("el-button",{attrs:{type:"primary",disabled:0===e.selectedRows.length},on:{click:e.handleCheckout}},[e._v("去结算")])],1)],1)])},i=[],s=(l(4114),l(8111),l(2489),l(7588),l(1701),l(3579),{name:"CartPage",data(){return{cartData:[{id:1,image:"https://via.placeholder.com/60",title:"产品标题产品标题",spec:"规格名称一",price:349,quantity:1},{id:2,image:"https://via.placeholder.com/60",title:"产品标题产品标题",spec:"规格名称一",price:199,quantity:1},{id:3,image:"https://via.placeholder.com/60",title:"产品标题产品标题",spec:"规格名称一",price:389,quantity:1},{id:4,image:"https://via.placeholder.com/60",title:"产品标题产品标题",spec:"规格名称一",price:249,quantity:1},{id:5,image:"https://via.placeholder.com/60",title:"产品标题产品标题",spec:"规格名称一",price:449,quantity:1},{id:6,image:"https://via.placeholder.com/60",title:"产品标题产品标题",spec:"规格名称二",price:129,quantity:1},{id:7,image:"https://via.placeholder.com/60",title:"产品标题产品标题",spec:"规格名称二",price:279,quantity:1}],pageSize:3,currentPage:1,selectedRows:[{id:1}]}},computed:{totalCount(){return this.cartData.length},currentPageData(){const e=(this.currentPage-1)*this.pageSize,t=e+this.pageSize;return this.cartData.slice(e,t)}},mounted(){this.refreshTableCheck()},methods:{refreshTableCheck(){this.$nextTick(()=>{let e=this.selectedRows.map(e=>e.id);this.currentPageData.forEach(t=>{e.includes(t.id)?this.$refs.multipleTable.toggleRowSelection(t,!0):this.$refs.multipleTable.toggleRowSelection(t,!1)})})},selectRow(e,t){let l=this.selectedRows.findIndex(e=>e.id===t.id);console.log(l),l>=0?this.selectedRows.splice(l,1):this.selectedRows.push(t),console.log(this.selectedRows)},selectAll(e){if(e.length>0){let t=e.filter(e=>!this.selectedRows.some(t=>t.id==e.id));this.selectedRows=this.selectedRows.concat(t)}else this.selectedRows=this.selectedRows.filter(e=>!this.currentPageData.some(t=>t.id==e.id));console.log(e)},handleDelete(e){this.cartData=this.cartData.filter(t=>t.id!==e.id),this.selectedRows=this.selectedRows.filter(t=>t.id!==e.id),console.log("删除商品:",e),this.refreshTableCheck()},handleSizeChange(e){this.pageSize=e,this.currentPage=1,this.refreshTableCheck()},handleCurrentChange(e){this.currentPage=e,this.refreshTableCheck()},handleCheckout(){console.log("去结算,选中商品ID:",this.selectedRows)}}}),c=s,r=l(1656),n=(0,r.A)(c,a,i,!1,null,"0c1d405f",null),o=n.exports}}]); -//# sourceMappingURL=778.d732e8ad.js.map \ No newline at end of file diff --git a/dist/js/778.d732e8ad.js.map b/dist/js/778.d732e8ad.js.map deleted file mode 100644 index 1f28677..0000000 --- a/dist/js/778.d732e8ad.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/778.d732e8ad.js","mappings":"sJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,MAAM,CAACF,EAAG,MAAM,CAACE,YAAY,yBAAyB,CAACF,EAAG,MAAM,CAAC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A,EACA,KAAA3B,aAAAgC,OAAAL,EAAA,GAEA,KAAA3B,aAAAiC,KAAAjD,GAEA8C,QAAAC,IAAA,KAAA/B,aACA,EACAtB,SAAAA,CAAAgD,GAEA,GAAAA,EAAAzB,OAAA,GACA,IAAAiC,EAAAR,EAAAS,OAAAN,IAAA,KAAA7B,aAAAoC,KAAAC,GAAAA,EAAA9B,IAAAsB,EAAAtB,KACA,KAAAP,aAAA,KAAAA,aAAAsC,OAAAJ,EACA,MAEA,KAAAlC,aAAA,KAAAA,aAAAmC,OAAAN,IAAA,KAAAtD,gBAAA6D,KAAAC,GAAAA,EAAA9B,IAAAsB,EAAAtB,KAEAuB,QAAAC,IAAAL,EACA,EAKA/B,YAAAA,CAAAX,GAEA,KAAAsB,SAAA,KAAAA,SAAA6B,OAAAf,GAAAA,EAAAb,KAAAvB,EAAAuB,IAEA,KAAAP,aAAA,KAAAA,aAAAmC,OAAAN,GAAAA,EAAAtB,KAAAvB,EAAAuB,IACAuB,QAAAC,IAAA,QAAA/C,GAEA,KAAA+B,mBAEA,EAGAjB,gBAAAA,CAAAyC,GACA,KAAA1C,SAAA0C,EACA,KAAA3C,YAAA,EACA,KAAAmB,mBACA,EAGAhB,mBAAAA,CAAAwC,GACA,KAAA3C,YAAA2C,EACA,KAAAxB,mBAEA,EAGAb,cAAAA,GACA4B,QAAAC,IAAA,mBAAA/B,aAEA,KC5LoQ,I,UCQhQwC,GAAY,OACd,EACA7E,EACAwC,GACA,EACA,KACA,WACA,MAIF,EAAeqC,E","sources":["webpack://abcdf/./src/views/User/ShoppingCart.vue","webpack://abcdf/src/views/User/ShoppingCart.vue","webpack://abcdf/./src/views/User/ShoppingCart.vue?5cfe","webpack://abcdf/./src/views/User/ShoppingCart.vue?8f0f"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg\"},[_c('div',{staticClass:\"cart-page common-card\"},[_c('div',{staticClass:\"cart-header\"},[_vm._v(\" 购物车(全部 \"+_vm._s(_vm.totalCount)+\" 件) \")]),_c('el-table',{ref:\"multipleTable\",staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.currentPageData},on:{\"select\":_vm.selectRow,\"select-all\":_vm.selectAll}},[_c('el-table-column',{attrs:{\"type\":\"selection\",\"width\":\"55\",\"align\":\"center\"}}),_c('el-table-column',{attrs:{\"label\":\"商品\",\"prop\":\"image\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('div',{staticStyle:{\"display\":\"flex\",\"align-items\":\"center\"}},[_c('img',{staticClass:\"product-img\",attrs:{\"src\":\"https://picsum.photos/200/200?random=1\",\"alt\":\"商品\"}}),_c('div',{staticStyle:{\"padding-left\":\"10px\"}},[_vm._v(_vm._s(scope.row.title))])])]}}])}),_c('el-table-column',{attrs:{\"label\":\"规格\",\"prop\":\"spec\",\"align\":\"center\"}}),_c('el-table-column',{attrs:{\"label\":\"单价(元)\",\"prop\":\"price\",\"align\":\"center\",\"width\":\"100\"}}),_c('el-table-column',{attrs:{\"label\":\"数量\",\"prop\":\"quantity\",\"width\":\"160\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-input-number',{attrs:{\"size\":\"small\",\"min\":1,\"step\":1},model:{value:(scope.row.quantity),callback:function ($$v) {_vm.$set(scope.row, \"quantity\", $$v)},expression:\"scope.row.quantity\"}})]}}])}),_c('el-table-column',{attrs:{\"label\":\"金额(元)\",\"prop\":\"amount\",\"width\":\"100\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\" ¥\"+_vm._s(scope.row.price * scope.row.quantity)+\" \")]}}])}),_c('el-table-column',{attrs:{\"label\":\"操作\",\"width\":\"100\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"type\":\"text\"},on:{\"click\":function($event){return _vm.handleDelete(scope.row)}}},[_vm._v(\"删除\")])]}}])})],1),_c('el-pagination',{staticStyle:{\"margin-top\":\"20px\",\"text-align\":\"right\"},attrs:{\"current-page\":_vm.currentPage,\"page-sizes\":[3, 5, 10],\"page-size\":_vm.pageSize,\"layout\":\"total, sizes, prev, pager, next, jumper\",\"total\":_vm.totalCount},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}}),_c('div',{staticClass:\"cart-footer\"},[_c('div',{staticClass:\"selected-info\"},[_vm._v(\" 已选商品 \"+_vm._s(_vm.selectedRows.length)+\" 件 总价: ¥0 (不含运费) \")]),_c('el-button',{attrs:{\"type\":\"primary\",\"disabled\":_vm.selectedRows.length === 0},on:{\"click\":_vm.handleCheckout}},[_vm._v(\"去结算\")])],1)],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ShoppingCart.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ShoppingCart.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ShoppingCart.vue?vue&type=template&id=0c1d405f&scoped=true\"\nimport script from \"./ShoppingCart.vue?vue&type=script&lang=js\"\nexport * from \"./ShoppingCart.vue?vue&type=script&lang=js\"\nimport style0 from \"./ShoppingCart.vue?vue&type=style&index=0&id=0c1d405f&prod&scoped=true&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0c1d405f\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","_v","_s","totalCount","ref","staticStyle","attrs","currentPageData","on","selectRow","selectAll","scopedSlots","_u","key","fn","scope","row","title","model","value","quantity","callback","$$v","$set","expression","price","$event","handleDelete","currentPage","pageSize","handleSizeChange","handleCurrentChange","selectedRows","length","handleCheckout","staticRenderFns","name","data","cartData","id","image","spec","computed","start","end","slice","mounted","refreshTableCheck","methods","$nextTick","selectIds","map","item","forEach","includes","$refs","multipleTable","toggleRowSelection","selection","index","findIndex","v","console","log","splice","push","currentNotInselection","filter","some","x","concat","val","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/828.7b0404cc.js b/dist/js/828.7b0404cc.js deleted file mode 100644 index 8622421..0000000 --- a/dist/js/828.7b0404cc.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[828],{3280:function(t,s,i){i.d(s,{A:function(){return d}});var a=function(){var t=this,s=t._self._c;return s("div",{staticClass:"product-list"},[s("div",{staticClass:"product-grid"},t._l(t.products,function(i){return s("div",{key:i.id,staticClass:"product-card"},[s("div",{staticClass:"product-img"},[s("a",{attrs:{href:`/detail/${i.id}`,to:`/detail/${i.id}`}},[s("img",{directives:[{name:"lazy",rawName:"v-lazy",value:i.image,expression:"product.image"}],staticClass:"product-pic",attrs:{alt:i.name}})])]),s("div",{staticClass:"product-info"},[s("div",{staticClass:"flex-between"},[s("div",{staticClass:"product-price"},[s("span",{staticClass:"current-price"},[t._v("¥"+t._s(i.price.toFixed(2)))]),i.originalPrice?s("span",{staticClass:"original-price"},[t._v("¥"+t._s(i.originalPrice.toFixed(2)))]):t._e()]),i.sales?s("div",{staticClass:"product-sales"},[s("span",[t._v("已售 "+t._s(i.sales)+" 件")])]):t._e()]),s("h3",{staticClass:"product-name"},[s("a",{attrs:{href:`/detail/${i.id}`,to:`/detail/${i.id}`}},[t._v(" "+t._s(i.name)+" ")])]),s("div",{staticClass:"product-actions"},[s("el-button",{staticStyle:{"background-color":"#6a8a27",border:"none"},attrs:{type:"primary",size:"small"},on:{click:function(s){return t.addToCart(i)}}},[s("el-icon",{attrs:{name:"el-icon-shopping-cart"}}),t._v(" 加入购物车 ")],1)],1)])])}),0),0===t.products.length?s("div",{staticClass:"no-products"},[s("el-empty",{attrs:{description:"暂无相关商品"}})],1):t._e()])},e=[],r=(i(4114),i(3518)),o={name:"ProductList",props:{products:{type:Array,default:()=>[]}},methods:{...(0,r.i0)(["addToCart"]),addToCart(t){this.$store.getters.isUserLogin?(this.addToCart({id:t.id,name:t.name,price:t.price,image:t.image,quantity:1}),this.$message.success("已加入购物车")):this.$confirm("您尚未登录,是否前往登录?","提示",{confirmButtonText:"登录",cancelButtonText:"取消",type:"info"}).then(()=>{this.$router.push({path:"/login",query:{redirect:this.$route.fullPath}})}).catch(()=>{})}}},c=o,n=i(1656),l=(0,n.A)(c,a,e,!1,null,"019f4a60",null),d=l.exports},9828:function(t,s,i){i.r(s),i.d(s,{default:function(){return p}});i(4114);var a=function(){var t=this,s=t._self._c;return s("div",{staticClass:"home-page"},[s("el-carousel",{staticClass:"home-carousel",attrs:{height:"500px","indicator-position":"outside"}},t._l(4,function(t){return s("el-carousel-item",{key:t},[s("img",{directives:[{name:"lazy",rawName:"v-lazy",value:`https://picsum.photos/1200/500?random=${t}`,expression:"`https://picsum.photos/1200/500?random=${item}`"}],staticClass:"carousel-img",attrs:{alt:"轮播图片"}})])}),1),s("div",{staticClass:"category-nav"},[s("h2",{staticClass:"section-title"},[t._v("商品分类")]),s("div",{staticClass:"category-list"},t._l(t.categories,function(i){return s("div",{key:i.id,staticClass:"category-item",on:{click:function(s){return t.$router.push(`/category/${i.id}`)}}},[s("el-icon",{staticClass:"category-icon",attrs:{name:i.icon}}),s("span",{staticClass:"category-name"},[t._v(t._s(i.name))])],1)}),0)]),s("div",{staticClass:"hot-products"},[t._m(0),s("ProductList",{attrs:{products:t.hotProducts}})],1),s("div",{staticClass:"new-products"},[t._m(1),s("ProductList",{attrs:{products:t.newProducts}})],1),s("div",{staticClass:"promotion-section"},[s("h2",{staticClass:"section-title"},[t._v("限时促销")]),s("div",{staticClass:"promotion-container"},[s("div",{staticClass:"promotion-item"},[s("img",{directives:[{name:"lazy",rawName:"v-lazy",value:"https://picsum.photos/600/300?random=10",expression:"`https://picsum.photos/600/300?random=10`"}],staticClass:"promotion-img",attrs:{alt:"促销活动图片"}}),s("div",{staticClass:"promotion-info"},[s("h3",[t._v("夏季大促")]),s("p",[t._v("全场商品低至5折")]),s("el-button",{attrs:{type:"primary",size:"medium"}},[t._v("立即抢购")])],1)]),s("div",{staticClass:"promotion-item"},[s("img",{directives:[{name:"lazy",rawName:"v-lazy",value:"https://picsum.photos/600/300?random=11",expression:"`https://picsum.photos/600/300?random=11`"}],staticClass:"promotion-img",attrs:{alt:"促销活动图片"}}),s("div",{staticClass:"promotion-info"},[s("h3",[t._v("新品首发")]),s("p",[t._v("限量发售,先到先得")]),s("el-button",{attrs:{type:"primary",size:"medium"}},[t._v("立即抢购")])],1)])])])],1)},e=[function(){var t=this,s=t._self._c;return s("div",{staticClass:"section-header"},[s("h2",{staticClass:"section-title"},[t._v("热门商品")]),s("a",{staticClass:"more-link",attrs:{href:"#"}},[t._v("查看更多 "),s("i",{staticClass:"el-icon-arrow-right"})])])},function(){var t=this,s=t._self._c;return s("div",{staticClass:"section-header"},[s("h2",{staticClass:"section-title"},[t._v("新品上市")]),s("a",{staticClass:"more-link",attrs:{href:"#"}},[t._v("查看更多 "),s("i",{staticClass:"el-icon-arrow-right"})])])}],r=i(3518),o=i(3280),c={name:"Home",components:{ProductList:o.A},data(){return{hotProducts:[{id:1,name:"超薄笔记本电脑",price:5999,originalPrice:6999,image:"https://picsum.photos/300/300?random=1",sales:1254,categoryId:1},{id:2,name:"智能手表",price:1599,originalPrice:1799,image:"https://picsum.photos/300/300?random=2",sales:856,categoryId:1},{id:3,name:"纯棉T恤",price:99,originalPrice:199,image:"https://picsum.photos/300/300?random=3",sales:2356,categoryId:2},{id:4,name:"休闲牛仔裤",price:199,originalPrice:399,image:"https://picsum.photos/300/300?random=4",sales:1890,categoryId:2},{id:5,name:"舒适沙发",price:2999,originalPrice:3999,image:"https://picsum.photos/300/300?random=5",sales:324,categoryId:3},{id:6,name:"智能扫地机器人",price:1899,originalPrice:2299,image:"https://picsum.photos/300/300?random=6",sales:754,categoryId:3}],newProducts:[{id:7,name:"高清投影仪",price:3299,originalPrice:3699,image:"https://picsum.photos/300/300?random=7",sales:156,categoryId:1},{id:8,name:"保湿面霜",price:299,originalPrice:359,image:"https://picsum.photos/300/300?random=8",sales:423,categoryId:4},{id:9,name:"有机水果礼盒",price:159,originalPrice:199,image:"https://picsum.photos/300/300?random=9",sales:287,categoryId:5},{id:10,name:"经典文学名著",price:129,originalPrice:199,image:"https://picsum.photos/300/300?random=10",sales:342,categoryId:6},{id:11,name:"无线蓝牙耳机",price:799,originalPrice:999,image:"https://picsum.photos/300/300?random=11",sales:567,categoryId:1},{id:12,name:"运动鞋",price:499,originalPrice:699,image:"https://picsum.photos/300/300?random=12",sales:432,categoryId:2}]}},computed:{...(0,r.L8)(["getCategories"]),categories(){return this.getCategories}},created(){this.fetchCategories()},methods:{...(0,r.i0)(["fetchCategories"])}},n=c,l=i(1656),d=(0,l.A)(n,a,e,!1,null,"34d6a3aa",null),p=d.exports}}]); -//# sourceMappingURL=828.7b0404cc.js.map \ No newline at end of file diff --git a/dist/js/828.7b0404cc.js.map b/dist/js/828.7b0404cc.js.map deleted file mode 100644 index 5135f0f..0000000 --- a/dist/js/828.7b0404cc.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/828.7b0404cc.js","mappings":"yIAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,MAAM,CAACE,YAAY,gBAAgBJ,EAAIK,GAAIL,EAAIM,SAAU,SAASC,GAAS,OAAOL,EAAG,MAAM,CAACM,IAAID,EAAQE,GAAGL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AIF,EAAeyB,E","sources":["webpack://abcdf/./src/components/product/ProductList.vue","webpack://abcdf/src/components/product/ProductList.vue","webpack://abcdf/./src/components/product/ProductList.vue?43ae","webpack://abcdf/./src/components/product/ProductList.vue?0bfb","webpack://abcdf/./src/views/Home.vue","webpack://abcdf/src/views/Home.vue","webpack://abcdf/./src/views/Home.vue?a787","webpack://abcdf/./src/views/Home.vue?8611"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"product-list\"},[_c('div',{staticClass:\"product-grid\"},_vm._l((_vm.products),function(product){return _c('div',{key:product.id,staticClass:\"product-card\"},[_c('div',{staticClass:\"product-img\"},[_c('a',{attrs:{\"href\":`/detail/${product.id}`,\"to\":`/detail/${product.id}`}},[_c('img',{directives:[{name:\"lazy\",rawName:\"v-lazy\",value:(product.image),expression:\"product.image\"}],staticClass:\"product-pic\",attrs:{\"alt\":product.name}})])]),_c('div',{staticClass:\"product-info\"},[_c('div',{staticClass:\"flex-between\"},[_c('div',{staticClass:\"product-price\"},[_c('span',{staticClass:\"current-price\"},[_vm._v(\"¥\"+_vm._s(product.price.toFixed(2)))]),(product.originalPrice)?_c('span',{staticClass:\"original-price\"},[_vm._v(\"¥\"+_vm._s(product.originalPrice.toFixed(2)))]):_vm._e()]),(product.sales)?_c('div',{staticClass:\"product-sales\"},[_c('span',[_vm._v(\"已售 \"+_vm._s(product.sales)+\" 件\")])]):_vm._e()]),_c('h3',{staticClass:\"product-name\"},[_c('a',{attrs:{\"href\":`/detail/${product.id}`,\"to\":`/detail/${product.id}`}},[_vm._v(\" \"+_vm._s(product.name)+\" \")])]),_c('div',{staticClass:\"product-actions\"},[_c('el-button',{staticStyle:{\"background-color\":\"#6a8a27\",\"border\":\"none\"},attrs:{\"type\":\"primary\",\"size\":\"small\"},on:{\"click\":function($event){return _vm.addToCart(product)}}},[_c('el-icon',{attrs:{\"name\":\"el-icon-shopping-cart\"}}),_vm._v(\" 加入购物车 \")],1)],1)])])}),0),(_vm.products.length === 0)?_c('div',{staticClass:\"no-products\"},[_c('el-empty',{attrs:{\"description\":\"暂无相关商品\"}})],1):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ProductList.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ProductList.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ProductList.vue?vue&type=template&id=019f4a60&scoped=true\"\nimport script from \"./ProductList.vue?vue&type=script&lang=js\"\nexport * from \"./ProductList.vue?vue&type=script&lang=js\"\nimport style0 from \"./ProductList.vue?vue&type=style&index=0&id=019f4a60&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"019f4a60\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"home-page\"},[_c('el-carousel',{staticClass:\"home-carousel\",attrs:{\"height\":\"500px\",\"indicator-position\":\"outside\"}},_vm._l((4),function(item){return _c('el-carousel-item',{key:item},[_c('img',{directives:[{name:\"lazy\",rawName:\"v-lazy\",value:(`https://picsum.photos/1200/500?random=${item}`),expression:\"`https://picsum.photos/1200/500?random=${item}`\"}],staticClass:\"carousel-img\",attrs:{\"alt\":\"轮播图片\"}})])}),1),_c('div',{staticClass:\"category-nav\"},[_c('h2',{staticClass:\"section-title\"},[_vm._v(\"商品分类\")]),_c('div',{staticClass:\"category-list\"},_vm._l((_vm.categories),function(category){return _c('div',{key:category.id,staticClass:\"category-item\",on:{\"click\":function($event){return _vm.$router.push(`/category/${category.id}`)}}},[_c('el-icon',{staticClass:\"category-icon\",attrs:{\"name\":category.icon}}),_c('span',{staticClass:\"category-name\"},[_vm._v(_vm._s(category.name))])],1)}),0)]),_c('div',{staticClass:\"hot-products\"},[_vm._m(0),_c('ProductList',{attrs:{\"products\":_vm.hotProducts}})],1),_c('div',{staticClass:\"new-products\"},[_vm._m(1),_c('ProductList',{attrs:{\"products\":_vm.newProducts}})],1),_c('div',{staticClass:\"promotion-section\"},[_c('h2',{staticClass:\"section-title\"},[_vm._v(\"限时促销\")]),_c('div',{staticClass:\"promotion-container\"},[_c('div',{staticClass:\"promotion-item\"},[_c('img',{directives:[{name:\"lazy\",rawName:\"v-lazy\",value:(`https://picsum.photos/600/300?random=10`),expression:\"`https://picsum.photos/600/300?random=10`\"}],staticClass:\"promotion-img\",attrs:{\"alt\":\"促销活动图片\"}}),_c('div',{staticClass:\"promotion-info\"},[_c('h3',[_vm._v(\"夏季大促\")]),_c('p',[_vm._v(\"全场商品低至5折\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"medium\"}},[_vm._v(\"立即抢购\")])],1)]),_c('div',{staticClass:\"promotion-item\"},[_c('img',{directives:[{name:\"lazy\",rawName:\"v-lazy\",value:(`https://picsum.photos/600/300?random=11`),expression:\"`https://picsum.photos/600/300?random=11`\"}],staticClass:\"promotion-img\",attrs:{\"alt\":\"促销活动图片\"}}),_c('div',{staticClass:\"promotion-info\"},[_c('h3',[_vm._v(\"新品首发\")]),_c('p',[_vm._v(\"限量发售,先到先得\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"medium\"}},[_vm._v(\"立即抢购\")])],1)])])])],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"section-header\"},[_c('h2',{staticClass:\"section-title\"},[_vm._v(\"热门商品\")]),_c('a',{staticClass:\"more-link\",attrs:{\"href\":\"#\"}},[_vm._v(\"查看更多 \"),_c('i',{staticClass:\"el-icon-arrow-right\"})])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"section-header\"},[_c('h2',{staticClass:\"section-title\"},[_vm._v(\"新品上市\")]),_c('a',{staticClass:\"more-link\",attrs:{\"href\":\"#\"}},[_vm._v(\"查看更多 \"),_c('i',{staticClass:\"el-icon-arrow-right\"})])])\n}]\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Home.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Home.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Home.vue?vue&type=template&id=34d6a3aa&scoped=true\"\nimport script from \"./Home.vue?vue&type=script&lang=js\"\nexport * from \"./Home.vue?vue&type=script&lang=js\"\nimport style0 from \"./Home.vue?vue&type=style&index=0&id=34d6a3aa&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"34d6a3aa\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","_l","products","product","key","id","attrs","directives","name","rawName","value","image","expression","_v","_s","price","toFixed","originalPrice","_e","sales","staticStyle","on","$event","addToCart","length","staticRenderFns","props","type","Array","default","methods","mapActions","$store","getters","isUserLogin","quantity","$message","success","$confirm","confirmButtonText","cancelButtonText","then","$router","push","path","query","redirect","$route","fullPath","catch","component","item","categories","category","icon","_m","hotProducts","newProducts","components","ProductList","data","categoryId","computed","mapGetters","getCategories","created","fetchCategories"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/828.dc20517d.js b/dist/js/828.dc20517d.js new file mode 100644 index 0000000..0d0c625 --- /dev/null +++ b/dist/js/828.dc20517d.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[828],{4458:function(t,s,i){i.d(s,{A:function(){return p}});var a=function(){var t=this,s=t._self._c;return s("div",{staticClass:"product-list"},[s("div",{staticClass:"product-grid"},t._l(t.products,function(i){return s("div",{key:i.id,staticClass:"product-card"},[s("div",{staticClass:"product-img"},[s("router-link",{attrs:{to:`/Detail/${i.id}`}},[s("img",{directives:[{name:"lazy",rawName:"v-lazy",value:i.headimg,expression:"product.headimg"}],staticClass:"product-pic",attrs:{alt:i.title}})])],1),s("div",{staticClass:"product-info"},[s("div",{staticClass:"flex-between"},[s("div",{staticClass:"product-price"},[s("span",{staticClass:"current-price"},[t._v("¥"+t._s(i.price/100))]),i.market_price?s("span",{staticClass:"original-price"},[t._v("¥"+t._s(i.market_price/100))]):t._e()]),i.sales?s("div",{staticClass:"product-sales"},[s("span",[t._v("已售 "+t._s(i.sales_number)+" 件")])]):t._e()]),s("h3",{staticClass:"product-name"},[s("router-link",{attrs:{to:`/Detail/${i.id}`}},[t._v(" "+t._s(i.title)+" ")])],1),s("div",{staticClass:"product-actions"},[s("el-button",{staticStyle:{"background-color":"#6a8a27",border:"none"},attrs:{type:"primary",size:"small"},on:{click:function(s){return t.addToCart(i)}}},[s("el-icon",{attrs:{name:"el-icon-shopping-cart"}}),t._v(" 加入购物车 ")],1)],1)])])}),0),0===t.products.length?s("div",{staticClass:"no-products"},[s("el-empty",{attrs:{description:"暂无相关商品"}})],1):t._e()])},e=[],r=(i(4114),i(3518)),o={name:"ProductList",props:{products:{type:Array,default:()=>[]}},methods:{...(0,r.i0)(["addToCart"]),addToCart(t){this.$store.getters.isUserLogin?(this.addToCart({id:t.id,name:t.name,price:t.price,image:t.image,quantity:1}),this.$message.success("已加入购物车")):this.$confirm("您尚未登录,是否前往登录?","提示",{confirmButtonText:"登录",cancelButtonText:"取消",type:"info"}).then(()=>{this.$router.push({path:"/login",query:{redirect:this.$route.fullPath}})}).catch(()=>{})}}},c=o,n=i(1656),l=(0,n.A)(c,a,e,!1,null,"6ecfbe40",null),p=l.exports},9828:function(t,s,i){i.r(s),i.d(s,{default:function(){return d}});i(4114);var a=function(){var t=this,s=t._self._c;return s("div",{staticClass:"home-page"},[s("el-carousel",{staticClass:"home-carousel",attrs:{height:"500px","indicator-position":"outside"}},t._l(4,function(t){return s("el-carousel-item",{key:t},[s("img",{directives:[{name:"lazy",rawName:"v-lazy",value:`https://picsum.photos/1200/500?random=${t}`,expression:"`https://picsum.photos/1200/500?random=${item}`"}],staticClass:"carousel-img",attrs:{alt:"轮播图片"}})])}),1),s("div",{staticClass:"category-nav"},[s("h2",{staticClass:"section-title"},[t._v("商品分类")]),s("div",{staticClass:"category-list"},t._l(t.categories,function(i){return s("div",{key:i.id,staticClass:"category-item",on:{click:function(s){return t.$router.push(`/category/${i.id}`)}}},[s("el-icon",{staticClass:"category-icon",attrs:{name:i.icon}}),s("span",{staticClass:"category-name"},[t._v(t._s(i.name))])],1)}),0)]),s("div",{staticClass:"hot-products"},[t._m(0),s("ProductList",{attrs:{products:t.hotProducts}})],1),s("div",{staticClass:"new-products"},[t._m(1),s("ProductList",{attrs:{products:t.newProducts}})],1),s("div",{staticClass:"promotion-section"},[s("h2",{staticClass:"section-title"},[t._v("限时促销")]),s("div",{staticClass:"promotion-container"},[s("div",{staticClass:"promotion-item"},[s("img",{directives:[{name:"lazy",rawName:"v-lazy",value:"https://picsum.photos/600/300?random=10",expression:"`https://picsum.photos/600/300?random=10`"}],staticClass:"promotion-img",attrs:{alt:"促销活动图片"}}),s("div",{staticClass:"promotion-info"},[s("h3",[t._v("夏季大促")]),s("p",[t._v("全场商品低至5折")]),s("el-button",{attrs:{type:"primary",size:"medium"}},[t._v("立即抢购")])],1)]),s("div",{staticClass:"promotion-item"},[s("img",{directives:[{name:"lazy",rawName:"v-lazy",value:"https://picsum.photos/600/300?random=11",expression:"`https://picsum.photos/600/300?random=11`"}],staticClass:"promotion-img",attrs:{alt:"促销活动图片"}}),s("div",{staticClass:"promotion-info"},[s("h3",[t._v("新品首发")]),s("p",[t._v("限量发售,先到先得")]),s("el-button",{attrs:{type:"primary",size:"medium"}},[t._v("立即抢购")])],1)])])])],1)},e=[function(){var t=this,s=t._self._c;return s("div",{staticClass:"section-header"},[s("h2",{staticClass:"section-title"},[t._v("热门商品")]),s("a",{staticClass:"more-link",attrs:{href:"#"}},[t._v("查看更多 "),s("i",{staticClass:"el-icon-arrow-right"})])])},function(){var t=this,s=t._self._c;return s("div",{staticClass:"section-header"},[s("h2",{staticClass:"section-title"},[t._v("新品上市")]),s("a",{staticClass:"more-link",attrs:{href:"#"}},[t._v("查看更多 "),s("i",{staticClass:"el-icon-arrow-right"})])])}],r=i(3518),o=i(4458),c={name:"Home",components:{ProductList:o.A},data(){return{hotProducts:[{id:1,name:"超薄笔记本电脑",price:5999,originalPrice:6999,image:"https://picsum.photos/300/300?random=1",sales:1254,categoryId:1},{id:2,name:"智能手表",price:1599,originalPrice:1799,image:"https://picsum.photos/300/300?random=2",sales:856,categoryId:1},{id:3,name:"纯棉T恤",price:99,originalPrice:199,image:"https://picsum.photos/300/300?random=3",sales:2356,categoryId:2},{id:4,name:"休闲牛仔裤",price:199,originalPrice:399,image:"https://picsum.photos/300/300?random=4",sales:1890,categoryId:2},{id:5,name:"舒适沙发",price:2999,originalPrice:3999,image:"https://picsum.photos/300/300?random=5",sales:324,categoryId:3},{id:6,name:"智能扫地机器人",price:1899,originalPrice:2299,image:"https://picsum.photos/300/300?random=6",sales:754,categoryId:3}],newProducts:[{id:7,name:"高清投影仪",price:3299,originalPrice:3699,image:"https://picsum.photos/300/300?random=7",sales:156,categoryId:1},{id:8,name:"保湿面霜",price:299,originalPrice:359,image:"https://picsum.photos/300/300?random=8",sales:423,categoryId:4},{id:9,name:"有机水果礼盒",price:159,originalPrice:199,image:"https://picsum.photos/300/300?random=9",sales:287,categoryId:5},{id:10,name:"经典文学名著",price:129,originalPrice:199,image:"https://picsum.photos/300/300?random=10",sales:342,categoryId:6},{id:11,name:"无线蓝牙耳机",price:799,originalPrice:999,image:"https://picsum.photos/300/300?random=11",sales:567,categoryId:1},{id:12,name:"运动鞋",price:499,originalPrice:699,image:"https://picsum.photos/300/300?random=12",sales:432,categoryId:2}]}},computed:{...(0,r.L8)(["getCategories"]),categories(){return this.getCategories}},created(){this.fetchCategories()},methods:{...(0,r.i0)(["fetchCategories"])}},n=c,l=i(1656),p=(0,l.A)(n,a,e,!1,null,"34d6a3aa",null),d=p.exports}}]); +//# sourceMappingURL=828.dc20517d.js.map \ No newline at end of file diff --git a/dist/js/828.dc20517d.js.map b/dist/js/828.dc20517d.js.map new file mode 100644 index 0000000..a26ef41 --- /dev/null +++ b/dist/js/828.dc20517d.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/828.dc20517d.js","mappings":"yIAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,MAAM,CAACE,YAAY,gBAAgBJ,EAAIK,GAAIL,EAAIM,SAAU,SAASC,GAAS,OAAOL,EAAG,MAAM,CAACM,IAAID,EAAQE,GAAGL,YAAY,gBAAgB,CAACF,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,cAAc,CAACQ,MAAM,CAAC,GAAK,WAAWH,EAAQE,OAAO,CAACP,EAAG,MAAM,CAACS,WAAW,CAAC,CAACC,KAAK,OAAOC,QAAQ,SAASC,MAAOP,EAAQQ,QAASC,WAAW,oBAAoBZ,YAAY,cAAcM,MAAM,CAAC,IAAMH,EAAQU,YAAY,GAAGf,EAAG,MAAM,CAACE,YAAY,gB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IACA6C,WAAA,GAEA,CACA3D,GAAA,EACAG,KAAA,UACAQ,MAAA,KACA+C,cAAA,KACA3B,MAAA,yCACAjB,MAAA,IACA6C,WAAA,IAIAL,YAAA,CACA,CACAtD,GAAA,EACAG,KAAA,QACAQ,MAAA,KACA+C,cAAA,KACA3B,MAAA,yCACAjB,MAAA,IACA6C,WAAA,GAEA,CACA3D,GAAA,EACAG,KAAA,OACAQ,MAAA,IACA+C,cAAA,IACA3B,MAAA,yCACAjB,MAAA,IACA6C,WAAA,GAEA,CACA3D,GAAA,EACAG,KAAA,SACAQ,MAAA,IACA+C,cAAA,IACA3B,MAAA,yCACAjB,MAAA,IACA6C,WAAA,GAEA,CACA3D,GAAA,GACAG,KAAA,SACAQ,MAAA,IACA+C,cAAA,IACA3B,MAAA,0CACAjB,MAAA,IACA6C,WAAA,GAEA,CACA3D,GAAA,GACAG,KAAA,SACAQ,MAAA,IACA+C,cAAA,IACA3B,MAAA,0CACAjB,MAAA,IACA6C,WAAA,GAEA,CACA3D,GAAA,GACAG,KAAA,MACAQ,MAAA,IACA+C,cAAA,IACA3B,MAAA,0CACAjB,MAAA,IACA6C,WAAA,IAIA,EACAC,SAAA,KACAC,EAAAA,EAAAA,IAAA,mBACAZ,UAAAA,GACA,YAAAa,aACA,GAEAC,OAAAA,GACA,KAAAC,iBACA,EACAtC,QAAA,KACAC,EAAAA,EAAAA,IAAA,uBCnOmP,I,UCQ/OoB,GAAY,OACd,EACAzD,EACA+B,GACA,EACA,KACA,WACA,MAIF,EAAe0B,E","sources":["webpack://abcdf/./src/components/product/ProductList.vue","webpack://abcdf/src/components/product/ProductList.vue","webpack://abcdf/./src/components/product/ProductList.vue?43ae","webpack://abcdf/./src/components/product/ProductList.vue?0bfb","webpack://abcdf/./src/views/Home.vue","webpack://abcdf/src/views/Home.vue","webpack://abcdf/./src/views/Home.vue?a787","webpack://abcdf/./src/views/Home.vue?8611"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"product-list\"},[_c('div',{staticClass:\"product-grid\"},_vm._l((_vm.products),function(product){return _c('div',{key:product.id,staticClass:\"product-card\"},[_c('div',{staticClass:\"product-img\"},[_c('router-link',{attrs:{\"to\":`/Detail/${product.id}`}},[_c('img',{directives:[{name:\"lazy\",rawName:\"v-lazy\",value:(product.headimg),expression:\"product.headimg\"}],staticClass:\"product-pic\",attrs:{\"alt\":product.title}})])],1),_c('div',{staticClass:\"product-info\"},[_c('div',{staticClass:\"flex-between\"},[_c('div',{staticClass:\"product-price\"},[_c('span',{staticClass:\"current-price\"},[_vm._v(\"¥\"+_vm._s(product.price / 100))]),(product.market_price)?_c('span',{staticClass:\"original-price\"},[_vm._v(\"¥\"+_vm._s(product.market_price / 100))]):_vm._e()]),(product.sales)?_c('div',{staticClass:\"product-sales\"},[_c('span',[_vm._v(\"已售 \"+_vm._s(product.sales_number)+\" 件\")])]):_vm._e()]),_c('h3',{staticClass:\"product-name\"},[_c('router-link',{attrs:{\"to\":`/Detail/${product.id}`}},[_vm._v(\" \"+_vm._s(product.title)+\" \")])],1),_c('div',{staticClass:\"product-actions\"},[_c('el-button',{staticStyle:{\"background-color\":\"#6a8a27\",\"border\":\"none\"},attrs:{\"type\":\"primary\",\"size\":\"small\"},on:{\"click\":function($event){return _vm.addToCart(product)}}},[_c('el-icon',{attrs:{\"name\":\"el-icon-shopping-cart\"}}),_vm._v(\" 加入购物车 \")],1)],1)])])}),0),(_vm.products.length === 0)?_c('div',{staticClass:\"no-products\"},[_c('el-empty',{attrs:{\"description\":\"暂无相关商品\"}})],1):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ProductList.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ProductList.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ProductList.vue?vue&type=template&id=6ecfbe40&scoped=true\"\nimport script from \"./ProductList.vue?vue&type=script&lang=js\"\nexport * from \"./ProductList.vue?vue&type=script&lang=js\"\nimport style0 from \"./ProductList.vue?vue&type=style&index=0&id=6ecfbe40&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6ecfbe40\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"home-page\"},[_c('el-carousel',{staticClass:\"home-carousel\",attrs:{\"height\":\"500px\",\"indicator-position\":\"outside\"}},_vm._l((4),function(item){return _c('el-carousel-item',{key:item},[_c('img',{directives:[{name:\"lazy\",rawName:\"v-lazy\",value:(`https://picsum.photos/1200/500?random=${item}`),expression:\"`https://picsum.photos/1200/500?random=${item}`\"}],staticClass:\"carousel-img\",attrs:{\"alt\":\"轮播图片\"}})])}),1),_c('div',{staticClass:\"category-nav\"},[_c('h2',{staticClass:\"section-title\"},[_vm._v(\"商品分类\")]),_c('div',{staticClass:\"category-list\"},_vm._l((_vm.categories),function(category){return _c('div',{key:category.id,staticClass:\"category-item\",on:{\"click\":function($event){return _vm.$router.push(`/category/${category.id}`)}}},[_c('el-icon',{staticClass:\"category-icon\",attrs:{\"name\":category.icon}}),_c('span',{staticClass:\"category-name\"},[_vm._v(_vm._s(category.name))])],1)}),0)]),_c('div',{staticClass:\"hot-products\"},[_vm._m(0),_c('ProductList',{attrs:{\"products\":_vm.hotProducts}})],1),_c('div',{staticClass:\"new-products\"},[_vm._m(1),_c('ProductList',{attrs:{\"products\":_vm.newProducts}})],1),_c('div',{staticClass:\"promotion-section\"},[_c('h2',{staticClass:\"section-title\"},[_vm._v(\"限时促销\")]),_c('div',{staticClass:\"promotion-container\"},[_c('div',{staticClass:\"promotion-item\"},[_c('img',{directives:[{name:\"lazy\",rawName:\"v-lazy\",value:(`https://picsum.photos/600/300?random=10`),expression:\"`https://picsum.photos/600/300?random=10`\"}],staticClass:\"promotion-img\",attrs:{\"alt\":\"促销活动图片\"}}),_c('div',{staticClass:\"promotion-info\"},[_c('h3',[_vm._v(\"夏季大促\")]),_c('p',[_vm._v(\"全场商品低至5折\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"medium\"}},[_vm._v(\"立即抢购\")])],1)]),_c('div',{staticClass:\"promotion-item\"},[_c('img',{directives:[{name:\"lazy\",rawName:\"v-lazy\",value:(`https://picsum.photos/600/300?random=11`),expression:\"`https://picsum.photos/600/300?random=11`\"}],staticClass:\"promotion-img\",attrs:{\"alt\":\"促销活动图片\"}}),_c('div',{staticClass:\"promotion-info\"},[_c('h3',[_vm._v(\"新品首发\")]),_c('p',[_vm._v(\"限量发售,先到先得\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"medium\"}},[_vm._v(\"立即抢购\")])],1)])])])],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"section-header\"},[_c('h2',{staticClass:\"section-title\"},[_vm._v(\"热门商品\")]),_c('a',{staticClass:\"more-link\",attrs:{\"href\":\"#\"}},[_vm._v(\"查看更多 \"),_c('i',{staticClass:\"el-icon-arrow-right\"})])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"section-header\"},[_c('h2',{staticClass:\"section-title\"},[_vm._v(\"新品上市\")]),_c('a',{staticClass:\"more-link\",attrs:{\"href\":\"#\"}},[_vm._v(\"查看更多 \"),_c('i',{staticClass:\"el-icon-arrow-right\"})])])\n}]\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Home.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Home.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Home.vue?vue&type=template&id=34d6a3aa&scoped=true\"\nimport script from \"./Home.vue?vue&type=script&lang=js\"\nexport * from \"./Home.vue?vue&type=script&lang=js\"\nimport style0 from \"./Home.vue?vue&type=style&index=0&id=34d6a3aa&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"34d6a3aa\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","_l","products","product","key","id","attrs","directives","name","rawName","value","headimg","expression","title","_v","_s","price","market_price","_e","sales","sales_number","staticStyle","on","$event","addToCart","length","staticRenderFns","props","type","Array","default","methods","mapActions","$store","getters","isUserLogin","image","quantity","$message","success","$confirm","confirmButtonText","cancelButtonText","then","$router","push","path","query","redirect","$route","fullPath","catch","component","item","categories","category","icon","_m","hotProducts","newProducts","components","ProductList","data","originalPrice","categoryId","computed","mapGetters","getCategories","created","fetchCategories"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/838.e0fbe621.js b/dist/js/838.e0fbe621.js new file mode 100644 index 0000000..888ffb5 --- /dev/null +++ b/dist/js/838.e0fbe621.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[838],{7838:function(t,x,a){a.r(x),a.d(x,{default:function(){return o}});var e=function(){var t=this,x=t._self._c;return x("div",{staticClass:"notification-page"},[x("el-button",{staticClass:"mark-all-read",attrs:{type:"text"},on:{click:t.markAllAsRead}},[t._v("全部已读")]),t._l(t.currentPageNotifications,function(a,e){return x("el-card",{key:e,staticClass:"notification-card",class:{read:a.isRead}},[x("div",{staticClass:"notification-header",on:{click:function(x){return t.toggleExpand(a)}}},[a.isRead?t._e():x("span",{staticClass:"dot"},[t._v("●")]),x("span",{staticClass:"title"},[t._v(t._s(a.title))]),x("el-button",{staticClass:"expand-btn",attrs:{type:"text"}},[t._v(" "+t._s(a.isExpanded?"收起":"展开")+" "),t.isExpanded?x("i",{staticClass:"el-icon-arrow-up"}):x("i",{staticClass:"el-icon-arrow-down"})]),x("span",{staticClass:"date"},[t._v(t._s(a.date))])],1),x("div",{directives:[{name:"show",rawName:"v-show",value:a.isExpanded,expression:"item.isExpanded"}],staticClass:"notification-content"},[t._v(" "+t._s(a.content)+" ")])])}),x("el-pagination",{staticClass:"pagination",attrs:{"current-page":t.currentPage,"page-size":t.pageSize,layout:"prev, pager, next",total:t.notifications.length},on:{"current-change":t.handleCurrentChange}})],2)},i=[],n=(a(8111),a(7588),{name:"NotificationPage",data(){return{currentPage:2,pageSize:3,notifications:[{title:"您的订单(编号:0022929922992)包含的产品:xxx 已成功出票",date:"2025-08-18",content:"",isRead:!1,isExpanded:!1},{title:"重大通知:因台风天气影响,部分商家发货会延迟,请见谅!",date:"2025-08-18",content:"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\nxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",isRead:!1,isExpanded:!0},{title:"您的订单(编号:0022929922992)包含的产品:xxx 已成功出票",date:"2025-08-18",content:"",isRead:!0,isExpanded:!1},{title:"新功能上线通知:新增会员专属优惠活动",date:"2025-08-17",content:"尊敬的用户,我们新增了会员专属优惠活动,快来查看吧!",isRead:!0,isExpanded:!1},{title:"您的账户安全提示:请及时修改密码",date:"2025-08-17",content:"为保障您的账户安全,建议您定期修改密码,避免使用简单密码。",isRead:!0,isExpanded:!1}]}},computed:{currentPageNotifications(){const t=(this.currentPage-1)*this.pageSize,x=t+this.pageSize;return this.notifications.slice(t,x)}},methods:{toggleExpand(t){t.isExpanded=!t.isExpanded},markAllAsRead(){this.notifications.forEach(t=>{t.isRead=!0})},handleCurrentChange(t){this.currentPage=t}}}),s=n,c=a(1656),d=(0,c.A)(s,e,i,!1,null,"b0cdd62a",null),o=d.exports}}]); +//# sourceMappingURL=838.e0fbe621.js.map \ No newline at end of file diff --git a/dist/js/838.e0fbe621.js.map b/dist/js/838.e0fbe621.js.map new file mode 100644 index 0000000..826f844 --- /dev/null +++ b/dist/js/838.e0fbe621.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/838.e0fbe621.js","mappings":"sJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,qBAAqB,CAACF,EAAG,YAAY,CAACE,YAAY,gBAAgBC,MAAM,CAAC,KAAO,QAAQC,GAAG,CAAC,MAAQN,EAAIO,gBAAgB,CAACP,EAAIQ,GAAG,UAAUR,EAAIS,GAAIT,EAAIU,yBAA0B,SAASC,EAAKC,GAAO,OAAOV,EAAG,UAAU,CAACW,IAAID,EAAMR,YAAY,oBAAoBU,MAAM,CAAE,KAAQH,EAAKI,SAAU,CAACb,EAAG,MAAM,CAACE,YAAY,sBAAsBE,GAAG,CAAC,MAAQ,SAASU,GAAQ,OAAOhB,EAAIiB,aAAaN,EAAK,IAAI,CAAGA,EAAKI,OAAqDf,EAAIkB,KAAjDhB,EAAG,OAAO,CAACE,YAAY,OAAO,CAACJ,EAAIQ,GAAG,OAAgBN,EAAG,OAAO,CAACE,YAAY,SAAS,CAACJ,EAAIQ,GAAGR,EAAImB,GAAGR,EAAKS,UAAUlB,EAAG,YAAY,CAACE,YAAY,aAAaC,MAAM,CAAC,KAAO,SAAS,CAACL,EAAI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GACAA,EAAAU,YAAAV,EAAAU,UACA,EAEAd,aAAAA,GACA,KAAAwB,cAAAU,QAAA9B,IACAA,EAAAI,QAAA,GAEA,EAEAkB,mBAAAA,CAAAS,GACA,KAAAb,YAAAa,CACA,KCxGmQ,I,UCQ/PC,GAAY,OACd,EACA5C,EACAmC,GACA,EACA,KACA,WACA,MAIF,EAAeS,E","sources":["webpack://abcdf/./src/views/User/MessageList.vue","webpack://abcdf/src/views/User/MessageList.vue","webpack://abcdf/./src/views/User/MessageList.vue?d310","webpack://abcdf/./src/views/User/MessageList.vue?6c43"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"notification-page\"},[_c('el-button',{staticClass:\"mark-all-read\",attrs:{\"type\":\"text\"},on:{\"click\":_vm.markAllAsRead}},[_vm._v(\"全部已读\")]),_vm._l((_vm.currentPageNotifications),function(item,index){return _c('el-card',{key:index,staticClass:\"notification-card\",class:{ 'read': item.isRead }},[_c('div',{staticClass:\"notification-header\",on:{\"click\":function($event){return _vm.toggleExpand(item)}}},[(!item.isRead)?_c('span',{staticClass:\"dot\"},[_vm._v(\"●\")]):_vm._e(),_c('span',{staticClass:\"title\"},[_vm._v(_vm._s(item.title))]),_c('el-button',{staticClass:\"expand-btn\",attrs:{\"type\":\"text\"}},[_vm._v(\" \"+_vm._s(item.isExpanded? '收起' : '展开')+\" \"),(_vm.isExpanded)?_c('i',{staticClass:\"el-icon-arrow-up\"}):_c('i',{staticClass:\"el-icon-arrow-down\"})]),_c('span',{staticClass:\"date\"},[_vm._v(_vm._s(item.date))])],1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(item.isExpanded),expression:\"item.isExpanded\"}],staticClass:\"notification-content\"},[_vm._v(\" \"+_vm._s(item.content)+\" \")])])}),_c('el-pagination',{staticClass:\"pagination\",attrs:{\"current-page\":_vm.currentPage,\"page-size\":_vm.pageSize,\"layout\":\"prev, pager, next\",\"total\":_vm.notifications.length},on:{\"current-change\":_vm.handleCurrentChange}})],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./MessageList.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./MessageList.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./MessageList.vue?vue&type=template&id=b0cdd62a&scoped=true\"\nimport script from \"./MessageList.vue?vue&type=script&lang=js\"\nexport * from \"./MessageList.vue?vue&type=script&lang=js\"\nimport style0 from \"./MessageList.vue?vue&type=style&index=0&id=b0cdd62a&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"b0cdd62a\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","attrs","on","markAllAsRead","_v","_l","currentPageNotifications","item","index","key","class","isRead","$event","toggleExpand","_e","_s","title","isExpanded","date","directives","name","rawName","value","expression","content","currentPage","pageSize","notifications","length","handleCurrentChange","staticRenderFns","data","computed","start","end","slice","methods","forEach","val","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/86.471ac328.js b/dist/js/86.471ac328.js new file mode 100644 index 0000000..7fc7cd8 --- /dev/null +++ b/dist/js/86.471ac328.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[86],{3086:function(e,t,i){i.r(t),i.d(t,{default:function(){return d}});var a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"bg"},[t("el-tabs",{model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[t("el-tab-pane",{attrs:{label:"所有订单",name:"all"}}),t("el-tab-pane",{attrs:{label:"待付款",name:"pendingPayment"}}),t("el-tab-pane",{attrs:{label:"待发货",name:"pendingDelivery"}}),t("el-tab-pane",{attrs:{label:"配送中",name:"delivering"}}),t("el-tab-pane",{attrs:{label:"待评价",name:"pendingReview"}})],1),t("div",{staticClass:"filter-bar"},[t("el-form",{attrs:{inline:!0,model:e.filterForm,size:"small"}},[t("el-form-item",{attrs:{label:"商品名称"}},[t("el-input",{attrs:{placeholder:"请输入商品名称"},model:{value:e.filterForm.keywords,callback:function(t){e.$set(e.filterForm,"keywords",t)},expression:"filterForm.keywords"}})],1),t("el-form-item",{attrs:{label:"订单编号"}},[t("el-input",{attrs:{placeholder:"请输入订单编号"},model:{value:e.filterForm.order_id,callback:function(t){e.$set(e.filterForm,"order_id",t)},expression:"filterForm.order_id"}})],1),t("el-form-item",{attrs:{label:"下单时间"}},[t("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},model:{value:e.filterForm.createTime,callback:function(t){e.$set(e.filterForm,"createTime",t)},expression:"filterForm.createTime"}})],1),t("el-form-item",{attrs:{label:"商家名称"}},[t("el-input",{attrs:{placeholder:"请输入商家名称"},model:{value:e.filterForm.merchantName,callback:function(t){e.$set(e.filterForm,"merchantName",t)},expression:"filterForm.merchantName"}})],1),t("el-form-item",{attrs:{label:"交易状态"}},[t("el-select",{staticStyle:{width:"200px"},attrs:{placeholder:"请选择"},model:{value:e.filterForm.tradeStatus,callback:function(t){e.$set(e.filterForm,"tradeStatus",t)},expression:"filterForm.tradeStatus"}},e._l(e.typeList,function(e,i){return t("el-option",{key:i,attrs:{label:e.name,value:e.id}})}),1)],1),t("el-form-item",{attrs:{label:"完成时间"}},[t("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},model:{value:e.filterForm.finishTime,callback:function(t){e.$set(e.filterForm,"finishTime",t)},expression:"filterForm.finishTime"}})],1),t("el-form-item",[t("el-button",{staticStyle:{background:"#6a8a27",border:"none"},attrs:{type:"primary"},on:{click:e.search}},[e._v("搜索")])],1),t("el-form-item",[t("el-button",{on:{click:e.reset}},[e._v("重置")])],1)],1)],1),t("div",[e._m(0),e._l(e.orders,function(i){return t("div",{key:i.id,staticClass:"order-card"},[t("div",{staticClass:"order-header flex-between"},[t("div",{staticStyle:{display:"flex"}},[t("div",[e._v("订单号: "+e._s(i.order_id))]),t("div",{staticStyle:{"padding-left":"60px"}},[e._v("下单时间:"+e._s(i.create_time))])]),t("div",{staticClass:"product-status"},[t("el-tag",{attrs:{type:e.getStatusTagType(i.state),size:"small"}},[e._v(e._s(i.state_text))])],1)]),t("div",{staticClass:"order-products"},e._l(i.order_product_list,function(i){return t("div",{key:i.id,staticClass:"product-item"},[t("img",{staticClass:"product-image",attrs:{src:i.product_img}}),t("div",{staticClass:"product-details"},[t("div",{staticClass:"product-name"},[e._v(e._s(i.product_title))]),t("div",{staticClass:"product-spec"},[e._v(e._s(i.sku_name))])]),t("div",{staticClass:"product-price"},[e._v("¥"+e._s((i.product_price/100).toFixed(2)))]),t("div",{staticClass:"product-quantity"},[e._v("x"+e._s(i.product_num))]),t("div",{staticClass:"product-total"},[e._v("¥"+e._s((i.paid_money/100).toFixed(2)))]),t("div",{staticClass:"product-actions"},[t("el-button",{attrs:{type:"text",size:"mini"}},[e._v(" 商品详情")])],1)])}),0),t("div",{staticClass:"order-footer"},[t("div",{staticClass:"order-summary"},[t("div",{staticClass:"order-amount"},[e._v(" 合计: "),t("strong",[e._v("¥"+e._s((i.paid_money/100).toFixed(2)))]),e._v(" (含运费 ¥"+e._s((i.total_post_fee/100).toFixed(2))+") ")])]),t("div",{staticClass:"order-actions"},[t("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(t){return e.viewOrderDetail(i.id)}}},[e._v("订单详情")]),"pendingPayment"===i.status?t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.payOrder(i.id)}}},[e._v("去付款")]):e._e(),"pendingDelivery"===i.status?t("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(t){return e.remindDelivery(i.id)}}},[e._v("提醒发货")]):e._e(),"delivering"===i.status?t("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(t){return e.checkLogistics(i.id)}}},[e._v("查看物流")]):e._e(),"completed"!==i.status||i.isReviewed?e._e():t("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(t){return e.gotoReview(i.id)}}},[e._v("去评价")])],1)])])}),e.orders.length<=0?t("el-empty",{attrs:{description:"暂无订单"}}):e._e(),t("div",{staticStyle:{"text-align":"right","margin-top":"20px"}},[t("el-pagination",{attrs:{"current-page":e.filterForm.currentPage,"page-sizes":[5,10,20],"page-size":e.filterForm.limit,layout:"total, sizes, prev, pager, next, jumper",total:e.filterForm.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],2)],1)},r=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"order-products",staticStyle:{padding:"0 20px",background:"#f8f9fa","border-top":"1px solid #eee","border-bottom":"1px solid #eee","margin-bottom":"20px"}},[t("div",{staticClass:"product-item"},[t("div",{staticClass:"product-details"},[t("div",{staticClass:"product-name"},[e._v("商品信息")])]),t("div",{staticClass:"product-price"},[e._v("单价(元)")]),t("div",{staticClass:"product-quantity"},[e._v("数量")]),t("div",{staticClass:"product-total"},[e._v("小计(元)")]),t("div",{staticClass:"product-actions"})])])}],s=(i(4114),{name:"OrderList",data(){return{activeTab:"ALL",filterForm:{keywords:"",currentPage:1,limit:10,order_id:"",createTime:null,start_date:"",end_date:"",total:1},typeList:[{name:"全部",id:"ALL"},{name:"待付款",id:"WAIT_PAYMENT"},{name:"待发货",id:"WAIT_POST"},{name:"待使用/出行",id:"WAIT_USE"},{name:"待收货",id:"WAIT_DELIVERY"},{name:"退款/售后",id:"NEED_REFUND"}],orders:[]}},computed:{},mounted(){this.getList()},methods:{getList(){this.post({...this.filterForm,offset:this.filterForm.currentPage*this.filterForm.limit,customBaseURL:"/api"},"/api/order/list").then(e=>{this.orders=e.data.list,this.filterForm.total=e.data.total})},search(){},reset(){},handleSizeChange(e){this.filterForm.limit=e,this.filterForm.currentPage=1,this.getList()},handleCurrentChange(e){this.filterForm.currentPage=e,this.getList()},getStatusText(e){const t={pendingPayment:"待付款",pendingDelivery:"待发货",delivering:"配送中",completed:"已完成",cancelled:"已取消"};return t[e]||e},getStatusTagType(e){const t={pendingPayment:"warning",pendingDelivery:"info",delivering:"primary",completed:"success",cancelled:"danger"};return t[e]||"default"},payOrder(e){this.$message({message:`订单 ${e} 去付款`,type:"info"})},remindDelivery(e){this.$message({message:`已提醒订单 ${e} 发货`,type:"success"})},checkLogistics(e){this.$message({message:`查看订单 ${e} 物流`,type:"info"})},gotoReview(e){this.$message({message:`去评价订单 ${e}`,type:"info"})},viewOrderDetail(e){this.$router.push({name:"OrderDetail"})}}}),l=s,o=i(1656),n=(0,o.A)(l,a,r,!1,null,"a18e9d96",null),d=n.exports}}]); +//# sourceMappingURL=86.471ac328.js.map \ No newline at end of file diff --git a/dist/js/86.471ac328.js.map b/dist/js/86.471ac328.js.map new file mode 100644 index 0000000..224e919 --- /dev/null +++ b/dist/js/86.471ac328.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/86.471ac328.js","mappings":"qJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,MAAM,CAACF,EAAG,UAAU,CAACG,MAAM,CAACC,MAAON,EAAIO,UAAWC,SAAS,SAAUC,GAAMT,EAAIO,UAAUE,CAAG,EAAEC,WAAW,cAAc,CAACR,EAAG,cAAc,CAACS,MAAM,CAAC,MAAQ,OAAO,KAAO,SAAST,EAAG,cAAc,CAACS,MAAM,CAAC,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AAAC,SAAA,CACAC,QAAA,SAAAF,OACAG,KAAA,WAEA,EAGAnC,cAAAA,CAAAgC,GACA,KAAAC,SAAA,CACAC,QAAA,QAAAF,OACAG,KAAA,QAEA,EAGAjC,UAAAA,CAAA8B,GACA,KAAAC,SAAA,CACAC,QAAA,SAAAF,IACAG,KAAA,QAEA,EAGAxC,eAAAA,CAAAqC,GACA,KAAAI,QAAAC,KAAA,CACApE,KAAA,eAEA,KC5RiQ,I,UCQ7PqE,GAAY,OACd,EACA/F,EACAkE,GACA,EACA,KACA,WACA,MAIF,EAAe6B,E","sources":["webpack://abcdf/./src/views/User/OrderList.vue","webpack://abcdf/src/views/User/OrderList.vue","webpack://abcdf/./src/views/User/OrderList.vue?f8b7","webpack://abcdf/./src/views/User/OrderList.vue?604f"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg\"},[_c('el-tabs',{model:{value:(_vm.activeTab),callback:function ($$v) {_vm.activeTab=$$v},expression:\"activeTab\"}},[_c('el-tab-pane',{attrs:{\"label\":\"所有订单\",\"name\":\"all\"}}),_c('el-tab-pane',{attrs:{\"label\":\"待付款\",\"name\":\"pendingPayment\"}}),_c('el-tab-pane',{attrs:{\"label\":\"待发货\",\"name\":\"pendingDelivery\"}}),_c('el-tab-pane',{attrs:{\"label\":\"配送中\",\"name\":\"delivering\"}}),_c('el-tab-pane',{attrs:{\"label\":\"待评价\",\"name\":\"pendingReview\"}})],1),_c('div',{staticClass:\"filter-bar\"},[_c('el-form',{attrs:{\"inline\":true,\"model\":_vm.filterForm,\"size\":\"small\"}},[_c('el-form-item',{attrs:{\"label\":\"商品名称\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入商品名称\"},model:{value:(_vm.filterForm.keywords),callback:function ($$v) {_vm.$set(_vm.filterForm, \"keywords\", $$v)},expression:\"filterForm.keywords\"}})],1),_c('el-form-item',{attrs:{\"label\":\"订单编号\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入订单编号\"},model:{value:(_vm.filterForm.order_id),callback:function ($$v) {_vm.$set(_vm.filterForm, \"order_id\", $$v)},expression:\"filterForm.order_id\"}})],1),_c('el-form-item',{attrs:{\"label\":\"下单时间\"}},[_c('el-date-picker',{attrs:{\"type\":\"daterange\",\"range-separator\":\"至\",\"start-placeholder\":\"开始日期\",\"end-placeholder\":\"结束日期\",\"value-format\":\"yyyy-MM-dd\"},model:{value:(_vm.filterForm.createTime),callback:function ($$v) {_vm.$set(_vm.filterForm, \"createTime\", $$v)},expression:\"filterForm.createTime\"}})],1),_c('el-form-item',{attrs:{\"label\":\"商家名称\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入商家名称\"},model:{value:(_vm.filterForm.merchantName),callback:function ($$v) {_vm.$set(_vm.filterForm, \"merchantName\", $$v)},expression:\"filterForm.merchantName\"}})],1),_c('el-form-item',{attrs:{\"label\":\"交易状态\"}},[_c('el-select',{staticStyle:{\"width\":\"200px\"},attrs:{\"placeholder\":\"请选择\"},model:{value:(_vm.filterForm.tradeStatus),callback:function ($$v) {_vm.$set(_vm.filterForm, \"tradeStatus\", $$v)},expression:\"filterForm.tradeStatus\"}},_vm._l((_vm.typeList),function(item,i){return _c('el-option',{key:i,attrs:{\"label\":item.name,\"value\":item.id}})}),1)],1),_c('el-form-item',{attrs:{\"label\":\"完成时间\"}},[_c('el-date-picker',{attrs:{\"type\":\"daterange\",\"range-separator\":\"至\",\"start-placeholder\":\"开始日期\",\"end-placeholder\":\"结束日期\",\"value-format\":\"yyyy-MM-dd\"},model:{value:(_vm.filterForm.finishTime),callback:function ($$v) {_vm.$set(_vm.filterForm, \"finishTime\", $$v)},expression:\"filterForm.finishTime\"}})],1),_c('el-form-item',[_c('el-button',{staticStyle:{\"background\":\"#6a8a27\",\"border\":\"none\"},attrs:{\"type\":\"primary\"},on:{\"click\":_vm.search}},[_vm._v(\"搜索\")])],1),_c('el-form-item',[_c('el-button',{on:{\"click\":_vm.reset}},[_vm._v(\"重置\")])],1)],1)],1),_c('div',[_vm._m(0),_vm._l((_vm.orders),function(order){return _c('div',{key:order.id,staticClass:\"order-card\"},[_c('div',{staticClass:\"order-header flex-between\"},[_c('div',{staticStyle:{\"display\":\"flex\"}},[_c('div',[_vm._v(\"订单号: \"+_vm._s(order.order_id))]),_c('div',{staticStyle:{\"padding-left\":\"60px\"}},[_vm._v(\"下单时间:\"+_vm._s(order.create_time))])]),_c('div',{staticClass:\"product-status\"},[_c('el-tag',{attrs:{\"type\":_vm.getStatusTagType(order.state),\"size\":\"small\"}},[_vm._v(_vm._s(order.state_text))])],1)]),_c('div',{staticClass:\"order-products\"},_vm._l((order.order_product_list),function(product){return _c('div',{key:product.id,staticClass:\"product-item\"},[_c('img',{staticClass:\"product-image\",attrs:{\"src\":product.product_img}}),_c('div',{staticClass:\"product-details\"},[_c('div',{staticClass:\"product-name\"},[_vm._v(_vm._s(product.product_title))]),_c('div',{staticClass:\"product-spec\"},[_vm._v(_vm._s(product.sku_name))])]),_c('div',{staticClass:\"product-price\"},[_vm._v(\"¥\"+_vm._s((product.product_price/100).toFixed(2)))]),_c('div',{staticClass:\"product-quantity\"},[_vm._v(\"x\"+_vm._s(product.product_num))]),_c('div',{staticClass:\"product-total\"},[_vm._v(\"¥\"+_vm._s((product.paid_money/100).toFixed(2)))]),_c('div',{staticClass:\"product-actions\"},[_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"mini\"}},[_vm._v(\" 商品详情\")])],1)])}),0),_c('div',{staticClass:\"order-footer\"},[_c('div',{staticClass:\"order-summary\"},[_c('div',{staticClass:\"order-amount\"},[_vm._v(\" 合计: \"),_c('strong',[_vm._v(\"¥\"+_vm._s((order.paid_money/100).toFixed(2)))]),_vm._v(\" (含运费 ¥\"+_vm._s((order.total_post_fee/100).toFixed(2))+\") \")])]),_c('div',{staticClass:\"order-actions\"},[_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.viewOrderDetail(order.id)}}},[_vm._v(\"订单详情\")]),(order.status === 'pendingPayment')?_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.payOrder(order.id)}}},[_vm._v(\"去付款\")]):_vm._e(),(order.status === 'pendingDelivery')?_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.remindDelivery(order.id)}}},[_vm._v(\"提醒发货\")]):_vm._e(),(order.status === 'delivering')?_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.checkLogistics(order.id)}}},[_vm._v(\"查看物流\")]):_vm._e(),(order.status === 'completed' && !order.isReviewed)?_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.gotoReview(order.id)}}},[_vm._v(\"去评价\")]):_vm._e()],1)])])}),(_vm.orders.length<=0)?_c('el-empty',{attrs:{\"description\":\"暂无订单\"}}):_vm._e(),_c('div',{staticStyle:{\"text-align\":\"right\",\"margin-top\":\"20px\"}},[_c('el-pagination',{attrs:{\"current-page\":_vm.filterForm.currentPage,\"page-sizes\":[5, 10, 20],\"page-size\":_vm.filterForm.limit,\"layout\":\"total, sizes, prev, pager, next, jumper\",\"total\":_vm.filterForm.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1)],2)],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"order-products\",staticStyle:{\"padding\":\"0 20px\",\"background\":\"#f8f9fa\",\"border-top\":\"1px solid #eee\",\"border-bottom\":\"1px solid #eee\",\"margin-bottom\":\"20px\"}},[_c('div',{staticClass:\"product-item\"},[_c('div',{staticClass:\"product-details\"},[_c('div',{staticClass:\"product-name\"},[_vm._v(\"商品信息\")])]),_c('div',{staticClass:\"product-price\"},[_vm._v(\"单价(元)\")]),_c('div',{staticClass:\"product-quantity\"},[_vm._v(\"数量\")]),_c('div',{staticClass:\"product-total\"},[_vm._v(\"小计(元)\")]),_c('div',{staticClass:\"product-actions\"})])])\n}]\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./OrderList.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./OrderList.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./OrderList.vue?vue&type=template&id=a18e9d96&scoped=true\"\nimport script from \"./OrderList.vue?vue&type=script&lang=js\"\nexport * from \"./OrderList.vue?vue&type=script&lang=js\"\nimport style0 from \"./OrderList.vue?vue&type=style&index=0&id=a18e9d96&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"a18e9d96\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","model","value","activeTab","callback","$$v","expression","attrs","filterForm","keywords","$set","order_id","createTime","merchantName","staticStyle","tradeStatus","_l","typeList","item","i","key","name","id","finishTime","on","search","_v","reset","_m","orders","order","_s","create_time","getStatusTagType","state","state_text","order_product_list","product","product_img","product_title","sku_name","product_price","toFixed","product_num","paid_money","total_post_fee","$event","viewOrderDetail","status","payOrder","_e","remindDelivery","checkLogistics","isReviewed","gotoReview","length","currentPage","limit","total","handleSizeChange","handleCurrentChange","staticRenderFns","data","start_date","end_date","computed","mounted","getList","methods","post","offset","customBaseURL","then","res","list","val","getStatusText","statusMap","pendingPayment","pendingDelivery","delivering","completed","cancelled","typeMap","orderId","$message","message","type","$router","push","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/893.906271e2.js b/dist/js/893.906271e2.js new file mode 100644 index 0000000..eb18979 --- /dev/null +++ b/dist/js/893.906271e2.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[893],{5893:function(e,t,a){a.r(t),a.d(t,{default:function(){return u}});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"bg"},[t("el-card",{staticStyle:{width:"100%"}},[t("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[t("span",[e._v("个人信息")])]),t("div",{staticStyle:{"padding-right":"200px"}},[t("el-form",{ref:"userForm",attrs:{model:e.user,"label-width":"100px",size:"small"}},[t("el-form-item",{attrs:{label:"用户头像"}},[t("el-upload",{staticClass:"avatar-uploader",attrs:{action:"#","auto-upload":!1,"on-change":e.handleAvatarChange,"show-file-list":!1}},[e.user.avatar?t("div",{staticStyle:{position:"relative"}},[t("img",{staticClass:"avatar",attrs:{src:e.user.avatar}}),t("div",{staticClass:"hover-tip"},[e._v("修改头像")])]):t("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1),t("el-form-item",{attrs:{label:"昵称",prop:"nickname",rules:[{required:!0,message:"请输入昵称"}]}},[t("el-input",{attrs:{placeholder:"请输入昵称"},model:{value:e.user.nickname,callback:function(t){e.$set(e.user,"nickname",t)},expression:"user.nickname"}})],1),t("el-form-item",{attrs:{label:"用户ID"}},[t("el-input",{attrs:{disabled:""},model:{value:e.user.user_id,callback:function(t){e.$set(e.user,"user_id",t)},expression:"user.user_id"}},[t("template",{slot:"append"},[t("el-button",{on:{click:e.copyId}},[e._v("复制")])],1)],2)],1),t("el-form-item",{attrs:{label:"性别"}},[t("el-radio-group",{model:{value:e.user.gender,callback:function(t){e.$set(e.user,"gender",t)},expression:"user.gender"}},[t("el-radio",{attrs:{label:1}},[e._v("男性")]),t("el-radio",{attrs:{label:2}},[e._v("女性")]),t("el-radio",{attrs:{label:0}},[e._v("保密")])],1)],1),t("el-form-item",{attrs:{label:"生日"}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期","value-format":"yyyy-MM-dd"},model:{value:e.user.birthday,callback:function(t){e.$set(e.user,"birthday",t)},expression:"user.birthday"}})],1),t("el-form-item",{staticClass:"form-actions"},[t("el-button",{attrs:{type:"primary"},on:{click:e.saveUser}},[e._v("保存")])],1)],1)],1)])],1)},r=[],l={name:"UserInfo",data(){return{user:{avatar:"",nickname:"",id:"",gender:null,birthday:null}}},mounted(){this.getUserInfo()},methods:{getUserInfo(){this.post({customBaseURL:"/api"},"/api/uservice/user/getMyInfo").then(e=>{this.user=e.data})},handleAvatarChange(e){this.util.imgToBase64(e.raw).then(e=>{console.log(e),this.post({customBaseURL:"/api",img_base64:e},"/api/pbservice/Other/base64Upload").then(e=>{this.user.avatar=e.data.url})})},copyId(){const e=document.createElement("input");e.value=this.user.id,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),this.$message({message:"用户ID已复制",type:"success"})},saveUser(){this.$refs.userForm.validate(e=>{e&&this.post({customBaseURL:"/api",...this.user},"/api/uservice/user/profile").then(e=>{1==e.code&&this.$message({message:"修改成功",type:"success"})})})}}},i=l,o=a(1656),n=(0,o.A)(i,s,r,!1,null,"0e767484",null),u=n.exports}}]); +//# sourceMappingURL=893.906271e2.js.map \ No newline at end of file diff --git a/dist/js/893.906271e2.js.map b/dist/js/893.906271e2.js.map new file mode 100644 index 0000000..e3f66bf --- /dev/null +++ b/dist/js/893.906271e2.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/893.906271e2.js","mappings":"sJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,MAAM,CAACF,EAAG,UAAU,CAACG,YAAY,CAAC,MAAQ,SAAS,CAACH,EAAG,MAAM,CAACE,YAAY,WAAWE,MAAM,CAAC,KAAO,UAAUC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AAAC,YAAAF,EAAAG,KAAAL,KAAAM,IACAC,QAAAC,IAAAF,GACA,KAAAR,KAAA,CACAC,cAAA,OACAU,WAAAH,GACA,qCAAAN,KAAAC,IACA,KAAA5B,KAAAE,OAAA0B,EAAAR,KAAAiB,OAIA,EACAvB,MAAAA,GACA,MAAAwB,EAAAC,SAAAC,cAAA,SACAF,EAAAhC,MAAA,KAAAN,KAAAqB,GACAkB,SAAAE,KAAAC,YAAAJ,GACAA,EAAAK,SACAJ,SAAAK,YAAA,QACAL,SAAAE,KAAAI,YAAAP,GACA,KAAAQ,SAAA,CACA1C,QAAA,UACA2C,KAAA,WAEA,EACA9B,QAAAA,GACA,KAAA+B,MAAAC,SAAAC,SAAAC,IACAA,GACA,KAAA1B,KAAA,CAAAC,cAAA,eAAA1B,MAAA,8BAAA2B,KAAAC,IACA,GAAAA,EAAAwB,MACA,KAAAN,SAAA,CAAA1C,QAAA,OAAA2C,KAAA,eAKA,IC9GgQ,I,UCQ5PM,GAAY,OACd,EACAhE,EACA6B,GACA,EACA,KACA,WACA,MAIF,EAAemC,E","sources":["webpack://abcdf/./src/views/User/UserInfo.vue","webpack://abcdf/src/views/User/UserInfo.vue","webpack://abcdf/./src/views/User/UserInfo.vue?a3cf","webpack://abcdf/./src/views/User/UserInfo.vue?e070"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg\"},[_c('el-card',{staticStyle:{\"width\":\"100%\"}},[_c('div',{staticClass:\"clearfix\",attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('span',[_vm._v(\"个人信息\")])]),_c('div',{staticStyle:{\"padding-right\":\"200px\"}},[_c('el-form',{ref:\"userForm\",attrs:{\"model\":_vm.user,\"label-width\":\"100px\",\"size\":\"small\"}},[_c('el-form-item',{attrs:{\"label\":\"用户头像\"}},[_c('el-upload',{staticClass:\"avatar-uploader\",attrs:{\"action\":\"#\",\"auto-upload\":false,\"on-change\":_vm.handleAvatarChange,\"show-file-list\":false}},[(_vm.user.avatar)?_c('div',{staticStyle:{\"position\":\"relative\"}},[_c('img',{staticClass:\"avatar\",attrs:{\"src\":_vm.user.avatar}}),_c('div',{staticClass:\"hover-tip\"},[_vm._v(\"修改头像\")])]):_c('i',{staticClass:\"el-icon-plus avatar-uploader-icon\"})])],1),_c('el-form-item',{attrs:{\"label\":\"昵称\",\"prop\":\"nickname\",\"rules\":[{ required: true, message: '请输入昵称' }]}},[_c('el-input',{attrs:{\"placeholder\":\"请输入昵称\"},model:{value:(_vm.user.nickname),callback:function ($$v) {_vm.$set(_vm.user, \"nickname\", $$v)},expression:\"user.nickname\"}})],1),_c('el-form-item',{attrs:{\"label\":\"用户ID\"}},[_c('el-input',{attrs:{\"disabled\":\"\"},model:{value:(_vm.user.user_id),callback:function ($$v) {_vm.$set(_vm.user, \"user_id\", $$v)},expression:\"user.user_id\"}},[_c('template',{slot:\"append\"},[_c('el-button',{on:{\"click\":_vm.copyId}},[_vm._v(\"复制\")])],1)],2)],1),_c('el-form-item',{attrs:{\"label\":\"性别\"}},[_c('el-radio-group',{model:{value:(_vm.user.gender),callback:function ($$v) {_vm.$set(_vm.user, \"gender\", $$v)},expression:\"user.gender\"}},[_c('el-radio',{attrs:{\"label\":1}},[_vm._v(\"男性\")]),_c('el-radio',{attrs:{\"label\":2}},[_vm._v(\"女性\")]),_c('el-radio',{attrs:{\"label\":0}},[_vm._v(\"保密\")])],1)],1),_c('el-form-item',{attrs:{\"label\":\"生日\"}},[_c('el-date-picker',{staticStyle:{\"width\":\"100%\"},attrs:{\"type\":\"date\",\"placeholder\":\"选择日期\",\"value-format\":\"yyyy-MM-dd\"},model:{value:(_vm.user.birthday),callback:function ($$v) {_vm.$set(_vm.user, \"birthday\", $$v)},expression:\"user.birthday\"}})],1),_c('el-form-item',{staticClass:\"form-actions\"},[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.saveUser}},[_vm._v(\"保存\")])],1)],1)],1)])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./UserInfo.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./UserInfo.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./UserInfo.vue?vue&type=template&id=0e767484&scoped=true\"\nimport script from \"./UserInfo.vue?vue&type=script&lang=js\"\nexport * from \"./UserInfo.vue?vue&type=script&lang=js\"\nimport style0 from \"./UserInfo.vue?vue&type=style&index=0&id=0e767484&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0e767484\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","staticStyle","attrs","slot","_v","ref","user","handleAvatarChange","avatar","required","message","model","value","nickname","callback","$$v","$set","expression","user_id","on","copyId","gender","birthday","saveUser","staticRenderFns","name","data","id","mounted","getUserInfo","methods","post","customBaseURL","then","res","file","util","imgToBase64","raw","base64","console","log","img_base64","url","input","document","createElement","body","appendChild","select","execCommand","removeChild","$message","type","$refs","userForm","validate","valid","code","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/900.6b17b6f1.js b/dist/js/900.6b17b6f1.js new file mode 100644 index 0000000..bc427c6 --- /dev/null +++ b/dist/js/900.6b17b6f1.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[900],{900:function(e,t,s){s.r(t),s.d(t,{default:function(){return n}});var o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"login-page"},[e._m(0),t("div",{staticClass:"form-card"},[t("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.form,rules:e.rules,"label-width":"0"}},[t("el-form-item",{attrs:{prop:"phone"}},[t("el-input",{attrs:{placeholder:"请输入手机号码",clearable:"","prefix-icon":"el-icon-phone",maxlength:"11"},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1),t("el-form-item",{attrs:{prop:"captcha"}},[t("el-input",{staticStyle:{width:"65%"},attrs:{placeholder:"请输入图形验证码",clearable:"","prefix-icon":"el-icon-picture"},model:{value:e.form.captcha,callback:function(t){e.$set(e.form,"captcha",t)},expression:"form.captcha"}}),t("div",{staticClass:"captcha-img",on:{click:e.refreshCaptcha}},[t("img",{staticClass:"captcha-pic",attrs:{src:e.captchaUrl,alt:"图形验证码"}})])],1),"sms"===e.loginType?t("el-form-item",{attrs:{prop:"code"}},[t("el-input",{staticStyle:{width:"65%"},attrs:{placeholder:"请输入验证码",clearable:"","prefix-icon":"el-icon-message"},model:{value:e.form.code,callback:function(t){e.$set(e.form,"code",t)},expression:"form.code"}}),t("el-button",{staticClass:"code-btn",attrs:{type:"primary",disabled:e.codeDisabled},on:{click:e.handleGetCode}},[e._v(" "+e._s(e.codeText)+" ")])],1):e._e(),"password"===e.loginType?t("el-form-item",{attrs:{prop:"password"}},[t("el-input",{attrs:{type:"password",placeholder:"请输入密码",clearable:"","prefix-icon":"el-icon-lock"},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}})],1):e._e(),t("el-form-item",{staticClass:"remember-item"},[t("el-checkbox",{attrs:{size:"mini"},model:{value:e.rememberPhone,callback:function(t){e.rememberPhone=t},expression:"rememberPhone"}},[e._v(" 记住用户名/手机号码 ")])],1),t("el-form-item",[t("el-button",{staticClass:"login-btn",attrs:{type:"primary",loading:e.submitting},on:{click:e.handleLogin}},[e._v(" 立即登录 ")])],1),e._e()],1)],1)])},r=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"bg-container"},[t("img",{staticClass:"bg-img",attrs:{src:"https://static.ticket.sz-trip.com/shiweisuzhou/pc/login/loginBg.png",alt:"login background"}})])}],a=(s(4114),{name:"Login",data(){return{loginType:"sms",form:{phone:"",code:"",password:"",captcha:""},rules:{phone:[{required:!0,message:"请输入手机号码",trigger:"blur"},{pattern:/^1\d{10}$/,message:"手机号码格式错误",trigger:"blur"}],captcha:[{required:!0,message:"请输入图形验证码",trigger:"blur"},{min:4,max:4,message:"图形验证码为4位字符",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"},{pattern:/^\d{6}$/,message:"验证码为6位数字",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"},{min:6,message:"密码至少6位",trigger:"blur"}]},codeText:"获取验证码",codeDisabled:!1,countdown:60,captchaUrl:"",captchaId:"",rememberPhone:!1,submitting:!1,smsCodeId:""}},mounted(){const e=localStorage.getItem("rememberedPhone");e&&(this.form.phone=e,this.rememberPhone=!0),this.refreshCaptcha()},methods:{refreshCaptcha(){this.post({},"/api/uservice/user/getCaptchaImg").then(e=>{e&&(this.captchaUrl=e.data.code,this.captchaId=e.data.id)})},switchLoginType(e){this.loginType=e,this.resetForm()},resetForm(){this.form.code="",this.form.password="",this.form.captcha="",this.$refs.loginForm.resetValidation(),this.refreshCaptcha()},handleGetCode(){this.form.phone?this.form.captcha?this.post({mobile:this.form.phone,captchaCode:this.form.captcha,captchaCodeId:this.captchaId},"/api/uservice/user/getMobileCodeForLogin").then(e=>{if(console.log(e),1==e.code){this.codeDisabled=!0,this.smsCodeId=e.data.id,this.codeText=`重新发送(${this.countdown}s)`;const t=setInterval(()=>{this.countdown--,this.codeText=`重新发送(${this.countdown}s)`,this.countdown<=0&&(clearInterval(t),this.codeText="获取验证码",this.codeDisabled=!1,this.countdown=60)},1e3)}}):this.$message.warning("请先输入图形验证码"):this.$message.warning("请先输入手机号码")},handleLogin(){this.$refs.loginForm.validate(e=>{e&&(this.submitting=!0,this.post({mobile:this.form.phone,smsCodeId:this.smsCodeId,smsCode:this.form.code,fromSource:"PC"},"/api/uservice/user/loginByMobileCode").then(e=>{this.submitting=!1,1==e.code&&(this.$message.success("登录成功!"),this.rememberPhone?localStorage.setItem("rememberedPhone",this.form.phone):localStorage.removeItem("rememberedPhone"),this.$store.commit("USER_LOGIN",{userInfo:e.data,token:e.data.token}),this.$router.push("/"))}),setTimeout(()=>{},1500))})},goToRegister(){this.$router.push("/Register")}}}),i=a,c=s(1656),l=(0,c.A)(i,o,r,!1,null,"0c4c6f6a",null),n=l.exports}}]); +//# sourceMappingURL=900.6b17b6f1.js.map \ No newline at end of file diff --git a/dist/js/900.6b17b6f1.js.map b/dist/js/900.6b17b6f1.js.map new file mode 100644 index 0000000..8c07b5c --- /dev/null +++ b/dist/js/900.6b17b6f1.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/900.6b17b6f1.js","mappings":"qJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,cAAc,CAACJ,EAAIK,GAAG,GAAGH,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,UAAU,CAACI,IAAI,YAAYF,YAAY,aAAaG,MAAM,CAAC,MAAQP,EAAIQ,KAAK,MAAQR,EAAIS,MAAM,cAAc,MAAM,CAACP,EAAG,eAAe,CAACK,MAAM,CAAC,KAAO,UAAU,CAACL,EAAG,WAAW,CAACK,MAAM,CAAC,YAAc,UAAU,UAAY,GAAG,cAAc,gBAAgB,UAAY,MAAMG,MAAM,CAACC,MAAOX,EAAIQ,KAAKI,MAAOC,SAAS,SAAUC,GAAMd,EAAIe,KAAKf,EAAIQ,KAAM,QAASM,EAAI,EAAEE,WAAW,iBAAiB,GAAGd,EAAG,eAAe,CAACK,MAAM,CAAC,KAAO,YAAY,CAACL,EAAG,WAAW,CAACe,YAAY,CAAC,MAAQ,OAAO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,KAAA8C,SAAAM,QAAA,SAEA,KAAA5C,cACAiB,aAAA4B,QAAA,uBAAApE,KAAAI,OAEAoC,aAAA6B,WAAA,mBAIA,KAAAC,OAAAC,OAAA,cACAC,SAAA3B,EAAAjB,KACA6C,MAAA5B,EAAAjB,KAAA6C,QAIA,KAAAC,QAAAC,KAAA,QAKAC,WAAA,OAKA,QAGA,EAGAC,YAAAA,GACA,KAAAH,QAAAC,KAAA,YACA,KC9RoP,I,UCQhPG,GAAY,OACd,EACAvF,EACAmC,GACA,EACA,KACA,WACA,MAIF,EAAeoD,E","sources":["webpack://abcdf/./src/views/Login.vue","webpack://abcdf/src/views/Login.vue","webpack://abcdf/./src/views/Login.vue?3cb7","webpack://abcdf/./src/views/Login.vue?a6ee"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"login-page\"},[_vm._m(0),_c('div',{staticClass:\"form-card\"},[_c('el-form',{ref:\"loginForm\",staticClass:\"login-form\",attrs:{\"model\":_vm.form,\"rules\":_vm.rules,\"label-width\":\"0\"}},[_c('el-form-item',{attrs:{\"prop\":\"phone\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入手机号码\",\"clearable\":\"\",\"prefix-icon\":\"el-icon-phone\",\"maxlength\":\"11\"},model:{value:(_vm.form.phone),callback:function ($$v) {_vm.$set(_vm.form, \"phone\", $$v)},expression:\"form.phone\"}})],1),_c('el-form-item',{attrs:{\"prop\":\"captcha\"}},[_c('el-input',{staticStyle:{\"width\":\"65%\"},attrs:{\"placeholder\":\"请输入图形验证码\",\"clearable\":\"\",\"prefix-icon\":\"el-icon-picture\"},model:{value:(_vm.form.captcha),callback:function ($$v) {_vm.$set(_vm.form, \"captcha\", $$v)},expression:\"form.captcha\"}}),_c('div',{staticClass:\"captcha-img\",on:{\"click\":_vm.refreshCaptcha}},[_c('img',{staticClass:\"captcha-pic\",attrs:{\"src\":_vm.captchaUrl,\"alt\":\"图形验证码\"}})])],1),(_vm.loginType === 'sms')?_c('el-form-item',{attrs:{\"prop\":\"code\"}},[_c('el-input',{staticStyle:{\"width\":\"65%\"},attrs:{\"placeholder\":\"请输入验证码\",\"clearable\":\"\",\"prefix-icon\":\"el-icon-message\"},model:{value:(_vm.form.code),callback:function ($$v) {_vm.$set(_vm.form, \"code\", $$v)},expression:\"form.code\"}}),_c('el-button',{staticClass:\"code-btn\",attrs:{\"type\":\"primary\",\"disabled\":_vm.codeDisabled},on:{\"click\":_vm.handleGetCode}},[_vm._v(\" \"+_vm._s(_vm.codeText)+\" \")])],1):_vm._e(),(_vm.loginType === 'password')?_c('el-form-item',{attrs:{\"prop\":\"password\"}},[_c('el-input',{attrs:{\"type\":\"password\",\"placeholder\":\"请输入密码\",\"clearable\":\"\",\"prefix-icon\":\"el-icon-lock\"},model:{value:(_vm.form.password),callback:function ($$v) {_vm.$set(_vm.form, \"password\", $$v)},expression:\"form.password\"}})],1):_vm._e(),_c('el-form-item',{staticClass:\"remember-item\"},[_c('el-checkbox',{attrs:{\"size\":\"mini\"},model:{value:(_vm.rememberPhone),callback:function ($$v) {_vm.rememberPhone=$$v},expression:\"rememberPhone\"}},[_vm._v(\" 记住用户名/手机号码 \")])],1),_c('el-form-item',[_c('el-button',{staticClass:\"login-btn\",attrs:{\"type\":\"primary\",\"loading\":_vm.submitting},on:{\"click\":_vm.handleLogin}},[_vm._v(\" 立即登录 \")])],1),(false)?_c('div',{staticClass:\"register-guide\"},[_vm._v(\" 首次使用? \"),_c('router-link',{staticClass:\"register-link\",attrs:{\"to\":\"/Register\"},on:{\"click\":_vm.goToRegister}},[_vm._v(\" 点击注册 \")])],1):_vm._e()],1)],1)])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg-container\"},[_c('img',{staticClass:\"bg-img\",attrs:{\"src\":\"https://static.ticket.sz-trip.com/shiweisuzhou/pc/login/loginBg.png\",\"alt\":\"login background\"}})])\n}]\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Login.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Login.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Login.vue?vue&type=template&id=0c4c6f6a&scoped=true\"\nimport script from \"./Login.vue?vue&type=script&lang=js\"\nexport * from \"./Login.vue?vue&type=script&lang=js\"\nimport style0 from \"./Login.vue?vue&type=style&index=0&id=0c4c6f6a&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0c4c6f6a\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","_m","ref","attrs","form","rules","model","value","phone","callback","$$v","$set","expression","staticStyle","captcha","on","refreshCaptcha","captchaUrl","loginType","code","codeDisabled","handleGetCode","_v","_s","codeText","_e","password","rememberPhone","submitting","handleLogin","staticRenderFns","name","data","required","message","trigger","pattern","min","max","countdown","captchaId","smsCodeId","mounted","rememberedPhone","localStorage","getItem","methods","post","then","res","id","switchLoginType","type","resetForm","$refs","loginForm","resetValidation","mobile","captchaCode","captchaCodeId","console","log","timer","setInterval","clearInterval","$message","warning","validate","valid","smsCode","fromSource","success","setItem","removeItem","$store","commit","userInfo","token","$router","push","setTimeout","goToRegister","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/937.e91a3d8d.js b/dist/js/937.e91a3d8d.js deleted file mode 100644 index 97edad5..0000000 --- a/dist/js/937.e91a3d8d.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[937],{1937:function(e,a,t){t.r(a),t.d(a,{default:function(){return n}});var s=function(){var e=this,a=e._self._c;return a("div",{staticClass:"bg"},[a("el-card",{staticStyle:{width:"100%"}},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("个人信息")])]),a("div",{staticStyle:{"padding-right":"200px"}},[a("el-form",{attrs:{model:e.user,"label-width":"100px",size:"small"}},[a("el-form-item",{attrs:{label:"用户头像"}},[a("el-upload",{staticClass:"avatar-uploader",attrs:{action:"#","auto-upload":!1,"on-change":e.handleAvatarChange,"show-file-list":!1}},[e.user.avatar?a("div",{staticStyle:{position:"relative"}},[a("img",{staticClass:"avatar",attrs:{src:e.user.avatar}}),a("div",{staticClass:"hover-tip"},[e._v("修改头像")])]):a("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1),a("el-form-item",{attrs:{label:"*昵称"}},[a("el-input",{attrs:{placeholder:"请输入昵称"},model:{value:e.user.nickname,callback:function(a){e.$set(e.user,"nickname",a)},expression:"user.nickname"}})],1),a("el-form-item",{attrs:{label:"用户ID"}},[a("el-input",{attrs:{disabled:""},model:{value:e.user.id,callback:function(a){e.$set(e.user,"id",a)},expression:"user.id"}},[a("template",{slot:"append"},[a("el-button",{on:{click:e.copyId}},[e._v("复制")])],1)],2)],1),a("el-form-item",{attrs:{label:"性别"}},[a("el-radio-group",{model:{value:e.user.gender,callback:function(a){e.$set(e.user,"gender",a)},expression:"user.gender"}},[a("el-radio",{attrs:{label:"male"}},[e._v("男性")]),a("el-radio",{attrs:{label:"female"}},[e._v("女性")]),a("el-radio",{attrs:{label:"secret"}},[e._v("保密")])],1)],1),a("el-form-item",{attrs:{label:"生日"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期","value-format":"yyyy-MM-dd"},model:{value:e.user.birthday,callback:function(a){e.$set(e.user,"birthday",a)},expression:"user.birthday"}})],1),a("el-form-item",{staticClass:"form-actions"},[a("el-button",{attrs:{type:"primary"},on:{click:e.saveUser}},[e._v("保存")]),a("el-button",{on:{click:e.close}},[e._v("关闭")])],1)],1)],1)])],1)},l=[],r=(t(4603),t(7566),t(8721),{name:"UserInfo",data(){return{user:{avatar:"",nickname:"张三哥",id:"209901071124",gender:"male",birthday:""}}},methods:{handleAvatarChange(e){this.user.avatar=URL.createObjectURL(e.raw)},copyId(){const e=document.createElement("input");e.value=this.user.id,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),this.$message({message:"用户ID已复制",type:"success"})},saveUser(){this.$message({message:"保存成功",type:"success"})},close(){this.$message({message:"已关闭",type:"info"})}}}),i=r,c=t(1656),o=(0,c.A)(i,s,l,!1,null,"03a7f9a5",null),n=o.exports}}]); -//# sourceMappingURL=937.e91a3d8d.js.map \ No newline at end of file diff --git a/dist/js/937.e91a3d8d.js.map b/dist/js/937.e91a3d8d.js.map deleted file mode 100644 index 49726b7..0000000 --- a/dist/js/937.e91a3d8d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/937.e91a3d8d.js","mappings":"sJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,MAAM,CAACF,EAAG,UAAU,CAACG,YAAY,CAAC,MAAQ,SAAS,CAACH,EAAG,MAAM,CAACE,YAAY,WAAWE,MAAM,CAAC,KAAO,UAAUC,KAAK,UAAU,CAACL,EAAG,OAAO,CAACF,EAAIQ,GAAG,YAAYN,EAAG,MAAM,CAACG,YAAY,CAAC,gBAAgB,UAAU,CAACH,EAAG,UAAU,CAACI,MAAM,CAAC,MAAQN,EAAIS,KAAK,cAAc,QAAQ,KAAO,UAAU,CAACP,EAAG,eAAe,CAACI,MAAM,CAAC,MAAQ,SAAS,CAACJ,EAAG,YAAY,CAACE,YAAY,kBAAkBE,MAAM,CAAC,OAAS,IAAI,eAAc,EAAM,YA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9C,EACA2B,GACA,EACA,KACA,WACA,MAIF,EAAemB,E","sources":["webpack://abcdf/./src/views/User/UserInfo.vue","webpack://abcdf/src/views/User/UserInfo.vue","webpack://abcdf/./src/views/User/UserInfo.vue?a3cf","webpack://abcdf/./src/views/User/UserInfo.vue?e070"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg\"},[_c('el-card',{staticStyle:{\"width\":\"100%\"}},[_c('div',{staticClass:\"clearfix\",attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('span',[_vm._v(\"个人信息\")])]),_c('div',{staticStyle:{\"padding-right\":\"200px\"}},[_c('el-form',{attrs:{\"model\":_vm.user,\"label-width\":\"100px\",\"size\":\"small\"}},[_c('el-form-item',{attrs:{\"label\":\"用户头像\"}},[_c('el-upload',{staticClass:\"avatar-uploader\",attrs:{\"action\":\"#\",\"auto-upload\":false,\"on-change\":_vm.handleAvatarChange,\"show-file-list\":false}},[(_vm.user.avatar)?_c('div',{staticStyle:{\"position\":\"relative\"}},[_c('img',{staticClass:\"avatar\",attrs:{\"src\":_vm.user.avatar}}),_c('div',{staticClass:\"hover-tip\"},[_vm._v(\"修改头像\")])]):_c('i',{staticClass:\"el-icon-plus avatar-uploader-icon\"})])],1),_c('el-form-item',{attrs:{\"label\":\"*昵称\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入昵称\"},model:{value:(_vm.user.nickname),callback:function ($$v) {_vm.$set(_vm.user, \"nickname\", $$v)},expression:\"user.nickname\"}})],1),_c('el-form-item',{attrs:{\"label\":\"用户ID\"}},[_c('el-input',{attrs:{\"disabled\":\"\"},model:{value:(_vm.user.id),callback:function ($$v) {_vm.$set(_vm.user, \"id\", $$v)},expression:\"user.id\"}},[_c('template',{slot:\"append\"},[_c('el-button',{on:{\"click\":_vm.copyId}},[_vm._v(\"复制\")])],1)],2)],1),_c('el-form-item',{attrs:{\"label\":\"性别\"}},[_c('el-radio-group',{model:{value:(_vm.user.gender),callback:function ($$v) {_vm.$set(_vm.user, \"gender\", $$v)},expression:\"user.gender\"}},[_c('el-radio',{attrs:{\"label\":\"male\"}},[_vm._v(\"男性\")]),_c('el-radio',{attrs:{\"label\":\"female\"}},[_vm._v(\"女性\")]),_c('el-radio',{attrs:{\"label\":\"secret\"}},[_vm._v(\"保密\")])],1)],1),_c('el-form-item',{attrs:{\"label\":\"生日\"}},[_c('el-date-picker',{staticStyle:{\"width\":\"100%\"},attrs:{\"type\":\"date\",\"placeholder\":\"选择日期\",\"value-format\":\"yyyy-MM-dd\"},model:{value:(_vm.user.birthday),callback:function ($$v) {_vm.$set(_vm.user, \"birthday\", $$v)},expression:\"user.birthday\"}})],1),_c('el-form-item',{staticClass:\"form-actions\"},[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.saveUser}},[_vm._v(\"保存\")]),_c('el-button',{on:{\"click\":_vm.close}},[_vm._v(\"关闭\")])],1)],1)],1)])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./UserInfo.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./UserInfo.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./UserInfo.vue?vue&type=template&id=03a7f9a5&scoped=true\"\nimport script from \"./UserInfo.vue?vue&type=script&lang=js\"\nexport * from \"./UserInfo.vue?vue&type=script&lang=js\"\nimport style0 from \"./UserInfo.vue?vue&type=style&index=0&id=03a7f9a5&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"03a7f9a5\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","staticStyle","attrs","slot","_v","user","handleAvatarChange","avatar","model","value","nickname","callback","$$v","$set","expression","id","on","copyId","gender","birthday","saveUser","close","staticRenderFns","name","data","methods","file","URL","createObjectURL","raw","input","document","createElement","body","appendChild","select","execCommand","removeChild","$message","message","type","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/app.20634183.js b/dist/js/app.20634183.js deleted file mode 100644 index 7eefd50..0000000 --- a/dist/js/app.20634183.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){"use strict";var e={3153:function(e){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDE0IDc5LjE1Njc5NywgMjAxNC8wOC8yMC0wOTo1MzowMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzE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aEEmTeG9B6VIIrZ8RbbvU18f/fae1QoQRYMJKU81oT3dYwkJj1VguQOk9REaY2Pw4323hRKkEVjJ9vrTXQ/r9t7UihBaobr9V6UIIrZ8Wu2J5rgPp6w96JQgtQcG2jmhGl5QWzvQaEEqQsOst2WY/9vs/egUILUtZIN59Dv4ZyTWwmSEyDnUx7luRtJar4qJUjT4RdsL+bI3xetzwolSMOwTn1Vgihmx2tsD+XAz4esrwolSMPxLZK9XGPS+qhQgmSCo2xbBPu3xfqoUIJkhh+yvSPQr3esbwolSOYYUp+UIIrZ8SzbM4L8ecb6pFCC6BNbWw8lSB7wLtt2AX5st74olCDikPWskfRZNSVIi2OKst2+c5P1QaEEEYuH2V7N4Lqv2msrlCDisa5FrqkEUSwIL7E93sDrPW6vqVCC5AaN0l/kVZ+iBGlxfMR2awOuc6u9lkIJkjvcwXagjuc/YK+hUILkEgnVdxeRDfYaCiVIbvEk2546nHePPbdCCZJ7rMvJORVKkEzwBtuOGp5vhz2nQgnSNMBu6uM1OM84Nedu80qQFscY1SYfx2Z7LoUSpOlwH9ubi/j9m/YcCiWIDth1YK4EaUU8z7Z7Ab/bbX+rUII0PdY36DcKJUgu8R7btnkcv83+RqEEaRncwnZkDscdsccqlCAthQrbDXM47gZ7rEIJ0nJ4lO2VE3z/ij1GoQRpWaxb4HcKJUhL4GW2XTN8vst+p1CCtDw+Oc6Y6/hEoQRpCRxm23rcv7fazxRKEIXFXZRuwBDZvxUC4GsIREHflguDkyQqaVYotIulUChBFAoliEKhBFEolCAKhRJEoVCCKBRKEIVCCaJQKJQgCoUSRKFQgigUShCFIhP8vwADACog5YM65zugAAAAAElFTkSuQmCC"},6911:function(e,t,n){var a=n(6674),i=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"app"}},["Login"!==e.$route.name&&"Register"!==e.$route.name?t("HeaderNav"):e._e(),t("main",{staticClass:"main-container"},[t("router-view")],1),"Login"!==e.$route.name&&"Register"!==e.$route.name?t("Sidebar"):e._e(),"Login"!==e.$route.name&&"Register"!==e.$route.name?t("Footer"):e._e(),t("BackToTop")],1)},r=[],o=function(){var e=this,t=e._self._c;return t("header",{staticClass:"header-nav"},[t("div",{staticClass:"top-notice"},[t("div",{staticClass:"container"},[e._m(0),t("div",{staticClass:"top-links"},[e.isLogin?t("a",{attrs:{href:"/user"}},[t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.userInfo.avatar,expression:"userInfo.avatar"}],staticClass:"avatar",attrs:{alt:"用户头像"}}),e._v(" "+e._s(e.userInfo.username)+" ")]):t("a",{attrs:{href:"/login"}},[e._v("登录")]),e.isLogin?t("span",{staticClass:"separator"},[e._v("|")]):e._e(),e.isLogin?t("a",{attrs:{href:"/register"}},[e._v("注册")]):e._e(),t("a",{attrs:{href:"/user"}},[e._v("采购人中心")]),e.isLogin?t("a",{attrs:{href:"/userCenter"}},[e._v("我的订单")]):e._e(),t("a",{attrs:{href:""}},[e._v("商户后台")]),e.isLogin?t("a",{attrs:{href:"javascript:;"},on:{click:e.handleLogout}},[e._v("退出")]):e._e()])])]),t("div",{staticClass:"main-nav"},[t("div",{staticClass:"container"},[e._m(1),t("div",{staticClass:"search-box"},[t("el-input",{staticClass:"search-input",attrs:{placeholder:"请输入搜索内容"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch.apply(null,arguments)}},model:{value:e.searchText,callback:function(t){e.searchText=t},expression:"searchText"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.handleSearch},slot:"append"})],1),t("div",{staticClass:"hot-tags"},[t("span",[e._v("热门搜索:")]),t("a",{attrs:{href:"javascript:;"},on:{click:function(t){e.searchText="手机",e.handleSearch()}}},[e._v("手机")]),t("a",{attrs:{href:"javascript:;"},on:{click:function(t){e.searchText="电脑",e.handleSearch()}}},[e._v("电脑")]),t("a",{attrs:{href:"javascript:;"},on:{click:function(t){e.searchText="服装",e.handleSearch()}}},[e._v("服装")])])],1),t("div",{staticClass:"cart-entry"},[t("a",{staticClass:"cart-link",attrs:{href:"/cart"}},[t("i",{staticClass:"el-icon-shopping-cart-full cart-icon"}),t("span",[e._v("购物车")]),e.cartTotalCount>0?t("span",{staticClass:"cart-count"},[e._v(e._s(e.cartTotalCount))]):e._e()])])])]),e._e()])},s=[function(){var e=this,t=e._self._c;return t("p",[e._v(" 欢迎来到企业采购平台! "),t("a",{staticClass:"highlight",attrs:{href:"/register"}},[e._v("立即注册")])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"logo"},[t("a",{attrs:{href:"/"}},[t("h1",[e._v("精品商城")])])])}],c=(n(4114),n(3518)),l={name:"HeaderNav",data(){return{searchText:""}},computed:{...(0,c.L8)(["getCategories","getCartTotalCount","isUserLogin","getUserInfo"]),categories(){return this.getCategories},cartTotalCount(){return this.getCartTotalCount},isLogin(){return!0},userInfo(){return this.getUserInfo||{}}},created(){this.fetchCategories()},methods:{...(0,c.i0)(["fetchCategories","logout"]),handleSearch(){this.searchText.trim()?this.$message.success(`搜索: ${this.searchText}`):this.$message.warning("请输入搜索内容")},handleLogout(){this.$confirm("确定要退出登录吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.logout(),this.$message.success("退出登录成功"),this.$router.push("/")}).catch(()=>{})}}},u=l,d=n(1656),h=(0,d.A)(u,o,s,!1,null,"52acec02",null),p=h.exports,m=function(){var e=this,t=e._self._c;return t("div",{staticClass:"footer-container"},[t("div",{staticClass:"footer-top"},[e._m(0),e._m(1),e._m(2),e._m(3),e._m(4),t("div",{staticClass:"qrcode-group"},[t("div",{staticClass:"qrcode-item"},[t("el-empty",{staticStyle:{width:"100px",height:"100px"},attrs:{description:"二维码"}}),t("p",[e._v("时味苏州小程序")])],1),t("div",{staticClass:"qrcode-item"},[t("el-empty",{staticStyle:{width:"100px",height:"100px"},attrs:{description:"二维码"}}),t("p",[e._v("时味苏州服务号")])],1)])]),e._m(5)])},f=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"footer-column"},[t("h3",[e._v("关于我们")]),t("ul",[t("li",[e._v("平台简介")]),t("li",[e._v("政策文件")]),t("li",[e._v("平台标识指南")]),t("li",[e._v("营业执照")]),t("li",[e._v("食品经营许可证")])])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"footer-column"},[t("h3",[e._v("新手上路")]),t("ul",[t("li",[e._v("供应商入驻流程")]),t("li",[e._v("供应商操作手册")]),t("li",[e._v("采购人入驻流程")]),t("li",[e._v("采购人操作手册")]),t("li",[e._v("供应商入驻联系方式")])])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"footer-column"},[t("h3",[e._v("交易流程")]),t("ul",[t("li",[e._v("直购交易流程")]),t("li",[e._v("竞购交易流程")]),t("li",[e._v("货款结算流程")])])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"footer-column"},[t("h3",[e._v("常见问题")]),t("ul",[t("li",[e._v("预留份额填报")]),t("li",[e._v("支付结算问题")]),t("li",[e._v("账号管理问题")]),t("li",[e._v("在线客服问题")])])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"contact-info"},[t("p",[e._v("联系方式:")]),t("p",[e._v("客服电话:222-222-222")]),t("p",[e._v("工作时间:工作日 9:00-18:00")]),t("p",[e._v("客服邮箱:xxxxxxxxx@stn.com")]),t("p",[e._v("商务合作:18999999999")])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"footer-bottom"},[t("p",[e._v("版权所有 苏州市特色农产品发展有限公司 | 苏ICP备2023023300号-1")]),t("p",[e._v("本网站由 江苏大运远见文化科技发展有限公司 运营维护")])])}],g={name:"Footer",data(){return{}}},v=g,C=(0,d.A)(v,m,f,!1,null,"683e198c",null),b=C.exports,k=function(){var e=this,t=e._self._c;return t("div",{staticClass:"sidebar-container"},[t("div",{staticClass:"sidebar-item",on:{click:e.handleCartClick}},[t("el-badge",{staticClass:"item-badge",attrs:{value:e.cartCount}},[t("i",{staticClass:"el-icon-shopping-cart-full"})]),t("div",{staticClass:"item-text"},[e._v("购物车")])],1),t("div",{staticClass:"sidebar-item",on:{click:e.handleServiceClick}},[t("i",{staticClass:"el-icon-headset"}),t("div",{staticClass:"item-text"},[e._v("在线客服")])]),t("div",{staticClass:"sidebar-item back-to-top",class:{active:e.isShowBackTop},on:{click:e.handleBackToTop}},[t("i",{staticClass:"el-icon-caret-top"}),t("div",{staticClass:"item-text"},[e._v("回到顶部")])])])},T=[],A={name:"Sidebar",data(){return{cartCount:3,isShowBackTop:!1,scrollTimer:null}},mounted(){window.addEventListener("scroll",this.handleScroll)},beforeDestroy(){window.removeEventListener("scroll",this.handleScroll),this.scrollTimer&&clearTimeout(this.scrollTimer)},methods:{handleCartClick(){this.$router.push("/cart")},handleServiceClick(){this.$message.info("正在唤起在线客服...")},handleBackToTop(){window.scrollTo({top:0,behavior:"smooth"})},handleScroll(){this.scrollTimer&&clearTimeout(this.scrollTimer),this.scrollTimer=setTimeout(()=>{this.isShowBackTop=window.pageYOffset>300},200)}}},y=A,I=(0,d.A)(y,k,T,!1,null,"12c0b5e0",null),w=I.exports,E=function(){var e=this,t=e._self._c;return e.showBackToTop?t("div",{staticClass:"back-to-top",on:{click:e.scrollToTop}},[t("el-icon",{attrs:{name:"el-icon-arrow-up"}})],1):e._e()},R=[],x={name:"BackToTop",data(){return{showBackToTop:!1}},mounted(){window.addEventListener("scroll",this.handleScroll)},beforeDestroy(){window.removeEventListener("scroll",this.handleScroll)},methods:{handleScroll(){this.showBackToTop=window.pageYOffset>500},scrollToTop(){const e=window.setInterval(()=>{const t=window.pageYOffset;t>0?window.scrollTo(0,t-Math.max(20,t/10)):window.clearInterval(e)},16)}}},U=x,O=(0,d.A)(U,E,R,!1,null,"7ea6dee0",null),P=O.exports,S={name:"App",components:{HeaderNav:p,Footer:b,BackToTop:P,Sidebar:w},computed:{...(0,c.L8)(["getLoadingStatus"]),loading(){return this.getLoadingStatus}}},L=S,B=(0,d.A)(L,i,r,!1,null,null,null),N=B.exports,G=n(6178);a["default"].use(G.Ay);const z=new G.Ay({mode:"history",base:"/",routes:[{path:"/",name:"Index",meta:{title:"首页 - 精品商城",keepAlive:!1},component:()=>n.e(164).then(n.bind(n,3164))},{path:"/Home",name:"Home",meta:{title:"首页 - 精品商城",keepAlive:!1},component:()=>n.e(828).then(n.bind(n,9828))},{path:"/detail/:id",name:"Detail",meta:{title:"首页 - 精品商城",keepAlive:!1},component:()=>n.e(581).then(n.bind(n,3581))},{path:"/productList",name:"ProductList",meta:{title:"商品列表",keepAlive:!1},component:()=>n.e(198).then(n.bind(n,8198))},{path:"/User",name:"User",component:()=>n.e(295).then(n.bind(n,8295)),redirect:"/User/UserCenter",children:[{path:"UserCenter",name:"UserCenter",component:()=>n.e(312).then(n.bind(n,9312))},{path:"OrderList",name:"OrderList",meta:{title:"我的订单 - 精品商城",keepAlive:!1},component:()=>n.e(285).then(n.bind(n,8285))},{path:"UserInfo",name:"UserInfo",meta:{title:"个人信息 - 精品商城",keepAlive:!1},component:()=>n.e(937).then(n.bind(n,1937))},{path:"ViewHistory",name:"ViewHistory",meta:{title:"我的足迹 - 精品商城",keepAlive:!1},component:()=>n.e(33).then(n.bind(n,4033))},{path:"UserAddress",name:"UserAddress",meta:{title:"我的收货地址 - 精品商城",keepAlive:!1},component:()=>n.e(561).then(n.bind(n,5561))},{path:"UserInvoice",name:"UserInvoice",meta:{title:"我的发票 - 精品商城",keepAlive:!1},component:()=>n.e(133).then(n.bind(n,4133))},{path:"ShoppingCart",name:"ShoppingCart",meta:{title:"购物车 - 精品商城",keepAlive:!1},component:()=>n.e(778).then(n.bind(n,2778))}]},{path:"/OrderDetail",name:"OrderDetail",meta:{title:"订单详情 - 精品商城",keepAlive:!1},component:()=>n.e(213).then(n.bind(n,2213))},{path:"/PurchaserAdd",name:"PurchaserAdd",meta:{title:"添加采购单位信息 - 精品商城",keepAlive:!1},component:()=>n.e(181).then(n.bind(n,6181))},{path:"/OrderPay",name:"OrderPay",meta:{title:"订单支付 - 精品商城",keepAlive:!1},component:()=>n.e(677).then(n.bind(n,3677))},{path:"/OrderPayB2B",name:"OrderPayB2B",meta:{title:"订单支付 - 精品商城",keepAlive:!1},component:()=>n.e(452).then(n.bind(n,1452))},{path:"/OrderPayCode",name:"OrderPayCode",meta:{title:"订单支付 - 精品商城",keepAlive:!1},component:()=>n.e(244).then(n.bind(n,244))},{path:"/OrderPaySuccess",name:"OrderPaySuccess",meta:{title:"订单支付 - 精品商城",keepAlive:!1},component:()=>n.e(169).then(n.bind(n,7169))},{path:"/login",name:"Login",meta:{title:"登录 - 精品商城",keepAlive:!1},component:()=>n.e(23).then(n.bind(n,3023))},{path:"/register",name:"Register",meta:{title:"注册 - 精品商城",keepAlive:!1},component:()=>n.e(510).then(n.bind(n,7510))}],scrollBehavior(e,t,n){return{x:0,y:0}}});z.beforeEach((e,t,n)=>{if(e.meta.title&&(document.title=e.meta.title),e.meta.requireAuth){const t=localStorage.getItem("token");t?n():n({path:"/login",query:{redirect:e.fullPath}})}else n()});var Z=z,W=(n(8111),n(2489),n(116),n(8237),n(5131));a["default"].use(c.Ay);var V=new c.Ay.Store({plugins:[(0,W.A)({storage:window.localStorage,reducer(e){return{cart:e.cart,user:e.user}}})],state:{cart:{items:[],totalCount:0,totalPrice:0},user:{isLogin:!1,info:null,token:""},categories:[],loading:!1},mutations:{UPDATE_CATEGORIES(e,t){e.categories=t},UPDATE_LOADING(e,t){e.loading=t},USER_LOGIN(e,{userInfo:t,token:n}){e.user.isLogin=!0,e.user.info=t,e.user.token=n,localStorage.setItem("token",n)},USER_LOGOUT(e){e.user.isLogin=!1,e.user.info=null,e.user.token="",localStorage.removeItem("token")},ADD_TO_CART(e,t){const n=e.cart.items.find(e=>e.id===t.id);n?n.quantity+=t.quantity||1:e.cart.items.push({...t,quantity:t.quantity||1}),this.commit("UPDATE_CART_TOTAL")},REMOVE_FROM_CART(e,t){e.cart.items=e.cart.items.filter(e=>e.id!==t),this.commit("UPDATE_CART_TOTAL")},UPDATE_CART_ITEM_QUANTITY(e,{productId:t,quantity:n}){const a=e.cart.items.find(e=>e.id===t);a&&(a.quantity=n,this.commit("UPDATE_CART_TOTAL"))},CLEAR_CART(e){e.cart.items=[],this.commit("UPDATE_CART_TOTAL")},UPDATE_CART_TOTAL(e){e.cart.totalCount=e.cart.items.reduce((e,t)=>e+t.quantity,0),e.cart.totalPrice=e.cart.items.reduce((e,t)=>e+t.price*t.quantity,0)}},actions:{fetchCategories({commit:e}){return e("UPDATE_LOADING",!0),new Promise(t=>{setTimeout(()=>{const n=[{id:1,name:"电子产品",icon:"el-icon-laptop"},{id:2,name:"服装鞋帽",icon:"el-icon-shopping-bag-1"},{id:3,name:"家居用品",icon:"el-icon-home"},{id:4,name:"美妆个护",icon:"el-icon-present"},{id:5,name:"食品饮料",icon:"el-icon-dish"},{id:6,name:"图书音像",icon:"el-icon-document"}];e("UPDATE_CATEGORIES",n),e("UPDATE_LOADING",!1),t(n)},500)})},login({commit:e},{username:t,password:n}){return e("UPDATE_LOADING",!0),new Promise((a,i)=>{setTimeout(()=>{if("test"===t&&"123456"===n){const t={id:1,username:"test",avatar:"https://picsum.photos/200"},n="fake-token-123456";e("USER_LOGIN",{userInfo:t,token:n}),e("UPDATE_LOADING",!1),a(t)}else e("UPDATE_LOADING",!1),i(new Error("用户名或密码错误"))},1e3)})},logout({commit:e}){e("USER_LOGOUT")},addToCart({commit:e},t){e("ADD_TO_CART",t)},removeFromCart({commit:e},t){e("REMOVE_FROM_CART",t)},updateCartItemQuantity({commit:e},t){e("UPDATE_CART_ITEM_QUANTITY",t)},clearCart({commit:e}){e("CLEAR_CART")}},getters:{getCategories:e=>e.categories,getCart:e=>e.cart,getCartTotalCount:e=>e.cart.totalCount,getCartTotalPrice:e=>e.cart.totalPrice,isUserLogin:e=>e.user.isLogin,getUserInfo:e=>e.user.info,getLoadingStatus:e=>e.loading}}),Q=n(9143),D=n.n(Q),Y=n(5847),M=n(4373);const J=M.A.create({timeout:6e3});J.interceptors.request.use(e=>{const{customBaseURL:t}=e.params||{};t?(e.baseURL=t,delete e.params.customBaseURL):e.baseURL="https://api.sutenong.com";const n=V.state.user?.userInfo?.token||"";return e.headers["token"]=n,e.headers["Content-Type"]="application/json;charset=UTF-8",!1!==e.loading&&(e.loadingInstance=Q.Loading.service({lock:!0,text:"加载中...",background:"rgba(0, 0, 0, 0.7)"})),e},e=>Promise.reject(e)),J.interceptors.response.use(e=>{if(e.config.loadingInstance&&e.config.loadingInstance.close(),200===e.status||1===e.status)return e.data},e=>{if(e.config&&e.config.loadingInstance&&e.config.loadingInstance.close(),e.response&&e.response.status)switch(e.response.status){case 401:Q.MessageBox.confirm("请登录后操作","提示",{confirmButtonText:"去登录",cancelButtonText:"取消",type:"warning"}).then(()=>{}).catch(()=>{});break;case 404:(0,Q.Message)({message:"网络繁忙,请刷新再试",type:"error",duration:2e3});break;default:(0,Q.Message)({message:"网络繁忙,请刷新再试",type:"error",duration:2e3});break}return Promise.reject(e)}),a["default"].prototype.get=(e,t,n=!1)=>new Promise((a,i)=>{J.get(t,{params:e,loading:n}).then(e=>{a(e)}).catch(e=>{i(e)})}),a["default"].prototype.post=(e,t,n=!1)=>new Promise((a,i)=>{J.post(t,e,{loading:n}).then(e=>{a(e)}).catch(e=>{i(e)})});var _={install(e){e.prototype.util={formateRichText(e){if(!e)return"";var t=new RegExp("'),t=new RegExp("section","g"),e=e.replace(t,"div"),t=new RegExp("↵","g"),e=e.replace(t,"
"),e=e.replace(/"})}},t={};function n(a){var i=t[a];if(void 0!==i)return i.exports;var r=t[a]={id:a,loaded:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}n.m=e,function(){n.amdO={}}(),function(){var e=[];n.O=function(t,a,i,r){if(!a){var o=1/0;for(u=0;u=r)&&Object.keys(n.O).every(function(e){return n.O[e](a[c])})?a.splice(c--,1):(s=!1,r0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[a,i,r]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}}(),function(){n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce(function(t,a){return n.f[a](e,t),t},[]))}}(),function(){n.u=function(e){return"js/"+e+"."+{23:"5e60beb0",33:"d232b82b",133:"73086f3e",164:"81e2faa4",169:"476d32e6",181:"a2fd06e0",198:"45ac7378",213:"7d6a2655",244:"7d3000f2",285:"b163593c",295:"2b6ac216",312:"4c90c76d",452:"d6fc2b8c",510:"a937fc39",561:"b0e1e346",581:"b9f47383",677:"e7ad81c7",778:"d732e8ad",828:"7b0404cc",937:"e91a3d8d"}[e]+".js"}}(),function(){n.miniCssF=function(e){return"css/"+e+"."+{23:"8e6862d0",33:"5507be5a",164:"8de68017",169:"a7db186a",181:"be611a62",198:"dd2194dd",213:"2c6b15af",244:"edd4b6a0",285:"65995e3f",295:"de484ffc",312:"5068c08a",452:"42e712d8",510:"c2f47d4f",581:"3b673a7d",677:"51eebda5",778:"2e87b3dc",828:"449ccc53",937:"e1a5ac5a"}[e]+".css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="abcdf:";n.l=function(a,i,r,o){if(e[a])e[a].push(i);else{var s,c;if(void 0!==r)for(var l=document.getElementsByTagName("script"),u=0;u 0)?_c('span',{staticClass:\"cart-count\"},[_vm._v(_vm._s(_vm.cartTotalCount))]):_vm._e()])])])]),(false)?_c('div',{staticClass:\"category-nav\"},[_c('div',{staticClass:\"container\"},[_c('ul',{staticClass:\"nav-list\"},[_c('li',{staticClass:\"nav-item\"},[_c('a',{staticClass:\"nav-link\",class:{ active: _vm.$route.path === '/' },attrs:{\"href\":\"/\"}},[_vm._v(\"首页\")])]),_vm._l((_vm.categories),function(category){return _c('li',{key:category.id,staticClass:\"nav-item\"},[_c('a',{staticClass:\"nav-link\",class:{ active: _vm.$route.params.id == category.id },attrs:{\"href\":\"/category/:id\",\"to\":`/category/${category.id}`}},[_vm._v(\" \"+_vm._s(category.name)+\" \")])])})],2)])]):_vm._e()])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('p',[_vm._v(\" 欢迎来到企业采购平台! \"),_c('a',{staticClass:\"highlight\",attrs:{\"href\":\"/register\"}},[_vm._v(\"立即注册\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"logo\"},[_c('a',{attrs:{\"href\":\"/\"}},[_c('h1',[_vm._v(\"精品商城\")])])])\n}]\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./HeaderNav.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./HeaderNav.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./HeaderNav.vue?vue&type=template&id=52acec02&scoped=true\"\nimport script from \"./HeaderNav.vue?vue&type=script&lang=js\"\nexport * from \"./HeaderNav.vue?vue&type=script&lang=js\"\nimport style0 from \"./HeaderNav.vue?vue&type=style&index=0&id=52acec02&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"52acec02\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"footer-container\"},[_c('div',{staticClass:\"footer-top\"},[_vm._m(0),_vm._m(1),_vm._m(2),_vm._m(3),_vm._m(4),_c('div',{staticClass:\"qrcode-group\"},[_c('div',{staticClass:\"qrcode-item\"},[_c('el-empty',{staticStyle:{\"width\":\"100px\",\"height\":\"100px\"},attrs:{\"description\":\"二维码\"}}),_c('p',[_vm._v(\"时味苏州小程序\")])],1),_c('div',{staticClass:\"qrcode-item\"},[_c('el-empty',{staticStyle:{\"width\":\"100px\",\"height\":\"100px\"},attrs:{\"description\":\"二维码\"}}),_c('p',[_vm._v(\"时味苏州服务号\")])],1)])]),_vm._m(5)])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"footer-column\"},[_c('h3',[_vm._v(\"关于我们\")]),_c('ul',[_c('li',[_vm._v(\"平台简介\")]),_c('li',[_vm._v(\"政策文件\")]),_c('li',[_vm._v(\"平台标识指南\")]),_c('li',[_vm._v(\"营业执照\")]),_c('li',[_vm._v(\"食品经营许可证\")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"footer-column\"},[_c('h3',[_vm._v(\"新手上路\")]),_c('ul',[_c('li',[_vm._v(\"供应商入驻流程\")]),_c('li',[_vm._v(\"供应商操作手册\")]),_c('li',[_vm._v(\"采购人入驻流程\")]),_c('li',[_vm._v(\"采购人操作手册\")]),_c('li',[_vm._v(\"供应商入驻联系方式\")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"footer-column\"},[_c('h3',[_vm._v(\"交易流程\")]),_c('ul',[_c('li',[_vm._v(\"直购交易流程\")]),_c('li',[_vm._v(\"竞购交易流程\")]),_c('li',[_vm._v(\"货款结算流程\")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"footer-column\"},[_c('h3',[_vm._v(\"常见问题\")]),_c('ul',[_c('li',[_vm._v(\"预留份额填报\")]),_c('li',[_vm._v(\"支付结算问题\")]),_c('li',[_vm._v(\"账号管理问题\")]),_c('li',[_vm._v(\"在线客服问题\")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"contact-info\"},[_c('p',[_vm._v(\"联系方式:\")]),_c('p',[_vm._v(\"客服电话:222-222-222\")]),_c('p',[_vm._v(\"工作时间:工作日 9:00-18:00\")]),_c('p',[_vm._v(\"客服邮箱:xxxxxxxxx@stn.com\")]),_c('p',[_vm._v(\"商务合作:18999999999\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"footer-bottom\"},[_c('p',[_vm._v(\"版权所有 苏州市特色农产品发展有限公司 | 苏ICP备2023023300号-1\")]),_c('p',[_vm._v(\"本网站由 江苏大运远见文化科技发展有限公司 运营维护\")])])\n}]\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Footer.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Footer.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Footer.vue?vue&type=template&id=683e198c&scoped=true\"\nimport script from \"./Footer.vue?vue&type=script&lang=js\"\nexport * from \"./Footer.vue?vue&type=script&lang=js\"\nimport style0 from \"./Footer.vue?vue&type=style&index=0&id=683e198c&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"683e198c\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"sidebar-container\"},[_c('div',{staticClass:\"sidebar-item\",on:{\"click\":_vm.handleCartClick}},[_c('el-badge',{staticClass:\"item-badge\",attrs:{\"value\":_vm.cartCount}},[_c('i',{staticClass:\"el-icon-shopping-cart-full\"})]),_c('div',{staticClass:\"item-text\"},[_vm._v(\"购物车\")])],1),_c('div',{staticClass:\"sidebar-item\",on:{\"click\":_vm.handleServiceClick}},[_c('i',{staticClass:\"el-icon-headset\"}),_c('div',{staticClass:\"item-text\"},[_vm._v(\"在线客服\")])]),_c('div',{staticClass:\"sidebar-item back-to-top\",class:{ active: _vm.isShowBackTop },on:{\"click\":_vm.handleBackToTop}},[_c('i',{staticClass:\"el-icon-caret-top\"}),_c('div',{staticClass:\"item-text\"},[_vm._v(\"回到顶部\")])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Sidebar.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Sidebar.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Sidebar.vue?vue&type=template&id=12c0b5e0&scoped=true\"\nimport script from \"./Sidebar.vue?vue&type=script&lang=js\"\nexport * from \"./Sidebar.vue?vue&type=script&lang=js\"\nimport style0 from \"./Sidebar.vue?vue&type=style&index=0&id=12c0b5e0&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"12c0b5e0\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.showBackToTop)?_c('div',{staticClass:\"back-to-top\",on:{\"click\":_vm.scrollToTop}},[_c('el-icon',{attrs:{\"name\":\"el-icon-arrow-up\"}})],1):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./BackToTop.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./BackToTop.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./BackToTop.vue?vue&type=template&id=7ea6dee0&scoped=true\"\nimport script from \"./BackToTop.vue?vue&type=script&lang=js\"\nexport * from \"./BackToTop.vue?vue&type=script&lang=js\"\nimport style0 from \"./BackToTop.vue?vue&type=style&index=0&id=7ea6dee0&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7ea6dee0\",\n null\n \n)\n\nexport default component.exports","\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=5ce077fe\"\nimport script from \"./App.vue?vue&type=script&lang=js\"\nexport * from \"./App.vue?vue&type=script&lang=js\"\nimport style0 from \"./App.vue?vue&type=style&index=0&id=5ce077fe&prod&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import Vue from 'vue'\r\nimport Router from 'vue-router'\r\n\r\nVue.use(Router)\r\n\r\nconst router = new Router({\r\n mode: 'history',\r\n base: process.env.BASE_URL,\r\n routes: [\r\n {\r\n path: '/',\r\n name: 'Index',\r\n meta: {\r\n title: '首页 - 精品商城',\r\n keepAlive: false\r\n },\r\n component: () => import('@/views/Index.vue')\r\n },\r\n {\r\n path: '/Home',\r\n name: 'Home',\r\n meta: {\r\n title: '首页 - 精品商城',\r\n keepAlive: false\r\n },\r\n component: () => import('@/views/Home.vue')\r\n },\r\n {\r\n path: '/detail/:id',\r\n name: 'Detail',\r\n meta: {\r\n title: '首页 - 精品商城',\r\n keepAlive: false\r\n },\r\n component: () => import('@/views/Detail/Index.vue')\r\n },\r\n {\r\n path: '/productList',\r\n name: 'ProductList',\r\n meta: {\r\n title: '商品列表',\r\n keepAlive: false\r\n },\r\n component: () => import('@/views/ProductPage/Index.vue')\r\n },\r\n // {\r\n // path: '/category/:id?',\r\n // name: 'Category',\r\n // meta: {\r\n // title: '商品分类 - 精品商城',\r\n // keepAlive: false\r\n // },\r\n // component: () => import('@/views/Category.vue')\r\n // },\r\n // {\r\n // path: '/product/:id',\r\n // name: 'ProductDetail',\r\n // meta: {\r\n // title: '商品详情 - 精品商城',\r\n // keepAlive: false\r\n // },\r\n // component: () => import('@/views/ProductDetail.vue')\r\n // },\r\n // {\r\n // path: '/cart',\r\n // name: 'Cart',\r\n // meta: {\r\n // title: '购物车 - 精品商城',\r\n // requireAuth: true,\r\n // keepAlive: false\r\n // },\r\n // component: () => import('@/views/Cart.vue')\r\n // },\r\n // {\r\n // path: '/checkout',\r\n // name: 'Checkout',\r\n // meta: {\r\n // title: '结算 - 精品商城',\r\n // requireAuth: true,\r\n // keepAlive: false\r\n // },\r\n // component: () => import('@/views/Checkout.vue')\r\n // },\r\n {\r\n path: '/User',\r\n name: 'User',\r\n // meta: { title: '个人中心 - 精品商城',requireAuth: true,keepAlive: false},\r\n component: () => import('@/views/User/Index.vue'),\r\n redirect: '/User/UserCenter',\r\n children: [\r\n {\r\n path:'UserCenter', \r\n name: \"UserCenter\",\r\n // meta: {title: '个人中心 - 精品商城',keepAlive: false,},\r\n component: ()=>import('@/views/User/UserCenter.vue')\r\n },\r\n {\r\n path: 'OrderList',\r\n name: 'OrderList',\r\n meta: { title: '我的订单 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/OrderList.vue')\r\n },\r\n {\r\n path: 'UserInfo',\r\n name: 'UserInfo',\r\n meta: { title: '个人信息 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/UserInfo.vue')\r\n },\r\n {\r\n path: 'ViewHistory',\r\n name: 'ViewHistory',\r\n meta: { title: '我的足迹 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/ViewHistory.vue')\r\n },\r\n {\r\n path: 'UserAddress',\r\n name: 'UserAddress',\r\n meta: { title: '我的收货地址 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/UserAddress.vue')\r\n },\r\n {\r\n path: 'UserInvoice',\r\n name: 'UserInvoice',\r\n meta: { title: '我的发票 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/UserInvoice.vue')\r\n },\r\n {\r\n path: 'ShoppingCart',\r\n name: 'ShoppingCart',\r\n meta: { title: '购物车 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/ShoppingCart.vue')\r\n },\r\n ],\r\n },\r\n {\r\n path: '/OrderDetail',\r\n name: 'OrderDetail',\r\n meta: { title: '订单详情 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/OrderDetail.vue')\r\n },\r\n {\r\n path: '/PurchaserAdd',\r\n name: 'PurchaserAdd',\r\n meta: { title: '添加采购单位信息 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/PurchaserAdd.vue')\r\n },\r\n {\r\n path: '/OrderPay',\r\n name: 'OrderPay',\r\n meta: { title: '订单支付 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/OrderPay.vue')\r\n },\r\n {\r\n path: '/OrderPayB2B',\r\n name: 'OrderPayB2B',\r\n meta: { title: '订单支付 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/OrderPayB2B.vue')\r\n },\r\n {\r\n path: '/OrderPayCode',\r\n name: 'OrderPayCode',\r\n meta: { title: '订单支付 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/OrderPayCode.vue')\r\n },\r\n {\r\n path: '/OrderPaySuccess',\r\n name: 'OrderPaySuccess',\r\n meta: { title: '订单支付 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/OrderPaySuccess.vue')\r\n },\r\n \r\n // {\r\n // path: '/user/orders/:id',\r\n // name: 'OrderDetail',\r\n // meta: {\r\n // title: '订单详情 - 精品商城',\r\n // requireAuth: true,\r\n // keepAlive: false\r\n // },\r\n // component: () => import('@/views/OrderDetail.vue')\r\n // },\r\n {\r\n path: '/login',\r\n name: 'Login',\r\n meta: {\r\n title: '登录 - 精品商城',\r\n keepAlive: false\r\n },\r\n component: () => import('@/views/Login.vue')\r\n },\r\n {\r\n path: '/register',\r\n name: 'Register',\r\n meta: {\r\n title: '注册 - 精品商城',\r\n keepAlive: false\r\n },\r\n component: () => import('@/views/Register.vue')\r\n },\r\n // {\r\n // path: '*',\r\n // name: 'NotFound',\r\n // meta: {\r\n // title: '页面不存在 - 精品商城',\r\n // keepAlive: false\r\n // },\r\n // component: () => import('@/views/NotFound.vue')\r\n // }\r\n ],\r\n scrollBehavior(to, from, savedPosition) {\r\n // 页面滚动到顶部\r\n return { x: 0, y: 0 }\r\n }\r\n})\r\n\r\n// 路由守卫\r\nrouter.beforeEach((to, from, next) => {\r\n // 设置页面标题\r\n if (to.meta.title) {\r\n document.title = to.meta.title\r\n }\r\n \r\n // 验证登录状态\r\n if (to.meta.requireAuth) {\r\n const token = localStorage.getItem('token')\r\n if (token) {\r\n next()\r\n } else {\r\n next({\r\n path: '/login',\r\n query: { redirect: to.fullPath }\r\n })\r\n }\r\n } else {\r\n next()\r\n }\r\n})\r\n\r\nexport default router","import Vue from 'vue'\r\nimport Vuex from 'vuex'\r\nimport createPersistedState from 'vuex-persistedstate'\r\n\r\nVue.use(Vuex)\r\n\r\nexport default new Vuex.Store({\r\n plugins: [\r\n createPersistedState({\r\n storage: window.localStorage,\r\n reducer(val) {\r\n return {\r\n // 只持久化需要的状态\r\n cart: val.cart,\r\n user: val.user\r\n }\r\n }\r\n })\r\n ],\r\n state: {\r\n // 购物车状态\r\n cart: {\r\n items: [], // 购物车商品列表\r\n totalCount: 0, // 商品总数\r\n totalPrice: 0 // 商品总价\r\n },\r\n // 用户状态\r\n user: {\r\n isLogin: false,\r\n info: null,\r\n token: ''\r\n },\r\n // 分类数据\r\n categories: [],\r\n // 全局加载状态\r\n loading: false\r\n },\r\n mutations: {\r\n // 更新分类数据\r\n UPDATE_CATEGORIES(state, categories) {\r\n state.categories = categories\r\n },\r\n \r\n // 更新加载状态\r\n UPDATE_LOADING(state, status) {\r\n state.loading = status\r\n },\r\n \r\n // 用户登录\r\n USER_LOGIN(state, { userInfo, token }) {\r\n state.user.isLogin = true\r\n state.user.info = userInfo\r\n state.user.token = token\r\n localStorage.setItem('token', token)\r\n },\r\n \r\n // 用户登出\r\n USER_LOGOUT(state) {\r\n state.user.isLogin = false\r\n state.user.info = null\r\n state.user.token = ''\r\n localStorage.removeItem('token')\r\n },\r\n \r\n // 添加商品到购物车\r\n ADD_TO_CART(state, product) {\r\n const existingItem = state.cart.items.find(item => item.id === product.id)\r\n \r\n if (existingItem) {\r\n existingItem.quantity += product.quantity || 1\r\n } else {\r\n state.cart.items.push({\r\n ...product,\r\n quantity: product.quantity || 1\r\n })\r\n }\r\n \r\n this.commit('UPDATE_CART_TOTAL')\r\n },\r\n \r\n // 从购物车移除商品\r\n REMOVE_FROM_CART(state, productId) {\r\n state.cart.items = state.cart.items.filter(item => item.id !== productId)\r\n this.commit('UPDATE_CART_TOTAL')\r\n },\r\n \r\n // 更新购物车商品数量\r\n UPDATE_CART_ITEM_QUANTITY(state, { productId, quantity }) {\r\n const item = state.cart.items.find(item => item.id === productId)\r\n if (item) {\r\n item.quantity = quantity\r\n this.commit('UPDATE_CART_TOTAL')\r\n }\r\n },\r\n \r\n // 清空购物车\r\n CLEAR_CART(state) {\r\n state.cart.items = []\r\n this.commit('UPDATE_CART_TOTAL')\r\n },\r\n \r\n // 更新购物车总计\r\n UPDATE_CART_TOTAL(state) {\r\n state.cart.totalCount = state.cart.items.reduce((total, item) => {\r\n return total + item.quantity\r\n }, 0)\r\n \r\n state.cart.totalPrice = state.cart.items.reduce((total, item) => {\r\n return total + (item.price * item.quantity)\r\n }, 0)\r\n }\r\n },\r\n actions: {\r\n // 获取分类数据\r\n fetchCategories({ commit }) {\r\n commit('UPDATE_LOADING', true)\r\n // 模拟API请求\r\n return new Promise(resolve => {\r\n setTimeout(() => {\r\n const categories = [\r\n { id: 1, name: '电子产品', icon: 'el-icon-laptop' },\r\n { id: 2, name: '服装鞋帽', icon: 'el-icon-shopping-bag-1' },\r\n { id: 3, name: '家居用品', icon: 'el-icon-home' },\r\n { id: 4, name: '美妆个护', icon: 'el-icon-present' },\r\n { id: 5, name: '食品饮料', icon: 'el-icon-dish' },\r\n { id: 6, name: '图书音像', icon: 'el-icon-document' }\r\n ]\r\n commit('UPDATE_CATEGORIES', categories)\r\n commit('UPDATE_LOADING', false)\r\n resolve(categories)\r\n }, 500)\r\n })\r\n },\r\n \r\n // 用户登录\r\n login({ commit }, { username, password }) {\r\n commit('UPDATE_LOADING', true)\r\n // 模拟登录API请求\r\n return new Promise((resolve, reject) => {\r\n setTimeout(() => {\r\n if (username === 'test' && password === '123456') {\r\n const userInfo = { id: 1, username: 'test', avatar: 'https://picsum.photos/200' }\r\n const token = 'fake-token-123456'\r\n commit('USER_LOGIN', { userInfo, token })\r\n commit('UPDATE_LOADING', false)\r\n resolve(userInfo)\r\n } else {\r\n commit('UPDATE_LOADING', false)\r\n reject(new Error('用户名或密码错误'))\r\n }\r\n }, 1000)\r\n })\r\n },\r\n \r\n // 用户登出\r\n logout({ commit }) {\r\n commit('USER_LOGOUT')\r\n },\r\n \r\n // 添加商品到购物车\r\n addToCart({ commit }, product) {\r\n commit('ADD_TO_CART', product)\r\n },\r\n \r\n // 从购物车移除商品\r\n removeFromCart({ commit }, productId) {\r\n commit('REMOVE_FROM_CART', productId)\r\n },\r\n \r\n // 更新购物车商品数量\r\n updateCartItemQuantity({ commit }, payload) {\r\n commit('UPDATE_CART_ITEM_QUANTITY', payload)\r\n },\r\n \r\n // 清空购物车\r\n clearCart({ commit }) {\r\n commit('CLEAR_CART')\r\n }\r\n },\r\n getters: {\r\n // 获取分类列表\r\n getCategories: state => state.categories,\r\n \r\n // 获取购物车信息\r\n getCart: state => state.cart,\r\n \r\n // 获取购物车商品总数\r\n getCartTotalCount: state => state.cart.totalCount,\r\n \r\n // 获取购物车商品总价\r\n getCartTotalPrice: state => state.cart.totalPrice,\r\n \r\n // 获取用户登录状态\r\n isUserLogin: state => state.user.isLogin,\r\n \r\n // 获取用户信息\r\n getUserInfo: state => state.user.info,\r\n \r\n // 获取加载状态\r\n getLoadingStatus: state => state.loading\r\n }\r\n})\r\n","import Vue from 'vue'\r\nimport axios from \"axios\";\r\nimport { Message, MessageBox, Loading } from \"element-ui\"; // 引入 Element UI 组件\r\nimport store from '@/store';\r\n\r\nconst http = axios.create({\r\n timeout: 6000 // 请求超时时间\r\n})\r\n\r\n// 添加请求拦截器\r\nhttp.interceptors.request.use((config) => {\r\n const { customBaseURL } = config.params || {};\r\n if (customBaseURL) {\r\n config.baseURL = customBaseURL;\r\n delete config.params.customBaseURL;\r\n } else {\r\n config.baseURL = process.env.VUE_APP_URL;\r\n }\r\n \r\n const token = store.state.user?.userInfo?.token || '';\r\n config.headers['token'] = token\r\n config.headers['Content-Type'] = 'application/json;charset=UTF-8';\r\n \r\n // 显示加载中状态(Element UI 的 Loading)\r\n if (config.loading !== false) { // 默认显示,可通过参数关闭\r\n config.loadingInstance = Loading.service({\r\n lock: true,\r\n text: '加载中...',\r\n background: 'rgba(0, 0, 0, 0.7)'\r\n });\r\n }\r\n \r\n return config;\r\n}, (error) => {\r\n return Promise.reject(error);\r\n});\r\n\r\n// 添加响应拦截器\r\nhttp.interceptors.response.use(response => {\r\n // 关闭加载状态\r\n if (response.config.loadingInstance) {\r\n response.config.loadingInstance.close();\r\n }\r\n \r\n if (response.status === 200 || response.status === 1) {\r\n return response.data;\r\n }\r\n}, error => {\r\n // 关闭加载状态\r\n if (error.config && error.config.loadingInstance) {\r\n error.config.loadingInstance.close();\r\n }\r\n \r\n if (error.response && error.response.status) {\r\n switch (error.response.status) {\r\n case 401:\r\n MessageBox.confirm('请登录后操作', '提示', {\r\n confirmButtonText: '去登录',\r\n cancelButtonText: '取消',\r\n type: 'warning'\r\n }).then(() => {\r\n // 登录操作\r\n }).catch(() => {\r\n // 取消登录回调\r\n });\r\n break;\r\n case 404:\r\n Message({\r\n message: '网络繁忙,请刷新再试',\r\n type: 'error',\r\n duration: 2000\r\n });\r\n break;\r\n default:\r\n Message({\r\n message: '网络繁忙,请刷新再试',\r\n type: 'error',\r\n duration: 2000\r\n });\r\n break;\r\n }\r\n }\r\n return Promise.reject(error);\r\n});\r\n\r\n// 请求方法挂载\r\nVue.prototype.get = (params, url, loading = false) => {\r\n return new Promise((resolve, reject) => {\r\n http.get(url, { \r\n params,\r\n loading // 传递加载状态参数\r\n })\r\n .then(res => {\r\n resolve(res);\r\n })\r\n .catch(err => {\r\n reject(err);\r\n });\r\n })\r\n}\r\n\r\nVue.prototype.post = (data, url, loading = false) => {\r\n return new Promise((resolve, reject) => {\r\n http.post(url, data, {\r\n loading // 传递加载状态参数\r\n })\r\n .then(res => {\r\n resolve(res);\r\n })\r\n .catch(err => {\r\n reject(err);\r\n });\r\n })\r\n}","export default {\r\n\tinstall(Vue) {\r\n\t\tVue.prototype.util = {\r\n\t\t\t// 格式化富文本\r\n\t\t\tformateRichText(str) {\r\n\t\t\t\tif (!str) return \"\";\r\n\t\t\t\tvar reg = new RegExp(\"')\r\n\t\t\t\treg = new RegExp(\"section\", \"g\");\r\n\t\t\t\tstr = str.replace(reg, 'div');\r\n\t\t\t\treg = new RegExp(\"↵\", \"g\");\r\n\t\t\t\tstr = str.replace(reg, '
');\r\n\t\t\t\tstr = str.replace(/
'\r\n})\r\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","__webpack_require__.amdO = {};","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"js/\" + chunkId + \".\" + {\"23\":\"5e60beb0\",\"33\":\"d232b82b\",\"133\":\"73086f3e\",\"164\":\"81e2faa4\",\"169\":\"476d32e6\",\"181\":\"a2fd06e0\",\"198\":\"45ac7378\",\"213\":\"7d6a2655\",\"244\":\"7d3000f2\",\"285\":\"b163593c\",\"295\":\"2b6ac216\",\"312\":\"4c90c76d\",\"452\":\"d6fc2b8c\",\"510\":\"a937fc39\",\"561\":\"b0e1e346\",\"581\":\"b9f47383\",\"677\":\"e7ad81c7\",\"778\":\"d732e8ad\",\"828\":\"7b0404cc\",\"937\":\"e91a3d8d\"}[chunkId] + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"css/\" + chunkId + \".\" + {\"23\":\"8e6862d0\",\"33\":\"5507be5a\",\"164\":\"8de68017\",\"169\":\"a7db186a\",\"181\":\"be611a62\",\"198\":\"dd2194dd\",\"213\":\"2c6b15af\",\"244\":\"edd4b6a0\",\"285\":\"65995e3f\",\"295\":\"de484ffc\",\"312\":\"5068c08a\",\"452\":\"42e712d8\",\"510\":\"c2f47d4f\",\"581\":\"3b673a7d\",\"677\":\"51eebda5\",\"778\":\"2e87b3dc\",\"828\":\"449ccc53\",\"937\":\"e1a5ac5a\"}[chunkId] + \".css\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"abcdf:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.p = \"/\";","if (typeof document === \"undefined\") return;\nvar createStylesheet = function(chunkId, fullhref, oldTag, resolve, reject) {\n\tvar linkTag = document.createElement(\"link\");\n\n\tlinkTag.rel = \"stylesheet\";\n\tlinkTag.type = \"text/css\";\n\tif (__webpack_require__.nc) {\n\t\tlinkTag.nonce = __webpack_require__.nc;\n\t}\n\tvar onLinkComplete = function(event) {\n\t\t// avoid mem leaks.\n\t\tlinkTag.onerror = linkTag.onload = null;\n\t\tif (event.type === 'load') {\n\t\t\tresolve();\n\t\t} else {\n\t\t\tvar errorType = event && event.type;\n\t\t\tvar realHref = event && event.target && event.target.href || fullhref;\n\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + errorType + \": \" + realHref + \")\");\n\t\t\terr.name = \"ChunkLoadError\";\n\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n\t\t\terr.type = errorType;\n\t\t\terr.request = realHref;\n\t\t\tif (linkTag.parentNode) linkTag.parentNode.removeChild(linkTag)\n\t\t\treject(err);\n\t\t}\n\t}\n\tlinkTag.onerror = linkTag.onload = onLinkComplete;\n\tlinkTag.href = fullhref;\n\n\n\tif (oldTag) {\n\t\toldTag.parentNode.insertBefore(linkTag, oldTag.nextSibling);\n\t} else {\n\t\tdocument.head.appendChild(linkTag);\n\t}\n\treturn linkTag;\n};\nvar findStylesheet = function(href, fullhref) {\n\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n\tfor(var i = 0; i < existingLinkTags.length; i++) {\n\t\tvar tag = existingLinkTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return tag;\n\t}\n\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n\tfor(var i = 0; i < existingStyleTags.length; i++) {\n\t\tvar tag = existingStyleTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\");\n\t\tif(dataHref === href || dataHref === fullhref) return tag;\n\t}\n};\nvar loadStylesheet = function(chunkId) {\n\treturn new Promise(function(resolve, reject) {\n\t\tvar href = __webpack_require__.miniCssF(chunkId);\n\t\tvar fullhref = __webpack_require__.p + href;\n\t\tif(findStylesheet(href, fullhref)) return resolve();\n\t\tcreateStylesheet(chunkId, fullhref, null, resolve, reject);\n\t});\n}\n// object to store loaded CSS chunks\nvar installedCssChunks = {\n\t524: 0\n};\n\n__webpack_require__.f.miniCss = function(chunkId, promises) {\n\tvar cssChunks = {\"23\":1,\"33\":1,\"164\":1,\"169\":1,\"181\":1,\"198\":1,\"213\":1,\"244\":1,\"285\":1,\"295\":1,\"312\":1,\"452\":1,\"510\":1,\"581\":1,\"677\":1,\"778\":1,\"828\":1,\"937\":1};\n\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n\t\tpromises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(function() {\n\t\t\tinstalledCssChunks[chunkId] = 0;\n\t\t}, function(e) {\n\t\t\tdelete installedCssChunks[chunkId];\n\t\t\tthrow e;\n\t\t}));\n\t}\n};\n\n// no hmr\n\n// no prefetching\n\n// no preloaded","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t524: 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkabcdf\"] = self[\"webpackChunkabcdf\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [504], function() { return __webpack_require__(6911); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["render","_vm","this","_c","_self","attrs","$route","name","_e","staticClass","staticRenderFns","_m","isLogin","directives","rawName","value","userInfo","avatar","expression","_v","_s","username","on","handleLogout","nativeOn","$event","type","indexOf","_k","keyCode","key","handleSearch","apply","arguments","model","searchText","callback","$$v","slot","cartTotalCount","data","computed","mapGetters","categories","getCategories","getCartTotalCount","getUserInfo","created","fetchCategories","methods","mapActions","trim","$message","success","warning","$confirm","confirmButtonText","cancelButtonText","then","logout","$router","push","catch","component","staticStyle","handleCartClick","cartCount","handleServiceClick","class","active","isShowBackTop","handleBackToTop","scrollTimer","mounted","window","addEventListener","handleScroll","beforeDestroy","removeEventListener","clearTimeout","info","scrollTo","top","behavior","setTimeout","pageYOffset","showBackToTop","scrollToTop","setInterval","position","Math","max","clearInterval","components","HeaderNav","Footer","BackToTop","Sidebar","loading","getLoadingStatus","Vue","use","Router","router","mode","base","process","routes","path","meta","title","keepAlive","redirect","children","scrollBehavior","to","from","savedPosition","x","y","beforeEach","next","document","requireAuth","token","localStorage","getItem","query","fullPath","Vuex","plugins","createPersistedState","storage","reducer","val","cart","user","state","items","totalCount","totalPrice","mutations","UPDATE_CATEGORIES","UPDATE_LOADING","status","USER_LOGIN","setItem","USER_LOGOUT","removeItem","ADD_TO_CART","product","existingItem","find","item","id","quantity","commit","REMOVE_FROM_CART","productId","filter","UPDATE_CART_ITEM_QUANTITY","CLEAR_CART","UPDATE_CART_TOTAL","reduce","total","price","actions","Promise","resolve","icon","login","password","reject","Error","addToCart","removeFromCart","updateCartItemQuantity","payload","clearCart","getters","getCart","getCartTotalPrice","isUserLogin","http","axios","create","timeout","interceptors","request","config","customBaseURL","params","baseURL","store","headers","loadingInstance","Loading","service","lock","text","background","error","response","close","MessageBox","confirm","Message","message","duration","prototype","get","url","res","err","post","install","util","formateRichText","str","reg","RegExp","replace","mobileValid","test","idNumberValid","passportValid","taiwanValid","gangaoValid","foreignerValid","officerValid","emailValid","getUrlPara","arrUrl","split","para","openMap","lon","scene_lon","lat","scene_lat","address","uni","navigateTo","JSON","stringify","showImg","img","gotoPath","utils","productionTip","ElementUI","VueLazyload","preLoad","require","attempt","listenEvents","adapter","loaded","bindType","el","naturalHeight","naturalWidth","$parent","src","Init","console","log","App","template","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","call","m","amdO","deferred","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","length","fulfilled","j","Object","keys","every","splice","r","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","f","e","chunkId","all","promises","u","miniCssF","g","globalThis","Function","obj","prop","hasOwnProperty","inProgress","dataWebpackPrefix","l","done","script","needAttach","scripts","getElementsByTagName","s","getAttribute","createElement","charset","nc","setAttribute","onScriptComplete","prev","event","onerror","onload","doneFns","parentNode","removeChild","forEach","bind","target","head","appendChild","Symbol","toStringTag","nmd","paths","p","createStylesheet","fullhref","oldTag","linkTag","rel","nonce","onLinkComplete","errorType","realHref","href","code","insertBefore","nextSibling","findStylesheet","existingLinkTags","tag","dataHref","existingStyleTags","loadStylesheet","installedCssChunks","miniCss","cssChunks","installedChunks","installedChunkData","promise","loadingEnded","realSrc","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/app.a3998a8a.js b/dist/js/app.a3998a8a.js new file mode 100644 index 0000000..2425355 --- /dev/null +++ b/dist/js/app.a3998a8a.js @@ -0,0 +1,2 @@ +(function(){"use strict";var e={2008:function(e,t,n){n(4114);var a=n(6674),i=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"app"}},["Register"!==e.$route.name?t("HeaderNav"):e._e(),"Login"!==e.$route.name?t("main",{staticClass:"main-container"},[t("router-view")],1):e._e(),"Login"==e.$route.name?t("main",{staticClass:"main-containers"},[t("router-view")],1):e._e(),"Register"!==e.$route.name?t("Sidebar"):e._e(),"Register"!==e.$route.name?t("Footer"):e._e(),t("BackToTop")],1)},r=[],o=function(){var e=this,t=e._self._c;return t("header",{staticClass:"header-nav"},[t("div",{staticClass:"top-notice"},[t("div",{staticClass:"container"},[t("p",[e._v(" 欢迎来到时味苏州平台! "),e._e()],1),t("div",{staticClass:"top-links"},[e.isLogin?t("router-link",{staticClass:"user-link",attrs:{to:"/User"}},[t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.userInfo.avatar,expression:"userInfo.avatar"}],staticClass:"avatar",attrs:{alt:"用户头像"}}),e._v(" "+e._s(e.userInfo.username)+" ")]):t("router-link",{attrs:{to:"/Login"}},[e._v("登录")]),e._e(),e._e(),t("router-link",{attrs:{to:"/User"}},[e._v("采购人中心")]),t("router-link",{staticClass:"cart-link",attrs:{to:"/User/ShoppingCart"}},[e._v(" 购物车"),e.cartTotalCount>0?t("span",[e._v("("+e._s(e.cartTotalCount)+"件)")]):e._e()]),e.isLogin?t("router-link",{attrs:{to:"/User/OrderList"}},[e._v("我的订单")]):e._e(),e.isLogin?t("div",{staticClass:"logout-btn",on:{click:e.handleLogout}},[e._v(" 退出 ")]):e._e()],1)])]),t("div",{staticClass:"main-nav"},[t("div",{staticClass:"container"},[t("div",{staticClass:"logo"},[t("router-link",{attrs:{to:"/"}},[t("img",{staticClass:"logo-img",attrs:{src:"https://static.ticket.sz-trip.com/shiweisuzhou/pc/logo.png",alt:"logo"}})])],1),t("div",{staticClass:"search-box"},[t("el-input",{staticClass:"search-input",attrs:{placeholder:"请输入搜索内容"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch.apply(null,arguments)}},model:{value:e.searchText,callback:function(t){e.searchText=t},expression:"searchText"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.handleSearch},slot:"append"})],1),t("div",{staticClass:"hot-tags"},[t("span",[e._v("热门搜索:")]),t("div",{staticClass:"hot-tag",on:{click:function(t){e.searchText="手机",e.handleSearch()}}},[e._v(" 手机 ")]),t("div",{staticClass:"hot-tag",on:{click:function(t){e.searchText="电脑",e.handleSearch()}}},[e._v(" 电脑 ")]),t("div",{staticClass:"hot-tag",on:{click:function(t){e.searchText="服装",e.handleSearch()}}},[e._v(" 服装 ")])])],1),t("div",{staticClass:"phone-entry"},[t("router-link",{attrs:{to:"#"}},[t("img",{attrs:{src:"https://static.ticket.sz-trip.com/shiweisuzhou/pc/login/phone.png",alt:"联系电话"}}),t("span",[e._v("0512-680541")]),(e.cartTotalCount,e._e())])],1)])]),e.categories.length>0?t("div",{staticClass:"category-nav"},[t("div",{staticClass:"container"},[e._e()])]):e._e()])},s=[],c=n(3518),l={name:"HeaderNav",data(){return{searchText:""}},computed:{...(0,c.L8)(["getCategories","getCartTotalCount","isUserLogin","getUserInfo"]),categories(){return this.getCategories||[]},cartTotalCount(){return this.getCartTotalCount||0},isLogin(){return this.isUserLogin},userInfo(){return this.getUserInfo||{}}},created(){this.fetchCategories()},methods:{...(0,c.i0)(["fetchCategories","logout"]),handleSearch(){if(!this.searchText.trim())return;this.$store.commit("setSearchText",this.searchText);const e="/ProductList"===this.$route.path&&"search"===this.$route.query.type;e?this.$emit("search",this.searchText):this.$router.push({path:"/ProductList",query:{keyword:this.searchText,type:"search"}})},handleLogout(){this.$confirm("确定要退出登录吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.logout().then(()=>{this.$message.success("退出登录成功"),this.$router.push("/Login")}).catch(e=>{this.$message.error("退出失败:"+(e.message||"未知错误"))})}).catch(()=>{})}}},u=l,d=n(1656),h=(0,d.A)(u,o,s,!1,null,"397f4a13",null),p=h.exports,m=function(){var e=this,t=e._self._c;return t("div",{staticClass:"footer-container"},[t("div",{staticClass:"footer-top"},[e._m(0),e._m(1),e._m(2),e._m(3),e._m(4),t("div",{staticClass:"qrcode-group"},[t("div",{staticClass:"qrcode-item"},[t("el-empty",{staticStyle:{width:"100px",height:"100px"},attrs:{description:"二维码"}}),t("p",[e._v("时味苏州小程序")])],1),t("div",{staticClass:"qrcode-item"},[t("el-empty",{staticStyle:{width:"100px",height:"100px"},attrs:{description:"二维码"}}),t("p",[e._v("时味苏州服务号")])],1)])]),e._m(5)])},f=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"footer-column"},[t("h3",[e._v("关于我们")]),t("ul",[t("li",[e._v("平台简介")]),t("li",[e._v("政策文件")]),t("li",[e._v("平台标识指南")]),t("li",[e._v("营业执照")]),t("li",[e._v("食品经营许可证")])])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"footer-column"},[t("h3",[e._v("新手上路")]),t("ul",[t("li",[e._v("供应商入驻流程")]),t("li",[e._v("供应商操作手册")]),t("li",[e._v("采购人入驻流程")]),t("li",[e._v("采购人操作手册")]),t("li",[e._v("供应商入驻联系方式")])])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"footer-column"},[t("h3",[e._v("交易流程")]),t("ul",[t("li",[e._v("直购交易流程")]),t("li",[e._v("竞购交易流程")]),t("li",[e._v("货款结算流程")])])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"footer-column"},[t("h3",[e._v("常见问题")]),t("ul",[t("li",[e._v("预留份额填报")]),t("li",[e._v("支付结算问题")]),t("li",[e._v("账号管理问题")]),t("li",[e._v("在线客服问题")])])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"contact-info"},[t("p",[e._v("联系方式:")]),t("p",[e._v("客服电话:222-222-222")]),t("p",[e._v("工作时间:工作日 9:00-18:00")]),t("p",[e._v("客服邮箱:xxxxxxxxx@stn.com")]),t("p",[e._v("商务合作:18999999999")])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"footer-bottom"},[t("p",[e._v("版权所有 苏州市特色农产品发展有限公司 | 苏ICP备2023023300号-1")]),t("p",[e._v("本网站由 江苏大运远见文化科技发展有限公司 运营维护")])])}],g={name:"Footer",data(){return{}}},v=g,b=(0,d.A)(v,m,f,!1,null,"683e198c",null),C=b.exports,k=function(){var e=this,t=e._self._c;return t("div",{staticClass:"sidebar-container"},[t("div",{staticClass:"sidebar-item",on:{click:e.handleCartClick}},[t("el-badge",{staticClass:"item-badge",attrs:{value:e.cartCount}},[t("i",{staticClass:"el-icon-shopping-cart-full"})]),t("div",{staticClass:"item-text"},[e._v("购物车")])],1),t("div",{staticClass:"sidebar-item",on:{click:e.handleServiceClick}},[t("i",{staticClass:"el-icon-headset"}),t("div",{staticClass:"item-text"},[e._v("在线客服")])]),t("div",{staticClass:"sidebar-item back-to-top",class:{active:e.isShowBackTop},on:{click:e.handleBackToTop}},[t("i",{staticClass:"el-icon-caret-top"}),t("div",{staticClass:"item-text"},[e._v("回到顶部")])])])},y=[],T={name:"Sidebar",data(){return{cartCount:3,isShowBackTop:!1,scrollTimer:null}},mounted(){window.addEventListener("scroll",this.handleScroll)},beforeDestroy(){window.removeEventListener("scroll",this.handleScroll),this.scrollTimer&&clearTimeout(this.scrollTimer)},methods:{handleCartClick(){this.$router.push("/User/ShoppingCart")},handleServiceClick(){this.$message.info("正在唤起在线客服...")},handleBackToTop(){window.scrollTo({top:0,behavior:"smooth"})},handleScroll(){this.scrollTimer&&clearTimeout(this.scrollTimer),this.scrollTimer=setTimeout(()=>{this.isShowBackTop=window.pageYOffset>300},200)}}},A=T,I=(0,d.A)(A,k,y,!1,null,"0ddafffa",null),w=I.exports,R=function(){var e=this,t=e._self._c;return e.showBackToTop?t("div",{staticClass:"back-to-top",on:{click:e.scrollToTop}},[t("el-icon",{attrs:{name:"el-icon-arrow-up"}})],1):e._e()},x=[],E={name:"BackToTop",data(){return{showBackToTop:!1}},mounted(){window.addEventListener("scroll",this.handleScroll)},beforeDestroy(){window.removeEventListener("scroll",this.handleScroll)},methods:{handleScroll(){this.showBackToTop=window.pageYOffset>500},scrollToTop(){const e=window.setInterval(()=>{const t=window.pageYOffset;t>0?window.scrollTo(0,t-Math.max(20,t/10)):window.clearInterval(e)},16)}}},U=E,O=(0,d.A)(U,R,x,!1,null,"7ea6dee0",null),L=O.exports,P={name:"App",components:{HeaderNav:p,Footer:C,BackToTop:L,Sidebar:w},computed:{...(0,c.L8)(["getLoadingStatus"]),loading(){return this.getLoadingStatus}}},S=P,B=(0,d.A)(S,i,r,!1,null,null,null),N=B.exports,z=n(6178);a["default"].use(z.Ay);const Z=z.Ay.prototype.push;z.Ay.prototype.push=function(e){return Z.call(this,e).catch(e=>{if("NavigationDuplicated"!==e.name)throw e})};const G=new z.Ay({mode:"history",base:"/",routes:[{path:"/",name:"Index",meta:{title:"首页 - 精品商城",keepAlive:!1},component:()=>n.e(40).then(n.bind(n,5040))},{path:"/Login",name:"Login",meta:{title:"登录 - 精品商城",keepAlive:!1},component:()=>n.e(900).then(n.bind(n,900))},{path:"/Register",name:"Register",meta:{title:"注册 - 精品商城",keepAlive:!1},component:()=>n.e(29).then(n.bind(n,3029))},{path:"/Home",name:"Home",meta:{title:"首页 - 精品商城",keepAlive:!1},component:()=>n.e(828).then(n.bind(n,9828))},{path:"/Detail/:id",name:"Detail",meta:{title:"首页 - 精品商城",keepAlive:!1},component:()=>n.e(639).then(n.bind(n,4639))},{path:"/ProductList",name:"ProductList",meta:{title:"商品列表",keepAlive:!1},component:()=>n.e(4).then(n.bind(n,9004))},{path:"/User",name:"User",component:()=>n.e(110).then(n.bind(n,9110)),redirect:"/User/UserCenter",children:[{path:"UserCenter",name:"UserCenter",component:()=>n.e(64).then(n.bind(n,1064))},{path:"OrderList",name:"OrderList",meta:{title:"我的订单 - 精品商城",keepAlive:!1},component:()=>n.e(86).then(n.bind(n,3086))},{path:"UserInfo",name:"UserInfo",meta:{title:"个人信息 - 精品商城",keepAlive:!1},component:()=>n.e(893).then(n.bind(n,5893))},{path:"ViewHistory",name:"ViewHistory",meta:{title:"我的足迹 - 精品商城",keepAlive:!1},component:()=>n.e(33).then(n.bind(n,4033))},{path:"UserAddress",name:"UserAddress",meta:{title:"我的收货地址 - 精品商城",keepAlive:!1},component:()=>n.e(700).then(n.bind(n,700))},{path:"UserInvoice",name:"UserInvoice",meta:{title:"发票抬头 - 精品商城",keepAlive:!1},component:()=>n.e(113).then(n.bind(n,6113))},{path:"UserInvoiceList",name:"UserInvoiceList",meta:{title:"我的发票 - 精品商城",keepAlive:!1},component:()=>n.e(217).then(n.bind(n,8217))},{path:"ShoppingCart",name:"ShoppingCart",meta:{title:"购物车 - 精品商城",keepAlive:!1},component:()=>n.e(135).then(n.bind(n,2135))},{path:"CommentManage",name:"CommentManage",meta:{title:"评价管理 - 精品商城",keepAlive:!1},component:()=>n.e(592).then(n.bind(n,4592))},{path:"ContractList",name:"ContractList",meta:{title:"合同管理 - 精品商城",keepAlive:!1},component:()=>n.e(406).then(n.bind(n,3406))},{path:"MessageList",name:"MessageList",meta:{title:"消息中心 - 精品商城",keepAlive:!1},component:()=>n.e(838).then(n.bind(n,7838))},{path:"PurchaserAdd",name:"PurchaserAdd",meta:{title:"添加采购单位信息 - 精品商城",keepAlive:!1},component:()=>n.e(181).then(n.bind(n,6181))}]},{path:"/Order",name:"Order",meta:{title:"下单",keepAlive:!1},component:()=>n.e(143).then(n.bind(n,8524))},{path:"/OrderDetail",name:"OrderDetail",meta:{title:"订单详情 - 精品商城",keepAlive:!1},component:()=>n.e(241).then(n.bind(n,6241))},{path:"/OrderPay",name:"OrderPay",meta:{title:"订单支付 - 精品商城",keepAlive:!1},component:()=>n.e(677).then(n.bind(n,3677))},{path:"/OrderPayB2B",name:"OrderPayB2B",meta:{title:"订单支付 - 精品商城",keepAlive:!1},component:()=>n.e(452).then(n.bind(n,1452))},{path:"/OrderPayCode",name:"OrderPayCode",meta:{title:"订单支付 - 精品商城",keepAlive:!1},component:()=>n.e(244).then(n.bind(n,244))},{path:"/OrderPaySuccess",name:"OrderPaySuccess",meta:{title:"订单支付 - 精品商城",keepAlive:!1},component:()=>n.e(169).then(n.bind(n,7169))}],scrollBehavior(e,t,n){return{x:0,y:0}}});G.beforeEach((e,t,n)=>{if(e.meta.title&&(document.title=e.meta.title),e.meta.requireAuth){const t=localStorage.getItem("token");t?n():n({path:"/Login",query:{redirect:e.fullPath}})}else n()});var W=G,V=(n(8111),n(2489),n(116),n(8237),n(5131));a["default"].use(c.Ay);var Q=new c.Ay.Store({plugins:[(0,V.A)({storage:window.localStorage,reducer(e){return{cart:e.cart,user:e.user}}})],state:{cart:{items:[],totalCount:0,totalPrice:0},user:{isLogin:!1,info:null,token:""},categories:[],loading:!1,searchText:""},mutations:{UPDATE_CATEGORIES(e,t){e.categories=t},UPDATE_LOADING(e,t){e.loading=t},USER_LOGIN(e,{userInfo:t,token:n}){e.user.isLogin=!0,e.user.info=t,e.user.token=n,localStorage.setItem("token",n)},USER_LOGOUT(e){e.user.isLogin=!1,e.user.info=null,e.user.token="",localStorage.removeItem("token")},ADD_TO_CART(e,t){const n=e.cart.items.find(e=>e.id===t.id);n?n.quantity+=t.quantity||1:e.cart.items.push({...t,quantity:t.quantity||1}),this.commit("UPDATE_CART_TOTAL")},REMOVE_FROM_CART(e,t){e.cart.items=e.cart.items.filter(e=>e.id!==t),this.commit("UPDATE_CART_TOTAL")},UPDATE_CART_ITEM_QUANTITY(e,{productId:t,quantity:n}){const a=e.cart.items.find(e=>e.id===t);a&&(a.quantity=n,this.commit("UPDATE_CART_TOTAL"))},CLEAR_CART(e){e.cart.items=[],this.commit("UPDATE_CART_TOTAL")},UPDATE_CART_TOTAL(e){e.cart.totalCount=e.cart.items.reduce((e,t)=>e+t.quantity,0),e.cart.totalPrice=e.cart.items.reduce((e,t)=>e+t.price*t.quantity,0)},setSearchText(e,t){e.searchText=t}},actions:{fetchCategories({commit:e}){return e("UPDATE_LOADING",!0),new Promise(t=>{setTimeout(()=>{const n=[{id:1,name:"电子产品",icon:"el-icon-laptop"},{id:2,name:"服装鞋帽",icon:"el-icon-shopping-bag-1"},{id:3,name:"家居用品",icon:"el-icon-home"},{id:4,name:"美妆个护",icon:"el-icon-present"},{id:5,name:"食品饮料",icon:"el-icon-dish"},{id:6,name:"图书音像",icon:"el-icon-document"}];e("UPDATE_CATEGORIES",n),e("UPDATE_LOADING",!1),t(n)},500)})},logout({commit:e}){e("USER_LOGOUT")},addToCart({commit:e},t){e("ADD_TO_CART",t)},removeFromCart({commit:e},t){e("REMOVE_FROM_CART",t)},updateCartItemQuantity({commit:e},t){e("UPDATE_CART_ITEM_QUANTITY",t)},clearCart({commit:e}){e("CLEAR_CART")}},getters:{getCategories:e=>e.categories,getCart:e=>e.cart,getCartTotalCount:e=>e.cart.totalCount,getCartTotalPrice:e=>e.cart.totalPrice,isUserLogin:e=>e.user.isLogin,getUserInfo:e=>e.user.info,getLoadingStatus:e=>e.loading,getSearchText:e=>e.searchText}}),D=n(9143),M=n.n(D),Y=n(5847),J=n(4373);const j=J.A.create({timeout:6e3});j.interceptors.request.use(e=>{const{customBaseURL:t}=e.params||e.data||{};t?(e.baseURL=t,e.params?delete e.params.customBaseURL:e.data&&delete e.data.customBaseURL):e.baseURL="https://swsz.api.js-dyyj.com";const n=Q.state.user?.userInfo?.token||"";return e.headers["token"]=n||"745f2b4c-49b7-4393-bf58-bc380a87149a",e.headers["Content-Type"]="application/json;charset=UTF-8","get"===e.method?.toLowerCase()?e.params={platform_type:2,...e.params}:e.data={platform_type:2,...e.data},!1!==e.loading&&(e.loadingInstance=D.Loading.service({lock:!0,text:"加载中...",background:"rgba(0, 0, 0, 0.7)"})),e},e=>Promise.reject(e)),j.interceptors.response.use(e=>{if(e.config.loadingInstance&&e.config.loadingInstance.close(),200!==e.status&&1!==e.status){const t=`请求失败,状态码:${e.status}`;return D.MessageBox.alert(t,"错误提示",{confirmButtonText:"确定",type:"error"}),Promise.reject(new Error(t))}{const t=e.data;if(1===t.code||200===t.code)return t;{const e=t.msg||`业务处理失败,错误码:${t.code}`;D.MessageBox.alert(e,"错误提示",{confirmButtonText:"确定",type:"error"})}}},e=>{if(e.config&&e.config.loadingInstance&&e.config.loadingInstance.close(),e.response&&e.response.status)switch(e.response.status){case 401:D.MessageBox.confirm("请登录后操作","提示",{confirmButtonText:"去登录",cancelButtonText:"取消",type:"warning"}).then(()=>{}).catch(()=>{});break;case 404:(0,D.Message)({message:"网络繁忙,请刷新再试",type:"error",duration:2e3});break;default:(0,D.Message)({message:"网络繁忙,请刷新再试",type:"error",duration:2e3});break}return Promise.reject(e)}),a["default"].prototype.get=(e,t,n=!1)=>new Promise((a,i)=>{j.get(t,{params:e,loading:n}).then(e=>{a(e)}).catch(e=>{i(e)})}),a["default"].prototype.post=(e,t,n=!1)=>new Promise((a,i)=>{j.post(t,e,{loading:n}).then(e=>{a(e)}).catch(e=>{i(e)})});var _={install(e){e.prototype.util={formateRichText(e){if(!e)return"";var t=new RegExp("'),t=new RegExp("section","g"),e=e.replace(t,"div"),t=new RegExp("↵","g"),e=e.replace(t,"
"),e=e.replace(/
{t.onload=()=>{e(t.result)}})}}}};a["default"].use(_),a["default"].config.productionTip=!1,a["default"].use(M()),a["default"].use(Y.A,{preLoad:1.3,error:n(3153),loading:n(3153),attempt:3,listenEvents:["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],adapter:{loaded({bindType:e,el:t,naturalHeight:n,naturalWidth:a,$parent:i,src:r,loading:o,error:s,Init:c}){console.log("图片加载完成:",r)},error({bindType:e,el:t,error:n,$parent:a,src:i,loading:r}){console.log("图片加载失败:",i)}}}),a["default"].prototype.gotoPath=function(e,t={}){const n=this.$router.currentRoute.fullPath;if(e!==n)try{"string"===typeof e?this.$router.push({path:e,query:t.query||{}}):"object"===typeof e&&this.$router.push(e),"function"===typeof t.success&&t.success()}catch(a){console.error("路由跳转失败:",a),"function"===typeof t.fail&&t.fail(a)}},new a["default"]({el:"#app",router:W,store:Q,components:{App:N},template:""})},3153:function(e){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAY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kVZ+iBGlxfMR2awOuc6u9lkIJkjvcwXagjuc/YK+hUILkEgnVdxeRDfYaCiVIbvEk2546nHePPbdCCZJ7rMvJORVKkEzwBtuOGp5vhz2nQgnSNMBu6uM1OM84Nedu80qQFscY1SYfx2Z7LoUSpOlwH9ubi/j9m/YcCiWIDth1YK4EaUU8z7Z7Ab/bbX+rUII0PdY36DcKJUgu8R7btnkcv83+RqEEaRncwnZkDscdsccqlCAthQrbDXM47gZ7rEIJ0nJ4lO2VE3z/ij1GoQRpWaxb4HcKJUhL4GW2XTN8vst+p1CCtDw+Oc6Y6/hEoQRpCRxm23rcv7fazxRKEIXFXZRuwBDZvxUC4GsIREHflguDkyQqaVYotIulUChBFAoliEKhBFEolCAKhRJEoVCCKBRKEIVCCaJQKJQgCoUSRKFQgigUShCFIhP8vwADACog5YM65zugAAAAAElFTkSuQmCC"}},t={};function n(a){var i=t[a];if(void 0!==i)return i.exports;var r=t[a]={id:a,loaded:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}n.m=e,function(){n.amdO={}}(),function(){var e=[];n.O=function(t,a,i,r){if(!a){var o=1/0;for(u=0;u=r)&&Object.keys(n.O).every(function(e){return n.O[e](a[c])})?a.splice(c--,1):(s=!1,r0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[a,i,r]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}}(),function(){n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce(function(t,a){return n.f[a](e,t),t},[]))}}(),function(){n.u=function(e){return"js/"+e+"."+{4:"e0df9c1a",29:"7eef1ca9",33:"d232b82b",40:"e5eed29a",64:"57193698",86:"471ac328",110:"4a93ee72",113:"5c3b5964",135:"08e8073a",143:"9d51e2ee",169:"476d32e6",181:"a2fd06e0",217:"d6b5d26b",241:"231f8707",244:"7d3000f2",406:"069a7943",452:"d6fc2b8c",592:"90e06992",639:"edae0537",677:"e7ad81c7",700:"6882c630",828:"dc20517d",838:"e0fbe621",893:"906271e2",900:"6b17b6f1"}[e]+".js"}}(),function(){n.miniCssF=function(e){return"css/"+e+"."+{4:"0070063a",29:"2661f71c",33:"5507be5a",40:"614e9a44",64:"c294a0d0",86:"3b46bb21",110:"854f9bc2",135:"643ed51b",143:"ecb72621",169:"a7db186a",181:"be611a62",217:"aab8f461",241:"47c7ac13",244:"edd4b6a0",406:"efb923d9",452:"42e712d8",592:"09b799c2",639:"c184e302",677:"51eebda5",828:"96d8e95b",838:"4c0b65d7",893:"3aae9905",900:"57bae3a8"}[e]+".css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="abcdf:";n.l=function(a,i,r,o){if(e[a])e[a].push(i);else{var s,c;if(void 0!==r)for(var l=document.getElementsByTagName("script"),u=0;u 0)?_c('span',[_vm._v(\"(\"+_vm._s(_vm.cartTotalCount)+\"件)\")]):_vm._e()]),(_vm.isLogin)?_c('router-link',{attrs:{\"to\":\"/User/OrderList\"}},[_vm._v(\"我的订单\")]):_vm._e(),(_vm.isLogin)?_c('div',{staticClass:\"logout-btn\",on:{\"click\":_vm.handleLogout}},[_vm._v(\" 退出 \")]):_vm._e()],1)])]),_c('div',{staticClass:\"main-nav\"},[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"logo\"},[_c('router-link',{attrs:{\"to\":\"/\"}},[_c('img',{staticClass:\"logo-img\",attrs:{\"src\":\"https://static.ticket.sz-trip.com/shiweisuzhou/pc/logo.png\",\"alt\":\"logo\"}})])],1),_c('div',{staticClass:\"search-box\"},[_c('el-input',{staticClass:\"search-input\",attrs:{\"placeholder\":\"请输入搜索内容\"},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.handleSearch.apply(null, arguments)}},model:{value:(_vm.searchText),callback:function ($$v) {_vm.searchText=$$v},expression:\"searchText\"}},[_c('el-button',{attrs:{\"slot\":\"append\",\"icon\":\"el-icon-search\"},on:{\"click\":_vm.handleSearch},slot:\"append\"})],1),_c('div',{staticClass:\"hot-tags\"},[_c('span',[_vm._v(\"热门搜索:\")]),_c('div',{staticClass:\"hot-tag\",on:{\"click\":function($event){_vm.searchText = '手机';\n _vm.handleSearch();}}},[_vm._v(\" 手机 \")]),_c('div',{staticClass:\"hot-tag\",on:{\"click\":function($event){_vm.searchText = '电脑';\n _vm.handleSearch();}}},[_vm._v(\" 电脑 \")]),_c('div',{staticClass:\"hot-tag\",on:{\"click\":function($event){_vm.searchText = '服装';\n _vm.handleSearch();}}},[_vm._v(\" 服装 \")])])],1),_c('div',{staticClass:\"phone-entry\"},[_c('router-link',{attrs:{\"to\":\"#\"}},[_c('img',{attrs:{\"src\":\"https://static.ticket.sz-trip.com/shiweisuzhou/pc/login/phone.png\",\"alt\":\"联系电话\"}}),_c('span',[_vm._v(\"0512-680541\")]),(_vm.cartTotalCount > 0 && false)?_c('span',{staticClass:\"cart-count\"},[_vm._v(_vm._s(_vm.cartTotalCount))]):_vm._e()])],1)])]),(_vm.categories.length > 0)?_c('div',{staticClass:\"category-nav\"},[_c('div',{staticClass:\"container\"},[(false)?_c('ul',{staticClass:\"nav-list\"},[_c('li',{staticClass:\"nav-item\"},[_c('router-link',{staticClass:\"nav-link\",class:{ active: _vm.$route.path === '/' },attrs:{\"to\":\"/\"}},[_vm._v(\"首页\")])],1),_vm._l((_vm.categories),function(category){return _c('li',{key:category.id,staticClass:\"nav-item\"},[_c('router-link',{staticClass:\"nav-link\",class:{ active: _vm.$route.params.id == category.id },attrs:{\"to\":`/category/${category.id}`}},[_vm._v(\" \"+_vm._s(category.name)+\" \")])],1)})],2):_vm._e()])]):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./HeaderNav.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./HeaderNav.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./HeaderNav.vue?vue&type=template&id=397f4a13&scoped=true\"\nimport script from \"./HeaderNav.vue?vue&type=script&lang=js\"\nexport * from \"./HeaderNav.vue?vue&type=script&lang=js\"\nimport style0 from \"./HeaderNav.vue?vue&type=style&index=0&id=397f4a13&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"397f4a13\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"footer-container\"},[_c('div',{staticClass:\"footer-top\"},[_vm._m(0),_vm._m(1),_vm._m(2),_vm._m(3),_vm._m(4),_c('div',{staticClass:\"qrcode-group\"},[_c('div',{staticClass:\"qrcode-item\"},[_c('el-empty',{staticStyle:{\"width\":\"100px\",\"height\":\"100px\"},attrs:{\"description\":\"二维码\"}}),_c('p',[_vm._v(\"时味苏州小程序\")])],1),_c('div',{staticClass:\"qrcode-item\"},[_c('el-empty',{staticStyle:{\"width\":\"100px\",\"height\":\"100px\"},attrs:{\"description\":\"二维码\"}}),_c('p',[_vm._v(\"时味苏州服务号\")])],1)])]),_vm._m(5)])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"footer-column\"},[_c('h3',[_vm._v(\"关于我们\")]),_c('ul',[_c('li',[_vm._v(\"平台简介\")]),_c('li',[_vm._v(\"政策文件\")]),_c('li',[_vm._v(\"平台标识指南\")]),_c('li',[_vm._v(\"营业执照\")]),_c('li',[_vm._v(\"食品经营许可证\")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"footer-column\"},[_c('h3',[_vm._v(\"新手上路\")]),_c('ul',[_c('li',[_vm._v(\"供应商入驻流程\")]),_c('li',[_vm._v(\"供应商操作手册\")]),_c('li',[_vm._v(\"采购人入驻流程\")]),_c('li',[_vm._v(\"采购人操作手册\")]),_c('li',[_vm._v(\"供应商入驻联系方式\")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"footer-column\"},[_c('h3',[_vm._v(\"交易流程\")]),_c('ul',[_c('li',[_vm._v(\"直购交易流程\")]),_c('li',[_vm._v(\"竞购交易流程\")]),_c('li',[_vm._v(\"货款结算流程\")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"footer-column\"},[_c('h3',[_vm._v(\"常见问题\")]),_c('ul',[_c('li',[_vm._v(\"预留份额填报\")]),_c('li',[_vm._v(\"支付结算问题\")]),_c('li',[_vm._v(\"账号管理问题\")]),_c('li',[_vm._v(\"在线客服问题\")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"contact-info\"},[_c('p',[_vm._v(\"联系方式:\")]),_c('p',[_vm._v(\"客服电话:222-222-222\")]),_c('p',[_vm._v(\"工作时间:工作日 9:00-18:00\")]),_c('p',[_vm._v(\"客服邮箱:xxxxxxxxx@stn.com\")]),_c('p',[_vm._v(\"商务合作:18999999999\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"footer-bottom\"},[_c('p',[_vm._v(\"版权所有 苏州市特色农产品发展有限公司 | 苏ICP备2023023300号-1\")]),_c('p',[_vm._v(\"本网站由 江苏大运远见文化科技发展有限公司 运营维护\")])])\n}]\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Footer.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Footer.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Footer.vue?vue&type=template&id=683e198c&scoped=true\"\nimport script from \"./Footer.vue?vue&type=script&lang=js\"\nexport * from \"./Footer.vue?vue&type=script&lang=js\"\nimport style0 from \"./Footer.vue?vue&type=style&index=0&id=683e198c&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"683e198c\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"sidebar-container\"},[_c('div',{staticClass:\"sidebar-item\",on:{\"click\":_vm.handleCartClick}},[_c('el-badge',{staticClass:\"item-badge\",attrs:{\"value\":_vm.cartCount}},[_c('i',{staticClass:\"el-icon-shopping-cart-full\"})]),_c('div',{staticClass:\"item-text\"},[_vm._v(\"购物车\")])],1),_c('div',{staticClass:\"sidebar-item\",on:{\"click\":_vm.handleServiceClick}},[_c('i',{staticClass:\"el-icon-headset\"}),_c('div',{staticClass:\"item-text\"},[_vm._v(\"在线客服\")])]),_c('div',{staticClass:\"sidebar-item back-to-top\",class:{ active: _vm.isShowBackTop },on:{\"click\":_vm.handleBackToTop}},[_c('i',{staticClass:\"el-icon-caret-top\"}),_c('div',{staticClass:\"item-text\"},[_vm._v(\"回到顶部\")])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Sidebar.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Sidebar.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Sidebar.vue?vue&type=template&id=0ddafffa&scoped=true\"\nimport script from \"./Sidebar.vue?vue&type=script&lang=js\"\nexport * from \"./Sidebar.vue?vue&type=script&lang=js\"\nimport style0 from \"./Sidebar.vue?vue&type=style&index=0&id=0ddafffa&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0ddafffa\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.showBackToTop)?_c('div',{staticClass:\"back-to-top\",on:{\"click\":_vm.scrollToTop}},[_c('el-icon',{attrs:{\"name\":\"el-icon-arrow-up\"}})],1):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./BackToTop.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./BackToTop.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./BackToTop.vue?vue&type=template&id=7ea6dee0&scoped=true\"\nimport script from \"./BackToTop.vue?vue&type=script&lang=js\"\nexport * from \"./BackToTop.vue?vue&type=script&lang=js\"\nimport style0 from \"./BackToTop.vue?vue&type=style&index=0&id=7ea6dee0&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7ea6dee0\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=c37bea46\"\nimport script from \"./App.vue?vue&type=script&lang=js\"\nexport * from \"./App.vue?vue&type=script&lang=js\"\nimport style0 from \"./App.vue?vue&type=style&index=0&id=c37bea46&prod&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import Vue from 'vue'\r\nimport Router from 'vue-router'\r\n\r\nVue.use(Router)\r\n\r\n// 解决重复导航错误\r\nconst originalPush = Router.prototype.push\r\nRouter.prototype.push = function push(location) {\r\n return originalPush.call(this, location).catch(err => {\r\n // 只捕获重复导航的错误,其他错误正常抛出\r\n if (err.name !== 'NavigationDuplicated') {\r\n throw err\r\n }\r\n })\r\n}\r\n\r\nconst router = new Router({\r\n mode: 'history',\r\n base: process.env.BASE_URL,\r\n routes: [\r\n {\r\n path: '/',\r\n name: 'Index',\r\n meta: {\r\n title: '首页 - 精品商城',\r\n keepAlive: false\r\n },\r\n component: () => import('@/views/Index.vue')\r\n },\r\n {\r\n path: '/Login',\r\n name: 'Login',\r\n meta: {\r\n title: '登录 - 精品商城',\r\n keepAlive: false\r\n },\r\n component: () => import('@/views/Login.vue')\r\n },\r\n {\r\n path: '/Register',\r\n name: 'Register',\r\n meta: {\r\n title: '注册 - 精品商城',\r\n keepAlive: false\r\n },\r\n component: () => import('@/views/Register.vue')\r\n },\r\n {\r\n path: '/Home',\r\n name: 'Home',\r\n meta: {\r\n title: '首页 - 精品商城',\r\n keepAlive: false\r\n },\r\n component: () => import('@/views/Home.vue')\r\n },\r\n {\r\n path: '/Detail/:id',\r\n name: 'Detail',\r\n meta: {\r\n title: '首页 - 精品商城',\r\n keepAlive: false\r\n },\r\n component: () => import('@/views/Detail/Index.vue')\r\n },\r\n {\r\n path: '/ProductList',\r\n name: 'ProductList',\r\n meta: {\r\n title: '商品列表',\r\n keepAlive: false\r\n },\r\n component: () => import('@/views/ProductPage/Index.vue')\r\n },\r\n // {\r\n // path: '/category/:id?',\r\n // name: 'Category',\r\n // meta: {\r\n // title: '商品分类 - 精品商城',\r\n // keepAlive: false\r\n // },\r\n // component: () => import('@/views/Category.vue')\r\n // },\r\n // {\r\n // path: '/product/:id',\r\n // name: 'ProductDetail',\r\n // meta: {\r\n // title: '商品详情 - 精品商城',\r\n // keepAlive: false\r\n // },\r\n // component: () => import('@/views/ProductDetail.vue')\r\n // },\r\n // {\r\n // path: '/cart',\r\n // name: 'Cart',\r\n // meta: {\r\n // title: '购物车 - 精品商城',\r\n // requireAuth: true,\r\n // keepAlive: false\r\n // },\r\n // component: () => import('@/views/Cart.vue')\r\n // },\r\n // {\r\n // path: '/checkout',\r\n // name: 'Checkout',\r\n // meta: {\r\n // title: '结算 - 精品商城',\r\n // requireAuth: true,\r\n // keepAlive: false\r\n // },\r\n // component: () => import('@/views/Checkout.vue')\r\n // },\r\n {\r\n path: '/User',\r\n name: 'User',\r\n // meta: { title: '个人中心 - 精品商城',requireAuth: true,keepAlive: false},\r\n component: () => import('@/views/User/Index.vue'),\r\n redirect: '/User/UserCenter',\r\n children: [\r\n {\r\n path:'UserCenter', \r\n name: \"UserCenter\",\r\n // meta: {title: '个人中心 - 精品商城',keepAlive: false,},\r\n component: ()=>import('@/views/User/UserCenter.vue')\r\n },\r\n {\r\n path: 'OrderList',\r\n name: 'OrderList',\r\n meta: { title: '我的订单 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/OrderList.vue')\r\n },\r\n {\r\n path: 'UserInfo',\r\n name: 'UserInfo',\r\n meta: { title: '个人信息 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/UserInfo.vue')\r\n },\r\n {\r\n path: 'ViewHistory',\r\n name: 'ViewHistory',\r\n meta: { title: '我的足迹 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/ViewHistory.vue')\r\n },\r\n {\r\n path: 'UserAddress',\r\n name: 'UserAddress',\r\n meta: { title: '我的收货地址 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/UserAddress.vue')\r\n },\r\n {\r\n path: 'UserInvoice',\r\n name: 'UserInvoice',\r\n meta: { title: '发票抬头 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/UserInvoice.vue')\r\n },\r\n {\r\n path: 'UserInvoiceList',\r\n name: 'UserInvoiceList',\r\n meta: { title: '我的发票 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/UserInvoiceList.vue')\r\n },\r\n {\r\n path: 'ShoppingCart',\r\n name: 'ShoppingCart',\r\n meta: { title: '购物车 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/ShoppingCart.vue')\r\n },\r\n {\r\n path: 'CommentManage',\r\n name: 'CommentManage',\r\n meta: { title: '评价管理 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/CommentManage.vue')\r\n },\r\n {\r\n path: 'ContractList',\r\n name: 'ContractList',\r\n meta: { title: '合同管理 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/ContractList.vue')\r\n },\r\n {\r\n path: 'MessageList',\r\n name: 'MessageList',\r\n meta: { title: '消息中心 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/MessageList.vue')\r\n },\r\n {\r\n path: 'PurchaserAdd',\r\n name: 'PurchaserAdd',\r\n meta: { title: '添加采购单位信息 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/PurchaserAdd.vue')\r\n },\r\n ],\r\n },\r\n {\r\n path: '/Order',\r\n name: 'Order',\r\n meta: { title: '下单', keepAlive: false },\r\n component: () => import('@/views/Order/Index.vue')\r\n },\r\n {\r\n path: '/OrderDetail',\r\n name: 'OrderDetail',\r\n meta: { title: '订单详情 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/Order/OrderDetail.vue')\r\n },\r\n \r\n {\r\n path: '/OrderPay',\r\n name: 'OrderPay',\r\n meta: { title: '订单支付 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/OrderPay.vue')\r\n },\r\n {\r\n path: '/OrderPayB2B',\r\n name: 'OrderPayB2B',\r\n meta: { title: '订单支付 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/OrderPayB2B.vue')\r\n },\r\n {\r\n path: '/OrderPayCode',\r\n name: 'OrderPayCode',\r\n meta: { title: '订单支付 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/OrderPayCode.vue')\r\n },\r\n {\r\n path: '/OrderPaySuccess',\r\n name: 'OrderPaySuccess',\r\n meta: { title: '订单支付 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/OrderPaySuccess.vue')\r\n },\r\n \r\n // {\r\n // path: '/user/orders/:id',\r\n // name: 'OrderDetail',\r\n // meta: {\r\n // title: '订单详情 - 精品商城',\r\n // requireAuth: true,\r\n // keepAlive: false\r\n // },\r\n // component: () => import('@/views/OrderDetail.vue')\r\n // },\r\n // {\r\n // path: '*',\r\n // name: 'NotFound',\r\n // meta: {\r\n // title: '页面不存在 - 精品商城',\r\n // keepAlive: false\r\n // },\r\n // component: () => import('@/views/NotFound.vue')\r\n // }\r\n ],\r\n scrollBehavior(to, from, savedPosition) {\r\n // 页面滚动到顶部\r\n return { x: 0, y: 0 }\r\n }\r\n})\r\n\r\n// 路由守卫\r\nrouter.beforeEach((to, from, next) => {\r\n // 设置页面标题\r\n if (to.meta.title) {\r\n document.title = to.meta.title\r\n }\r\n \r\n // 验证登录状态\r\n if (to.meta.requireAuth) {\r\n const token = localStorage.getItem('token')\r\n if (token) {\r\n next()\r\n } else {\r\n next({\r\n path: '/Login',\r\n query: { redirect: to.fullPath }\r\n })\r\n }\r\n } else {\r\n next()\r\n }\r\n})\r\n\r\nexport default router","// index.js\nimport Vue from 'vue'\nimport Vuex from 'vuex'\nimport createPersistedState from 'vuex-persistedstate'\n\nVue.use(Vuex)\n\nexport default new Vuex.Store({\n plugins: [\n createPersistedState({\n storage: window.localStorage,\n reducer(val) {\n return {\n cart: val.cart,\n user: val.user\n }\n }\n })\n ],\n state: {\n // 购物车状态\n cart: {\n items: [], // 购物车商品列表\n totalCount: 0, // 商品总数\n totalPrice: 0 // 商品总价\n },\n // 用户状态\n user: {\n isLogin: false,\n info: null,\n token: ''\n },\n // 分类数据\n categories: [],\n // 全局加载状态\n loading: false,\n searchText: '' // 存储搜索词\n },\n mutations: {\n // 更新分类数据\n UPDATE_CATEGORIES(state, categories) {\n state.categories = categories\n },\n \n // 更新加载状态\n UPDATE_LOADING(state, status) {\n state.loading = status\n },\n \n // 用户登录\n USER_LOGIN(state, { userInfo, token }) {\n state.user.isLogin = true\n state.user.info = userInfo\n state.user.token = token\n localStorage.setItem('token', token)\n },\n \n // 用户登出\n USER_LOGOUT(state) {\n state.user.isLogin = false\n state.user.info = null\n state.user.token = ''\n localStorage.removeItem('token')\n },\n \n // 添加商品到购物车\n ADD_TO_CART(state, product) {\n const existingItem = state.cart.items.find(item => item.id === product.id)\n \n if (existingItem) {\n existingItem.quantity += product.quantity || 1\n } else {\n state.cart.items.push({\n ...product,\n quantity: product.quantity || 1\n })\n }\n \n this.commit('UPDATE_CART_TOTAL')\n },\n \n // 从购物车移除商品\n REMOVE_FROM_CART(state, productId) {\n state.cart.items = state.cart.items.filter(item => item.id !== productId)\n this.commit('UPDATE_CART_TOTAL')\n },\n \n // 更新购物车商品数量\n UPDATE_CART_ITEM_QUANTITY(state, { productId, quantity }) {\n const item = state.cart.items.find(item => item.id === productId)\n if (item) {\n item.quantity = quantity\n this.commit('UPDATE_CART_TOTAL')\n }\n },\n \n // 清空购物车\n CLEAR_CART(state) {\n state.cart.items = []\n this.commit('UPDATE_CART_TOTAL')\n },\n \n // 更新购物车总计\n UPDATE_CART_TOTAL(state) {\n state.cart.totalCount = state.cart.items.reduce((total, item) => {\n return total + item.quantity\n }, 0)\n \n state.cart.totalPrice = state.cart.items.reduce((total, item) => {\n return total + (item.price * item.quantity)\n }, 0)\n },\n\n setSearchText(state, text) {\n state.searchText = text;\n }\n },\n actions: {\n // 获取分类数据\n fetchCategories({ commit }) {\n commit('UPDATE_LOADING', true)\n // 模拟API请求\n return new Promise(resolve => {\n setTimeout(() => {\n const categories = [\n { id: 1, name: '电子产品', icon: 'el-icon-laptop' },\n { id: 2, name: '服装鞋帽', icon: 'el-icon-shopping-bag-1' },\n { id: 3, name: '家居用品', icon: 'el-icon-home' },\n { id: 4, name: '美妆个护', icon: 'el-icon-present' },\n { id: 5, name: '食品饮料', icon: 'el-icon-dish' },\n { id: 6, name: '图书音像', icon: 'el-icon-document' }\n ]\n commit('UPDATE_CATEGORIES', categories)\n commit('UPDATE_LOADING', false)\n resolve(categories)\n }, 500)\n })\n },\n \n // 用户登出\n logout({ commit }) {\n commit('USER_LOGOUT')\n },\n \n // 添加商品到购物车\n addToCart({ commit }, product) {\n commit('ADD_TO_CART', product)\n },\n \n // 从购物车移除商品\n removeFromCart({ commit }, productId) {\n commit('REMOVE_FROM_CART', productId)\n },\n \n // 更新购物车商品数量\n updateCartItemQuantity({ commit }, payload) {\n commit('UPDATE_CART_ITEM_QUANTITY', payload)\n },\n \n // 清空购物车\n clearCart({ commit }) {\n commit('CLEAR_CART')\n }\n },\n getters: {\n // 获取分类列表\n getCategories: state => state.categories,\n \n // 获取购物车信息\n getCart: state => state.cart,\n \n // 获取购物车商品总数\n getCartTotalCount: state => state.cart.totalCount,\n \n // 获取购物车商品总价\n getCartTotalPrice: state => state.cart.totalPrice,\n \n // 获取用户登录状态\n isUserLogin: state => state.user.isLogin,\n \n // 获取用户信息\n getUserInfo: state => state.user.info,\n \n // 获取加载状态\n getLoadingStatus: state => state.loading,\n\n // 获取搜索词\n getSearchText: state => state.searchText\n }\n})","import Vue from 'vue'\r\nimport axios from \"axios\";\r\nimport { Message, MessageBox, Loading } from \"element-ui\"; // 引入 Element UI 组件\r\nimport store from '@/store';\r\n\r\nconst http = axios.create({\r\n timeout: 6000 // 请求超时时间\r\n})\r\n\r\n// 添加请求拦截器\r\nhttp.interceptors.request.use((config) => {\r\n const { customBaseURL } = config.params || config.data || {};\r\n if (customBaseURL) {\r\n config.baseURL = customBaseURL;\r\n if (config.params) {\r\n delete config.params.customBaseURL;\r\n } else if (config.data) {\r\n delete config.data.customBaseURL;\r\n }\r\n } else {\r\n config.baseURL = process.env.VUE_APP_URL;\r\n }\r\n \r\n const token = store.state.user?.userInfo?.token || '';\r\n config.headers['token'] = token || \"745f2b4c-49b7-4393-bf58-bc380a87149a\";\r\n config.headers['Content-Type'] = 'application/json;charset=UTF-8';\r\n\r\n // 统一添加 platform_type = 2 参数\r\n // GET 请求在 params 中添加\r\n if (config.method?.toLowerCase() === 'get') {\r\n config.params = {\r\n platform_type: 2,\r\n ...config.params\r\n };\r\n } \r\n // POST 等其他请求在 data 中添加\r\n else {\r\n config.data = {\r\n platform_type: 2,\r\n ...config.data\r\n };\r\n }\r\n \r\n // 显示加载中状态(Element UI 的 Loading)\r\n if (config.loading !== false) { // 默认显示,可通过参数关闭\r\n config.loadingInstance = Loading.service({\r\n lock: true,\r\n text: '加载中...',\r\n background: 'rgba(0, 0, 0, 0.7)'\r\n });\r\n }\r\n \r\n return config;\r\n}, (error) => {\r\n return Promise.reject(error);\r\n});\r\n\r\n// 添加响应拦截器\r\nhttp.interceptors.response.use(response => {\r\n // 关闭加载状态\r\n if (response.config.loadingInstance) {\r\n response.config.loadingInstance.close();\r\n }\r\n \r\n if (response.status === 200 || response.status === 1) {\r\n const resData = response.data;\r\n // 假设接口约定 code 为 0 或 200 时表示业务成功(可根据实际情况修改)\r\n if (resData.code === 1 || resData.code === 200) {\r\n return resData;\r\n } else {\r\n // code 不符合预期时显示错误提示,优先使用接口返回的消息\r\n const errorMsg = resData.msg || `业务处理失败,错误码:${resData.code}`;\r\n MessageBox.alert(errorMsg, '错误提示', {\r\n confirmButtonText: '确定',\r\n type: 'error'\r\n });\r\n // return Promise.reject(new Error(errorMsg));\r\n }\r\n } else {\r\n // HTTP状态码非200和1时的弹框提示\r\n const errorMsg = `请求失败,状态码:${response.status}`;\r\n MessageBox.alert(errorMsg, '错误提示', {\r\n confirmButtonText: '确定',\r\n type: 'error'\r\n });\r\n return Promise.reject(new Error(errorMsg));\r\n }\r\n}, error => {\r\n // 关闭加载状态\r\n if (error.config && error.config.loadingInstance) {\r\n error.config.loadingInstance.close();\r\n }\r\n \r\n if (error.response && error.response.status) {\r\n switch (error.response.status) {\r\n case 401:\r\n MessageBox.confirm('请登录后操作', '提示', {\r\n confirmButtonText: '去登录',\r\n cancelButtonText: '取消',\r\n type: 'warning'\r\n }).then(() => {\r\n // 登录操作\r\n }).catch(() => {\r\n // 取消登录回调\r\n });\r\n break;\r\n case 404:\r\n Message({\r\n message: '网络繁忙,请刷新再试',\r\n type: 'error',\r\n duration: 2000\r\n });\r\n break;\r\n default:\r\n Message({\r\n message: '网络繁忙,请刷新再试',\r\n type: 'error',\r\n duration: 2000\r\n });\r\n break;\r\n }\r\n }\r\n return Promise.reject(error);\r\n});\r\n\r\n// 请求方法挂载\r\nVue.prototype.get = (params, url, loading = false) => {\r\n return new Promise((resolve, reject) => {\r\n http.get(url, { \r\n params,\r\n loading // 传递加载状态参数\r\n })\r\n .then(res => {\r\n resolve(res);\r\n })\r\n .catch(err => {\r\n reject(err);\r\n });\r\n })\r\n}\r\n\r\nVue.prototype.post = (data, url, loading = false) => {\r\n return new Promise((resolve, reject) => {\r\n http.post(url, data, {\r\n loading // 传递加载状态参数\r\n })\r\n .then(res => {\r\n resolve(res);\r\n })\r\n .catch(err => {\r\n reject(err);\r\n });\r\n })\r\n}","export default {\r\n\tinstall(Vue) {\r\n\t\tVue.prototype.util = {\r\n\t\t\t// 格式化富文本\r\n\t\t\tformateRichText(str) {\r\n\t\t\t\tif (!str) return \"\";\r\n\t\t\t\tvar reg = new RegExp(\"')\r\n\t\t\t\treg = new RegExp(\"section\", \"g\");\r\n\t\t\t\tstr = str.replace(reg, 'div');\r\n\t\t\t\treg = new RegExp(\"↵\", \"g\");\r\n\t\t\t\tstr = str.replace(reg, '
');\r\n\t\t\t\tstr = str.replace(/
{\r\n\t\t\t\t\treader.onload = () => {\r\n\t\t\t\t\t\tresolve(reader.result);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t}\r\n\t}\r\n}\r\n","import Vue from 'vue'\nimport App from './App'\nimport router from './router'\nimport store from './store'\nimport ElementUI from 'element-ui'\nimport 'element-ui/lib/theme-chalk/index.css'\nimport VueLazyload from 'vue-lazyload'\nimport '@/assets/css/common.scss'\nimport '../src/libs/axios.js' // axios处理\n\nimport utils from './libs/utils.js'\nVue.use(utils)\n\n// 全局配置\nVue.config.productionTip = false\nVue.use(ElementUI)\n\n// 配置图片懒加载\nVue.use(VueLazyload, {\n preLoad: 1.3, // 预加载高度比例\n error: require('./assets/logo.png'),\n loading: require('./assets/logo.png'),\n attempt: 3, // 增加尝试次数\n listenEvents: ['scroll', 'wheel', 'mousewheel', 'resize', 'animationend', 'transitionend', 'touchmove'], // 确保监听事件完整\n adapter: {\n // 增加加载状态日志\n loaded({ bindType, el, naturalHeight, naturalWidth, $parent, src, loading, error, Init }) {\n console.log('图片加载完成:', src)\n },\n error({ bindType, el, error, $parent, src, loading }) {\n console.log('图片加载失败:', src)\n }\n }\n})\n\n// 全局挂载公共路由跳转方法\nVue.prototype.gotoPath = function(path, options = {}) {\n // 1. 避免重复跳转同一页面\n const currentPath = this.$router.currentRoute.fullPath\n if (path === currentPath) {\n return\n }\n\n try {\n // 2. 支持两种跳转方式:路径字符串或配置对象\n if (typeof path === 'string') {\n // 字符串路径,可附带query参数\n this.$router.push({\n path,\n query: options.query || {}\n })\n } else if (typeof path === 'object') {\n // 直接传入路由配置对象(如命名路由)\n this.$router.push(path)\n }\n \n // 3. 可选的跳转成功回调\n if (typeof options.success === 'function') {\n options.success()\n }\n } catch (error) {\n // 4. 错误处理\n console.error('路由跳转失败:', error)\n if (typeof options.fail === 'function') {\n options.fail(error)\n }\n }\n}\n\n/* eslint-disable no-new */\nnew Vue({\n el: '#app',\n router,\n store,\n components: { App },\n template: ''\n})\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","__webpack_require__.amdO = {};","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"js/\" + chunkId + \".\" + {\"4\":\"e0df9c1a\",\"29\":\"7eef1ca9\",\"33\":\"d232b82b\",\"40\":\"e5eed29a\",\"64\":\"57193698\",\"86\":\"471ac328\",\"110\":\"4a93ee72\",\"113\":\"5c3b5964\",\"135\":\"08e8073a\",\"143\":\"9d51e2ee\",\"169\":\"476d32e6\",\"181\":\"a2fd06e0\",\"217\":\"d6b5d26b\",\"241\":\"231f8707\",\"244\":\"7d3000f2\",\"406\":\"069a7943\",\"452\":\"d6fc2b8c\",\"592\":\"90e06992\",\"639\":\"edae0537\",\"677\":\"e7ad81c7\",\"700\":\"6882c630\",\"828\":\"dc20517d\",\"838\":\"e0fbe621\",\"893\":\"906271e2\",\"900\":\"6b17b6f1\"}[chunkId] + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"css/\" + chunkId + \".\" + {\"4\":\"0070063a\",\"29\":\"2661f71c\",\"33\":\"5507be5a\",\"40\":\"614e9a44\",\"64\":\"c294a0d0\",\"86\":\"3b46bb21\",\"110\":\"854f9bc2\",\"135\":\"643ed51b\",\"143\":\"ecb72621\",\"169\":\"a7db186a\",\"181\":\"be611a62\",\"217\":\"aab8f461\",\"241\":\"47c7ac13\",\"244\":\"edd4b6a0\",\"406\":\"efb923d9\",\"452\":\"42e712d8\",\"592\":\"09b799c2\",\"639\":\"c184e302\",\"677\":\"51eebda5\",\"828\":\"96d8e95b\",\"838\":\"4c0b65d7\",\"893\":\"3aae9905\",\"900\":\"57bae3a8\"}[chunkId] + \".css\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"abcdf:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.p = \"/\";","if (typeof document === \"undefined\") return;\nvar createStylesheet = function(chunkId, fullhref, oldTag, resolve, reject) {\n\tvar linkTag = document.createElement(\"link\");\n\n\tlinkTag.rel = \"stylesheet\";\n\tlinkTag.type = \"text/css\";\n\tif (__webpack_require__.nc) {\n\t\tlinkTag.nonce = __webpack_require__.nc;\n\t}\n\tvar onLinkComplete = function(event) {\n\t\t// avoid mem leaks.\n\t\tlinkTag.onerror = linkTag.onload = null;\n\t\tif (event.type === 'load') {\n\t\t\tresolve();\n\t\t} else {\n\t\t\tvar errorType = event && event.type;\n\t\t\tvar realHref = event && event.target && event.target.href || fullhref;\n\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + errorType + \": \" + realHref + \")\");\n\t\t\terr.name = \"ChunkLoadError\";\n\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n\t\t\terr.type = errorType;\n\t\t\terr.request = realHref;\n\t\t\tif (linkTag.parentNode) linkTag.parentNode.removeChild(linkTag)\n\t\t\treject(err);\n\t\t}\n\t}\n\tlinkTag.onerror = linkTag.onload = onLinkComplete;\n\tlinkTag.href = fullhref;\n\n\n\tif (oldTag) {\n\t\toldTag.parentNode.insertBefore(linkTag, oldTag.nextSibling);\n\t} else {\n\t\tdocument.head.appendChild(linkTag);\n\t}\n\treturn linkTag;\n};\nvar findStylesheet = function(href, fullhref) {\n\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n\tfor(var i = 0; i < existingLinkTags.length; i++) {\n\t\tvar tag = existingLinkTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return tag;\n\t}\n\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n\tfor(var i = 0; i < existingStyleTags.length; i++) {\n\t\tvar tag = existingStyleTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\");\n\t\tif(dataHref === href || dataHref === fullhref) return tag;\n\t}\n};\nvar loadStylesheet = function(chunkId) {\n\treturn new Promise(function(resolve, reject) {\n\t\tvar href = __webpack_require__.miniCssF(chunkId);\n\t\tvar fullhref = __webpack_require__.p + href;\n\t\tif(findStylesheet(href, fullhref)) return resolve();\n\t\tcreateStylesheet(chunkId, fullhref, null, resolve, reject);\n\t});\n}\n// object to store loaded CSS chunks\nvar installedCssChunks = {\n\t524: 0\n};\n\n__webpack_require__.f.miniCss = function(chunkId, promises) {\n\tvar cssChunks = {\"4\":1,\"29\":1,\"33\":1,\"40\":1,\"64\":1,\"86\":1,\"110\":1,\"135\":1,\"143\":1,\"169\":1,\"181\":1,\"217\":1,\"241\":1,\"244\":1,\"406\":1,\"452\":1,\"592\":1,\"639\":1,\"677\":1,\"828\":1,\"838\":1,\"893\":1,\"900\":1};\n\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n\t\tpromises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(function() {\n\t\t\tinstalledCssChunks[chunkId] = 0;\n\t\t}, function(e) {\n\t\t\tdelete installedCssChunks[chunkId];\n\t\t\tthrow e;\n\t\t}));\n\t}\n};\n\n// no hmr\n\n// no prefetching\n\n// no preloaded","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t524: 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkabcdf\"] = self[\"webpackChunkabcdf\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [504], function() { return __webpack_require__(2008); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["render","_vm","this","_c","_self","attrs","$route","name","_e","staticClass","staticRenderFns","_v","isLogin","directives","rawName","value","userInfo","avatar","expression","_s","username","cartTotalCount","on","handleLogout","nativeOn","$event","type","indexOf","_k","keyCode","key","handleSearch","apply","arguments","model","searchText","callback","$$v","slot","categories","length","data","computed","mapGetters","getCategories","getCartTotalCount","isUserLogin","getUserInfo","created","fetchCategories","methods","mapActions","trim","$store","commit","isSearchPage","path","query","$emit","$router","push","keyword","$confirm","confirmButtonText","cancelButtonText","then","logout","$message","success","catch","err","error","message","component","_m","staticStyle","handleCartClick","cartCount","handleServiceClick","class","active","isShowBackTop","handleBackToTop","scrollTimer","mounted","window","addEventListener","handleScroll","beforeDestroy","removeEventListener","clearTimeout","info","scrollTo","top","behavior","setTimeout","pageYOffset","showBackToTop","scrollToTop","setInterval","position","Math","max","clearInterval","components","HeaderNav","Footer","BackToTop","Sidebar","loading","getLoadingStatus","Vue","use","Router","originalPush","prototype","location","call","router","mode","base","process","routes","meta","title","keepAlive","redirect","children","scrollBehavior","to","from","savedPosition","x","y","beforeEach","next","document","requireAuth","token","localStorage","getItem","fullPath","Vuex","plugins","createPersistedState","storage","reducer","val","cart","user","state","items","totalCount","totalPrice","mutations","UPDATE_CATEGORIES","UPDATE_LOADING","status","USER_LOGIN","setItem","USER_LOGOUT","removeItem","ADD_TO_CART","product","existingItem","find","item","id","quantity","REMOVE_FROM_CART","productId","filter","UPDATE_CART_ITEM_QUANTITY","CLEAR_CART","UPDATE_CART_TOTAL","reduce","total","price","setSearchText","text","actions","Promise","resolve","icon","addToCart","removeFromCart","updateCartItemQuantity","payload","clearCart","getters","getCart","getCartTotalPrice","getSearchText","http","axios","create","timeout","interceptors","request","config","customBaseURL","params","baseURL","store","headers","method","toLowerCase","platform_type","loadingInstance","Loading","service","lock","background","reject","response","close","errorMsg","MessageBox","alert","Error","resData","code","msg","confirm","Message","duration","get","url","res","post","install","util","formateRichText","str","reg","RegExp","replace","mobileValid","test","idNumberValid","passportValid","taiwanValid","gangaoValid","foreignerValid","officerValid","emailValid","getUrlPara","arrUrl","split","para","showImg","img","imgToBase64","reader","FileReader","readAsDataURL","onload","result","utils","productionTip","ElementUI","VueLazyload","preLoad","require","attempt","listenEvents","adapter","loaded","bindType","el","naturalHeight","naturalWidth","$parent","src","Init","console","log","gotoPath","options","currentPath","currentRoute","fail","App","template","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","m","amdO","deferred","O","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","Object","keys","every","splice","r","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","f","e","chunkId","all","promises","u","miniCssF","g","globalThis","Function","obj","prop","hasOwnProperty","inProgress","dataWebpackPrefix","l","done","script","needAttach","scripts","getElementsByTagName","s","getAttribute","createElement","charset","nc","setAttribute","onScriptComplete","prev","event","onerror","doneFns","parentNode","removeChild","forEach","bind","target","head","appendChild","Symbol","toStringTag","nmd","paths","p","createStylesheet","fullhref","oldTag","linkTag","rel","nonce","onLinkComplete","errorType","realHref","href","insertBefore","nextSibling","findStylesheet","existingLinkTags","tag","dataHref","existingStyleTags","loadStylesheet","installedCssChunks","miniCss","cssChunks","installedChunks","installedChunkData","promise","loadingEnded","realSrc","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/src/components/common/AddressFormDialog.vue b/src/components/common/AddressFormDialog.vue new file mode 100644 index 0000000..2dc4400 --- /dev/null +++ b/src/components/common/AddressFormDialog.vue @@ -0,0 +1,317 @@ + + + + + \ No newline at end of file diff --git a/src/components/layout/HeaderNav.vue b/src/components/layout/HeaderNav.vue index 640d510..1d4ec3b 100644 --- a/src/components/layout/HeaderNav.vue +++ b/src/components/layout/HeaderNav.vue @@ -5,24 +5,30 @@ @@ -31,13 +37,13 @@