diff --git a/dist/css/286.84b91fbd.css b/dist/css/286.84b91fbd.css deleted file mode 100644 index 4445d8b..0000000 --- a/dist/css/286.84b91fbd.css +++ /dev/null @@ -1 +0,0 @@ -.bg[data-v-425bad3e]{display:flex;flex-direction:column}.bg[data-v-425bad3e] .el-button--text,.bg[data-v-425bad3e] .el-tabs__item.is-active{color:#6a8a27}.bg[data-v-425bad3e] .el-tabs__active-bar{background-color:#6a8a27}.bg[data-v-425bad3e] .el-tabs__item:hover{color:#6a8a27}.order-card[data-v-425bad3e]{border-radius:4px;overflow:hidden}.order-header[data-v-425bad3e]{padding:12px 20px;display:flex;align-items:center;background:#f8f9fa;border-bottom:1px solid #999;color:#666;font-size:14px}.order-products[data-v-425bad3e]{padding:10px 20px}.product-item[data-v-425bad3e]{display:flex;align-items:center;padding:15px 0;border-bottom:1px dashed #eee;font-size:14px}.product-item[data-v-425bad3e]:last-child{border-bottom:none}.product-image[data-v-425bad3e]{width:80px;height:80px;-o-object-fit:cover;object-fit:cover;margin-right:15px;border-radius:4px}.product-details[data-v-425bad3e]{flex:1}.product-name[data-v-425bad3e]{color:#333}.product-spec[data-v-425bad3e]{color:#999;font-size:12px}.product-box[data-v-425bad3e]{width:100px;text-align:center;color:#333}.product-quantity[data-v-425bad3e]{width:160px;text-align:center;color:#333}.product-select[data-v-425bad3e]{width:80px;color:#333}.product-price[data-v-425bad3e]{color:#ff5252}.cart-footer[data-v-425bad3e]{display:flex;justify-content:space-between;align-items:center;margin-top:10px;padding:15px;background-color:#f5f7fa;border-radius:4px}.selected-info[data-v-425bad3e]{color:#666;font-size:14px;padding-right:50px}.import-text[data-v-425bad3e]{color:#c7020b;font-size:20px;font-weight:700}.total-price[data-v-425bad3e]:before{content:"¥";margin-right:5px;font-size:12px} \ No newline at end of file diff --git a/dist/css/334.5db4c613.css b/dist/css/334.5db4c613.css new file mode 100644 index 0000000..45eec1c --- /dev/null +++ b/dist/css/334.5db4c613.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-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/893.3aae9905.css b/dist/css/441.edf1b234.css similarity index 50% rename from dist/css/893.3aae9905.css rename to dist/css/441.edf1b234.css index 8a461c0..773b061 100644 --- a/dist/css/893.3aae9905.css +++ b/dist/css/441.edf1b234.css @@ -1 +1 @@ -.avatar-uploader-icon[data-v-0e767484]{font-size:28px;color:#8c939d;width:100px;height:100px;line-height:100px;text-align:center}[data-v-0e767484] .avatar-uploader .el-upload{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.avatar[data-v-0e767484]{width:100px;height:100px;display:block}.hover-tip[data-v-0e767484]{position:absolute;bottom:0;left:0;right:0;width:100%;height:20px;text-align:center;line-height:20px;font-size:14px;color:#fff;background:rgba(0,0,0,.5)} \ No newline at end of file +.avatar-uploader-icon[data-v-441d4440]{font-size:28px;color:#8c939d;width:100px;height:100px;line-height:100px;text-align:center}[data-v-441d4440] .avatar-uploader .el-upload{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.avatar[data-v-441d4440]{width:100px;height:100px;display:block}.hover-tip[data-v-441d4440]{position:absolute;bottom:0;left:0;right:0;width:100%;height:20px;text-align:center;line-height:20px;font-size:14px;color:#fff;background:rgba(0,0,0,.5)} \ No newline at end of file diff --git a/dist/css/446.4288d89e.css b/dist/css/446.4288d89e.css deleted file mode 100644 index bc34960..0000000 --- a/dist/css/446.4288d89e.css +++ /dev/null @@ -1 +0,0 @@ -.bg[data-v-0653f094]{display:flex;flex-direction:column}.bg[data-v-0653f094] .el-button--text,.bg[data-v-0653f094] .el-tabs__item.is-active{color:#6a8a27}.bg[data-v-0653f094] .el-tabs__active-bar{background-color:#6a8a27}.bg[data-v-0653f094] .el-tabs__item:hover{color:#6a8a27}.filter-bar[data-v-0653f094]{margin-bottom:20px}.order-card[data-v-0653f094]{border:1px solid #eee;border-radius:4px;margin-bottom:20px;overflow:hidden}.order-header[data-v-0653f094]{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-0653f094]{padding:10px 20px}.product-item[data-v-0653f094]{display:flex;align-items:center;padding:15px 0;border-bottom:1px dashed #eee;font-size:14px}.product-item[data-v-0653f094]:last-child{border-bottom:none}.product-image[data-v-0653f094]{width:80px;height:80px;-o-object-fit:cover;object-fit:cover;margin-right:15px;border-radius:4px}.product-details[data-v-0653f094]{flex:1}.product-name[data-v-0653f094]{color:#333;margin-bottom:5px}.product-spec[data-v-0653f094]{color:#999;font-size:12px}.product-price[data-v-0653f094]{width:120px;text-align:center;color:#333}.product-quantity[data-v-0653f094]{width:100px;text-align:center;color:#666}.product-total[data-v-0653f094]{width:120px;text-align:center;color:#333;font-weight:500}.product-actions[data-v-0653f094],.product-status[data-v-0653f094]{width:150px;text-align:center}.order-footer[data-v-0653f094]{background-color:#f8f9fa;padding:15px 20px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid #eee}.order-summary[data-v-0653f094]{text-align:right}.order-amount[data-v-0653f094]{color:#333;margin-bottom:5px}.order-amount strong[data-v-0653f094]{color:#ff4d4f;font-size:16px}.order-tips[data-v-0653f094]{font-size:12px;color:#999}.order-actions[data-v-0653f094]{display:flex;gap:10px} \ No newline at end of file diff --git a/dist/css/573.40f2ee96.css b/dist/css/573.40f2ee96.css new file mode 100644 index 0000000..9ef548b --- /dev/null +++ b/dist/css/573.40f2ee96.css @@ -0,0 +1 @@ +.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/624.f7a540d4.css b/dist/css/624.f7a540d4.css deleted file mode 100644 index 24f9f85..0000000 --- a/dist/css/624.f7a540d4.css +++ /dev/null @@ -1 +0,0 @@ -.bg[data-v-e57efb46]{display:flex;flex-direction:column}.bg[data-v-e57efb46] .el-button--text{color:#6a8a27}.el-card[data-v-e57efb46]{margin-bottom:20px;border-radius:6px;box-shadow:0 2px 12px 0 rgba(0,0,0,.05);border:none}.el-card__header[data-v-e57efb46]{padding:16px 20px;border-bottom:1px solid #f0f0f0;background-color:#fff;font-size:16px;font-weight:500}.el-card__body[data-v-e57efb46]{padding:20px}.notice-bar[data-v-e57efb46]{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-e57efb46],.notice-bar__content[data-v-e57efb46]{display:flex;align-items:center}.notice-bar__content i[data-v-e57efb46]{margin-right:8px}.notice-bar__close[data-v-e57efb46]{cursor:pointer;transition:color .2s}.notice-bar__close[data-v-e57efb46]:hover{color:#fa8c16}.user-info[data-v-e57efb46]{display:flex;align-items:flex-start;padding:10px 0}.user-avatar[data-v-e57efb46]{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-e57efb46]{flex:1}.user-name[data-v-e57efb46]{font-size:20px;font-weight:500;margin-bottom:10px;color:#1f2329}.user-other-info[data-v-e57efb46]{color:#4e5969;margin-bottom:6px;font-size:14px}.login-info[data-v-e57efb46]{display:flex;padding-top:20px}.login-section[data-v-e57efb46]{flex:1}.login-section-title[data-v-e57efb46]{font-weight:500;margin-bottom:10px;color:#1f2329;font-size:15px}.login-detail[data-v-e57efb46]{color:#4e5969;font-size:14px;margin-bottom:6px}.feature-grid[data-v-e57efb46]{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-top:15px}.feature-item[data-v-e57efb46]{display:flex;flex-direction:column;align-items:center;padding:15px 10px;border-radius:6px;transition:all .2s;cursor:pointer}.feature-item[data-v-e57efb46]:hover{background-color:#f5f7fa}.feature-icon[data-v-e57efb46]{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-e57efb46]{font-size:14px;color:#4e5969} \ No newline at end of file diff --git a/dist/css/927.6a2478bb.css b/dist/css/927.6a2478bb.css new file mode 100644 index 0000000..54757fd --- /dev/null +++ b/dist/css/927.6a2478bb.css @@ -0,0 +1 @@ +.bg[data-v-90e50608]{display:flex;flex-direction:column}.bg[data-v-90e50608] .el-button--text,.bg[data-v-90e50608] .el-tabs__item.is-active{color:#6a8a27}.bg[data-v-90e50608] .el-tabs__active-bar{background-color:#6a8a27}.bg[data-v-90e50608] .el-tabs__item:hover{color:#6a8a27}.order-card[data-v-90e50608]{border-radius:4px;overflow:hidden}.order-header[data-v-90e50608]{padding:12px 20px;display:flex;align-items:center;background:#f8f9fa;border-bottom:1px solid #999;color:#666;font-size:14px}.order-products[data-v-90e50608]{padding:10px 20px}.product-item[data-v-90e50608]{display:flex;align-items:center;padding:15px 0;border-bottom:1px dashed #eee;font-size:14px}.product-item[data-v-90e50608]:last-child{border-bottom:none}.product-image[data-v-90e50608]{width:80px;height:80px;-o-object-fit:cover;object-fit:cover;margin-right:15px;border-radius:4px}.product-details[data-v-90e50608]{flex:1}.product-name[data-v-90e50608]{color:#333}.product-spec[data-v-90e50608]{color:#999;font-size:12px}.product-box[data-v-90e50608]{width:100px;text-align:center;color:#333}.product-quantity[data-v-90e50608]{width:160px;text-align:center;color:#333}.product-select[data-v-90e50608]{width:80px;color:#333}.product-price[data-v-90e50608]{color:#ff5252}.cart-footer[data-v-90e50608]{display:flex;justify-content:space-between;align-items:center;margin-top:10px;padding:15px;background-color:#f5f7fa;border-radius:4px}.selected-info[data-v-90e50608]{color:#666;font-size:14px;padding-right:50px}.import-text[data-v-90e50608]{color:#c7020b;font-size:20px;font-weight:700}.total-price[data-v-90e50608]:before{content:"¥";margin-right:5px;font-size:12px} \ No newline at end of file diff --git a/dist/css/955.7f61bedf.css b/dist/css/955.7f61bedf.css deleted file mode 100644 index 38ff5b5..0000000 --- a/dist/css/955.7f61bedf.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-0103a9f5]{max-width:1200px;margin:0 auto;padding:20px;background-color:#fff;border:1px solid #e6e6e6;border-radius:4px}.order-page .page-header[data-v-0103a9f5]{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.order-page .page-header h2[data-v-0103a9f5]{font-size:18px;font-weight:500;color:#333;margin:0}.order-page .page-header .address-book-btn[data-v-0103a9f5]{color:#409eff}.order-page .info-section[data-v-0103a9f5]{margin-bottom:20px}.order-page .info-section h3[data-v-0103a9f5]{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-0103a9f5],.order-page .info-section .invoice-address-item[data-v-0103a9f5],.order-page .info-section .invoice-title-item[data-v-0103a9f5],.order-page .info-section .invoice-type-item[data-v-0103a9f5],.order-page .info-section .trade-type-item[data-v-0103a9f5]{margin-bottom:15px;display:flex;align-items:center}.order-page .info-section .address-item .label[data-v-0103a9f5],.order-page .info-section .invoice-address-item .label[data-v-0103a9f5],.order-page .info-section .invoice-title-item .label[data-v-0103a9f5],.order-page .info-section .invoice-type-item .label[data-v-0103a9f5],.order-page .info-section .trade-type-item .label[data-v-0103a9f5]{width:120px;color:#666;font-size:14px;padding-top:5px}.order-page .info-section .address-item .address-content[data-v-0103a9f5],.order-page .info-section .invoice-address-item .address-content[data-v-0103a9f5],.order-page .info-section .invoice-title-item .address-content[data-v-0103a9f5],.order-page .info-section .invoice-type-item .address-content[data-v-0103a9f5],.order-page .info-section .trade-type-item .address-content[data-v-0103a9f5]{flex:1}.order-page .info-section .address-item .saved-address[data-v-0103a9f5],.order-page .info-section .invoice-address-item .saved-address[data-v-0103a9f5],.order-page .info-section .invoice-title-item .saved-address[data-v-0103a9f5],.order-page .info-section .invoice-type-item .saved-address[data-v-0103a9f5],.order-page .info-section .trade-type-item .saved-address[data-v-0103a9f5]{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-0103a9f5],.order-page .info-section .invoice-address-item .saved-address.selected[data-v-0103a9f5],.order-page .info-section .invoice-title-item .saved-address.selected[data-v-0103a9f5],.order-page .info-section .invoice-type-item .saved-address.selected[data-v-0103a9f5],.order-page .info-section .trade-type-item .saved-address.selected[data-v-0103a9f5]{border-color:#6a8a27;background-color:rgba(106,138,39,.05)}.order-page .info-section .address-item .saved-address .name-tag[data-v-0103a9f5],.order-page .info-section .invoice-address-item .saved-address .name-tag[data-v-0103a9f5],.order-page .info-section .invoice-title-item .saved-address .name-tag[data-v-0103a9f5],.order-page .info-section .invoice-type-item .saved-address .name-tag[data-v-0103a9f5],.order-page .info-section .trade-type-item .saved-address .name-tag[data-v-0103a9f5]{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-0103a9f5],.order-page .info-section .invoice-address-item .saved-address .detail[data-v-0103a9f5],.order-page .info-section .invoice-title-item .saved-address .detail[data-v-0103a9f5],.order-page .info-section .invoice-type-item .saved-address .detail[data-v-0103a9f5],.order-page .info-section .trade-type-item .saved-address .detail[data-v-0103a9f5]{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-0103a9f5],.order-page .info-section .address-item .saved-address .edit-btn[data-v-0103a9f5],.order-page .info-section .address-item .saved-address .set-default-btn[data-v-0103a9f5],.order-page .info-section .invoice-address-item .saved-address .delete-btn[data-v-0103a9f5],.order-page .info-section .invoice-address-item .saved-address .edit-btn[data-v-0103a9f5],.order-page .info-section .invoice-address-item .saved-address .set-default-btn[data-v-0103a9f5],.order-page .info-section .invoice-title-item .saved-address .delete-btn[data-v-0103a9f5],.order-page .info-section .invoice-title-item .saved-address .edit-btn[data-v-0103a9f5],.order-page .info-section .invoice-title-item .saved-address .set-default-btn[data-v-0103a9f5],.order-page .info-section .invoice-type-item .saved-address .delete-btn[data-v-0103a9f5],.order-page .info-section .invoice-type-item .saved-address .edit-btn[data-v-0103a9f5],.order-page .info-section .invoice-type-item .saved-address .set-default-btn[data-v-0103a9f5],.order-page .info-section .trade-type-item .saved-address .delete-btn[data-v-0103a9f5],.order-page .info-section .trade-type-item .saved-address .edit-btn[data-v-0103a9f5],.order-page .info-section .trade-type-item .saved-address .set-default-btn[data-v-0103a9f5]{margin-left:10px;color:#409eff;font-size:13px;padding:0;height:auto}.order-page .info-section .address-item .el-radio[data-v-0103a9f5],.order-page .info-section .invoice-address-item .el-radio[data-v-0103a9f5],.order-page .info-section .invoice-title-item .el-radio[data-v-0103a9f5],.order-page .info-section .invoice-type-item .el-radio[data-v-0103a9f5],.order-page .info-section .trade-type-item .el-radio[data-v-0103a9f5]{margin-right:15px;margin-top:3px}.order-page .info-section .address-item .invoice-title-select[data-v-0103a9f5],.order-page .info-section .invoice-address-item .invoice-title-select[data-v-0103a9f5],.order-page .info-section .invoice-title-item .invoice-title-select[data-v-0103a9f5],.order-page .info-section .invoice-type-item .invoice-title-select[data-v-0103a9f5],.order-page .info-section .trade-type-item .invoice-title-select[data-v-0103a9f5]{width:300px;margin-top:3px}.order-page .info-section .address-item .add-title-btn[data-v-0103a9f5],.order-page .info-section .invoice-address-item .add-title-btn[data-v-0103a9f5],.order-page .info-section .invoice-title-item .add-title-btn[data-v-0103a9f5],.order-page .info-section .invoice-type-item .add-title-btn[data-v-0103a9f5],.order-page .info-section .trade-type-item .add-title-btn[data-v-0103a9f5]{margin-left:10px;color:#409eff;padding:0;height:auto}.order-page .contract-section[data-v-0103a9f5]{margin-bottom:20px;padding:15px;background-color:#f9f9f9;border-radius:4px}.order-page .contract-section h3[data-v-0103a9f5]{font-size:16px;font-weight:500;color:#333;margin-bottom:10px;margin-top:0}.order-page .contract-section p[data-v-0103a9f5]{font-size:14px;color:#666;margin:0}.order-page .goods-section h3[data-v-0103a9f5]{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-0103a9f5]{margin-bottom:20px;border:1px solid #e6e6e6;border-radius:4px;overflow:hidden}.order-page .goods-section .order-group .supplier-info[data-v-0103a9f5]{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-0103a9f5]{width:100%;border-collapse:collapse}.order-page .goods-section .order-group .goods-table th[data-v-0103a9f5]{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-0103a9f5]{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-0103a9f5]{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-0103a9f5]{vertical-align:middle;max-width:200px;display:inline-block}.order-page .goods-section .order-group .goods-table .subtotal[data-v-0103a9f5]{color:#ff4d4f;font-weight:500}.order-page .goods-section .order-group .order-remark[data-v-0103a9f5]{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-0103a9f5]{display:block;margin-bottom:10px;font-weight:500}.order-page .goods-section .order-group .order-remark .rich-text-editor[data-v-0103a9f5]{border:1px solid #e6e6e6;border-radius:4px;overflow:hidden}.order-page .goods-section .order-group .order-remark .rich-text-editor .remark-editor[data-v-0103a9f5]{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-0103a9f5]{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-0103a9f5]{margin-right:5px}.order-page .goods-section .total-info[data-v-0103a9f5]{text-align:right;padding:20px;background-color:#f5f7fa;border-radius:4px;margin-top:10px}.order-page .goods-section .total-info p[data-v-0103a9f5]{margin:8px 0;color:#333;font-size:14px}.order-page .goods-section .total-info .pay-amount[data-v-0103a9f5]{font-weight:700;color:#ff4d4f;font-size:16px;margin:15px 0}.order-page .goods-section .total-info .address-info[data-v-0103a9f5]{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-0103a9f5]{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-0103a9f5]:hover{background-color:#e03e40}@media(max-width:768px){.order-page[data-v-0103a9f5]{padding:10px}.info-section .address-item[data-v-0103a9f5],.info-section .invoice-address-item[data-v-0103a9f5],.info-section .invoice-title-item[data-v-0103a9f5],.info-section .invoice-type-item[data-v-0103a9f5],.info-section .trade-type-item[data-v-0103a9f5]{flex-direction:column}.info-section .address-item .label[data-v-0103a9f5],.info-section .invoice-address-item .label[data-v-0103a9f5],.info-section .invoice-title-item .label[data-v-0103a9f5],.info-section .invoice-type-item .label[data-v-0103a9f5],.info-section .trade-type-item .label[data-v-0103a9f5]{width:100%;margin-bottom:5px;padding-top:0}.info-section .address-item .saved-address[data-v-0103a9f5],.info-section .invoice-address-item .saved-address[data-v-0103a9f5],.info-section .invoice-title-item .saved-address[data-v-0103a9f5],.info-section .invoice-type-item .saved-address[data-v-0103a9f5],.info-section .trade-type-item .saved-address[data-v-0103a9f5]{flex-direction:column;align-items:flex-start}.info-section .address-item .saved-address .detail[data-v-0103a9f5],.info-section .address-item .saved-address .name-tag[data-v-0103a9f5],.info-section .invoice-address-item .saved-address .detail[data-v-0103a9f5],.info-section .invoice-address-item .saved-address .name-tag[data-v-0103a9f5],.info-section .invoice-title-item .saved-address .detail[data-v-0103a9f5],.info-section .invoice-title-item .saved-address .name-tag[data-v-0103a9f5],.info-section .invoice-type-item .saved-address .detail[data-v-0103a9f5],.info-section .invoice-type-item .saved-address .name-tag[data-v-0103a9f5],.info-section .trade-type-item .saved-address .detail[data-v-0103a9f5],.info-section .trade-type-item .saved-address .name-tag[data-v-0103a9f5]{margin-bottom:8px;width:100%}.info-section .address-item .saved-address .delete-btn[data-v-0103a9f5],.info-section .address-item .saved-address .edit-btn[data-v-0103a9f5],.info-section .address-item .saved-address .set-default-btn[data-v-0103a9f5],.info-section .invoice-address-item .saved-address .delete-btn[data-v-0103a9f5],.info-section .invoice-address-item .saved-address .edit-btn[data-v-0103a9f5],.info-section .invoice-address-item .saved-address .set-default-btn[data-v-0103a9f5],.info-section .invoice-title-item .saved-address .delete-btn[data-v-0103a9f5],.info-section .invoice-title-item .saved-address .edit-btn[data-v-0103a9f5],.info-section .invoice-title-item .saved-address .set-default-btn[data-v-0103a9f5],.info-section .invoice-type-item .saved-address .delete-btn[data-v-0103a9f5],.info-section .invoice-type-item .saved-address .edit-btn[data-v-0103a9f5],.info-section .invoice-type-item .saved-address .set-default-btn[data-v-0103a9f5],.info-section .trade-type-item .saved-address .delete-btn[data-v-0103a9f5],.info-section .trade-type-item .saved-address .edit-btn[data-v-0103a9f5],.info-section .trade-type-item .saved-address .set-default-btn[data-v-0103a9f5]{margin-left:0;margin-right:10px;display:inline-block}.info-section .address-item .invoice-title-select[data-v-0103a9f5],.info-section .invoice-address-item .invoice-title-select[data-v-0103a9f5],.info-section .invoice-title-item .invoice-title-select[data-v-0103a9f5],.info-section .invoice-type-item .invoice-title-select[data-v-0103a9f5],.info-section .trade-type-item .invoice-title-select[data-v-0103a9f5]{width:100%}.goods-section .goods-table[data-v-0103a9f5]{font-size:12px}.goods-section .order-group .goods-table td[data-v-0103a9f5],.goods-section .order-group .goods-table th[data-v-0103a9f5]{padding:8px;font-size:12px}.goods-section .order-group .goods-name[data-v-0103a9f5]{max-width:100px}.goods-section .total-info[data-v-0103a9f5]{padding:15px}.goods-section .total-info .submit-btn[data-v-0103a9f5]{width:100%}} \ No newline at end of file diff --git a/dist/css/975.7146016b.css b/dist/css/975.7146016b.css new file mode 100644 index 0000000..34e1f7b --- /dev/null +++ b/dist/css/975.7146016b.css @@ -0,0 +1 @@ +.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/index.html b/dist/index.html index be7d06b..481ed71 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/286.8f0d1d9c.js.map b/dist/js/286.8f0d1d9c.js.map deleted file mode 100644 index 9d2680c..0000000 --- a/dist/js/286.8f0d1d9c.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/286.8f0d1d9c.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,CAAC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,GACA,KAAAqD,gBACA,EAEAA,cAAAA,GACA,KAAAhE,KAAAuC,QAAAC,IACAA,EAAA9B,MAAA2D,KAAAC,GAAA,MAAAA,EAAAtD,IAAAmD,MACA3B,EAAA9B,MAAA2D,KAAAC,GAAA,MAAAA,EAAAtD,IAAAmD,OAAAG,EAAAhE,UACAkC,EAAAlC,UAAA,EAEAkC,EAAAlC,UAAA,EAGAkC,EAAAlC,UAAA,IAIA,KAAAN,KAAAuE,MAAA/B,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,IAAAqC,cAAA,QACA,wBACAC,KAAAC,MACA,EAEAtC,OAAAA,CAAA4B,GACA,KAAAO,KACA,CAAAtD,GAAA+C,EAAA/C,GAAAuD,cAAA,QACA,qBACAC,KAAAC,IACA,KAAAxB,WAEA,EACAV,cAAAA,GACA,IAAA8C,EAAA,KAAA/C,aAAAsB,IAAAP,GAAAA,EAAArC,IAAAsE,KAAA,KACA,KAAAhB,KAAA,CAAAe,IAAAA,EAAAd,cAAA,8BAAAC,KACAC,IACA,KAAAxB,WAGA,EAGAsC,gBAAAA,CAAAT,GACA,KAAA/B,SAAA+B,CACA,EAGAU,mBAAAA,CAAAV,GACA,KAAAhC,YAAAgC,CACA,EAGAW,QAAAA,CAAAC,GACA,KAAAC,SAAA,CACAC,QAAA,MAAAF,QACAG,KAAA,QAEA,IClToQ,I,UCQhQC,GAAY,OACd,EACAnG,EACA+C,GACA,EACA,KACA,WACA,MAIF,EAAeoD,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=425bad3e&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=425bad3e&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 \"425bad3e\",\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","customBaseURL","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/334.f62139de.js b/dist/js/334.f62139de.js new file mode 100644 index 0000000..966ac61 --- /dev/null +++ b/dist/js/334.f62139de.js @@ -0,0 +1,2 @@ +"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 new file mode 100644 index 0000000..cdb0b0c --- /dev/null +++ b/dist/js/334.f62139de.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/334.f62139de.js","mappings":"yIAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAO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E,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/441.1691e640.js b/dist/js/441.1691e640.js new file mode 100644 index 0000000..9be39cf --- /dev/null +++ b/dist/js/441.1691e640.js @@ -0,0 +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 diff --git a/dist/js/441.1691e640.js.map b/dist/js/441.1691e640.js.map new file mode 100644 index 0000000..9e29130 --- /dev/null +++ b/dist/js/441.1691e640.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/441.1691e640.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,WAAWE,MAAM,CAAC,KAAO,UAAUC,KAAK,UAAU,CAACL,EAAG,OAAO,CAACF,EAAIQ,GAAG,YAAYN,EAAG,MAAM,CAACG,YAAY,CAAC,gBAAgB,UAAU,CAACH,EAAG,UAAU,CAACO,IAAI,WAAWH,MAAM,CAAC,MAAQN,EAAIU,KAAK,cAAc,QAAQ,KAAO,UAAU,CAACR,EAAG,eAAe,CAACI,MAAM,CAAC,MAAQ,SAAS,CAACJ,EAAG,YAAY,CAACE,YAAY,kBAAkBE,MAAM,CAAC,OAAS,IAAI,eAAc,EAAM,YAAYN,EAAIW,mBAAmB,kBAAiB,IAAQ,CAAEX,EAAIU,KAAKE,OAAQV,EAAG,MAAM,CAACG,YAAY,CAAC,SAAW,aAAa,CAACH,EAAG,MAAM,CAACE,YAAY,SAASE,MAAM,CAAC,IAAMN,EAAIU,KA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ACA,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/446.3d8319df.js.map b/dist/js/446.3d8319df.js.map deleted file mode 100644 index 8088795..0000000 --- a/dist/js/446.3d8319df.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/446.3d8319df.js","mappings":"sJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,MAAM,CAACF,EAAG,UAAU,CAACG,MAAM,CAACC,MAAON,EAAIO,UAAWC,SAAS,SAAUC,GAAMT,EAAIO,UAAUE,CAAG,EAAEC,WAAW,cAAc,CAACR,EAAG,cAAc,CAACS,MAAM,CAAC,MAAQ,OAAO,KAAO,SAAST,EAAG,cAAc,CAACS,MAAM,CAAC,MAAQ,MAAM,KAAO,oBAAoBT,EAAG,cAAc,CAACS,MAAM,CAAC,MAAQ,MAAM,KAAO,qBAAqBT,EAAG,cAAc,CAACS,MAAM,CAAC,MAAQ,MAAM,KAAO,gBAAgBT,EAAG,cAAc,CAACS,MAAM,CAAC,MAAQ,MAAM,KAAO,oBAAoB,GAAGT,EAAG,MAAM,CAACE,YAAY,cAAc,CAACF,EAAG,UAAU,CAACS,MAAM,CAAC,QAAS,EAAK,MAAQX,EAAIY,WAAW,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AAY,OACd,EACAhG,EACAkE,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('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=0653f094&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=0653f094&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 \"0653f094\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","model","value","activeTab","callback","$$v","expression","attrs","filterForm","keywords","$set","order_id","createTime","merchantName","staticStyle","tradeStatus","_l","typeList","item","i","key","name","id","finishTime","on","search","_v","reset","_m","orders","order","_s","create_time","getStatusTagType","state","state_text","order_product_list","product","product_img","product_title","sku_name","product_price","toFixed","product_num","paid_money","total_post_fee","$event","viewOrderDetail","status","payOrder","_e","remindDelivery","checkLogistics","isReviewed","gotoReview","length","currentPage","limit","total","handleSizeChange","handleCurrentChange","staticRenderFns","data","start_date","end_date","computed","mounted","getList","methods","post","offset","customBaseURL","then","res","list","val","getStatusText","statusMap","pendingPayment","pendingDelivery","delivering","completed","cancelled","typeMap","orderId","$message","message","type","$router","push","path","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/446.3d8319df.js b/dist/js/573.e3b0bcf8.js similarity index 84% rename from dist/js/446.3d8319df.js rename to dist/js/573.e3b0bcf8.js index d3e8d25..6c30a7e 100644 --- a/dist/js/446.3d8319df.js +++ b/dist/js/573.e3b0bcf8.js @@ -1,2 +1,2 @@ -"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[446],{4446: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,customBaseURL:"/api"},"/api/order/list").then(e=>{this.orders=e.data.list,this.filterForm.total=e.data.total})},search(){},reset(){},handleSizeChange(e){this.filterForm.limit=e,this.filterForm.currentPage=1,this.getList()},handleCurrentChange(e){this.filterForm.currentPage=e,this.getList()},getStatusText(e){const t={pendingPayment:"待付款",pendingDelivery:"待发货",delivering:"配送中",completed:"已完成",cancelled:"已取消"};return t[e]||e},getStatusTagType(e){const t={pendingPayment:"warning",pendingDelivery:"info",delivering:"primary",completed:"success",cancelled:"danger"};return t[e]||"default"},payOrder(e){this.$message({message:`订单 ${e} 去付款`,type:"info"})},remindDelivery(e){this.$message({message:`已提醒订单 ${e} 发货`,type:"success"})},checkLogistics(e){this.$message({message:`查看订单 ${e} 物流`,type:"info"})},gotoReview(e){this.$message({message:`去评价订单 ${e}`,type:"info"})},viewOrderDetail(e){this.$router.push({path:"/OrderDetail?id="+e})}}}),l=s,o=i(1656),n=(0,o.A)(l,r,a,!1,null,"0653f094",null),d=n.exports}}]); -//# sourceMappingURL=446.3d8319df.js.map \ No newline at end of file +"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 new file mode 100644 index 0000000..e9751f4 --- /dev/null +++ b/dist/js/573.e3b0bcf8.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/573.e3b0bcf8.js","mappings":"sJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,MAAM,CAACF,EAAG,UAAU,CAACG,MAAM,CAACC,MAAON,EAAIO,UAAWC,SAAS,SAAUC,GAAMT,EAAIO,UAAUE,CAAG,EAAEC,WAAW,cAAc,CAACR,EAAG,cAAc,CAACS,MAAM,CAAC,MAAQ,OAAO,KAAO,SAAST,EAAG,cAAc,CAACS,MAAM,CAAC,MAAQ,MAAM,KAAO,oBAAoBT,EAAG,cAAc,CAACS,MAAM,CAAC,MAAQ,MAAM,KAAO,qBAAqBT,EAAG,cAAc,CAACS,MAAM,CAAC,MAAQ,MAAM,KAAO,gBAAgBT,EAAG,cAAc,CAACS,MA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AC,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/624.1742d542.js.map b/dist/js/624.1742d542.js.map deleted file mode 100644 index b737274..0000000 --- a/dist/js/624.1742d542.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/624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AAAA,CAAAd,GACA,KAAAgC,QAAAC,KAAAjC,EACA,EAGAY,MAAAA,GACA,MAAAsB,EAAAC,SAAAC,cAAA,SACAF,EAAAlB,MAAA,KAAAK,OACAc,SAAAE,KAAAC,YAAAJ,GACAA,EAAAK,SACAJ,SAAAK,YAAA,QACAL,SAAAE,KAAAI,YAAAP,GAEA,KAAAQ,SAAA,CACAC,QAAA,QACAC,KAAA,WAEA,KClKkQ,I,UCQ9PC,GAAY,OACd,EACA9D,EACAmC,GACA,EACA,KACA,WACA,MAIF,EAAe2B,E","sources":["webpack://abcdf/./src/views/User/UserCenter.vue","webpack://abcdf/src/views/User/UserCenter.vue","webpack://abcdf/./src/views/User/UserCenter.vue?f7cc","webpack://abcdf/./src/views/User/UserCenter.vue?715c"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg\"},[(_vm.showNotice)?_c('div',{staticClass:\"notice-bar\"},[_vm._m(0),_c('div',{staticClass:\"notice-bar__close\",on:{\"click\":function($event){_vm.showNotice = false}}},[_c('i',{staticClass:\"el-icon-close\"})])]):_vm._e(),_c('el-card',[_c('el-row',{attrs:{\"gutter\":20}},_vm._l((_vm.headFun),function(item,i){return _c('el-col',{key:i,attrs:{\"xs\":24,\"sm\":8,\"md\":8}},[_c('router-link',{staticClass:\"feature-item\",attrs:{\"to\":item.path}},[_c('div',{staticClass:\"feature-icon\"},[_c('i',{class:item.icon})]),_c('span',{staticClass:\"feature-name\"},[_vm._v(_vm._s(item.title))]),_c('el-button',{staticStyle:{\"margin-top\":\"5px\"},attrs:{\"type\":\"text\",\"size\":\"mini\"}},[_vm._v(\"去设置\")])],1)],1)}),1)],1),(_vm.userInfo)?_c('el-card',[_c('div',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_vm._v(\"个人信息\")]),_c('div',{staticClass:\"user-info\"},[_c('img',{staticClass:\"user-avatar\",attrs:{\"src\":_vm.userInfo.avatar,\"alt\":\"用户头像\"}}),_c('div',{staticClass:\"user-details\"},[_c('div',[_c('div',{staticClass:\"user-name\"},[_vm._v(_vm._s(_vm.userInfo.nickname))]),_c('div',{staticClass:\"user-other-info\"},[_vm._v(\" ID: \"+_vm._s(_vm.userInfo.user_id)+\" \"),_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"mini\"},on:{\"click\":_vm.copyId}},[_vm._v(\"复制\")])],1),_c('div',{staticClass:\"user-other-info\"},[_vm._v(\"手机号: \"+_vm._s(_vm.userInfo.mobile))])]),_c('div',{staticClass:\"login-info\"},[_c('div',{staticClass:\"login-section\"},[_c('div',{staticClass:\"login-section-title\"},[_vm._v(\"当前登录信息\")]),_c('div',{staticClass:\"login-detail\"},[_vm._v(\"登录设备: Edge浏览器\")]),_c('div',{staticClass:\"login-detail\"},[_vm._v(\"登录地点: 中国广东深圳\")]),_c('div',{staticClass:\"login-detail\"},[_vm._v(\"登录时间: 2099-02-23 10:09:50\")])]),_c('div',{staticClass:\"login-section\"},[_c('div',{staticClass:\"login-section-title\"},[_vm._v(\"上次登录信息\")]),_c('div',{staticClass:\"login-detail\"},[_vm._v(\"登录设备: 微信小程序\")]),_c('div',{staticClass:\"login-detail\"},[_vm._v(\"登录地点: 中国广东深圳\")]),_c('div',{staticClass:\"login-detail\"},[_vm._v(\"登录时间: 2099-02-05 10:46:45\")])])])]),_c('div',[_c('el-button',{staticStyle:{\"background-color\":\"#6a8a27\",\"border\":\"none\"},attrs:{\"type\":\"primary\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.goPath('/User/UserInfo')}}},[_c('i',{staticClass:\"el-icon-edit\"}),_vm._v(\" 编辑个人信息 \")])],1)])]):_vm._e(),_c('div',{staticClass:\"flex-center\"},[_c('el-card',{staticStyle:{\"flex\":\"1\"}},[_c('div',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_vm._v(\"我的议价\")]),_c('div',{staticClass:\"feature-grid\"},_vm._l((_vm.bargaining),function(item,i){return _c('div',{key:i,staticClass:\"feature-item\"},[(item.value)?_c('el-badge',{attrs:{\"value\":item.value,\"type\":\"danger\"}},[_c('div',{staticClass:\"feature-icon\"},[_c('i',{class:item.icon})])]):_c('div',{staticClass:\"feature-icon\"},[_c('i',{class:item.icon})]),_c('span',{staticClass:\"feature-name\"},[_vm._v(_vm._s(item.title))])],1)}),0)]),_c('div',{staticStyle:{\"width\":\"20px\",\"flex-shrink\":\"0\"}}),_c('el-card',{staticStyle:{\"flex\":\"1\"}},[_c('div',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_vm._v(\"我的订单\")]),_c('div',{staticClass:\"feature-grid\"},_vm._l((_vm.order),function(item,i){return _c('div',{key:i,staticClass:\"feature-item\"},[(item.value)?_c('el-badge',{attrs:{\"value\":item.value,\"type\":\"danger\"}},[_c('div',{staticClass:\"feature-icon\"},[_c('i',{class:item.icon})])]):_c('div',{staticClass:\"feature-icon\"},[_c('i',{class:item.icon})]),_c('span',{staticClass:\"feature-name\"},[_vm._v(_vm._s(item.title))])],1)}),0)])],1)],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"notice-bar__content\"},[_c('i',{staticClass:\"el-icon-lightbulb\"}),_vm._v(\" 尊敬的采购人,欢迎来到时味苏州企业采购平台!您可以先完成下方的基础设置,方便您更高效的采购。 \")])\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=e57efb46&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=e57efb46&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 \"e57efb46\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","showNotice","_m","on","$event","_e","attrs","_l","headFun","item","i","key","path","class","icon","_v","_s","title","staticStyle","userInfo","slot","avatar","nickname","user_id","copyId","mobile","goPath","bargaining","value","order","staticRenderFns","name","data","userId","computed","mounted","getUserInfo","methods","post","customBaseURL","then","res","console","log","$router","push","input","document","createElement","body","appendChild","select","execCommand","removeChild","$message","message","type","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/893.906271e2.js b/dist/js/893.906271e2.js deleted file mode 100644 index eb18979..0000000 --- a/dist/js/893.906271e2.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[893],{5893:function(e,t,a){a.r(t),a.d(t,{default:function(){return u}});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"bg"},[t("el-card",{staticStyle:{width:"100%"}},[t("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[t("span",[e._v("个人信息")])]),t("div",{staticStyle:{"padding-right":"200px"}},[t("el-form",{ref:"userForm",attrs:{model:e.user,"label-width":"100px",size:"small"}},[t("el-form-item",{attrs:{label:"用户头像"}},[t("el-upload",{staticClass:"avatar-uploader",attrs:{action:"#","auto-upload":!1,"on-change":e.handleAvatarChange,"show-file-list":!1}},[e.user.avatar?t("div",{staticStyle:{position:"relative"}},[t("img",{staticClass:"avatar",attrs:{src:e.user.avatar}}),t("div",{staticClass:"hover-tip"},[e._v("修改头像")])]):t("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1),t("el-form-item",{attrs:{label:"昵称",prop:"nickname",rules:[{required:!0,message:"请输入昵称"}]}},[t("el-input",{attrs:{placeholder:"请输入昵称"},model:{value:e.user.nickname,callback:function(t){e.$set(e.user,"nickname",t)},expression:"user.nickname"}})],1),t("el-form-item",{attrs:{label:"用户ID"}},[t("el-input",{attrs:{disabled:""},model:{value:e.user.user_id,callback:function(t){e.$set(e.user,"user_id",t)},expression:"user.user_id"}},[t("template",{slot:"append"},[t("el-button",{on:{click:e.copyId}},[e._v("复制")])],1)],2)],1),t("el-form-item",{attrs:{label:"性别"}},[t("el-radio-group",{model:{value:e.user.gender,callback:function(t){e.$set(e.user,"gender",t)},expression:"user.gender"}},[t("el-radio",{attrs:{label:1}},[e._v("男性")]),t("el-radio",{attrs:{label:2}},[e._v("女性")]),t("el-radio",{attrs:{label:0}},[e._v("保密")])],1)],1),t("el-form-item",{attrs:{label:"生日"}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期","value-format":"yyyy-MM-dd"},model:{value:e.user.birthday,callback:function(t){e.$set(e.user,"birthday",t)},expression:"user.birthday"}})],1),t("el-form-item",{staticClass:"form-actions"},[t("el-button",{attrs:{type:"primary"},on:{click:e.saveUser}},[e._v("保存")])],1)],1)],1)])],1)},r=[],l={name:"UserInfo",data(){return{user:{avatar:"",nickname:"",id:"",gender:null,birthday:null}}},mounted(){this.getUserInfo()},methods:{getUserInfo(){this.post({customBaseURL:"/api"},"/api/uservice/user/getMyInfo").then(e=>{this.user=e.data})},handleAvatarChange(e){this.util.imgToBase64(e.raw).then(e=>{console.log(e),this.post({customBaseURL:"/api",img_base64:e},"/api/pbservice/Other/base64Upload").then(e=>{this.user.avatar=e.data.url})})},copyId(){const e=document.createElement("input");e.value=this.user.id,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),this.$message({message:"用户ID已复制",type:"success"})},saveUser(){this.$refs.userForm.validate(e=>{e&&this.post({customBaseURL:"/api",...this.user},"/api/uservice/user/profile").then(e=>{1==e.code&&this.$message({message:"修改成功",type:"success"})})})}}},i=l,o=a(1656),n=(0,o.A)(i,s,r,!1,null,"0e767484",null),u=n.exports}}]); -//# sourceMappingURL=893.906271e2.js.map \ No newline at end of file diff --git a/dist/js/893.906271e2.js.map b/dist/js/893.906271e2.js.map deleted file mode 100644 index e3f66bf..0000000 --- a/dist/js/893.906271e2.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/893.906271e2.js","mappings":"sJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,MAAM,CAACF,EAAG,UAAU,CAACG,YAAY,CAAC,MAAQ,SAAS,CAACH,EAAG,MAAM,CAACE,YAAY,WAAWE,MAAM,CAAC,KAAO,UAAUC,KAAK,UAAU,CAACL,EAAG,OAAO,CAACF,EAAIQ,GAAG,YAAYN,EAAG,MAAM,CAACG,YAAY,CAAC,gBAAgB,UAAU,CAACH,EAAG,UAAU,CAACO,IAAI,WAAWH,MAAM,CAAC,MAAQN,EAAIU,KAAK,cAAc,QAAQ,KAAO,UAAU,CAACR,EAAG,eAAe,CAACI,MAAM,CAAC,MAAQ,SAAS,CAACJ,EAAG,YAAY,CAACE,YAAY,kBAAkBE,MAAM,CAAC,OAAS,IAAI,eAAc,EAAM,YAAYN,EAAIW,mBAAmB,kBAAiB,IAAQ,CAAEX,EAAIU,KAAKE,OAAQV,EAAG,MAAM,CAACG,YAAY,CAAC,SAAW,aAAa,CAACH,EAAG,MAAM,CAACE,YAAY,SAASE,MAAM,CAAC,IAAMN,EAAIU,KAAKE,UAAUV,EAAG,MAAM,CAACE,YAAY,aAAa,CAACJ,EAAIQ,GAAG,YAAYN,EAAG,IAAI,CAACE,YAAY,yCAAyC,GAAGF,EAAG,eAAe,CAACI,MAAM,CAAC,MAAQ,KAAK,KAAO,WAAW,MAAQ,CA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["webpack://abcdf/./src/views/User/UserInfo.vue","webpack://abcdf/src/views/User/UserInfo.vue","webpack://abcdf/./src/views/User/UserInfo.vue?a3cf","webpack://abcdf/./src/views/User/UserInfo.vue?e070"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg\"},[_c('el-card',{staticStyle:{\"width\":\"100%\"}},[_c('div',{staticClass:\"clearfix\",attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('span',[_vm._v(\"个人信息\")])]),_c('div',{staticStyle:{\"padding-right\":\"200px\"}},[_c('el-form',{ref:\"userForm\",attrs:{\"model\":_vm.user,\"label-width\":\"100px\",\"size\":\"small\"}},[_c('el-form-item',{attrs:{\"label\":\"用户头像\"}},[_c('el-upload',{staticClass:\"avatar-uploader\",attrs:{\"action\":\"#\",\"auto-upload\":false,\"on-change\":_vm.handleAvatarChange,\"show-file-list\":false}},[(_vm.user.avatar)?_c('div',{staticStyle:{\"position\":\"relative\"}},[_c('img',{staticClass:\"avatar\",attrs:{\"src\":_vm.user.avatar}}),_c('div',{staticClass:\"hover-tip\"},[_vm._v(\"修改头像\")])]):_c('i',{staticClass:\"el-icon-plus avatar-uploader-icon\"})])],1),_c('el-form-item',{attrs:{\"label\":\"昵称\",\"prop\":\"nickname\",\"rules\":[{ required: true, message: '请输入昵称' }]}},[_c('el-input',{attrs:{\"placeholder\":\"请输入昵称\"},model:{value:(_vm.user.nickname),callback:function ($$v) {_vm.$set(_vm.user, \"nickname\", $$v)},expression:\"user.nickname\"}})],1),_c('el-form-item',{attrs:{\"label\":\"用户ID\"}},[_c('el-input',{attrs:{\"disabled\":\"\"},model:{value:(_vm.user.user_id),callback:function ($$v) {_vm.$set(_vm.user, \"user_id\", $$v)},expression:\"user.user_id\"}},[_c('template',{slot:\"append\"},[_c('el-button',{on:{\"click\":_vm.copyId}},[_vm._v(\"复制\")])],1)],2)],1),_c('el-form-item',{attrs:{\"label\":\"性别\"}},[_c('el-radio-group',{model:{value:(_vm.user.gender),callback:function ($$v) {_vm.$set(_vm.user, \"gender\", $$v)},expression:\"user.gender\"}},[_c('el-radio',{attrs:{\"label\":1}},[_vm._v(\"男性\")]),_c('el-radio',{attrs:{\"label\":2}},[_vm._v(\"女性\")]),_c('el-radio',{attrs:{\"label\":0}},[_vm._v(\"保密\")])],1)],1),_c('el-form-item',{attrs:{\"label\":\"生日\"}},[_c('el-date-picker',{staticStyle:{\"width\":\"100%\"},attrs:{\"type\":\"date\",\"placeholder\":\"选择日期\",\"value-format\":\"yyyy-MM-dd\"},model:{value:(_vm.user.birthday),callback:function ($$v) {_vm.$set(_vm.user, \"birthday\", $$v)},expression:\"user.birthday\"}})],1),_c('el-form-item',{staticClass:\"form-actions\"},[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.saveUser}},[_vm._v(\"保存\")])],1)],1)],1)])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./UserInfo.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./UserInfo.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./UserInfo.vue?vue&type=template&id=0e767484&scoped=true\"\nimport script from \"./UserInfo.vue?vue&type=script&lang=js\"\nexport * from \"./UserInfo.vue?vue&type=script&lang=js\"\nimport style0 from \"./UserInfo.vue?vue&type=style&index=0&id=0e767484&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0e767484\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","staticStyle","attrs","slot","_v","ref","user","handleAvatarChange","avatar","required","message","model","value","nickname","callback","$$v","$set","expression","user_id","on","copyId","gender","birthday","saveUser","staticRenderFns","name","data","id","mounted","getUserInfo","methods","post","customBaseURL","then","res","file","util","imgToBase64","raw","base64","console","log","img_base64","url","input","document","createElement","body","appendChild","select","execCommand","removeChild","$message","type","$refs","userForm","validate","valid","code","component"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/286.8f0d1d9c.js b/dist/js/927.26798669.js similarity index 73% rename from dist/js/286.8f0d1d9c.js rename to dist/js/927.26798669.js index 6743e2b..0a11a2c 100644 --- a/dist/js/286.8f0d1d9c.js +++ b/dist/js/927.26798669.js @@ -1,2 +1,2 @@ -"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[286],{1286: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({customBaseURL:"/api"},"/api/cart/get_list",!0).then(t=>{let e=t.data||[],s=this.selectedRows.map(t=>t.id);e.forEach(t=>{t.selected=!1,t.goods.forEach(t=>{t.selected=s.includes(t.id)})}),this.list=e,this.judgeSelectAll()})},handleSelectAll(t){t?this.list.forEach(t=>{t.goods.forEach(t=>{t&&t.product&&t.sku&&"off"==t.sku.flag?t.selected=!1:t.selected=!0})}):this.cartList.forEach(t=>{t.selected=!1}),this.judgeSelectAll()},handleSelectShop(t){t.selected&&t.goods.forEach(t=>{t&&t.product&&t.sku&&"off"==t.sku.flag?t.selected=!1:t.selected=!0}),this.judgeSelectAll()},handleSelect(){this.judgeSelectAll()},judgeSelectAll(){this.list.forEach(t=>{t.goods.some(t=>"on"==t.sku.flag)?t.goods.some(t=>"on"==t.sku.flag&&!t.selected)?t.selected=!1:t.selected=!0:t.selected=!1}),this.list.every(t=>t.selected)&&this.list.length>0?this.selectAll=!0:this.selectAll=!1},handleNumChange(t){this.post({id:t.id,num:t.num,customBaseURL:"/api"},"/api/cart/update_sku").then(t=>{})},delItem(t){this.post({id:t.id,customBaseURL:"/api"},"/api/cart/del_sku").then(t=>{this.getList()})},deleteSelected(){let t=this.selectedRows.map(t=>t.id).join(",");this.post({ids:t,customBaseURL:"/api"},"/api/cart/del_skus").then(t=>{this.getList()})},handleSizeChange(t){this.pageSize=t},handleCurrentChange(t){this.currentPage=t},payOrder(t){this.$message({message:`订单 ${t} 去付款`,type:"info"})}}},d=a,o=s(1656),r=(0,o.A)(d,l,c,!1,null,"425bad3e",null),n=r.exports}}]); -//# sourceMappingURL=286.8f0d1d9c.js.map \ No newline at end of file +"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 diff --git a/dist/js/927.26798669.js.map b/dist/js/927.26798669.js.map new file mode 100644 index 0000000..bd65288 --- /dev/null +++ b/dist/js/927.26798669.js.map @@ -0,0 +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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9B,MAAA0D,KAAAC,GAAA,MAAAA,EAAArD,IAAAkD,MACA1B,EAAA9B,MAAA0D,KAAAC,GAAA,MAAAA,EAAArD,IAAAkD,OAAAG,EAAA/D,UACAkC,EAAAlC,UAAA,EAEAkC,EAAAlC,UAAA,EAGAkC,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 diff --git a/dist/js/955.1d798592.js b/dist/js/955.1d798592.js deleted file mode 100644 index a56e795..0000000 --- a/dist/js/955.1d798592.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[955],{955:function(t,e,i){i.r(e),i.d(e,{default:function(){return u}});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"order-page"},[e("div",{staticClass:"page-header"},[e("h2",[t._v("填写收货人信息")]),e("el-button",{staticClass:"address-book-btn",attrs:{type:"text"},on:{click:function(e){return t.openDialog("add",{})}}},[t._v(" 新增/修改地址 ")])],1),e("div",{staticClass:"info-section"},[e("h3",[t._v("收货人信息")]),e("div",{staticClass:"address-item"},[e("span",{staticClass:"label"},[t._v("收货地址:")]),e("div",{staticClass:"address-content"},t._l(t.addresses,function(i,s){return e("div",{key:s,staticClass:"saved-address",class:{selected:t.selectedAddressIndex===s},on:{click:function(e){return t.selectAddress(s)}}},[e("span",{staticClass:"name-tag"},[t._v(t._s(i.name)+" "+t._s(i.province))]),e("span",{staticClass:"detail"},[t._v(t._s(i.address)+" "+t._s(i.phone))]),e("el-button",{staticClass:"edit-btn",attrs:{type:"text"},on:{click:function(e){return e.stopPropagation(),t.handleEdit(i)}}},[t._v("编辑")]),e("el-button",{staticClass:"delete-btn",attrs:{type:"text"},on:{click:function(e){return e.stopPropagation(),t.handleDelete()}}},[t._v("删除")])],1)}),0)])]),t._m(0),e("div",{staticClass:"goods-section"},[e("h3",[t._v("商品清单")]),t._l(t.orderGroups,function(i,s){return e("div",{key:s,staticClass:"order-group"},[e("div",{staticClass:"supplier-info"},[e("span",[t._v("供货名称:"+t._s(i.supplier))])]),e("table",{staticClass:"goods-table"},[t._m(1,!0),e("tbody",t._l(i.items,function(i,s){return e("tr",{key:s},[e("td",[e("img",{staticClass:"goods-img",attrs:{src:i.image,alt:"商品图片"}}),e("span",{staticClass:"goods-name"},[t._v(t._s(i.name))])]),e("td",[t._v(t._s(i.spec))]),e("td",[t._v(t._s(i.price))]),e("td",[t._v(t._s(i.quantity))]),e("td",[t._v(t._s(i.freight))]),e("td",[t._v(t._s(i.deliveryType))]),e("td",{staticClass:"subtotal"},[t._v(t._s(i.subtotal))])])}),0)]),e("div",{staticClass:"order-remark"},[e("span",{staticClass:"remark-label"},[t._v("订单备注:")]),e("div",{staticClass:"rich-text-editor"},[e("el-input",{staticClass:"remark-editor",attrs:{type:"textarea",rows:"4",placeholder:"请输入订单备注信息"},model:{value:i.remark,callback:function(e){t.$set(i,"remark",e)},expression:"group.remark"}}),t._e()],1)])])}),e("div",{staticClass:"total-info"},[e("p",[t._v(" 共 "+t._s(t.totalGoodsCount)+" 件商品,总商品金额 ¥"+t._s(t.totalGoodsAmount)+" ")]),e("p",[t._v("总运费 ¥"+t._s(t.totalFreight))]),e("p",{staticClass:"pay-amount"},[t._v("实付总金额 ¥"+t._s(t.totalPayAmount))]),e("p",{staticClass:"address-info"},[t._v(" 配送地:"+t._s(t.selectedAddress.address)),e("br"),t._v(" 交货地:"+t._s(t.selectedAddress.address)+" "+t._s(t.selectedAddress.phone)+" ")]),e("el-button",{staticClass:"submit-btn",attrs:{type:"primary"},on:{click:t.submitOrder}},[t._v(" 提交订单 ")])],1)],2),e("AddressFormDialog",{attrs:{visible:t.dialogVisible,type:t.dialogType,"initial-data":t.dialogData},on:{"update:visible":function(e){t.dialogVisible=e},save:t.handleSaveAddress}})],1)},r=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"contract-section"},[e("h3",[t._v("签署合同")]),e("p",[t._v("如需签署合同,提交订单后,请至采购中心>合同中心签署")])])},function(){var t=this,e=t._self._c;return e("thead",[e("tr",[e("th",[t._v("商品")]),e("th",[t._v("规格")]),e("th",[t._v("单价(元)")]),e("th",[t._v("数量")]),e("th",[t._v("运费")]),e("th",[t._v("收货方式")]),e("th",[t._v("小计(元)")])])])}],a=(i(4114),i(8111),i(7588),i(1701),i(3518)),o=i(1734),d={name:"OrderPage",components:{AddressFormDialog:o.A},data(){return{addresses:[],selectedAddressIndex:-1,selectedTradeType:1,selectedInvoiceType:1,invoiceTitles:[{id:1,name:"苏州特色农产品发展有限公司"},{id:2,name:"个人"},{id:3,name:"苏州科技有限公司"}],selectedInvoiceTitle:null,orderGroups:[],totalGoodsCount:3,totalGoodsAmount:973,totalFreight:0,totalPayAmount:0,dialogVisible:!1,dialogType:"add",dialogData:{}}},computed:{...(0,a.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()},methods:{...(0,a.PY)(["clearOrderData"]),openDialog(t,e){this.dialogType=t,this.dialogData={...e},this.dialogVisible=!0},handleEdit(t){console.log(t),t.username=t.name,t.mobile=t.tel,this.openDialog("edit",t)},handleDelete(t){this.$confirm("此操作将永久删除该地址, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.post({id:t.id},"/api/uservice/user/delConsignee").then(t=>{1==t.code&&(this.getAddress(),this.$message.success("删除成功!"))})}).catch(()=>{this.$message.info("已取消删除")})},initOrderData(t){if("product"===t.from){const e=t.items[0];this.orderGroups=[{supplier:e.product.supplier_name,items:this.formatItems([e])}]}else"cart"===t.from&&(this.orderGroups=Object.entries(t.groups).map(([t,e])=>({supplier:t,items:this.formatItems(e)})));this.calculateTotal()},formatItems(t){return console.log(t,13213),t.map(t=>({id:t.sku.id,productId:t.product.id,name:t.product.title,image:t.product.headimg,spec:t.sku.sku_name,price:(t.sku.price/100).toFixed(2),quantity:t.quantity,freight:"0.00",deliveryType:"邮寄",type:t.product.type,subtotal:(t.sku.price/100*t.quantity+parseFloat("0.00")).toFixed(2)}))},getPost(){if(!this.selectedAddress.id)return void this.$message.warning("请先选择收货地址");this.totalFreight=0;const t=[];this.orderGroups.forEach((e,i)=>{e.items.forEach((e,i)=>{const s={consignee_id:this.selectedAddress.id,sku_id:e.id,num:e.quantity},r=this.post(s,"/api/order/get_post_price").then(t=>{if(1===t.code){const i=(t.data.price/100).toFixed(2);e.freight=i,e.subtotal=(parseFloat(e.price)*e.quantity+parseFloat(i)).toFixed(2),this.totalFreight=(parseFloat(this.totalFreight)+parseFloat(i)).toFixed(2)}}).catch(t=>{console.error(`获取商品 ${e.id} 邮费失败`,t),this.$message.error(`获取商品 ${e.name} 邮费失败,请重试`)});t.push(r)})}),Promise.all(t).then(()=>{this.calculateTotal()})},calculateTotalFreight(){let t=0;this.orderGroups.forEach(e=>{e.items.forEach(e=>{console.log(e),t+=parseFloat(e.freight)})}),this.totalFreight=t.toFixed(2)},calculateTotal(){let t=0,e=0;this.orderGroups.forEach(i=>{i.items.forEach(i=>{t+=i.quantity,e+=parseFloat(i.subtotal)})}),this.totalGoodsCount=t,this.totalGoodsAmount=e.toFixed(2),this.totalPayAmount=e.toFixed(2)},handleSaveAddress(t){t.is_default=0,"add"===this.dialogType?this.post(t,"/api/uservice/user/addNewConsignee").then(t=>{1==t.code&&(this.$message.success("保存成功"),this.getAddress(),this.dialogVisible=!1)}):this.post(t,"/api/uservice/user/editConsignee").then(t=>{1==t.code&&(this.$message.success("保存成功"),this.getAddress(),this.dialogVisible=!1)})},getAddress(){this.post({contactType:"CONSIGNEE",offset:"0",limit:"100"},"/api/uservice/user/getContactOrConsignee").then(t=>{t&&(this.addresses=t.data||[])})},selectAddress(t){this.selectedAddressIndex=t,this.getPost()},submitOrder(){if(!this.selectedAddress.id)return void this.$message.warning("请先选择收货地址");let t=[];this.orderGroups.forEach((e,i)=>{e.items.forEach((i,s)=>{console.log(i),t.push({type:i.type,product_id:i.productId,sku_id:i.id,product_num:i.quantity,post:this.selectedAddress.id,remark:e.remark||""})})}),console.log(t),this.post({data:JSON.stringify({product_list:t})},"/api/order/create").then(t=>{1==t.code&&(this.$message.success("订单提交成功!"),this.$router.push("/User/OrderList"))})}}},l=d,n=i(1656),c=(0,n.A)(l,s,r,!1,null,"0103a9f5",null),u=c.exports},1734:function(t,e,i){i.d(e,{A:function(){return n}});var s=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{title:("add"===t.type?"新增":"编辑")+"收货地址",visible:t.visible,width:"700px"},on:{close:t.handleClose}},[e("el-form",{ref:"addressForm",attrs:{model:t.form,rules:t.rules,"label-width":"100px",size:"small"}},[e("el-form-item",{attrs:{label:"收货人",prop:"username"}},[e("el-input",{attrs:{placeholder:"请填写收货人姓名,限制10个字符",maxlength:"10"},model:{value:t.form.username,callback:function(e){t.$set(t.form,"username",e)},expression:"form.username"}})],1),e("el-form-item",{attrs:{label:"所在地区",prop:"region"}},[e("div",{staticClass:"region-selector"},[e("el-select",{staticClass:"region-select",attrs:{placeholder:"选择省份/直辖市"},on:{change:t.handleProvinceChange},model:{value:t.form.province_id,callback:function(e){t.$set(t.form,"province_id",e)},expression:"form.province_id"}},t._l(t.provinces,function(t){return e("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}),1),e("el-select",{staticClass:"region-select",attrs:{placeholder:"选择城市",disabled:!t.form.province_id},on:{change:t.handleCityChange},model:{value:t.form.city_id,callback:function(e){t.$set(t.form,"city_id",e)},expression:"form.city_id"}},t._l(t.cities,function(t){return e("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}),1),e("el-select",{staticClass:"region-select",attrs:{placeholder:"选择县区",disabled:!t.form.city_id},model:{value:t.form.district_id,callback:function(e){t.$set(t.form,"district_id",e)},expression:"form.district_id"}},t._l(t.districts,function(t){return e("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}),1)],1)]),e("el-form-item",{attrs:{label:"详细地址",prop:"detail_addr"}},[e("el-input",{attrs:{placeholder:"请填写详细地址,限制500个字符",maxlength:"500"},model:{value:t.form.detail_addr,callback:function(e){t.$set(t.form,"detail_addr",e)},expression:"form.detail_addr"}})],1),e("el-form-item",{attrs:{label:"手机号码",prop:"mobile"}},[e("el-input",{attrs:{placeholder:"请填写手机号码,限制11位数字",maxlength:"11",oninput:"value=value.replace(/[^\\d]/g,'')"},model:{value:t.form.mobile,callback:function(e){t.$set(t.form,"mobile",e)},expression:"form.mobile"}})],1)],1),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{size:"small"},on:{click:t.handleClose}},[t._v("取消")]),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.saveAddress}},[t._v("保存")])],1)],1)},r=[],a=(i(8111),i(2489),i(116),{name:"AddressFormDialog",props:{visible:{type:Boolean,default:!1},type:{type:String,required:!0,validator:t=>["add","edit"].includes(t)},initialData:{type:Object,default:()=>({})}},data(){const t=(t,e,i)=>e?/^1[3-9]\d{9}$/.test(e)?void i():i(new Error("请输入正确的11位手机号码")):i(new Error("请输入手机号码")),e=(t,e,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:e,trigger:"change"}],detail_addr:[{required:!0,message:"请输入详细地址",trigger:"blur"},{max:500,message:"详细地址不能超过500个字符",trigger:"blur"}],mobile:[{required:!0,validator:t,trigger:"blur"}]},regionData:[]}},computed:{provinces(){return this.regionData.filter(t=>1===t.level)},cities(){return this.form.province_id?this.regionData.filter(t=>2===t.level&&t.pid===this.form.province_id):[]},districts(){return this.form.city_id?this.regionData.filter(t=>3===t.level&&t.pid===this.form.city_id):[]}},watch:{visible(t){t&&this.initForm()},initialData:{handler(){this.visible&&this.initForm()},deep:!0}},mounted(){this.getRegionData()},methods:{async getRegionData(){try{const t=await this.post({},"/api/uservice/user/getAreas");t&&t.data?this.regionData=t.data:this.$message.error("获取地区数据失败")}catch(t){console.error("获取地区数据出错:",t),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(t){const e=t.split(" ");if(e.length<3)return;const i=this.provinces.find(t=>t.name===e[0]);i&&(this.form.province_id=i.id,this.$nextTick(()=>{const t=this.cities.find(t=>t.name===e[1]);t&&(this.form.city_id=t.id,this.$nextTick(()=>{const t=this.districts.find(t=>t.name===e[2]);t&&(this.form.district_id=t.id)}))}))},handleProvinceChange(){this.form.city_id=null,this.form.district_id=null},handleCityChange(){this.form.district_id=null},saveAddress(){this.$refs.addressForm.validate(async t=>{if(!t)return;const e=this.provinces.find(t=>t.id===this.form.province_id),i=this.cities.find(t=>t.id===this.form.city_id),s=this.districts.find(t=>t.id===this.form.district_id);if(!(e&&i&&s))return void this.$message.warning("地区信息不完整");const r={...this.form,region:`${e.name} ${i.name} ${s.name}`};this.$emit("save",r),this.handleClose()})},handleClose(){this.$emit("update:visible",!1)}}}),o=a,d=i(1656),l=(0,d.A)(o,s,r,!1,null,"7d3ebefd",null),n=l.exports}}]); -//# sourceMappingURL=955.1d798592.js.map \ No newline at end of file diff --git a/dist/js/955.1d798592.js.map b/dist/js/955.1d798592.js.map deleted file mode 100644 index 9aa1c93..0000000 --- a/dist/js/955.1d798592.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/955.1d798592.js","mappings":"qJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,cAAc,CAACF,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,KAAK,CAACF,EAAIK,GAAG,aAAaH,EAAG,YAAY,CAACE,YAA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,GAAAD,EAAAE,OAAA,SAEA,MAAA/K,EAAA,KAAAiI,UAAA+C,KAAAC,GAAAA,EAAAlL,OAAA8K,EAAA,IACA7K,IACA,KAAA6H,KAAAG,YAAAhI,EAAA8C,GAEA,KAAAyH,UAAA,KACA,MAAAlC,EAAA,KAAAD,OAAA4C,KAAAE,GAAAA,EAAAnL,OAAA8K,EAAA,IACAxC,IACA,KAAAR,KAAAM,QAAAE,EAAAvF,GAEA,KAAAyH,UAAA,KACA,MAAA/B,EAAA,KAAAD,UAAAyC,KACAG,GAAAA,EAAApL,OAAA8K,EAAA,IAEArC,IACA,KAAAX,KAAAS,YAAAE,EAAA1F,SAMA,EACAiF,oBAAAA,GACA,KAAAF,KAAAM,QAAA,KACA,KAAAN,KAAAS,YAAA,IACA,EACAJ,gBAAAA,GACA,KAAAL,KAAAS,YAAA,IACA,EACAK,WAAAA,GACA,KAAA6B,MAAAC,YAAAW,SAAA,UACA,IAAAC,EAAA,OAEA,MAAArL,EAAA,KAAAiI,UAAA+C,KACAC,GAAAA,EAAAnI,KAAA,KAAA+E,KAAAG,aAEAK,EAAA,KAAAD,OAAA4C,KAAAE,GAAAA,EAAApI,KAAA,KAAA+E,KAAAM,SACAK,EAAA,KAAAD,UAAAyC,KACAG,GAAAA,EAAArI,KAAA,KAAA+E,KAAAS,aAGA,KAAAtI,GAAAqI,GAAAG,GAEA,YADA,KAAAjF,SAAAuC,QAAA,WAIA,MAAAgB,EAAA,IACA,KAAAe,KACA6B,OAAA,GAAA1J,EAAAD,QAAAsI,EAAAtI,QAAAyI,EAAAzI,QAGA,KAAAuL,MAAA,OAAAxE,GACA,KAAAa,eAEA,EACAA,WAAAA,GACA,KAAA2D,MAAA,oBACA,KC3SyQ,I,UCQrQ7D,GAAY,OACd,EACA/I,EACA6D,GACA,EACA,KACA,WACA,MAIF,EAAekF,E","sources":["webpack://abcdf/./src/views/Order/Index.vue","webpack://abcdf/src/views/Order/Index.vue","webpack://abcdf/./src/views/Order/Index.vue?7896","webpack://abcdf/./src/views/Order/Index.vue?7cca","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"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"order-page\"},[_c('div',{staticClass:\"page-header\"},[_c('h2',[_vm._v(\"填写收货人信息\")]),_c('el-button',{staticClass:\"address-book-btn\",attrs:{\"type\":\"text\"},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)])]),_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}})],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=0103a9f5&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=0103a9f5&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 \"0103a9f5\",\n null\n \n)\n\nexport default component.exports","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"],"names":["render","_vm","this","_c","_self","staticClass","_v","attrs","on","$event","openDialog","_l","addresses","addr","index","key","class","selected","selectedAddressIndex","selectAddress","_s","name","province","address","phone","stopPropagation","handleEdit","handleDelete","_m","orderGroups","group","groupIndex","supplier","items","item","itemIndex","image","spec","price","quantity","freight","deliveryType","subtotal","model","value","remark","callback","$$v","$set","expression","_e","totalGoodsCount","totalGoodsAmount","totalFreight","totalPayAmount","selectedAddress","submitOrder","dialogVisible","dialogType","dialogData","handleSaveAddress","staticRenderFns","components","AddressFormDialog","data","selectedTradeType","selectedInvoiceType","invoiceTitles","id","selectedInvoiceTitle","computed","mapGetters","mounted","getOrderData","initOrderData","console","log","$message","error","$router","go","getAddress","methods","mapMutations","type","row","username","mobile","tel","$confirm","confirmButtonText","cancelButtonText","then","post","res","code","success","catch","info","from","product","supplier_name","formatItems","Object","entries","groups","map","calculateTotal","sku","productId","title","headimg","sku_name","toFixed","parseFloat","getPost","warning","freightPromises","forEach","params","consignee_id","sku_id","num","promise","err","push","Promise","all","calculateTotalFreight","total","totalCount","totalAmount","formData","is_default","contactType","offset","limit","goods","product_id","product_num","JSON","stringify","product_list","component","visible","handleClose","ref","form","rules","handleProvinceChange","province_id","provinces","handleCityChange","city_id","cities","city","district_id","districts","district","detail_addr","slot","saveAddress","props","Boolean","default","String","required","validator","val","includes","initialData","validateMobile","rule","test","Error","validateRegion","region","message","trigger","max","regionData","filter","level","pid","watch","initForm","handler","deep","getRegionData","$nextTick","$refs","addressForm","resetFields","echoRegionSelection","regionText","regions","split","length","find","p","c","d","validate","valid","$emit"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/624.1742d542.js b/dist/js/975.6d55c1a8.js similarity index 88% rename from dist/js/624.1742d542.js rename to dist/js/975.6d55c1a8.js index 88f7fd5..2622985 100644 --- a/dist/js/624.1742d542.js +++ b/dist/js/975.6d55c1a8.js @@ -1,2 +1,2 @@ -"use strict";(self["webpackChunkabcdf"]=self["webpackChunkabcdf"]||[]).push([[624],{8624: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({customBaseURL:"/api"},"/api/uservice/user/getMyInfo").then(t=>{this.userInfo=t.data,console.log(this.userInfo)})},goPath(t){this.$router.push(t)},copyId(){const t=document.createElement("input");t.value=this.userId,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),this.$message({message:"ID已复制",type:"success"})}}}),n=l,c=s(1656),o=(0,c.A)(n,i,a,!1,null,"e57efb46",null),r=o.exports}}]); -//# sourceMappingURL=624.1742d542.js.map \ No newline at end of file +"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 new file mode 100644 index 0000000..33c5eb0 --- /dev/null +++ b/dist/js/975.6d55c1a8.js.map @@ -0,0 +1 @@ +{"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,YAAY,oBAAoBG,GAAG,CAAC,MAAQ,SAASC,GAAQR,EAAIK,YAAa,CAAK,IAAI,CAACH,EAAG,IAAI,CAACE,YAAY,sBAAsBJ,EAAIS,KAAKP,EAAG,UAAU,CAACA,EAAG,SAAS,CAACQ,MAAM,CAAC,OAAS,KAAKV,EAAIW,GAAIX,EAAIY,QAAS,SAASC,EAAKC,GAAG,OAAOZ,EAAG,SAAS,CAACa,IAAID,EAAEJ,MAAM,CAAC,GAAK,GAAG,GAAK,EAAE,GAAK,IAAI,CAACR,EAAG,cAAc,CAACE,YAAY,eAAeM,MAAM,CAAC,GAAKG,EAAKG,OAAO,CAACd,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AA,uBAEAe,WAAA,CACA,CAAAb,KAAA,eAAAG,MAAA,MAAAL,KAAA,GAAAgB,MAAA,GACA,CAAAd,KAAA,gBAAAG,MAAA,MAAAL,KAAA,GAAAgB,MAAA,GACA,CAAAd,KAAA,eAAAG,MAAA,MAAAL,KAAA,GAAAgB,MAAA,IAEAC,MAAA,CACA,CAAAf,KAAA,eAAAG,MAAA,MAAAL,KAAA,GAAAgB,MAAA,GACA,CAAAd,KAAA,gBAAAG,MAAA,MAAAL,KAAA,GAAAgB,MAAA,GACA,CAAAd,KAAA,eAAAG,MAAA,OAAAL,KAAA,GAAAgB,MAAA,IAGAT,SAAA,KAIA,EACAe,SAAA,CAEA,EACAC,OAAAA,GACA,KAAAC,aACA,EACAC,QAAA,CACAD,WAAAA,GAEA,KAAAE,KAAA,mCAAAC,KAAAC,IACA,KAAArB,SAAAqB,EAAAR,KACAS,QAAAC,IAAA,KAAAvB,WAEA,EAEAO,MAAAA,CAAAd,GACA,KAAA+B,QAAAC,KAAAhC,EACA,EAGAY,MAAAA,GACA,MAAAqB,EAAAC,SAAAC,cAAA,SACAF,EAAAjB,MAAA,KAAAK,OACAa,SAAAE,KAAAC,YAAAJ,GACAA,EAAAK,SACAJ,SAAAK,YAAA,QACAL,SAAAE,KAAAI,YAAAP,GAEA,KAAAQ,SAAA,CACAC,QAAA,QACAC,KAAA,WAEA,KClKkQ,I,UCQ9PC,GAAY,OACd,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.523c1b3b.js b/dist/js/app.71c4eb46.js similarity index 91% rename from dist/js/app.523c1b3b.js rename to dist/js/app.71c4eb46.js index 7459279..b283520 100644 --- a/dist/js/app.523c1b3b.js +++ b/dist/js/app.71c4eb46.js @@ -1,2 +1,2 @@ -(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,C=(0,d.A)(v,m,f,!1,null,"683e198c",null),b=C.exports,k=function(){var e=this,t=e._self._c;return t("div",{staticClass:"sidebar-container"},[t("div",{staticClass:"sidebar-item",on:{click:e.handleCartClick}},[t("el-badge",{staticClass:"item-badge",attrs:{value:e.$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:b,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(624).then(a.bind(a,8624))},{path:"OrderList",name:"OrderList",meta:{title:"我的订单 - 精品商城",keepAlive:!1},component:()=>a.e(446).then(a.bind(a,4446))},{path:"UserInfo",name:"UserInfo",meta:{title:"个人信息 - 精品商城",keepAlive:!1},component:()=>a.e(893).then(a.bind(a,5893))},{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(286).then(a.bind(a,1286))},{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(955).then(a.bind(a,955))},{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/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDE0IDc5LjE1Njc5NywgMjAxNC8wOC8yMC0wOTo1MzowMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZ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02zPtcB9PmfvVaEEmTeG9B6VIIrZ8RbbvU18f/fae1QoQRYMJKU81oT3dYwkJj1VguQOk9REaY2Pw4323hRKkEVjJ9vrTXQ/r9t7UihBaobr9V6UIIrZ8Wu2J5rgPp6w96JQgtQcG2jmhGl5QWzvQaEEqQsOst2WY/9vs/egUILUtZIN59Dv4ZyTWwmSEyDnUx7luRtJar4qJUjT4RdsL+bI3xetzwolSMOwTn1Vgihmx2tsD+XAz4esrwolSMPxLZK9XGPS+qhQgmSCo2xbBPu3xfqoUIJkhh+yvSPQr3esbwolSOYYUp+UIIrZ8SzbM4L8ecb6pFCC6BNbWw8lSB7wLtt2AX5st74olCDikPWskfRZNSVIi2OKst2+c5P1QaEEEYuH2V7N4Lqv2msrlCDisa5FrqkEUSwIL7E93sDrPW6vqVCC5AaN0l/kVZ+iBGlxfMR2awOuc6u9lkIJkjvcwXagjuc/YK+hUILkEgnVdxeRDfYaCiVIbvEk2546nHePPbdCCZJ7rMvJORVKkEzwBtuOGp5vhz2nQgnSNMBu6uM1OM84Nedu80qQFscY1SYfx2Z7LoUSpOlwH9ubi/j9m/YcCiWIDth1YK4EaUU8z7Z7Ab/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",286:"8f0d1d9c",322:"693252a2",406:"069a7943",411:"e9addbc3",446:"3d8319df",452:"d6fc2b8c",592:"90e06992",624:"1742d542",677:"e7ad81c7",828:"3c50f0ff",838:"e0fbe621",882:"62bac42e",893:"906271e2",896:"996819fe",926:"d303aa93",955:"1d798592"}[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",286:"84b91fbd",322:"f144348b",406:"efb923d9",411:"e4757598",446:"4288d89e",452:"42e712d8",592:"09b799c2",624:"f7a540d4",677:"51eebda5",828:"3ffea4ab",838:"4c0b65d7",882:"f420d2be",893:"3aae9905",896:"f1192b9d",926:"a9594400",955:"7f61bedf"}[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;u0?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/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDE0IDc5LjE1Njc5NywgMjAxNC8wOC8yMC0wOTo1MzowMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodH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DZvxUC4GsIREHflguDkyQqaVYotIulUChBFAoliEKhBFEolCAKhRJEoVCCKBRKEIVCCaJQKJQgCoUSRKFQgigUShCFIhP8vwADACog5YM65zugAAAAAElFTkSuQmCC"}},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\",\"286\":\"8f0d1d9c\",\"322\":\"693252a2\",\"406\":\"069a7943\",\"411\":\"e9addbc3\",\"446\":\"3d8319df\",\"452\":\"d6fc2b8c\",\"592\":\"90e06992\",\"624\":\"1742d542\",\"677\":\"e7ad81c7\",\"828\":\"3c50f0ff\",\"838\":\"e0fbe621\",\"882\":\"62bac42e\",\"893\":\"906271e2\",\"896\":\"996819fe\",\"926\":\"d303aa93\",\"955\":\"1d798592\"}[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\",\"286\":\"84b91fbd\",\"322\":\"f144348b\",\"406\":\"efb923d9\",\"411\":\"e4757598\",\"446\":\"4288d89e\",\"452\":\"42e712d8\",\"592\":\"09b799c2\",\"624\":\"f7a540d4\",\"677\":\"51eebda5\",\"828\":\"3ffea4ab\",\"838\":\"4c0b65d7\",\"882\":\"f420d2be\",\"893\":\"3aae9905\",\"896\":\"f1192b9d\",\"926\":\"a9594400\",\"955\":\"7f61bedf\"}[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,\"286\":1,\"322\":1,\"406\":1,\"411\":1,\"446\":1,\"452\":1,\"592\":1,\"624\":1,\"677\":1,\"828\":1,\"838\":1,\"882\":1,\"893\":1,\"896\":1,\"926\":1,\"955\":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 +{"version":3,"file":"js/app.71c4eb46.js","mappings":"0EAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,MAAM,CAAC,GAAK,QAAQ,CAAsB,aAApBJ,EAAIK,OAAOC,KAAqBJ,EAAG,aAAaF,EAAIO,KAA0B,UAApBP,EAAIK,OAAOC,KAAkBJ,EAAG,OAAO,CAACM,YAAY,kBAAkB,CAACN,EAAG,gBAAgB,GAAGF,EAAIO,KAAyB,SAAnBP,EAAIK,OAAOC,KAAiBJ,EAAG,OAAO,CAACM,YAAY,mBAAmB,CAACN,EAAG,gBAAgB,GAAGF,EAAIO,KAA0B,aAApBP,EAAIK,OAAOC,KAAqBJ,EAAG,WAAWF,EAAIO,KAA0B,aAApBP,EAAIK,OAAOC,KAAqBJ,EAAG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,GAClFD,EAAmBzC,QAAQoC,EAAqBnC,KAAK,KAAM,IAC3DwC,EAAmB3U,KAAOsU,EAAqBnC,KAAK,KAAMwC,EAAmB3U,KAAKmS,KAAKwC,G,ICpFvF,IAAIE,EAAsB/G,EAAoBU,OAAEP,EAAW,CAAC,KAAM,WAAa,OAAOH,EAAoB,IAAM,GAChH+G,EAAsB/G,EAAoBU,EAAEqG,E","sources":["webpack://abcdf/./src/App.vue","webpack://abcdf/./src/components/layout/HeaderNav.vue","webpack://abcdf/src/components/layout/HeaderNav.vue","webpack://abcdf/./src/components/layout/HeaderNav.vue?6ac8","webpack://abcdf/./src/components/layout/HeaderNav.vue?f415","webpack://abcdf/./src/components/layout/Footer.vue","webpack://abcdf/src/components/layout/Footer.vue","webpack://abcdf/./src/components/layout/Footer.vue?28b4","webpack://abcdf/./src/components/layout/Footer.vue?84dd","webpack://abcdf/./src/components/layout/Sidebar.vue","webpack://abcdf/src/components/layout/Sidebar.vue","webpack://abcdf/./src/components/layout/Sidebar.vue?258f","webpack://abcdf/./src/components/layout/Sidebar.vue?1064","webpack://abcdf/./src/components/common/BackToTop.vue","webpack://abcdf/src/components/common/BackToTop.vue","webpack://abcdf/./src/components/common/BackToTop.vue?eadc","webpack://abcdf/./src/components/common/BackToTop.vue?7f5f","webpack://abcdf/src/App.vue","webpack://abcdf/./src/App.vue?c036","webpack://abcdf/./src/App.vue?0e40","webpack://abcdf/./src/store/index.js","webpack://abcdf/./src/router/index.js","webpack://abcdf/./src/libs/axios.js","webpack://abcdf/./src/libs/utils.js","webpack://abcdf/./src/main.js","webpack://abcdf/webpack/bootstrap","webpack://abcdf/webpack/runtime/amd options","webpack://abcdf/webpack/runtime/chunk loaded","webpack://abcdf/webpack/runtime/compat get default export","webpack://abcdf/webpack/runtime/define property getters","webpack://abcdf/webpack/runtime/ensure chunk","webpack://abcdf/webpack/runtime/get javascript chunk filename","webpack://abcdf/webpack/runtime/get mini-css chunk filename","webpack://abcdf/webpack/runtime/global","webpack://abcdf/webpack/runtime/hasOwnProperty shorthand","webpack://abcdf/webpack/runtime/load script","webpack://abcdf/webpack/runtime/make namespace object","webpack://abcdf/webpack/runtime/node module decorator","webpack://abcdf/webpack/runtime/publicPath","webpack://abcdf/webpack/runtime/css loading","webpack://abcdf/webpack/runtime/jsonp chunk loading","webpack://abcdf/webpack/startup"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{attrs:{\"id\":\"app\"}},[(_vm.$route.name !== 'Register')?_c('HeaderNav'):_vm._e(),(_vm.$route.name !== 'Login')?_c('main',{staticClass:\"main-container\"},[_c('router-view')],1):_vm._e(),(_vm.$route.name == 'Login')?_c('main',{staticClass:\"main-containers\"},[_c('router-view')],1):_vm._e(),(_vm.$route.name !== 'Register')?_c('Sidebar'):_vm._e(),(_vm.$route.name !== 'Register')?_c('Footer'):_vm._e(),_c('BackToTop')],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('header',{staticClass:\"header-nav\"},[_c('div',{staticClass:\"top-notice\"},[_c('div',{staticClass:\"container\"},[_c('p',[_vm._v(\" 欢迎来到时味苏州平台! \"),(false)?_c('router-link',{staticClass:\"highlight\",attrs:{\"to\":\"/Register\"}},[_vm._v(\"立即注册\")]):_vm._e()],1),_c('div',{staticClass:\"top-links\"},[(_vm.isLogin)?_c('router-link',{staticClass:\"user-link\",attrs:{\"to\":\"/User\"}},[_c('img',{directives:[{name:\"lazy\",rawName:\"v-lazy\",value:(_vm.userInfo.avatar),expression:\"userInfo.avatar\"}],staticClass:\"avatar\",attrs:{\"alt\":\"用户头像\"}}),_vm._v(\" \"+_vm._s(_vm.userInfo.username)+\" \")]):_c('router-link',{attrs:{\"to\":\"/Login\"}},[_vm._v(\"登录\")]),(false)?_c('span',{staticClass:\"separator\"},[_vm._v(\"|\")]):_vm._e(),(false)?_c('router-link',{attrs:{\"to\":\"/Register\"}},[_vm._v(\"注册\")]):_vm._e(),_c('router-link',{attrs:{\"to\":\"/User\"}},[_vm._v(\"采购人中心\")]),_c('router-link',{staticClass:\"cart-link\",attrs:{\"to\":\"/User/ShoppingCart\"}},[_vm._v(\" 购物车\"),(_vm.cartTotalCount > 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/views/Order/Index.vue b/src/views/Order/Index.vue index 2a25c57..41d80e6 100644 --- a/src/views/Order/Index.vue +++ b/src/views/Order/Index.vue @@ -52,16 +52,24 @@ --> - + + 添加 + @@ -191,6 +201,55 @@ @update:visible="dialogVisible = $event" @save="handleSaveAddress" /> + + + + + + + + + + + + + + + + + + + @@ -213,14 +272,10 @@ export default { selectedTradeType: 1, // 1:先款后货 2:货到付款 // 发票信息 - selectedInvoiceType: 1, // 1:增值税普通发票 2:普通电子发票 - + needInvoice: false, // 是否开票 + invoice_type: 1, // 1:增值税普通发票 2:普通电子发票 // 发票抬头 - invoiceTitles: [ - { id: 1, name: "苏州特色农产品发展有限公司" }, - { id: 2, name: "个人" }, - { id: 3, name: "苏州科技有限公司" }, - ], + invoiceTitles: [], selectedInvoiceTitle: null, // 订单分组 @@ -235,6 +290,34 @@ export default { dialogVisible: false, dialogType: "add", dialogData: {}, + + // 发票抬头弹框相关 + invoiceTitleDialogVisible: false, + titleForm: { + invoice_head: "", + tax_number: "", + opening_bank: "", + bank_account: "", + }, + titleRules: { + invoice_head: [ + { required: true, message: "请输入发票抬头", trigger: "blur" }, + ], + tax_number: [ + { required: true, message: "请输入纳税人识别号", trigger: "blur" }, + { + pattern: /^[A-Z0-9]{15,20}$/, + message: "纳税人识别号格式不正确", + trigger: "blur", + }, + ], + opening_bank: [ + { required: true, message: "请输入开户银行", trigger: "blur" }, + ], + bank_account: [ + { required: true, message: "请输入银行账号", trigger: "blur" }, + ], + }, }; }, computed: { @@ -254,9 +337,55 @@ export default { this.$router.go(-1); } this.getAddress(); + this.getInvoiceList(); }, methods: { ...mapMutations(["clearOrderData"]), + // 打开新增发票抬头弹框 + openTitleDialog() { + this.invoiceTitleDialogVisible = true; + // 重置表单 + this.$nextTick(() => { + this.$refs.titleForm.resetFields(); + }); + }, + // 关闭弹框 + handleTitleDialogClose() { + this.invoiceTitleDialogVisible = false; + this.$refs.titleForm.resetFields(); + }, + // 保存发票抬头 + saveInvoiceTitle() { + this.$refs.titleForm.validate((valid) => { + if (valid) { + // 模拟保存接口调用 + // 实际项目中替换为真实接口请求 + const newTitle = { + ...this.titleForm, + }; + + this.post(this.titleForm).then((res) => { + if (res.code == 1) { + this.getInvoiceList(); + this.$message.success("发票抬头添加成功"); + this.invoiceTitleDialogVisible = false; + } + }); + } + }); + }, + // 获取发票抬头列表 + getInvoiceList() { + this.post( + { + offset: 0, + limit: 100, + }, + "/api/enterprise_invoice/index" + ).then((res) => { + this.invoiceTitles = res.data; + }); + }, // 新增地址 openDialog(type, item) { this.dialogType = type; @@ -482,6 +611,12 @@ export default { return; } + // 如果需要开票但未选择发票抬头 + if (this.needInvoice && this.selectedInvoiceTitle === null) { + this.$message.warning("请选择发票抬头"); + return; + } + let goods = []; this.orderGroups.forEach((group, groupIndex) => { group.items.forEach((item, itemIndex) => { @@ -496,10 +631,14 @@ export default { }); }); }); - console.log(goods); + let data = { + product_list: goods, + invoice_id: this.selectedInvoiceTitle, + invoice_type: this.invoice_type, + }; this.post( { - data: JSON.stringify({ product_list: goods }), + data: JSON.stringify(data), }, "/api/order/create" ).then((res) => { diff --git a/src/views/User/OrderList.vue b/src/views/User/OrderList.vue index e488945..647c2b7 100644 --- a/src/views/User/OrderList.vue +++ b/src/views/User/OrderList.vue @@ -250,8 +250,7 @@ export default { this.post( { ...this.filterForm, - offset: (this.filterForm.currentPage - 1) * this.filterForm.limit, - customBaseURL: "/api", + offset: (this.filterForm.currentPage - 1) * this.filterForm.limit }, "/api/order/list" ).then((res) => { diff --git a/src/views/User/ShoppingCart.vue b/src/views/User/ShoppingCart.vue index f809bbe..0328a05 100644 --- a/src/views/User/ShoppingCart.vue +++ b/src/views/User/ShoppingCart.vue @@ -194,7 +194,7 @@ export default { this.$router.push("/Order"); }, getList() { - this.post({ customBaseURL: "/api" }, "/api/cart/get_list", true).then( + this.post({ }, "/api/cart/get_list", true).then( (res) => { let resData = res.data || []; let currentSelectGoodsIds = this.selectedRows.map((v) => v.id); @@ -266,14 +266,14 @@ export default { // 购物车加减 handleNumChange(goods) { this.post( - { id: goods.id, num: goods.num, customBaseURL: "/api" }, + { id: goods.id, num: goods.num }, "/api/cart/update_sku" ).then((res) => {}); }, delItem(item) { this.post( - { id: item.id, customBaseURL: "/api" }, + { id: item.id }, "/api/cart/del_sku" ).then((res) => { this.getList(); @@ -281,7 +281,7 @@ export default { }, deleteSelected() { let ids = this.selectedRows.map((v) => v.id).join(","); - this.post({ ids: ids, customBaseURL: "/api" }, "/api/cart/del_skus").then( + this.post({ ids: ids }, "/api/cart/del_skus").then( (res) => { this.getList(); } diff --git a/src/views/User/UserCenter.vue b/src/views/User/UserCenter.vue index 5fe93e1..a67b026 100644 --- a/src/views/User/UserCenter.vue +++ b/src/views/User/UserCenter.vue @@ -137,7 +137,7 @@ export default { methods: { getUserInfo() { // 获取用户信息 - this.post({customBaseURL:"/api"},"/api/uservice/user/getMyInfo").then(res=>{ + this.post({},"/api/uservice/user/getMyInfo").then(res=>{ this.userInfo = res.data; console.log(this.userInfo) }) diff --git a/src/views/User/UserInfo.vue b/src/views/User/UserInfo.vue index 5f15ca8..af7a500 100644 --- a/src/views/User/UserInfo.vue +++ b/src/views/User/UserInfo.vue @@ -67,7 +67,7 @@ export default { methods:{ getUserInfo() { // 获取用户信息 - this.post({customBaseURL:"/api"},"/api/uservice/user/getMyInfo").then(res=>{ + this.post({},"/api/uservice/user/getMyInfo").then(res=>{ this.user = res.data; }) }, @@ -78,7 +78,6 @@ export default { this.util.imgToBase64(file.raw).then(base64 => { console.log(base64); this.post({ - customBaseURL:"/api", img_base64: base64 }, "/api/pbservice/Other/base64Upload").then(res=>{ this.user.avatar = res.data.url; @@ -101,7 +100,7 @@ export default { saveUser() { this.$refs.userForm.validate((valid)=>{ if(valid){ - this.post({customBaseURL:"/api",...this.user},"/api/uservice/user/profile").then(res=>{ + this.post({...this.user},"/api/uservice/user/profile").then(res=>{ if (res.code == 1) { this.$message({ message: '修改成功', type:'success'}); }