Browse Source

打包

master
chenkainan 4 weeks ago
parent
commit
eca142b0d7
  1. 1
      dist/css/286.84b91fbd.css
  2. 1
      dist/css/334.5db4c613.css
  3. 2
      dist/css/441.edf1b234.css
  4. 1
      dist/css/446.4288d89e.css
  5. 1
      dist/css/573.40f2ee96.css
  6. 1
      dist/css/624.f7a540d4.css
  7. 1
      dist/css/927.6a2478bb.css
  8. 1
      dist/css/955.7f61bedf.css
  9. 1
      dist/css/975.7146016b.css
  10. 2
      dist/index.html
  11. 1
      dist/js/286.8f0d1d9c.js.map
  12. 2
      dist/js/334.f62139de.js
  13. 1
      dist/js/334.f62139de.js.map
  14. 2
      dist/js/441.1691e640.js
  15. 1
      dist/js/441.1691e640.js.map
  16. 1
      dist/js/446.3d8319df.js.map
  17. 4
      dist/js/573.e3b0bcf8.js
  18. 1
      dist/js/573.e3b0bcf8.js.map
  19. 1
      dist/js/624.1742d542.js.map
  20. 2
      dist/js/893.906271e2.js
  21. 1
      dist/js/893.906271e2.js.map
  22. 4
      dist/js/927.26798669.js
  23. 1
      dist/js/927.26798669.js.map
  24. 2
      dist/js/955.1d798592.js
  25. 1
      dist/js/955.1d798592.js.map
  26. 4
      dist/js/975.6d55c1a8.js
  27. 1
      dist/js/975.6d55c1a8.js.map
  28. 4
      dist/js/app.71c4eb46.js
  29. 2
      dist/js/app.71c4eb46.js.map
  30. 167
      src/views/Order/Index.vue
  31. 3
      src/views/User/OrderList.vue
  32. 8
      src/views/User/ShoppingCart.vue
  33. 2
      src/views/User/UserCenter.vue
  34. 5
      src/views/User/UserInfo.vue

1
dist/css/286.84b91fbd.css

@ -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}

1
dist/css/334.5db4c613.css

File diff suppressed because one or more lines are too long

2
dist/css/893.3aae9905.css → 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)} .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)}

1
dist/css/446.4288d89e.css

@ -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}

1
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}

1
dist/css/624.f7a540d4.css

@ -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}

1
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}

1
dist/css/955.7f61bedf.css

File diff suppressed because one or more lines are too long

1
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}

2
dist/index.html

@ -1 +1 @@
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>abcdf</title><script defer="defer" src="/js/chunk-vendors.cab40109.js"></script><script defer="defer" src="/js/app.523c1b3b.js"></script><link href="/css/chunk-vendors.10dd4e95.css" rel="stylesheet"><link href="/css/app.78312ffd.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but abcdf doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html> <!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>abcdf</title><script defer="defer" src="/js/chunk-vendors.cab40109.js"></script><script defer="defer" src="/js/app.71c4eb46.js"></script><link href="/css/chunk-vendors.10dd4e95.css" rel="stylesheet"><link href="/css/app.78312ffd.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but abcdf doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>

1
dist/js/286.8f0d1d9c.js.map

File diff suppressed because one or more lines are too long

2
dist/js/334.f62139de.js

File diff suppressed because one or more lines are too long

1
dist/js/334.f62139de.js.map

File diff suppressed because one or more lines are too long

2
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

1
dist/js/441.1691e640.js.map

File diff suppressed because one or more lines are too long

1
dist/js/446.3d8319df.js.map

File diff suppressed because one or more lines are too long

4
dist/js/446.3d8319df.js → dist/js/573.e3b0bcf8.js

File diff suppressed because one or more lines are too long

1
dist/js/573.e3b0bcf8.js.map

File diff suppressed because one or more lines are too long

1
dist/js/624.1742d542.js.map

File diff suppressed because one or more lines are too long

2
dist/js/893.906271e2.js

@ -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

1
dist/js/893.906271e2.js.map

File diff suppressed because one or more lines are too long

4
dist/js/286.8f0d1d9c.js → dist/js/927.26798669.js

File diff suppressed because one or more lines are too long

1
dist/js/927.26798669.js.map

File diff suppressed because one or more lines are too long

2
dist/js/955.1d798592.js

File diff suppressed because one or more lines are too long

1
dist/js/955.1d798592.js.map

File diff suppressed because one or more lines are too long

