diff --git a/dist/css/110.854f9bc2.css b/dist/css/110.854f9bc2.css deleted file mode 100644 index 6e1267c..0000000 --- a/dist/css/110.854f9bc2.css +++ /dev/null @@ -1 +0,0 @@ -.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/15.4b379120.css b/dist/css/15.4b379120.css new file mode 100644 index 0000000..7326f82 --- /dev/null +++ b/dist/css/15.4b379120.css @@ -0,0 +1 @@ +.bg[data-v-732b9384]{display:flex;flex-direction:column}.bg[data-v-732b9384] .el-button--text,.bg[data-v-732b9384] .el-tabs__item.is-active{color:#6a8a27}.bg[data-v-732b9384] .el-tabs__active-bar{background-color:#6a8a27}.bg[data-v-732b9384] .el-tabs__item:hover{color:#6a8a27}.filter-bar[data-v-732b9384]{margin-bottom:20px}.filter-bar[data-v-732b9384] .el-input-number__decrease,.filter-bar[data-v-732b9384] .el-input-number__increase{display:none}.filter-bar[data-v-732b9384] .el-input-number .el-input__inner{padding-left:10px;padding-right:10px}.order-card[data-v-732b9384]{border:1px solid #eee;border-radius:4px;margin-bottom:20px;overflow:hidden}.order-header[data-v-732b9384]{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-732b9384]{padding:10px 20px}.product-item[data-v-732b9384]{display:flex;align-items:center;padding:15px 0;border-bottom:1px dashed #eee;font-size:14px}.product-item[data-v-732b9384]:last-child{border-bottom:none}.product-image[data-v-732b9384]{width:80px;height:80px;-o-object-fit:cover;object-fit:cover;margin-right:15px;border-radius:4px}.product-details[data-v-732b9384]{flex:1}.product-name[data-v-732b9384]{color:#333;margin-bottom:5px}.product-spec[data-v-732b9384]{color:#999;font-size:12px}.product-price[data-v-732b9384]{width:120px;text-align:center;color:#333}.product-quantity[data-v-732b9384]{width:100px;text-align:center;color:#666}.product-total[data-v-732b9384]{width:120px;text-align:center;color:#333;font-weight:500}.product-actions[data-v-732b9384],.product-status[data-v-732b9384]{width:150px;text-align:center}.order-footer[data-v-732b9384]{background-color:#f8f9fa;padding:15px 20px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid #eee}.order-summary[data-v-732b9384]{text-align:right}.order-amount[data-v-732b9384]{color:#333;margin-bottom:5px}.order-amount strong[data-v-732b9384]{color:#ff4d4f;font-size:16px}.order-tips[data-v-732b9384]{font-size:12px;color:#999}.order-actions[data-v-732b9384]{display:flex;gap:10px}.notice-bar[data-v-732b9384]{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}.product-info[data-v-732b9384]{display:flex;align-items:center;padding:5px 0}.product-info .product-img[data-v-732b9384]{width:50px;height:50px;-o-object-fit:cover;object-fit:cover;border-radius:4px;margin-right:10px;border:1px solid #eee}.product-info .product-name[data-v-732b9384]{color:#333} \ No newline at end of file diff --git a/dist/css/151.e5fbd0e8.css b/dist/css/151.e5fbd0e8.css new file mode 100644 index 0000000..a808e3e --- /dev/null +++ b/dist/css/151.e5fbd0e8.css @@ -0,0 +1 @@ +.bg[data-v-6cc31808]{display:flex;flex-direction:column}.bg[data-v-6cc31808] .el-button--text{color:#6a8a27}.el-card[data-v-6cc31808]{margin-bottom:20px;border-radius:6px;box-shadow:0 2px 12px 0 rgba(0,0,0,.05);border:none}.el-card__header[data-v-6cc31808]{padding:16px 20px;border-bottom:1px solid #f0f0f0;background-color:#fff;font-size:16px;font-weight:500}.el-card__body[data-v-6cc31808]{padding:20px}.notice-bar[data-v-6cc31808]{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-6cc31808],.notice-bar__content[data-v-6cc31808]{display:flex;align-items:center}.notice-bar__content i[data-v-6cc31808]{margin-right:8px}.notice-bar__close[data-v-6cc31808]{cursor:pointer;transition:color .2s}.notice-bar__close[data-v-6cc31808]:hover{color:#fa8c16}.user-info[data-v-6cc31808]{display:flex;align-items:flex-start;padding:10px 0}.user-avatar[data-v-6cc31808]{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-6cc31808]{flex:1}.user-name[data-v-6cc31808]{font-size:20px;font-weight:500;margin-bottom:10px;color:#1f2329}.user-other-info[data-v-6cc31808]{color:#4e5969;margin-bottom:6px;font-size:14px}.login-info[data-v-6cc31808]{display:flex;padding-top:20px}.login-section[data-v-6cc31808]{flex:1}.login-section-title[data-v-6cc31808]{font-weight:500;margin-bottom:10px;color:#1f2329;font-size:15px}.login-detail[data-v-6cc31808]{color:#4e5969;font-size:14px;margin-bottom:6px}.feature-grid[data-v-6cc31808]{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-top:15px}.feature-item[data-v-6cc31808]{display:flex;flex-direction:column;align-items:center;padding:15px 10px;border-radius:6px;transition:all .2s;cursor:pointer}.feature-item[data-v-6cc31808]:hover{background-color:#f5f7fa}.feature-icon[data-v-6cc31808]{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-6cc31808]{font-size:14px;color:#4e5969} \ No newline at end of file diff --git a/dist/css/170.0849e36c.css b/dist/css/170.0849e36c.css new file mode 100644 index 0000000..67fcc8d --- /dev/null +++ b/dist/css/170.0849e36c.css @@ -0,0 +1 @@ +.bg[data-v-6f29e60c]{display:flex;flex-direction:column}.bg[data-v-6f29e60c] .el-button--text,.bg[data-v-6f29e60c] .el-tabs__item.is-active{color:#6a8a27}.bg[data-v-6f29e60c] .el-tabs__active-bar{background-color:#6a8a27}.bg[data-v-6f29e60c] .el-tabs__item:hover{color:#6a8a27}.filter-bar[data-v-6f29e60c]{margin-bottom:20px}.order-card[data-v-6f29e60c]{border:1px solid #eee;border-radius:4px;margin-bottom:20px;overflow:hidden}.order-header[data-v-6f29e60c]{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-6f29e60c]{padding:10px 20px}.product-item[data-v-6f29e60c]{display:flex;align-items:center;padding:15px 0;border-bottom:1px dashed #eee;font-size:14px}.product-item[data-v-6f29e60c]:last-child{border-bottom:none}.product-image[data-v-6f29e60c]{width:80px;height:80px;-o-object-fit:cover;object-fit:cover;margin-right:15px;border-radius:4px}.product-details[data-v-6f29e60c]{flex:1}.product-name[data-v-6f29e60c]{color:#333;margin-bottom:5px}.product-spec[data-v-6f29e60c]{color:#999;font-size:12px}.product-price[data-v-6f29e60c]{width:120px;text-align:center;color:#333}.product-quantity[data-v-6f29e60c]{width:100px;text-align:center;color:#666}.product-total[data-v-6f29e60c]{width:120px;text-align:center;color:#333;font-weight:500}.product-actions[data-v-6f29e60c],.product-status[data-v-6f29e60c]{width:150px;text-align:center}.order-footer[data-v-6f29e60c]{background-color:#f8f9fa;padding:15px 20px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid #eee}.order-summary[data-v-6f29e60c]{text-align:right}.order-amount[data-v-6f29e60c]{color:#333;margin-bottom:5px}.order-amount strong[data-v-6f29e60c]{color:#ff4d4f;font-size:16px}.order-tips[data-v-6f29e60c]{font-size:12px;color:#999}.order-actions[data-v-6f29e60c]{display:flex;gap:10px} \ No newline at end of file diff --git a/dist/css/181.be611a62.css b/dist/css/181.be611a62.css deleted file mode 100644 index e7a29e6..0000000 --- a/dist/css/181.be611a62.css +++ /dev/null @@ -1 +0,0 @@ -.bg[data-v-5daf4460]{display:flex;flex-direction:column;font-size:14px}.common-card[data-v-5daf4460]{width:100%;background-color:#fff;padding:20px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.order-status[data-v-5daf4460]{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-5daf4460]{color:#999}.order-status .order-no .el-button[data-v-5daf4460]{width:-moz-fit-content;width:fit-content;margin:0;display:inline-block;padding:0}.order-status .status-title[data-v-5daf4460]{display:flex;align-items:center;font-size:16px;font-weight:700}.order-status .status-title i[data-v-5daf4460]{font-size:24px}.order-status .el-button[data-v-5daf4460]{width:120px;display:block;margin:0 auto}.order-step[data-v-5daf4460]{width:100%;padding:20px 20px;display:flex;align-items:center}.order-step[data-v-5daf4460] .el-step__icon.is-text{border:none;width:30px;height:30px;border-radius:50%;background:#c0c4cc;color:#fff}.order-step[data-v-5daf4460] .el-step__line{top:13px}.order-step[data-v-5daf4460] .el-step__line-inner{border-color:#c0c4cc}.order-step .process-title[data-v-5daf4460]{color:#999;font-weight:700;font-size:18px;margin-top:10px}.order-step[data-v-5daf4460] .is-finish .el-step__icon{background:#67c23a}.order-step[data-v-5daf4460] .is-current .el-step__icon{background:#d80200}.order-step[data-v-5daf4460] .is-current .process-title{color:#d80200}.avatar-uploader-icon[data-v-5daf4460]{font-size:28px;color:#8c939d;width:100px;height:100px;line-height:100px;text-align:center}[data-v-5daf4460] .avatar-uploader .el-upload{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.avatar[data-v-5daf4460]{width:100px;height:100px;display:block}.grid-container[data-v-5daf4460]{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:20px}.header-title[data-v-5daf4460]{font-weight:700;margin-bottom:20px;padding-left:20px} \ No newline at end of file diff --git a/dist/css/217.aab8f461.css b/dist/css/217.aab8f461.css deleted file mode 100644 index cfce753..0000000 --- a/dist/css/217.aab8f461.css +++ /dev/null @@ -1 +0,0 @@ -.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/220.409c24a4.css b/dist/css/220.409c24a4.css new file mode 100644 index 0000000..412eb1b --- /dev/null +++ b/dist/css/220.409c24a4.css @@ -0,0 +1 @@ +.product-grid-page[data-v-f31b94e0]{padding:20px;background-color:#f5f7fa;max-width:1400px;margin:0 auto}.product-grid-page .filter-bar[data-v-f31b94e0]{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-f31b94e0]{flex:1;min-width:200px}.product-grid-page .filter-bar .filter-select[data-v-f31b94e0]{min-width:140px}.product-grid-page .result-stats[data-v-f31b94e0]{margin:0 0 15px 5px;color:#666;font-size:14px;padding:5px 0}.product-grid-page .result-stats .category[data-v-f31b94e0],.product-grid-page .result-stats .keyword[data-v-f31b94e0]{color:#ff4d4f;font-weight:500;margin:0 5px}.product-grid-page .product-grid[data-v-f31b94e0]{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px;margin-bottom:30px}.product-grid-page .product-card[data-v-f31b94e0]{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-f31b94e0]:hover{transform:translateY(-5px);box-shadow:0 8px 16px rgba(0,0,0,.1)}.product-grid-page .product-card .product-img[data-v-f31b94e0]{width:100%;height:200px;background-color:#f5f5f5}.product-grid-page .product-card .image-placeholder[data-v-f31b94e0]{width:100%;height:200px;display:flex;align-items:center;justify-content:center;background-color:#f5f5f5}.product-grid-page .product-card .tag[data-v-f31b94e0]{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-f31b94e0]{padding:15px}.product-grid-page .product-card .product-info .product-name[data-v-f31b94e0]{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-f31b94e0]{display:flex;align-items:center;margin-bottom:8px}.product-grid-page .product-card .product-info .price-row .current-price[data-v-f31b94e0]{color:#ff4d4f;font-weight:700;font-size:16px}.product-grid-page .product-card .product-info .price-row .original-price[data-v-f31b94e0]{color:#999;font-size:12px;text-decoration:line-through;margin-left:8px}.product-grid-page .product-card .product-info .sales-volume[data-v-f31b94e0]{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-f31b94e0]{font-size:12px;margin-right:4px}.product-grid-page .product-card .product-info .cart-btn[data-v-f31b94e0]{width:100%}.product-grid-page .empty-state[data-v-f31b94e0]{grid-column:1/-1;padding:60px 0;text-align:center}.product-grid-page .pagination-container[data-v-f31b94e0]{display:flex;justify-content:center;margin-top:20px;padding:10px}@media(max-width:768px){.product-grid-page[data-v-f31b94e0]{padding:10px}.product-grid-page .filter-bar[data-v-f31b94e0]{padding:10px;gap:10px}.product-grid-page .product-grid[data-v-f31b94e0]{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}.product-grid-page .product-card .image-placeholder[data-v-f31b94e0],.product-grid-page .product-card .product-img[data-v-f31b94e0]{height:140px}} \ No newline at end of file diff --git a/dist/css/230.44c2ea2e.css b/dist/css/230.44c2ea2e.css new file mode 100644 index 0000000..1584c18 --- /dev/null +++ b/dist/css/230.44c2ea2e.css @@ -0,0 +1 @@ +.bg[data-v-574b70c4]{display:flex;flex-direction:column}.bg[data-v-574b70c4] .el-button--text,.bg[data-v-574b70c4] .el-tabs__item.is-active{color:#6a8a27}.bg[data-v-574b70c4] .el-tabs__active-bar{background-color:#6a8a27}.bg[data-v-574b70c4] .el-tabs__item:hover{color:#6a8a27}.filter-bar[data-v-574b70c4]{margin-bottom:20px}.order-card[data-v-574b70c4]{border:1px solid #eee;border-radius:4px;margin-bottom:20px;overflow:hidden}.order-header[data-v-574b70c4]{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-574b70c4]{padding:10px 20px}.product-item[data-v-574b70c4]{display:flex;align-items:center;padding:15px 0;border-bottom:1px dashed #eee;font-size:14px}.product-item[data-v-574b70c4]:last-child{border-bottom:none}.product-image[data-v-574b70c4]{width:80px;height:80px;-o-object-fit:cover;object-fit:cover;margin-right:15px;border-radius:4px}.product-details[data-v-574b70c4]{flex:1}.product-name[data-v-574b70c4]{color:#333;margin-bottom:5px}.product-spec[data-v-574b70c4]{color:#999;font-size:12px}.product-price[data-v-574b70c4]{width:120px;text-align:center;color:#333}.product-quantity[data-v-574b70c4]{width:100px;text-align:center;color:#666}.product-total[data-v-574b70c4]{width:120px;text-align:center;color:#333;font-weight:500}.product-actions[data-v-574b70c4],.product-status[data-v-574b70c4]{width:150px;text-align:center}.order-footer[data-v-574b70c4]{background-color:#f8f9fa;padding:15px 20px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid #eee}.order-summary[data-v-574b70c4]{text-align:right}.order-amount[data-v-574b70c4]{color:#333;margin-bottom:5px}.order-amount strong[data-v-574b70c4]{color:#ff4d4f;font-size:16px}.order-tips[data-v-574b70c4]{font-size:12px;color:#999}.order-actions[data-v-574b70c4]{display:flex;gap:10px} \ No newline at end of file diff --git a/dist/css/328.114638ae.css b/dist/css/328.114638ae.css new file mode 100644 index 0000000..0be01ec --- /dev/null +++ b/dist/css/328.114638ae.css @@ -0,0 +1 @@ +.bg[data-v-ae67915e]{display:flex}.left-container[data-v-ae67915e]{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-ae67915e]{padding:10px;cursor:pointer;font-size:14px}.left-container .route-item[data-v-ae67915e]:hover{background-color:#f9f9f9}.left-container .route-item.active[data-v-ae67915e]{background-color:#6a8a27;color:#fff}.right-container[data-v-ae67915e]{flex:1;width:1px;padding-left:20px} \ No newline at end of file diff --git a/dist/css/334.5db4c613.css b/dist/css/334.5db4c613.css deleted file mode 100644 index 45eec1c..0000000 --- a/dist/css/334.5db4c613.css +++ /dev/null @@ -1 +0,0 @@ -.region-selector[data-v-7d3ebefd]{display:flex;gap:10px;flex-wrap:wrap}.region-select[data-v-7d3ebefd]{min-width:180px;flex:1;max-width:30%}.order-page[data-v-3e695a3d]{max-width:1200px;margin:0 auto;padding:20px;background-color:#fff;border:1px solid #e6e6e6;border-radius:4px}.order-page .page-header[data-v-3e695a3d]{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.order-page .page-header h2[data-v-3e695a3d]{font-size:18px;font-weight:500;color:#333;margin:0}.order-page .page-header .address-book-btn[data-v-3e695a3d]{color:#409eff}.order-page .info-section[data-v-3e695a3d]{margin-bottom:20px}.order-page .info-section h3[data-v-3e695a3d]{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-3e695a3d],.order-page .info-section .invoice-address-item[data-v-3e695a3d],.order-page .info-section .invoice-title-item[data-v-3e695a3d],.order-page .info-section .invoice-type-item[data-v-3e695a3d],.order-page .info-section .trade-type-item[data-v-3e695a3d]{margin-bottom:15px;display:flex;align-items:center}.order-page .info-section .address-item .label[data-v-3e695a3d],.order-page .info-section .invoice-address-item .label[data-v-3e695a3d],.order-page .info-section .invoice-title-item .label[data-v-3e695a3d],.order-page .info-section .invoice-type-item .label[data-v-3e695a3d],.order-page .info-section .trade-type-item .label[data-v-3e695a3d]{width:120px;color:#666;font-size:14px;padding-top:5px}.order-page .info-section .address-item .address-content[data-v-3e695a3d],.order-page .info-section .invoice-address-item .address-content[data-v-3e695a3d],.order-page .info-section .invoice-title-item .address-content[data-v-3e695a3d],.order-page .info-section .invoice-type-item .address-content[data-v-3e695a3d],.order-page .info-section .trade-type-item .address-content[data-v-3e695a3d]{flex:1}.order-page .info-section .address-item .saved-address[data-v-3e695a3d],.order-page .info-section .invoice-address-item .saved-address[data-v-3e695a3d],.order-page .info-section .invoice-title-item .saved-address[data-v-3e695a3d],.order-page .info-section .invoice-type-item .saved-address[data-v-3e695a3d],.order-page .info-section .trade-type-item .saved-address[data-v-3e695a3d]{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-3e695a3d],.order-page .info-section .invoice-address-item .saved-address.selected[data-v-3e695a3d],.order-page .info-section .invoice-title-item .saved-address.selected[data-v-3e695a3d],.order-page .info-section .invoice-type-item .saved-address.selected[data-v-3e695a3d],.order-page .info-section .trade-type-item .saved-address.selected[data-v-3e695a3d]{border-color:#6a8a27;background-color:rgba(106,138,39,.05)}.order-page .info-section .address-item .saved-address .name-tag[data-v-3e695a3d],.order-page .info-section .invoice-address-item .saved-address .name-tag[data-v-3e695a3d],.order-page .info-section .invoice-title-item .saved-address .name-tag[data-v-3e695a3d],.order-page .info-section .invoice-type-item .saved-address .name-tag[data-v-3e695a3d],.order-page .info-section .trade-type-item .saved-address .name-tag[data-v-3e695a3d]{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-3e695a3d],.order-page .info-section .invoice-address-item .saved-address .detail[data-v-3e695a3d],.order-page .info-section .invoice-title-item .saved-address .detail[data-v-3e695a3d],.order-page .info-section .invoice-type-item .saved-address .detail[data-v-3e695a3d],.order-page .info-section .trade-type-item .saved-address .detail[data-v-3e695a3d]{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-3e695a3d],.order-page .info-section .address-item .saved-address .edit-btn[data-v-3e695a3d],.order-page .info-section .address-item .saved-address .set-default-btn[data-v-3e695a3d],.order-page .info-section .invoice-address-item .saved-address .delete-btn[data-v-3e695a3d],.order-page .info-section .invoice-address-item .saved-address .edit-btn[data-v-3e695a3d],.order-page .info-section .invoice-address-item .saved-address .set-default-btn[data-v-3e695a3d],.order-page .info-section .invoice-title-item .saved-address .delete-btn[data-v-3e695a3d],.order-page .info-section .invoice-title-item .saved-address .edit-btn[data-v-3e695a3d],.order-page .info-section .invoice-title-item .saved-address .set-default-btn[data-v-3e695a3d],.order-page .info-section .invoice-type-item .saved-address .delete-btn[data-v-3e695a3d],.order-page .info-section .invoice-type-item .saved-address .edit-btn[data-v-3e695a3d],.order-page .info-section .invoice-type-item .saved-address .set-default-btn[data-v-3e695a3d],.order-page .info-section .trade-type-item .saved-address .delete-btn[data-v-3e695a3d],.order-page .info-section .trade-type-item .saved-address .edit-btn[data-v-3e695a3d],.order-page .info-section .trade-type-item .saved-address .set-default-btn[data-v-3e695a3d]{margin-left:10px;color:#409eff;font-size:13px;padding:0;height:auto}.order-page .info-section .address-item .el-radio[data-v-3e695a3d],.order-page .info-section .invoice-address-item .el-radio[data-v-3e695a3d],.order-page .info-section .invoice-title-item .el-radio[data-v-3e695a3d],.order-page .info-section .invoice-type-item .el-radio[data-v-3e695a3d],.order-page .info-section .trade-type-item .el-radio[data-v-3e695a3d]{margin-right:15px;margin-top:3px}.order-page .info-section .address-item .invoice-title-select[data-v-3e695a3d],.order-page .info-section .invoice-address-item .invoice-title-select[data-v-3e695a3d],.order-page .info-section .invoice-title-item .invoice-title-select[data-v-3e695a3d],.order-page .info-section .invoice-type-item .invoice-title-select[data-v-3e695a3d],.order-page .info-section .trade-type-item .invoice-title-select[data-v-3e695a3d]{width:300px;margin-top:3px}.order-page .info-section .address-item .add-title-btn[data-v-3e695a3d],.order-page .info-section .invoice-address-item .add-title-btn[data-v-3e695a3d],.order-page .info-section .invoice-title-item .add-title-btn[data-v-3e695a3d],.order-page .info-section .invoice-type-item .add-title-btn[data-v-3e695a3d],.order-page .info-section .trade-type-item .add-title-btn[data-v-3e695a3d]{margin-left:10px;color:#409eff;padding:0;height:auto}.order-page .contract-section[data-v-3e695a3d]{margin-bottom:20px;padding:15px;background-color:#f9f9f9;border-radius:4px}.order-page .contract-section h3[data-v-3e695a3d]{font-size:16px;font-weight:500;color:#333;margin-bottom:10px;margin-top:0}.order-page .contract-section p[data-v-3e695a3d]{font-size:14px;color:#666;margin:0}.order-page .goods-section h3[data-v-3e695a3d]{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-3e695a3d]{margin-bottom:20px;border:1px solid #e6e6e6;border-radius:4px;overflow:hidden}.order-page .goods-section .order-group .supplier-info[data-v-3e695a3d]{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-3e695a3d]{width:100%;border-collapse:collapse}.order-page .goods-section .order-group .goods-table th[data-v-3e695a3d]{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-3e695a3d]{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-3e695a3d]{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-3e695a3d]{vertical-align:middle;max-width:200px;display:inline-block}.order-page .goods-section .order-group .goods-table .subtotal[data-v-3e695a3d]{color:#ff4d4f;font-weight:500}.order-page .goods-section .order-group .order-remark[data-v-3e695a3d]{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-3e695a3d]{display:block;margin-bottom:10px;font-weight:500}.order-page .goods-section .order-group .order-remark .rich-text-editor[data-v-3e695a3d]{border:1px solid #e6e6e6;border-radius:4px;overflow:hidden}.order-page .goods-section .order-group .order-remark .rich-text-editor .remark-editor[data-v-3e695a3d]{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-3e695a3d]{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-3e695a3d]{margin-right:5px}.order-page .goods-section .total-info[data-v-3e695a3d]{text-align:right;padding:20px;background-color:#f5f7fa;border-radius:4px;margin-top:10px}.order-page .goods-section .total-info p[data-v-3e695a3d]{margin:8px 0;color:#333;font-size:14px}.order-page .goods-section .total-info .pay-amount[data-v-3e695a3d]{font-weight:700;color:#ff4d4f;font-size:16px;margin:15px 0}.order-page .goods-section .total-info .address-info[data-v-3e695a3d]{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-3e695a3d]{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-3e695a3d]:hover{background-color:#e03e40}@media(max-width:768px){.order-page[data-v-3e695a3d]{padding:10px}.info-section .address-item[data-v-3e695a3d],.info-section .invoice-address-item[data-v-3e695a3d],.info-section .invoice-title-item[data-v-3e695a3d],.info-section .invoice-type-item[data-v-3e695a3d],.info-section .trade-type-item[data-v-3e695a3d]{flex-direction:column}.info-section .address-item .label[data-v-3e695a3d],.info-section .invoice-address-item .label[data-v-3e695a3d],.info-section .invoice-title-item .label[data-v-3e695a3d],.info-section .invoice-type-item .label[data-v-3e695a3d],.info-section .trade-type-item .label[data-v-3e695a3d]{width:100%;margin-bottom:5px;padding-top:0}.info-section .address-item .saved-address[data-v-3e695a3d],.info-section .invoice-address-item .saved-address[data-v-3e695a3d],.info-section .invoice-title-item .saved-address[data-v-3e695a3d],.info-section .invoice-type-item .saved-address[data-v-3e695a3d],.info-section .trade-type-item .saved-address[data-v-3e695a3d]{flex-direction:column;align-items:flex-start}.info-section .address-item .saved-address .detail[data-v-3e695a3d],.info-section .address-item .saved-address .name-tag[data-v-3e695a3d],.info-section .invoice-address-item .saved-address .detail[data-v-3e695a3d],.info-section .invoice-address-item .saved-address .name-tag[data-v-3e695a3d],.info-section .invoice-title-item .saved-address .detail[data-v-3e695a3d],.info-section .invoice-title-item .saved-address .name-tag[data-v-3e695a3d],.info-section .invoice-type-item .saved-address .detail[data-v-3e695a3d],.info-section .invoice-type-item .saved-address .name-tag[data-v-3e695a3d],.info-section .trade-type-item .saved-address .detail[data-v-3e695a3d],.info-section .trade-type-item .saved-address .name-tag[data-v-3e695a3d]{margin-bottom:8px;width:100%}.info-section .address-item .saved-address .delete-btn[data-v-3e695a3d],.info-section .address-item .saved-address .edit-btn[data-v-3e695a3d],.info-section .address-item .saved-address .set-default-btn[data-v-3e695a3d],.info-section .invoice-address-item .saved-address .delete-btn[data-v-3e695a3d],.info-section .invoice-address-item .saved-address .edit-btn[data-v-3e695a3d],.info-section .invoice-address-item .saved-address .set-default-btn[data-v-3e695a3d],.info-section .invoice-title-item .saved-address .delete-btn[data-v-3e695a3d],.info-section .invoice-title-item .saved-address .edit-btn[data-v-3e695a3d],.info-section .invoice-title-item .saved-address .set-default-btn[data-v-3e695a3d],.info-section .invoice-type-item .saved-address .delete-btn[data-v-3e695a3d],.info-section .invoice-type-item .saved-address .edit-btn[data-v-3e695a3d],.info-section .invoice-type-item .saved-address .set-default-btn[data-v-3e695a3d],.info-section .trade-type-item .saved-address .delete-btn[data-v-3e695a3d],.info-section .trade-type-item .saved-address .edit-btn[data-v-3e695a3d],.info-section .trade-type-item .saved-address .set-default-btn[data-v-3e695a3d]{margin-left:0;margin-right:10px;display:inline-block}.info-section .address-item .invoice-title-select[data-v-3e695a3d],.info-section .invoice-address-item .invoice-title-select[data-v-3e695a3d],.info-section .invoice-title-item .invoice-title-select[data-v-3e695a3d],.info-section .invoice-type-item .invoice-title-select[data-v-3e695a3d],.info-section .trade-type-item .invoice-title-select[data-v-3e695a3d]{width:100%}.goods-section .goods-table[data-v-3e695a3d]{font-size:12px}.goods-section .order-group .goods-table td[data-v-3e695a3d],.goods-section .order-group .goods-table th[data-v-3e695a3d]{padding:8px;font-size:12px}.goods-section .order-group .goods-name[data-v-3e695a3d]{max-width:100px}.goods-section .total-info[data-v-3e695a3d]{padding:15px}.goods-section .total-info .submit-btn[data-v-3e695a3d]{width:100%}} \ No newline at end of file diff --git a/dist/css/406.efb923d9.css b/dist/css/406.efb923d9.css deleted file mode 100644 index 73f9367..0000000 --- a/dist/css/406.efb923d9.css +++ /dev/null @@ -1 +0,0 @@ -.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/558.b8b34808.css b/dist/css/558.b8b34808.css new file mode 100644 index 0000000..320407a --- /dev/null +++ b/dist/css/558.b8b34808.css @@ -0,0 +1 @@ +.bg[data-v-74926859]{display:flex;flex-direction:column;font-size:14px}.bg[data-v-74926859] .el-input.is-disabled .el-input__inner{color:#606266}.common-card[data-v-74926859]{width:100%;background-color:#fff;padding:20px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.notice-bar[data-v-74926859]{background-color:#fffbe6;border:1px solid #ffe58f;padding:12px 16px;border-radius:4px;margin-bottom:20px;color:#fa8c16;font-size:14px}.notice-bar[data-v-74926859],.order-status[data-v-74926859]{display:flex;justify-content:space-between;align-items:center}.order-status[data-v-74926859]{border-right:1px solid #eee;width:350px;height:220px;flex-shrink:0;flex-direction:column}.order-status .order-no[data-v-74926859]{color:#999}.order-status .order-no .el-button[data-v-74926859]{width:-moz-fit-content;width:fit-content;margin:0;display:inline-block;padding:0}.order-status .status-title[data-v-74926859]{display:flex;align-items:center;font-size:16px;font-weight:700}.order-status .status-title i[data-v-74926859]{font-size:24px}.order-status .el-button[data-v-74926859]{width:120px;display:block;margin:0 auto}.order-step[data-v-74926859]{width:100%;padding:20px 20px;display:flex;align-items:center}.order-step[data-v-74926859] .el-step__icon.is-text{border:none;width:30px;height:30px;border-radius:50%;background:#c0c4cc;color:#fff}.order-step[data-v-74926859] .el-step__line{top:13px}.order-step[data-v-74926859] .el-step__line-inner{border-color:#c0c4cc}.order-step .process-title[data-v-74926859]{color:#999;font-weight:700;font-size:18px;margin-top:10px}.order-step[data-v-74926859] .is-finish .el-step__icon{background:#67c23a}.order-step[data-v-74926859] .is-current .el-step__icon{background:#d80200}.order-step[data-v-74926859] .is-current .process-title{color:#d80200}.avatar-uploader-icon[data-v-74926859]{font-size:28px;color:#8c939d;width:100px;height:100px;line-height:100px;text-align:center}[data-v-74926859] .avatar-uploader .el-upload{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.avatar[data-v-74926859]{width:100px;height:100px;display:block}.grid-container[data-v-74926859]{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:20px}.header-title[data-v-74926859]{font-weight:700;margin-bottom:20px;padding-left:20px} \ No newline at end of file diff --git a/dist/css/573.40f2ee96.css b/dist/css/573.40f2ee96.css deleted file mode 100644 index 9ef548b..0000000 --- a/dist/css/573.40f2ee96.css +++ /dev/null @@ -1 +0,0 @@ -.bg[data-v-3b8de450]{display:flex;flex-direction:column}.bg[data-v-3b8de450] .el-button--text,.bg[data-v-3b8de450] .el-tabs__item.is-active{color:#6a8a27}.bg[data-v-3b8de450] .el-tabs__active-bar{background-color:#6a8a27}.bg[data-v-3b8de450] .el-tabs__item:hover{color:#6a8a27}.filter-bar[data-v-3b8de450]{margin-bottom:20px}.order-card[data-v-3b8de450]{border:1px solid #eee;border-radius:4px;margin-bottom:20px;overflow:hidden}.order-header[data-v-3b8de450]{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-3b8de450]{padding:10px 20px}.product-item[data-v-3b8de450]{display:flex;align-items:center;padding:15px 0;border-bottom:1px dashed #eee;font-size:14px}.product-item[data-v-3b8de450]:last-child{border-bottom:none}.product-image[data-v-3b8de450]{width:80px;height:80px;-o-object-fit:cover;object-fit:cover;margin-right:15px;border-radius:4px}.product-details[data-v-3b8de450]{flex:1}.product-name[data-v-3b8de450]{color:#333;margin-bottom:5px}.product-spec[data-v-3b8de450]{color:#999;font-size:12px}.product-price[data-v-3b8de450]{width:120px;text-align:center;color:#333}.product-quantity[data-v-3b8de450]{width:100px;text-align:center;color:#666}.product-total[data-v-3b8de450]{width:120px;text-align:center;color:#333;font-weight:500}.product-actions[data-v-3b8de450],.product-status[data-v-3b8de450]{width:150px;text-align:center}.order-footer[data-v-3b8de450]{background-color:#f8f9fa;padding:15px 20px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid #eee}.order-summary[data-v-3b8de450]{text-align:right}.order-amount[data-v-3b8de450]{color:#333;margin-bottom:5px}.order-amount strong[data-v-3b8de450]{color:#ff4d4f;font-size:16px}.order-tips[data-v-3b8de450]{font-size:12px;color:#999}.order-actions[data-v-3b8de450]{display:flex;gap:10px} \ No newline at end of file diff --git a/dist/css/610.36f5ac87.css b/dist/css/610.36f5ac87.css new file mode 100644 index 0000000..d2bbb89 --- /dev/null +++ b/dist/css/610.36f5ac87.css @@ -0,0 +1 @@ +.bg[data-v-0117dbdd]{display:flex;flex-direction:column;font-size:14px}.common-card[data-v-0117dbdd]{width:100%;background-color:#fff;padding:20px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.order-status[data-v-0117dbdd]{border-right:1px solid #eee;width:350px;height:220px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:space-around}.order-status .order-no[data-v-0117dbdd]{color:#999}.order-status .order-no .el-button[data-v-0117dbdd]{width:-moz-fit-content;width:fit-content;margin:0;display:inline-block;padding:0}.order-status .status-title[data-v-0117dbdd]{display:flex;align-items:center;font-size:16px;font-weight:700}.order-status .status-title i[data-v-0117dbdd]{font-size:24px}.order-status .el-button[data-v-0117dbdd]{width:120px;display:block;margin:0 auto}.order-step[data-v-0117dbdd]{flex:1;width:1px;padding:0 20px;display:flex;align-items:center}.order-step[data-v-0117dbdd] .el-step__icon.is-text{border:none;width:30px;height:30px;border-radius:50%;background:#c0c4cc;color:#fff}.order-step[data-v-0117dbdd] .el-step__line{top:13px}.order-step[data-v-0117dbdd] .el-step__line-inner{border-color:#c0c4cc}.order-step .process-title[data-v-0117dbdd]{color:#666;font-weight:700;font-size:14px;margin-top:20px}.order-step .process-description[data-v-0117dbdd]{color:#666;font-size:12px}.order-step[data-v-0117dbdd] .is-finish .el-step__icon{background:#67c23a}.order-info-card[data-v-0117dbdd]{display:flex}.order-info-card[data-v-0117dbdd] .el-descriptions{flex:1;flex-shrink:0;border-right:1px solid hsla(0,0%,60%,.1);padding:0 20px}.order-info-card[data-v-0117dbdd] .el-descriptions .el-descriptions-item__label{width:90px}.product-image[data-v-0117dbdd]{width:80px;height:80px;-o-object-fit:cover;object-fit:cover;margin-right:15px;border-radius:4px}.total-card[data-v-0117dbdd]{margin-top:20px;background:#fafafa;box-shadow:none}.total-card[data-v-0117dbdd] .el-descriptions__body{background:none;text-align:right}.total-card[data-v-0117dbdd] .el-descriptions__body .el-descriptions-item__label{width:90%;text-align:right;justify-content:flex-end}.total-card[data-v-0117dbdd] .el-descriptions__body .el-descriptions-item__content{justify-content:flex-end} \ No newline at end of file diff --git a/dist/css/322.f144348b.css b/dist/css/757.0154d72b.css similarity index 60% rename from dist/css/322.f144348b.css rename to dist/css/757.0154d72b.css index e9e3be0..9617a27 100644 --- a/dist/css/322.f144348b.css +++ b/dist/css/757.0154d72b.css @@ -1 +1 @@ -.home-layout-container[data-v-c27a7e04]{display:flex;width:100%;height:auto}.left-nav[data-v-c27a7e04]{width:200px;background-color:#f8f9fa;padding:20px 0;box-sizing:border-box}.nav-list[data-v-c27a7e04]{list-style:none;margin:0;padding:0}.nav-item[data-v-c27a7e04]{padding:12px 20px;cursor:pointer;color:#333;transition:all .3s ease;display:flex}.nav-item img[data-v-c27a7e04]{width:20px;margin-right:5px}.nav-item[data-v-c27a7e04]:hover{background-color:#e9ecef;padding-left:25px}.main-content[data-v-c27a7e04]{flex:1;height:auto;overflow:hidden}.carousel-img[data-v-c27a7e04]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.main-content[data-v-c27a7e04] .el-carousel__container{height:100%!important}.right-info[data-v-c27a7e04]{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-c27a7e04]{display:flex;flex-direction:column;align-items:center;margin-bottom:20px}.user-avatar[data-v-c27a7e04]{width:60px;height:60px;border-radius:50%;margin-bottom:10px;border:2px solid #f0f0f0}.welcome-text[data-v-c27a7e04]{font-size:14px;color:#333}.btn-group[data-v-c27a7e04]{display:flex;gap:10px;margin-bottom:30px;width:100%}.func-icons[data-v-c27a7e04]{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-c27a7e04]{display:flex;flex-direction:column;align-items:center;cursor:pointer;color:#666;transition:color .3s ease;width:50px}.icon-item[data-v-c27a7e04]:hover{color:#1890ff}.icon[data-v-c27a7e04]{font-size:24px;margin-bottom:5px}.icon-item span[data-v-c27a7e04]{font-size:12px}.announcement[data-v-c27a7e04]{display:flex;align-items:center;font-size:12px;color:#666;width:100%;padding-top:10px}.announcement span[data-v-c27a7e04]{margin-left:10px}.product-list .product-grid[data-v-0968dad7]{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:20px}.product-list .product-card[data-v-0968dad7]{border:1px solid #eaeaea;border-radius:8px;overflow:hidden;transition:all .3s ease;padding:10px}.product-list .product-card[data-v-0968dad7]:hover{transform:translateY(-5px);box-shadow:0 5px 15px rgba(0,0,0,.1)}.product-list .product-card .product-img[data-v-0968dad7]{height:250px;overflow:hidden}.product-list .product-card .product-img .product-pic[data-v-0968dad7]{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-0968dad7]:hover{transform:scale(1.05)}.product-list .product-card .product-info[data-v-0968dad7]{padding:10px}.product-list .product-card .product-info .product-name[data-v-0968dad7]{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-0968dad7]{color:#333}.product-list .product-card .product-info .product-name a[data-v-0968dad7]:hover{color:#409eff}.product-list .product-card .product-info .product-price[data-v-0968dad7]{margin-bottom:15px}.product-list .product-card .product-info .product-price .current-price[data-v-0968dad7]{color:#f40;font-size:16px;font-weight:700}.product-list .product-card .product-info .product-price .original-price[data-v-0968dad7]{color:#999;font-size:12px;text-decoration:line-through;margin-left:8px}.product-list .product-card .product-info .product-actions[data-v-0968dad7]{margin-bottom:10px}.product-list .product-card .product-info .product-sales[data-v-0968dad7]{font-size:12px;color:#999;margin-bottom:15px}.product-list .no-products[data-v-0968dad7]{padding:50px 0;text-align:center}.product-box[data-v-c53f5724]{margin:30px 0}.product-box h2[data-v-c53f5724]{margin-bottom:20px} \ No newline at end of file +.home-layout-container[data-v-252195f4]{display:flex;width:100%;height:auto}.left-nav[data-v-252195f4]{width:200px;background-color:#f8f9fa;padding:20px 0;box-sizing:border-box}.nav-list[data-v-252195f4]{list-style:none;margin:0;padding:0}.nav-item[data-v-252195f4]{padding:12px 20px;cursor:pointer;color:#333;transition:all .3s ease;display:flex}.nav-item img[data-v-252195f4]{width:20px;margin-right:5px}.nav-item[data-v-252195f4]:hover{background-color:#e9ecef;padding-left:25px}.main-content[data-v-252195f4]{flex:1;height:auto;overflow:hidden}.carousel-img[data-v-252195f4]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.main-content[data-v-252195f4] .el-carousel__container{height:100%!important}.right-info[data-v-252195f4]{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-252195f4]{display:flex;flex-direction:column;align-items:center;margin-bottom:20px}.user-avatar[data-v-252195f4]{width:60px;height:60px;border-radius:50%;margin-bottom:10px;border:2px solid #f0f0f0}.welcome-text[data-v-252195f4]{font-size:14px;color:#333}.btn-group[data-v-252195f4]{display:flex;gap:10px;margin-bottom:30px;width:100%}.func-icons[data-v-252195f4]{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-252195f4]{display:flex;flex-direction:column;align-items:center;cursor:pointer;color:#666;transition:color .3s ease;width:50px}.icon-item[data-v-252195f4]:hover{color:#1890ff}.icon[data-v-252195f4]{font-size:24px;margin-bottom:5px}.icon-item span[data-v-252195f4]{font-size:12px}.announcement[data-v-252195f4]{display:flex;align-items:center;font-size:12px;color:#666;width:100%;padding-top:10px}.announcement span[data-v-252195f4]{margin-left:10px}.product-list .product-grid[data-v-0968dad7]{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:20px}.product-list .product-card[data-v-0968dad7]{border:1px solid #eaeaea;border-radius:8px;overflow:hidden;transition:all .3s ease;padding:10px}.product-list .product-card[data-v-0968dad7]:hover{transform:translateY(-5px);box-shadow:0 5px 15px rgba(0,0,0,.1)}.product-list .product-card .product-img[data-v-0968dad7]{height:250px;overflow:hidden}.product-list .product-card .product-img .product-pic[data-v-0968dad7]{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-0968dad7]:hover{transform:scale(1.05)}.product-list .product-card .product-info[data-v-0968dad7]{padding:10px}.product-list .product-card .product-info .product-name[data-v-0968dad7]{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-0968dad7]{color:#333}.product-list .product-card .product-info .product-name a[data-v-0968dad7]:hover{color:#409eff}.product-list .product-card .product-info .product-price[data-v-0968dad7]{margin-bottom:15px}.product-list .product-card .product-info .product-price .current-price[data-v-0968dad7]{color:#f40;font-size:16px;font-weight:700}.product-list .product-card .product-info .product-price .original-price[data-v-0968dad7]{color:#999;font-size:12px;text-decoration:line-through;margin-left:8px}.product-list .product-card .product-info .product-actions[data-v-0968dad7]{margin-bottom:10px}.product-list .product-card .product-info .product-sales[data-v-0968dad7]{font-size:12px;color:#999;margin-bottom:15px}.product-list .no-products[data-v-0968dad7]{padding:50px 0;text-align:center}.product-box[data-v-c53f5724]{margin:30px 0}.product-box h2[data-v-c53f5724]{margin-bottom:20px} \ No newline at end of file diff --git a/dist/css/882.f420d2be.css b/dist/css/882.f420d2be.css deleted file mode 100644 index fb3d5bb..0000000 --- a/dist/css/882.f420d2be.css +++ /dev/null @@ -1 +0,0 @@ -.bg[data-v-1d95a9f7]{display:flex;flex-direction:column;font-size:14px}.common-card[data-v-1d95a9f7]{width:100%;background-color:#fff;padding:20px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.order-status[data-v-1d95a9f7]{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-1d95a9f7]{color:#999}.order-status .order-no .el-button[data-v-1d95a9f7]{width:-moz-fit-content;width:fit-content;margin:0;display:inline-block;padding:0}.order-status .status-title[data-v-1d95a9f7]{display:flex;align-items:center;font-size:16px;font-weight:700}.order-status .status-title i[data-v-1d95a9f7]{font-size:24px}.order-status .el-button[data-v-1d95a9f7]{width:120px;display:block;margin:0 auto}.order-step[data-v-1d95a9f7]{flex:1;width:1px;padding:0 20px;display:flex;align-items:center}.order-step[data-v-1d95a9f7] .el-step__icon.is-text{border:none;width:30px;height:30px;border-radius:50%;background:#c0c4cc;color:#fff}.order-step[data-v-1d95a9f7] .el-step__line{top:13px}.order-step[data-v-1d95a9f7] .el-step__line-inner{border-color:#c0c4cc}.order-step .process-title[data-v-1d95a9f7]{color:#666;font-weight:700;font-size:14px;margin-top:-70px}.order-step .process-description[data-v-1d95a9f7]{color:#666;font-size:12px;margin-top:45px}.order-step[data-v-1d95a9f7] .is-finish .el-step__icon{background:#67c23a}.order-info-card[data-v-1d95a9f7]{display:flex}.order-info-card[data-v-1d95a9f7] .el-descriptions{flex:1;flex-shrink:0;border-right:1px solid hsla(0,0%,60%,.1);padding:0 20px}.order-info-card[data-v-1d95a9f7] .el-descriptions .el-descriptions-item__label{width:90px}.product-image[data-v-1d95a9f7]{width:80px;height:80px;-o-object-fit:cover;object-fit:cover;margin-right:15px;border-radius:4px}.total-card[data-v-1d95a9f7]{margin-top:20px;background:#fafafa;box-shadow:none}.total-card[data-v-1d95a9f7] .el-descriptions__body{background:none;text-align:right}.total-card[data-v-1d95a9f7] .el-descriptions__body .el-descriptions-item__label{width:90%;text-align:right;justify-content:flex-end}.total-card[data-v-1d95a9f7] .el-descriptions__body .el-descriptions-item__content{justify-content:flex-end} \ No newline at end of file diff --git a/dist/css/896.f1192b9d.css b/dist/css/896.f1192b9d.css deleted file mode 100644 index f531741..0000000 --- a/dist/css/896.f1192b9d.css +++ /dev/null @@ -1 +0,0 @@ -.product-grid-page[data-v-cf708dca]{padding:20px;background-color:#f5f7fa;max-width:1400px;margin:0 auto}.product-grid-page .filter-bar[data-v-cf708dca]{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-cf708dca]{flex:1;min-width:200px}.product-grid-page .filter-bar .filter-select[data-v-cf708dca]{min-width:140px}.product-grid-page .result-stats[data-v-cf708dca]{margin:0 0 15px 5px;color:#666;font-size:14px;padding:5px 0}.product-grid-page .result-stats .category[data-v-cf708dca],.product-grid-page .result-stats .keyword[data-v-cf708dca]{color:#ff4d4f;font-weight:500;margin:0 5px}.product-grid-page .product-grid[data-v-cf708dca]{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px;margin-bottom:30px}.product-grid-page .product-card[data-v-cf708dca]{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-cf708dca]:hover{transform:translateY(-5px);box-shadow:0 8px 16px rgba(0,0,0,.1)}.product-grid-page .product-card .product-img[data-v-cf708dca]{width:100%;height:200px;background-color:#f5f5f5}.product-grid-page .product-card .image-placeholder[data-v-cf708dca]{width:100%;height:200px;display:flex;align-items:center;justify-content:center;background-color:#f5f5f5}.product-grid-page .product-card .tag[data-v-cf708dca]{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-cf708dca]{padding:15px}.product-grid-page .product-card .product-info .product-name[data-v-cf708dca]{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-cf708dca]{display:flex;align-items:center;margin-bottom:8px}.product-grid-page .product-card .product-info .price-row .current-price[data-v-cf708dca]{color:#ff4d4f;font-weight:700;font-size:16px}.product-grid-page .product-card .product-info .price-row .original-price[data-v-cf708dca]{color:#999;font-size:12px;text-decoration:line-through;margin-left:8px}.product-grid-page .product-card .product-info .sales-volume[data-v-cf708dca]{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-cf708dca]{font-size:12px;margin-right:4px}.product-grid-page .product-card .product-info .cart-btn[data-v-cf708dca]{width:100%}.product-grid-page .empty-state[data-v-cf708dca]{grid-column:1/-1;padding:60px 0;text-align:center}.product-grid-page .pagination-container[data-v-cf708dca]{display:flex;justify-content:center;margin-top:20px;padding:10px}@media(max-width:768px){.product-grid-page[data-v-cf708dca]{padding:10px}.product-grid-page .filter-bar[data-v-cf708dca]{padding:10px;gap:10px}.product-grid-page .product-grid[data-v-cf708dca]{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}.product-grid-page .product-card .image-placeholder[data-v-cf708dca],.product-grid-page .product-card .product-img[data-v-cf708dca]{height:140px}} \ No newline at end of file diff --git a/dist/css/95.e05cc25c.css b/dist/css/95.e05cc25c.css new file mode 100644 index 0000000..d5bd909 --- /dev/null +++ b/dist/css/95.e05cc25c.css @@ -0,0 +1 @@ +.region-selector[data-v-7d3ebefd]{display:flex;gap:10px;flex-wrap:wrap}.region-select[data-v-7d3ebefd]{min-width:180px;flex:1;max-width:30%}.order-page[data-v-71e54fa2]{max-width:1200px;margin:0 auto;padding:20px;background-color:#fff;border:1px solid #e6e6e6;border-radius:4px}.order-page .page-header[data-v-71e54fa2]{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.order-page .page-header h2[data-v-71e54fa2]{font-size:18px;font-weight:500;color:#333;margin:0}.order-page .page-header .address-book-btn[data-v-71e54fa2]{color:#409eff}.order-page .info-section[data-v-71e54fa2]{margin-bottom:20px}.order-page .info-section h3[data-v-71e54fa2]{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-71e54fa2],.order-page .info-section .invoice-address-item[data-v-71e54fa2],.order-page .info-section .invoice-title-item[data-v-71e54fa2],.order-page .info-section .invoice-type-item[data-v-71e54fa2],.order-page .info-section .trade-type-item[data-v-71e54fa2]{margin-bottom:15px;display:flex;align-items:center}.order-page .info-section .address-item .label[data-v-71e54fa2],.order-page .info-section .invoice-address-item .label[data-v-71e54fa2],.order-page .info-section .invoice-title-item .label[data-v-71e54fa2],.order-page .info-section .invoice-type-item .label[data-v-71e54fa2],.order-page .info-section .trade-type-item .label[data-v-71e54fa2]{width:120px;color:#666;font-size:14px;padding-top:5px}.order-page .info-section .address-item .address-content[data-v-71e54fa2],.order-page .info-section .invoice-address-item .address-content[data-v-71e54fa2],.order-page .info-section .invoice-title-item .address-content[data-v-71e54fa2],.order-page .info-section .invoice-type-item .address-content[data-v-71e54fa2],.order-page .info-section .trade-type-item .address-content[data-v-71e54fa2]{flex:1}.order-page .info-section .address-item .saved-address[data-v-71e54fa2],.order-page .info-section .invoice-address-item .saved-address[data-v-71e54fa2],.order-page .info-section .invoice-title-item .saved-address[data-v-71e54fa2],.order-page .info-section .invoice-type-item .saved-address[data-v-71e54fa2],.order-page .info-section .trade-type-item .saved-address[data-v-71e54fa2]{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-71e54fa2],.order-page .info-section .invoice-address-item .saved-address.selected[data-v-71e54fa2],.order-page .info-section .invoice-title-item .saved-address.selected[data-v-71e54fa2],.order-page .info-section .invoice-type-item .saved-address.selected[data-v-71e54fa2],.order-page .info-section .trade-type-item .saved-address.selected[data-v-71e54fa2]{border-color:#6a8a27;background-color:rgba(106,138,39,.05)}.order-page .info-section .address-item .saved-address .name-tag[data-v-71e54fa2],.order-page .info-section .invoice-address-item .saved-address .name-tag[data-v-71e54fa2],.order-page .info-section .invoice-title-item .saved-address .name-tag[data-v-71e54fa2],.order-page .info-section .invoice-type-item .saved-address .name-tag[data-v-71e54fa2],.order-page .info-section .trade-type-item .saved-address .name-tag[data-v-71e54fa2]{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-71e54fa2],.order-page .info-section .invoice-address-item .saved-address .detail[data-v-71e54fa2],.order-page .info-section .invoice-title-item .saved-address .detail[data-v-71e54fa2],.order-page .info-section .invoice-type-item .saved-address .detail[data-v-71e54fa2],.order-page .info-section .trade-type-item .saved-address .detail[data-v-71e54fa2]{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-71e54fa2],.order-page .info-section .address-item .saved-address .edit-btn[data-v-71e54fa2],.order-page .info-section .address-item .saved-address .set-default-btn[data-v-71e54fa2],.order-page .info-section .invoice-address-item .saved-address .delete-btn[data-v-71e54fa2],.order-page .info-section .invoice-address-item .saved-address .edit-btn[data-v-71e54fa2],.order-page .info-section .invoice-address-item .saved-address .set-default-btn[data-v-71e54fa2],.order-page .info-section .invoice-title-item .saved-address .delete-btn[data-v-71e54fa2],.order-page .info-section .invoice-title-item .saved-address .edit-btn[data-v-71e54fa2],.order-page .info-section .invoice-title-item .saved-address .set-default-btn[data-v-71e54fa2],.order-page .info-section .invoice-type-item .saved-address .delete-btn[data-v-71e54fa2],.order-page .info-section .invoice-type-item .saved-address .edit-btn[data-v-71e54fa2],.order-page .info-section .invoice-type-item .saved-address .set-default-btn[data-v-71e54fa2],.order-page .info-section .trade-type-item .saved-address .delete-btn[data-v-71e54fa2],.order-page .info-section .trade-type-item .saved-address .edit-btn[data-v-71e54fa2],.order-page .info-section .trade-type-item .saved-address .set-default-btn[data-v-71e54fa2]{margin-left:10px;color:#409eff;font-size:13px;padding:0;height:auto}.order-page .info-section .address-item .el-radio[data-v-71e54fa2],.order-page .info-section .invoice-address-item .el-radio[data-v-71e54fa2],.order-page .info-section .invoice-title-item .el-radio[data-v-71e54fa2],.order-page .info-section .invoice-type-item .el-radio[data-v-71e54fa2],.order-page .info-section .trade-type-item .el-radio[data-v-71e54fa2]{margin-right:15px;margin-top:3px}.order-page .info-section .address-item .invoice-title-select[data-v-71e54fa2],.order-page .info-section .invoice-address-item .invoice-title-select[data-v-71e54fa2],.order-page .info-section .invoice-title-item .invoice-title-select[data-v-71e54fa2],.order-page .info-section .invoice-type-item .invoice-title-select[data-v-71e54fa2],.order-page .info-section .trade-type-item .invoice-title-select[data-v-71e54fa2]{width:300px;margin-top:3px}.order-page .info-section .address-item .add-title-btn[data-v-71e54fa2],.order-page .info-section .invoice-address-item .add-title-btn[data-v-71e54fa2],.order-page .info-section .invoice-title-item .add-title-btn[data-v-71e54fa2],.order-page .info-section .invoice-type-item .add-title-btn[data-v-71e54fa2],.order-page .info-section .trade-type-item .add-title-btn[data-v-71e54fa2]{margin-left:10px;color:#409eff;padding:0;height:auto}.order-page .contract-section[data-v-71e54fa2]{margin-bottom:20px;padding:15px;background-color:#f9f9f9;border-radius:4px}.order-page .contract-section h3[data-v-71e54fa2]{font-size:16px;font-weight:500;color:#333;margin-bottom:10px;margin-top:0}.order-page .contract-section p[data-v-71e54fa2]{font-size:14px;color:#666;margin:0}.order-page .goods-section h3[data-v-71e54fa2]{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-71e54fa2]{margin-bottom:20px;border:1px solid #e6e6e6;border-radius:4px;overflow:hidden}.order-page .goods-section .order-group .supplier-info[data-v-71e54fa2]{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-71e54fa2]{width:100%;border-collapse:collapse}.order-page .goods-section .order-group .goods-table th[data-v-71e54fa2]{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-71e54fa2]{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-71e54fa2]{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-71e54fa2]{vertical-align:middle;max-width:200px;display:inline-block}.order-page .goods-section .order-group .goods-table .subtotal[data-v-71e54fa2]{color:#ff4d4f;font-weight:500}.order-page .goods-section .order-group .order-remark[data-v-71e54fa2]{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-71e54fa2]{display:block;margin-bottom:10px;font-weight:500}.order-page .goods-section .order-group .order-remark .rich-text-editor[data-v-71e54fa2]{border:1px solid #e6e6e6;border-radius:4px;overflow:hidden}.order-page .goods-section .order-group .order-remark .rich-text-editor .remark-editor[data-v-71e54fa2]{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-71e54fa2]{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-71e54fa2]{margin-right:5px}.order-page .goods-section .total-info[data-v-71e54fa2]{text-align:right;padding:20px;background-color:#f5f7fa;border-radius:4px;margin-top:10px}.order-page .goods-section .total-info p[data-v-71e54fa2]{margin:8px 0;color:#333;font-size:14px}.order-page .goods-section .total-info .pay-amount[data-v-71e54fa2]{font-weight:700;color:#ff4d4f;font-size:16px;margin:15px 0}.order-page .goods-section .total-info .address-info[data-v-71e54fa2]{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-71e54fa2]{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-71e54fa2]:hover{background-color:#e03e40}@media(max-width:768px){.order-page[data-v-71e54fa2]{padding:10px}.info-section .address-item[data-v-71e54fa2],.info-section .invoice-address-item[data-v-71e54fa2],.info-section .invoice-title-item[data-v-71e54fa2],.info-section .invoice-type-item[data-v-71e54fa2],.info-section .trade-type-item[data-v-71e54fa2]{flex-direction:column}.info-section .address-item .label[data-v-71e54fa2],.info-section .invoice-address-item .label[data-v-71e54fa2],.info-section .invoice-title-item .label[data-v-71e54fa2],.info-section .invoice-type-item .label[data-v-71e54fa2],.info-section .trade-type-item .label[data-v-71e54fa2]{width:100%;margin-bottom:5px;padding-top:0}.info-section .address-item .saved-address[data-v-71e54fa2],.info-section .invoice-address-item .saved-address[data-v-71e54fa2],.info-section .invoice-title-item .saved-address[data-v-71e54fa2],.info-section .invoice-type-item .saved-address[data-v-71e54fa2],.info-section .trade-type-item .saved-address[data-v-71e54fa2]{flex-direction:column;align-items:flex-start}.info-section .address-item .saved-address .detail[data-v-71e54fa2],.info-section .address-item .saved-address .name-tag[data-v-71e54fa2],.info-section .invoice-address-item .saved-address .detail[data-v-71e54fa2],.info-section .invoice-address-item .saved-address .name-tag[data-v-71e54fa2],.info-section .invoice-title-item .saved-address .detail[data-v-71e54fa2],.info-section .invoice-title-item .saved-address .name-tag[data-v-71e54fa2],.info-section .invoice-type-item .saved-address .detail[data-v-71e54fa2],.info-section .invoice-type-item .saved-address .name-tag[data-v-71e54fa2],.info-section .trade-type-item .saved-address .detail[data-v-71e54fa2],.info-section .trade-type-item .saved-address .name-tag[data-v-71e54fa2]{margin-bottom:8px;width:100%}.info-section .address-item .saved-address .delete-btn[data-v-71e54fa2],.info-section .address-item .saved-address .edit-btn[data-v-71e54fa2],.info-section .address-item .saved-address .set-default-btn[data-v-71e54fa2],.info-section .invoice-address-item .saved-address .delete-btn[data-v-71e54fa2],.info-section .invoice-address-item .saved-address .edit-btn[data-v-71e54fa2],.info-section .invoice-address-item .saved-address .set-default-btn[data-v-71e54fa2],.info-section .invoice-title-item .saved-address .delete-btn[data-v-71e54fa2],.info-section .invoice-title-item .saved-address .edit-btn[data-v-71e54fa2],.info-section .invoice-title-item .saved-address .set-default-btn[data-v-71e54fa2],.info-section .invoice-type-item .saved-address .delete-btn[data-v-71e54fa2],.info-section .invoice-type-item .saved-address .edit-btn[data-v-71e54fa2],.info-section .invoice-type-item .saved-address .set-default-btn[data-v-71e54fa2],.info-section .trade-type-item .saved-address .delete-btn[data-v-71e54fa2],.info-section .trade-type-item .saved-address .edit-btn[data-v-71e54fa2],.info-section .trade-type-item .saved-address .set-default-btn[data-v-71e54fa2]{margin-left:0;margin-right:10px;display:inline-block}.info-section .address-item .invoice-title-select[data-v-71e54fa2],.info-section .invoice-address-item .invoice-title-select[data-v-71e54fa2],.info-section .invoice-title-item .invoice-title-select[data-v-71e54fa2],.info-section .invoice-type-item .invoice-title-select[data-v-71e54fa2],.info-section .trade-type-item .invoice-title-select[data-v-71e54fa2]{width:100%}.goods-section .goods-table[data-v-71e54fa2]{font-size:12px}.goods-section .order-group .goods-table td[data-v-71e54fa2],.goods-section .order-group .goods-table th[data-v-71e54fa2]{padding:8px;font-size:12px}.goods-section .order-group .goods-name[data-v-71e54fa2]{max-width:100px}.goods-section .total-info[data-v-71e54fa2]{padding:15px}.goods-section .total-info .submit-btn[data-v-71e54fa2]{width:100%}} \ No newline at end of file diff --git a/dist/css/975.7146016b.css b/dist/css/975.7146016b.css deleted file mode 100644 index 34e1f7b..0000000 --- a/dist/css/975.7146016b.css +++ /dev/null @@ -1 +0,0 @@ -.bg[data-v-4ea6c11f]{display:flex;flex-direction:column}.bg[data-v-4ea6c11f] .el-button--text{color:#6a8a27}.el-card[data-v-4ea6c11f]{margin-bottom:20px;border-radius:6px;box-shadow:0 2px 12px 0 rgba(0,0,0,.05);border:none}.el-card__header[data-v-4ea6c11f]{padding:16px 20px;border-bottom:1px solid #f0f0f0;background-color:#fff;font-size:16px;font-weight:500}.el-card__body[data-v-4ea6c11f]{padding:20px}.notice-bar[data-v-4ea6c11f]{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-4ea6c11f],.notice-bar__content[data-v-4ea6c11f]{display:flex;align-items:center}.notice-bar__content i[data-v-4ea6c11f]{margin-right:8px}.notice-bar__close[data-v-4ea6c11f]{cursor:pointer;transition:color .2s}.notice-bar__close[data-v-4ea6c11f]:hover{color:#fa8c16}.user-info[data-v-4ea6c11f]{display:flex;align-items:flex-start;padding:10px 0}.user-avatar[data-v-4ea6c11f]{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-4ea6c11f]{flex:1}.user-name[data-v-4ea6c11f]{font-size:20px;font-weight:500;margin-bottom:10px;color:#1f2329}.user-other-info[data-v-4ea6c11f]{color:#4e5969;margin-bottom:6px;font-size:14px}.login-info[data-v-4ea6c11f]{display:flex;padding-top:20px}.login-section[data-v-4ea6c11f]{flex:1}.login-section-title[data-v-4ea6c11f]{font-weight:500;margin-bottom:10px;color:#1f2329;font-size:15px}.login-detail[data-v-4ea6c11f]{color:#4e5969;font-size:14px;margin-bottom:6px}.feature-grid[data-v-4ea6c11f]{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-top:15px}.feature-item[data-v-4ea6c11f]{display:flex;flex-direction:column;align-items:center;padding:15px 10px;border-radius:6px;transition:all .2s;cursor:pointer}.feature-item[data-v-4ea6c11f]:hover{background-color:#f5f7fa}.feature-icon[data-v-4ea6c11f]{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-4ea6c11f]{font-size:14px;color:#4e5969} \ No newline at end of file diff --git a/dist/css/app.78312ffd.css b/dist/css/app.1b42e5d9.css similarity index 64% rename from dist/css/app.78312ffd.css rename to dist/css/app.1b42e5d9.css index 83470fb..c3bd9ad 100644 --- a/dist/css/app.78312ffd.css +++ b/dist/css/app.1b42e5d9.css @@ -1 +1 @@ -.header-nav[data-v-adf79b44]{width:100%}.header-nav .top-notice[data-v-adf79b44]{background-color:#f5f5f5;padding:8px 0}.header-nav .top-notice .container[data-v-adf79b44]{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-adf79b44]{font-size:14px;color:#666;margin:0}.header-nav .top-notice .container p .highlight[data-v-adf79b44]{color:#f40;margin:0 5px;font-weight:500}.header-nav .top-notice .container .top-links[data-v-adf79b44]{display:flex;align-items:center;gap:15px;font-size:14px}.header-nav .top-notice .container .top-links .avatar[data-v-adf79b44]{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-adf79b44]{color:#ccc}.header-nav .top-notice .container .top-links .logout-btn[data-v-adf79b44],.header-nav .top-notice .container .top-links a[data-v-adf79b44]{color:#666;transition:color .2s;cursor:pointer;text-decoration:none}.header-nav .top-notice .container .top-links .logout-btn[data-v-adf79b44]:hover,.header-nav .top-notice .container .top-links a[data-v-adf79b44]:hover{color:#6a8a27}.header-nav .top-notice .container .top-links .user-link[data-v-adf79b44]{display:flex;align-items:center}.header-nav .top-notice .container .top-links .cart-link[data-v-adf79b44]{display:inline-flex;align-items:center}.header-nav .main-nav[data-v-adf79b44]{background-color:#fff;padding:15px 0;box-shadow:0 2px 5px rgba(0,0,0,.05)}.header-nav .main-nav .container[data-v-adf79b44]{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-adf79b44]{display:block}.header-nav .main-nav .logo a .logo-img[data-v-adf79b44]{height:40px;-o-object-fit:contain;object-fit:contain}.header-nav .main-nav .search-box[data-v-adf79b44]{flex:0 0 500px}@media(max-width:992px){.header-nav .main-nav .search-box[data-v-adf79b44]{flex:0 0 400px}}@media(max-width:768px){.header-nav .main-nav .search-box[data-v-adf79b44]{display:none}}.header-nav .main-nav .search-box .search-input[data-v-adf79b44]{width:100%;border:1px solid #6a8a27}.header-nav .main-nav .search-box .search-input[data-v-adf79b44] .el-input__inner{border-right:none}.header-nav .main-nav .search-box .search-input[data-v-adf79b44] .el-input-group__append{background-color:#6a8a27;border-color:#6a8a27;color:#fff}.header-nav .main-nav .search-box .hot-tags[data-v-adf79b44]{margin-top:8px;font-size:12px;color:#999;display:flex;align-items:center}.header-nav .main-nav .search-box .hot-tags span[data-v-adf79b44]{margin-right:5px}.header-nav .main-nav .search-box .hot-tags .hot-tag[data-v-adf79b44]{margin:0 5px;color:#666;cursor:pointer;transition:color .2s}.header-nav .main-nav .search-box .hot-tags .hot-tag[data-v-adf79b44]:hover{color:#409eff;text-decoration:underline}.header-nav .main-nav .phone-entry a[data-v-adf79b44]{display:flex;align-items:center;color:#333;font-size:16px;text-decoration:none}.header-nav .main-nav .phone-entry a img[data-v-adf79b44]{width:24px;height:24px}.header-nav .main-nav .phone-entry a span[data-v-adf79b44]{margin-left:10px}.header-nav .main-nav .phone-entry a .cart-count[data-v-adf79b44]{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-adf79b44]{background-color:#409eff}.header-nav .category-nav .container[data-v-adf79b44]{max-width:1200px;margin:0 auto;padding:0 20px}.header-nav .category-nav .nav-list[data-v-adf79b44]{display:flex;margin:0;padding:0}@media(max-width:992px){.header-nav .category-nav .nav-list[data-v-adf79b44]{overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch}}.header-nav .category-nav .nav-list .nav-item[data-v-adf79b44]{list-style:none}.header-nav .category-nav .nav-list .nav-item .nav-link[data-v-adf79b44]{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-adf79b44],.header-nav .category-nav .nav-list .nav-item .nav-link[data-v-adf79b44]: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-f2321a44]{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-f2321a44]{display:flex;flex-direction:column;align-items:center;cursor:pointer;margin-bottom:20px;color:#666;transition:all .3s}.sidebar-container .sidebar-item[data-v-f2321a44]:last-child{margin-bottom:0}.sidebar-container .sidebar-item i[data-v-f2321a44]{font-size:20px;margin-bottom:5px}.sidebar-container .sidebar-item .item-text[data-v-f2321a44]{font-size:12px}.sidebar-container .sidebar-item[data-v-f2321a44]:hover{color:#409eff}.sidebar-container .item-badge .el-badge__content[data-v-f2321a44]{background-color:#ff4d4f;top:-5px;right:-10px}.sidebar-container .back-to-top.active[data-v-f2321a44]{color:#409eff}@media(max-width:768px){.sidebar-container[data-v-f2321a44]{right:10px;padding:10px 5px}.sidebar-container .sidebar-item[data-v-f2321a44]{margin-bottom:15px}.sidebar-container .sidebar-item i[data-v-f2321a44]{font-size:18px}.sidebar-container .sidebar-item .item-text[data-v-f2321a44]{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 +.header-nav[data-v-391ee56a]{width:100%}.header-nav .top-notice[data-v-391ee56a]{background-color:#f5f5f5;padding:8px 0}.header-nav .top-notice .container[data-v-391ee56a]{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-391ee56a]{font-size:14px;color:#666;margin:0}.header-nav .top-notice .container p .highlight[data-v-391ee56a]{color:#f40;margin:0 5px;font-weight:500}.header-nav .top-notice .container .top-links[data-v-391ee56a]{display:flex;align-items:center;gap:15px;font-size:14px}.header-nav .top-notice .container .top-links .avatar[data-v-391ee56a]{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-391ee56a]{color:#ccc}.header-nav .top-notice .container .top-links .logout-btn[data-v-391ee56a],.header-nav .top-notice .container .top-links a[data-v-391ee56a]{color:#666;transition:color .2s;cursor:pointer;text-decoration:none}.header-nav .top-notice .container .top-links .logout-btn[data-v-391ee56a]:hover,.header-nav .top-notice .container .top-links a[data-v-391ee56a]:hover{color:#6a8a27}.header-nav .top-notice .container .top-links .user-link[data-v-391ee56a]{display:flex;align-items:center}.header-nav .top-notice .container .top-links .cart-link[data-v-391ee56a]{display:inline-flex;align-items:center}.header-nav .main-nav[data-v-391ee56a]{background-color:#fff;padding:15px 0;box-shadow:0 2px 5px rgba(0,0,0,.05)}.header-nav .main-nav .container[data-v-391ee56a]{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-391ee56a]{display:block}.header-nav .main-nav .logo a .logo-img[data-v-391ee56a]{height:40px;-o-object-fit:contain;object-fit:contain}.header-nav .main-nav .search-box[data-v-391ee56a]{flex:0 0 500px}@media(max-width:992px){.header-nav .main-nav .search-box[data-v-391ee56a]{flex:0 0 400px}}@media(max-width:768px){.header-nav .main-nav .search-box[data-v-391ee56a]{display:none}}.header-nav .main-nav .search-box .search-input[data-v-391ee56a]{width:100%;border:1px solid #6a8a27}.header-nav .main-nav .search-box .search-input[data-v-391ee56a] .el-input__inner{border-right:none}.header-nav .main-nav .search-box .search-input[data-v-391ee56a] .el-input-group__append{background-color:#6a8a27;border-color:#6a8a27;color:#fff}.header-nav .main-nav .search-box .hot-tags[data-v-391ee56a]{margin-top:8px;font-size:12px;color:#999;display:flex;align-items:center}.header-nav .main-nav .search-box .hot-tags span[data-v-391ee56a]{margin-right:5px}.header-nav .main-nav .search-box .hot-tags .hot-tag[data-v-391ee56a]{margin:0 5px;color:#666;cursor:pointer;transition:color .2s}.header-nav .main-nav .search-box .hot-tags .hot-tag[data-v-391ee56a]:hover{color:#409eff;text-decoration:underline}.header-nav .main-nav .phone-entry a[data-v-391ee56a]{display:flex;align-items:center;color:#333;font-size:16px;text-decoration:none}.header-nav .main-nav .phone-entry a img[data-v-391ee56a]{width:24px;height:24px}.header-nav .main-nav .phone-entry a span[data-v-391ee56a]{margin-left:10px}.header-nav .main-nav .phone-entry a .cart-count[data-v-391ee56a]{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-391ee56a]{background-color:#409eff}.header-nav .category-nav .container[data-v-391ee56a]{max-width:1200px;margin:0 auto;padding:0 20px}.header-nav .category-nav .nav-list[data-v-391ee56a]{display:flex;margin:0;padding:0}@media(max-width:992px){.header-nav .category-nav .nav-list[data-v-391ee56a]{overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch}}.header-nav .category-nav .nav-list .nav-item[data-v-391ee56a]{list-style:none}.header-nav .category-nav .nav-list .nav-item .nav-link[data-v-391ee56a]{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-391ee56a],.header-nav .category-nav .nav-list .nav-item .nav-link[data-v-391ee56a]: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-f2321a44]{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-f2321a44]{display:flex;flex-direction:column;align-items:center;cursor:pointer;margin-bottom:20px;color:#666;transition:all .3s}.sidebar-container .sidebar-item[data-v-f2321a44]:last-child{margin-bottom:0}.sidebar-container .sidebar-item i[data-v-f2321a44]{font-size:20px;margin-bottom:5px}.sidebar-container .sidebar-item .item-text[data-v-f2321a44]{font-size:12px}.sidebar-container .sidebar-item[data-v-f2321a44]:hover{color:#409eff}.sidebar-container .item-badge .el-badge__content[data-v-f2321a44]{background-color:#ff4d4f;top:-5px;right:-10px}.sidebar-container .back-to-top.active[data-v-f2321a44]{color:#409eff}@media(max-width:768px){.sidebar-container[data-v-f2321a44]{right:10px;padding:10px 5px}.sidebar-container .sidebar-item[data-v-f2321a44]{margin-bottom:15px}.sidebar-container .sidebar-item i[data-v-f2321a44]{font-size:18px}.sidebar-container .sidebar-item .item-text[data-v-f2321a44]{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/img/logo.bb511aff.png b/dist/img/logo.bb511aff.png new file mode 100644 index 0000000..a828e2e Binary files /dev/null and b/dist/img/logo.bb511aff.png differ diff --git a/dist/index.html b/dist/index.html index 481ed71..28bee54 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 deleted file mode 100644 index c2be100..0000000 --- a/dist/js/110.4a93ee72.js +++ /dev/null @@ -1,2 +0,0 @@ -"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 deleted file mode 100644 index 08c391f..0000000 --- a/dist/js/110.4a93ee72.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/110.4a93ee72.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,uBACA,CAAAG,MAAA,OAAAH,KAAA,yBACA,CAAAG,MAAA,OAAAH,KAAA,qBACA,CAAAG,MAAA,OAAAH,KAAA,sBAIA,CAAAG,MAAA,OAAAH,KAAA,qBACA,CAAAG,MAAA,OAAAH,KAAA,qBACA,CAAAG,MAAA,OAAAH,KAAA,kBACA,CAAAG,MAAA,QAAAH,KAAA,sBACA,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,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 deleted file mode 100644 index 6dd82d5..0000000 --- a/dist/js/113.5c3b5964.js +++ /dev/null @@ -1,2 +0,0 @@ -"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 deleted file mode 100644 index 1442497..0000000 --- a/dist/js/113.5c3b5964.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/113.5c3b5964.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,wBAAwBE,MAAM,CAAC,KAAO,UAAUC,KAAK,UAAU,CAACL,EAAG,OAAO,CAACF,EAAIQ,GAAG,UAAUN,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,OAAO,CAACG,YAAY,CAAC,MAAQ,OAAO,YAAY,SAAS,CAACL,EAAIQ,GAAG,4BAA4BN,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,KAAKN,EAAG,WAAW,CAACG,YAAY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GAAAM,EAAAN,IAAA,GACAnB,SAAAyB,EAAAzB,UAAA,GACAK,OAAAoB,EAAApB,QAAA,GACAC,cAAAmB,EAAAnB,eAAA,GACAC,MAAAkB,EAAAlB,OAAA,GACAC,WAAAiB,EAAAjB,YAAA,GACAC,MAAAgB,EAAAhB,OAAA,IAEA,KAAAb,eAAA,CACA,EAEAc,WAAAA,GACA,QAAAb,QAAAsB,GAAA,CAEA,MAAAO,EAAA,KAAAvC,UAAAwC,UAAAF,GAAAA,EAAAN,KAAA,KAAAtB,QAAAsB,KACA,IAAAO,IACA,KAAAvC,UAAAuC,GAAA,SAAA7B,SAEA,MAEA,KAAAA,QAAAsB,GAAAS,KAAAC,MACA,KAAA1C,UAAA2C,KAAA,SAAAjC,UAEA,KAAAkC,SAAA,CACAC,QAAA,OACAZ,KAAA,YAEA,KAAAxB,eAAA,CACA,EACAH,UAAAA,CAAAC,GACA,KAAAG,QAAA,IAAAH,GACA,KAAAE,eAAA,CACA,EACAD,YAAAA,CAAAD,GACA,KAAAuC,SAAA,2BACAC,kBAAA,KACAC,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/15.3e163139.js b/dist/js/15.3e163139.js new file mode 100644 index 0000000..683c3c7 --- /dev/null +++ b/dist/js/15.3e163139.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[15],{7015:function(e,t,r){r.r(t),r.d(t,{default:function(){return c}});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.contract_number,callback:function(t){e.$set(e.filterForm,"contract_number",t)},expression:"filterForm.contract_number"}})],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.datetime,callback:function(t){e.$set(e.filterForm,"datetime",t)},expression:"filterForm.datetime"}})],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:"create_time",label:"下单时间",width:"160"}}),t("el-table-column",{attrs:{prop:"order_id",label:"订单号","min-width":"100"}}),t("el-table-column",{attrs:{prop:"status",label:"商品信息","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("div",{staticClass:"product-info"},[t("img",{staticClass:"product-img",attrs:{src:r.row.product_headimg}}),t("div",{staticClass:"product-name"},[e._v(" "+e._s(r.row.product_title)+" "+e._s(r.row.child_order_num>1?"等"+r.row.child_order_num+"款":"")+" ")])])]}}])}),t("el-table-column",{attrs:{prop:"contract_number",label:"合同号",width:"180"}}),t("el-table-column",{attrs:{prop:"paid_money",label:"合同金额","min-width":"70"}}),t("el-table-column",{attrs:{label:"操作",width:"130"},scopedSlots:e._u([{key:"default",fn:function(r){return r.row.contract_number?[t("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.handleDownload(r.row)}}},[e._v("下载合同模板")])]:void 0}}],null,!0)})],1),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.filterForm.limit,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.您可直接“下载合同模板”,线下邮寄盖章使用。")])])])}],l=(r(4114),{name:"OrderList",data(){return{activeTab:"all",currentPage:1,filterForm:{contract_number:"",datetime:"",order_id:"",limit:10},orders:[]}},mounted(){this.getList()},methods:{handlePreview(e){window.open(e,"_blank")},handleDownload(e){const t=e.contract_url,r=document.createElement("a");r.href=t,r.download=`合同${e.contract_number}.pdf`,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),this.$message({message:`合同 ${e.contract_number} 开始下载`,type:"success"})},getList(){this.post({offset:(this.currentPage-1)*this.filterForm.limit,...this.filterForm},"/api/order/orderContract").then(e=>{this.orders=e.data})},search(){this.currentPage=1,this.getList()},reset(){this.filterForm={order_id:"",createTime:"",contract_number:"",datetime:""},this.activeTab="all",this.currentPage=1},handleSizeChange(e){this.filterForm.limit=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"})}}}),n=l,s=r(1656),o=(0,s.A)(n,a,i,!1,null,"732b9384",null),c=o.exports}}]); +//# sourceMappingURL=15.3e163139.js.map \ No newline at end of file diff --git a/dist/js/15.3e163139.js.map b/dist/js/15.3e163139.js.map new file mode 100644 index 0000000..7fd6009 --- /dev/null +++ b/dist/js/15.3e163139.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/15.3e163139.js","mappings":"qJAAA,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,CAACL,EAAG,eAAe,CAACI,MAAM,CAAC,MAAQ,QAAQ,CAACJ,EAAG,WAAW,CAACI,MAAM,CAAC,YAAc,UAAUE,MAAM,CAACC,MAAOT,EAAIO,WAAWG,gBAAiBC,SAAS,SAAUC,GAAMZ,EAAIa,KAAKb,EAAIO,WAAY,kBAAmBK,EAAI,EAAEE,WAAW,iCAAiC,GAAGZ,EAAG,eAAe,CAACI,MAAM,CAAC,MAAQ,SAAS,CAACJ,EAAG,WAAW,CAACI,MAAM,CAAC,YAAc,WAAWE,MAAM,CAACC,MAAOT,EAAIO,WAAWQ,SAAUJ,SAAS,SAAUC,GAAMZ,EAAIa,KAAKb,EAAIO,WAAY,WAAYK,EAAI,EAAEE,WAAW,0BAA0B,GAAGZ,EAAG,eAAe,CAACI,MAAM,CAAC,MAAQ,SAAS,CAACJ,EAAG,iBAAiB,CAACI,MAAM,CAAC,KAAO,YAAY,kBAAkB,IAAI,oBAAoB,OAAO,kB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,SAAA,CACAC,QAAA,QAAAmB,OACAlB,KAAA,QAEA,EAGAqB,UAAAA,CAAAH,GACA,KAAApB,SAAA,CACAC,QAAA,SAAAmB,IACAlB,KAAA,QAEA,EAGAsB,eAAAA,CAAAJ,GACA,KAAAK,QAAAC,KAAA,CACAjD,KAAA,eAEA,KC9QoQ,I,UCQhQkD,GAAY,OACd,EACA7F,EACA0C,GACA,EACA,KACA,WACA,MAIF,EAAemD,E","sources":["webpack://abcdf/./src/views/User/ContractList.vue","webpack://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.contract_number),callback:function ($$v) {_vm.$set(_vm.filterForm, \"contract_number\", $$v)},expression:\"filterForm.contract_number\"}})],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.datetime),callback:function ($$v) {_vm.$set(_vm.filterForm, \"datetime\", $$v)},expression:\"filterForm.datetime\"}})],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\":\"create_time\",\"label\":\"下单时间\",\"width\":\"160\"}}),_c('el-table-column',{attrs:{\"prop\":\"order_id\",\"label\":\"订单号\",\"min-width\":\"100\"}}),_c('el-table-column',{attrs:{\"prop\":\"status\",\"label\":\"商品信息\",\"min-width\":\"200\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('div',{staticClass:\"product-info\"},[_c('img',{staticClass:\"product-img\",attrs:{\"src\":scope.row.product_headimg}}),_c('div',{staticClass:\"product-name\"},[_vm._v(\" \"+_vm._s(scope.row.product_title)+\" \"+_vm._s(scope.row.child_order_num > 1 ? \"等\" + scope.row.child_order_num + \"款\" : \"\")+\" \")])])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"contract_number\",\"label\":\"合同号\",\"width\":\"180\"}}),_c('el-table-column',{attrs:{\"prop\":\"paid_money\",\"label\":\"合同金额\",\"min-width\":\"70\"}}),_c('el-table-column',{attrs:{\"label\":\"操作\",\"width\":\"130\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return (scope.row.contract_number)?[_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){return _vm.handleDownload(scope.row)}}},[_vm._v(\"下载合同模板\")])]:undefined}}],null,true)})],1),_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.filterForm.limit,\"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=732b9384&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=732b9384&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 \"732b9384\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","_m","attrs","filterForm","model","value","contract_number","callback","$$v","$set","expression","order_id","datetime","staticStyle","on","search","_v","reset","orders","scopedSlots","_u","key","fn","scope","row","product_headimg","_s","product_title","child_order_num","$event","handleDownload","undefined","currentPage","limit","total","handleSizeChange","handleCurrentChange","staticRenderFns","name","data","activeTab","mounted","getList","methods","handlePreview","pdfUrl","window","open","downloadUrl","contract_url","link","document","createElement","href","download","style","display","body","appendChild","click","removeChild","$message","message","type","post","offset","then","res","createTime","val","getStatusText","status","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/151.bc9dae61.js b/dist/js/151.bc9dae61.js new file mode 100644 index 0000000..5e12d9e --- /dev/null +++ b/dist/js/151.bc9dae61.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[151],{5151:function(t,e,s){s.r(e),s.d(e,{default:function(){return o}});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:function(e){return t.util.copyId(t.userInfo.user_id)}}},[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(" 尊敬的采购人,欢迎来到时味苏州企业采购平台!您可以先完成下方的基础设置,方便您更高效的采购。 ")])}],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({},"/api/uservice/user/getMyInfo").then(t=>{this.userInfo=t.data,console.log(this.userInfo)})},goPath(t){this.$router.push(t)}}}),n=l,c=s(1656),r=(0,c.A)(n,i,a,!1,null,"6cc31808",null),o=r.exports}}]); +//# sourceMappingURL=151.bc9dae61.js.map \ No newline at end of file diff --git a/dist/js/151.bc9dae61.js.map b/dist/js/151.bc9dae61.js.map new file mode 100644 index 0000000..299de65 --- /dev/null +++ b/dist/js/151.bc9dae61.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/151.bc9dae61.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,oBAA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AAGP,EAAKQ,WAAW,EAAE,GAAG,MAAM,IAAI,EACj9G,EACIc,EAAkB,CAAC,WAAY,IAAInC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,uBAAuB,CAACF,EAAG,IAAI,CAACE,YAAY,sBAAsBJ,EAAImB,GAAG,qDACtK,GC0GA,G,QAAA,CACAiB,KAAA,aACAC,IAAAA,GACA,OACAhC,YAAA,EACAiC,OAAA,eACA1B,QAAA,CACA,CACAM,KAAA,mBACAG,MAAA,SACAL,KAAA,qBAEA,CACAE,KAAA,mBACAG,MAAA,SACAL,KAAA,qBAEA,CACAE,KAAA,eACAG,MAAA,UACAL,KAAA,uBAGAgB,WAAA,CACA,CAAAd,KAAA,eAAAG,MAAA,MAAAL,KAAA,GAAAiB,MAAA,GACA,CAAAf,KAAA,gBAAAG,MAAA,MAAAL,KAAA,GAAAiB,MAAA,GACA,CAAAf,KAAA,eAAAG,MAAA,MAAAL,KAAA,GAAAiB,MAAA,IAEAC,MAAA,CACA,CAAAhB,KAAA,eAAAG,MAAA,MAAAL,KAAA,GAAAiB,MAAA,GACA,CAAAf,KAAA,gBAAAG,MAAA,MAAAL,KAAA,GAAAiB,MAAA,GACA,CAAAf,KAAA,eAAAG,MAAA,OAAAL,KAAA,GAAAiB,MAAA,IAGAV,SAAA,KAEA,EACAgB,SAAA,GACAC,OAAAA,GACA,KAAAC,aACA,EACAC,QAAA,CACAD,WAAAA,GAEA,KAAAE,KAAA,mCAAAC,KAAAC,IACA,KAAAtB,SAAAsB,EAAAR,KACAS,QAAAC,IAAA,KAAAxB,WAEA,EAEAQ,MAAAA,CAAAf,GACA,KAAAgC,QAAAC,KAAAjC,EACA,KCjKkQ,I,UCQ9PkC,GAAY,OACd,EACAnD,EACAoC,GACA,EACA,KACA,WACA,MAIF,EAAee,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\":function($event){return _vm.util.copyId(_vm.userInfo.user_id)}}},[_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(\" 尊敬的采购人,欢迎来到时味苏州企业采购平台!您可以先完成下方的基础设置,方便您更高效的采购。 \")])\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=6cc31808&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=6cc31808&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 \"6cc31808\",\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","util","copyId","mobile","goPath","bargaining","value","order","staticRenderFns","name","data","userId","computed","mounted","getUserInfo","methods","post","then","res","console","log","$router","push","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/170.349e118b.js b/dist/js/170.349e118b.js new file mode 100644 index 0000000..3fb2ccc --- /dev/null +++ b/dist/js/170.349e118b.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[170],{9170:function(t,e,i){i.r(e),i.d(e,{default:function(){return n}});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"bg"},[e("div",{staticClass:"filter-bar"},[e("el-form",{attrs:{inline:!0,model:t.filterForm,size:"small"}},[e("el-form-item",{attrs:{label:"商品名称"}},[e("el-input",{attrs:{placeholder:"请输入商品名称"},model:{value:t.filterForm.keywords,callback:function(e){t.$set(t.filterForm,"keywords",e)},expression:"filterForm.keywords"}})],1),e("el-form-item",{attrs:{label:"订单编号"}},[e("el-input",{attrs:{placeholder:"请输入订单编号"},model:{value:t.filterForm.order_id,callback:function(e){t.$set(t.filterForm,"order_id",e)},expression:"filterForm.order_id"}})],1),e("el-form-item",{attrs:{label:"下单时间"}},[e("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},model:{value:t.filterForm.createTime,callback:function(e){t.$set(t.filterForm,"createTime",e)},expression:"filterForm.createTime"}})],1),e("el-form-item",{attrs:{label:"商家名称"}},[e("el-input",{attrs:{placeholder:"请输入商家名称"},model:{value:t.filterForm.merchantName,callback:function(e){t.$set(t.filterForm,"merchantName",e)},expression:"filterForm.merchantName"}})],1),e("el-form-item",{attrs:{label:"交易状态"}},[e("el-select",{staticStyle:{width:"200px"},attrs:{placeholder:"请选择"},model:{value:t.filterForm.state,callback:function(e){t.$set(t.filterForm,"state",e)},expression:"filterForm.state"}},t._l(t.typeList,function(t,i){return e("el-option",{key:i,attrs:{label:t.name,value:t.id}})}),1)],1),e("el-form-item",{attrs:{label:"完成时间"}},[e("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},model:{value:t.filterForm.finishTime,callback:function(e){t.$set(t.filterForm,"finishTime",e)},expression:"filterForm.finishTime"}})],1),e("el-form-item",[e("el-button",{staticStyle:{background:"#6a8a27",border:"none"},attrs:{type:"primary"},on:{click:t.search}},[t._v("搜索")])],1),e("el-form-item",[e("el-button",{on:{click:t.reset}},[t._v("重置")])],1)],1)],1),e("div",[t._m(0),t._l(t.orders,function(i){return e("div",{key:i.id,staticClass:"order-card"},[e("div",{staticClass:"order-header flex-between"},[e("div",{staticStyle:{display:"flex"}},[e("div",[t._v("订单号: "+t._s(i.order_id))]),e("div",{staticStyle:{"padding-left":"60px"}},[t._v(" 下单时间:"+t._s(i.create_time)+" ")])]),e("div",{staticClass:"product-status"},[e("el-tag",{attrs:{type:t.getStatusTagType(i.state),size:"small"}},[t._v(t._s(i.state_text))])],1)]),e("div",{staticClass:"order-products"},t._l(i.order_product_list,function(i){return e("div",{key:i.id,staticClass:"product-item"},[e("img",{staticClass:"product-image",attrs:{src:i.product_img}}),e("div",{staticClass:"product-details"},[e("div",{staticClass:"product-name"},[t._v(t._s(i.product_title))]),e("div",{staticClass:"product-spec"},[t._v(t._s(i.sku_name))])]),e("div",{staticClass:"product-price"},[t._v(" ¥"+t._s((i.product_price/100).toFixed(2))+" ")]),e("div",{staticClass:"product-quantity"},[t._v("x"+t._s(i.product_num))]),e("div",{staticClass:"product-total"},[t._v(" ¥"+t._s((i.paid_money/100).toFixed(2))+" ")]),e("div",{staticClass:"product-actions"},[e("el-button",{attrs:{type:"text",size:"mini"}},[t._v(" 商品详情")])],1)])}),0),e("div",{staticClass:"order-footer"},[e("div",{staticClass:"order-summary"},[e("div",{staticClass:"order-amount"},[t._v(" 合计: "),e("strong",[t._v("¥"+t._s((i.paid_money/100).toFixed(2)))]),t._v(" (含运费 ¥"+t._s((i.total_post_fee/100).toFixed(2))+") ")])]),e("div",{staticClass:"order-actions"},[e("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(e){return t.viewOrderDetail(i.order_id)}}},[t._v("订单详情")]),"pendingPayment"===i.status?e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.payOrder(i.id)}}},[t._v("去付款")]):t._e(),"pendingDelivery"===i.status?e("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(e){return t.remindDelivery(i.id)}}},[t._v("提醒发货")]):t._e(),"delivering"===i.status?e("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(e){return t.checkLogistics(i.id)}}},[t._v("查看物流")]):t._e(),"completed"!==i.status||i.isReviewed?t._e():e("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(e){return t.gotoReview(i.id)}}},[t._v("去评价")])],1)])])}),t.orders.length<=0?e("el-empty",{attrs:{description:"暂无订单"}}):t._e(),e("div",{staticStyle:{"text-align":"right","margin-top":"20px"}},[e("el-pagination",{attrs:{"current-page":t.filterForm.currentPage,"page-sizes":[5,10,20],"page-size":t.filterForm.limit,layout:"total, sizes, prev, pager, next, jumper",total:t.filterForm.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],2)])},s=[function(){var t=this,e=t._self._c;return 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-details"},[e("div",{staticClass:"product-name"},[t._v("商品信息")])]),e("div",{staticClass:"product-price"},[t._v("单价(元)")]),e("div",{staticClass:"product-quantity"},[t._v("数量")]),e("div",{staticClass:"product-total"},[t._v("小计(元)")]),e("div",{staticClass:"product-actions"})])])}],a=(i(4114),{name:"OrderList",data(){return{activeTab:"ALL",filterForm:{keywords:"",currentPage:1,limit:10,order_id:"",createTime:null,start_date:"",end_date:"",total:1,state:""},typeList:[{name:"全部",id:""},{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-1)*this.filterForm.limit},"/api/order/list").then(t=>{this.orders=t.data.list,this.filterForm.total=t.data.total})},search(){this.filterForm.currentPage=1,this.getList()},reset(){this.filterForm={keywords:"",currentPage:1,limit:10,order_id:"",createTime:null,start_date:"",end_date:"",total:1},this.getList()},handleSizeChange(t){this.filterForm.limit=t,this.filterForm.currentPage=1,this.getList()},handleCurrentChange(t){this.filterForm.currentPage=t,this.getList()},getStatusText(t){const e={pendingPayment:"待付款",pendingDelivery:"待发货",delivering:"配送中",completed:"已完成",cancelled:"已取消"};return e[t]||t},getStatusTagType(t){const e={pendingPayment:"warning",pendingDelivery:"info",delivering:"primary",completed:"success",cancelled:"danger"};return e[t]||"default"},payOrder(t){this.$message({message:`订单 ${t} 去付款`,type:"info"})},remindDelivery(t){this.$message({message:`已提醒订单 ${t} 发货`,type:"success"})},checkLogistics(t){this.$message({message:`查看订单 ${t} 物流`,type:"info"})},gotoReview(t){this.$message({message:`去评价订单 ${t}`,type:"info"})},viewOrderDetail(t){this.$router.push({path:"/OrderDetail?id="+t})}}}),l=a,o=i(1656),d=(0,o.A)(l,r,s,!1,null,"6f29e60c",null),n=d.exports}}]); +//# sourceMappingURL=170.349e118b.js.map \ No newline at end of file diff --git a/dist/js/170.349e118b.js.map b/dist/js/170.349e118b.js.map new file mode 100644 index 0000000..e7b502b --- /dev/null +++ b/dist/js/170.349e118b.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/170.349e118b.js","mappings":"sJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,M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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,CACAC,KAAA,mBAAAN,GAEA,KCrWiQ,I,UCQ7PO,GAAY,OACd,EACA9F,EACAgE,GACA,EACA,KACA,WACA,MAIF,EAAe8B,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('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.state),callback:function ($$v) {_vm.$set(_vm.filterForm, \"state\", $$v)},expression:\"filterForm.state\"}},_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.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)])\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=6f29e60c&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=6f29e60c&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 \"6f29e60c\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","attrs","filterForm","model","value","keywords","callback","$$v","$set","expression","order_id","createTime","merchantName","staticStyle","state","_l","typeList","item","i","key","name","id","finishTime","on","search","_v","reset","_m","orders","order","_s","create_time","getStatusTagType","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","activeTab","start_date","end_date","computed","mounted","getList","methods","post","offset","then","res","list","val","getStatusText","statusMap","pendingPayment","pendingDelivery","delivering","completed","cancelled","typeMap","orderId","$message","message","type","$router","push","path","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/179.c11c622d.js b/dist/js/179.c11c622d.js new file mode 100644 index 0000000..c791c57 --- /dev/null +++ b/dist/js/179.c11c622d.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[179],{179:function(e,t,i){i.r(t),i.d(t,{default:function(){return c}});var a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"bg"},[t("el-card",{staticStyle:{width:"100%"}},[t("div",{staticClass:"clearfix flex-between",attrs:{slot:"header"},slot:"header"},[t("span",[e._v("我的发票")]),t("div",{staticClass:"flex-between"},[t("span",{staticStyle:{color:"#666","font-size":"12px"}},[e._v("您已保存了"+e._s(e.invoiceList.length)+"个发票抬头信息,做多可创建5个。")]),t("el-button",{staticStyle:{float:"right"},attrs:{size:"small",type:"primary"},on:{click:function(t){return e.openDialog("add",{})}}},[e._v("新增")])],1)]),t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.invoiceList,border:""}},[t("el-table-column",{attrs:{prop:"invoice_head",label:"发票抬头",width:"120"}}),t("el-table-column",{attrs:{prop:"tax_number",label:"纳税人识别号",width:"200"}}),t("el-table-column",{attrs:{prop:"opening_bank",label:"开户银行","min-width":"180"}}),t("el-table-column",{attrs:{prop:"bank_account",label:"银行账号","min-width":"180"}}),t("el-table-column",{attrs:{label:"操作",width:"200"},scopedSlots:e._u([{key:"default",fn:function(i){return[t("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.openDialog("edit",i.row)}}},[e._v("编辑")]),t("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.handleDelete(i.row)}}},[e._v("删除")])]}}])})],1)],1),t("el-dialog",{attrs:{title:"发票抬头",visible:e.dialogVisible,width:"700px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("el-form",{ref:"form",attrs:{model:e.form,"label-width":"120px",size:"small",rules:e.titleRules}},[t("el-form-item",{attrs:{label:"发票抬头",prop:"invoice_head"}},[t("el-input",{attrs:{placeholder:"请填写发票抬头"},model:{value:e.form.invoice_head,callback:function(t){e.$set(e.form,"invoice_head",t)},expression:"form.invoice_head"}})],1),t("el-form-item",{attrs:{label:"纳税人识别号",prop:"tax_number"}},[t("el-input",{attrs:{placeholder:"请填写纳税人识别号"},model:{value:e.form.tax_number,callback:function(t){e.$set(e.form,"tax_number",t)},expression:"form.tax_number"}})],1),t("el-form-item",{attrs:{label:"开户银行",prop:"opening_bank"}},[t("el-input",{attrs:{placeholder:"请填写开户银行"},model:{value:e.form.opening_bank,callback:function(t){e.$set(e.form,"opening_bank",t)},expression:"form.opening_bank"}})],1),t("el-form-item",{attrs:{label:"银行账号",prop:"bank_account"}},[t("el-input",{attrs:{placeholder:"请填写银行账号"},model:{value:e.form.bank_account,callback:function(t){e.$set(e.form,"bank_account",t)},expression:"form.bank_account"}})],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("取消")]),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.saveInvoiceTitle}},[e._v("保存")])],1)],1)],1)},n=[],l={name:"UserInfo",data(){return{user:{},searchParam:{pageSize:5,currentPage:1,total:10},dialogVisible:!1,invoiceList:[],form:{type:"add",invoice_head:"",tax_number:"",opening_bank:"",bank_account:""},titleRules:{invoice_head:[{required:!0,message:"请输入发票抬头",trigger:"blur"}],tax_number:[{required:!0,message:"请输入纳税人识别号",trigger:"blur"},{pattern:/^[A-Z0-9]{15,20}$/,message:"纳税人识别号格式不正确",trigger:"blur"}],opening_bank:[{required:!0,message:"请输入开户银行",trigger:"blur"}],bank_account:[{required:!0,message:"请输入银行账号",trigger:"blur"}]}}},mounted(){this.getList()},methods:{getList(){this.post({offset:0,limit:5},"/api/enterprise_invoice/index").then(e=>{this.invoiceList=e.data})},handleSizeChange(e){this.searchParam.pageSize=e},handleCurrentChange(e){this.searchParam.currentPage=e},openDialog(e,t){this.form={type:e,id:t.id||"",bank_account:t.bank_account||"",invoice_head:t.invoice_head||"",opening_bank:t.opening_bank||"",tax_number:t.tax_number||""},this.dialogVisible=!0},saveInvoiceTitle(){this.$refs.form.validate(e=>{if(e){let e="add"==this.form.type?"/api/enterprise_invoice/create":"/api/enterprise_invoice/edit";this.post(this.form,e).then(e=>{1==e.code&&(this.getList(),this.$message.success("操作成功"),this.dialogVisible=!1)})}})},handleDelete(e){this.$confirm("此操作将永久删除该发票, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.post({id:e.id},"/api/enterprise_invoice/delete").then(e=>{1==e.code&&(this.getList(),this.$message({type:"success",message:"删除成功!"}))})})}}},r=l,o=i(1656),s=(0,o.A)(r,a,n,!1,null,"89376790",null),c=s.exports}}]); +//# sourceMappingURL=179.c11c622d.js.map \ No newline at end of file diff --git a/dist/js/179.c11c622d.js.map b/dist/js/179.c11c622d.js.map new file mode 100644 index 0000000..4f722f4 --- /dev/null +++ b/dist/js/179.c11c622d.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/179.c11c622d.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,OAAO,CAACF,EAAIQ,GAAG,UAAUN,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,OAAO,CAACG,YAAY,CAAC,MAAQ,OAAO,YAAY,SAAS,CAACL,EAAIQ,GAAG,QAAQR,EAAIS,GAAGT,EAAIU,YAAYC,QAAQ,sBAAsBT,EAAG,YAAY,CAACG,YAAY,CAAC,MAAQ,SAASC,MAAM,CAAC,KAAO,QAAQ,KAAO,WAAWM,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOb,EAAIc,WAAW,MAAO,CAAC,EAAE,IAAI,CAACd,EAAIQ,GAAG,SAAS,KAAKN,EAAG,WAAW,CAACG,YAAY,CAAC,MAAQ,QAAQC,MAAM,CAAC,KAAON,EAAIU,YAAY,OAAS,KAAK,CAACR,EAAG,kBAAkB,CAACI,MAAM,CAAC,KAAO,eAAe,MAAQ,OAAO,MAAQ,SAASJ,EAAG,kBAAkB,CAACI,MAAM,CAAC,KAAO,aAAa,MAAQ,SAAS,MAAQ,SAASJ,EAAG,kBAAkB,CAACI,MAAM,CAAC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AA,cAMA,ICpOmQ,I,UCO/P0B,GAAY,OACd,EACA1E,EACAsC,GACA,EACA,KACA,WACA,MAIF,EAAeoC,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(\"您已保存了\"+_vm._s(_vm.invoiceList.length)+\"个发票抬头信息,做多可创建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.invoiceList,\"border\":\"\"}},[_c('el-table-column',{attrs:{\"prop\":\"invoice_head\",\"label\":\"发票抬头\",\"width\":\"120\"}}),_c('el-table-column',{attrs:{\"prop\":\"tax_number\",\"label\":\"纳税人识别号\",\"width\":\"200\"}}),_c('el-table-column',{attrs:{\"prop\":\"opening_bank\",\"label\":\"开户银行\",\"min-width\":\"180\"}}),_c('el-table-column',{attrs:{\"prop\":\"bank_account\",\"label\":\"银行账号\",\"min-width\":\"180\"}}),_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.openDialog('edit', 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',{ref:\"form\",attrs:{\"model\":_vm.form,\"label-width\":\"120px\",\"size\":\"small\",\"rules\":_vm.titleRules}},[_c('el-form-item',{attrs:{\"label\":\"发票抬头\",\"prop\":\"invoice_head\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写发票抬头\"},model:{value:(_vm.form.invoice_head),callback:function ($$v) {_vm.$set(_vm.form, \"invoice_head\", $$v)},expression:\"form.invoice_head\"}})],1),_c('el-form-item',{attrs:{\"label\":\"纳税人识别号\",\"prop\":\"tax_number\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写纳税人识别号\"},model:{value:(_vm.form.tax_number),callback:function ($$v) {_vm.$set(_vm.form, \"tax_number\", $$v)},expression:\"form.tax_number\"}})],1),_c('el-form-item',{attrs:{\"label\":\"开户银行\",\"prop\":\"opening_bank\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写开户银行\"},model:{value:(_vm.form.opening_bank),callback:function ($$v) {_vm.$set(_vm.form, \"opening_bank\", $$v)},expression:\"form.opening_bank\"}})],1),_c('el-form-item',{attrs:{\"label\":\"银行账号\",\"prop\":\"bank_account\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写银行账号\"},model:{value:(_vm.form.bank_account),callback:function ($$v) {_vm.$set(_vm.form, \"bank_account\", $$v)},expression:\"form.bank_account\"}})],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.saveInvoiceTitle}},[_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=89376790&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 \"89376790\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","staticStyle","attrs","slot","_v","_s","invoiceList","length","on","$event","openDialog","scopedSlots","_u","key","fn","scope","row","handleDelete","dialogVisible","ref","form","titleRules","model","value","invoice_head","callback","$$v","$set","expression","tax_number","opening_bank","bank_account","saveInvoiceTitle","staticRenderFns","name","data","user","searchParam","pageSize","currentPage","total","type","required","message","trigger","pattern","mounted","getList","methods","post","offset","limit","then","res","handleSizeChange","val","handleCurrentChange","item","id","$refs","validate","valid","url","code","$message","success","$confirm","confirmButtonText","cancelButtonText","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/181.a2fd06e0.js b/dist/js/181.a2fd06e0.js deleted file mode 100644 index 5769172..0000000 --- a/dist/js/181.a2fd06e0.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[181],{6181: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("div",{staticClass:"common-card normal-margin-bottom"},[t("div",{staticClass:"order-step"},[t("el-steps",{staticStyle:{width:"100%"},attrs:{active:e.activeIndex,"align-center":""}},e._l(e.activities,function(a,s){return t("el-step",{key:s,class:[s==e.activeIndexFlag?"is-current":""]},[t("div",{staticClass:"process-title",attrs:{slot:"title"},slot:"title"},[e._v(e._s(a.status))]),t("div",{attrs:{slot:"icon"},slot:"icon"},[s>=e.activeIndexFlag?t("span",[e._v(e._s(s+1))]):t("i",{staticClass:"el-icon-check",staticStyle:{color:"#fff"}})])])}),1)],1)]),t("el-card",{staticStyle:{width:"100%"}},[t("el-form",{attrs:{model:e.user,"label-width":"150px",size:"small"}},[t("div",{staticClass:"header-title"},[e._v("单位信息")]),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("img",{staticClass:"avatar",attrs:{src:e.user.avatar}}):t("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1),t("div",{staticClass:"grid-container"},[t("el-form-item",{attrs:{label:"公司名称:",rules:e.inputRequired}},[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:"统一信用代码:",rules:e.inputRequired}},[t("el-input",{attrs:{placeholder:"请输入"},model:{value:e.user.nickname,callback:function(t){e.$set(e.user,"nickname",t)},expression:"user.nickname"}})],1)],1),t("div",{staticClass:"grid-container"},[t("el-form-item",{attrs:{label:"法人代表:",rules:e.inputRequired}},[t("el-input",{attrs:{placeholder:"请输入"},model:{value:e.user.nickname,callback:function(t){e.$set(e.user,"nickname",t)},expression:"user.nickname"}})],1),t("div")],1),t("div",{staticClass:"header-title",staticStyle:{"margin-top":"50px"}},[e._v("联系人信息")]),t("div",{staticClass:"grid-container"},[t("el-form-item",{attrs:{label:"联系人名称:",rules:e.inputRequired}},[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:"手机号码:",rules:e.inputRequired}},[t("el-input",{attrs:{placeholder:"请输入"},model:{value:e.user.nickname,callback:function(t){e.$set(e.user,"nickname",t)},expression:"user.nickname"}})],1)],1),t("div",{staticClass:"grid-container"},[t("el-form-item",{attrs:{label:"公司地址:",rules:e.inputRequired}},[t("el-cascader",{staticStyle:{width:"100%"},attrs:{options:e.options,filterable:""},model:{value:e.user.address,callback:function(t){e.$set(e.user,"address",t)},expression:"user.address"}})],1),t("el-form-item",{attrs:{label:"详细地址:",rules:e.inputRequired}},[t("el-input",{attrs:{placeholder:"请输入"},model:{value:e.user.nickname,callback:function(t){e.$set(e.user,"nickname",t)},expression:"user.nickname"}})],1)],1),t("div",{staticClass:"grid-container"},[t("el-form-item",{attrs:{label:"邮箱:",rules:e.inputRequired}},[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:"固定电话:",rules:e.inputRequired}},[t("el-input",{attrs:{placeholder:"请输入"},model:{value:e.user.nickname,callback:function(t){e.$set(e.user,"nickname",t)},expression:"user.nickname"}})],1)],1),t("div",{staticStyle:{display:"flex","justify-content":"center","margin-top":"50px"}},[t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.saveUser}},[e._v("保存")]),t("el-button",{attrs:{size:"small"},on:{click:e.close}},[e._v("关闭")])],1)],1)],1)],1)},l=[],i=(a(4603),a(7566),a(8721),{name:"OrderDetail",data(){return{activities:[{status:"待完善"},{status:"信息待审核"},{status:"审核通过"}],options:[{value:"zhinan",label:"指南",children:[{value:"shejiyuanze",label:"设计原则",children:[{value:"yizhi",label:"一致"}]}]}],activeIndex:2,activeIndexFlag:1,user:{},inputRequired:{required:!0,message:"请输入",trigger:"blur"},selectRequired:{required:!0,message:"请选择",trigger:"change"}}},computed:{},methods:{handleAvatarChange(e){this.user.avatar=URL.createObjectURL(e.raw)}}}),r=i,n=a(1656),c=(0,n.A)(r,s,l,!1,null,"5daf4460",null),u=c.exports}}]); -//# sourceMappingURL=181.a2fd06e0.js.map \ No newline at end of file diff --git a/dist/js/181.a2fd06e0.js.map b/dist/js/181.a2fd06e0.js.map deleted file mode 100644 index e5db127..0000000 --- a/dist/js/181.a2fd06e0.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/181.a2fd06e0.js","mappings":"sJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,MAAM,CAACF,EAAG,MAAM,CAACE,YAAY,oCAAoC,CAACF,EAAG,MAAM,CAACE,YAAY,cAAc,CAACF,EAAG,WAAW,CAACG,YAAY,CAAC,MAAQ,QAAQC,MAAM,CAAC,OAASN,EAAIO,YAAY,eAAe,KAAKP,EAAIQ,GAAIR,EAAIS,WAAY,SAASC,EAAKC,GAAG,OAAOT,EAAG,UAAU,CAACU,IAAID,EAAEE,MAAM,CAACF,GAAGX,EAAIc,gBAAgB,aAAa,KAAK,CAACZ,EAAG,MAAM,CAACE,YAAY,gBAAgBE,MAAM,CAAC,KAAO,SAASS,KAAK,SAAS,CAACf,EAAIgB,GAAGhB,EAAIiB,GAAGP,EAAKQ,WAAWhB,EAAG,MAAM,CAACI,MAAM,CAAC,KAAO,QAAQS,KAAK,QAAQ,CAAEJ,GAAGX,EAAIc,gBAAiBZ,EAAG,OAAO,CAACF,EAAIgB,GAAGhB,EAAIiB,GAAGN,EAAE,MAAMT,EAAG,IAAI,CAACE,YAAY,gBAAgBC,YAAY,CAAC,MAAQ,aAAa,GAAG,IAAI,KAAKH,EAAG,UAAU,CAACG,Y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A,cAAAc,MAAA,OACAC,SAAA,EAAAf,MAAA,QAAAc,MAAA,WAEA/B,YAAA,EACAO,gBAAA,EACAK,KAAA,GACAG,cAAA,CAAAkB,UAAA,EAAAC,QAAA,MAAAC,QAAA,QACAC,eAAA,CAAAH,UAAA,EAAAC,QAAA,MAAAC,QAAA,UAGA,EACAE,SAAA,CAEA,EACAC,QAAA,CACAzB,kBAAAA,CAAA0B,GACA,KAAA3B,KAAAE,OAAA0B,IAAAC,gBAAAF,EAAAG,IACA,KC9GoQ,I,UCQhQC,GAAY,OACd,EACAnD,EACAoC,GACA,EACA,KACA,WACA,MAIF,EAAee,E","sources":["webpack://abcdf/./src/views/User/PurchaserAdd.vue","webpack://abcdf/src/views/User/PurchaserAdd.vue","webpack://abcdf/./src/views/User/PurchaserAdd.vue?4111","webpack://abcdf/./src/views/User/PurchaserAdd.vue?647c"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg\"},[_c('div',{staticClass:\"common-card normal-margin-bottom\"},[_c('div',{staticClass:\"order-step\"},[_c('el-steps',{staticStyle:{\"width\":\"100%\"},attrs:{\"active\":_vm.activeIndex,\"align-center\":\"\"}},_vm._l((_vm.activities),function(item,i){return _c('el-step',{key:i,class:[i==_vm.activeIndexFlag?'is-current':'']},[_c('div',{staticClass:\"process-title\",attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(_vm._s(item.status))]),_c('div',{attrs:{\"slot\":\"icon\"},slot:\"icon\"},[(i>=_vm.activeIndexFlag)?_c('span',[_vm._v(_vm._s(i+1))]):_c('i',{staticClass:\"el-icon-check\",staticStyle:{\"color\":\"#fff\"}})])])}),1)],1)]),_c('el-card',{staticStyle:{\"width\":\"100%\"}},[_c('el-form',{attrs:{\"model\":_vm.user,\"label-width\":\"150px\",\"size\":\"small\"}},[_c('div',{staticClass:\"header-title\"},[_vm._v(\"单位信息\")]),_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('img',{staticClass:\"avatar\",attrs:{\"src\":_vm.user.avatar}}):_c('i',{staticClass:\"el-icon-plus avatar-uploader-icon\"})])],1),_c('div',{staticClass:\"grid-container\"},[_c('el-form-item',{attrs:{\"label\":\"公司名称:\",\"rules\":_vm.inputRequired}},[_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\":\"统一信用代码:\",\"rules\":_vm.inputRequired}},[_c('el-input',{attrs:{\"placeholder\":\"请输入\"},model:{value:(_vm.user.nickname),callback:function ($$v) {_vm.$set(_vm.user, \"nickname\", $$v)},expression:\"user.nickname\"}})],1)],1),_c('div',{staticClass:\"grid-container\"},[_c('el-form-item',{attrs:{\"label\":\"法人代表:\",\"rules\":_vm.inputRequired}},[_c('el-input',{attrs:{\"placeholder\":\"请输入\"},model:{value:(_vm.user.nickname),callback:function ($$v) {_vm.$set(_vm.user, \"nickname\", $$v)},expression:\"user.nickname\"}})],1),_c('div')],1),_c('div',{staticClass:\"header-title\",staticStyle:{\"margin-top\":\"50px\"}},[_vm._v(\"联系人信息\")]),_c('div',{staticClass:\"grid-container\"},[_c('el-form-item',{attrs:{\"label\":\"联系人名称:\",\"rules\":_vm.inputRequired}},[_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\":\"手机号码:\",\"rules\":_vm.inputRequired}},[_c('el-input',{attrs:{\"placeholder\":\"请输入\"},model:{value:(_vm.user.nickname),callback:function ($$v) {_vm.$set(_vm.user, \"nickname\", $$v)},expression:\"user.nickname\"}})],1)],1),_c('div',{staticClass:\"grid-container\"},[_c('el-form-item',{attrs:{\"label\":\"公司地址:\",\"rules\":_vm.inputRequired}},[_c('el-cascader',{staticStyle:{\"width\":\"100%\"},attrs:{\"options\":_vm.options,\"filterable\":\"\"},model:{value:(_vm.user.address),callback:function ($$v) {_vm.$set(_vm.user, \"address\", $$v)},expression:\"user.address\"}})],1),_c('el-form-item',{attrs:{\"label\":\"详细地址:\",\"rules\":_vm.inputRequired}},[_c('el-input',{attrs:{\"placeholder\":\"请输入\"},model:{value:(_vm.user.nickname),callback:function ($$v) {_vm.$set(_vm.user, \"nickname\", $$v)},expression:\"user.nickname\"}})],1)],1),_c('div',{staticClass:\"grid-container\"},[_c('el-form-item',{attrs:{\"label\":\"邮箱:\",\"rules\":_vm.inputRequired}},[_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\":\"固定电话:\",\"rules\":_vm.inputRequired}},[_c('el-input',{attrs:{\"placeholder\":\"请输入\"},model:{value:(_vm.user.nickname),callback:function ($$v) {_vm.$set(_vm.user, \"nickname\", $$v)},expression:\"user.nickname\"}})],1)],1),_c('div',{staticStyle:{\"display\":\"flex\",\"justify-content\":\"center\",\"margin-top\":\"50px\"}},[_c('el-button',{attrs:{\"size\":\"small\",\"type\":\"primary\"},on:{\"click\":_vm.saveUser}},[_vm._v(\"保存\")]),_c('el-button',{attrs:{\"size\":\"small\"},on:{\"click\":_vm.close}},[_vm._v(\"关闭\")])],1)],1)],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!./PurchaserAdd.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!./PurchaserAdd.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./PurchaserAdd.vue?vue&type=template&id=5daf4460&scoped=true\"\nimport script from \"./PurchaserAdd.vue?vue&type=script&lang=js\"\nexport * from \"./PurchaserAdd.vue?vue&type=script&lang=js\"\nimport style0 from \"./PurchaserAdd.vue?vue&type=style&index=0&id=5daf4460&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 \"5daf4460\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","staticStyle","attrs","activeIndex","_l","activities","item","i","key","class","activeIndexFlag","slot","_v","_s","status","user","handleAvatarChange","avatar","inputRequired","model","value","nickname","callback","$$v","$set","expression","options","address","on","saveUser","close","staticRenderFns","name","data","label","children","required","message","trigger","selectRequired","computed","methods","file","URL","createObjectURL","raw","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/217.d6b5d26b.js b/dist/js/217.d6b5d26b.js deleted file mode 100644 index e1cbd72..0000000 --- a/dist/js/217.d6b5d26b.js +++ /dev/null @@ -1,2 +0,0 @@ -"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 deleted file mode 100644 index bd1ad88..0000000 --- a/dist/js/217.d6b5d26b.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file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,GACAA,EAAAf,SAAA,KAAA/B,WAAAI,cAIAwC,CACA,GAEAQ,QAAA,CAEA7C,MAAAA,GACA,KAAAa,YAAA,EACA,KAAAiC,SAAA,CACAC,QAAA,UACAC,KAAA,QAEA,EAGA9C,KAAAA,GACA,KAAAT,WAAA,CACA4B,UAAA,GACA3B,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/896.996819fe.js b/dist/js/220.98d37146.js similarity index 67% rename from dist/js/896.996819fe.js rename to dist/js/220.98d37146.js index 6bcc054..fad16c8 100644 --- a/dist/js/896.996819fe.js +++ b/dist/js/220.98d37146.js @@ -1,2 +1,2 @@ -"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[896],{3896:function(e,t,s){s.r(t),s.d(t,{default:function(){return n}});s(8111),s(116);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:"全部分类"},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.id,attrs:{label:e.name,value:e.id}})}),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(s,a){return t("div",{key:a,staticClass:"product-card",on:{click:function(t){return e.goToDetail(s.id)}}},[t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:s.headimg,expression:"product.headimg"}],staticClass:"product-img",attrs:{alt:s.title,fit:"cover"}}),t("div",{staticClass:"product-info"},[t("div",{staticClass:"product-name"},[e._v(e._s(s.title))]),t("div",{staticClass:"price-row"},[t("span",{staticClass:"current-price"},[e._v("¥"+e._s(s.price/100))]),s.market_price?t("span",{staticClass:"original-price"},[e._v("¥"+e._s(s.market_price/100))]):e._e()]),t("div",{staticClass:"sales-volume"},[t("i",{staticClass:"el-icon-shopping-cart"}),e._v(" 已售 "+e._s(s.sales_number)+" ")]),t("el-button",{staticClass:"cart-btn",attrs:{type:"primary",size:"mini"}},[e._v(" 立即购买 ")])],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()])},r=[],i=(s(4114),s(3518)),c={name:"ProductGridPage",data(){return{type:"",searchKeyword:"",selectedCategory:"",selectedSort:"default",showFilter:!0,currentPage:1,pageSize:12,visibleProducts:[],totalProducts:0,categories:[],id:"",keyword:""}},computed:{...(0,i.L8)(["getSearchText"]),currentOffset(){return(this.currentPage-1)*this.pageSize}},watch:{getSearchText(e,t){e!==t&&(this.searchKeyword=e,this.fetchProducts())}},created(){this.type=this.$route.query?.type,this.searchKeyword=this.getSearchText,this.getTagList(),this.$bus.on("search-product",e=>{this.searchKeyword=e,this.currentPage=1,this.fetchProducts()})},beforeDestroy(){this.$bus.off("search-product"),this.searchKeyword="",this.$store.commit("setSearchText",""),this.currentPage=1,this.selectedCategory="",this.selectedSort="default"},methods:{getTagList(){this.post({pid:683},"/api/product/tag_list").then(e=>{this.categories=e.data,this.categories[0].id=662;const t=this.$route.query.id||662;if(t){this.id=t;const e=this.categories.find(e=>e.id==t);console.log(t,e),e&&(this.selectedCategory=e.name)}this.fetchProducts()})},async fetchProducts(){const e={tag_id:this.id||this.selectedCategory,offset:this.currentOffset,limit:this.pageSize,title:this.searchKeyword,...this.parseSortParams()};this.searchKeyword&&(e.keyword=this.searchKeyword);const t=await this.post(e,"/api/product/get_product_by_tag");this.visibleProducts=t.data.list||[],this.totalProducts=Number(t.data.total)||0},parseSortParams(){if("default"===this.selectedSort)return{};const[e,t]=this.selectedSort.split("_"),s={sales:"sales_number",price:"price"};return{sort:s[e],order:t}},handleCategoryChange(e){this.id=e,this.currentPage=1,this.fetchProducts()},handleSortChange(){this.currentPage=1,this.fetchProducts()},handleSizeChange(e){this.pageSize=e,this.currentPage=1,this.fetchProducts()},handleCurrentChange(e){this.currentPage=e,this.fetchProducts(),window.scrollTo(0,0)},goToDetail(e){this.$router.push(`/Detail/${e}`)}}},o=c,l=s(1656),d=(0,l.A)(o,a,r,!1,null,"cf708dca",null),n=d.exports}}]); -//# sourceMappingURL=896.996819fe.js.map \ No newline at end of file +"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[220],{6220:function(e,t,s){s.r(t),s.d(t,{default:function(){return n}});s(8111),s(116);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:"全部分类"},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.id,attrs:{label:e.name,value:e.id}})}),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(s,a){return t("div",{key:a,staticClass:"product-card",on:{click:function(t){return e.goToDetail(s.id)}}},[t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:s.headimg,expression:"product.headimg"}],staticClass:"product-img",attrs:{alt:s.title,fit:"cover"}}),t("div",{staticClass:"product-info"},[t("div",{staticClass:"product-name"},[e._v(e._s(s.title))]),t("div",{staticClass:"price-row"},[t("span",{staticClass:"current-price"},[e._v("¥"+e._s(s.price/100))]),s.market_price?t("span",{staticClass:"original-price"},[e._v("¥"+e._s(s.market_price/100))]):e._e()]),t("div",{staticClass:"sales-volume"},[t("i",{staticClass:"el-icon-shopping-cart"}),e._v(" 已售 "+e._s(s.sales_number)+" ")]),t("el-button",{staticClass:"cart-btn",attrs:{type:"primary",size:"mini"}},[e._v(" 立即购买 ")])],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()])},r=[],i=(s(4114),s(3518)),c={name:"ProductGridPage",data(){return{type:"",searchKeyword:"",selectedCategory:"",selectedSort:"default",showFilter:!0,currentPage:1,pageSize:12,visibleProducts:[],totalProducts:0,categories:[],id:"",keyword:""}},computed:{...(0,i.L8)(["getSearchText"]),currentOffset(){return(this.currentPage-1)*this.pageSize}},watch:{getSearchText(e,t){e!==t&&(this.searchKeyword=e,this.fetchProducts())}},created(){this.type=this.$route.query?.type,this.searchKeyword=this.getSearchText,this.getTagList()},beforeDestroy(){this.searchKeyword="",this.$store.commit("setSearchText",""),this.currentPage=1,this.selectedCategory="",this.selectedSort="default"},methods:{getTagList(){this.post({pid:683},"/api/product/tag_list").then(e=>{this.categories=e.data,this.categories[0].id=662;const t=this.$route.query.id||662;if(t){this.id=t;const e=this.categories.find(e=>e.id==t);console.log(t,e),e&&(this.selectedCategory=e.name)}this.fetchProducts()})},async fetchProducts(){const e={tag_id:this.id||this.selectedCategory,offset:this.currentOffset,limit:this.pageSize,title:this.searchKeyword,...this.parseSortParams()};this.searchKeyword&&(e.keyword=this.searchKeyword);const t=await this.post(e,"/api/product/get_product_by_tag");this.visibleProducts=t.data.list||[],this.totalProducts=Number(t.data.total)||0},parseSortParams(){if("default"===this.selectedSort)return{};const[e,t]=this.selectedSort.split("_"),s={sales:"sales_number",price:"price"};return{sort:s[e],order:t}},handleCategoryChange(e){this.id=e,this.currentPage=1,this.fetchProducts()},handleSortChange(){this.currentPage=1,this.fetchProducts()},handleSizeChange(e){this.pageSize=e,this.currentPage=1,this.fetchProducts()},handleCurrentChange(e){this.currentPage=e,this.fetchProducts(),window.scrollTo(0,0)},goToDetail(e){this.$router.push(`/Detail/${e}`)}}},l=c,o=s(1656),d=(0,o.A)(l,a,r,!1,null,"f31b94e0",null),n=d.exports}}]); +//# sourceMappingURL=220.98d37146.js.map \ No newline at end of file diff --git a/dist/js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6C,GACA,KAAA9C,SAAA8C,EACA,KAAA/C,YAAA,EACA,KAAAc,eACA,EAGAX,mBAAAA,CAAA4C,GACA,KAAA/C,YAAA+C,EACA,KAAAjC,gBAEAkC,OAAAC,SAAA,IACA,EAGA1D,UAAAA,CAAAhB,GACA,KAAA2E,QAAAC,KAAA,WAAA5E,IACA,IC3Q6P,I,UCQzP6E,GAAY,OACd,EACAjG,EACAiD,GACA,EACA,KACA,WACA,MAIF,EAAegD,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.id,attrs:{\"label\":cat.name,\"value\":cat.id}})}),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:index,staticClass:\"product-card\",on:{\"click\":function($event){return _vm.goToDetail(product.id)}}},[_c('img',{directives:[{name:\"lazy\",rawName:\"v-lazy\",value:(product.headimg),expression:\"product.headimg\"}],staticClass:\"product-img\",attrs:{\"alt\":product.title,\"fit\":\"cover\"}}),_c('div',{staticClass:\"product-info\"},[_c('div',{staticClass:\"product-name\"},[_vm._v(_vm._s(product.title))]),_c('div',{staticClass:\"price-row\"},[_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()]),_c('div',{staticClass:\"sales-volume\"},[_c('i',{staticClass:\"el-icon-shopping-cart\"}),_vm._v(\" 已售 \"+_vm._s(product.sales_number)+\" \")]),_c('el-button',{staticClass:\"cart-btn\",attrs:{\"type\":\"primary\",\"size\":\"mini\"}},[_vm._v(\" 立即购买 \")])],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","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=f31b94e0&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=f31b94e0&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 \"f31b94e0\",\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","id","name","handleSortChange","selectedSort","_e","type","_v","searchKeyword","_s","find","label","totalProducts","visibleProducts","product","index","$event","goToDetail","directives","rawName","headimg","title","price","market_price","sales_number","length","currentPage","pageSize","handleSizeChange","handleCurrentChange","staticRenderFns","data","keyword","computed","mapGetters","currentOffset","watch","getSearchText","newVal","oldVal","fetchProducts","created","$route","query","getTagList","beforeDestroy","$store","commit","methods","post","pid","then","res","routeId","matchedCategory","console","log","params","tag_id","offset","limit","parseSortParams","response","list","Number","total","sortField","order","split","sortMap","sales","sort","event","val","window","scrollTo","$router","push","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/230.6e39146c.js b/dist/js/230.6e39146c.js new file mode 100644 index 0000000..9bcf024 --- /dev/null +++ b/dist/js/230.6e39146c.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[230],{5230:function(e,t,a){a.r(t),a.d(t,{default:function(){return c}});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"bg"},[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.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-select",{staticStyle:{width:"200px"},attrs:{placeholder:"请选择"},model:{value:e.filterForm.invoice_status,callback:function(t){e.$set(e.filterForm,"invoice_status",t)},expression:"filterForm.invoice_status"}},[t("el-option",{attrs:{label:"全部",value:""}}),t("el-option",{attrs:{label:"未申请",value:"0"}}),t("el-option",{attrs:{label:"已申请",value:"1"}}),t("el-option",{attrs:{label:"已开票",value:"2"}}),t("el-option",{attrs:{label:"开票失败",value:"3"}})],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.datetime,callback:function(t){e.$set(e.filterForm,"datetime",t)},expression:"filterForm.datetime"}})],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.invoiceList,border:""}},[t("el-table-column",{attrs:{prop:"order_id",label:"订单号","min-width":"120"}}),t("el-table-column",{attrs:{prop:"status",label:"订单状态",width:"80"}}),t("el-table-column",{attrs:{prop:"create_time",label:"下单时间",width:"200"}}),t("el-table-column",{attrs:{prop:"paid_money",label:"发票金额",width:"110"}}),t("el-table-column",{attrs:{prop:"invoice_head",label:"发票抬头","min-width":"120"}}),t("el-table-column",{attrs:{prop:"invoice_type",label:"发票类型",width:"120"}}),t("el-table-column",{attrs:{prop:"invoice_status",label:"开票状态",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.getStatusText(t.row.invoice_status))+" ")]}}])}),t("el-table-column",{attrs:{label:"操作",width:"110"},scopedSlots:e._u([{key:"default",fn:function(a){return a.row.invoice_url?[t("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.handleDownload(a.row)}}},[e._v("下载发票")])]:void 0}}],null,!0)})],1),t("div",{staticStyle:{"text-align":"right","margin-top":"20px"}},[t("el-pagination",{attrs:{"current-page":e.filterForm.offset,"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)],1)},l=[],r=(a(4114),{name:"OrderList",data(){return{activeTab:"all",filterForm:{order_id:"",datetime:"",status:"",offset:1,limit:10,total:0,invoice_status:""},invoiceList:[]}},mounted(){this.getList()},methods:{getList(){this.filterForm.offset=(this.filterForm.offset-1)*this.filterForm.limit,this.post(this.filterForm,"/api/order/orderInvoice").then(e=>{this.invoiceList=e.data})},search(){this.filterForm.offset=1,this.getList()},reset(){this.filterForm={order_id:"",datetime:"",status:"",offset:1,limit:10,total:0,invoice_status:""},this.activeTab="all"},handleDownload(e){const t=e.invoice_url,a=document.createElement("a");a.href=t,a.download=`发票${e.invoice_head}.pdf`,a.style.display="none",document.body.appendChild(a),a.click(),document.body.removeChild(a),this.$message({message:`发票 ${e.invoice_head} 开始下载`,type:"success"})},getStatusText(e){let t="";switch(e){case 0:t="未申请";break;case 1:t="已申请";break;case 2:t="已开票";break;case 3:t="开票失败";break;default:break}return t},handleSizeChange(e){this.limit=e},handleCurrentChange(e){this.offset=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=r,o=a(1656),n=(0,o.A)(s,i,l,!1,null,"574b70c4",null),c=n.exports}}]); +//# sourceMappingURL=230.6e39146c.js.map \ No newline at end of file diff --git a/dist/js/230.6e39146c.js.map b/dist/js/230.6e39146c.js.map new file mode 100644 index 0000000..da5528f --- /dev/null +++ b/dist/js/230.6e39146c.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/230.6e39146c.js","mappings":"sJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,MAAM,CAACF,EAAG,MAAM,CAACE,YAAY,cAAc,CAACF,EAAG,UAAU,CAACG,MAAM,CAAC,QAAS,EAAK,MAAQL,EAAIM,WAAW,KAAO,UAAU,CAACJ,EAAG,eAAe,CAACG,MAAM,CAAC,MAAQ,SAAS,CAACH,EAAG,WAAW,CAACG,MAAM,CAAC,YAAc,WAAWE,MAAM,CAACC,MAAOR,EAAIM,WAAWG,SAAUC,SAAS,SAAUC,GAAMX,EAAIY,KAAKZ,EAAIM,WAAY,WAAYK,EAAI,EAAEE,WAAW,0BAA0B,GAAGX,EAAG,eAAe,CAACG,MAAM,CAAC,MAAQ,SAAS,CAACH,EAAG,YAAY,CAACY,YAAY,CAAC,MAAQ,SAAST,MAAM,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AA,UACAC,UAAA,UACAC,UAAA,UAEA,OAAAL,EAAA1B,IAAA,SACA,EAGAgC,QAAAA,CAAAC,GACA,KAAAb,SAAA,CACAC,QAAA,MAAAY,QACAX,KAAA,QAEA,EAGAY,cAAAA,CAAAD,GACA,KAAAb,SAAA,CACAC,QAAA,SAAAY,OACAX,KAAA,WAEA,EAGAa,cAAAA,CAAAF,GACA,KAAAb,SAAA,CACAC,QAAA,QAAAY,OACAX,KAAA,QAEA,EAGAc,UAAAA,CAAAH,GACA,KAAAb,SAAA,CACAC,QAAA,SAAAY,IACAX,KAAA,QAEA,EAGAe,eAAAA,CAAAJ,GACA,KAAAK,QAAAC,KAAA,CACA1C,KAAA,eAEA,KC1QuQ,I,UCQnQ2C,GAAY,OACd,EACApF,EACAwC,GACA,EACA,KACA,WACA,MAIF,EAAe4C,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('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.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-select',{staticStyle:{\"width\":\"200px\"},attrs:{\"placeholder\":\"请选择\"},model:{value:(_vm.filterForm.invoice_status),callback:function ($$v) {_vm.$set(_vm.filterForm, \"invoice_status\", $$v)},expression:\"filterForm.invoice_status\"}},[_c('el-option',{attrs:{\"label\":\"全部\",\"value\":\"\"}}),_c('el-option',{attrs:{\"label\":\"未申请\",\"value\":\"0\"}}),_c('el-option',{attrs:{\"label\":\"已申请\",\"value\":\"1\"}}),_c('el-option',{attrs:{\"label\":\"已开票\",\"value\":\"2\"}}),_c('el-option',{attrs:{\"label\":\"开票失败\",\"value\":\"3\"}})],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.datetime),callback:function ($$v) {_vm.$set(_vm.filterForm, \"datetime\", $$v)},expression:\"filterForm.datetime\"}})],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.invoiceList,\"border\":\"\"}},[_c('el-table-column',{attrs:{\"prop\":\"order_id\",\"label\":\"订单号\",\"min-width\":\"120\"}}),_c('el-table-column',{attrs:{\"prop\":\"status\",\"label\":\"订单状态\",\"width\":\"80\"}}),_c('el-table-column',{attrs:{\"prop\":\"create_time\",\"label\":\"下单时间\",\"width\":\"200\"}}),_c('el-table-column',{attrs:{\"prop\":\"paid_money\",\"label\":\"发票金额\",\"width\":\"110\"}}),_c('el-table-column',{attrs:{\"prop\":\"invoice_head\",\"label\":\"发票抬头\",\"min-width\":\"120\"}}),_c('el-table-column',{attrs:{\"prop\":\"invoice_type\",\"label\":\"发票类型\",\"width\":\"120\"}}),_c('el-table-column',{attrs:{\"prop\":\"invoice_status\",\"label\":\"开票状态\",\"width\":\"120\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\" \"+_vm._s(_vm.getStatusText(scope.row.invoice_status))+\" \")]}}])}),_c('el-table-column',{attrs:{\"label\":\"操作\",\"width\":\"110\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return (scope.row.invoice_url)?[_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.handleDownload(scope.row)}}},[_vm._v(\"下载发票\")])]:undefined}}],null,true)})],1),_c('div',{staticStyle:{\"text-align\":\"right\",\"margin-top\":\"20px\"}},[_c('el-pagination',{attrs:{\"current-page\":_vm.filterForm.offset,\"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)],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=574b70c4&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=574b70c4&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 \"574b70c4\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","attrs","filterForm","model","value","order_id","callback","$$v","$set","expression","staticStyle","invoice_status","datetime","on","search","_v","reset","invoiceList","scopedSlots","_u","key","fn","scope","_s","getStatusText","row","invoice_url","$event","handleDownload","undefined","offset","limit","total","handleSizeChange","handleCurrentChange","staticRenderFns","name","data","activeTab","status","mounted","getList","methods","post","then","res","downloadUrl","link","document","createElement","href","download","invoice_head","style","display","body","appendChild","click","removeChild","$message","message","type","text","val","getStatusTagType","typeMap","pendingPayment","pendingDelivery","delivering","completed","cancelled","payOrder","orderId","remindDelivery","checkLogistics","gotoReview","viewOrderDetail","$router","push","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/322.693252a2.js b/dist/js/322.693252a2.js deleted file mode 100644 index 02dd595..0000000 --- a/dist/js/322.693252a2.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[322],{2988:function(t,s,i){i.d(s,{A:function(){return l}});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("router-link",{key:i.id,staticClass:"product-card",attrs:{to:`/Detail/${i.id}`}},[s("div",{staticClass:"product-img"},[s("img",{directives:[{name:"lazy",rawName:"v-lazy",value:i.headimg,expression:"product.headimg"}],staticClass:"product-pic",attrs:{alt:i.title}})]),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"}},[s("el-icon",{attrs:{name:"el-icon-shopping-cart"}}),t._v(" 立即购买 ")],1)],1)])])}),1),0===t.products.length?s("div",{staticClass:"no-products"},[s("el-empty",{attrs:{description:"暂无相关商品"}})],1):t._e()])},e=[],r={name:"ProductList",props:{products:{type:Array,default:()=>[]}},methods:{}},c=r,o=i(1656),n=(0,o.A)(c,a,e,!1,null,"0968dad7",null),l=n.exports},7322: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("div",{staticClass:"left-nav"},[s("ul",{staticClass:"nav-list"},t._l(t.tagList,function(i){return s("router-link",{key:i.id,staticClass:"nav-item",attrs:{to:"/productList?id="+i.id,tag:"li"}},[s("img",{attrs:{src:t.util.showImg(i.image),alt:""}}),t._v(t._s(i.name)+" ")])}),1)]),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"},[s("router-link",{staticClass:"icon-item",attrs:{to:"/User/UserCenter"}},[s("i",{staticClass:"icon el-icon-user"}),s("span",[t._v("个人中心")])]),s("router-link",{staticClass:"icon-item",attrs:{to:"/User/OrderList"}},[s("i",{staticClass:"icon el-icon-goods"}),s("span",[t._v("我的订单")])]),s("router-link",{staticClass:"icon-item",attrs:{to:"/User/ViewHistory"}},[s("i",{staticClass:"icon el-icon-star-off"}),s("span",[t._v("我的收藏")])]),s("router-link",{staticClass:"icon-item",attrs:{to:"/User/UserCenter"}},[s("i",{staticClass:"icon el-icon-pie-chart"}),s("span",[t._v("议价单")])])],1):t._e()])])}),c=[],o={name:"HomeLayout",props:{topBanner:{type:Array,default:()=>[]},tagList:{type:Array,default:()=>[]}},data(){return{}}},n=o,l=i(1656),d=(0,l.A)(n,r,c,!1,null,"c27a7e04",null),p=d.exports,u=i(2988),g={components:{HomeLayout:p,ProductList:u.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()},methods:{getTopBanner(){this.post({type_id:6,position:0},"/api/adv/getAdv").then(t=>{t&&(this.topBanner=t.data)})},getTags(){this.post({pid:683},"/api/product/tag_list").then(t=>{this.tagList=t.data,this.tagList[0].id=662})},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,"c53f5724",null),h=v.exports}}]); -//# sourceMappingURL=322.693252a2.js.map \ No newline at end of file diff --git a/dist/js/322.693252a2.js.map b/dist/js/322.693252a2.js.map deleted file mode 100644 index d8afc24..0000000 --- a/dist/js/322.693252a2.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/322.693252a2.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,cAAc,CAACM,IAAID,EAAQE,GAAGL,YAAY,eAAeM,MAAM,CAAC,GAAK,WAAWH,EAAQE,OAAO,CAACP,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,MAAM,CAACS,WAAW,CAAC,CAACC,KAAK,OAAOC,QAAQ,SAASC,MAAOP,EAAQQ,QAASC,WAAW,oBAAoBZ,YAAY,cAAcM,MAAM,CAAC,IAAMH,EAAQU,WAAWf,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,GAAG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AoB,KAAA,IAEA,CACA5B,GAAA,IACAQ,MAAA,OACAoB,KAAA,IAEA,CACA5B,GAAA,IACAQ,MAAA,OACAoB,KAAA,KAGAe,YAAA,CACA,CACA3C,GAAA,EACAG,KAAA,2CACAQ,MAAA,KACAiC,cAAA,KACAZ,MACA,8EACAlB,MAAA,IACA+B,WAAA,GAEA,CACA7C,GAAA,EACAG,KAAA,OACAQ,MAAA,IACAiC,cAAA,IACAZ,MACA,8EACAlB,MAAA,IACA+B,WAAA,GAEA,CACA7C,GAAA,EACAG,KAAA,SACAQ,MAAA,IACAiC,cAAA,IACAZ,MACA,8EACAlB,MAAA,IACA+B,WAAA,GAEA,CACA7C,GAAA,GACAG,KAAA,SACAQ,MAAA,IACAiC,cAAA,IACAZ,MACA,8EACAlB,MAAA,IACA+B,WAAA,IAIA,EACAC,OAAAA,GACA,KAAAC,eACA,KAAAC,UACA,KAAAC,gBACA,EACA1B,QAAA,CAEAwB,YAAAA,GACA,KAAAG,KACA,CACAC,QAAA,EACAC,SAAA,GAEA,mBACAC,KAAAC,IACAA,IACA,KAAA7B,UAAA6B,EAAAf,OAGA,EAEAS,OAAAA,GACA,KAAAE,KACA,CACAK,IAAA,KAEA,yBACAF,KAAAC,IACA,KAAA5B,QAAA4B,EAAAf,KACA,KAAAb,QAAA,GAAA1B,GAAA,KAEA,EAEAiD,cAAAA,GACA,KAAAtB,WAAA6B,IAAAC,IACA,KAAAP,KACA,CACAQ,OAAAD,EAAAzD,GACA2D,OAAA,EACAC,MAAA,GAEA,mCACAP,KAAAC,IACAG,EAAA7B,KAAA0B,EAAAf,KAAAX,QAGA,IC7IoP,ICQhP,GAAY,OACd,EACAtC,EACA4B,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('router-link',{key:product.id,staticClass:\"product-card\",attrs:{\"to\":`/Detail/${product.id}`}},[_c('div',{staticClass:\"product-img\"},[_c('img',{directives:[{name:\"lazy\",rawName:\"v-lazy\",value:(product.headimg),expression:\"product.headimg\"}],staticClass:\"product-pic\",attrs:{\"alt\":product.title}})]),_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\"}},[_c('el-icon',{attrs:{\"name\":\"el-icon-shopping-cart\"}}),_vm._v(\" 立即购买 \")],1)],1)])])}),1),(_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=0968dad7&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=0968dad7&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 \"0968dad7\",\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('div',{staticClass:\"left-nav\"},[_c('ul',{staticClass:\"nav-list\"},_vm._l((_vm.tagList),function(item){return _c('router-link',{key:item.id,staticClass:\"nav-item\",attrs:{\"to\":'/productList?id=' + item.id,\"tag\":\"li\"}},[_c('img',{attrs:{\"src\":_vm.util.showImg(item.image),\"alt\":\"\"}}),_vm._v(_vm._s(item.name)+\" \")])}),1)]),_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\"},[_c('router-link',{staticClass:\"icon-item\",attrs:{\"to\":\"/User/UserCenter\"}},[_c('i',{staticClass:\"icon el-icon-user\"}),_c('span',[_vm._v(\"个人中心\")])]),_c('router-link',{staticClass:\"icon-item\",attrs:{\"to\":\"/User/OrderList\"}},[_c('i',{staticClass:\"icon el-icon-goods\"}),_c('span',[_vm._v(\"我的订单\")])]),_c('router-link',{staticClass:\"icon-item\",attrs:{\"to\":\"/User/ViewHistory\"}},[_c('i',{staticClass:\"icon el-icon-star-off\"}),_c('span',[_vm._v(\"我的收藏\")])]),_c('router-link',{staticClass:\"icon-item\",attrs:{\"to\":\"/User/UserCenter\"}},[_c('i',{staticClass:\"icon el-icon-pie-chart\"}),_c('span',[_vm._v(\"议价单\")])])],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!./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=c27a7e04&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=c27a7e04&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 \"c27a7e04\",\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=c53f5724&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=c53f5724&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 \"c53f5724\",\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","length","staticRenderFns","props","type","Array","default","methods","component","topBanner","tagList","prouctList","list","item","util","showImg","image","head_img","$store","getters","isUserLogin","getUserInfo","avatar","data","components","HomeLayout","ProductList","newProducts","originalPrice","categoryId","created","getTopBanner","getTags","getProductList","post","type_id","position","then","res","pid","map","i","tag_id","offset","limit"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/328.82cd4078.js b/dist/js/328.82cd4078.js new file mode 100644 index 0000000..ca29195 --- /dev/null +++ b/dist/js/328.82cd4078.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[328],{2328: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/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,"ae67915e",null),c=o.exports}}]); +//# sourceMappingURL=328.82cd4078.js.map \ No newline at end of file diff --git a/dist/js/328.82cd4078.js.map b/dist/js/328.82cd4078.js.map new file mode 100644 index 0000000..86fc539 --- /dev/null +++ b/dist/js/328.82cd4078.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/328.82cd4078.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,uBACA,CAAAG,MAAA,OAAAH,KAAA,yBACA,CAAAG,MAAA,OAAAH,KAAA,qBACA,CAAAG,MAAA,OAAAH,KAAA,sBAKA,CAAAG,MAAA,OAAAH,KAAA,qBACA,CAAAG,MAAA,OAAAH,KAAA,kBACA,CAAAG,MAAA,QAAAH,KAAA,sBACA,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,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=ae67915e&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=ae67915e&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 \"ae67915e\",\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/334.f62139de.js b/dist/js/334.f62139de.js deleted file mode 100644 index 966ac61..0000000 --- a/dist/js/334.f62139de.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[334],{1734:function(e,t,i){i.d(t,{A:function(){return d}});var s=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{title:("add"===e.type?"新增":"编辑")+"收货地址",visible:e.visible,width:"700px"},on:{close:e.handleClose}},[t("el-form",{ref:"addressForm",attrs:{model:e.form,rules:e.rules,"label-width":"100px",size:"small"}},[t("el-form-item",{attrs:{label:"收货人",prop:"username"}},[t("el-input",{attrs:{placeholder:"请填写收货人姓名,限制10个字符",maxlength:"10"},model:{value:e.form.username,callback:function(t){e.$set(e.form,"username",t)},expression:"form.username"}})],1),t("el-form-item",{attrs:{label:"所在地区",prop:"region"}},[t("div",{staticClass:"region-selector"},[t("el-select",{staticClass:"region-select",attrs:{placeholder:"选择省份/直辖市"},on:{change:e.handleProvinceChange},model:{value:e.form.province_id,callback:function(t){e.$set(e.form,"province_id",t)},expression:"form.province_id"}},e._l(e.provinces,function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1),t("el-select",{staticClass:"region-select",attrs:{placeholder:"选择城市",disabled:!e.form.province_id},on:{change:e.handleCityChange},model:{value:e.form.city_id,callback:function(t){e.$set(e.form,"city_id",t)},expression:"form.city_id"}},e._l(e.cities,function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1),t("el-select",{staticClass:"region-select",attrs:{placeholder:"选择县区",disabled:!e.form.city_id},model:{value:e.form.district_id,callback:function(t){e.$set(e.form,"district_id",t)},expression:"form.district_id"}},e._l(e.districts,function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1)]),t("el-form-item",{attrs:{label:"详细地址",prop:"detail_addr"}},[t("el-input",{attrs:{placeholder:"请填写详细地址,限制500个字符",maxlength:"500"},model:{value:e.form.detail_addr,callback:function(t){e.$set(e.form,"detail_addr",t)},expression:"form.detail_addr"}})],1),t("el-form-item",{attrs:{label:"手机号码",prop:"mobile"}},[t("el-input",{attrs:{placeholder:"请填写手机号码,限制11位数字",maxlength:"11",oninput:"value=value.replace(/[^\\d]/g,'')"},model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:e.handleClose}},[e._v("取消")]),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.saveAddress}},[e._v("保存")])],1)],1)},a=[],r=(i(8111),i(2489),i(116),{name:"AddressFormDialog",props:{visible:{type:Boolean,default:!1},type:{type:String,required:!0,validator:e=>["add","edit"].includes(e)},initialData:{type:Object,default:()=>({})}},data(){const e=(e,t,i)=>t?/^1[3-9]\d{9}$/.test(t)?void i():i(new Error("请输入正确的11位手机号码")):i(new Error("请输入手机号码")),t=(e,t,i)=>{if(!this.form.province_id||!this.form.city_id||!this.form.district_id)return i(new Error("请完整选择省市区"));i()};return{form:{id:null,username:"",detail_addr:"",mobile:"",province_id:null,city_id:null,district_id:null,region:""},rules:{username:[{required:!0,message:"请输入收货人姓名",trigger:"blur"},{max:10,message:"姓名不能超过10个字符",trigger:"blur"}],region:[{required:!0,validator:t,trigger:"change"}],detail_addr:[{required:!0,message:"请输入详细地址",trigger:"blur"},{max:500,message:"详细地址不能超过500个字符",trigger:"blur"}],mobile:[{required:!0,validator:e,trigger:"blur"}]},regionData:[]}},computed:{provinces(){return this.regionData.filter(e=>1===e.level)},cities(){return this.form.province_id?this.regionData.filter(e=>2===e.level&&e.pid===this.form.province_id):[]},districts(){return this.form.city_id?this.regionData.filter(e=>3===e.level&&e.pid===this.form.city_id):[]}},watch:{visible(e){e&&this.initForm()},initialData:{handler(){this.visible&&this.initForm()},deep:!0}},mounted(){this.getRegionData()},methods:{async getRegionData(){try{const e=await this.post({},"/api/uservice/user/getAreas");e&&e.data?this.regionData=e.data:this.$message.error("获取地区数据失败")}catch(e){console.error("获取地区数据出错:",e),this.$message.error("获取地区数据时发生错误")}},initForm(){this.$nextTick(()=>{this.$refs.addressForm&&this.$refs.addressForm.resetFields(),this.form={id:"edit"===this.type?this.initialData.id:null,username:this.initialData.username||"",detail_addr:this.initialData.detail_addr||"",mobile:this.initialData.mobile||"",province_id:this.initialData.province_id||null,city_id:this.initialData.city_id||null,district_id:this.initialData.district_id||null,region:this.initialData.region||""},"edit"===this.type&&this.initialData.region&&!this.form.province_id&&this.echoRegionSelection(this.initialData.region)})},echoRegionSelection(e){const t=e.split(" ");if(t.length<3)return;const i=this.provinces.find(e=>e.name===t[0]);i&&(this.form.province_id=i.id,this.$nextTick(()=>{const e=this.cities.find(e=>e.name===t[1]);e&&(this.form.city_id=e.id,this.$nextTick(()=>{const e=this.districts.find(e=>e.name===t[2]);e&&(this.form.district_id=e.id)}))}))},handleProvinceChange(){this.form.city_id=null,this.form.district_id=null},handleCityChange(){this.form.district_id=null},saveAddress(){this.$refs.addressForm.validate(async e=>{if(!e)return;const t=this.provinces.find(e=>e.id===this.form.province_id),i=this.cities.find(e=>e.id===this.form.city_id),s=this.districts.find(e=>e.id===this.form.district_id);if(!(t&&i&&s))return void this.$message.warning("地区信息不完整");const a={...this.form,region:`${t.name} ${i.name} ${s.name}`};this.$emit("save",a),this.handleClose()})},handleClose(){this.$emit("update:visible",!1)}}}),o=r,l=i(1656),n=(0,l.A)(o,s,a,!1,null,"7d3ebefd",null),d=n.exports},8334:function(e,t,i){i.r(t),i.d(t,{default:function(){return u}});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"order-page"},[t("div",{staticClass:"page-header"},[t("h2",[e._v("填写收货人信息")]),t("el-button",{staticClass:"address-book-btn",attrs:{type:"text"},on:{click:function(t){return e.openDialog("add",{})}}},[e._v(" 新增/修改地址 ")])],1),t("div",{staticClass:"info-section"},[t("h3",[e._v("收货人信息")]),t("div",{staticClass:"address-item"},[t("span",{staticClass:"label"},[e._v("收货地址:")]),t("div",{staticClass:"address-content"},e._l(e.addresses,function(i,s){return t("div",{key:s,staticClass:"saved-address",class:{selected:e.selectedAddressIndex===s},on:{click:function(t){return e.selectAddress(s)}}},[t("span",{staticClass:"name-tag"},[e._v(e._s(i.name)+" "+e._s(i.province))]),t("span",{staticClass:"detail"},[e._v(e._s(i.address)+" "+e._s(i.phone))]),t("el-button",{staticClass:"edit-btn",attrs:{type:"text"},on:{click:function(t){return t.stopPropagation(),e.handleEdit(i)}}},[e._v("编辑")]),t("el-button",{staticClass:"delete-btn",attrs:{type:"text"},on:{click:function(t){return t.stopPropagation(),e.handleDelete()}}},[e._v("删除")])],1)}),0)]),t("h3",[e._v("发票信息")]),t("div",{staticClass:"invoice-type-item"},[t("span",{staticClass:"label"},[e._v("是否开票:")]),t("el-radio-group",{model:{value:e.needInvoice,callback:function(t){e.needInvoice=t},expression:"needInvoice"}},[t("el-radio",{attrs:{label:!0}},[e._v("是")]),t("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1),e.needInvoice?t("div",{staticClass:"invoice-type-item"},[t("span",{staticClass:"label"},[e._v("发票类型:")]),t("el-radio-group",{model:{value:e.invoice_type,callback:function(t){e.invoice_type=t},expression:"invoice_type"}},[t("el-radio",{attrs:{label:1}},[e._v("增值税普通发票")]),t("el-radio",{attrs:{label:2}},[e._v("普通电子发票")])],1)],1):e._e(),e.needInvoice?t("div",{staticClass:"invoice-title-item"},[t("span",{staticClass:"label"},[e._v("发票抬头:")]),t("el-select",{staticClass:"invoice-title-select",attrs:{placeholder:"请选择发票抬头"},model:{value:e.selectedInvoiceTitle,callback:function(t){e.selectedInvoiceTitle=t},expression:"selectedInvoiceTitle"}},e._l(e.invoiceTitles,function(e,i){return t("el-option",{key:i,attrs:{label:e.name,value:e.id}})}),1),t("el-button",{staticClass:"add-title-btn",attrs:{type:"text"},on:{click:e.openTitleDialog}},[e._v("+ 添加")])],1):e._e()]),e._m(0),t("div",{staticClass:"goods-section"},[t("h3",[e._v("商品清单")]),e._l(e.orderGroups,function(i,s){return t("div",{key:s,staticClass:"order-group"},[t("div",{staticClass:"supplier-info"},[t("span",[e._v("供货名称:"+e._s(i.supplier))])]),t("table",{staticClass:"goods-table"},[e._m(1,!0),t("tbody",e._l(i.items,function(i,s){return t("tr",{key:s},[t("td",[t("img",{staticClass:"goods-img",attrs:{src:i.image,alt:"商品图片"}}),t("span",{staticClass:"goods-name"},[e._v(e._s(i.name))])]),t("td",[e._v(e._s(i.spec))]),t("td",[e._v(e._s(i.price))]),t("td",[e._v(e._s(i.quantity))]),t("td",[e._v(e._s(i.freight))]),t("td",[e._v(e._s(i.deliveryType))]),t("td",{staticClass:"subtotal"},[e._v(e._s(i.subtotal))])])}),0)]),t("div",{staticClass:"order-remark"},[t("span",{staticClass:"remark-label"},[e._v("订单备注:")]),t("div",{staticClass:"rich-text-editor"},[t("el-input",{staticClass:"remark-editor",attrs:{type:"textarea",rows:"4",placeholder:"请输入订单备注信息"},model:{value:i.remark,callback:function(t){e.$set(i,"remark",t)},expression:"group.remark"}}),e._e()],1)])])}),t("div",{staticClass:"total-info"},[t("p",[e._v(" 共 "+e._s(e.totalGoodsCount)+" 件商品,总商品金额 ¥"+e._s(e.totalGoodsAmount)+" ")]),t("p",[e._v("总运费 ¥"+e._s(e.totalFreight))]),t("p",{staticClass:"pay-amount"},[e._v("实付总金额 ¥"+e._s(e.totalPayAmount))]),t("p",{staticClass:"address-info"},[e._v(" 配送地:"+e._s(e.selectedAddress.address)),t("br"),e._v(" 交货地:"+e._s(e.selectedAddress.address)+" "+e._s(e.selectedAddress.phone)+" ")]),t("el-button",{staticClass:"submit-btn",attrs:{type:"primary"},on:{click:e.submitOrder}},[e._v(" 提交订单 ")])],1)],2),t("AddressFormDialog",{attrs:{visible:e.dialogVisible,type:e.dialogType,"initial-data":e.dialogData},on:{"update:visible":function(t){e.dialogVisible=t},save:e.handleSaveAddress}}),t("el-dialog",{attrs:{title:"新增发票抬头",visible:e.invoiceTitleDialogVisible,width:"500px","before-close":e.handleTitleDialogClose},on:{"update:visible":function(t){e.invoiceTitleDialogVisible=t}}},[t("el-form",{ref:"titleForm",staticClass:"invoice-title-form",attrs:{model:e.titleForm,rules:e.titleRules,"label-width":"120px"}},[t("el-form-item",{attrs:{label:"发票抬头",prop:"name"}},[t("el-input",{attrs:{placeholder:"请输入发票抬头",maxlength:"100"},model:{value:e.titleForm.invoice_head,callback:function(t){e.$set(e.titleForm,"invoice_head",t)},expression:"titleForm.invoice_head"}})],1),t("el-form-item",{attrs:{label:"纳税人识别号",prop:"taxpayerId"}},[t("el-input",{attrs:{placeholder:"请输入纳税人识别号",maxlength:"20"},model:{value:e.titleForm.tax_number,callback:function(t){e.$set(e.titleForm,"tax_number",t)},expression:"titleForm.tax_number"}})],1),t("el-form-item",{attrs:{label:"开户银行",prop:"bankName"}},[t("el-input",{attrs:{placeholder:"请输入开户银行",maxlength:"100"},model:{value:e.titleForm.opening_bank,callback:function(t){e.$set(e.titleForm,"opening_bank",t)},expression:"titleForm.opening_bank"}})],1),t("el-form-item",{attrs:{label:"银行账号",prop:"bankAccount"}},[t("el-input",{attrs:{placeholder:"请输入银行账号",maxlength:"30"},model:{value:e.titleForm.bank_account,callback:function(t){e.$set(e.titleForm,"bank_account",t)},expression:"titleForm.bank_account"}})],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:e.handleTitleDialogClose}},[e._v("取消")]),t("el-button",{attrs:{type:"primary"},on:{click:e.saveInvoiceTitle}},[e._v("确定")])],1)],1)],1)},a=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"contract-section"},[t("h3",[e._v("签署合同")]),t("p",[e._v("如需签署合同,提交订单后,请至采购中心>合同中心签署")])])},function(){var e=this,t=e._self._c;return t("thead",[t("tr",[t("th",[e._v("商品")]),t("th",[e._v("规格")]),t("th",[e._v("单价(元)")]),t("th",[e._v("数量")]),t("th",[e._v("运费")]),t("th",[e._v("收货方式")]),t("th",[e._v("小计(元)")])])])}],r=(i(4114),i(8111),i(7588),i(1701),i(3518)),o=i(1734),l={name:"OrderPage",components:{AddressFormDialog:o.A},data(){return{addresses:[],selectedAddressIndex:-1,selectedTradeType:1,needInvoice:!1,invoice_type:1,invoiceTitles:[],selectedInvoiceTitle:null,orderGroups:[],totalGoodsCount:3,totalGoodsAmount:973,totalFreight:0,totalPayAmount:0,dialogVisible:!1,dialogType:"add",dialogData:{},invoiceTitleDialogVisible:!1,titleForm:{invoice_head:"",tax_number:"",opening_bank:"",bank_account:""},titleRules:{invoice_head:[{required:!0,message:"请输入发票抬头",trigger:"blur"}],tax_number:[{required:!0,message:"请输入纳税人识别号",trigger:"blur"},{pattern:/^[A-Z0-9]{15,20}$/,message:"纳税人识别号格式不正确",trigger:"blur"}],opening_bank:[{required:!0,message:"请输入开户银行",trigger:"blur"}],bank_account:[{required:!0,message:"请输入银行账号",trigger:"blur"}]}}},computed:{...(0,r.L8)(["getOrderData"]),selectedAddress(){return this.addresses[this.selectedAddressIndex]||{}}},mounted(){this.getOrderData?(this.initOrderData(this.getOrderData),console.log(this.getOrderData)):(this.$message.error("未获取到商品信息,请重新操作"),this.$router.go(-1)),this.getAddress(),this.getInvoiceList()},methods:{...(0,r.PY)(["clearOrderData"]),openTitleDialog(){this.invoiceTitleDialogVisible=!0,this.$nextTick(()=>{this.$refs.titleForm.resetFields()})},handleTitleDialogClose(){this.invoiceTitleDialogVisible=!1,this.$refs.titleForm.resetFields()},saveInvoiceTitle(){this.$refs.titleForm.validate(e=>{if(e){this.titleForm;this.post(this.titleForm).then(e=>{1==e.code&&(this.getInvoiceList(),this.$message.success("发票抬头添加成功"),this.invoiceTitleDialogVisible=!1)})}})},getInvoiceList(){this.post({offset:0,limit:100},"/api/enterprise_invoice/index").then(e=>{this.invoiceTitles=e.data})},openDialog(e,t){this.dialogType=e,this.dialogData={...t},this.dialogVisible=!0},handleEdit(e){console.log(e),e.username=e.name,e.mobile=e.tel,this.openDialog("edit",e)},handleDelete(e){this.$confirm("此操作将永久删除该地址, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.post({id:e.id},"/api/uservice/user/delConsignee").then(e=>{1==e.code&&(this.getAddress(),this.$message.success("删除成功!"))})}).catch(()=>{this.$message.info("已取消删除")})},initOrderData(e){if("product"===e.from){const t=e.items[0];this.orderGroups=[{supplier:t.product.supplier_name,items:this.formatItems([t])}]}else"cart"===e.from&&(this.orderGroups=Object.entries(e.groups).map(([e,t])=>({supplier:e,items:this.formatItems(t)})));this.calculateTotal()},formatItems(e){return console.log(e,13213),e.map(e=>({id:e.sku.id,productId:e.product.id,name:e.product.title,image:e.product.headimg,spec:e.sku.sku_name,price:(e.sku.price/100).toFixed(2),quantity:e.quantity,freight:"0.00",deliveryType:"邮寄",type:e.product.type,subtotal:(e.sku.price/100*e.quantity+parseFloat("0.00")).toFixed(2)}))},getPost(){if(!this.selectedAddress.id)return void this.$message.warning("请先选择收货地址");this.totalFreight=0;const e=[];this.orderGroups.forEach((t,i)=>{t.items.forEach((t,i)=>{const s={consignee_id:this.selectedAddress.id,sku_id:t.id,num:t.quantity},a=this.post(s,"/api/order/get_post_price").then(e=>{if(1===e.code){const i=(e.data.price/100).toFixed(2);t.freight=i,t.subtotal=(parseFloat(t.price)*t.quantity+parseFloat(i)).toFixed(2),this.totalFreight=(parseFloat(this.totalFreight)+parseFloat(i)).toFixed(2)}}).catch(e=>{console.error(`获取商品 ${t.id} 邮费失败`,e),this.$message.error(`获取商品 ${t.name} 邮费失败,请重试`)});e.push(a)})}),Promise.all(e).then(()=>{this.calculateTotal()})},calculateTotalFreight(){let e=0;this.orderGroups.forEach(t=>{t.items.forEach(t=>{console.log(t),e+=parseFloat(t.freight)})}),this.totalFreight=e.toFixed(2)},calculateTotal(){let e=0,t=0;this.orderGroups.forEach(i=>{i.items.forEach(i=>{e+=i.quantity,t+=parseFloat(i.subtotal)})}),this.totalGoodsCount=e,this.totalGoodsAmount=t.toFixed(2),this.totalPayAmount=t.toFixed(2)},handleSaveAddress(e){e.is_default=0,"add"===this.dialogType?this.post(e,"/api/uservice/user/addNewConsignee").then(e=>{1==e.code&&(this.$message.success("保存成功"),this.getAddress(),this.dialogVisible=!1)}):this.post(e,"/api/uservice/user/editConsignee").then(e=>{1==e.code&&(this.$message.success("保存成功"),this.getAddress(),this.dialogVisible=!1)})},getAddress(){this.post({contactType:"CONSIGNEE",offset:"0",limit:"100"},"/api/uservice/user/getContactOrConsignee").then(e=>{e&&(this.addresses=e.data||[])})},selectAddress(e){this.selectedAddressIndex=e,this.getPost()},submitOrder(){if(!this.selectedAddress.id)return void this.$message.warning("请先选择收货地址");if(this.needInvoice&&null===this.selectedInvoiceTitle)return void this.$message.warning("请选择发票抬头");let e=[];this.orderGroups.forEach((t,i)=>{t.items.forEach((i,s)=>{console.log(i),e.push({type:i.type,product_id:i.productId,sku_id:i.id,product_num:i.quantity,post:this.selectedAddress.id,remark:t.remark||""})})});let t={product_list:e,invoice_id:this.selectedInvoiceTitle,invoice_type:this.invoice_type};this.post({data:JSON.stringify(t)},"/api/order/create").then(e=>{1==e.code&&(this.$message.success("订单提交成功!"),this.$router.push("/User/OrderList"))})}}},n=l,d=i(1656),c=(0,d.A)(n,s,a,!1,null,"3e695a3d",null),u=c.exports}}]); -//# sourceMappingURL=334.f62139de.js.map \ No newline at end of file diff --git a/dist/js/334.f62139de.js.map b/dist/js/334.f62139de.js.map deleted file mode 100644 index cdb0b0c..0000000 --- a/dist/js/334.f62139de.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/334.f62139de.js","mappings":"yIAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,YAAY,CAACE,MAAM,CAAC,OAAwB,QAAbJ,EAAIK,KAAiB,KAAO,MAA/B,OAA0C,QAAUL,EAAIM,QAAQ,MAAQ,SAASC,GAAG,CAAC,MAAQP,EAAIQ,cAAc,CAACN,EAAG,UAAU,CAACO,IAAI,cAAcL,MAAM,CAAC,MAAQJ,EAAIU,KAAK,MAAQV,EAAIW,MAAM,cAAc,QAAQ,KAAO,UAAU,CAACT,EAAG,eAAe,CAACE,MAAM,CAAC,MAAQ,MAAM,KAAO,aAAa,CAACF,EAAG,WAAW,CAACE,MAAM,CAAC,YAAc,mBAAmB,UAAY,MAAMQ,MAAM,CAACC,MAAOb,EAAIU,KAAKI,SAAUC,SAAS,SAAUC,GAAMhB,EAAIiB,KAAKjB,EAAIU,KAAM,WAAYM,EAAI,EAAEE,WAAW,oBAAoB,GAAGhB,EAAG,eAAe,CAACE,MAAM,CAAC,MAAQ,OAAO,KAAO,WAAW,CAACF,EAAG,MAAM,CAACiB,YAAY,mBAAmB,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AA5F,SAAA6F,QAAA,QACA,KAAAL,aACA,KAAAvB,eAAA,KAKA,KAAAlE,KAAAoB,EAAA,oCAAAwE,KAAA7F,IACA,GAAAA,EAAA8F,OACA,KAAA5F,SAAA6F,QAAA,QACA,KAAAL,aACA,KAAAvB,eAAA,IAIA,EAEAuB,UAAAA,GACA,KAAAzF,KACA,CACAuI,YAAA,YACAxC,OAAA,IACAC,MAAA,OAEA,4CACAJ,KAAA7F,IACAA,IACA,KAAA0B,UAAA1B,EAAAvB,MAAA,KAGA,EAEAuD,aAAAA,CAAAJ,GACA,KAAAG,qBAAAH,EAEA,KAAA2F,SACA,EAGArD,WAAAA,GACA,SAAAD,gBAAAjH,GAEA,YADA,KAAAkD,SAAAkB,QAAA,YAKA,QAAAmB,aAAA,YAAAG,qBAEA,YADA,KAAAxC,SAAAkB,QAAA,WAIA,IAAAqH,EAAA,GACA,KAAA1F,YAAA0E,QAAA,CAAAzE,EAAAC,KACAD,EAAAG,MAAAsE,QAAA,CAAAnI,EAAA8D,KACAhD,QAAAmF,IAAAjG,GACAmJ,EAAAT,KAAA,CACArM,KAAA2D,EAAA3D,KACA+M,WAAApJ,EAAA4H,UACAU,OAAAtI,EAAAtC,GACA2L,YAAArJ,EAAAkE,SACAvD,KAAA,KAAAgE,gBAAAjH,GACA4G,OAAAZ,EAAAY,QAAA,SAIA,IAAAnF,EAAA,CACAmK,aAAAH,EACAI,WAAA,KAAAnG,qBACAF,aAAA,KAAAA,cAEA,KAAAvC,KACA,CACAxB,KAAAqK,KAAAC,UAAAtK,IAEA,qBACAoH,KAAA7F,IACA,GAAAA,EAAA8F,OACA,KAAA5F,SAAA6F,QAAA,WACA,KAAAP,QAAAwC,KAAA,qBAGA,ICzoB6P,I,UCQzPzG,GAAY,OACd,EACAlG,EACAyC,GACA,EACA,KACA,WACA,MAIF,EAAeyD,E","sources":["webpack://abcdf/./src/components/common/AddressFormDialog.vue","webpack://abcdf/src/components/common/AddressFormDialog.vue","webpack://abcdf/./src/components/common/AddressFormDialog.vue?ef45","webpack://abcdf/./src/components/common/AddressFormDialog.vue?6358","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('el-dialog',{attrs:{\"title\":`${_vm.type === 'add' ? '新增' : '编辑'}收货地址`,\"visible\":_vm.visible,\"width\":\"700px\"},on:{\"close\":_vm.handleClose}},[_c('el-form',{ref:\"addressForm\",attrs:{\"model\":_vm.form,\"rules\":_vm.rules,\"label-width\":\"100px\",\"size\":\"small\"}},[_c('el-form-item',{attrs:{\"label\":\"收货人\",\"prop\":\"username\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写收货人姓名,限制10个字符\",\"maxlength\":\"10\"},model:{value:(_vm.form.username),callback:function ($$v) {_vm.$set(_vm.form, \"username\", $$v)},expression:\"form.username\"}})],1),_c('el-form-item',{attrs:{\"label\":\"所在地区\",\"prop\":\"region\"}},[_c('div',{staticClass:\"region-selector\"},[_c('el-select',{staticClass:\"region-select\",attrs:{\"placeholder\":\"选择省份/直辖市\"},on:{\"change\":_vm.handleProvinceChange},model:{value:(_vm.form.province_id),callback:function ($$v) {_vm.$set(_vm.form, \"province_id\", $$v)},expression:\"form.province_id\"}},_vm._l((_vm.provinces),function(province){return _c('el-option',{key:province.id,attrs:{\"label\":province.name,\"value\":province.id}})}),1),_c('el-select',{staticClass:\"region-select\",attrs:{\"placeholder\":\"选择城市\",\"disabled\":!_vm.form.province_id},on:{\"change\":_vm.handleCityChange},model:{value:(_vm.form.city_id),callback:function ($$v) {_vm.$set(_vm.form, \"city_id\", $$v)},expression:\"form.city_id\"}},_vm._l((_vm.cities),function(city){return _c('el-option',{key:city.id,attrs:{\"label\":city.name,\"value\":city.id}})}),1),_c('el-select',{staticClass:\"region-select\",attrs:{\"placeholder\":\"选择县区\",\"disabled\":!_vm.form.city_id},model:{value:(_vm.form.district_id),callback:function ($$v) {_vm.$set(_vm.form, \"district_id\", $$v)},expression:\"form.district_id\"}},_vm._l((_vm.districts),function(district){return _c('el-option',{key:district.id,attrs:{\"label\":district.name,\"value\":district.id}})}),1)],1)]),_c('el-form-item',{attrs:{\"label\":\"详细地址\",\"prop\":\"detail_addr\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写详细地址,限制500个字符\",\"maxlength\":\"500\"},model:{value:(_vm.form.detail_addr),callback:function ($$v) {_vm.$set(_vm.form, \"detail_addr\", $$v)},expression:\"form.detail_addr\"}})],1),_c('el-form-item',{attrs:{\"label\":\"手机号码\",\"prop\":\"mobile\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写手机号码,限制11位数字\",\"maxlength\":\"11\",\"oninput\":\"value=value.replace(/[^\\\\d]/g,'')\"},model:{value:(_vm.form.mobile),callback:function ($$v) {_vm.$set(_vm.form, \"mobile\", $$v)},expression:\"form.mobile\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"size\":\"small\"},on:{\"click\":_vm.handleClose}},[_vm._v(\"取消\")]),_c('el-button',{attrs:{\"size\":\"small\",\"type\":\"primary\"},on:{\"click\":_vm.saveAddress}},[_vm._v(\"保存\")])],1)],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!./AddressFormDialog.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!./AddressFormDialog.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./AddressFormDialog.vue?vue&type=template&id=7d3ebefd&scoped=true\"\nimport script from \"./AddressFormDialog.vue?vue&type=script&lang=js\"\nexport * from \"./AddressFormDialog.vue?vue&type=script&lang=js\"\nimport style0 from \"./AddressFormDialog.vue?vue&type=style&index=0&id=7d3ebefd&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 \"7d3ebefd\",\n null\n \n)\n\nexport default component.exports","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\"},on:{\"click\":function($event){return _vm.openDialog('add', {})}}},[_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:\"edit-btn\",attrs:{\"type\":\"text\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.handleEdit(addr)}}},[_vm._v(\"编辑\")]),_c('el-button',{staticClass:\"delete-btn\",attrs:{\"type\":\"text\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.handleDelete()}}},[_vm._v(\"删除\")])],1)}),0)]),_c('h3',[_vm._v(\"发票信息\")]),_c('div',{staticClass:\"invoice-type-item\"},[_c('span',{staticClass:\"label\"},[_vm._v(\"是否开票:\")]),_c('el-radio-group',{model:{value:(_vm.needInvoice),callback:function ($$v) {_vm.needInvoice=$$v},expression:\"needInvoice\"}},[_c('el-radio',{attrs:{\"label\":true}},[_vm._v(\"是\")]),_c('el-radio',{attrs:{\"label\":false}},[_vm._v(\"否\")])],1)],1),(_vm.needInvoice)?_c('div',{staticClass:\"invoice-type-item\"},[_c('span',{staticClass:\"label\"},[_vm._v(\"发票类型:\")]),_c('el-radio-group',{model:{value:(_vm.invoice_type),callback:function ($$v) {_vm.invoice_type=$$v},expression:\"invoice_type\"}},[_c('el-radio',{attrs:{\"label\":1}},[_vm._v(\"增值税普通发票\")]),_c('el-radio',{attrs:{\"label\":2}},[_vm._v(\"普通电子发票\")])],1)],1):_vm._e(),(_vm.needInvoice)?_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\"},on:{\"click\":_vm.openTitleDialog}},[_vm._v(\"+ 添加\")])],1):_vm._e()]),_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),_c('AddressFormDialog',{attrs:{\"visible\":_vm.dialogVisible,\"type\":_vm.dialogType,\"initial-data\":_vm.dialogData},on:{\"update:visible\":function($event){_vm.dialogVisible = $event},\"save\":_vm.handleSaveAddress}}),_c('el-dialog',{attrs:{\"title\":\"新增发票抬头\",\"visible\":_vm.invoiceTitleDialogVisible,\"width\":\"500px\",\"before-close\":_vm.handleTitleDialogClose},on:{\"update:visible\":function($event){_vm.invoiceTitleDialogVisible=$event}}},[_c('el-form',{ref:\"titleForm\",staticClass:\"invoice-title-form\",attrs:{\"model\":_vm.titleForm,\"rules\":_vm.titleRules,\"label-width\":\"120px\"}},[_c('el-form-item',{attrs:{\"label\":\"发票抬头\",\"prop\":\"name\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入发票抬头\",\"maxlength\":\"100\"},model:{value:(_vm.titleForm.invoice_head),callback:function ($$v) {_vm.$set(_vm.titleForm, \"invoice_head\", $$v)},expression:\"titleForm.invoice_head\"}})],1),_c('el-form-item',{attrs:{\"label\":\"纳税人识别号\",\"prop\":\"taxpayerId\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入纳税人识别号\",\"maxlength\":\"20\"},model:{value:(_vm.titleForm.tax_number),callback:function ($$v) {_vm.$set(_vm.titleForm, \"tax_number\", $$v)},expression:\"titleForm.tax_number\"}})],1),_c('el-form-item',{attrs:{\"label\":\"开户银行\",\"prop\":\"bankName\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入开户银行\",\"maxlength\":\"100\"},model:{value:(_vm.titleForm.opening_bank),callback:function ($$v) {_vm.$set(_vm.titleForm, \"opening_bank\", $$v)},expression:\"titleForm.opening_bank\"}})],1),_c('el-form-item',{attrs:{\"label\":\"银行账号\",\"prop\":\"bankAccount\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入银行账号\",\"maxlength\":\"30\"},model:{value:(_vm.titleForm.bank_account),callback:function ($$v) {_vm.$set(_vm.titleForm, \"bank_account\", $$v)},expression:\"titleForm.bank_account\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.handleTitleDialogClose}},[_vm._v(\"取消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.saveInvoiceTitle}},[_vm._v(\"确定\")])],1)],1)],1)\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=3e695a3d&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=3e695a3d&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 \"3e695a3d\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","attrs","type","visible","on","handleClose","ref","form","rules","model","value","username","callback","$$v","$set","expression","staticClass","handleProvinceChange","province_id","_l","provinces","province","key","id","name","handleCityChange","city_id","cities","city","district_id","districts","district","detail_addr","mobile","slot","_v","saveAddress","staticRenderFns","props","Boolean","default","String","required","validator","val","includes","initialData","Object","data","validateMobile","rule","test","Error","validateRegion","region","message","trigger","max","regionData","computed","filter","item","level","pid","watch","initForm","handler","deep","mounted","getRegionData","methods","res","post","$message","error","console","$nextTick","$refs","addressForm","resetFields","echoRegionSelection","regionText","regions","split","length","find","p","c","d","validate","valid","warning","formData","$emit","component","$event","openDialog","addresses","addr","index","class","selected","selectedAddressIndex","selectAddress","_s","address","phone","stopPropagation","handleEdit","handleDelete","needInvoice","invoice_type","_e","selectedInvoiceTitle","invoiceTitles","title","openTitleDialog","_m","orderGroups","group","groupIndex","supplier","items","itemIndex","image","spec","price","quantity","freight","deliveryType","subtotal","remark","totalGoodsCount","totalGoodsAmount","totalFreight","totalPayAmount","selectedAddress","submitOrder","dialogVisible","dialogType","dialogData","handleSaveAddress","invoiceTitleDialogVisible","handleTitleDialogClose","titleForm","titleRules","invoice_head","tax_number","opening_bank","bank_account","saveInvoiceTitle","components","AddressFormDialog","selectedTradeType","pattern","mapGetters","getOrderData","initOrderData","log","$router","go","getAddress","getInvoiceList","mapMutations","then","code","success","offset","limit","row","tel","$confirm","confirmButtonText","cancelButtonText","catch","info","from","product","supplier_name","formatItems","entries","groups","map","calculateTotal","sku","productId","headimg","sku_name","toFixed","parseFloat","getPost","freightPromises","forEach","params","consignee_id","sku_id","num","promise","err","push","Promise","all","calculateTotalFreight","total","totalCount","totalAmount","is_default","contactType","goods","product_id","product_num","product_list","invoice_id","JSON","stringify"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/406.069a7943.js b/dist/js/406.069a7943.js deleted file mode 100644 index dea60e8..0000000 --- a/dist/js/406.069a7943.js +++ /dev/null @@ -1,2 +0,0 @@ -"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 deleted file mode 100644 index 0e54086..0000000 --- a/dist/js/406.069a7943.js.map +++ /dev/null @@ -1 +0,0 @@ -{"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,CAACL,EAAG,eAAe,CAACI,MAAM,CAAC,MAAQ,QAAQ,CAACJ,EAAG,WAAW,CAACI,MAAM,CAAC,YAAc,WAAWE,MAAM,CAACC,MAAOT,EAAIO,WAAWG,QAASC,SAAS,SAAUC,GAAMZ,EAAIa,KAAKb,EAAIO,WAA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CACAC,QAAA,UACAC,KAAA,QAEA,EAGAhD,KAAAA,GACA,KAAAf,WAAA,CACAmC,UAAA,GACAhC,QAAA,GACAK,WAAA,GACA4B,aAAA,GACAC,YAAA,IAEA,KAAAH,UAAA,MACA,KAAAR,YAAA,CACA,EAGAG,gBAAAA,CAAAmC,GACA,KAAArC,SAAAqC,CACA,EAGAlC,mBAAAA,CAAAkC,GACA,KAAAtC,YAAAsC,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,CACAjD,KAAA,eAEA,KC1ToQ,I,UCQhQkD,GAAY,OACd,EACA1F,EACAuC,GACA,EACA,KACA,WACA,MAIF,EAAemD,E","sources":["webpack://abcdf/./src/views/User/ContractList.vue","webpack://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/441.1691e640.js b/dist/js/441.182fe637.js similarity index 98% rename from dist/js/441.1691e640.js rename to dist/js/441.182fe637.js index 9be39cf..46609b2 100644 --- a/dist/js/441.1691e640.js +++ b/dist/js/441.182fe637.js @@ -1,2 +1,2 @@ "use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[441],{441: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({},"/api/uservice/user/getMyInfo").then(e=>{this.user=e.data})},handleAvatarChange(e){this.util.imgToBase64(e.raw).then(e=>{console.log(e),this.post({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({...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,"441d4440",null),u=n.exports}}]); -//# sourceMappingURL=441.1691e640.js.map \ No newline at end of file +//# sourceMappingURL=441.182fe637.js.map \ No newline at end of file diff --git a/dist/js/441.1691e640.js.map b/dist/js/441.182fe637.js.map similarity index 99% rename from dist/js/441.1691e640.js.map rename to dist/js/441.182fe637.js.map index 9e29130..91ee0f9 100644 --- a/dist/js/441.1691e640.js.map +++ b/dist/js/441.182fe637.js.map @@ -1 +1 @@ -{"version":3,"file":"js/441.1691e640.js","mappings":"qJAAA,IAAIA,E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,GACAN,OAAA,KACAC,SAAA,MAGA,EACAM,OAAAA,GACA,KAAAC,aACA,EACAC,QAAA,CACAD,WAAAA,GAEA,KAAAE,KAAA,mCAAAC,KAAAC,IACA,KAAA3B,KAAA2B,EAAAP,MAEA,EAEAnB,kBAAAA,CAAA2B,GAGA,KAAAC,KAAAC,YAAAF,EAAAG,KAAAL,KAAAM,IACAC,QAAAC,IAAAF,GACA,KAAAP,KAAA,CACAU,WAAAH,GACA,qCAAAN,KAAAC,IACA,KAAA3B,KAAAE,OAAAyB,EAAAP,KAAAgB,OAIA,EACAtB,MAAAA,GACA,MAAAuB,EAAAC,SAAAC,cAAA,SACAF,EAAA/B,MAAA,KAAAN,KAAAqB,GACAiB,SAAAE,KAAAC,YAAAJ,GACAA,EAAAK,SACAJ,SAAAK,YAAA,QACAL,SAAAE,KAAAI,YAAAP,GACA,KAAAQ,SAAA,CACAzC,QAAA,UACA0C,KAAA,WAEA,EACA7B,QAAAA,GACA,KAAA8B,MAAAC,SAAAC,SAAAC,IACAA,GACA,KAAAzB,KAAA,SAAAzB,MAAA,8BAAA0B,KAAAC,IACA,GAAAA,EAAAwB,MACA,KAAAN,SAAA,CAAAzC,QAAA,OAAA0C,KAAA,eAKA,IC7GgQ,I,UCQ5PM,GAAY,OACd,EACA/D,EACA6B,GACA,EACA,KACA,WACA,MAIF,EAAekC,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=441d4440&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=441d4440&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 \"441d4440\",\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","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 +{"version":3,"file":"js/441.182fe637.js","mappings":"qJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC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ACAM,OAAAA,GACA,KAAAC,aACA,EACAC,QAAA,CACAD,WAAAA,GAEA,KAAAE,KAAA,mCAAAC,KAAAC,IACA,KAAA3B,KAAA2B,EAAAP,MAEA,EAEAnB,kBAAAA,CAAA2B,GAGA,KAAAC,KAAAC,YAAAF,EAAAG,KAAAL,KAAAM,IACAC,QAAAC,IAAAF,GACA,KAAAP,KAAA,CACAU,WAAAH,GACA,qCAAAN,KAAAC,IACA,KAAA3B,KAAAE,OAAAyB,EAAAP,KAAAgB,OAIA,EACAtB,MAAAA,GACA,MAAAuB,EAAAC,SAAAC,cAAA,SACAF,EAAA/B,MAAA,KAAAN,KAAAqB,GACAiB,SAAAE,KAAAC,YAAAJ,GACAA,EAAAK,SACAJ,SAAAK,YAAA,QACAL,SAAAE,KAAAI,YAAAP,GACA,KAAAQ,SAAA,CACAzC,QAAA,UACA0C,KAAA,WAEA,EACA7B,QAAAA,GACA,KAAA8B,MAAAC,SAAAC,SAAAC,IACAA,GACA,KAAAzB,KAAA,SAAAzB,MAAA,8BAAA0B,KAAAC,IACA,GAAAA,EAAAwB,MACA,KAAAN,SAAA,CAAAzC,QAAA,OAAA0C,KAAA,eAKA,IC7GgQ,I,UCQ5PM,GAAY,OACd,EACA/D,EACA6B,GACA,EACA,KACA,WACA,MAIF,EAAekC,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=441d4440&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=441d4440&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 \"441d4440\",\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","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/558.5f7f14dd.js b/dist/js/558.5f7f14dd.js new file mode 100644 index 0000000..912aaa1 --- /dev/null +++ b/dist/js/558.5f7f14dd.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[558],{5558:function(e,t,s){s.r(t),s.d(t,{default:function(){return d}});var a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"bg"},[t("div",{staticClass:"common-card normal-margin-bottom"},[t("div",{staticClass:"order-step"},[t("el-steps",{staticStyle:{width:"100%"},attrs:{active:e.activeIndex,"align-center":""}},e._l(e.activities,function(s,a){return t("el-step",{key:a,class:[a==e.activeIndexFlag?"is-current":""]},[t("div",{staticClass:"process-title",attrs:{slot:"title"},slot:"title"},[e._v(e._s(s.status))]),t("div",{attrs:{slot:"icon"},slot:"icon"},[a>=e.activeIndexFlag?t("span",[e._v(e._s(a+1))]):t("i",{staticClass:"el-icon-check",staticStyle:{color:"#fff"}})])])}),1)],1)]),e.showNotice?t("div",{staticClass:"notice-bar"},[e._v("拒绝理由:"+e._s(e.user.reason))]):e._e(),t("el-card",{staticStyle:{width:"100%"}},[t("el-form",{ref:"userForm",attrs:{model:e.user,"label-width":"150px",size:"small",disabled:!e.canSubmit}},[t("div",{staticClass:"flex-between"},[t("div",{staticClass:"header-title"},[e._v("单位信息")]),e.user&&1==e.user.status?t("el-button",{attrs:{type:"primart",size:"small",disabled:!1},on:{click:e.editUser}},[e._v("编辑")]):e._e()],1),t("el-form-item",{attrs:{label:"营业执照",prop:"business_license",rules:e.selectRequired}},[t("el-upload",{staticClass:"avatar-uploader",attrs:{action:"#","auto-upload":!1,"on-change":e.handleAvatarChange,"show-file-list":!1,disabled:e.isEdit}},[e.user.business_license?t("img",{staticClass:"avatar",attrs:{src:e.user.business_license}}):t("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1),t("div",{staticClass:"grid-container"},[t("el-form-item",{attrs:{label:"公司名称:",prop:"company_name",rules:e.inputRequired}},[t("el-input",{attrs:{placeholder:"请输入",disabled:e.isEdit},model:{value:e.user.company_name,callback:function(t){e.$set(e.user,"company_name",t)},expression:"user.company_name"}})],1),t("el-form-item",{attrs:{label:"统一信用代码:",prop:"standard_translation",rules:e.inputRequired}},[t("el-input",{attrs:{placeholder:"请输入",disabled:e.isEdit},model:{value:e.user.standard_translation,callback:function(t){e.$set(e.user,"standard_translation",t)},expression:"user.standard_translation"}})],1)],1),t("div",{staticClass:"grid-container"},[t("el-form-item",{attrs:{label:"法人代表:",prop:"legal_representative",rules:e.inputRequired}},[t("el-input",{attrs:{placeholder:"请输入",disabled:e.isEdit},model:{value:e.user.legal_representative,callback:function(t){e.$set(e.user,"legal_representative",t)},expression:"user.legal_representative"}})],1),t("div")],1),t("div",{staticClass:"header-title",staticStyle:{"margin-top":"50px"}},[e._v("联系人信息")]),t("div",{staticClass:"grid-container"},[t("el-form-item",{attrs:{label:"联系人名称:",prop:"contact_name",rules:e.inputRequired}},[t("el-input",{attrs:{placeholder:"请输入"},model:{value:e.user.contact_name,callback:function(t){e.$set(e.user,"contact_name",t)},expression:"user.contact_name"}})],1),t("el-form-item",{attrs:{label:"手机号码:",prop:"mobile",rules:e.inputRequired}},[t("el-input",{attrs:{placeholder:"请输入"},model:{value:e.user.mobile,callback:function(t){e.$set(e.user,"mobile",t)},expression:"user.mobile"}})],1)],1),t("div",{staticClass:"grid-container"},[t("el-form-item",{attrs:{label:"邮箱:",prop:"email",rules:e.inputRequired}},[t("el-input",{attrs:{placeholder:"请输入"},model:{value:e.user.email,callback:function(t){e.$set(e.user,"email",t)},expression:"user.email"}})],1),t("el-form-item",{attrs:{label:"固定电话:",prop:"fixed_telephone",rules:e.inputRequired}},[t("el-input",{attrs:{placeholder:"请输入"},model:{value:e.user.fixed_telephone,callback:function(t){e.$set(e.user,"fixed_telephone",t)},expression:"user.fixed_telephone"}})],1)],1),t("div",{staticClass:"grid-container"},[t("el-form-item",{attrs:{label:"公司地址:",prop:"address",rules:e.inputRequired}},[t("el-input",{attrs:{placeholder:"请输入"},model:{value:e.user.address,callback:function(t){e.$set(e.user,"address",t)},expression:"user.address"}})],1)],1),e.canSubmit?t("div",{staticStyle:{display:"flex","justify-content":"center","margin-top":"50px"}},[t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.saveUser}},[e._v("保存")])],1):e._e()],1)],1)],1)},i=[],l={name:"OrderDetail",data(){return{canSubmit:!0,isEdit:!1,showNotice:!1,activities:[{status:"待完善"},{status:"信息审核中"},{status:"审核通过"}],options:[{value:"zhinan",label:"指南",children:[{value:"shejiyuanze",label:"设计原则",children:[{value:"yizhi",label:"一致"}]}]}],activeIndex:0,activeIndexFlag:0,user:{business_license:""},inputRequired:{required:!0,message:"请输入",trigger:"blur"},selectRequired:{required:!0,message:"请选择",trigger:"change"}}},mounted(){this.getEnterprise()},methods:{handleAvatarChange(e){this.util.imgToBase64(e.raw).then(e=>{console.log(e),this.post({img_base64:e},"/api/pbservice/Other/base64Upload").then(e=>{this.user.business_license=e.data.url})})},getEnterprise(){this.post({},"/api/enterprise/index").then(e=>(console.log(e),e.data?0==e.data.status?(this.activeIndex=1,this.activeIndexFlag=1,this.user=e.data,void(this.canSubmit=!1)):1==e.data.status?(this.activeIndex=3,this.activeIndexFlag=3,this.user=e.data,void(this.canSubmit=!1)):void(2==e.data.status&&(this.activeIndex=2,this.activeIndexFlag=2,this.user=e.data,this.canSubmit=!0,this.activities=[{status:"待完善"},{status:"信息审核中"},{status:"审核拒绝,请重新提交"}],e.data.reason&&(this.showNotice=!0))):(this.activeIndex=0,this.activeIndexFlag=0,void(this.canSubmit=!0))))},saveUser(){this.$refs.userForm.validate(e=>{if(e){let e="/api/enterprise/edit";this.isEdit||(e="/api/enterprise/create",delete this.user.id,delete this.user.status,delete this.user.reason),this.post(this.user,e).then(e=>{1!=e.code&&200!=e.code||(this.$message.success(e.msg),this.getEnterprise())})}})},editUser(){this.canSubmit=!0,this.isEdit=!0}}},r=l,n=s(1656),u=(0,n.A)(r,a,i,!1,null,"74926859",null),d=u.exports}}]); +//# sourceMappingURL=558.5f7f14dd.js.map \ No newline at end of file diff --git a/dist/js/558.5f7f14dd.js.map b/dist/js/558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C,EAAA,gCACA,KAAAvD,KAAAwD,UACA,KAAAxD,KAAAF,cACA,KAAAE,KAAAC,QAEA,KAAA8C,KAAA,KAAA/C,KAAAuD,GAAAZ,KAAAM,IACA,GAAAA,EAAAQ,MAAA,KAAAR,EAAAQ,OACA,KAAAC,SAAAC,QAAAV,EAAAW,KACA,KAAAvB,kBAGA,GAEA,EAEA/B,QAAAA,GACA,KAAAF,WAAA,EACA,KAAAK,QAAA,CACA,ICzMoQ,I,UCQhQoD,GAAY,OACd,EACAlF,EACAgD,GACA,EACA,KACA,WACA,MAIF,EAAekC,E","sources":["webpack://abcdf/./src/views/User/PurchaserAdd.vue","webpack://abcdf/src/views/User/PurchaserAdd.vue","webpack://abcdf/./src/views/User/PurchaserAdd.vue?4111","webpack://abcdf/./src/views/User/PurchaserAdd.vue?647c"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg\"},[_c('div',{staticClass:\"common-card normal-margin-bottom\"},[_c('div',{staticClass:\"order-step\"},[_c('el-steps',{staticStyle:{\"width\":\"100%\"},attrs:{\"active\":_vm.activeIndex,\"align-center\":\"\"}},_vm._l((_vm.activities),function(item,i){return _c('el-step',{key:i,class:[i==_vm.activeIndexFlag?'is-current':'']},[_c('div',{staticClass:\"process-title\",attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(_vm._s(item.status))]),_c('div',{attrs:{\"slot\":\"icon\"},slot:\"icon\"},[(i>=_vm.activeIndexFlag)?_c('span',[_vm._v(_vm._s(i+1))]):_c('i',{staticClass:\"el-icon-check\",staticStyle:{\"color\":\"#fff\"}})])])}),1)],1)]),(_vm.showNotice)?_c('div',{staticClass:\"notice-bar\"},[_vm._v(\"拒绝理由:\"+_vm._s(_vm.user.reason))]):_vm._e(),_c('el-card',{staticStyle:{\"width\":\"100%\"}},[_c('el-form',{ref:\"userForm\",attrs:{\"model\":_vm.user,\"label-width\":\"150px\",\"size\":\"small\",\"disabled\":!_vm.canSubmit}},[_c('div',{staticClass:\"flex-between\"},[_c('div',{staticClass:\"header-title\"},[_vm._v(\"单位信息\")]),(_vm.user && _vm.user.status==1)?_c('el-button',{attrs:{\"type\":\"primart\",\"size\":\"small\",\"disabled\":false},on:{\"click\":_vm.editUser}},[_vm._v(\"编辑\")]):_vm._e()],1),_c('el-form-item',{attrs:{\"label\":\"营业执照\",\"prop\":\"business_license\",\"rules\":_vm.selectRequired}},[_c('el-upload',{staticClass:\"avatar-uploader\",attrs:{\"action\":\"#\",\"auto-upload\":false,\"on-change\":_vm.handleAvatarChange,\"show-file-list\":false,\"disabled\":_vm.isEdit}},[(_vm.user.business_license)?_c('img',{staticClass:\"avatar\",attrs:{\"src\":_vm.user.business_license}}):_c('i',{staticClass:\"el-icon-plus avatar-uploader-icon\"})])],1),_c('div',{staticClass:\"grid-container\"},[_c('el-form-item',{attrs:{\"label\":\"公司名称:\",\"prop\":\"company_name\",\"rules\":_vm.inputRequired}},[_c('el-input',{attrs:{\"placeholder\":\"请输入\",\"disabled\":_vm.isEdit},model:{value:(_vm.user.company_name),callback:function ($$v) {_vm.$set(_vm.user, \"company_name\", $$v)},expression:\"user.company_name\"}})],1),_c('el-form-item',{attrs:{\"label\":\"统一信用代码:\",\"prop\":\"standard_translation\",\"rules\":_vm.inputRequired}},[_c('el-input',{attrs:{\"placeholder\":\"请输入\",\"disabled\":_vm.isEdit},model:{value:(_vm.user.standard_translation),callback:function ($$v) {_vm.$set(_vm.user, \"standard_translation\", $$v)},expression:\"user.standard_translation\"}})],1)],1),_c('div',{staticClass:\"grid-container\"},[_c('el-form-item',{attrs:{\"label\":\"法人代表:\",\"prop\":\"legal_representative\",\"rules\":_vm.inputRequired}},[_c('el-input',{attrs:{\"placeholder\":\"请输入\",\"disabled\":_vm.isEdit},model:{value:(_vm.user.legal_representative),callback:function ($$v) {_vm.$set(_vm.user, \"legal_representative\", $$v)},expression:\"user.legal_representative\"}})],1),_c('div')],1),_c('div',{staticClass:\"header-title\",staticStyle:{\"margin-top\":\"50px\"}},[_vm._v(\"联系人信息\")]),_c('div',{staticClass:\"grid-container\"},[_c('el-form-item',{attrs:{\"label\":\"联系人名称:\",\"prop\":\"contact_name\",\"rules\":_vm.inputRequired}},[_c('el-input',{attrs:{\"placeholder\":\"请输入\"},model:{value:(_vm.user.contact_name),callback:function ($$v) {_vm.$set(_vm.user, \"contact_name\", $$v)},expression:\"user.contact_name\"}})],1),_c('el-form-item',{attrs:{\"label\":\"手机号码:\",\"prop\":\"mobile\",\"rules\":_vm.inputRequired}},[_c('el-input',{attrs:{\"placeholder\":\"请输入\"},model:{value:(_vm.user.mobile),callback:function ($$v) {_vm.$set(_vm.user, \"mobile\", $$v)},expression:\"user.mobile\"}})],1)],1),_c('div',{staticClass:\"grid-container\"},[_c('el-form-item',{attrs:{\"label\":\"邮箱:\",\"prop\":\"email\",\"rules\":_vm.inputRequired}},[_c('el-input',{attrs:{\"placeholder\":\"请输入\"},model:{value:(_vm.user.email),callback:function ($$v) {_vm.$set(_vm.user, \"email\", $$v)},expression:\"user.email\"}})],1),_c('el-form-item',{attrs:{\"label\":\"固定电话:\",\"prop\":\"fixed_telephone\",\"rules\":_vm.inputRequired}},[_c('el-input',{attrs:{\"placeholder\":\"请输入\"},model:{value:(_vm.user.fixed_telephone),callback:function ($$v) {_vm.$set(_vm.user, \"fixed_telephone\", $$v)},expression:\"user.fixed_telephone\"}})],1)],1),_c('div',{staticClass:\"grid-container\"},[_c('el-form-item',{attrs:{\"label\":\"公司地址:\",\"prop\":\"address\",\"rules\":_vm.inputRequired}},[_c('el-input',{attrs:{\"placeholder\":\"请输入\"},model:{value:(_vm.user.address),callback:function ($$v) {_vm.$set(_vm.user, \"address\", $$v)},expression:\"user.address\"}})],1)],1),(_vm.canSubmit)?_c('div',{staticStyle:{\"display\":\"flex\",\"justify-content\":\"center\",\"margin-top\":\"50px\"}},[_c('el-button',{attrs:{\"size\":\"small\",\"type\":\"primary\"},on:{\"click\":_vm.saveUser}},[_vm._v(\"保存\")])],1):_vm._e()],1)],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!./PurchaserAdd.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!./PurchaserAdd.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./PurchaserAdd.vue?vue&type=template&id=74926859&scoped=true\"\nimport script from \"./PurchaserAdd.vue?vue&type=script&lang=js\"\nexport * from \"./PurchaserAdd.vue?vue&type=script&lang=js\"\nimport style0 from \"./PurchaserAdd.vue?vue&type=style&index=0&id=74926859&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 \"74926859\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","staticStyle","attrs","activeIndex","_l","activities","item","i","key","class","activeIndexFlag","slot","_v","_s","status","showNotice","user","reason","_e","ref","canSubmit","on","editUser","selectRequired","handleAvatarChange","isEdit","business_license","inputRequired","model","value","company_name","callback","$$v","$set","expression","standard_translation","legal_representative","contact_name","mobile","email","fixed_telephone","address","saveUser","staticRenderFns","name","data","options","label","children","required","message","trigger","mounted","getEnterprise","methods","file","util","imgToBase64","raw","then","base64","console","log","post","img_base64","res","url","$refs","userForm","validate","valid","api","id","code","$message","success","msg","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/573.e3b0bcf8.js b/dist/js/573.e3b0bcf8.js deleted file mode 100644 index 6c30a7e..0000000 --- a/dist/js/573.e3b0bcf8.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[573],{2573:function(e,t,i){i.r(t),i.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:"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.order_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)},a=[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-1)*this.filterForm.limit},"/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({path:"/OrderDetail?id="+e})}}}),l=s,o=i(1656),n=(0,o.A)(l,r,a,!1,null,"3b8de450",null),d=n.exports}}]); -//# sourceMappingURL=573.e3b0bcf8.js.map \ No newline at end of file diff --git a/dist/js/573.e3b0bcf8.js.map b/dist/js/573.e3b0bcf8.js.map deleted file mode 100644 index e9751f4..0000000 --- a/dist/js/573.e3b0bcf8.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/573.e3b0bcf8.js","mappings":"sJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG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AAA,CACA,EAGAf,gBAAAA,CAAAe,GACA,MAAAkC,EAAA,CACAL,eAAA,UACAC,gBAAA,OACAC,WAAA,UACAC,UAAA,UACAC,UAAA,UAEA,OAAAC,EAAAlC,IAAA,SACA,EAGAC,QAAAA,CAAAkC,GACA,KAAAC,SAAA,CACAC,QAAA,MAAAF,QACAG,KAAA,QAEA,EAGAnC,cAAAA,CAAAgC,GACA,KAAAC,SAAA,CACAC,QAAA,SAAAF,OACAG,KAAA,WAEA,EAGAlC,cAAAA,CAAA+B,GACA,KAAAC,SAAA,CACAC,QAAA,QAAAF,OACAG,KAAA,QAEA,EAGAhC,UAAAA,CAAA6B,GACA,KAAAC,SAAA,CACAC,QAAA,SAAAF,IACAG,KAAA,QAEA,EAGAvC,eAAAA,CAAAoC,GACA,KAAAI,QAAAC,KAAA,CACAC,KAAA,mBAAAN,GAEA,KCrViQ,I,UCQ7PO,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.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=3b8de450&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=3b8de450&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 \"3b8de450\",\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","then","res","list","val","getStatusText","statusMap","pendingPayment","pendingDelivery","delivering","completed","cancelled","typeMap","orderId","$message","message","type","$router","push","path","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/610.3d8586f2.js b/dist/js/610.3d8586f2.js new file mode 100644 index 0000000..86dc9c2 --- /dev/null +++ b/dist/js/610.3d8586f2.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[610],{6610:function(t,e,i){i.r(e),i.d(e,{default:function(){return c}});var s=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),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("订单状态: "+t._s(t.info.state_text))])]),"WAIT_COMMENT"!=t.info.state?e("el-button",{attrs:{type:"primary",size:"medium"}},[t._v("在线付款")]):t._e()],1),e("div",{staticClass:"order-step"},[e("el-steps",{staticStyle:{width:"100%"},attrs:{active:t.activities.length,"align-center":""}},t._l(t.activities,function(i,s){return e("el-step",{key:s},[e("div",{staticClass:"process-title",attrs:{slot:"description"},slot:"description"},[t._v(" "+t._s(i.remark)+" ")]),e("div",{attrs:{slot:"icon"},slot:"icon"},[s>=2?e("span",[t._v(t._s(s+1))]):e("i",{staticClass:"el-icon-check",staticStyle:{color:"#fff"}})]),e("div",{staticClass:"process-description",attrs:{slot:"description"},slot:"description"},[t._v(" "+t._s(i.create_time)+" ")])])}),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.info.order_id))]),e("el-descriptions-item",{attrs:{label:"订单状态"}},[t._v(t._s(t.info.state_text))]),e("el-descriptions-item",{attrs:{label:"下单时间"}},[t._v(t._s(t.info.create_time))])],1),e("el-descriptions",{attrs:{title:"配送信息",column:1}},[e("el-descriptions-item",{attrs:{label:"收货人"}},[t._v(t._s(t.info.order_product_list[0].consignee_info.name))]),e("el-descriptions-item",{attrs:{label:"地址"}},[t._v(t._s(t.info.order_product_list[0].consignee_info.address))]),e("el-descriptions-item",{attrs:{label:"手机号码"}},[t._v(t._s(t.info.order_product_list[0].consignee_info.tel))])],1),t.info.pay_method_text?e("el-descriptions",{staticStyle:{border:"none"},attrs:{title:"支付信息",column:1}},[e("el-descriptions-item",{attrs:{label:"支付方式"}},[t._v(t._s(t.info.pay_method_text))]),e("el-descriptions-item",{attrs:{label:"支付时间"}},[t._v(t._s(t.info.pay_at))])],1):t._e()],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:i}){return[e("div",{staticStyle:{display:"flex","align-items":"center"}},[e("img",{staticClass:"product-image",attrs:{src:i.product_img,alt:i.product_title}}),e("div",[t._v(t._s(i.product_title))])])]}}])}),e("el-table-column",{attrs:{prop:"sku_name",label:"规格",align:"center"}}),e("el-table-column",{attrs:{prop:"product_price",label:"单价(元)",align:"center",width:"200"},scopedSlots:t._u([{key:"default",fn:function({row:i}){return[e("div",[t._v(t._s(i.product_price/100))])]}}])}),e("el-table-column",{attrs:{prop:"product_num",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:i}){return[e("div",{staticStyle:{color:"#ff1111"}},[t._v("¥"+t._s(i.paid_money/100))])]}}])})],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.info.total_money/100))]),e("el-descriptions-item",{attrs:{label:"运费"}},[t._v("¥"+t._s(t.info.total_post_fee/100))]),e("el-descriptions-item",{attrs:{label:"实付款"}},[e("span",{staticStyle:{"font-size":"16px","font-weight":"bold",color:"#ff1111"}},[t._v("¥"+t._s(t.info.paid_money/100))])])],1)],1)],1)},r=[],o=(i(8111),i(7588),{name:"OrderDetail",data(){return{info:{},activities:[],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:[],totalPrice:{productTotal:500,shippingFee:0,actualPayment:500}}},computed:{},mounted(){this.getDetail()},methods:{getDetail(){this.post({order_id:this.$route.query.id},"/api/order/query").then(t=>{this.info=t.data,this.productList=this.info.order_product_list,this.info.order_product_list.forEach(t=>{"post"===t.product_model&&t.consignee_info&&(t.consignee_info=JSON.parse(t.consignee_info))})}),this.post({order_id:this.$route.query.id},"/api/order/refund_detail").then(t=>{this.activities=t.data.list})}}}),a=o,l=i(1656),n=(0,l.A)(a,s,r,!1,null,"0117dbdd",null),c=n.exports}}]); +//# sourceMappingURL=610.3d8586f2.js.map \ No newline at end of file diff --git a/dist/js/610.3d8586f2.js.map b/dist/js/610.3d8586f2.js.map new file mode 100644 index 0000000..d99e461 --- /dev/null +++ b/dist/js/610.3d8586f2.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/610.3d8586f2.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,CAACH,EAAG,qBAAqB,CAACG,MAAM,CAAC,GAAK,CAAEC,KAAM,sBAAuB,CAACN,EAAIO,GAAG,UAAUL,EAAG,qBAAqB,CAACG,MAAM,CAAC,GAAK,CAAEC,KAAM,qBAAsB,CAACN,EAAIO,GAAG,UAAUL,EAAG,qBAAqB,CAACF,EAAIO,GAAG,YAAY,IAAI,GAAGL,EAAG,MAAM,CAACE,YAAY,mCAAmCI,YAAY,CAAC,QAAU,SAAS,QAAU,SAAS,CAACN,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,MAAM,CAACE,YAAY,YAAY,CAACJ,EAAIO,GAAG,6BAA6BL,EAAG,YAAY,CAACM,YAAY,CAAC,MAAQ,QAAQH,MAAM,CAAC,KAAO,OAAO,KAAO,4BAA4B,GAAGH,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,IAAI,CAACE,YAAY,eAAeI,YAAY,CAAC,MAAQ,UAAU,YAAY,UAAUN,EAAG,OAAO,CAACM,YAAY,CAAC,OAAS,OAAO,cAAc,OAAO,eAAe,QAAQ,CAACR,EAAIO,GAAG,SAASP,EAAIS,GAAGT,EAAIU,KAAKC,iBAAoC,gBAAlBX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AO,cAAc,OAAO,MAAQ,YAAY,CAACR,EAAIO,GAAG,IAAIP,EAAIS,GAAGT,EAAIU,KAAK6B,WAAa,WAAW,IAAI,IAAI,EACn+I,EACIG,EAAkB,GC+KtB,G,gBAAA,CACAhB,KAAA,cACAiB,IAAAA,GACA,OACAjC,KAAA,GACAI,WAAA,GACA8B,UAAA,CACAC,YAAA,iBACAC,OAAA,MACAC,UAAA,uBAEAC,aAAA,CACAC,SAAA,KACAtB,QAAA,mBACAuB,MAAA,cACAC,eAAA,KACAC,qBAAA,cAEAC,YAAA,CACAC,cAAA,MACAC,cAAA,MACAC,YAAA,uBAEAzB,YAAA,GACA0B,WAAA,CACAC,aAAA,IACAC,YAAA,EACAC,cAAA,KAGA,EACAC,SAAA,GACAC,OAAAA,GACA,KAAAC,WACA,EACAC,QAAA,CACAD,SAAAA,GAEA,KAAAE,KACA,CACA1C,SAAA,KAAA2C,OAAAC,MAAAC,IAEA,oBACAC,KAAAC,IACA,KAAA5D,KAAA4D,EAAA3B,KACA,KAAAZ,YAAA,KAAArB,KAAAc,mBACA,KAAAd,KAAAc,mBAAA+C,QAAAtD,IACA,SAAAA,EAAAuD,eAAAvD,EAAAQ,iBACAR,EAAAQ,eAAAgD,KAAAC,MAAAzD,EAAAQ,qBAKA,KAAAwC,KACA,CACA1C,SAAA,KAAA2C,OAAAC,MAAAC,IAEA,4BACAC,KAAAC,IACA,KAAAxD,WAAAwD,EAAA3B,KAAAgC,MAEA,KC9OmQ,I,UCQ/PC,GAAY,OACd,EACA7E,EACA2C,GACA,EACA,KACA,WACA,MAIF,EAAekC,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),_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(\"订单状态: \"+_vm._s(_vm.info.state_text))])]),(_vm.info.state != 'WAIT_COMMENT')?_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"medium\"}},[_vm._v(\"在线付款\")]):_vm._e()],1),_c('div',{staticClass:\"order-step\"},[_c('el-steps',{staticStyle:{\"width\":\"100%\"},attrs:{\"active\":_vm.activities.length,\"align-center\":\"\"}},_vm._l((_vm.activities),function(item,i){return _c('el-step',{key:i},[_c('div',{staticClass:\"process-title\",attrs:{\"slot\":\"description\"},slot:\"description\"},[_vm._v(\" \"+_vm._s(item.remark)+\" \")]),_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.create_time)+\" \")])])}),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.info.order_id))]),_c('el-descriptions-item',{attrs:{\"label\":\"订单状态\"}},[_vm._v(_vm._s(_vm.info.state_text))]),_c('el-descriptions-item',{attrs:{\"label\":\"下单时间\"}},[_vm._v(_vm._s(_vm.info.create_time))])],1),_c('el-descriptions',{attrs:{\"title\":\"配送信息\",\"column\":1}},[_c('el-descriptions-item',{attrs:{\"label\":\"收货人\"}},[_vm._v(_vm._s(_vm.info.order_product_list[0].consignee_info.name))]),_c('el-descriptions-item',{attrs:{\"label\":\"地址\"}},[_vm._v(_vm._s(_vm.info.order_product_list[0].consignee_info.address))]),_c('el-descriptions-item',{attrs:{\"label\":\"手机号码\"}},[_vm._v(_vm._s(_vm.info.order_product_list[0].consignee_info.tel))])],1),(_vm.info.pay_method_text)?_c('el-descriptions',{staticStyle:{\"border\":\"none\"},attrs:{\"title\":\"支付信息\",\"column\":1}},[_c('el-descriptions-item',{attrs:{\"label\":\"支付方式\"}},[_vm._v(_vm._s(_vm.info.pay_method_text))]),_c('el-descriptions-item',{attrs:{\"label\":\"支付时间\"}},[_vm._v(_vm._s(_vm.info.pay_at))])],1):_vm._e()],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.product_img,\"alt\":row.product_title}}),_c('div',[_vm._v(_vm._s(row.product_title))])])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"sku_name\",\"label\":\"规格\",\"align\":\"center\"}}),_c('el-table-column',{attrs:{\"prop\":\"product_price\",\"label\":\"单价(元)\",\"align\":\"center\",\"width\":\"200\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ row }){return [_c('div',[_vm._v(_vm._s(row.product_price / 100))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"product_num\",\"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.paid_money / 100))])]}}])})],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.info.total_money / 100))]),_c('el-descriptions-item',{attrs:{\"label\":\"运费\"}},[_vm._v(\"¥\"+_vm._s(_vm.info.total_post_fee / 100))]),_c('el-descriptions-item',{attrs:{\"label\":\"实付款\"}},[_c('span',{staticStyle:{\"font-size\":\"16px\",\"font-weight\":\"bold\",\"color\":\"#ff1111\"}},[_vm._v(\"¥\"+_vm._s(_vm.info.paid_money / 100))])])],1)],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!./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=0117dbdd&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=0117dbdd&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 \"0117dbdd\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","attrs","path","_v","staticStyle","_s","info","state_text","state","_e","activities","length","_l","item","i","key","slot","remark","create_time","order_id","order_product_list","consignee_info","name","address","tel","pay_method_text","pay_at","productList","scopedSlots","_u","fn","row","product_img","product_title","product_price","paid_money","total_money","total_post_fee","staticRenderFns","data","orderInfo","orderNumber","status","orderTime","deliveryInfo","receiver","phone","deliveryMethod","expectedDeliveryTime","paymentInfo","paymentMethod","paymentStatus","paymentTime","totalPrice","productTotal","shippingFee","actualPayment","computed","mounted","getDetail","methods","post","$route","query","id","then","res","forEach","product_model","JSON","parse","list","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/757.de7809f4.js b/dist/js/757.de7809f4.js new file mode 100644 index 0000000..97a2635 --- /dev/null +++ b/dist/js/757.de7809f4.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[757],{2757: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("div",{staticClass:"left-nav"},[s("ul",{staticClass:"nav-list"},t._l(t.tagList,function(i){return s("router-link",{key:i.id,staticClass:"nav-item",attrs:{to:"/productList?id="+i.id,tag:"li"}},[s("img",{attrs:{src:t.util.showImg(i.image),alt:""}}),t._v(t._s(i.name)+" ")])}),1)]),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"},[s("router-link",{staticClass:"icon-item",attrs:{to:"/User/UserCenter"}},[s("i",{staticClass:"icon el-icon-user"}),s("span",[t._v("个人中心")])]),s("router-link",{staticClass:"icon-item",attrs:{to:"/User/OrderList"}},[s("i",{staticClass:"icon el-icon-goods"}),s("span",[t._v("我的订单")])])],1):t._e()])])}),c=[],o={name:"HomeLayout",props:{topBanner:{type:Array,default:()=>[]},tagList:{type:Array,default:()=>[]}},data(){return{}}},n=o,l=i(1656),d=(0,l.A)(n,r,c,!1,null,"252195f4",null),u=d.exports,p=i(2988),g={components:{HomeLayout:u,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()},methods:{getTopBanner(){this.post({type_id:6,position:0},"/api/adv/getAdv").then(t=>{t&&(this.topBanner=t.data)})},getTags(){this.post({pid:683},"/api/product/tag_list").then(t=>{this.tagList=t.data,this.tagList[0].id=662})},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,"c53f5724",null),h=v.exports},2988:function(t,s,i){i.d(s,{A:function(){return l}});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("router-link",{key:i.id,staticClass:"product-card",attrs:{to:`/Detail/${i.id}`}},[s("div",{staticClass:"product-img"},[s("img",{directives:[{name:"lazy",rawName:"v-lazy",value:i.headimg,expression:"product.headimg"}],staticClass:"product-pic",attrs:{alt:i.title}})]),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"}},[s("el-icon",{attrs:{name:"el-icon-shopping-cart"}}),t._v(" 立即购买 ")],1)],1)])])}),1),0===t.products.length?s("div",{staticClass:"no-products"},[s("el-empty",{attrs:{description:"暂无相关商品"}})],1):t._e()])},e=[],r={name:"ProductList",props:{products:{type:Array,default:()=>[]}},methods:{}},c=r,o=i(1656),n=(0,o.A)(c,a,e,!1,null,"0968dad7",null),l=n.exports}}]); +//# sourceMappingURL=757.de7809f4.js.map \ No newline at end of file diff --git a/dist/js/757.de7809f4.js.map b/dist/js/757.de7809f4.js.map new file mode 100644 index 0000000..97d0466 --- /dev/null +++ b/dist/js/757.de7809f4.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/757.de7809f4.js","mappings":"sJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,MAAM,CAACF,EAAG,aAAa,CAACG,MAAM,CAAC,UAAYL,EAAIM,UAAU,QAAUN,EAAIO,WAAWL,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,KAAK,CAACF,EAAIQ,GAAG,UAAUN,EAAG,cAAc,CAACG,MAAM,CAAC,SAAWL,EAAIS,WAAW,GAAGC,SAAS,GAAGR,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,KAAK,CAACF,EAAIQ,GAAG,UAAUN,EAAG,cAAc,CAACG,MAAM,CAAC,SAAWL,EAAIS,WAAW,GAAGC,SAAS,GAAGR,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,KAAK,CAACF,EAAIQ,GAAG,UAAUN,EAAG,cAAc,CAACG,MAAM,CAAC,SAAWL,EAAIS,WAAW,GAAGC,SAAS,IAAI,EACljB,EACIC,EAAkB,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AAQM,aAAe,QAAQnE,EAAI4B,OAAQiC,EAAQnB,MAAOxC,EAAG,MAAM,CAACE,YAAY,iBAAiB,CAACF,EAAG,OAAO,CAACF,EAAIQ,GAAG,MAAMR,EAAImB,GAAG0C,EAAQO,cAAc,UAAUpE,EAAI4B,OAAO1B,EAAG,KAAK,CAACE,YAAY,gBAAgB,CAACF,EAAG,cAAc,CAACG,MAAM,CAAC,GAAK,WAAWwD,EAAQ9C,OAAO,CAACf,EAAIQ,GAAG,IAAIR,EAAImB,GAAG0C,EAAQvB,OAAO,QAAQ,GAAGpC,EAAG,MAAM,CAACE,YAAY,mBAAmB,CAACF,EAAG,YAAY,CAACmB,YAAY,CAAC,mBAAmB,UAAU,OAAS,QAAQhB,MAAM,CAAC,KAAO,UAAU,KAAO,UAAU,CAACH,EAAG,UAAU,CAACG,MAAM,CAAC,KAAO,2BAA2BL,EAAIQ,GAAG,WAAW,IAAI,MAAM,GAAG,GAA4B,IAAxBR,EAAI4D,SAASS,OAAcnE,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,WAAW,CAACG,MAAM,CAAC,YAAc,aAAa,GAAGL,EAAI4B,MACl7C,EACIjB,EAAkB,GCsDtB,GACAS,KAAA,cACAS,MAAA,CACA+B,SAAA,CACA9B,KAAAC,MACAC,QAAAA,IAAA,KAGAgB,QAAA,IChEmQ,I,UCQ/Pd,GAAY,OACd,EACAnC,EACAY,GACA,EACA,KACA,WACA,MAIF,EAAeuB,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',{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('div',{staticClass:\"left-nav\"},[_c('ul',{staticClass:\"nav-list\"},_vm._l((_vm.tagList),function(item){return _c('router-link',{key:item.id,staticClass:\"nav-item\",attrs:{\"to\":'/productList?id=' + item.id,\"tag\":\"li\"}},[_c('img',{attrs:{\"src\":_vm.util.showImg(item.image),\"alt\":\"\"}}),_vm._v(_vm._s(item.name)+\" \")])}),1)]),_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\"},[_c('router-link',{staticClass:\"icon-item\",attrs:{\"to\":\"/User/UserCenter\"}},[_c('i',{staticClass:\"icon el-icon-user\"}),_c('span',[_vm._v(\"个人中心\")])]),_c('router-link',{staticClass:\"icon-item\",attrs:{\"to\":\"/User/OrderList\"}},[_c('i',{staticClass:\"icon el-icon-goods\"}),_c('span',[_vm._v(\"我的订单\")])])],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!./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=252195f4&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=252195f4&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 \"252195f4\",\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=c53f5724&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=c53f5724&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 \"c53f5724\",\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('router-link',{key:product.id,staticClass:\"product-card\",attrs:{\"to\":`/Detail/${product.id}`}},[_c('div',{staticClass:\"product-img\"},[_c('img',{directives:[{name:\"lazy\",rawName:\"v-lazy\",value:(product.headimg),expression:\"product.headimg\"}],staticClass:\"product-pic\",attrs:{\"alt\":product.title}})]),_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\"}},[_c('el-icon',{attrs:{\"name\":\"el-icon-shopping-cart\"}}),_vm._v(\" 立即购买 \")],1)],1)])])}),1),(_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=0968dad7&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=0968dad7&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 \"0968dad7\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","attrs","topBanner","tagList","_v","prouctList","list","staticRenderFns","_l","item","key","id","util","showImg","image","_s","name","staticStyle","head_img","$store","getters","isUserLogin","getUserInfo","avatar","_e","props","type","Array","default","data","component","components","HomeLayout","ProductList","title","newProducts","price","originalPrice","sales","categoryId","created","getTopBanner","getTags","getProductList","methods","post","type_id","position","then","res","pid","map","i","tag_id","offset","limit","products","product","directives","rawName","value","headimg","expression","market_price","sales_number","length"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/882.62bac42e.js b/dist/js/882.62bac42e.js deleted file mode 100644 index c955456..0000000 --- a/dist/js/882.62bac42e.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[882],{5882:function(t,e,s){s.r(e),s.d(e,{default:function(){return c}});var i=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),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("订单状态: "+t._s(t.info.state_text))])]),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,i){return e("el-step",{key:i},[e("div",{staticClass:"process-title",attrs:{slot:"title"},slot:"title"},[t._v(t._s(s.remark))]),e("div",{attrs:{slot:"icon"},slot:"icon"},[i>=2?e("span",[t._v(t._s(i+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.create_time)+" ")])])}),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)},a=[],r={name:"OrderDetail",data(){return{info:{},activities:[],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:{},mounted(){this.getDetail()},methods:{getDetail(){this.post({order_id:this.$route.query.id},"/api/order/query").then(t=>{this.info=t.data}),this.post({order_id:this.$route.query.id},"/api/order/refund_detail").then(t=>{this.activities=t.data.list})}}},l=r,o=s(1656),n=(0,o.A)(l,i,a,!1,null,"1d95a9f7",null),c=n.exports}}]); -//# sourceMappingURL=882.62bac42e.js.map \ No newline at end of file diff --git a/dist/js/882.62bac42e.js.map b/dist/js/882.62bac42e.js.map deleted file mode 100644 index 9342959..0000000 --- a/dist/js/882.62bac42e.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/882.62bac42e.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,CAACH,EAAG,qBAAqB,CAACG,MAAM,CAAC,GAAK,CAAEC,KAAM,sBAAuB,CAACN,EAAIO,GAAG,UAAUL,EAAG,qBAAqB,CAACG,MAAM,CAAC,GAAK,CAAEC,KAAM,qBAAsB,CAACN,EAAIO,GAAG,UAAUL,EAAG,qBAAqB,CAACF,EAAIO,GAAG,YAAY,IAAI,GAAGL,EAAG,MAAM,CAACE,YAAY,mCAAmCI,YAAY,CAAC,QAAU,SAAS,QAAU,SAAS,CAACN,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,MAAM,CAACE,YAAY,YAAY,CAACJ,EAAIO,GAAG,6BAA6BL,EAAG,YAAY,CAACM,YAAY,CAAC,MAAQ,QAAQH,MAAM,CAAC,KAAO,OAAO,KAAO,4BAA4B,GAAGH,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,IAAI,CAACE,YAAY,eAAeI,YAAY,CAAC,MAAQ,UAAU,YAAY,UAAUN,EAAG,OAAO,CAACM,YAAY,CAAC,OAAS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,OAAO,CAACL,EAAIO,GAAG,IAAIP,EAAIS,GAAGT,EAAI0C,WAAWE,gBAAgB1C,EAAG,uBAAuB,CAACG,MAAM,CAAC,MAAQ,QAAQ,CAACH,EAAG,OAAO,CAACM,YAAY,CAAC,YAAY,OAAO,cAAc,OAAO,MAAQ,YAAY,CAACR,EAAIO,GAAG,IAAIP,EAAIS,GAAGT,EAAI0C,WAAWG,qBAAqB,IAAI,IAAI,EAC5iJ,EACIC,EAAkB,GCgKtB,GACAN,KAAA,cACAO,IAAAA,GACA,OACArC,KAAA,GACAG,WAAA,GACAO,UAAA,CACAC,YAAA,iBACAC,OAAA,MACAC,UAAA,uBAEAC,aAAA,CACAC,SAAA,KACAC,QAAA,mBACAC,MAAA,cACAC,eAAA,KACAC,qBAAA,cAEAC,YAAA,CACAC,cAAA,MACAC,cAAA,MACAC,YAAA,uBAEAC,YAAA,CACA,CACAM,KAAA,MACAQ,KAAA,MACAC,MAAA,IACAC,SAAA,EACAT,SAAA,IACAF,MAAA,0CAEA,CACAC,KAAA,MACAQ,KAAA,MACAC,MAAA,IACAC,SAAA,EACAT,SAAA,IACAF,MAAA,2CAGAG,WAAA,CACAC,aAAA,IACAC,YAAA,EACAC,cAAA,KAGA,EACAM,SAAA,GACAC,OAAAA,GACA,KAAAC,WACA,EACAC,QAAA,CACAD,SAAAA,GAEA,KAAAE,KACA,CACAC,SAAA,KAAAC,OAAAC,MAAAC,IAEA,oBACAC,KAAAC,IACA,KAAAnD,KAAAmD,EAAAd,OAIA,KAAAQ,KACA,CACAC,SAAA,KAAAC,OAAAC,MAAAC,IAEA,4BACAC,KAAAC,IACA,KAAAhD,WAAAgD,EAAAd,KAAAe,MAEA,IC3OmQ,I,UCQ/PC,GAAY,OACd,EACAhE,EACA+C,GACA,EACA,KACA,WACA,MAIF,EAAeiB,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),_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(\"订单状态: \"+_vm._s(_vm.info.state_text))])]),_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.remark))]),_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.create_time)+\" \")])])}),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 = []\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=1d95a9f7&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=1d95a9f7&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 \"1d95a9f7\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","attrs","path","_v","staticStyle","_s","info","state_text","_l","activities","item","i","key","slot","remark","create_time","orderInfo","orderNumber","status","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","mounted","getDetail","methods","post","order_id","$route","query","id","then","res","list","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/896.996819fe.js.map b/dist/js/896.996819fe.js.map deleted file mode 100644 index c43ce0a..0000000 --- a/dist/js/896.996819fe.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/896.996819fe.js","mappings":"yKAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAA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A,KAAAjD,YAAAiD,EACA,KAAAnC,gBAEAoC,OAAAC,SAAA,IACA,EAGA5D,UAAAA,CAAAhB,GACA,KAAA6E,QAAAC,KAAA,WAAA9E,IACA,ICtR6P,I,UCQzP+E,GAAY,OACd,EACAnG,EACAiD,GACA,EACA,KACA,WACA,MAIF,EAAekD,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.id,attrs:{\"label\":cat.name,\"value\":cat.id}})}),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:index,staticClass:\"product-card\",on:{\"click\":function($event){return _vm.goToDetail(product.id)}}},[_c('img',{directives:[{name:\"lazy\",rawName:\"v-lazy\",value:(product.headimg),expression:\"product.headimg\"}],staticClass:\"product-img\",attrs:{\"alt\":product.title,\"fit\":\"cover\"}}),_c('div',{staticClass:\"product-info\"},[_c('div',{staticClass:\"product-name\"},[_vm._v(_vm._s(product.title))]),_c('div',{staticClass:\"price-row\"},[_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()]),_c('div',{staticClass:\"sales-volume\"},[_c('i',{staticClass:\"el-icon-shopping-cart\"}),_vm._v(\" 已售 \"+_vm._s(product.sales_number)+\" \")]),_c('el-button',{staticClass:\"cart-btn\",attrs:{\"type\":\"primary\",\"size\":\"mini\"}},[_vm._v(\" 立即购买 \")])],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","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=cf708dca&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=cf708dca&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 \"cf708dca\",\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","id","name","handleSortChange","selectedSort","_e","type","_v","searchKeyword","_s","find","label","totalProducts","visibleProducts","product","index","$event","goToDetail","directives","rawName","headimg","title","price","market_price","sales_number","length","currentPage","pageSize","handleSizeChange","handleCurrentChange","staticRenderFns","data","keyword","computed","mapGetters","currentOffset","watch","getSearchText","newVal","oldVal","fetchProducts","created","$route","query","getTagList","$bus","beforeDestroy","off","$store","commit","methods","post","pid","then","res","routeId","matchedCategory","console","log","params","tag_id","offset","limit","parseSortParams","response","list","Number","total","sortField","order","split","sortMap","sales","sort","event","val","window","scrollTo","$router","push","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/927.26798669.js b/dist/js/927.b74d23ba.js similarity index 99% rename from dist/js/927.26798669.js rename to dist/js/927.b74d23ba.js index 0a11a2c..a2e9174 100644 --- a/dist/js/927.26798669.js +++ b/dist/js/927.b74d23ba.js @@ -1,2 +1,2 @@ "use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[927],{6927:function(t,e,s){s.r(e),s.d(e,{default:function(){return n}});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)])},c=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"product-details"},[e("div",{staticClass:"product-name"},[t._v("商品")])])}],i=(s(4114),s(8111),s(1148),s(7588),s(1701),s(3579),s(3518)),a={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:{...(0,i.i0)(["submitOrderData"]),handleCheckout(){console.log(this.selectedRows);const t=this.selectedRows.map(t=>({product:t.product,sku:t.sku,quantity:t.num})),e={};t.forEach(t=>{const s=t.product.supplier_name;e[s]||(e[s]=[]),e[s].push(t)}),this.submitOrderData({from:"cart",groups:e}),this.$router.push("/Order")},getList(){this.post({},"/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.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},"/api/cart/update_sku").then(t=>{})},delItem(t){this.post({id:t.id},"/api/cart/del_sku").then(t=>{this.getList()})},deleteSelected(){let t=this.selectedRows.map(t=>t.id).join(",");this.post({ids:t},"/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"})}}},d=a,o=s(1656),r=(0,o.A)(d,l,c,!1,null,"90e50608",null),n=r.exports}}]); -//# sourceMappingURL=927.26798669.js.map \ No newline at end of file +//# sourceMappingURL=927.b74d23ba.js.map \ No newline at end of file diff --git a/dist/js/927.26798669.js.map b/dist/js/927.b74d23ba.js.map similarity index 99% rename from dist/js/927.26798669.js.map rename to dist/js/927.b74d23ba.js.map index bd65288..3144694 100644 --- a/dist/js/927.26798669.js.map +++ b/dist/js/927.b74d23ba.js.map @@ -1 +1 @@ -{"version":3,"file":"js/927.26798669.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,MAAM,CAACC,MAAOT,EAAIU,UAAWC,SAAS,SAAUC,GAAMZ,EAAIU,UAAUE,CAAG,EAAEC,WAAW,cAAc,CAACb,EAAIc,GAAG,SAAS,GAAGd,EAAIe,GAAG,GAAGb,EAAG,MAAM,CAACE,YAAY,eAAe,CAACJ,EAAIc,GAAG,WAAWZ,EAAG,MAAM,CAACE,YAAY,oBAAoB,CAACJ,EAAIc,GAAG,QAAQZ,EAAG,MAAM,CAACE,YAAY,eAAe,CAACJ,EAAIc,GAAG,UAAUZ,EAAG,MAAM,CAACE,YAAY,eAAe,CAACJ,EAAIc,GAAG,WAAWZ,EAAG,MAAM,CAACE,YAAY,eAAe,CAACJ,EAAIc,GAAG,YAAYd,EAAIgB,GAAIhB,EAAIiB,KAAM,SAASC,GAAM,OAAOhB,EAAG,MAAM,CAACiB,IAAID,EAAKE,GAAGhB,YAAY,cAAc,CAACF,EAAG,MAAM,CAACE,YAAY,6BAA6B,CAACF,EA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C,EAAAlC,UAAA,IAIA,KAAAN,KAAAsE,MAAA9B,GAAAA,EAAAlC,WAAA,KAAAN,KAAAuB,OAAA,EACA,KAAA9B,WAAA,EAEA,KAAAA,WAAA,CAEA,EAGA2B,eAAAA,CAAAV,GACA,KAAA+C,KACA,CAAAtD,GAAAO,EAAAP,GAAAkB,IAAAX,EAAAW,KACA,wBACAqC,KAAAC,MACA,EAEArC,OAAAA,CAAA4B,GACA,KAAAO,KACA,CAAAtD,GAAA+C,EAAA/C,IACA,qBACAuD,KAAAC,IACA,KAAAvB,WAEA,EACAV,cAAAA,GACA,IAAA6C,EAAA,KAAA9C,aAAAsB,IAAAP,GAAAA,EAAArC,IAAAqE,KAAA,KACA,KAAAf,KAAA,CAAAc,IAAAA,GAAA,sBAAAb,KACAC,IACA,KAAAvB,WAGA,EAGAqC,gBAAAA,CAAAT,GACA,KAAA9B,SAAA8B,CACA,EAGAU,mBAAAA,CAAAV,GACA,KAAA/B,YAAA+B,CACA,EAGAW,QAAAA,CAAAC,GACA,KAAAC,SAAA,CACAC,QAAA,MAAAF,QACAG,KAAA,QAEA,IClToQ,I,UCQhQC,GAAY,OACd,EACAlG,EACA+C,GACA,EACA,KACA,WACA,MAIF,EAAemD,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=90e50608&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=90e50608&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 \"90e50608\",\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","mapActions","console","log","orderItems","map","quantity","supplierGroups","item","supplier","supplier_name","submitOrderData","from","groups","$router","post","then","res","resData","currentSelectGoodsIds","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 +{"version":3,"file":"js/927.b74d23ba.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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AsB,IAAAP,GAAAA,EAAArC,IAAAqE,KAAA,KACA,KAAAf,KAAA,CAAAc,IAAAA,GAAA,sBAAAb,KACAC,IACA,KAAAvB,WAGA,EAGAqC,gBAAAA,CAAAT,GACA,KAAA9B,SAAA8B,CACA,EAGAU,mBAAAA,CAAAV,GACA,KAAA/B,YAAA+B,CACA,EAGAW,QAAAA,CAAAC,GACA,KAAAC,SAAA,CACAC,QAAA,MAAAF,QACAG,KAAA,QAEA,IClToQ,I,UCQhQC,GAAY,OACd,EACAlG,EACA+C,GACA,EACA,KACA,WACA,MAIF,EAAemD,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=90e50608&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=90e50608&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 \"90e50608\",\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","mapActions","console","log","orderItems","map","quantity","supplierGroups","item","supplier","supplier_name","submitOrderData","from","groups","$router","post","then","res","resData","currentSelectGoodsIds","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/95.41c718be.js b/dist/js/95.41c718be.js new file mode 100644 index 0000000..f653d8b --- /dev/null +++ b/dist/js/95.41c718be.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[95],{1734:function(e,t,i){i.d(t,{A:function(){return d}});var s=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{title:("add"===e.type?"新增":"编辑")+"收货地址",visible:e.visible,width:"700px"},on:{close:e.handleClose}},[t("el-form",{ref:"addressForm",attrs:{model:e.form,rules:e.rules,"label-width":"100px",size:"small"}},[t("el-form-item",{attrs:{label:"收货人",prop:"username"}},[t("el-input",{attrs:{placeholder:"请填写收货人姓名,限制10个字符",maxlength:"10"},model:{value:e.form.username,callback:function(t){e.$set(e.form,"username",t)},expression:"form.username"}})],1),t("el-form-item",{attrs:{label:"所在地区",prop:"region"}},[t("div",{staticClass:"region-selector"},[t("el-select",{staticClass:"region-select",attrs:{placeholder:"选择省份/直辖市"},on:{change:e.handleProvinceChange},model:{value:e.form.province_id,callback:function(t){e.$set(e.form,"province_id",t)},expression:"form.province_id"}},e._l(e.provinces,function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1),t("el-select",{staticClass:"region-select",attrs:{placeholder:"选择城市",disabled:!e.form.province_id},on:{change:e.handleCityChange},model:{value:e.form.city_id,callback:function(t){e.$set(e.form,"city_id",t)},expression:"form.city_id"}},e._l(e.cities,function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1),t("el-select",{staticClass:"region-select",attrs:{placeholder:"选择县区",disabled:!e.form.city_id},model:{value:e.form.district_id,callback:function(t){e.$set(e.form,"district_id",t)},expression:"form.district_id"}},e._l(e.districts,function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1)]),t("el-form-item",{attrs:{label:"详细地址",prop:"detail_addr"}},[t("el-input",{attrs:{placeholder:"请填写详细地址,限制500个字符",maxlength:"500"},model:{value:e.form.detail_addr,callback:function(t){e.$set(e.form,"detail_addr",t)},expression:"form.detail_addr"}})],1),t("el-form-item",{attrs:{label:"手机号码",prop:"mobile"}},[t("el-input",{attrs:{placeholder:"请填写手机号码,限制11位数字",maxlength:"11",oninput:"value=value.replace(/[^\\d]/g,'')"},model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:e.handleClose}},[e._v("取消")]),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.saveAddress}},[e._v("保存")])],1)],1)},a=[],r=(i(8111),i(2489),i(116),{name:"AddressFormDialog",props:{visible:{type:Boolean,default:!1},type:{type:String,required:!0,validator:e=>["add","edit"].includes(e)},initialData:{type:Object,default:()=>({})}},data(){const e=(e,t,i)=>t?/^1[3-9]\d{9}$/.test(t)?void i():i(new Error("请输入正确的11位手机号码")):i(new Error("请输入手机号码")),t=(e,t,i)=>{if(!this.form.province_id||!this.form.city_id||!this.form.district_id)return i(new Error("请完整选择省市区"));i()};return{form:{id:null,username:"",detail_addr:"",mobile:"",province_id:null,city_id:null,district_id:null,region:""},rules:{username:[{required:!0,message:"请输入收货人姓名",trigger:"blur"},{max:10,message:"姓名不能超过10个字符",trigger:"blur"}],region:[{required:!0,validator:t,trigger:"change"}],detail_addr:[{required:!0,message:"请输入详细地址",trigger:"blur"},{max:500,message:"详细地址不能超过500个字符",trigger:"blur"}],mobile:[{required:!0,validator:e,trigger:"blur"}]},regionData:[]}},computed:{provinces(){return this.regionData.filter(e=>1===e.level)},cities(){return this.form.province_id?this.regionData.filter(e=>2===e.level&&e.pid===this.form.province_id):[]},districts(){return this.form.city_id?this.regionData.filter(e=>3===e.level&&e.pid===this.form.city_id):[]}},watch:{visible(e){e&&this.initForm()},initialData:{handler(){this.visible&&this.initForm()},deep:!0}},mounted(){this.getRegionData()},methods:{async getRegionData(){try{const e=await this.post({},"/api/uservice/user/getAreas");e&&e.data?this.regionData=e.data:this.$message.error("获取地区数据失败")}catch(e){console.error("获取地区数据出错:",e),this.$message.error("获取地区数据时发生错误")}},initForm(){this.$nextTick(()=>{this.$refs.addressForm&&this.$refs.addressForm.resetFields(),this.form={id:"edit"===this.type?this.initialData.id:null,username:this.initialData.username||"",detail_addr:this.initialData.detail_addr||"",mobile:this.initialData.mobile||"",province_id:this.initialData.province_id||null,city_id:this.initialData.city_id||null,district_id:this.initialData.district_id||null,region:this.initialData.region||""},"edit"===this.type&&this.initialData.region&&!this.form.province_id&&this.echoRegionSelection(this.initialData.region)})},echoRegionSelection(e){const t=e.split(" ");if(t.length<3)return;const i=this.provinces.find(e=>e.name===t[0]);i&&(this.form.province_id=i.id,this.$nextTick(()=>{const e=this.cities.find(e=>e.name===t[1]);e&&(this.form.city_id=e.id,this.$nextTick(()=>{const e=this.districts.find(e=>e.name===t[2]);e&&(this.form.district_id=e.id)}))}))},handleProvinceChange(){this.form.city_id=null,this.form.district_id=null},handleCityChange(){this.form.district_id=null},saveAddress(){this.$refs.addressForm.validate(async e=>{if(!e)return;const t=this.provinces.find(e=>e.id===this.form.province_id),i=this.cities.find(e=>e.id===this.form.city_id),s=this.districts.find(e=>e.id===this.form.district_id);if(!(t&&i&&s))return void this.$message.warning("地区信息不完整");const a={...this.form,region:`${t.name} ${i.name} ${s.name}`};this.$emit("save",a),this.handleClose()})},handleClose(){this.$emit("update:visible",!1)}}}),o=r,l=i(1656),n=(0,l.A)(o,s,a,!1,null,"7d3ebefd",null),d=n.exports},5095:function(e,t,i){i.r(t),i.d(t,{default:function(){return u}});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"order-page"},[t("div",{staticClass:"page-header"},[t("h2",[e._v("填写收货人信息")]),t("el-button",{staticClass:"address-book-btn",attrs:{type:"text"},on:{click:function(t){return e.openDialog("add",{})}}},[e._v(" 新增/修改地址 ")])],1),t("div",{staticClass:"info-section"},[t("h3",[e._v("收货人信息")]),t("div",{staticClass:"address-item"},[t("span",{staticClass:"label"},[e._v("收货地址:")]),t("div",{staticClass:"address-content"},e._l(e.addresses,function(i,s){return t("div",{key:s,staticClass:"saved-address",class:{selected:e.selectedAddressIndex===s},on:{click:function(t){return e.selectAddress(s)}}},[t("span",{staticClass:"name-tag"},[e._v(e._s(i.name)+" "+e._s(i.province))]),t("span",{staticClass:"detail"},[e._v(e._s(i.address)+" "+e._s(i.phone))]),t("el-button",{staticClass:"edit-btn",attrs:{type:"text"},on:{click:function(t){return t.stopPropagation(),e.handleEdit(i)}}},[e._v("编辑")]),t("el-button",{staticClass:"delete-btn",attrs:{type:"text"},on:{click:function(t){return t.stopPropagation(),e.handleDelete()}}},[e._v("删除")])],1)}),0)]),t("h3",[e._v("发票信息")]),t("div",{staticClass:"invoice-type-item"},[t("span",{staticClass:"label"},[e._v("是否开票:")]),t("el-radio-group",{model:{value:e.needInvoice,callback:function(t){e.needInvoice=t},expression:"needInvoice"}},[t("el-radio",{attrs:{label:!0}},[e._v("是")]),t("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1),e.needInvoice?t("div",{staticClass:"invoice-type-item"},[t("span",{staticClass:"label"},[e._v("发票类型:")]),t("el-radio-group",{model:{value:e.invoice_type,callback:function(t){e.invoice_type=t},expression:"invoice_type"}},[t("el-radio",{attrs:{label:1}},[e._v("增值税普通发票")]),t("el-radio",{attrs:{label:2}},[e._v("普通电子发票")])],1)],1):e._e(),e.needInvoice?t("div",{staticClass:"invoice-title-item"},[t("span",{staticClass:"label"},[e._v("发票抬头:")]),t("el-select",{staticClass:"invoice-title-select",attrs:{placeholder:"请选择发票抬头"},model:{value:e.selectedInvoiceTitle,callback:function(t){e.selectedInvoiceTitle=t},expression:"selectedInvoiceTitle"}},e._l(e.invoiceTitles,function(e,i){return t("el-option",{key:i,attrs:{label:e.invoice_head,value:e.id}})}),1),t("el-button",{staticClass:"add-title-btn",attrs:{type:"text"},on:{click:e.openTitleDialog}},[e._v("+ 添加")])],1):e._e()]),e._m(0),t("div",{staticClass:"goods-section"},[t("h3",[e._v("商品清单")]),e._l(e.orderGroups,function(i,s){return t("div",{key:s,staticClass:"order-group"},[t("div",{staticClass:"supplier-info"},[t("span",[e._v("供货名称:"+e._s(i.supplier))])]),t("table",{staticClass:"goods-table"},[e._m(1,!0),t("tbody",e._l(i.items,function(i,s){return t("tr",{key:s},[t("td",[t("img",{staticClass:"goods-img",attrs:{src:i.image,alt:"商品图片"}}),t("span",{staticClass:"goods-name"},[e._v(e._s(i.name))])]),t("td",[e._v(e._s(i.spec))]),t("td",[e._v(e._s(i.price))]),t("td",[e._v(e._s(i.quantity))]),t("td",[e._v(e._s(i.freight))]),t("td",[e._v(e._s(i.deliveryType))]),t("td",{staticClass:"subtotal"},[e._v(e._s(i.subtotal))])])}),0)]),t("div",{staticClass:"order-remark"},[t("span",{staticClass:"remark-label"},[e._v("订单备注:")]),t("div",{staticClass:"rich-text-editor"},[t("el-input",{staticClass:"remark-editor",attrs:{type:"textarea",rows:"4",placeholder:"请输入订单备注信息"},model:{value:i.remark,callback:function(t){e.$set(i,"remark",t)},expression:"group.remark"}}),e._e()],1)])])}),t("div",{staticClass:"total-info"},[t("p",[e._v(" 共 "+e._s(e.totalGoodsCount)+" 件商品,总商品金额 ¥"+e._s(e.totalGoodsAmount)+" ")]),t("p",[e._v("总运费 ¥"+e._s(e.totalFreight))]),t("p",{staticClass:"pay-amount"},[e._v("实付总金额 ¥"+e._s(e.totalPayAmount))]),t("p",{staticClass:"address-info"},[e._v(" 配送地:"+e._s(e.selectedAddress.address)),t("br"),e._v(" 交货地:"+e._s(e.selectedAddress.address)+" "+e._s(e.selectedAddress.phone)+" ")]),t("el-button",{staticClass:"submit-btn",attrs:{type:"primary"},on:{click:e.submitOrder}},[e._v(" 提交订单 ")])],1)],2),t("AddressFormDialog",{attrs:{visible:e.dialogVisible,type:e.dialogType,"initial-data":e.dialogData},on:{"update:visible":function(t){e.dialogVisible=t},save:e.handleSaveAddress}}),t("el-dialog",{attrs:{title:"新增发票抬头",visible:e.invoiceTitleDialogVisible,width:"700px","before-close":e.handleTitleDialogClose},on:{"update:visible":function(t){e.invoiceTitleDialogVisible=t}}},[t("el-form",{ref:"titleForm",staticClass:"invoice-title-form",attrs:{model:e.titleForm,rules:e.titleRules,"label-width":"120px"}},[t("el-form-item",{attrs:{label:"发票抬头",prop:"invoice_head"}},[t("el-input",{attrs:{placeholder:"请输入发票抬头",maxlength:"100"},model:{value:e.titleForm.invoice_head,callback:function(t){e.$set(e.titleForm,"invoice_head",t)},expression:"titleForm.invoice_head"}})],1),t("el-form-item",{attrs:{label:"纳税人识别号",prop:"tax_number"}},[t("el-input",{attrs:{placeholder:"请输入纳税人识别号",maxlength:"20"},model:{value:e.titleForm.tax_number,callback:function(t){e.$set(e.titleForm,"tax_number",t)},expression:"titleForm.tax_number"}})],1),t("el-form-item",{attrs:{label:"开户银行",prop:"opening_bank"}},[t("el-input",{attrs:{placeholder:"请输入开户银行",maxlength:"100"},model:{value:e.titleForm.opening_bank,callback:function(t){e.$set(e.titleForm,"opening_bank",t)},expression:"titleForm.opening_bank"}})],1),t("el-form-item",{attrs:{label:"银行账号",prop:"bank_account"}},[t("el-input",{attrs:{placeholder:"请输入银行账号",maxlength:"30"},model:{value:e.titleForm.bank_account,callback:function(t){e.$set(e.titleForm,"bank_account",t)},expression:"titleForm.bank_account"}})],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:e.handleTitleDialogClose}},[e._v("取消")]),t("el-button",{attrs:{type:"primary"},on:{click:e.saveInvoiceTitle}},[e._v("确定")])],1)],1)],1)},a=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"contract-section"},[t("h3",[e._v("签署合同")]),t("p",[e._v("如需签署合同,提交订单后,请至采购中心>合同中心签署")])])},function(){var e=this,t=e._self._c;return t("thead",[t("tr",[t("th",[e._v("商品")]),t("th",[e._v("规格")]),t("th",[e._v("单价(元)")]),t("th",[e._v("数量")]),t("th",[e._v("运费")]),t("th",[e._v("收货方式")]),t("th",[e._v("小计(元)")])])])}],r=(i(4114),i(8111),i(7588),i(1701),i(3518)),o=i(1734),l={name:"OrderPage",components:{AddressFormDialog:o.A},data(){return{addresses:[],selectedAddressIndex:-1,selectedTradeType:1,needInvoice:!1,invoice_type:1,invoiceTitles:[],selectedInvoiceTitle:null,orderGroups:[],totalGoodsCount:3,totalGoodsAmount:973,totalFreight:0,totalPayAmount:0,dialogVisible:!1,dialogType:"add",dialogData:{},invoiceTitleDialogVisible:!1,titleForm:{invoice_head:"",tax_number:"",opening_bank:"",bank_account:""},titleRules:{invoice_head:[{required:!0,message:"请输入发票抬头",trigger:"blur"}],tax_number:[{required:!0,message:"请输入纳税人识别号",trigger:"blur"},{pattern:/^[A-Z0-9]{15,20}$/,message:"纳税人识别号格式不正确",trigger:"blur"}],opening_bank:[{required:!0,message:"请输入开户银行",trigger:"blur"}],bank_account:[{required:!0,message:"请输入银行账号",trigger:"blur"}]}}},computed:{...(0,r.L8)(["getOrderData"]),selectedAddress(){return this.addresses[this.selectedAddressIndex]||{}}},mounted(){this.getOrderData?(this.initOrderData(this.getOrderData),console.log(this.getOrderData)):(this.$message.error("未获取到商品信息,请重新操作"),this.$router.go(-1)),this.getAddress(),this.getInvoiceList()},methods:{...(0,r.PY)(["clearOrderData"]),openTitleDialog(){this.invoiceTitleDialogVisible=!0,this.$nextTick(()=>{this.$refs.titleForm.resetFields()})},handleTitleDialogClose(){this.invoiceTitleDialogVisible=!1,this.$refs.titleForm.resetFields()},saveInvoiceTitle(){this.$refs.titleForm.validate(e=>{e&&this.post(this.titleForm,"/api/enterprise_invoice/create").then(e=>{1==e.code&&(this.getInvoiceList(),this.$message.success("发票抬头添加成功"),this.invoiceTitleDialogVisible=!1)})})},getInvoiceList(){this.post({offset:0,limit:100},"/api/enterprise_invoice/index").then(e=>{this.invoiceTitles=e.data})},openDialog(e,t){this.dialogType=e,this.dialogData={...t},this.dialogVisible=!0},handleEdit(e){console.log(e),e.username=e.name,e.mobile=e.tel,this.openDialog("edit",e)},handleDelete(e){this.$confirm("此操作将永久删除该地址, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.post({id:e.id},"/api/uservice/user/delConsignee").then(e=>{1==e.code&&(this.getAddress(),this.$message.success("删除成功!"))})}).catch(()=>{this.$message.info("已取消删除")})},initOrderData(e){if("product"===e.from){const t=e.items[0];this.orderGroups=[{supplier:t.product.supplier_name,items:this.formatItems([t])}]}else"cart"===e.from&&(this.orderGroups=Object.entries(e.groups).map(([e,t])=>({supplier:e,items:this.formatItems(t)})));this.calculateTotal()},formatItems(e){return console.log(e,13213),e.map(e=>({id:e.sku.id,productId:e.product.id,name:e.product.title,image:e.product.headimg,spec:e.sku.sku_name,price:(e.sku.price/100).toFixed(2),quantity:e.quantity,freight:"0.00",deliveryType:"邮寄",type:e.product.type,subtotal:(e.sku.price/100*e.quantity+parseFloat("0.00")).toFixed(2)}))},getPost(){if(!this.selectedAddress.id)return void this.$message.warning("请先选择收货地址");this.totalFreight=0;const e=[];this.orderGroups.forEach((t,i)=>{t.items.forEach((t,i)=>{const s={consignee_id:this.selectedAddress.id,sku_id:t.id,num:t.quantity},a=this.post(s,"/api/order/get_post_price").then(e=>{if(1===e.code){const i=(e.data.price/100).toFixed(2);t.freight=i,t.subtotal=(parseFloat(t.price)*t.quantity+parseFloat(i)).toFixed(2),this.totalFreight=(parseFloat(this.totalFreight)+parseFloat(i)).toFixed(2)}}).catch(e=>{console.error(`获取商品 ${t.id} 邮费失败`,e),this.$message.error(`获取商品 ${t.name} 邮费失败,请重试`)});e.push(a)})}),Promise.all(e).then(()=>{this.calculateTotal()})},calculateTotalFreight(){let e=0;this.orderGroups.forEach(t=>{t.items.forEach(t=>{console.log(t),e+=parseFloat(t.freight)})}),this.totalFreight=e.toFixed(2)},calculateTotal(){let e=0,t=0;this.orderGroups.forEach(i=>{i.items.forEach(i=>{e+=i.quantity,t+=parseFloat(i.subtotal)})}),this.totalGoodsCount=e,this.totalGoodsAmount=t.toFixed(2),this.totalPayAmount=t.toFixed(2)},handleSaveAddress(e){e.is_default=0,"add"===this.dialogType?this.post(e,"/api/uservice/user/addNewConsignee").then(e=>{1==e.code&&(this.$message.success("保存成功"),this.getAddress(),this.dialogVisible=!1)}):this.post(e,"/api/uservice/user/editConsignee").then(e=>{1==e.code&&(this.$message.success("保存成功"),this.getAddress(),this.dialogVisible=!1)})},getAddress(){this.post({contactType:"CONSIGNEE",offset:"0",limit:"100"},"/api/uservice/user/getContactOrConsignee").then(e=>{e&&(this.addresses=e.data||[])})},selectAddress(e){this.selectedAddressIndex=e,this.getPost()},submitOrder(){if(!this.selectedAddress.id)return void this.$message.warning("请先选择收货地址");if(this.needInvoice&&null===this.selectedInvoiceTitle)return void this.$message.warning("请选择发票抬头");let e=[];this.orderGroups.forEach((t,i)=>{t.items.forEach((i,s)=>{console.log(i),e.push({type:i.type,product_id:i.productId,sku_id:i.id,product_num:i.quantity,post:this.selectedAddress.id,remark:t.remark||""})})});let t={product_list:e,invoice_id:this.selectedInvoiceTitle,invoice_type:this.invoice_type};this.post({data:JSON.stringify(t)},"/api/order/create").then(e=>{1==e.code&&(this.$message.success("订单提交成功!"),this.$router.push("/User/OrderList"))})}}},n=l,d=i(1656),c=(0,d.A)(n,s,a,!1,null,"71e54fa2",null),u=c.exports}}]); +//# sourceMappingURL=95.41c718be.js.map \ No newline at end of file diff --git a/dist/js/95.41c718be.js.map b/dist/js/95.41c718be.js.map new file mode 100644 index 0000000..3179d7a --- /dev/null +++ b/dist/js/95.41c718be.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/95.41c718be.js","mappings":"wIAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,YAAY,CAACE,MAAM,CAAC,OAAwB,QAAbJ,EAAIK,KAAiB,KAAO,MAA/B,OAA0C,QAAUL,EAAIM,QAAQ,MAAQ,SAASC,GAAG,CAAC,MAAQP,EAAIQ,cAAc,CAACN,EAAG,UAAU,CAACO,IAAI,cAAcL,MAAM,CAAC,MAAQJ,EAAIU,KAAK,MAAQV,EAAIW,MAAM,cAAc,QAAQ,KAAO,UAAU,CAACT,EAAG,eAAe,CAACE,MAAM,CAAC,MAAQ,MAAM,KAAO,aAAa,CAACF,EAAG,WAAW,CAACE,MAAM,CAAC,YAAc,mBAAmB,UAAY,MAAMQ,MAAM,CAACC,MAAOb,EAAIU,KAAKI,SAAUC,SAAS,SAAUC,GAAMhB,EAAIiB,KAAKjB,EAAIU,KAAM,WAAYM,EAAI,EAAEE,WAAW,oBAAoB,GAAGhB,EAAG,eAAe,CAACE,MAAM,CAAC,MAAQ,OAAO,KAAO,WAAW,CAACF,EAAG,MAAM,CAACiB,YAAY,mBAAmB,CAACjB,EAAG,YAAY,CAACiB,YAAY,gBAAgBf,MAAM,CAAC,YAA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B,EAAA,oCAAAwE,KAAA7F,IACA,GAAAA,EAAA8F,OACA,KAAA5F,SAAA6F,QAAA,QACA,KAAAL,aACA,KAAAtB,eAAA,IAIA,EAEAsB,UAAAA,GACA,KAAAzF,KACA,CACAuI,YAAA,YACAxC,OAAA,IACAC,MAAA,OAEA,4CACAJ,KAAA7F,IACAA,IACA,KAAA0B,UAAA1B,EAAAvB,MAAA,KAGA,EAEAuD,aAAAA,CAAAJ,GACA,KAAAG,qBAAAH,EAEA,KAAA2F,SACA,EAGApD,WAAAA,GACA,SAAAD,gBAAAlH,GAEA,YADA,KAAAkD,SAAAkB,QAAA,YAKA,QAAAmB,aAAA,YAAAG,qBAEA,YADA,KAAAxC,SAAAkB,QAAA,WAIA,IAAAqH,EAAA,GACA,KAAAzF,YAAAyE,QAAA,CAAAxE,EAAAC,KACAD,EAAAG,MAAAqE,QAAA,CAAAnI,EAAA+D,KACAjD,QAAAmF,IAAAjG,GACAmJ,EAAAT,KAAA,CACArM,KAAA2D,EAAA3D,KACA+M,WAAApJ,EAAA4H,UACAU,OAAAtI,EAAAtC,GACA2L,YAAArJ,EAAAmE,SACAxD,KAAA,KAAAiE,gBAAAlH,GACA6G,OAAAZ,EAAAY,QAAA,SAIA,IAAApF,EAAA,CACAmK,aAAAH,EACAI,WAAA,KAAAnG,qBACAF,aAAA,KAAAA,cAEA,KAAAvC,KACA,CACAxB,KAAAqK,KAAAC,UAAAtK,IAEA,qBACAoH,KAAA7F,IACA,GAAAA,EAAA8F,OACA,KAAA5F,SAAA6F,QAAA,WACA,KAAAP,QAAAwC,KAAA,qBAGA,ICroB6P,I,UCQzPzG,GAAY,OACd,EACAlG,EACAyC,GACA,EACA,KACA,WACA,MAIF,EAAeyD,E","sources":["webpack://abcdf/./src/components/common/AddressFormDialog.vue","webpack://abcdf/src/components/common/AddressFormDialog.vue","webpack://abcdf/./src/components/common/AddressFormDialog.vue?ef45","webpack://abcdf/./src/components/common/AddressFormDialog.vue?6358","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('el-dialog',{attrs:{\"title\":`${_vm.type === 'add' ? '新增' : '编辑'}收货地址`,\"visible\":_vm.visible,\"width\":\"700px\"},on:{\"close\":_vm.handleClose}},[_c('el-form',{ref:\"addressForm\",attrs:{\"model\":_vm.form,\"rules\":_vm.rules,\"label-width\":\"100px\",\"size\":\"small\"}},[_c('el-form-item',{attrs:{\"label\":\"收货人\",\"prop\":\"username\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写收货人姓名,限制10个字符\",\"maxlength\":\"10\"},model:{value:(_vm.form.username),callback:function ($$v) {_vm.$set(_vm.form, \"username\", $$v)},expression:\"form.username\"}})],1),_c('el-form-item',{attrs:{\"label\":\"所在地区\",\"prop\":\"region\"}},[_c('div',{staticClass:\"region-selector\"},[_c('el-select',{staticClass:\"region-select\",attrs:{\"placeholder\":\"选择省份/直辖市\"},on:{\"change\":_vm.handleProvinceChange},model:{value:(_vm.form.province_id),callback:function ($$v) {_vm.$set(_vm.form, \"province_id\", $$v)},expression:\"form.province_id\"}},_vm._l((_vm.provinces),function(province){return _c('el-option',{key:province.id,attrs:{\"label\":province.name,\"value\":province.id}})}),1),_c('el-select',{staticClass:\"region-select\",attrs:{\"placeholder\":\"选择城市\",\"disabled\":!_vm.form.province_id},on:{\"change\":_vm.handleCityChange},model:{value:(_vm.form.city_id),callback:function ($$v) {_vm.$set(_vm.form, \"city_id\", $$v)},expression:\"form.city_id\"}},_vm._l((_vm.cities),function(city){return _c('el-option',{key:city.id,attrs:{\"label\":city.name,\"value\":city.id}})}),1),_c('el-select',{staticClass:\"region-select\",attrs:{\"placeholder\":\"选择县区\",\"disabled\":!_vm.form.city_id},model:{value:(_vm.form.district_id),callback:function ($$v) {_vm.$set(_vm.form, \"district_id\", $$v)},expression:\"form.district_id\"}},_vm._l((_vm.districts),function(district){return _c('el-option',{key:district.id,attrs:{\"label\":district.name,\"value\":district.id}})}),1)],1)]),_c('el-form-item',{attrs:{\"label\":\"详细地址\",\"prop\":\"detail_addr\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写详细地址,限制500个字符\",\"maxlength\":\"500\"},model:{value:(_vm.form.detail_addr),callback:function ($$v) {_vm.$set(_vm.form, \"detail_addr\", $$v)},expression:\"form.detail_addr\"}})],1),_c('el-form-item',{attrs:{\"label\":\"手机号码\",\"prop\":\"mobile\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写手机号码,限制11位数字\",\"maxlength\":\"11\",\"oninput\":\"value=value.replace(/[^\\\\d]/g,'')\"},model:{value:(_vm.form.mobile),callback:function ($$v) {_vm.$set(_vm.form, \"mobile\", $$v)},expression:\"form.mobile\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"size\":\"small\"},on:{\"click\":_vm.handleClose}},[_vm._v(\"取消\")]),_c('el-button',{attrs:{\"size\":\"small\",\"type\":\"primary\"},on:{\"click\":_vm.saveAddress}},[_vm._v(\"保存\")])],1)],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!./AddressFormDialog.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!./AddressFormDialog.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./AddressFormDialog.vue?vue&type=template&id=7d3ebefd&scoped=true\"\nimport script from \"./AddressFormDialog.vue?vue&type=script&lang=js\"\nexport * from \"./AddressFormDialog.vue?vue&type=script&lang=js\"\nimport style0 from \"./AddressFormDialog.vue?vue&type=style&index=0&id=7d3ebefd&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 \"7d3ebefd\",\n null\n \n)\n\nexport default component.exports","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\"},on:{\"click\":function($event){return _vm.openDialog('add', {})}}},[_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:\"edit-btn\",attrs:{\"type\":\"text\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.handleEdit(addr)}}},[_vm._v(\"编辑\")]),_c('el-button',{staticClass:\"delete-btn\",attrs:{\"type\":\"text\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.handleDelete()}}},[_vm._v(\"删除\")])],1)}),0)]),_c('h3',[_vm._v(\"发票信息\")]),_c('div',{staticClass:\"invoice-type-item\"},[_c('span',{staticClass:\"label\"},[_vm._v(\"是否开票:\")]),_c('el-radio-group',{model:{value:(_vm.needInvoice),callback:function ($$v) {_vm.needInvoice=$$v},expression:\"needInvoice\"}},[_c('el-radio',{attrs:{\"label\":true}},[_vm._v(\"是\")]),_c('el-radio',{attrs:{\"label\":false}},[_vm._v(\"否\")])],1)],1),(_vm.needInvoice)?_c('div',{staticClass:\"invoice-type-item\"},[_c('span',{staticClass:\"label\"},[_vm._v(\"发票类型:\")]),_c('el-radio-group',{model:{value:(_vm.invoice_type),callback:function ($$v) {_vm.invoice_type=$$v},expression:\"invoice_type\"}},[_c('el-radio',{attrs:{\"label\":1}},[_vm._v(\"增值税普通发票\")]),_c('el-radio',{attrs:{\"label\":2}},[_vm._v(\"普通电子发票\")])],1)],1):_vm._e(),(_vm.needInvoice)?_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.invoice_head,\"value\":title.id}})}),1),_c('el-button',{staticClass:\"add-title-btn\",attrs:{\"type\":\"text\"},on:{\"click\":_vm.openTitleDialog}},[_vm._v(\"+ 添加\")])],1):_vm._e()]),_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),_c('AddressFormDialog',{attrs:{\"visible\":_vm.dialogVisible,\"type\":_vm.dialogType,\"initial-data\":_vm.dialogData},on:{\"update:visible\":function($event){_vm.dialogVisible = $event},\"save\":_vm.handleSaveAddress}}),_c('el-dialog',{attrs:{\"title\":\"新增发票抬头\",\"visible\":_vm.invoiceTitleDialogVisible,\"width\":\"700px\",\"before-close\":_vm.handleTitleDialogClose},on:{\"update:visible\":function($event){_vm.invoiceTitleDialogVisible=$event}}},[_c('el-form',{ref:\"titleForm\",staticClass:\"invoice-title-form\",attrs:{\"model\":_vm.titleForm,\"rules\":_vm.titleRules,\"label-width\":\"120px\"}},[_c('el-form-item',{attrs:{\"label\":\"发票抬头\",\"prop\":\"invoice_head\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入发票抬头\",\"maxlength\":\"100\"},model:{value:(_vm.titleForm.invoice_head),callback:function ($$v) {_vm.$set(_vm.titleForm, \"invoice_head\", $$v)},expression:\"titleForm.invoice_head\"}})],1),_c('el-form-item',{attrs:{\"label\":\"纳税人识别号\",\"prop\":\"tax_number\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入纳税人识别号\",\"maxlength\":\"20\"},model:{value:(_vm.titleForm.tax_number),callback:function ($$v) {_vm.$set(_vm.titleForm, \"tax_number\", $$v)},expression:\"titleForm.tax_number\"}})],1),_c('el-form-item',{attrs:{\"label\":\"开户银行\",\"prop\":\"opening_bank\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入开户银行\",\"maxlength\":\"100\"},model:{value:(_vm.titleForm.opening_bank),callback:function ($$v) {_vm.$set(_vm.titleForm, \"opening_bank\", $$v)},expression:\"titleForm.opening_bank\"}})],1),_c('el-form-item',{attrs:{\"label\":\"银行账号\",\"prop\":\"bank_account\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入银行账号\",\"maxlength\":\"30\"},model:{value:(_vm.titleForm.bank_account),callback:function ($$v) {_vm.$set(_vm.titleForm, \"bank_account\", $$v)},expression:\"titleForm.bank_account\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.handleTitleDialogClose}},[_vm._v(\"取消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.saveInvoiceTitle}},[_vm._v(\"确定\")])],1)],1)],1)\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=71e54fa2&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=71e54fa2&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 \"71e54fa2\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","attrs","type","visible","on","handleClose","ref","form","rules","model","value","username","callback","$$v","$set","expression","staticClass","handleProvinceChange","province_id","_l","provinces","province","key","id","name","handleCityChange","city_id","cities","city","district_id","districts","district","detail_addr","mobile","slot","_v","saveAddress","staticRenderFns","props","Boolean","default","String","required","validator","val","includes","initialData","Object","data","validateMobile","rule","test","Error","validateRegion","region","message","trigger","max","regionData","computed","filter","item","level","pid","watch","initForm","handler","deep","mounted","getRegionData","methods","res","post","$message","error","console","$nextTick","$refs","addressForm","resetFields","echoRegionSelection","regionText","regions","split","length","find","p","c","d","validate","valid","warning","formData","$emit","component","$event","openDialog","addresses","addr","index","class","selected","selectedAddressIndex","selectAddress","_s","address","phone","stopPropagation","handleEdit","handleDelete","needInvoice","invoice_type","_e","selectedInvoiceTitle","invoiceTitles","title","invoice_head","openTitleDialog","_m","orderGroups","group","groupIndex","supplier","items","itemIndex","image","spec","price","quantity","freight","deliveryType","subtotal","remark","totalGoodsCount","totalGoodsAmount","totalFreight","totalPayAmount","selectedAddress","submitOrder","dialogVisible","dialogType","dialogData","handleSaveAddress","invoiceTitleDialogVisible","handleTitleDialogClose","titleForm","titleRules","tax_number","opening_bank","bank_account","saveInvoiceTitle","components","AddressFormDialog","selectedTradeType","pattern","mapGetters","getOrderData","initOrderData","log","$router","go","getAddress","getInvoiceList","mapMutations","then","code","success","offset","limit","row","tel","$confirm","confirmButtonText","cancelButtonText","catch","info","from","product","supplier_name","formatItems","entries","groups","map","calculateTotal","sku","productId","headimg","sku_name","toFixed","parseFloat","getPost","freightPromises","forEach","params","consignee_id","sku_id","num","promise","err","push","Promise","all","calculateTotalFreight","total","totalCount","totalAmount","is_default","contactType","goods","product_id","product_num","product_list","invoice_id","JSON","stringify"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/975.6d55c1a8.js b/dist/js/975.6d55c1a8.js deleted file mode 100644 index 2622985..0000000 --- a/dist/js/975.6d55c1a8.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[975],{1975: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(" 尊敬的采购人,欢迎来到时味苏州企业采购平台!您可以先完成下方的基础设置,方便您更高效的采购。 ")])}],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({},"/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,"4ea6c11f",null),r=o.exports}}]); -//# sourceMappingURL=975.6d55c1a8.js.map \ No newline at end of file diff --git a/dist/js/975.6d55c1a8.js.map b/dist/js/975.6d55c1a8.js.map deleted file mode 100644 index 33c5eb0..0000000 --- a/dist/js/975.6d55c1a8.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/975.6d55c1a8.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,YA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ACAC,KAAA,WAEA,KClKkQ,I,UCQ9PC,GAAY,OACd,EACA7D,EACAmC,GACA,EACA,KACA,WACA,MAIF,EAAe0B,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(\" 尊敬的采购人,欢迎来到时味苏州企业采购平台!您可以先完成下方的基础设置,方便您更高效的采购。 \")])\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=4ea6c11f&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=4ea6c11f&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 \"4ea6c11f\",\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","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/app.0affbfcc.js b/dist/js/app.0affbfcc.js new file mode 100644 index 0000000..a9eb63e --- /dev/null +++ b/dist/js/app.0affbfcc.js @@ -0,0 +1,2 @@ +(function(){"use strict";var e={3153:function(e,t,n){e.exports=n.p+"img/logo.bb511aff.png"},3380:function(e,t,n){n(4114);var a=n(6674),r=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)},o=[],i=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"},on:{click:function(t){e.searchText=""}}})])],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),e.hotList.length>0?t("div",{staticClass:"hot-tags"},[t("span",[e._v("热门搜索:")]),e._l(e.hotList,function(n,a){return t("div",{key:a,staticClass:"hot-tag",on:{click:function(t){e.searchText=n.name,e.handleSearch()}}},[e._v(" "+e._s(n.name)+" ")])})],2):e._e()],1),t("div",{staticClass:"phone-entry"},[t("div",{staticStyle:{display:"flex","align-items":"center"}},[t("img",{staticStyle:{"margin-right":"5px"},attrs:{src:"https://static.ticket.sz-trip.com/shiweisuzhou/pc/login/phone.png",alt:"联系电话"}}),t("span",[e._v("0512-680541")]),(e.cartTotalCount,e._e())])])])]),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:"",hotList:[]}},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(),this.post({},"/api/search/hot").then(e=>{this.hotList=e.data})},methods:{...(0,c.i0)(["fetchCategories","logout"]),handleSearch(){this.searchText.trim()&&(this.$store.commit("setSearchText",this.searchText),"/ProductList"===this.$route.path||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("退出登录成功"),localStorage.setItem("redirectPath",this.$route.path),this.$router.push("/Login")}).catch(e=>{this.$message.error("退出失败:"+(e.message||"未知错误"))})}).catch(()=>{})}}},u=l,d=n(1656),p=(0,d.A)(u,i,s,!1,null,"391ee56a",null),h=p.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,_=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.$store.getters.getCartTotalCount}},[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}},computed:{...(0,c.L8)(["getCartTotalCount"])},mounted(){window.addEventListener("scroll",this.handleScroll),this.$store.dispatch("fetchCartCount")},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)}}},k=T,w=(0,d.A)(k,_,y,!1,null,"f2321a44",null),A=w.exports,x=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()},L=[],O={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)}}},S=O,U=(0,d.A)(S,x,L,!1,null,"7ea6dee0",null),P=U.exports,E={name:"App",components:{HeaderNav:h,Footer:C,BackToTop:P,Sidebar:A},computed:{...(0,c.L8)(["getLoadingStatus"]),loading(){return this.getLoadingStatus}}},I=E,B=(0,d.A)(I,r,o,!1,null,null,null),$=B.exports,D=n(6178),R=n(5131);a["default"].use(c.Ay);var N=new c.Ay.Store({plugins:[(0,R.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:"",orderData:null},mutations:{setOrderData(e,t){e.orderData=t},clearOrderData(e){e.orderData=null},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")},UPDATE_CART_TOTAL_COUNT(e,t){e.cart.totalCount=t},setSearchText(e,t){e.searchText=t}},actions:{submitOrderData({commit:e},t){e("setOrderData",t)},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({dispatch:e},t){return a["default"].prototype.post({sku_id:t.id,num:t.quantity||1},"/api/cart/add_sku").then(t=>{if(t)return e("fetchCartCount")}).catch(e=>{throw console.error("添加到购物车请求失败",e),e})},fetchCartCount({commit:e,state:t}){return t.user.token?a["default"].prototype.post({},"/api/cart/get_count").then(t=>(console.log("购物车数量接口返回",t),1==t.code&&e("UPDATE_CART_TOTAL_COUNT",t.data),t.data)).catch(e=>{throw console.error("获取购物车数量失败",e),e}):(e("UPDATE_CART_TOTAL_COUNT",0),Promise.resolve(0))},removeFromCart({dispatch:e},t){return a["default"].prototype.post({sku_id:t},"/api/cart/remove_sku").then(()=>e("fetchCartCount")).catch(e=>{throw console.error("删除购物车商品失败",e),e})},updateCartItemQuantity({dispatch:e},{productId:t,quantity:n}){return a["default"].prototype.post({sku_id:t,num:n},"/api/cart/add_sku").then(()=>e("fetchCartCount")).catch(e=>{throw console.error("更新购物车商品数量失败",e),e})},clearCart({dispatch:e}){return a["default"].prototype.post({},"/api/cart/clear").then(()=>e("fetchCartCount")).catch(e=>{throw console.error("清空购物车失败",e),e})}},getters:{getOrderData:e=>e.orderData,getCategories:e=>e.categories,getCart:e=>e.cart,getCartTotalCount:e=>e.cart.totalCount,isUserLogin:e=>e.user.isLogin,getUserInfo:e=>e.user.info,getLoadingStatus:e=>e.loading,getSearchText:e=>e.searchText}});a["default"].use(D.Ay);const j=D.Ay.prototype.push;D.Ay.prototype.push=function(e){return j.call(this,e).catch(e=>{if("NavigationDuplicated"!==e.name)throw e})};const z=new D.Ay({mode:"history",base:"/",routes:[{path:"/",name:"Index",meta:{title:"首页 - 精品商城",keepAlive:!1},component:()=>n.e(757).then(n.bind(n,2757))},{path:"/Login",name:"Login",meta:{title:"登录 - 精品商城",keepAlive:!1},component:()=>n.e(411).then(n.bind(n,5411))},{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(926).then(n.bind(n,926))},{path:"/ProductList",name:"ProductList",meta:{title:"商品列表",keepAlive:!1},component:()=>n.e(220).then(n.bind(n,6220))},{path:"/User",name:"User",component:()=>n.e(328).then(n.bind(n,2328)),redirect:"/User/UserCenter",children:[{path:"UserCenter",name:"UserCenter",component:()=>n.e(151).then(n.bind(n,5151))},{path:"OrderList",name:"OrderList",meta:{title:"我的订单 - 精品商城",keepAlive:!1},component:()=>n.e(170).then(n.bind(n,9170))},{path:"UserInfo",name:"UserInfo",meta:{title:"个人信息 - 精品商城",keepAlive:!1},component:()=>n.e(441).then(n.bind(n,441))},{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(208).then(n.bind(n,5208))},{path:"UserInvoice",name:"UserInvoice",meta:{title:"发票抬头 - 精品商城",keepAlive:!1},component:()=>n.e(179).then(n.bind(n,179))},{path:"UserInvoiceList",name:"UserInvoiceList",meta:{title:"我的发票 - 精品商城",keepAlive:!1},component:()=>n.e(230).then(n.bind(n,5230))},{path:"ShoppingCart",name:"ShoppingCart",meta:{title:"购物车 - 精品商城",keepAlive:!1},component:()=>n.e(927).then(n.bind(n,6927))},{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(15).then(n.bind(n,7015))},{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(558).then(n.bind(n,5558))}]},{path:"/Order",name:"Order",meta:{title:"下单",keepAlive:!1},component:()=>n.e(95).then(n.bind(n,5095))},{path:"/OrderDetail",name:"OrderDetail",meta:{title:"订单详情 - 精品商城",keepAlive:!1},component:()=>n.e(610).then(n.bind(n,6610))},{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}}});z.beforeEach((e,t,n)=>{if(e.meta.title&&(document.title=e.meta.title),e.meta.requireAuth){const t=N.state.user?.info?.token||"";t?n():n({path:"/Login",query:{redirect:e.fullPath}})}else n()});var M=z,q=n(9143),F=n.n(q),V=n(5847),G=n(4373);const H=G.A.create({timeout:6e3});H.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=N.state.user?.info?.token||"";return e.headers["token"]=n||"",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=q.Loading.service({lock:!0,text:"加载中...",background:"rgba(0, 0, 0, 0.7)"})),e},e=>Promise.reject(e)),H.interceptors.response.use(e=>{if(e.config.loadingInstance&&e.config.loadingInstance.close(),200!==e.status&&1!==e.status){const t=`请求失败,状态码:${e.status}`;return q.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}`;q.MessageBox.alert(e,"错误提示",{confirmButtonText:"确定",type:"error"}).then(()=>{if(401===t.code){const e=M.currentRoute.fullPath;"/Login"!==e&&localStorage.setItem("redirectPath",e),M.push("/Login")}}).catch(()=>{})}}},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(()=>{M.push("/Login")}).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,r)=>{H.get(t,{params:e,loading:n}).then(e=>{a(e)}).catch(e=>{r(e)})}),a["default"].prototype.post=(e,t,n=!1)=>new Promise((a,r)=>{H.post(t,e,{loading:n}).then(e=>{a(e)}).catch(e=>{r(e)})});var Z={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)}})},copyId(t){const n=document.createElement("input");n.value=t,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n),e.prototype.$message({message:"复制成功",type:"success"})}}}};a["default"].use(Z),a["default"].config.productionTip=!1,a["default"].use(F()),a["default"].use(V.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:r,src:o,loading:i,error:s,Init:c}){console.log("图片加载完成:",o)},error({bindType:e,el:t,error:n,$parent:a,src:r,loading:o}){console.log("图片加载失败:",r)}}}),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:M,store:N,components:{App:$},template:""})}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var o=t[a]={id:a,loaded:!1,exports:{}};return e[a].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.m=e,function(){n.amdO={}}(),function(){var e=[];n.O=function(t,a,r,o){if(!a){var i=1/0;for(u=0;u=o)&&Object.keys(n.O).every(function(e){return n.O[e](a[c])})?a.splice(c--,1):(s=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[a,r,o]}}(),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+"."+{15:"3e163139",29:"7eef1ca9",33:"d232b82b",95:"41c718be",151:"bc9dae61",169:"476d32e6",170:"349e118b",179:"c11c622d",208:"a0feba87",220:"98d37146",230:"6e39146c",244:"7d3000f2",328:"82cd4078",411:"e9addbc3",441:"182fe637",452:"d6fc2b8c",558:"5f7f14dd",592:"90e06992",610:"3d8586f2",677:"e7ad81c7",757:"de7809f4",828:"3c50f0ff",838:"e0fbe621",926:"d303aa93",927:"b74d23ba"}[e]+".js"}}(),function(){n.miniCssF=function(e){return"css/"+e+"."+{15:"4b379120",29:"2661f71c",33:"5507be5a",95:"e05cc25c",151:"e5fbd0e8",169:"a7db186a",170:"0849e36c",208:"268eb302",220:"409c24a4",230:"44c2ea2e",244:"edd4b6a0",328:"114638ae",411:"e4757598",441:"edf1b234",452:"42e712d8",558:"b8b34808",592:"09b799c2",610:"36f5ac87",677:"51eebda5",757:"0154d72b",828:"3ffea4ab",838:"4c0b65d7",926:"a9594400",927:"6a2478bb"}[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,r,o,i){if(e[a])e[a].push(r);else{var s,c;if(void 0!==o)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\"},on:{\"click\":function($event){_vm.searchText = ''}}})])],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),(_vm.hotList.length > 0)?_c('div',{staticClass:\"hot-tags\"},[_c('span',[_vm._v(\"热门搜索:\")]),_vm._l((_vm.hotList),function(item,index){return _c('div',{key:index,staticClass:\"hot-tag\",on:{\"click\":function($event){_vm.searchText = item.name;\n _vm.handleSearch();}}},[_vm._v(\" \"+_vm._s(item.name)+\" \")])})],2):_vm._e()],1),_c('div',{staticClass:\"phone-entry\"},[_c('div',{staticStyle:{\"display\":\"flex\",\"align-items\":\"center\"}},[_c('img',{staticStyle:{\"margin-right\":\"5px\"},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()])])])]),(_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=391ee56a&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=391ee56a&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 \"391ee56a\",\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.$store.getters.getCartTotalCount}},[_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=f2321a44&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=f2321a44&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 \"f2321a44\",\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","// 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 orderData: null\n },\n mutations: {\n // 设置订单数据\n setOrderData(state, data) {\n state.orderData = data\n },\n // 清空订单数据\n clearOrderData(state) {\n state.orderData = null\n },\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 UPDATE_CART_TOTAL_COUNT(state, count) {\n state.cart.totalCount = count\n },\n\n setSearchText(state, text) {\n state.searchText = text;\n }\n },\n actions: {\n // 提交订单数据\n submitOrderData({ commit }, data) {\n commit('setOrderData', data)\n },\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({ dispatch }, product) {\n // 调用接口,参数为商品id和数量\n return Vue.prototype.post(\n {\n sku_id: product.id,\n num: product.quantity || 1\n },\n \"/api/cart/add_sku\"\n ).then((res) => {\n if (res) {\n // 添加成功后重新获取购物车数量\n return dispatch('fetchCartCount')\n }\n }).catch((err) => {\n console.error('添加到购物车请求失败', err);\n throw err\n });\n },\n\n // 获取购物车数量\n fetchCartCount({ commit, state }) {\n // 检查是否存在token,不存在则直接返回0\n if (!state.user.token) {\n commit('UPDATE_CART_TOTAL_COUNT', 0)\n return Promise.resolve(0)\n }\n return Vue.prototype.post(\n {},\n \"/api/cart/get_count\"\n ).then((res) => {\n console.log('购物车数量接口返回', res)\n if (res.code == 1) {\n commit('UPDATE_CART_TOTAL_COUNT', res.data)\n }\n return res.data\n }).catch((err) => {\n console.error('获取购物车数量失败', err)\n throw err\n });\n },\n \n // 从购物车移除商品\n removeFromCart({ dispatch }, productId) {\n // 调用删除接口\n return Vue.prototype.post(\n { sku_id: productId },\n \"/api/cart/remove_sku\"\n ).then(() => {\n // 删除成功后重新获取购物车数量\n return dispatch('fetchCartCount')\n }).catch(err => {\n console.error('删除购物车商品失败', err)\n throw err\n })\n },\n \n // 更新购物车商品数量\n updateCartItemQuantity({ dispatch }, { productId, quantity }) {\n // 调用更新数量接口\n return Vue.prototype.post(\n { \n sku_id: productId,\n num: quantity\n },\n \"/api/cart/add_sku\"\n ).then(() => {\n // 更新成功后重新获取购物车数量\n return dispatch('fetchCartCount')\n }).catch(err => {\n console.error('更新购物车商品数量失败', err)\n throw err\n })\n },\n \n // 清空购物车\n clearCart({ dispatch }) {\n // 调用清空接口\n return Vue.prototype.post(\n {},\n \"/api/cart/clear\"\n ).then(() => {\n // 清空成功后重新获取购物车数量\n return dispatch('fetchCartCount')\n }).catch(err => {\n console.error('清空购物车失败', err)\n throw err\n })\n }\n },\n getters: {\n // 获取订单数据\n getOrderData: state => state.orderData,\n\n // 获取分类列表\n getCategories: state => state.categories,\n \n // 获取购物车信息\n getCart: state => state.cart,\n \n // 获取购物车商品总数\n getCartTotalCount: state => state.cart.totalCount,\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 Router from 'vue-router'\r\nimport store from '@/store';\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 = store.state.user?.info?.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 axios from \"axios\";\r\nimport { Message, MessageBox, Loading } from \"element-ui\"; // 引入 Element UI 组件\r\nimport store from '@/store';\r\nimport router from \"@/router\"\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?.info?.token || '';\r\n config.headers['token'] = 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 }).then(() => {\r\n if (resData.code === 401) {\r\n // 存储当前路由(排除登录页自身,避免死循环)\r\n const currentPath = router.currentRoute.fullPath;\r\n if (currentPath !== '/Login') { // 假设登录页路径是 /Login\r\n localStorage.setItem('redirectPath', currentPath); // 存到本地存储\r\n }\r\n // 登录操作\r\n router.push(\"/Login\")\r\n }\r\n }).catch(() => {\r\n \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 router.push(\"/Login\")\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\r\n\t\t\tcopyId(value) {\r\n\t\t\t\tconst input = document.createElement('input');\r\n\t\t\t\tinput.value = value;\r\n\t\t\t\tdocument.body.appendChild(input);\r\n\t\t\t\tinput.select();\r\n\t\t\t\tdocument.execCommand('copy');\r\n\t\t\t\tdocument.body.removeChild(input);\r\n\t\t\t\t\r\n\t\t\t\tVue.prototype.$message({\r\n\t\t\t\t\tmessage: '复制成功',\r\n\t\t\t\t\ttype: 'success'\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 + \".\" + {\"15\":\"3e163139\",\"29\":\"7eef1ca9\",\"33\":\"d232b82b\",\"95\":\"41c718be\",\"151\":\"bc9dae61\",\"169\":\"476d32e6\",\"170\":\"349e118b\",\"179\":\"c11c622d\",\"208\":\"a0feba87\",\"220\":\"98d37146\",\"230\":\"6e39146c\",\"244\":\"7d3000f2\",\"328\":\"82cd4078\",\"411\":\"e9addbc3\",\"441\":\"182fe637\",\"452\":\"d6fc2b8c\",\"558\":\"5f7f14dd\",\"592\":\"90e06992\",\"610\":\"3d8586f2\",\"677\":\"e7ad81c7\",\"757\":\"de7809f4\",\"828\":\"3c50f0ff\",\"838\":\"e0fbe621\",\"926\":\"d303aa93\",\"927\":\"b74d23ba\"}[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 + \".\" + {\"15\":\"4b379120\",\"29\":\"2661f71c\",\"33\":\"5507be5a\",\"95\":\"e05cc25c\",\"151\":\"e5fbd0e8\",\"169\":\"a7db186a\",\"170\":\"0849e36c\",\"208\":\"268eb302\",\"220\":\"409c24a4\",\"230\":\"44c2ea2e\",\"244\":\"edd4b6a0\",\"328\":\"114638ae\",\"411\":\"e4757598\",\"441\":\"edf1b234\",\"452\":\"42e712d8\",\"558\":\"b8b34808\",\"592\":\"09b799c2\",\"610\":\"36f5ac87\",\"677\":\"51eebda5\",\"757\":\"0154d72b\",\"828\":\"3ffea4ab\",\"838\":\"4c0b65d7\",\"926\":\"a9594400\",\"927\":\"6a2478bb\"}[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 = {\"15\":1,\"29\":1,\"33\":1,\"95\":1,\"151\":1,\"169\":1,\"170\":1,\"208\":1,\"220\":1,\"230\":1,\"244\":1,\"328\":1,\"411\":1,\"441\":1,\"452\":1,\"558\":1,\"592\":1,\"610\":1,\"677\":1,\"757\":1,\"828\":1,\"838\":1,\"926\":1,\"927\":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__(3380); })\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","$event","searchText","nativeOn","type","indexOf","_k","keyCode","key","handleSearch","apply","arguments","model","callback","$$v","slot","hotList","length","_l","item","index","staticStyle","categories","data","computed","mapGetters","getCategories","getCartTotalCount","isUserLogin","getUserInfo","created","fetchCategories","post","then","res","methods","mapActions","trim","$store","commit","path","$router","push","query","keyword","$confirm","confirmButtonText","cancelButtonText","logout","$message","success","localStorage","setItem","catch","err","error","message","component","_m","handleCartClick","getters","handleServiceClick","class","active","isShowBackTop","handleBackToTop","cartCount","scrollTimer","mounted","window","addEventListener","handleScroll","dispatch","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","Vuex","plugins","createPersistedState","storage","reducer","val","cart","user","state","items","totalCount","totalPrice","token","orderData","mutations","setOrderData","clearOrderData","UPDATE_CATEGORIES","UPDATE_LOADING","status","USER_LOGIN","USER_LOGOUT","removeItem","UPDATE_CART_TOTAL_COUNT","count","setSearchText","text","actions","submitOrderData","Promise","resolve","id","icon","addToCart","product","prototype","sku_id","num","quantity","console","fetchCartCount","log","code","removeFromCart","productId","updateCartItemQuantity","clearCart","getOrderData","getCart","getSearchText","Router","originalPush","location","call","router","mode","base","process","routes","meta","title","keepAlive","redirect","children","scrollBehavior","to","from","savedPosition","x","y","beforeEach","next","document","requireAuth","store","fullPath","http","axios","create","timeout","interceptors","request","config","customBaseURL","params","baseURL","headers","method","toLowerCase","platform_type","loadingInstance","Loading","service","lock","background","reject","response","close","errorMsg","MessageBox","alert","Error","resData","msg","currentPath","currentRoute","confirm","Message","duration","get","url","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","copyId","input","createElement","body","appendChild","select","execCommand","removeChild","utils","productionTip","ElementUI","VueLazyload","preLoad","require","attempt","listenEvents","adapter","loaded","bindType","el","naturalHeight","naturalWidth","$parent","src","Init","gotoPath","options","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","reduce","promises","u","miniCssF","g","globalThis","Function","obj","prop","hasOwnProperty","inProgress","dataWebpackPrefix","l","done","script","needAttach","scripts","getElementsByTagName","s","getAttribute","charset","nc","setAttribute","onScriptComplete","prev","event","onerror","doneFns","parentNode","forEach","bind","target","head","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/dist/js/app.71c4eb46.js b/dist/js/app.71c4eb46.js deleted file mode 100644 index b283520..0000000 --- a/dist/js/app.71c4eb46.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){"use strict";var e={748:function(e,t,a){a(4114);var n=a(6674),r=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)},o=[],i=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("div",[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())])])])]),e.categories.length>0?t("div",{staticClass:"category-nav"},[t("div",{staticClass:"container"},[e._e()])]):e._e()])},s=[],c=a(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(){this.searchText.trim()&&(this.$store.commit("setSearchText",this.searchText),"/ProductList"===this.$route.path?this.$bus.emit("search-product",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("退出登录成功"),localStorage.setItem("redirectPath",this.$route.path),this.$router.push("/Login")}).catch(e=>{this.$message.error("退出失败:"+(e.message||"未知错误"))})}).catch(()=>{})}}},u=l,d=a(1656),h=(0,d.A)(u,i,s,!1,null,"adf79b44",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.$store.getters.getCartTotalCount}},[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}},computed:{...(0,c.L8)(["getCartTotalCount"])},mounted(){window.addEventListener("scroll",this.handleScroll),this.$store.dispatch("fetchCartCount")},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)}}},w=T,A=(0,d.A)(w,k,y,!1,null,"f2321a44",null),I=A.exports,x=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()},U=[],R={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)}}},E=R,O=(0,d.A)(E,x,U,!1,null,"7ea6dee0",null),L=O.exports,S={name:"App",components:{HeaderNav:p,Footer:C,BackToTop:L,Sidebar:I},computed:{...(0,c.L8)(["getLoadingStatus"]),loading(){return this.getLoadingStatus}}},P=S,B=(0,d.A)(P,r,o,!1,null,null,null),N=B.exports,z=a(6178),Z=a(5131);n["default"].use(c.Ay);var G=new c.Ay.Store({plugins:[(0,Z.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:"",orderData:null},mutations:{setOrderData(e,t){e.orderData=t},clearOrderData(e){e.orderData=null},UPDATE_CATEGORIES(e,t){e.categories=t},UPDATE_LOADING(e,t){e.loading=t},USER_LOGIN(e,{userInfo:t,token:a}){e.user.isLogin=!0,e.user.info=t,e.user.token=a,localStorage.setItem("token",a)},USER_LOGOUT(e){e.user.isLogin=!1,e.user.info=null,e.user.token="",localStorage.removeItem("token")},UPDATE_CART_TOTAL_COUNT(e,t){e.cart.totalCount=t},setSearchText(e,t){e.searchText=t}},actions:{submitOrderData({commit:e},t){e("setOrderData",t)},fetchCategories({commit:e}){return e("UPDATE_LOADING",!0),new Promise(t=>{setTimeout(()=>{const a=[{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",a),e("UPDATE_LOADING",!1),t(a)},500)})},logout({commit:e}){e("USER_LOGOUT")},addToCart({dispatch:e},t){return n["default"].prototype.post({sku_id:t.id,num:t.quantity||1},"/api/cart/add_sku").then(t=>{if(t)return e("fetchCartCount")}).catch(e=>{throw console.error("添加到购物车请求失败",e),e})},fetchCartCount({commit:e,state:t}){return t.user.token?n["default"].prototype.post({},"/api/cart/get_count").then(t=>(console.log("购物车数量接口返回",t),1==t.code&&e("UPDATE_CART_TOTAL_COUNT",t.data),t.data)).catch(e=>{throw console.error("获取购物车数量失败",e),e}):(e("UPDATE_CART_TOTAL_COUNT",0),Promise.resolve(0))},removeFromCart({dispatch:e},t){return n["default"].prototype.post({sku_id:t},"/api/cart/remove_sku").then(()=>e("fetchCartCount")).catch(e=>{throw console.error("删除购物车商品失败",e),e})},updateCartItemQuantity({dispatch:e},{productId:t,quantity:a}){return n["default"].prototype.post({sku_id:t,num:a},"/api/cart/add_sku").then(()=>e("fetchCartCount")).catch(e=>{throw console.error("更新购物车商品数量失败",e),e})},clearCart({dispatch:e}){return n["default"].prototype.post({},"/api/cart/clear").then(()=>e("fetchCartCount")).catch(e=>{throw console.error("清空购物车失败",e),e})}},getters:{getOrderData:e=>e.orderData,getCategories:e=>e.categories,getCart:e=>e.cart,getCartTotalCount:e=>e.cart.totalCount,isUserLogin:e=>e.user.isLogin,getUserInfo:e=>e.user.info,getLoadingStatus:e=>e.loading,getSearchText:e=>e.searchText}});n["default"].use(z.Ay);const W=z.Ay.prototype.push;z.Ay.prototype.push=function(e){return W.call(this,e).catch(e=>{if("NavigationDuplicated"!==e.name)throw e})};const V=new z.Ay({mode:"history",base:"/",routes:[{path:"/",name:"Index",meta:{title:"首页 - 精品商城",keepAlive:!1},component:()=>a.e(322).then(a.bind(a,7322))},{path:"/Login",name:"Login",meta:{title:"登录 - 精品商城",keepAlive:!1},component:()=>a.e(411).then(a.bind(a,5411))},{path:"/Register",name:"Register",meta:{title:"注册 - 精品商城",keepAlive:!1},component:()=>a.e(29).then(a.bind(a,3029))},{path:"/Home",name:"Home",meta:{title:"首页 - 精品商城",keepAlive:!1},component:()=>a.e(828).then(a.bind(a,9828))},{path:"/Detail/:id",name:"Detail",meta:{title:"首页 - 精品商城",keepAlive:!1},component:()=>a.e(926).then(a.bind(a,926))},{path:"/ProductList",name:"ProductList",meta:{title:"商品列表",keepAlive:!1},component:()=>a.e(896).then(a.bind(a,3896))},{path:"/User",name:"User",component:()=>a.e(110).then(a.bind(a,9110)),redirect:"/User/UserCenter",children:[{path:"UserCenter",name:"UserCenter",component:()=>a.e(975).then(a.bind(a,1975))},{path:"OrderList",name:"OrderList",meta:{title:"我的订单 - 精品商城",keepAlive:!1},component:()=>a.e(573).then(a.bind(a,2573))},{path:"UserInfo",name:"UserInfo",meta:{title:"个人信息 - 精品商城",keepAlive:!1},component:()=>a.e(441).then(a.bind(a,441))},{path:"ViewHistory",name:"ViewHistory",meta:{title:"我的足迹 - 精品商城",keepAlive:!1},component:()=>a.e(33).then(a.bind(a,4033))},{path:"UserAddress",name:"UserAddress",meta:{title:"我的收货地址 - 精品商城",keepAlive:!1},component:()=>a.e(208).then(a.bind(a,5208))},{path:"UserInvoice",name:"UserInvoice",meta:{title:"发票抬头 - 精品商城",keepAlive:!1},component:()=>a.e(113).then(a.bind(a,6113))},{path:"UserInvoiceList",name:"UserInvoiceList",meta:{title:"我的发票 - 精品商城",keepAlive:!1},component:()=>a.e(217).then(a.bind(a,8217))},{path:"ShoppingCart",name:"ShoppingCart",meta:{title:"购物车 - 精品商城",keepAlive:!1},component:()=>a.e(927).then(a.bind(a,6927))},{path:"CommentManage",name:"CommentManage",meta:{title:"评价管理 - 精品商城",keepAlive:!1},component:()=>a.e(592).then(a.bind(a,4592))},{path:"ContractList",name:"ContractList",meta:{title:"合同管理 - 精品商城",keepAlive:!1},component:()=>a.e(406).then(a.bind(a,3406))},{path:"MessageList",name:"MessageList",meta:{title:"消息中心 - 精品商城",keepAlive:!1},component:()=>a.e(838).then(a.bind(a,7838))},{path:"PurchaserAdd",name:"PurchaserAdd",meta:{title:"添加采购单位信息 - 精品商城",keepAlive:!1},component:()=>a.e(181).then(a.bind(a,6181))}]},{path:"/Order",name:"Order",meta:{title:"下单",keepAlive:!1},component:()=>a.e(334).then(a.bind(a,8334))},{path:"/OrderDetail",name:"OrderDetail",meta:{title:"订单详情 - 精品商城",keepAlive:!1},component:()=>a.e(882).then(a.bind(a,5882))},{path:"/OrderPay",name:"OrderPay",meta:{title:"订单支付 - 精品商城",keepAlive:!1},component:()=>a.e(677).then(a.bind(a,3677))},{path:"/OrderPayB2B",name:"OrderPayB2B",meta:{title:"订单支付 - 精品商城",keepAlive:!1},component:()=>a.e(452).then(a.bind(a,1452))},{path:"/OrderPayCode",name:"OrderPayCode",meta:{title:"订单支付 - 精品商城",keepAlive:!1},component:()=>a.e(244).then(a.bind(a,244))},{path:"/OrderPaySuccess",name:"OrderPaySuccess",meta:{title:"订单支付 - 精品商城",keepAlive:!1},component:()=>a.e(169).then(a.bind(a,7169))}],scrollBehavior(e,t,a){return{x:0,y:0}}});V.beforeEach((e,t,a)=>{if(e.meta.title&&(document.title=e.meta.title),e.meta.requireAuth){const t=G.state.user?.info?.token||"";t?a():a({path:"/Login",query:{redirect:e.fullPath}})}else a()});var Q=V,D=a(9143),M=a.n(D),Y=a(5847),J=a(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 a=G.state.user?.info?.token||"";return e.headers["token"]=a||"",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"}).then(()=>{if(401===t.code){const e=Q.currentRoute.fullPath;"/Login"!==e&&localStorage.setItem("redirectPath",e),Q.push("/Login")}}).catch(()=>{})}}},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(()=>{Q.push("/Login")}).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)}),n["default"].prototype.get=(e,t,a=!1)=>new Promise((n,r)=>{j.get(t,{params:e,loading:a}).then(e=>{n(e)}).catch(e=>{r(e)})}),n["default"].prototype.post=(e,t,a=!1)=>new Promise((n,r)=>{j.post(t,e,{loading:a}).then(e=>{n(e)}).catch(e=>{r(e)})});var K={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)}})}}}};n["default"].use(K),n["default"].config.productionTip=!1,n["default"].use(M()),n["default"].prototype.$bus=new n["default"],n["default"].use(Y.A,{preLoad:1.3,error:a(3153),loading:a(3153),attempt:3,listenEvents:["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],adapter:{loaded({bindType:e,el:t,naturalHeight:a,naturalWidth:n,$parent:r,src:o,loading:i,error:s,Init:c}){console.log("图片加载完成:",o)},error({bindType:e,el:t,error:a,$parent:n,src:r,loading:o}){console.log("图片加载失败:",r)}}}),n["default"].prototype.gotoPath=function(e,t={}){const a=this.$router.currentRoute.fullPath;if(e!==a)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(n){console.error("路由跳转失败:",n),"function"===typeof t.fail&&t.fail(n)}},new n["default"]({el:"#app",router:Q,store:G,components:{App:N},template:""})},3153:function(e){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3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cCiWIDth1YK4EaUU8z7Z7Ab/bbX+rUII0PdY36DcKJUgu8R7btnkcv83+RqEEaRncwnZkDscdsccqlCAthQrbDXM47gZ7rEIJ0nJ4lO2VE3z/ij1GoQRpWaxb4HcKJUhL4GW2XTN8vst+p1CCtDw+Oc6Y6/hEoQRpCRxm23rcv7fazxRKEIXFXZRuwBDZvxUC4GsIREHflguDkyQqaVYotIulUChBFAoliEKhBFEolCAKhRJEoVCCKBRKEIVCCaJQKJQgCoUSRKFQgigUShCFIhP8vwADACog5YM65zugAAAAAElFTkSuQmCC"}},t={};function a(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(o.exports,o,o.exports,a),o.loaded=!0,o.exports}a.m=e,function(){a.amdO={}}(),function(){var e=[];a.O=function(t,n,r,o){if(!n){var i=1/0;for(u=0;u=o)&&Object.keys(a.O).every(function(e){return a.O[e](n[c])})?n.splice(c--,1):(s=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o]}}(),function(){a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,{a:t}),t}}(),function(){a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){a.f={},a.e=function(e){return Promise.all(Object.keys(a.f).reduce(function(t,n){return a.f[n](e,t),t},[]))}}(),function(){a.u=function(e){return"js/"+e+"."+{29:"7eef1ca9",33:"d232b82b",110:"4a93ee72",113:"5c3b5964",169:"476d32e6",181:"a2fd06e0",208:"a0feba87",217:"d6b5d26b",244:"7d3000f2",322:"693252a2",334:"f62139de",406:"069a7943",411:"e9addbc3",441:"1691e640",452:"d6fc2b8c",573:"e3b0bcf8",592:"90e06992",677:"e7ad81c7",828:"3c50f0ff",838:"e0fbe621",882:"62bac42e",896:"996819fe",926:"d303aa93",927:"26798669",975:"6d55c1a8"}[e]+".js"}}(),function(){a.miniCssF=function(e){return"css/"+e+"."+{29:"2661f71c",33:"5507be5a",110:"854f9bc2",169:"a7db186a",181:"be611a62",208:"268eb302",217:"aab8f461",244:"edd4b6a0",322:"f144348b",334:"5db4c613",406:"efb923d9",411:"e4757598",441:"edf1b234",452:"42e712d8",573:"40f2ee96",592:"09b799c2",677:"51eebda5",828:"3ffea4ab",838:"4c0b65d7",882:"f420d2be",896:"f1192b9d",926:"a9594400",927:"6a2478bb",975:"7146016b"}[e]+".css"}}(),function(){a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="abcdf:";a.l=function(n,r,o,i){if(e[n])e[n].push(r);else{var s,c;if(void 0!==o)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('div',[_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()])])])]),(_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=adf79b44&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=adf79b44&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 \"adf79b44\",\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.$store.getters.getCartTotalCount}},[_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=f2321a44&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=f2321a44&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 \"f2321a44\",\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","// 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 orderData: null\n },\n mutations: {\n // 设置订单数据\n setOrderData(state, data) {\n state.orderData = data\n },\n // 清空订单数据\n clearOrderData(state) {\n state.orderData = null\n },\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 UPDATE_CART_TOTAL_COUNT(state, count) {\n state.cart.totalCount = count\n },\n\n setSearchText(state, text) {\n state.searchText = text;\n }\n },\n actions: {\n // 提交订单数据\n submitOrderData({ commit }, data) {\n commit('setOrderData', data)\n },\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({ dispatch }, product) {\n // 调用接口,参数为商品id和数量\n return Vue.prototype.post(\n {\n sku_id: product.id,\n num: product.quantity || 1\n },\n \"/api/cart/add_sku\"\n ).then((res) => {\n if (res) {\n // 添加成功后重新获取购物车数量\n return dispatch('fetchCartCount')\n }\n }).catch((err) => {\n console.error('添加到购物车请求失败', err);\n throw err\n });\n },\n\n // 获取购物车数量\n fetchCartCount({ commit, state }) {\n // 检查是否存在token,不存在则直接返回0\n if (!state.user.token) {\n commit('UPDATE_CART_TOTAL_COUNT', 0)\n return Promise.resolve(0)\n }\n return Vue.prototype.post(\n {},\n \"/api/cart/get_count\"\n ).then((res) => {\n console.log('购物车数量接口返回', res)\n if (res.code == 1) {\n commit('UPDATE_CART_TOTAL_COUNT', res.data)\n }\n return res.data\n }).catch((err) => {\n console.error('获取购物车数量失败', err)\n throw err\n });\n },\n \n // 从购物车移除商品\n removeFromCart({ dispatch }, productId) {\n // 调用删除接口\n return Vue.prototype.post(\n { sku_id: productId },\n \"/api/cart/remove_sku\"\n ).then(() => {\n // 删除成功后重新获取购物车数量\n return dispatch('fetchCartCount')\n }).catch(err => {\n console.error('删除购物车商品失败', err)\n throw err\n })\n },\n \n // 更新购物车商品数量\n updateCartItemQuantity({ dispatch }, { productId, quantity }) {\n // 调用更新数量接口\n return Vue.prototype.post(\n { \n sku_id: productId,\n num: quantity\n },\n \"/api/cart/add_sku\"\n ).then(() => {\n // 更新成功后重新获取购物车数量\n return dispatch('fetchCartCount')\n }).catch(err => {\n console.error('更新购物车商品数量失败', err)\n throw err\n })\n },\n \n // 清空购物车\n clearCart({ dispatch }) {\n // 调用清空接口\n return Vue.prototype.post(\n {},\n \"/api/cart/clear\"\n ).then(() => {\n // 清空成功后重新获取购物车数量\n return dispatch('fetchCartCount')\n }).catch(err => {\n console.error('清空购物车失败', err)\n throw err\n })\n }\n },\n getters: {\n // 获取订单数据\n getOrderData: state => state.orderData,\n\n // 获取分类列表\n getCategories: state => state.categories,\n \n // 获取购物车信息\n getCart: state => state.cart,\n \n // 获取购物车商品总数\n getCartTotalCount: state => state.cart.totalCount,\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 Router from 'vue-router'\r\nimport store from '@/store';\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 = store.state.user?.info?.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 axios from \"axios\";\r\nimport { Message, MessageBox, Loading } from \"element-ui\"; // 引入 Element UI 组件\r\nimport store from '@/store';\r\nimport router from \"@/router\"\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?.info?.token || '';\r\n config.headers['token'] = 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 }).then(() => {\r\n if (resData.code === 401) {\r\n // 存储当前路由(排除登录页自身,避免死循环)\r\n const currentPath = router.currentRoute.fullPath;\r\n if (currentPath !== '/Login') { // 假设登录页路径是 /Login\r\n localStorage.setItem('redirectPath', currentPath); // 存到本地存储\r\n }\r\n // 登录操作\r\n router.push(\"/Login\")\r\n }\r\n }).catch(() => {\r\n \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 router.push(\"/Login\")\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.prototype.$bus = new Vue()\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 + \".\" + {\"29\":\"7eef1ca9\",\"33\":\"d232b82b\",\"110\":\"4a93ee72\",\"113\":\"5c3b5964\",\"169\":\"476d32e6\",\"181\":\"a2fd06e0\",\"208\":\"a0feba87\",\"217\":\"d6b5d26b\",\"244\":\"7d3000f2\",\"322\":\"693252a2\",\"334\":\"f62139de\",\"406\":\"069a7943\",\"411\":\"e9addbc3\",\"441\":\"1691e640\",\"452\":\"d6fc2b8c\",\"573\":\"e3b0bcf8\",\"592\":\"90e06992\",\"677\":\"e7ad81c7\",\"828\":\"3c50f0ff\",\"838\":\"e0fbe621\",\"882\":\"62bac42e\",\"896\":\"996819fe\",\"926\":\"d303aa93\",\"927\":\"26798669\",\"975\":\"6d55c1a8\"}[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 + \".\" + {\"29\":\"2661f71c\",\"33\":\"5507be5a\",\"110\":\"854f9bc2\",\"169\":\"a7db186a\",\"181\":\"be611a62\",\"208\":\"268eb302\",\"217\":\"aab8f461\",\"244\":\"edd4b6a0\",\"322\":\"f144348b\",\"334\":\"5db4c613\",\"406\":\"efb923d9\",\"411\":\"e4757598\",\"441\":\"edf1b234\",\"452\":\"42e712d8\",\"573\":\"40f2ee96\",\"592\":\"09b799c2\",\"677\":\"51eebda5\",\"828\":\"3ffea4ab\",\"838\":\"4c0b65d7\",\"882\":\"f420d2be\",\"896\":\"f1192b9d\",\"926\":\"a9594400\",\"927\":\"6a2478bb\",\"975\":\"7146016b\"}[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 = {\"29\":1,\"33\":1,\"110\":1,\"169\":1,\"181\":1,\"208\":1,\"217\":1,\"244\":1,\"322\":1,\"334\":1,\"406\":1,\"411\":1,\"441\":1,\"452\":1,\"573\":1,\"592\":1,\"677\":1,\"828\":1,\"838\":1,\"882\":1,\"896\":1,\"926\":1,\"927\":1,\"975\":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__(748); })\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","path","$bus","emit","$router","push","query","keyword","$confirm","confirmButtonText","cancelButtonText","then","logout","$message","success","localStorage","setItem","catch","err","error","message","component","_m","staticStyle","handleCartClick","getters","handleServiceClick","class","active","isShowBackTop","handleBackToTop","cartCount","scrollTimer","mounted","window","addEventListener","handleScroll","dispatch","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","Vuex","plugins","createPersistedState","storage","reducer","val","cart","user","state","items","totalCount","totalPrice","token","orderData","mutations","setOrderData","clearOrderData","UPDATE_CATEGORIES","UPDATE_LOADING","status","USER_LOGIN","USER_LOGOUT","removeItem","UPDATE_CART_TOTAL_COUNT","count","setSearchText","text","actions","submitOrderData","Promise","resolve","id","icon","addToCart","product","prototype","post","sku_id","num","quantity","res","console","fetchCartCount","log","code","removeFromCart","productId","updateCartItemQuantity","clearCart","getOrderData","getCart","getSearchText","Router","originalPush","location","call","router","mode","base","process","routes","meta","title","keepAlive","redirect","children","scrollBehavior","to","from","savedPosition","x","y","beforeEach","next","document","requireAuth","store","fullPath","http","axios","create","timeout","interceptors","request","config","customBaseURL","params","baseURL","headers","method","toLowerCase","platform_type","loadingInstance","Loading","service","lock","background","reject","response","close","errorMsg","MessageBox","alert","Error","resData","msg","currentPath","currentRoute","confirm","Message","duration","get","url","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","gotoPath","options","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","reduce","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/assets/logo.png b/src/assets/logo.png index f3d2503..a828e2e 100644 Binary files a/src/assets/logo.png and b/src/assets/logo.png differ diff --git a/src/components/layout/HeaderNav.vue b/src/components/layout/HeaderNav.vue index 95e5c84..a89849a 100644 --- a/src/components/layout/HeaderNav.vue +++ b/src/components/layout/HeaderNav.vue @@ -42,6 +42,7 @@ src="https://static.ticket.sz-trip.com/shiweisuzhou/pc/logo.png" alt="logo" class="logo-img" + @click="searchText = ''" /> @@ -60,45 +61,29 @@ @click="handleSearch" > -
+
热门搜索:
- 手机 -
-
- 电脑 -
-
- 服装 + {{ item.name }}
-
+
联系电话 0512-680541 {{ @@ -148,6 +133,7 @@ export default { data() { return { searchText: "", + hotList: [], }; }, computed: { @@ -172,6 +158,11 @@ export default { }, created() { this.fetchCategories(); + + // 热门搜索词 + this.post({}, "/api/search/hot").then((res) => { + this.hotList = res.data; + }); }, methods: { ...mapActions(["fetchCategories", "logout"]), @@ -182,8 +173,7 @@ export default { // 判断当前是否在搜索结果页 if (this.$route.path === "/ProductList") { - // 如果在搜索页,触发父组件更新或重新获取数据 - this.$bus.emit("search-product", this.searchText); + } else { // 不在搜索页则跳转 this.$router.push({ diff --git a/src/components/layout/HomeLayout.vue b/src/components/layout/HomeLayout.vue index 45940ea..13e8cb7 100644 --- a/src/components/layout/HomeLayout.vue +++ b/src/components/layout/HomeLayout.vue @@ -54,14 +54,14 @@ 我的订单 - + +
+ + + + - - + - - - - - - - - + + + + - - + + - - + + - - - - - - - - + +
\ No newline at end of file diff --git a/src/views/User/UserInvoiceList.vue b/src/views/User/UserInvoiceList.vue index 57ca067..ec247d0 100644 --- a/src/views/User/UserInvoiceList.vue +++ b/src/views/User/UserInvoiceList.vue @@ -1,33 +1,49 @@