4
dist/js/624.1742d542.js → dist/js/975.6d55c1a8.js

File diff suppressed because one or more lines are too long

1
dist/js/975.6d55c1a8.js.map

File diff suppressed because one or more lines are too long

4
dist/js/app.523c1b3b.js → dist/js/app.71c4eb46.js

File diff suppressed because one or more lines are too long

2
dist/js/app.523c1b3b.js.map → dist/js/app.71c4eb46.js.map

File diff suppressed because one or more lines are too long

167
src/views/Order/Index.vue

@ -52,16 +52,24 @@
</el-radio-group> </el-radio-group>
</div> --> </div> -->
<!-- <h3>发票信息</h3> <h3>发票信息</h3>
<div class="invoice-type-item"> <div class="invoice-type-item">
<span class="label">是否开票</span>
<el-radio-group v-model="needInvoice">
<el-radio :label="true"></el-radio>
<el-radio :label="false"></el-radio>
</el-radio-group>
</div>
<div class="invoice-type-item" v-if="needInvoice">
<span class="label">发票类型</span> <span class="label">发票类型</span>
<el-radio-group v-model="selectedInvoiceType"> <el-radio-group v-model="invoice_type">
<el-radio :label="1">增值税普通发票</el-radio> <el-radio :label="1">增值税普通发票</el-radio>
<el-radio :label="2">普通电子发票</el-radio> <el-radio :label="2">普通电子发票</el-radio>
</el-radio-group> </el-radio-group>
</div> </div>
<div class="invoice-title-item"> <div class="invoice-title-item" v-if="needInvoice">
<span class="label">发票抬头</span> <span class="label">发票抬头</span>
<el-select <el-select
v-model="selectedInvoiceTitle" v-model="selectedInvoiceTitle"
@ -75,8 +83,10 @@
:value="title.id" :value="title.id"
></el-option> ></el-option>
</el-select> </el-select>
<el-button type="text" class="add-title-btn">+ 添加</el-button> <el-button type="text" class="add-title-btn" @click="openTitleDialog"
</div> --> >+ 添加</el-button
>
</div>
</div> </div>
<!-- 签署合同 --> <!-- 签署合同 -->
@ -191,6 +201,55 @@
@update:visible="dialogVisible = $event" @update:visible="dialogVisible = $event"
@save="handleSaveAddress" @save="handleSaveAddress"
/> />
<!-- 新增发票抬头弹框 -->
<el-dialog
title="新增发票抬头"
:visible.sync="invoiceTitleDialogVisible"
width="500px"
:before-close="handleTitleDialogClose"
>
<el-form
ref="titleForm"
:model="titleForm"
:rules="titleRules"
label-width="120px"
class="invoice-title-form"
>
<el-form-item label="发票抬头" prop="name">
<el-input
v-model="titleForm.invoice_head"
placeholder="请输入发票抬头"
maxlength="100"
></el-input>
</el-form-item>
<el-form-item label="纳税人识别号" prop="taxpayerId">
<el-input
v-model="titleForm.tax_number"
placeholder="请输入纳税人识别号"
maxlength="20"
></el-input>
</el-form-item>
<el-form-item label="开户银行" prop="bankName">
<el-input
v-model="titleForm.opening_bank"
placeholder="请输入开户银行"
maxlength="100"
></el-input>
</el-form-item>
<el-form-item label="银行账号" prop="bankAccount">
<el-input
v-model="titleForm.bank_account"
placeholder="请输入银行账号"
maxlength="30"
></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="handleTitleDialogClose">取消</el-button>
<el-button type="primary" @click="saveInvoiceTitle">确定</el-button>
</div>
</el-dialog>
</div> </div>
</template> </template>
@ -213,14 +272,10 @@ export default {
selectedTradeType: 1, // 1: 2: selectedTradeType: 1, // 1: 2:
// //
selectedInvoiceType: 1, // 1: 2: needInvoice: false, //
invoice_type: 1, // 1: 2:
// //
invoiceTitles: [ invoiceTitles: [],
{ id: 1, name: "苏州特色农产品发展有限公司" },
{ id: 2, name: "个人" },
{ id: 3, name: "苏州科技有限公司" },
],
selectedInvoiceTitle: null, selectedInvoiceTitle: null,
// //
@ -235,6 +290,34 @@ export default {
dialogVisible: false, dialogVisible: false,
dialogType: "add", dialogType: "add",
dialogData: {}, 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: { computed: {
@ -254,9 +337,55 @@ export default {
this.$router.go(-1); this.$router.go(-1);
} }
this.getAddress(); this.getAddress();
this.getInvoiceList();
}, },
methods: { methods: {
...mapMutations(["clearOrderData"]), ...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) { openDialog(type, item) {
this.dialogType = type; this.dialogType = type;
@ -482,6 +611,12 @@ export default {
return; return;
} }
//
if (this.needInvoice && this.selectedInvoiceTitle === null) {
this.$message.warning("请选择发票抬头");
return;
}
let goods = []; let goods = [];
this.orderGroups.forEach((group, groupIndex) => { this.orderGroups.forEach((group, groupIndex) => {
group.items.forEach((item, itemIndex) => { 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( this.post(
{ {
data: JSON.stringify({ product_list: goods }), data: JSON.stringify(data),
}, },
"/api/order/create" "/api/order/create"
).then((res) => { ).then((res) => {

3
src/views/User/OrderList.vue

@ -250,8 +250,7 @@ export default {
this.post( this.post(
{ {
...this.filterForm, ...this.filterForm,
offset: (this.filterForm.currentPage - 1) * this.filterForm.limit, offset: (this.filterForm.currentPage - 1) * this.filterForm.limit
customBaseURL: "/api",
}, },
"/api/order/list" "/api/order/list"
).then((res) => { ).then((res) => {

8
src/views/User/ShoppingCart.vue

@ -194,7 +194,7 @@ export default {
this.$router.push("/Order"); this.$router.push("/Order");
}, },
getList() { getList() {
this.post({ customBaseURL: "/api" }, "/api/cart/get_list", true).then( this.post({ }, "/api/cart/get_list", true).then(
(res) => { (res) => {
let resData = res.data || []; let resData = res.data || [];
let currentSelectGoodsIds = this.selectedRows.map((v) => v.id); let currentSelectGoodsIds = this.selectedRows.map((v) => v.id);
@ -266,14 +266,14 @@ export default {
// //
handleNumChange(goods) { handleNumChange(goods) {
this.post( this.post(
{ id: goods.id, num: goods.num, customBaseURL: "/api" }, { id: goods.id, num: goods.num },
"/api/cart/update_sku" "/api/cart/update_sku"
).then((res) => {}); ).then((res) => {});
}, },
delItem(item) { delItem(item) {
this.post( this.post(
{ id: item.id, customBaseURL: "/api" }, { id: item.id },
"/api/cart/del_sku" "/api/cart/del_sku"
).then((res) => { ).then((res) => {
this.getList(); this.getList();
@ -281,7 +281,7 @@ export default {
}, },
deleteSelected() { deleteSelected() {
let ids = this.selectedRows.map((v) => v.id).join(","); 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) => { (res) => {
this.getList(); this.getList();
} }

2
src/views/User/UserCenter.vue

@ -137,7 +137,7 @@ export default {
methods: { methods: {
getUserInfo() { getUserInfo() {
// //
this.post({customBaseURL:"/api"},"/api/uservice/user/getMyInfo").then(res=>{ this.post({},"/api/uservice/user/getMyInfo").then(res=>{
this.userInfo = res.data; this.userInfo = res.data;
console.log(this.userInfo) console.log(this.userInfo)
}) })

5
src/views/User/UserInfo.vue

@ -67,7 +67,7 @@ export default {
methods:{ methods:{
getUserInfo() { getUserInfo() {
// //
this.post({customBaseURL:"/api"},"/api/uservice/user/getMyInfo").then(res=>{ this.post({},"/api/uservice/user/getMyInfo").then(res=>{
this.user = res.data; this.user = res.data;
}) })
}, },
@ -78,7 +78,6 @@ export default {
this.util.imgToBase64(file.raw).then(base64 => { this.util.imgToBase64(file.raw).then(base64 => {
console.log(base64); console.log(base64);
this.post({ this.post({
customBaseURL:"/api",
img_base64: base64 img_base64: base64
}, "/api/pbservice/Other/base64Upload").then(res=>{ }, "/api/pbservice/Other/base64Upload").then(res=>{
this.user.avatar = res.data.url; this.user.avatar = res.data.url;
@ -101,7 +100,7 @@ export default {
saveUser() { saveUser() {
this.$refs.userForm.validate((valid)=>{ this.$refs.userForm.validate((valid)=>{
if(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) { if (res.code == 1) {
this.$message({ message: '修改成功', type:'success'}); this.$message({ message: '修改成功', type:'success'});
} }

Loading…
Cancel
Save