From 91b0f4c70e90684bd2fe7069f4cdc5a855f2e91b Mon Sep 17 00:00:00 2001
From: kk <123>
Date: Sat, 20 Jul 2024 14:31:35 +0800
Subject: [PATCH 01/10] =?UTF-8?q?=E5=95=86=E5=93=81=E5=93=81=E7=89=8C?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2,=E5=88=9B=E5=BB=BA=E5=88=86=E6=94=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/goods-gifts/goods-brand/goodsBrand.js | 35 +++
src/router/routes.js | 2 +-
src/views/goods-gifts/goods-brand/index.vue | 297 ++++++++++++++++++
3 files changed, 333 insertions(+), 1 deletion(-)
create mode 100644 src/api/goods-gifts/goods-brand/goodsBrand.js
create mode 100644 src/views/goods-gifts/goods-brand/index.vue
diff --git a/src/api/goods-gifts/goods-brand/goodsBrand.js b/src/api/goods-gifts/goods-brand/goodsBrand.js
new file mode 100644
index 0000000..367f069
--- /dev/null
+++ b/src/api/goods-gifts/goods-brand/goodsBrand.js
@@ -0,0 +1,35 @@
+import request from '@/utils/request'
+
+export function goodsBrandFindAll(data) {
+ return request({
+ baseURL:`http://localhost:8000`,
+ url: '/goodsBrand/showBrands',
+ method: 'post',
+ data
+ })
+}
+
+export function goodsBrandUpdate(data) {
+ return request({
+ baseURL:`http://localhost:8000`,
+ url: '/goodsBrand/updateBrands',
+ method: 'put',
+ data
+ })
+}
+export function goodsBrandAdd(data) {
+ return request({
+ baseURL:`http://localhost:8000`,
+ url: '/goodsBrand/addBrands',
+ method: 'put',
+ data
+ })
+}
+export function goodsBrandDelete(data) {
+ return request({
+ baseURL:`http://localhost:8000`,
+ url: '/goodsBrand/deleteBrands/'+data,
+ method: 'delete',
+ data
+ })
+}
\ No newline at end of file
diff --git a/src/router/routes.js b/src/router/routes.js
index e31c6a8..ae858aa 100644
--- a/src/router/routes.js
+++ b/src/router/routes.js
@@ -99,7 +99,7 @@ export const dynamicRoutes = [{
meta: {title: '商品管理', icon: 'el-icon-user', noCache: true},
children: [{
path: 'brand',
- component: () => import('@/views/brand/index'),
+ component: () => import('@/views/goods-gifts/goods-brand/index'),
name: 'Brand',
meta: {title: '品牌管理', icon: 'el-icon-user', noCache: true},
},
diff --git a/src/views/goods-gifts/goods-brand/index.vue b/src/views/goods-gifts/goods-brand/index.vue
new file mode 100644
index 0000000..ee784d2
--- /dev/null
+++ b/src/views/goods-gifts/goods-brand/index.vue
@@ -0,0 +1,297 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 添加
+
+
+
+
+
+
+
+
+ 编辑
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 上传品牌Logo
+
+
+ jpg/png files with a size less than 500kb
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 上传品牌Logo
+
+
+ jpg/png files with a size less than 500kb
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
--
Gitee
From a30bf441a194ffddddabca65b5d0e0c972795a82 Mon Sep 17 00:00:00 2001
From: kk <123>
Date: Sat, 20 Jul 2024 22:29:09 +0800
Subject: [PATCH 02/10] =?UTF-8?q?=E5=88=86=E7=B1=BB=E9=A1=B5=E9=9D=A2,?=
=?UTF-8?q?=E6=9D=A1=E4=BB=B6=E6=9F=A5=E8=AF=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../goods-classify/goodsClassify.js | 35 +++++++
src/router/routes.js | 12 ++-
src/views/goods-gifts/goods-brand/index.vue | 50 ++++++----
.../goods-gifts/goods-classify/index.vue | 91 +++++++++++++++++++
4 files changed, 168 insertions(+), 20 deletions(-)
create mode 100644 src/api/goods-gifts/goods-classify/goodsClassify.js
create mode 100644 src/views/goods-gifts/goods-classify/index.vue
diff --git a/src/api/goods-gifts/goods-classify/goodsClassify.js b/src/api/goods-gifts/goods-classify/goodsClassify.js
new file mode 100644
index 0000000..9759e10
--- /dev/null
+++ b/src/api/goods-gifts/goods-classify/goodsClassify.js
@@ -0,0 +1,35 @@
+import request from '@/utils/request'
+
+export function goodsClassifyFindAll(data) {
+ return request({
+ baseURL:`http://localhost:8000`,
+ url: '/goodsClassify/showAllClassify',
+ method: 'post',
+ data
+ })
+}
+
+export function goodsBrandUpdate(data) {
+ return request({
+ baseURL:`http://localhost:8000`,
+ url: '/goodsBrand/updateBrands',
+ method: 'put',
+ data
+ })
+}
+export function goodsBrandAdd(data) {
+ return request({
+ baseURL:`http://localhost:8000`,
+ url: '/goodsBrand/addBrands',
+ method: 'put',
+ data
+ })
+}
+export function goodsBrandDelete(data) {
+ return request({
+ baseURL:`http://localhost:8000`,
+ url: '/goodsBrand/deleteBrands/'+data,
+ method: 'delete',
+ data
+ })
+}
\ No newline at end of file
diff --git a/src/router/routes.js b/src/router/routes.js
index ae858aa..42450f3 100644
--- a/src/router/routes.js
+++ b/src/router/routes.js
@@ -109,10 +109,16 @@ export const dynamicRoutes = [{
name: 'Goods',
meta: {title: '商品管理', icon: 'el-icon-user', noCache: true},
},
- {
- path: 'category',
+ /* {
+ path: 'category2',
component: () => import('@/views/table/inline-edit-table'),
- name: 'Category',
+ name: 'Category2',
+ meta: {title: '分类管理12', icon: 'el-icon-user', noCache: true},
+ },*/
+ {
+ path: 'classify',
+ component: () => import('@/views/goods-gifts/goods-classify/index'),
+ name: 'Classify',
meta: {title: '分类管理', icon: 'el-icon-user', noCache: true},
},
{
diff --git a/src/views/goods-gifts/goods-brand/index.vue b/src/views/goods-gifts/goods-brand/index.vue
index ee784d2..df7ae78 100644
--- a/src/views/goods-gifts/goods-brand/index.vue
+++ b/src/views/goods-gifts/goods-brand/index.vue
@@ -15,7 +15,7 @@
- 添加
+ 添加
@@ -62,7 +62,7 @@
@@ -135,12 +135,12 @@ import {ElMessage} from "element-plus";
import store from "@/store";
/*上传logo*/
const tokens = ref()
-const fileList = ref([
+/*const fileList = ref([
{
name: '',
url: '',
}
-])
+])*/
const uploadBrandLogo=()=>{
tokens.value={"X-token":store.state.user.token}
}
@@ -195,21 +195,30 @@ function loadGoodsBrand(v){
/*后台查询到的品牌数据赋值给tableData*/
const tableData = ref()
onMounted(() => {
- loadGoodsBrand()
+ loadGoodsBrand(search.value)
})
const dialogFormVisible = ref(false)
-const dialogFormGoodsBrandVisible = ref(false)
+let dialogFormGoodsBrandVisible = ref(false)
const formLabelWidth = '140px'
-const form = ref()
-let addGoodsBrandForm = ref({
+const form = ref({
+ id: "",
+ brandName: "",
+ brandUrl: "",
+ brandDescribe: "",
+ brandLogo: ""
+})
+let addGoodsBrandForm = reactive({
brandName: "",
brandUrl: "",
brandDescribe: "",
brandLogo: ""
})
+
/*点击编辑按钮显示表格内容*/
const handleEdit = (index, row) => {
+ fileListEdit.value[0].url=row.brandLogo
+ fileListEdit.value[0].name=row.brandName
form.value = row
dialogFormVisible.value = true
console.log("index,row的值", index, row)
@@ -236,6 +245,7 @@ const updateGoodsBrand = () => {
let {success, msg, data} = res
if (success) {
ElMessage.success(msg)
+ loadGoodsBrand(search.value)
} else {
ElMessage.error(msg)
}
@@ -245,18 +255,22 @@ const updateGoodsBrand = () => {
})
}
/*添加品牌*/
+const clearAddForm=()=>{
+ addGoodsBrandForm.brandName=""
+ addGoodsBrandForm.brandUrl=""
+ addGoodsBrandForm.brandDescribe=""
+ addGoodsBrandForm.brandLogo=""
+
+ dialogFormGoodsBrandVisible.value = true
+}
const addGoodsBrand = () => {
- goodsBrandAdd(addGoodsBrandForm.value).then(res => {
+
+ goodsBrandAdd(addGoodsBrandForm).then(res => {
+
console.log("返回的数据", res)
let {success, msg, data} = res
if (success) {
ElMessage.success(msg)
- addGoodsBrandForm = ref({
- brandName: "",
- brandUrl: "",
- brandDescribe: "",
- brandLogo: ""
- })
loadGoodsBrand()
} else {
ElMessage.error(msg)
@@ -268,7 +282,9 @@ const addGoodsBrand = () => {
}
/*条件查询*/
-const queryGoodsBrand=function (){
+const queryGoodsBrand=function (f){
+ currentPage.value=1
+ search.value=f
loadGoodsBrand(search.value)
}
/*分页*/
diff --git a/src/views/goods-gifts/goods-classify/index.vue b/src/views/goods-gifts/goods-classify/index.vue
new file mode 100644
index 0000000..838fa59
--- /dev/null
+++ b/src/views/goods-gifts/goods-classify/index.vue
@@ -0,0 +1,91 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 添加
+
+
+
+
+
+
+
+
+ 编辑
+ 删除
+
+
+
+
+
+
+
+
+
\ No newline at end of file
--
Gitee
From bfd4545d9d736e9708e2e69de3de1ac778abd7bb Mon Sep 17 00:00:00 2001
From: kk <123>
Date: Sat, 20 Jul 2024 22:49:53 +0800
Subject: [PATCH 03/10] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=95=86=E5=93=81?=
=?UTF-8?q?=E5=88=86=E7=B1=BB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../goods-classify/goodsClassify.js | 4 ++--
.../goods-gifts/goods-classify/index.vue | 24 +++++++++++++++++--
2 files changed, 24 insertions(+), 4 deletions(-)
diff --git a/src/api/goods-gifts/goods-classify/goodsClassify.js b/src/api/goods-gifts/goods-classify/goodsClassify.js
index 9759e10..f1051d9 100644
--- a/src/api/goods-gifts/goods-classify/goodsClassify.js
+++ b/src/api/goods-gifts/goods-classify/goodsClassify.js
@@ -25,10 +25,10 @@ export function goodsBrandAdd(data) {
data
})
}
-export function goodsBrandDelete(data) {
+export function goodsClassifyDelete(data) {
return request({
baseURL:`http://localhost:8000`,
- url: '/goodsBrand/deleteBrands/'+data,
+ url: '/goodsClassify/deleteGoodsClassify/'+data,
method: 'delete',
data
})
diff --git a/src/views/goods-gifts/goods-classify/index.vue b/src/views/goods-gifts/goods-classify/index.vue
index 838fa59..3f24a92 100644
--- a/src/views/goods-gifts/goods-classify/index.vue
+++ b/src/views/goods-gifts/goods-classify/index.vue
@@ -20,7 +20,7 @@
- 编辑
+ 修改
删除
@@ -44,13 +44,16 @@
\ No newline at end of file
--
Gitee
From 1827bbe333b8e784bfc16bc05fe5c2b3650d3260 Mon Sep 17 00:00:00 2001
From: kk <123>
Date: Mon, 22 Jul 2024 11:49:59 +0800
Subject: [PATCH 05/10] =?UTF-8?q?=E7=A9=BF=E6=A2=AD=E6=A1=86=E4=BF=9D?=
=?UTF-8?q?=E5=AD=98=E5=93=81=E7=89=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../goods-classify/goodsClassify.js | 8 +++++
.../goods-gifts/goods-classify/index.vue | 31 ++++++++++++++++---
2 files changed, 34 insertions(+), 5 deletions(-)
diff --git a/src/api/goods-gifts/goods-classify/goodsClassify.js b/src/api/goods-gifts/goods-classify/goodsClassify.js
index bb9078c..ad596c1 100644
--- a/src/api/goods-gifts/goods-classify/goodsClassify.js
+++ b/src/api/goods-gifts/goods-classify/goodsClassify.js
@@ -41,4 +41,12 @@ export function chooseGoodsBrand(data) {
method: 'get',
data
})
+}
+export function saveChooseGoodsBrand(data) {
+ return request({
+ baseURL:`http://localhost:8000`,
+ url: '/goodsClassify/saveChooseGoodsBrand',
+ method: 'put',
+ data
+ })
}
\ No newline at end of file
diff --git a/src/views/goods-gifts/goods-classify/index.vue b/src/views/goods-gifts/goods-classify/index.vue
index a0c6ef9..1571417 100644
--- a/src/views/goods-gifts/goods-classify/index.vue
+++ b/src/views/goods-gifts/goods-classify/index.vue
@@ -108,7 +108,7 @@ import {
chooseGoodsBrand,
goodsClassifyAdd,
goodsClassifyDelete,
- goodsClassifyFindAll, goodsClassifyUpdate
+ goodsClassifyFindAll, goodsClassifyUpdate, saveChooseGoodsBrand
} from "@/api/goods-gifts/goods-classify/goodsClassify";
import {goodsBrandAdd, goodsBrandDelete, goodsBrandUpdate} from "@/api/goods-gifts/goods-brand/goodsBrand";
import {ElMessage} from "element-plus";
@@ -205,6 +205,7 @@ const addGoodsClassify = () => {
/*修改内容*/
/*修改类型*/
let updateGoodsClassifyForm = ref({
+ id:"",
classifyName: "",
classifyDescribe: ""
@@ -258,6 +259,7 @@ const dialogVisible = ref(false);
const showTransferDialog = (index, row) => {
dialogVisible.value = true;
chooseGoodsBrand(row.id).then(res => {
+ updateGoodsClassifyForm.value.id=row.id
console.log("返回的数据", res)
let {success, msg, data} = res
if (success) {
@@ -286,18 +288,37 @@ const showTransferDialog = (index, row) => {
};
// 保存选择并发送给后端的方法
+const returnSelectedBrand = reactive({
+ selectedBrands: [],
+ selectedClassify: ''
+});
const saveSelection = () => {
// 发送数据到后端的逻辑
- sendDataToBackend(selectedBrandIds.value);
- alert(selectedBrandIds.value)
- console.log("数据",selectedBrandIds.value)
+ returnSelectedBrand.selectedBrands=selectedBrandIds.value
+ returnSelectedBrand.selectedClassify=updateGoodsClassifyForm.value.id
+ saveChooseGoodsBrand(returnSelectedBrand).then(res => {
+
+ console.log("返回的数据", res)
+ let {success, msg, data} = res
+ if (success) {
+ ElMessage.success(msg)
+ loadGoodsClassify()
+ } else {
+ ElMessage.error(msg)
+ }
+ }).catch(e => {
+ ElMessage.error(e)
+ })
+ /*sendDataToBackend(selectedBrandIds.value);
+ alert(returnSelectedBrand)*/
+ console.log("选择品牌数据",returnSelectedBrand)
dialogVisible.value = false;
};
// 发送数据到后端的模拟函数
const sendDataToBackend = (data) => {
// 在实际应用中,这里应该调用axios或fetch等方法来发送数据
- console.log('发送数据到后端:', data);
+ //console.log('发送数据到后端:', data);
};
\ No newline at end of file
diff --git a/src/views/goods-gifts/goods-product/index.vue b/src/views/goods-gifts/goods-product/index.vue
new file mode 100644
index 0000000..1f93297
--- /dev/null
+++ b/src/views/goods-gifts/goods-product/index.vue
@@ -0,0 +1,173 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
--
Gitee
From d1e669c67c69ad2c7e33a782ba45901b007a6cd9 Mon Sep 17 00:00:00 2001
From: kk <123>
Date: Wed, 24 Jul 2024 22:13:54 +0800
Subject: [PATCH 07/10] =?UTF-8?q?=E5=95=86=E5=93=81=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=B7=AE=E4=B8=80=E4=B8=AA=E4=BF=AE=E6=94=B9?=
=?UTF-8?q?=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/goods-gifts/goods-goods/goodsGoods.js | 36 +-
src/views/goods-gifts/goods-goods/index.vue | 493 +++++++++++++++++-
2 files changed, 517 insertions(+), 12 deletions(-)
diff --git a/src/api/goods-gifts/goods-goods/goodsGoods.js b/src/api/goods-gifts/goods-goods/goodsGoods.js
index 59f398a..144e7a1 100644
--- a/src/api/goods-gifts/goods-goods/goodsGoods.js
+++ b/src/api/goods-gifts/goods-goods/goodsGoods.js
@@ -15,4 +15,38 @@ export function goodsGoodsFindAll(data) {
method: 'post',
data
})
-}
\ No newline at end of file
+}
+export function goodsGoodsDelete(data) {
+ return request({
+ baseURL:`http://localhost:8000`,
+ url: '/goodsGoods/goodsGoodsDelete/'+data,
+ method: 'delete',
+ data
+ })
+}
+export function addSecondGoods(data) {
+ return request({
+ baseURL:`http://localhost:8000`,
+ url: '/goodsGoods/addSecondGoods',
+ method: 'put',
+ data
+ })
+}
+
+export function showAllFirstProduct(data) {
+ return request({
+ baseURL:`http://localhost:8000`,
+ url: '/goodsGoods/showAllFirstProduct',
+ method: 'get',
+ data
+ })
+}
+
+export function addFirstGoods(data) {
+ return request({
+ baseURL:`http://localhost:8000`,
+ url: '/goodsGoods/addFirstGoods',
+ method: 'put',
+ data
+ })
+}
diff --git a/src/views/goods-gifts/goods-goods/index.vue b/src/views/goods-gifts/goods-goods/index.vue
index 3002c9a..5556278 100644
--- a/src/views/goods-gifts/goods-goods/index.vue
+++ b/src/views/goods-gifts/goods-goods/index.vue
@@ -39,22 +39,31 @@
- 创建一类商品
- 创建二类商品
+ 创建一类商品
+ 创建二类商品
搜索
-
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+ 查看
+ 修改
+ 删除
+
+
+
@@ -71,13 +80,263 @@
@current-change="handleCurrentChange"
/>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 选择产品
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 选择
+
+
+
+
+
--
Gitee
From 46742a14e6224461c200d110d5aaa3e683110686 Mon Sep 17 00:00:00 2001
From: kk <123>
Date: Thu, 25 Jul 2024 23:00:24 +0800
Subject: [PATCH 08/10] =?UTF-8?q?=E4=BB=B7=E6=A0=BC=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=E6=A8=A1=E6=80=81=E6=A1=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/goods-gifts/goods-goods/goodsGoods.js | 8 +
src/api/goods-gifts/goods-price/goodsPrice.js | 60 ++++
src/router/routes.js | 7 +-
src/views/goods-gifts/goods-goods/index.vue | 214 ++++++++++++--
src/views/goods-gifts/goods-price/index.vue | 261 ++++++++++++++++++
5 files changed, 532 insertions(+), 18 deletions(-)
create mode 100644 src/api/goods-gifts/goods-price/goodsPrice.js
create mode 100644 src/views/goods-gifts/goods-price/index.vue
diff --git a/src/api/goods-gifts/goods-goods/goodsGoods.js b/src/api/goods-gifts/goods-goods/goodsGoods.js
index 144e7a1..36ccdcf 100644
--- a/src/api/goods-gifts/goods-goods/goodsGoods.js
+++ b/src/api/goods-gifts/goods-goods/goodsGoods.js
@@ -50,3 +50,11 @@ export function addFirstGoods(data) {
data
})
}
+export function updateFirstGoods(data) {
+ return request({
+ baseURL:`http://localhost:8000`,
+ url: '/goodsGoods/updateFirstGoods',
+ method: 'put',
+ data
+ })
+}
diff --git a/src/api/goods-gifts/goods-price/goodsPrice.js b/src/api/goods-gifts/goods-price/goodsPrice.js
new file mode 100644
index 0000000..e3da9b8
--- /dev/null
+++ b/src/api/goods-gifts/goods-price/goodsPrice.js
@@ -0,0 +1,60 @@
+import request from '@/utils/request'
+
+export function getAllGoods(data) {
+ return request({
+ baseURL:`http://localhost:8000`,
+ url: '/goodsPrice/getAllGoods',
+ method: 'get',
+ data
+ })
+}
+export function goodsGoodsFindAll(data) {
+ return request({
+ baseURL:`http://localhost:8000`,
+ url: '/goodsGoods/goodsGoodsFindAll',
+ method: 'post',
+ data
+ })
+}
+export function goodsGoodsDelete(data) {
+ return request({
+ baseURL:`http://localhost:8000`,
+ url: '/goodsGoods/goodsGoodsDelete/'+data,
+ method: 'delete',
+ data
+ })
+}
+export function addSecondGoods(data) {
+ return request({
+ baseURL:`http://localhost:8000`,
+ url: '/goodsGoods/addSecondGoods',
+ method: 'put',
+ data
+ })
+}
+
+export function showAllFirstProduct(data) {
+ return request({
+ baseURL:`http://localhost:8000`,
+ url: '/goodsGoods/showAllFirstProduct',
+ method: 'get',
+ data
+ })
+}
+
+export function addFirstGoods(data) {
+ return request({
+ baseURL:`http://localhost:8000`,
+ url: '/goodsGoods/addFirstGoods',
+ method: 'put',
+ data
+ })
+}
+export function updateFirstGoods(data) {
+ return request({
+ baseURL:`http://localhost:8000`,
+ url: '/goodsGoods/updateFirstGoods',
+ method: 'put',
+ data
+ })
+}
diff --git a/src/router/routes.js b/src/router/routes.js
index de4da16..7fac72a 100644
--- a/src/router/routes.js
+++ b/src/router/routes.js
@@ -121,8 +121,13 @@ export const dynamicRoutes = [{
component: () => import('@/views/goods-gifts/goods-goods/index.vue'),
name: 'Factory',
meta: {title: '商品管理', icon: 'el-icon-user', noCache: true},
+ },
+ {
+ path: 'goodsPrice',
+ component: () => import('@/views/goods-gifts/goods-price/index.vue'),
+ name: 'GoodsPrice',
+ meta: {title: '价格调整管理', icon: 'el-icon-user', noCache: true},
}
-
]
}, {
path: 'brand',
diff --git a/src/views/goods-gifts/goods-goods/index.vue b/src/views/goods-gifts/goods-goods/index.vue
index 5556278..04f2b37 100644
--- a/src/views/goods-gifts/goods-goods/index.vue
+++ b/src/views/goods-gifts/goods-goods/index.vue
@@ -84,47 +84,47 @@
-
-
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -321,6 +321,118 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 选择
+
+
+
+
+
\ No newline at end of file
--
Gitee
From 8fb0792b93bbd9ac754cdb37043cdf27e41b4ace Mon Sep 17 00:00:00 2001
From: kk <123>
Date: Sun, 28 Jul 2024 20:47:15 +0800
Subject: [PATCH 09/10] =?UTF-8?q?=E4=BB=B7=E6=A0=BC=E5=AE=A1=E6=A0=B8?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/goods-gifts/goods-check/goodsCheck.js | 44 +++
src/api/goods-gifts/goods-price/goodsPrice.js | 32 +-
src/router/routes.js | 6 +
src/views/goods-gifts/goods-check/index.vue | 285 ++++++++++++++
src/views/goods-gifts/goods-price/index.vue | 358 +++++++++++++++++-
5 files changed, 681 insertions(+), 44 deletions(-)
create mode 100644 src/api/goods-gifts/goods-check/goodsCheck.js
create mode 100644 src/views/goods-gifts/goods-check/index.vue
diff --git a/src/api/goods-gifts/goods-check/goodsCheck.js b/src/api/goods-gifts/goods-check/goodsCheck.js
new file mode 100644
index 0000000..6790261
--- /dev/null
+++ b/src/api/goods-gifts/goods-check/goodsCheck.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+export function getAllGoods(data) {
+ return request({
+ baseURL:`http://localhost:8000`,
+ url: '/goodsPrice/getAllGoods',
+ method: 'get',
+ data
+ })
+}
+export function goodsCheckFindAll(data) {
+ return request({
+ baseURL:`http://localhost:8000`,
+ url: '/goodsCheck/goodsCheckFindAll',
+ method: 'post',
+ data
+ })
+}
+export function priceAdjustDelete(data) {
+ return request({
+ baseURL:`http://localhost:8000`,
+ url: '/goodsPrice/priceAdjustDelete/'+data,
+ method: 'delete',
+ data
+ })
+}
+
+
+export function saveGoodsPriceAdjust(data) {
+ return request({
+ baseURL:`http://localhost:8000`,
+ url: '/goodsPrice/saveGoodsPriceAdjust',
+ method: 'put',
+ data
+ })
+}
+export function updatePriceAdjust(data) {
+ return request({
+ baseURL:`http://localhost:8000`,
+ url: '/goodsPrice/updatePriceAdjust',
+ method: 'put',
+ data
+ })
+}
diff --git a/src/api/goods-gifts/goods-price/goodsPrice.js b/src/api/goods-gifts/goods-price/goodsPrice.js
index e3da9b8..1fb8dfd 100644
--- a/src/api/goods-gifts/goods-price/goodsPrice.js
+++ b/src/api/goods-gifts/goods-price/goodsPrice.js
@@ -8,52 +8,36 @@ export function getAllGoods(data) {
data
})
}
-export function goodsGoodsFindAll(data) {
+export function goodsPriceAdjustFindAll(data) {
return request({
baseURL:`http://localhost:8000`,
- url: '/goodsGoods/goodsGoodsFindAll',
+ url: '/goodsPrice/goodsPriceAdjustFindAll',
method: 'post',
data
})
}
-export function goodsGoodsDelete(data) {
+export function priceAdjustDelete(data) {
return request({
baseURL:`http://localhost:8000`,
- url: '/goodsGoods/goodsGoodsDelete/'+data,
+ url: '/goodsPrice/priceAdjustDelete/'+data,
method: 'delete',
data
})
}
-export function addSecondGoods(data) {
- return request({
- baseURL:`http://localhost:8000`,
- url: '/goodsGoods/addSecondGoods',
- method: 'put',
- data
- })
-}
-export function showAllFirstProduct(data) {
- return request({
- baseURL:`http://localhost:8000`,
- url: '/goodsGoods/showAllFirstProduct',
- method: 'get',
- data
- })
-}
-export function addFirstGoods(data) {
+export function saveGoodsPriceAdjust(data) {
return request({
baseURL:`http://localhost:8000`,
- url: '/goodsGoods/addFirstGoods',
+ url: '/goodsPrice/saveGoodsPriceAdjust',
method: 'put',
data
})
}
-export function updateFirstGoods(data) {
+export function updatePriceAdjust(data) {
return request({
baseURL:`http://localhost:8000`,
- url: '/goodsGoods/updateFirstGoods',
+ url: '/goodsPrice/updatePriceAdjust',
method: 'put',
data
})
diff --git a/src/router/routes.js b/src/router/routes.js
index 7fac72a..0c6fa09 100644
--- a/src/router/routes.js
+++ b/src/router/routes.js
@@ -127,6 +127,12 @@ export const dynamicRoutes = [{
component: () => import('@/views/goods-gifts/goods-price/index.vue'),
name: 'GoodsPrice',
meta: {title: '价格调整管理', icon: 'el-icon-user', noCache: true},
+ },
+ {
+ path: 'goodsCheck',
+ component: () => import('@/views/goods-gifts/goods-check/index.vue'),
+ name: 'GoodsCheck',
+ meta: {title: '价格调整审核', icon: 'el-icon-user', noCache: true},
}
]
}, {
diff --git a/src/views/goods-gifts/goods-check/index.vue b/src/views/goods-gifts/goods-check/index.vue
new file mode 100644
index 0000000..6b21cb2
--- /dev/null
+++ b/src/views/goods-gifts/goods-check/index.vue
@@ -0,0 +1,285 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查看
+ 审核
+
+ 审核跟踪
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查看
+ 审核
+ 审核跟踪
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查看
+ 审核
+ 审核跟踪
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/goods-gifts/goods-price/index.vue b/src/views/goods-gifts/goods-price/index.vue
index 3413e37..8bcf9ad 100644
--- a/src/views/goods-gifts/goods-price/index.vue
+++ b/src/views/goods-gifts/goods-price/index.vue
@@ -24,9 +24,9 @@
-
-
-
+
+
+
@@ -76,27 +76,27 @@
-
+
-
+
-
+
-
+
-
+
-
+
选择商品
@@ -130,20 +130,192 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查看
+ 修改
+ 删除
+ 审核跟踪
+
+
+
+
+
+
+
+
+ {{ viewForm.goodsId }}
+ {{ viewForm.goodsName }}
+ {{ viewForm.minStock }}
+
+
+
+
+ {{ viewForm.originalMarketPrice }}
+
+
+
+
+ {{ viewForm.originalMallPrice }}
+
+
+
+
+
+
+
+
+ {{ viewForm.marketPrice }}
+
+
+
+
+ {{ viewForm.mallPrice }}
+
+
+
+
+ {{ viewForm.effectiveTime }}
+ {{ viewForm.failureTime }}
+ {{ viewForm.priceReason }}
+ {{ viewForm.priceRemark }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ trackForm.productName }}
+ {{ trackForm.originalPrice }}
+ {{ trackForm.adjustedPrice }}
+ {{ trackForm.effectiveTime }}
+ {{ trackForm.approvalStatus }}
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
+
+// 页面展示示例数据
+const tableData = ref()
+ // 假设这里填充了商品列表数据
+
+
+const dialogViewVisible = ref(false);
+const dialogEditVisible = ref(false);
+const dialogTrackVisible = ref(false);
+const viewForm = ref({});
+const editForm = ref({});
+const trackForm = ref({});
+const approvalRecords = ref([
+ // 这里填充审批记录数据
+]);
+const rules = ref({ /* 验证规则 */ });
+const editFormRef = ref(null);
+
+const viewProduct = (row) => {
+ viewForm.value = { ...row };
+ dialogViewVisible.value = true;
+};
+
+const editProduct = (row) => {
+ editForm.value = { ...row };
+ dialogEditVisible.value = true;
+};
+
+const deleteProduct = (row) => {
+ priceAdjustDelete(row.id).then(res => {
+ console.log("返回的数据", res)
+ let {success, msg, data} = res
+ if (success) {
+ ElMessage.success(msg)
+ handleSearch()
+ } else {
+ ElMessage.error(msg)
+ }
+ }).catch(e => {
+ ElMessage.error(e)
+ })
+ // 实现删除逻辑
+};
+
+const trackApproval = (row) => {
+ trackForm.value = { ...row };
+ dialogTrackVisible.value = true;
+};
+
+const saveChanges = () => {
+ updatePriceAdjust(editForm.value).then(res => {
+
+ console.log("返回的数据", res)
+ let {success, msg, data} = res
+ if (success) {
+ ElMessage.success(msg)
+
+ handleSearch()
+ } else {
+ ElMessage.error(msg)
+ }
+ dialogEditVisible.value = false
+ }).catch(e => {
+ ElMessage.error(e)
+ })
+ // 实现保存逻辑
+};
+
+/*分页*/
+
+const pageSize = ref(5)
+const currentPage = ref(1)
+const total = ref()
+
+/*切换分页大小*/
+const handleSizeChange = (number) => {
+ topForm.value.pageSize = number
+ handleSearch()
+}
+/*切换分页*/
+const handleCurrentChange = (number) => {
+ topForm.value.currentPage = number
+ handleSearch()
+}
+// 表单数据
+const topForm = ref({
+ productName: '',
+ effectiveTime: '',
+ expirationTime: '',
+ approvalStatus: '',
+ pageSize:pageSize.value,
+ currentPage:currentPage.value,
+});
+
+function statusFormatter(row, column, cellValue, index) {
+ switch (cellValue) {
+ case 0:
+ return '未审核';
+ case 1:
+ return '审核通过';
+ case 2:
+ return '审核不通过';
+ default:
+ return '未知状态';
+ }
+}
+/*回调函数*/
+onMounted(() => {
+
+ handleSearch()
+})
+
+
+
\ No newline at end of file
--
Gitee
From 49647c8a30d661c0e1704f2f015b1322e7eef95c Mon Sep 17 00:00:00 2001
From: kk <123>
Date: Mon, 29 Jul 2024 19:11:54 +0800
Subject: [PATCH 10/10] =?UTF-8?q?=E4=BB=B7=E6=A0=BC=E5=AE=A1=E6=A0=B8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
mock/role/routes.js | 34 +-
mock/user.js | 4 +-
.../cdn/alivideo/aliyun-oss-sdk-5.3.1.min.js | 6 +-
.../alivideo/aliyun-upload-sdk-1.5.0.min.js | 2 +-
public/cdn/element-plus/1.0.2/index.js | 2 +-
public/cdn/vue-router/4.0.4/vue-router.min.js | 8 +-
public/cdn/vue/3.0.7/vue.js | 28 +-
src/api/goods-gifts/goods-check/goodsCheck.js | 18 +-
src/components/TBTree/index.vue | 2 +-
src/components/TBTree/treeItem.vue | 6 +-
src/router/routes.js | 4 +-
src/store/modules/tagsView.js | 2 +-
src/views/goods-gifts/goods-check/index.vue | 406 +++++++++++-------
src/views/goods-gifts/goods-check/index1.vue | 286 ++++++++++++
vue.config.js | 2 +-
15 files changed, 602 insertions(+), 208 deletions(-)
create mode 100644 src/views/goods-gifts/goods-check/index1.vue
diff --git a/mock/role/routes.js b/mock/role/routes.js
index 8bf5722..25b9083 100644
--- a/mock/role/routes.js
+++ b/mock/role/routes.js
@@ -8,13 +8,13 @@ const staticRoutes = [
children: [
{
path: '/redirect/:path*',
- component: 'views/redirect/index.vue'
+ component: 'views/redirect/index1.vue'
}
]
},
{
path: '/login',
- component: 'views/login/index.vue',
+ component: 'views/login/index1.vue',
hidden: true
},
{
@@ -39,7 +39,7 @@ const staticRoutes = [
children: [
{
path: 'dashboard',
- component: 'views/dashboard/index.vue',
+ component: 'views/dashboard/index1.vue',
name: 'Dashboard',
meta: { title: 'Dashboard', icon: 'dashboard', affix: true }
}
@@ -51,7 +51,7 @@ const staticRoutes = [
children: [
{
path: 'index',
- component: 'views/documentation/index.vue',
+ component: 'views/documentation/index1.vue',
name: 'Documentation',
meta: { title: 'Documentation', icon: 'documentation', affix: true }
}
@@ -60,11 +60,11 @@ const staticRoutes = [
{
path: '/guide',
component: 'layout/Layout',
- redirect: '/guide/index.vue',
+ redirect: '/guide/index1.vue',
children: [
{
path: 'index',
- component: 'views/guide/index.vue',
+ component: 'views/guide/index1.vue',
name: 'Guide',
meta: { title: 'Guide', icon: 'guide', noCache: true }
}
@@ -76,7 +76,7 @@ const dynamicRoutes = [
{
path: '/permission',
component: 'layout/Layout',
- redirect: '/permission/index.vue',
+ redirect: '/permission/index1.vue',
alwaysShow: true,
meta: {
title: 'Permission',
@@ -119,7 +119,7 @@ const dynamicRoutes = [
children: [
{
path: 'index',
- component: 'views/icons/index.vue',
+ component: 'views/icons/index1.vue',
name: 'Icons',
meta: { title: 'Icons', icon: 'icon', noCache: true }
}
@@ -262,7 +262,7 @@ const dynamicRoutes = [
children: [
{
path: 'menu1',
- component: 'views/nested/menu1/index.vue',
+ component: 'views/nested/menu1/index1.vue',
name: 'Menu1',
meta: { title: 'Menu1' },
redirect: '/nested/menu1/menu1-1',
@@ -305,7 +305,7 @@ const dynamicRoutes = [
{
path: 'menu2',
name: 'Menu2',
- component: 'views/nested/menu2/index.vue',
+ component: 'views/nested/menu2/index1.vue',
meta: { title: 'Menu2' }
}
]
@@ -349,7 +349,7 @@ const dynamicRoutes = [
children: [
{
path: 'index',
- component: 'views/tab/index.vue',
+ component: 'views/tab/index1.vue',
name: 'Tab',
meta: { title: 'Tab', icon: 'tab' }
}
@@ -426,7 +426,7 @@ const dynamicRoutes = [
children: [
{
path: 'download',
- component: 'views/zip/index.vue',
+ component: 'views/zip/index1.vue',
name: 'ExportZip',
meta: { title: 'Export Zip' }
}
@@ -436,11 +436,11 @@ const dynamicRoutes = [
{
path: '/pdf',
component: 'layout/Layout',
- redirect: '/pdf/index.vue',
+ redirect: '/pdf/index1.vue',
children: [
{
path: 'index',
- component: 'views/pdf/index.vue',
+ component: 'views/pdf/index1.vue',
name: 'PDF',
meta: { title: 'PDF', icon: 'pdf' }
}
@@ -458,7 +458,7 @@ const dynamicRoutes = [
children: [
{
path: 'index',
- component: 'views/theme/index.vue',
+ component: 'views/theme/index1.vue',
name: 'Theme',
meta: { title: 'Theme', icon: 'theme' }
}
@@ -471,7 +471,7 @@ const dynamicRoutes = [
children: [
{
path: 'index',
- component: 'views/clipboard/index.vue',
+ component: 'views/clipboard/index1.vue',
name: 'ClipboardDemo',
meta: { title: 'Clipboard Demo', icon: 'clipboard' }
}
@@ -484,7 +484,7 @@ const dynamicRoutes = [
children: [
{
path: 'index',
- component: 'views/i18n-demo/index.vue',
+ component: 'views/i18n-demo/index1.vue',
name: 'I18n',
meta: { title: 'I18n', icon: 'international' }
}
diff --git a/mock/user.js b/mock/user.js
index 5d4a951..561a128 100644
--- a/mock/user.js
+++ b/mock/user.js
@@ -17,7 +17,7 @@ const users = {
{
path: '/dashboard',
name: 'Dashboard',
- redirect: '/dashboard/index.vue'
+ redirect: '/dashboard/index1.vue'
},
{
path: '/Example',
@@ -71,7 +71,7 @@ const users = {
{
path: '/dashboard',
name: 'Dashboard',
- redirect: '/dashboard/index.vue'
+ redirect: '/dashboard/index1.vue'
},
{
path: '/Example',
diff --git a/public/cdn/alivideo/aliyun-oss-sdk-5.3.1.min.js b/public/cdn/alivideo/aliyun-oss-sdk-5.3.1.min.js
index 4a9c062..48a05db 100644
--- a/public/cdn/alivideo/aliyun-oss-sdk-5.3.1.min.js
+++ b/public/cdn/alivideo/aliyun-oss-sdk-5.3.1.min.js
@@ -2,13 +2,13 @@
// Copyright Aliyun.com, Inc. or its affiliates. All Rights Reserved.
// License at https://github.com/ali-sdk/ali-oss/blob/master/LICENSE
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.OSS=t()}}(function(){var t;return function(){function t(e,r,n){function i(a,s){if(!r[a]){if(!e[a]){var c="function"==typeof require&&require;if(!s&&c)return c(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=r[a]={exports:{}};e[a][0].call(l.exports,function(t){return i(e[a][1][t]||t)},l,l.exports,t,e,r,n)}return r[a].exports}for(var o="function"==typeof require&&require,a=0;a0?e["Content-Type"]=t.mime:e["Content-Type"]=y.getType(t.mime||v.extname(t.object||""))||"application/octet-stream"),t.content&&(e["Content-Md5"]=m.createHash("md5").update(new n(t.content,"utf8")).digest("base64"),e["Content-Length"]||(e["Content-Length"]=t.content.length));var r=this._getResource(t);e.authorization=this.authorization(t.method,r,t.subres,e);var i=this._getReqUrl(t);h("request %s %s, with headers %j, !!stream: %s",t.method,i,e,!!t.stream);var a=t.timeout||this.options.timeout;return{url:i,params:{agent:this.agent,method:t.method,content:t.content,stream:t.stream,headers:e,timeout:a,writeStream:t.writeStream,customResponse:t.customResponse,ctx:t.ctx||this.ctx}}},L.request=p.default.mark(function t(e){var r,n,i,o;return p.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.createRequest(e),n=void 0,i=void 0,t.prev=3,t.next=6,this.urllib.request(r.url,r.params);case 6:n=t.sent,h("response %s %s, got %s, headers: %j",e.method,r.url,n.status,n.headers),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),i=t.t0;case 13:if(o=void 0,!n||!e.successStatuses||-1!==e.successStatuses.indexOf(n.status)){t.next=26;break}return t.next=17,this.requestError(n);case 17:if(o=t.sent,"RequestTimeTooSkewed"!==o.code){t.next=23;break}return this.options.amendTimeSkewed=+new Date(o.serverTime)-new Date,t.next=22,this.request(e);case 22:return t.abrupt("return",t.sent);case 23:o.params=e,t.next=30;break;case 26:if(!i){t.next=30;break}return t.next=29,this.requestError(i);case 29:o=t.sent;case 30:if(!o){t.next=32;break}throw o;case 32:if(!e.xmlResponse){t.next=36;break}return t.next=35,this.parseXML(n.data);case 35:n.data=t.sent;case 36:return t.abrupt("return",n);case 37:case"end":return t.stop()}},t,this,[[3,10]])}),L._getResource=function(t){var e="/";return t.bucket&&(e+=t.bucket+"/"),t.object&&(e+=t.object),e},L._isIP=function(t){return P._isIP(t)},L._escape=function(t){return k.encodeURIComponent(t).replace(/%2F/g,"/")},L._getReqUrl=function(t){var e={};b(this.options.endpoint).to(e);var r=this._isIP(e.hostname),n=this.options.cname;!t.bucket||n||r||(e.host=t.bucket+"."+e.host);var i="/";t.bucket&&r&&(i+=t.bucket+"/"),t.object&&(i+=this._escape(t.object).replace(/\+/g,"%2B")),e.pathname=i;var o={};if(t.query&&x(o,t.query),t.subres){var a={};S.string(t.subres)?a[t.subres]="":S.array(t.subres)?t.subres.forEach(function(t){a[t]=""}):a=t.subres,x(o,a)}return e.query=o,E.format(e)},L._getUserAgent=function(){var t=r&&r.browser?"js":"nodejs",e="aliyun-sdk-"+t+"/"+O.version,n=T.description;return!n&&r&&(n="Node.js "+r.version.slice(1)+" on "+r.platform+" "+r.arch),this._checkUserAgent(e+" "+n)},L._checkUserAgent=function(t){return t.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},L.checkBrowserAndVersion=function(t,e){return N.name===t&&N.version.split(".")[0]===e},L.parseXML=function(t){return function(e){n.isBuffer(t)&&(t=t.toString()),g.parseString(t,{explicitRoot:!1,explicitArray:!1},e)}},L.requestError=p.default.mark(function t(e){var r,n,i,o;return p.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=null,e.data&&e.data.length){t.next=5;break}-1===e.status||-2===e.status?(r=new Error(e.message),r.name=e.name,r.status=e.status,r.code=e.name):(404===e.status?(r=new Error("Object not exists"),r.name="NoSuchKeyError",r.status=404,r.code="NoSuchKey"):412===e.status?(r=new Error("Pre condition failed"),r.name="PreconditionFailedError",r.status=412,r.code="PreconditionFailed"):(r=new Error("Unknow error, status: "+e.status),r.name="UnknowError",r.status=e.status),r.requestId=e.headers["x-oss-request-id"],r.host=""),t.next=30;break;case 5:return n=String(e.data),h("request response error data: %s",n),i=void 0,t.prev=8,t.next=11,this.parseXML(n)||{};case 11:i=t.sent,t.next=21;break;case 14:return t.prev=14,t.t0=t.catch(8),h(n),t.t0.message+="\nraw xml: "+n,t.t0.status=e.status,t.t0.requestId=e.headers["x-oss-request-id"],t.abrupt("return",t.t0);case 21:o=i.Message||"unknow request error, status: "+e.status,i.Condition&&(o+=" (condition: "+i.Condition+")"),r=new Error(o),r.name=i.Code?i.Code+"Error":"UnknowError",r.status=e.status,r.code=i.Code,r.requestId=i.RequestId,r.hostId=i.HostId,r.serverTime=i.ServerTime;case 30:return h("generate error %j",r),t.abrupt("return",r);case 32:case"end":return t.stop()}},t,this,[[8,14]])})}).call(this,t("_process"),t("buffer").Buffer)},{"../common/multipart":8,"../common/signUtils":9,"../common/thunkpool.js":10,"../common/utils":11,"./../../shims/crypto/crypto.js":237,"./managed_upload":3,"./object":4,"./version":5,"./wrapper":6,_process:173,agentkeepalive:12,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,bowser:35,buffer:38,"copy-to":43,dateformat:154,debug:155,"humanize-ms":160,"is-type-of":165,"merge-descriptors":168,mime:242,path:170,platform:171,url:203,urllib:244,utility:243,xml2js:213}],3:[function(t,e,r){(function(e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(this instanceof i))return new i(t,e);v.call(this,e),this.file=t,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var o=t("babel-runtime/core-js/array/from"),a=n(o),s=t("babel-runtime/regenerator"),c=n(s),u=t("is-type-of"),l=t("util"),p=t("path"),f=t("mime"),d=t("copy-to"),h=r;h.multipartUpload=c.default.mark(function t(e,r,n){var i,o,a,s,l,d,h,m,v;return c.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.resetCancelFlag(),n=n||{},!n.checkpoint||!n.checkpoint.uploadId){t.next=6;break}return t.next=5,this._resumeMultipart(n.checkpoint,n);case 5:return t.abrupt("return",t.sent);case 6:return i=102400,n.mime||(u.file(r)?n.mime=f.getType(p.extname(r.name)):u.blob(r)?n.mime=r.type:n.mime=f.getType(p.extname(r))),n.headers=n.headers||{},this._convertMetaToHeaders(n.meta,n.headers),t.next=12,this._getFileSize(r);case 12:if(!((o=t.sent)0&&d(u).to(p),f=this._divideParts(i,o),h=f.length,m=!1,v=c.default.mark(function t(i,o){var a,d,v;return c.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(i.isCancel()){t.next=21;break}return t.prev=1,a=f[o-1],d={stream:i._createStream(n,a.start,a.end),size:a.end-a.start},t.next=6,i._uploadPart(l,s,o,d);case 6:if(v=t.sent,i.isCancel()||m){t.next=13;break}if(e.doneParts.push({number:o,etag:v.res.headers.etag}),p.push({number:o,etag:v.res.headers.etag}),!r||!r.progress){t.next=13;break}return t.next=13,r.progress(u.length/h,e,v.res);case 13:t.next=21;break;case 15:if(t.prev=15,t.t0=t.catch(1),i.isCancel()){t.next=21;break}throw i.cancel(),t.t0.partNum=o,t.t0;case 21:case"end":return t.stop()}},t,this,[[1,15]])}),b=(0,a.default)(new Array(h),function(t,e){return e+1}),y=p.map(function(t){return t.number}),g=b.filter(function(t){return y.indexOf(t)<0}),_=5,w=r.parallel||_,!this.checkBrowserAndVersion("Internet Explorer","10")&&1!==w){t.next=26;break}x=0;case 16:if(!(x0)){t.next=37;break}throw this.resetCancelFlag(),k=T[0],k.message="Failed to upload some parts with error: "+k.toString()+" part_num: "+k.partNum,k;case 37:if(!this.isCancel()){t.next=40;break}throw E=null,this._makeCancelEvent();case 40:return t.next=42,this.completeMultipartUpload(l,s,p,r);case 42:return t.abrupt("return",t.sent);case 43:case"end":return t.stop()}},t,this)}),u.file=function(t){return"undefined"!=typeof File&&t instanceof File},u.blob=function(t){return"undefined"!=typeof Blob&&t instanceof Blob},h._getFileSize=c.default.mark(function t(e){var r;return c.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!u.buffer(e)){t.next=4;break}return t.abrupt("return",e.length);case 4:if(!u.blob(e)&&!u.file(e)){t.next=6;break}return t.abrupt("return",e.size);case 6:if(!u.string(e)){t.next=11;break}return t.next=9,this._statFile(e);case 9:return r=t.sent,t.abrupt("return",r.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return t.stop()}},t,this)});var m=t("stream"),v=m.Readable;l.inherits(i,v),i.prototype.readFileAndPush=function(t){if(this.fileBuffer)for(var e=!0;e&&this.fileBuffer&&this.startthis.fileBuffer.length?this.fileBuffer.length:n,this.start=n,e=this.push(this.fileBuffer.slice(r,n))}},i.prototype._read=function(t){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||0===this.start&&!this.file)return this.finish||(this.fileBuffer=null,this.finish=!0),void this.push(null);t=t||16384;var r=this;this.reader.onload=function(n){r.fileBuffer=new e(new Uint8Array(n.target.result)),r.file=null,r.readFileAndPush(t)},0===this.start?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(t)},h._createStream=function(t,e,r){if(u.blob(t)||u.file(t))return new i(t.slice(e,r));throw new Error("_createStream requires File/String.")},h._getPartSize=function(t,e){return e?Math.max(Math.ceil(t/1e4),e):1048576},h._divideParts=function(t,e){for(var r=Math.ceil(t/e),n=[],i=0;i\n\n',r.quiet?n+=" true\n":n+=" false\n",i=0;i"+u.escape(this._objectName(e[i]))+"\n";return n+="",c("delete multi objects: %s",n),r.subres="delete",o=this._objectRequestParams("POST","",r),o.mime="xml",o.content=n,o.xmlResponse=!0,o.successStatuses=[200],t.next=14,this.request(o);case 14:return a=t.sent,l=a.data,p=l&&l.Deleted||null,p&&(Array.isArray(p)||(p=[p]),p=p.map(function(t){return t.Key})),t.abrupt("return",{res:a.res,deleted:p});case 19:case"end":return t.stop()}},t,this)}),y.copy=s.default.mark(function t(e,r,n){var i,a,c;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=n||{},n.headers=n.headers||{},(0,o.default)(n.headers).forEach(function(t){n.headers["x-oss-copy-source-"+t.toLowerCase()]=n.headers[t]}),n.meta&&(n.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(n.meta,n.headers),r="/"!==r[0]?"/"+this.options.bucket+"/"+encodeURIComponent(r):"/"+encodeURIComponent(r.slice(1)),n.headers["x-oss-copy-source"]=r,i=this._objectRequestParams("PUT",e,n),i.xmlResponse=!0,i.successStatuses=[200,304],t.next=12,this.request(i);case 12:return a=t.sent,c=a.data,c&&(c={etag:c.ETag,lastModified:c.LastModified}),t.abrupt("return",{data:c,res:a.res});case 16:case"end":return t.stop()}},t,this)}),y.putMeta=s.default.mark(function t(e,r,n){return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.copy(e,e,{meta:r||{},timeout:n&&n.timeout,ctx:n&&n.ctx});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t,this)}),y.list=s.default.mark(function t(e,r){var n,i,o,a,c;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=this._objectRequestParams("GET","",r),n.query=e,n.xmlResponse=!0,n.successStatuses=[200],t.next=6,this.request(n);case 6:return i=t.sent,o=i.data.Contents,a=this,o&&(Array.isArray(o)||(o=[o]),o=o.map(function(t){return{name:t.Key,url:a._objectUrl(t.Key),lastModified:t.LastModified,etag:t.ETag,type:t.Type,size:Number(t.Size),storageClass:t.StorageClass,owner:{id:t.Owner.ID,displayName:t.Owner.DisplayName}}})),c=i.data.CommonPrefixes||null,c&&(Array.isArray(c)||(c=[c]),c=c.map(function(t){return t.Prefix})),t.abrupt("return",{res:i.res,objects:o,prefixes:c,nextMarker:i.data.NextMarker||null,isTruncated:"true"===i.data.IsTruncated});case 13:case"end":return t.stop()}},t,this)}),y.putACL=s.default.mark(function t(e,r,n){var i,o;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=n||{},n.subres="acl",n.headers=n.headers||{},n.headers["x-oss-object-acl"]=r,e=this._objectName(e),i=this._objectRequestParams("PUT",e,n),i.successStatuses=[200],t.next=9,this.request(i);case 9:return o=t.sent,t.abrupt("return",{res:o.res});case 11:case"end":return t.stop()}},t,this)}),y.getACL=s.default.mark(function t(e,r){var n,i;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=r||{},r.subres="acl",e=this._objectName(e),n=this._objectRequestParams("GET",e,r),n.successStatuses=[200],n.xmlResponse=!0,t.next=8,this.request(n);case 8:return i=t.sent,t.abrupt("return",{acl:i.data.AccessControlList.Grant,owner:{id:i.data.Owner.ID,displayName:i.data.Owner.DisplayName},res:i.res});case 10:case"end":return t.stop()}},t,this)}),y.restore=s.default.mark(function t(e,r){var n,i;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=r||{},r.subres="restore",n=this._objectRequestParams("POST",e,r),n.successStatuses=[202],t.next=6,this.request(n);case 6:return i=t.sent,t.abrupt("return",{res:i.res});case 8:case"end":return t.stop()}},t,this)}),y.signatureUrl=function(t,e){e=e||{},t=this._objectName(t),e.method=e.method||"GET";var r=u.timestamp()+(e.expires||1800),n={bucket:this.options.bucket,object:t},i=this._getResource(n);this.options.stsToken&&(e["security-token"]=this.options.stsToken);var o=b._signatureForURL(this.options.accessKeySecret,e,i,r),a=f.parse(this._getReqUrl(n));return a.query={OSSAccessKeyId:this.options.accessKeyId,Expires:r,Signature:o.Signature},d(o.subResource).to(a.query),a.format()},y.getObjectUrl=function(t,e){return e?"/"!==e[e.length-1]&&(e+="/"):e=this.options.endpoint.format(),e+this._escape(this._objectName(t))},y._objectUrl=function(t){return this._getReqUrl({bucket:this.options.bucket,object:t})},y.generateObjectUrl=function(t,e){if(e)"/"!==e[e.length-1]&&(e+="/");else{e=this.options.endpoint.format();var r=f.parse(e),n=this.options.bucket;r.hostname=n+"."+r.hostname,r.host=n+"."+r.host,e=r.format()}return e+this._escape(this._objectName(t))},y._objectRequestParams=function(t,e,r){if(!this.options.bucket)throw new Error("Please create a bucket first");r=r||{},e=this._objectName(e);var n={object:e,bucket:this.options.bucket,method:t,subres:r&&r.subres,timeout:r&&r.timeout,ctx:r&&r.ctx};return r.headers&&(n.headers={},d(r.headers).to(n.headers)),n},y._objectName=function(t){return t.replace(/^\/+/,"")},y._statFile=function(t){return function(e){l.stat(t,e)}},y._convertMetaToHeaders=function(t,e){t&&(0,o.default)(t).forEach(function(r){e["x-oss-meta-"+r]=t[r]})},y._deleteFileSafe=function(t){return function(e){l.exists(t,function(r){r?l.unlink(t,function(r){r&&c("unlink %j error: %s",t,r),e()}):e()})}}},{"../common/callback":7,"../common/signUtils":9,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,"copy-to":43,debug:155,fs:36,"is-type-of":165,mime:242,path:170,url:203,utility:243}],5:[function(t,e,r){"use strict";r.version="5.3.1"},{}],6:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t){return t&&"function"==typeof t.next&&"function"==typeof t.throw}function o(t){if(!t)return!1;var e=t.constructor;return!!e&&("GeneratorFunction"===e.name||"GeneratorFunction"===e.displayName||(i(e.prototype)||i(t.prototype)))}function a(t,e){var r=new t(e),n=(0,p.default)(r),i=(0,p.default)((0,u.default)(r));n.concat(i).forEach(function(t){o(r[t])?this[t]=f.wrap(r[t]).bind(r):this[t]=r[t]},this)}function s(t){if(!(this instanceof s))return new s(t);a.call(this,d,t)}var c=t("babel-runtime/core-js/object/get-prototype-of"),u=n(c),l=t("babel-runtime/core-js/object/keys"),p=n(l),f=t("co"),d=t("./client");e.exports=s,s.STS=function t(e){if(!(this instanceof t))return new t(e);a.call(this,d.STS,e)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(t,e,r){(function(e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var i=t("babel-runtime/core-js/object/keys"),o=n(i),a=t("babel-runtime/core-js/json/stringify"),s=n(a);r.encodeCallback=function(t,r){if(t.headers=t.headers||{},!Object.prototype.hasOwnProperty.call(t.headers,"x-oss-callback")&&r.callback){var n={callbackUrl:encodeURI(r.callback.url),callbackBody:r.callback.body};r.callback.host&&(n.callbackHost=r.callback.host),r.callback.contentType&&(n.callbackBodyType=r.callback.contentType);var i=new e((0,s.default)(n)).toString("base64");if(t.headers["x-oss-callback"]=i,r.callback.customValue){var a={};(0,o.default)(r.callback.customValue).forEach(function(t){a["x:"+t]=r.callback.customValue[t]}),t.headers["x-oss-callback-var"]=new e((0,s.default)(a)).toString("base64")}}}}).call(this,t("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38}],8:[function(t,e,r){"use strict";var n=t("babel-runtime/regenerator"),i=function(t){return t&&t.__esModule?t:{default:t}}(n),o=t("copy-to"),a=t("./callback"),s=r;s.listUploads=i.default.mark(function t(e,r){var n,a,s,c;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=r||{},n={},o(r).to(n),n.subres="uploads",a=this._objectRequestParams("GET","",n),a.query=e,a.xmlResponse=!0,a.successStatuses=[200],t.next=10,this.request(a);case 10:return s=t.sent,c=s.data.Upload||[],Array.isArray(c)||(c=[c]),c=c.map(function(t){return{name:t.Key,uploadId:t.UploadId,initiated:t.Initiated}}),t.abrupt("return",{res:s.res,uploads:c,bucket:s.data.Bucket,nextKeyMarker:s.data.NextKeyMarker,nextUploadIdMarker:s.data.NextUploadIdMarker,isTruncated:"true"===s.data.IsTruncated});case 15:case"end":return t.stop()}},t,this)}),s.listParts=i.default.mark(function t(e,r,n,a){var s,c,u;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=a||{},s={},o(a).to(s),s.subres={uploadId:r},c=this._objectRequestParams("GET",e,s),c.query=n,c.xmlResponse=!0,c.successStatuses=[200],t.next=10,this.request(c);case 10:return u=t.sent,t.abrupt("return",{res:u.res,uploadId:u.data.UploadId,bucket:u.data.Bucket,name:u.data.Key,partNumberMarker:u.data.PartNumberMarker,nextPartNumberMarker:u.data.NextPartNumberMarker,maxParts:u.data.MaxParts,isTruncated:u.data.IsTruncated,parts:u.data.Part||[]});case 12:case"end":return t.stop()}},t,this)}),s.abortMultipartUpload=i.default.mark(function t(e,r,n){var a,s,c;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.cancel(),n=n||{},a={},o(n).to(a),a.subres={uploadId:r},s=this._objectRequestParams("DELETE",e,a),s.successStatuses=[204],t.next=9,this.request(s);case 9:return c=t.sent,t.abrupt("return",{res:c.res});case 11:case"end":return t.stop()}},t,this)}),s.initMultipartUpload=i.default.mark(function t(e,r){var n,a,s;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=r||{},n={},o(r).to(n),n.headers=n.headers||{},this._convertMetaToHeaders(r.meta,n.headers),n.subres="uploads",a=this._objectRequestParams("POST",e,n),a.mime=r.mime,a.xmlResponse=!0,a.successStatuses=[200],t.next=12,this.request(a);case 12:return s=t.sent,t.abrupt("return",{res:s.res,bucket:s.data.Bucket,name:s.data.Key,uploadId:s.data.UploadId});case 14:case"end":return t.stop()}},t,this)}),s.uploadPart=i.default.mark(function t(e,r,n,o,a,s,c){var u;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return u={stream:this._createStream(o,a,s),size:s-a},t.next=3,this._uploadPart(e,r,n,u,c);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}},t,this)}),s.completeMultipartUpload=i.default.mark(function t(e,r,n,s){var c,u,l,p,f,d,h,m;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:for(c=n.concat().sort(function(t,e){return t.number-e.number}).filter(function(t,e,r){return!e||t.number!==r[e-1].number}),u='\n\n',l=0;l\n",u+=""+p.number+"\n",u+=""+p.etag+"\n",u+="\n";return u+="",s=s||{},f={},o(s).to(f),f.subres={uploadId:r},d=this._objectRequestParams("POST",e,f),a.encodeCallback(d,f),d.mime="xml",d.content=u,d.headers&&d.headers["x-oss-callback"]||(d.xmlResponse=!0),d.successStatuses=[200],t.next=16,this.request(d);case 16:return h=t.sent,m={res:h.res,bucket:d.bucket,name:e,etag:h.res.headers.etag},d.headers&&d.headers["x-oss-callback"]&&(m.data=JSON.parse(h.data.toString())),t.abrupt("return",m);case 20:case"end":return t.stop()}},t,this)}),s._uploadPart=i.default.mark(function t(e,r,n,a,s){var c,u,l;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return s=s||{},c={},o(s).to(c),c.headers={"Content-Length":a.size},c.subres={partNumber:n,uploadId:r},u=this._objectRequestParams("PUT",e,c),u.mime=c.mime,u.stream=a.stream,u.successStatuses=[200],t.next=11,this.request(u);case 11:return l=t.sent,a.stream=null,u.stream=null,t.abrupt("return",{name:e,etag:l.res.headers.etag,res:l.res});case 15:case"end":return t.stop()}},t,this)})},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(t,e,r){(function(e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var i=t("babel-runtime/core-js/json/stringify"),o=n(i),a=t("babel-runtime/core-js/object/keys"),s=n(a),c=t("./../../shims/crypto/crypto.js"),u=t("is-type-of");r.buildCanonicalizedResource=function(t,e){var r=""+t,n="?";if(u.string(e)&&""!==e.trim())r+=n+e;else if(u.array(e))e.sort(),r+=n+e.join("&");else if(e){var i=function(t,e){return t[0]>e[0]?1:t[0]0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function i(t){var e=n(t),r=e[0],i=e[1];return 3*(r+i)/4-i}function o(t,e,r){return 3*(e+r)/4-r}function a(t){for(var e,r=n(t),i=r[0],a=r[1],s=new f(o(t,i,a)),c=0,u=a>0?i-4:i,l=0;l>16&255,s[c++]=e>>8&255,s[c++]=255&e;return 2===a&&(e=p[t.charCodeAt(l)]<<2|p[t.charCodeAt(l+1)]>>4,s[c++]=255&e),1===a&&(e=p[t.charCodeAt(l)]<<10|p[t.charCodeAt(l+1)]<<4|p[t.charCodeAt(l+2)]>>2,s[c++]=e>>8&255,s[c++]=255&e),s}function s(t){return l[t>>18&63]+l[t>>12&63]+l[t>>6&63]+l[63&t]}function c(t,e,r){for(var n,i=[],o=e;oa?a:o+16383));return 1===n?(e=t[r-1],i.push(l[e>>2]+l[e<<4&63]+"==")):2===n&&(e=(t[r-2]<<8)+t[r-1],i.push(l[e>>10]+l[e>>4&63]+l[e<<2&63]+"=")),i.join("")}r.byteLength=i,r.toByteArray=a,r.fromByteArray=u;for(var l=[],p=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,m=d.length;h1&&r[1]||""}function r(e){var r=t.match(e);return r&&r.length>1&&r[2]||""}var n,i=e(/(ipod|iphone|ipad)/i).toLowerCase(),o=/like android/i.test(t),s=!o&&/android/i.test(t),c=/nexus\s*[0-6]\s*/i.test(t),u=!c&&/nexus\s*[0-9]+/i.test(t),l=/CrOS/.test(t),p=/silk/i.test(t),f=/sailfish/i.test(t),d=/tizen/i.test(t),h=/(web|hpw)os/i.test(t),m=/windows phone/i.test(t),v=(/SamsungBrowser/i.test(t),!m&&/windows/i.test(t)),b=!i&&!p&&/macintosh/i.test(t),y=!s&&!f&&!d&&!h&&/linux/i.test(t),g=r(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),_=e(/version\/(\d+(\.\d+)?)/i),w=/tablet/i.test(t)&&!/tablet pc/i.test(t),x=!w&&/[^-]mobi/i.test(t),E=/xbox/i.test(t);/opera/i.test(t)?n={name:"Opera",opera:a,version:_||e(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(t)?n={name:"Opera",opera:a,version:e(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||_}:/SamsungBrowser/i.test(t)?n={name:"Samsung Internet for Android",samsungBrowser:a,version:_||e(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(t)?n={name:"Opera Coast",coast:a,version:_||e(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(t)?n={name:"Yandex Browser",yandexbrowser:a,version:_||e(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(t)?n={name:"UC Browser",ucbrowser:a,version:e(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(t)?n={name:"Maxthon",maxthon:a,version:e(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(t)?n={name:"Epiphany",epiphany:a,version:e(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(t)?n={name:"Puffin",puffin:a,version:e(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(t)?n={name:"Sleipnir",sleipnir:a,version:e(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(t)?n={name:"K-Meleon",kMeleon:a,version:e(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:m?(n={name:"Windows Phone",osname:"Windows Phone",windowsphone:a},g?(n.msedge=a,n.version=g):(n.msie=a,n.version=e(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(t)?n={name:"Internet Explorer",msie:a,version:e(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:l?n={name:"Chrome",osname:"Chrome OS",chromeos:a,chromeBook:a,chrome:a,version:e(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(t)?n={name:"Microsoft Edge",msedge:a,version:g}:/vivaldi/i.test(t)?n={name:"Vivaldi",vivaldi:a,version:e(/vivaldi\/(\d+(\.\d+)?)/i)||_}:f?n={name:"Sailfish",osname:"Sailfish OS",sailfish:a,version:e(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(t)?n={name:"SeaMonkey",seamonkey:a,version:e(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(t)?(n={name:"Firefox",firefox:a,version:e(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(t)&&(n.firefoxos=a,n.osname="Firefox OS")):p?n={name:"Amazon Silk",silk:a,version:e(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(t)?n={name:"PhantomJS",phantom:a,version:e(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(t)?n={name:"SlimerJS",slimer:a,version:e(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(t)||/rim\stablet/i.test(t)?n={name:"BlackBerry",osname:"BlackBerry OS",blackberry:a,version:_||e(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:h?(n={name:"WebOS",osname:"WebOS",webos:a,version:_||e(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(t)&&(n.touchpad=a)):/bada/i.test(t)?n={name:"Bada",osname:"Bada",bada:a,version:e(/dolfin\/(\d+(\.\d+)?)/i)}:d?n={name:"Tizen",osname:"Tizen",tizen:a,version:e(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||_}:/qupzilla/i.test(t)?n={name:"QupZilla",qupzilla:a,version:e(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||_}:/chromium/i.test(t)?n={name:"Chromium",chromium:a,version:e(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||_}:/chrome|crios|crmo/i.test(t)?n={name:"Chrome",chrome:a,version:e(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:s?n={name:"Android",version:_}:/safari|applewebkit/i.test(t)?(n={name:"Safari",safari:a},_&&(n.version=_)):i?(n={name:"iphone"==i?"iPhone":"ipad"==i?"iPad":"iPod"},_&&(n.version=_)):n=/googlebot/i.test(t)?{name:"Googlebot",googlebot:a,version:e(/googlebot\/(\d+(\.\d+))/i)||_}:{name:e(/^(.*)\/(.*) /),version:r(/^(.*)\/(.*) /)},!n.msedge&&/(apple)?webkit/i.test(t)?(/(apple)?webkit\/537\.36/i.test(t)?(n.name=n.name||"Blink",n.blink=a):(n.name=n.name||"Webkit",n.webkit=a),!n.version&&_&&(n.version=_)):!n.opera&&/gecko\//i.test(t)&&(n.name=n.name||"Gecko",n.gecko=a,n.version=n.version||e(/gecko\/(\d+(\.\d+)?)/i)),n.windowsphone||!s&&!n.silk?!n.windowsphone&&i?(n[i]=a,n.ios=a,n.osname="iOS"):b?(n.mac=a,n.osname="macOS"):E?(n.xbox=a,n.osname="Xbox"):v?(n.windows=a,n.osname="Windows"):y&&(n.linux=a,n.osname="Linux"):(n.android=a,n.osname="Android");var S="";n.windows?S=function(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(e(/Windows ((NT|XP)( \d\d?.\d)?)/i)):n.windowsphone?S=e(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):n.mac?(S=e(/Mac OS X (\d+([_\.\s]\d+)*)/i),S=S.replace(/[_\s]/g,".")):i?(S=e(/os (\d+([_\s]\d+)*) like mac os x/i),S=S.replace(/[_\s]/g,".")):s?S=e(/android[ \/-](\d+(\.\d+)*)/i):n.webos?S=e(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):n.blackberry?S=e(/rim\stablet\sos\s(\d+(\.\d+)*)/i):n.bada?S=e(/bada\/(\d+(\.\d+)*)/i):n.tizen&&(S=e(/tizen[\/\s](\d+(\.\d+)*)/i)),S&&(n.osversion=S);var T=!n.windows&&S.split(".")[0];return w||u||"ipad"==i||s&&(3==T||T>=4&&!x)||n.silk?n.tablet=a:(x||"iphone"==i||"ipod"==i||s||c||n.blackberry||n.webos||n.bada)&&(n.mobile=a),n.msedge||n.msie&&n.version>=10||n.yandexbrowser&&n.version>=15||n.vivaldi&&n.version>=1||n.chrome&&n.version>=20||n.samsungBrowser&&n.version>=4||n.firefox&&n.version>=20||n.safari&&n.version>=6||n.opera&&n.version>=10||n.ios&&n.osversion&&n.osversion.split(".")[0]>=6||n.blackberry&&n.version>=10.1||n.chromium&&n.version>=20?n.a=a:n.msie&&n.version<10||n.chrome&&n.version<20||n.firefox&&n.version<20||n.safari&&n.version<6||n.opera&&n.version<10||n.ios&&n.osversion&&n.osversion.split(".")[0]<6||n.chromium&&n.version<20?n.c=a:n.x=a,n}function e(t){return t.split(".").length}function r(t,e){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(t,e);for(r=0;r=0;){if(i[0][n]>i[1][n])return 1;if(i[0][n]!==i[1][n])return-1;if(0===n)return 0}}function i(e,r,i){var o=s;"string"==typeof r&&(i=r,r=void 0),void 0===r&&(r=!1),i&&(o=t(i));var a=""+o.version;for(var c in e)if(e.hasOwnProperty(c)&&o[c]){if("string"!=typeof e[c])throw new Error("Browser version in the minVersion map should be a string: "+c+": "+String(e));return n([a,e[c]])<0}return r}function o(t,e,r){return!i(t,e,r)}var a=!0,s=t("undefined"!=typeof navigator?navigator.userAgent||"":"");return s.test=function(t){for(var e=0;e=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived=55296&&n<=56319)){if(this.charReceived=this.charLength=0,0===t.length)return e;break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t);var i=t.length;this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,i),i-=this.charReceived),e+=t.toString(this.encoding,0,i);var i=e.length-1,n=e.charCodeAt(i);if(n>=55296&&n<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),t.copy(this.charBuffer,0,0,o),e.substring(0,i)}return e},u.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var r=t[t.length-e];if(1==e&&r>>5==6){this.charLength=2;break}if(e<=2&&r>>4==14){this.charLength=3;break}if(e<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=e},u.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;e+=n.slice(0,r).toString(i)}return e}},{buffer:38}],38:[function(t,e,r){(function(e){"use strict";function n(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(t,e){if(n()=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|t}function m(t){return+t!=t&&(t=0),o.alloc(+t)}function v(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Y(t).length;default:if(n)return z(t).length;e=(""+e).toLowerCase(),n=!0}}function b(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,e>>>=0,r<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return P(this,e,r);case"utf8":case"utf-8":return O(this,e,r);case"ascii":return N(this,e,r);case"latin1":case"binary":return C(this,e,r);case"base64":return j(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function y(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function g(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=o.from(e,n)),o.isBuffer(e))return 0===e.length?-1:_(t,e,r,n,i);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):_(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function _(t,e,r,n,i){function o(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,c/=2,r/=2}var u;if(i){var l=-1;for(u=r;us&&(r=s-c),u=r;u>=0;u--){for(var p=!0,f=0;fi&&(n=i):n=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a239?4:o>223?3:o>191?2:1;if(i+s<=r){var c,u,l,p;switch(s){case 1:o<128&&(a=o);break;case 2:c=t[i+1],128==(192&c)&&(p=(31&o)<<6|63&c)>127&&(a=p);break;case 3:c=t[i+1],u=t[i+2],128==(192&c)&&128==(192&u)&&(p=(15&o)<<12|(63&c)<<6|63&u)>2047&&(p<55296||p>57343)&&(a=p);break;case 4:c=t[i+1],u=t[i+2],l=t[i+3],128==(192&c)&&128==(192&u)&&128==(192&l)&&(p=(15&o)<<18|(63&c)<<12|(63&u)<<6|63&l)>65535&&p<1114112&&(a=p)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=s}return A(n)}function A(t){var e=t.length;if(e<=Z)return String.fromCharCode.apply(String,t);for(var r="",n=0;nn)&&(r=n);for(var i="",o=e;or)throw new RangeError("Trying to access beyond buffer length")}function M(t,e,r,n,i,a){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function D(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i>>8*(n?i:1-i)}function R(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i>>8*(n?i:3-i)&255}function U(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function B(t,e,r,n,i){return i||U(t,e,r,4,3.4028234663852886e38,-3.4028234663852886e38),Q.write(t,e,r,n,23,4),r+4}function F(t,e,r,n,i){return i||U(t,e,r,8,1.7976931348623157e308,-1.7976931348623157e308),Q.write(t,e,r,n,52,8),r+8}function q(t){if(t=X(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function X(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function G(t){return t<16?"0"+t.toString(16):t.toString(16)}function z(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],a=0;a55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function H(t){for(var e=[],r=0;r>8,i=r%256,o.push(i),o.push(n);return o}function Y(t){return $.toByteArray(q(t))}function V(t,e,r,n){for(var i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function K(t){return t!==t}var $=t("base64-js"),Q=t("ieee754"),J=t("isarray");r.Buffer=o,r.SlowBuffer=m,r.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),r.kMaxLength=n(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,r){return a(null,t,e,r)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,r){return c(null,t,e,r)},o.allocUnsafe=function(t){return u(null,t)},o.allocUnsafeSlow=function(t){return u(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),""},o.prototype.compare=function(t,e,r,n,i){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index.vue");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var a=i-n,s=r-e,c=Math.min(a,s),u=this.slice(n,i),l=t.slice(e,r),p=0;pi)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return x(this,t,e,r);case"ascii":return E(this,t,e,r);case"latin1":case"binary":return S(this,t,e,r);case"base64":return T(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;o.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e0&&(i*=256);)n+=this[t+--e]*i;return n},o.prototype.readUInt8=function(t,e){return e||L(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||L(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||L(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||L(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||L(t,e,this.length);for(var n=this[t],i=1,o=0;++o=i&&(n-=Math.pow(2,8*e)),n},o.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||L(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||L(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||L(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(t,e){e||L(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(t,e){return e||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||L(t,4,this.length),Q.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||L(t,4,this.length),Q.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||L(t,8,this.length),Q.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||L(t,8,this.length),Q.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){M(this,t,e,r,Math.pow(2,8*r)-1,0)}var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+r},o.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):R(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):R(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);M(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+r},o.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);M(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},o.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):R(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):R(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,r){return B(this,t,e,!0,r)},o.prototype.writeFloatBE=function(t,e,r){return B(this,t,e,!1,r)},o.prototype.writeDoubleLE=function(t,e,r){return F(this,t,e,!0,r)},o.prototype.writeDoubleBE=function(t,e,r){return F(this,t,e,!1,r)},o.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--i)t[i+e]=this[i+r];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a>>1;r(t[o])2&&(e=f.call(arguments,1)),r(e)})})}function a(t){return Promise.all(t.map(i,this))}function s(t){for(var e=new t.constructor,r=Object.keys(t),n=[],o=0;ol;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===r)return t||l||0;return!t&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(t,e,r){var n=t("./_cof"),i=t("./_wks")("toStringTag"),o="Arguments"==n(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};e.exports=function(t){var e,r,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=a(e=Object(t),i))?r:o?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},{"./_cof":64,"./_wks":131}],64:[function(t,e,r){var n={}.toString;e.exports=function(t){return n.call(t).slice(8,-1)}},{}],65:[function(t,e,r){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},{}],66:[function(t,e,r){"use strict";var n=t("./_object-dp"),i=t("./_property-desc");e.exports=function(t,e,r){e in t?n.f(t,e,i(0,r)):t[e]=r}},{"./_object-dp":98,"./_property-desc":111}],67:[function(t,e,r){var n=t("./_a-function");e.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},{"./_a-function":58}],68:[function(t,e,r){e.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},{}],69:[function(t,e,r){e.exports=!t("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":74}],70:[function(t,e,r){var n=t("./_is-object"),i=t("./_global").document,o=n(i)&&n(i.createElement);e.exports=function(t){return o?i.createElement(t):{}}},{"./_global":76,"./_is-object":85}],71:[function(t,e,r){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(t,e,r){var n=t("./_object-keys"),i=t("./_object-gops"),o=t("./_object-pie");e.exports=function(t){var e=n(t),r=i.f;if(r)for(var a,s=r(t),c=o.f,u=0;s.length>u;)c.call(t,a=s[u++])&&e.push(a);return e}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(t,e,r){var n=t("./_global"),i=t("./_core"),o=t("./_ctx"),a=t("./_hide"),s=t("./_has"),c=function(t,e,r){var u,l,p,f=t&c.F,d=t&c.G,h=t&c.S,m=t&c.P,v=t&c.B,b=t&c.W,y=d?i:i[e]||(i[e]={}),g=y.prototype,_=d?n:h?n[e]:(n[e]||{}).prototype;d&&(r=e);for(u in r)(l=!f&&_&&void 0!==_[u])&&s(y,u)||(p=l?_[u]:r[u],y[u]=d&&"function"!=typeof _[u]?r[u]:v&&l?o(p,n):b&&_[u]==p?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(p):m&&"function"==typeof p?o(Function.call,p):p,m&&((y.virtual||(y.virtual={}))[u]=p,t&c.R&&g&&!g[u]&&a(g,u,p)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(t,e,r){e.exports=function(t){try{return!!t()}catch(t){return!0}}},{}],75:[function(t,e,r){var n=t("./_ctx"),i=t("./_iter-call"),o=t("./_is-array-iter"),a=t("./_an-object"),s=t("./_to-length"),c=t("./core.get-iterator-method"),u={},l={},r=e.exports=function(t,e,r,p,f){var d,h,m,v,b=f?function(){return t}:c(t),y=n(r,p,e?2:1),g=0;if("function"!=typeof b)throw TypeError(t+" is not iterable!");if(o(b)){for(d=s(t.length);d>g;g++)if((v=e?y(a(h=t[g])[0],h[1]):y(t[g]))===u||v===l)return v}else for(m=b.call(t);!(h=m.next()).done;)if((v=i(m,y,h.value,e))===u||v===l)return v};r.BREAK=u,r.RETURN=l},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(t,e,r){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},{}],77:[function(t,e,r){var n={}.hasOwnProperty;e.exports=function(t,e){return n.call(t,e)}},{}],78:[function(t,e,r){var n=t("./_object-dp"),i=t("./_property-desc");e.exports=t("./_descriptors")?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(t,e,r){var n=t("./_global").document;e.exports=n&&n.documentElement},{"./_global":76}],80:[function(t,e,r){e.exports=!t("./_descriptors")&&!t("./_fails")(function(){return 7!=Object.defineProperty(t("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":69,"./_dom-create":70,"./_fails":74}],81:[function(t,e,r){e.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},{}],82:[function(t,e,r){var n=t("./_cof");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},{"./_cof":64}],83:[function(t,e,r){var n=t("./_iterators"),i=t("./_wks")("iterator"),o=Array.prototype;e.exports=function(t){return void 0!==t&&(n.Array===t||o[i]===t)}},{"./_iterators":91,"./_wks":131}],84:[function(t,e,r){var n=t("./_cof");e.exports=Array.isArray||function(t){return"Array"==n(t)}},{"./_cof":64}],85:[function(t,e,r){e.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],86:[function(t,e,r){var n=t("./_an-object");e.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&n(o.call(t)),e}}},{"./_an-object":61}],87:[function(t,e,r){"use strict";var n=t("./_object-create"),i=t("./_property-desc"),o=t("./_set-to-string-tag"),a={};t("./_hide")(a,t("./_wks")("iterator"),function(){return this}),e.exports=function(t,e,r){t.prototype=n(a,{next:i(1,r)}),o(t,e+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(t,e,r){"use strict";var n=t("./_library"),i=t("./_export"),o=t("./_redefine"),a=t("./_hide"),s=t("./_iterators"),c=t("./_iter-create"),u=t("./_set-to-string-tag"),l=t("./_object-gpo"),p=t("./_wks")("iterator"),f=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(t,e,r,h,m,v,b){c(r,e,h);var y,g,_,w=function(t){if(!f&&t in T)return T[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},x=e+" Iterator",E="values"==m,S=!1,T=t.prototype,k=T[p]||T["@@iterator"]||m&&T[m],j=k||w(m),O=m?E?w("entries"):j:void 0,A="Array"==e?T.entries||k:k;if(A&&(_=l(A.call(new t)))!==Object.prototype&&_.next&&(u(_,x,!0),n||"function"==typeof _[p]||a(_,p,d)),E&&k&&"values"!==k.name&&(S=!0,j=function(){return k.call(this)}),n&&!b||!f&&!S&&T[p]||a(T,p,j),s[e]=j,s[x]=d,m)if(y={values:E?j:w("values"),keys:v?j:w("keys"),entries:O},b)for(g in y)g in T||o(T,g,y[g]);else i(i.P+i.F*(f||S),e,y);return y}},{"./_export":73,"./_hide":78,"./_iter-create":87,"./_iterators":91,"./_library":92,"./_object-gpo":104,"./_redefine":113,"./_set-to-string-tag":115,"./_wks":131}],89:[function(t,e,r){var n=t("./_wks")("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}e.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},t(o)}catch(t){}return r}},{"./_wks":131}],90:[function(t,e,r){e.exports=function(t,e){return{value:e,done:!!t}}},{}],91:[function(t,e,r){e.exports={}},{}],92:[function(t,e,r){e.exports=!0},{}],93:[function(t,e,r){var n=t("./_uid")("meta"),i=t("./_is-object"),o=t("./_has"),a=t("./_object-dp").f,s=0,c=Object.isExtensible||function(){return!0},u=!t("./_fails")(function(){return c(Object.preventExtensions({}))}),l=function(t){a(t,n,{value:{i:"O"+ ++s,w:{}}})},p=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!c(t))return"F";if(!e)return"E";l(t)}return t[n].i},f=function(t,e){if(!o(t,n)){if(!c(t))return!0;if(!e)return!1;l(t)}return t[n].w},d=function(t){return u&&h.NEED&&c(t)&&!o(t,n)&&l(t),t},h=e.exports={KEY:n,NEED:!1,fastKey:p,getWeak:f,onFreeze:d}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(t,e,r){var n=t("./_global"),i=t("./_task").set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,c="process"==t("./_cof")(a);e.exports=function(){var t,e,r,u=function(){var n,i;for(c&&(n=a.domain)&&n.exit();t;){i=t.fn,t=t.next;try{i()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(c)r=function(){a.nextTick(u)};else if(!o||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);r=function(){l.then(u)}}else r=function(){i.call(n,u)};else{var p=!0,f=document.createTextNode("");new o(u).observe(f,{characterData:!0}),r=function(){f.data=p=!p}}return function(n){var i={fn:n,next:void 0};e&&(e.next=i),t||(t=i,r()),e=i}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(t,e,r){"use strict";function n(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n}),this.resolve=i(e),this.reject=i(r)}var i=t("./_a-function");e.exports.f=function(t){return new n(t)}},{"./_a-function":58}],96:[function(t,e,r){"use strict";var n=t("./_object-keys"),i=t("./_object-gops"),o=t("./_object-pie"),a=t("./_to-object"),s=t("./_iobject"),c=Object.assign;e.exports=!c||t("./_fails")(function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=c({},t)[r]||Object.keys(c({},e)).join("")!=n})?function(t,e){for(var r=a(t),c=arguments.length,u=1,l=i.f,p=o.f;c>u;)for(var f,d=s(arguments[u++]),h=l?n(d).concat(l(d)):n(d),m=h.length,v=0;m>v;)p.call(d,f=h[v++])&&(r[f]=d[f]);return r}:c},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(t,e,r){var n=t("./_an-object"),i=t("./_object-dps"),o=t("./_enum-bug-keys"),a=t("./_shared-key")("IE_PROTO"),s=function(){},c=function(){var e,r=t("./_dom-create")("iframe"),n=o.length;for(r.style.display="none",t("./_html").appendChild(r),r.src="javascript:",e=r.contentWindow.document,e.open(),e.write("
-
\ No newline at end of file
diff --git a/vue.config.js b/vue.config.js
index 5c4205b..bb58303 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -47,7 +47,7 @@ module.exports = {
// },
configureWebpack: {
// provide the app's title in webpack's name field, so that
- // it can be accessed in index.vue.html to inject the correct title.
+ // it can be accessed in index1.vue.html to inject the correct title.
name: VUE_APP_BASE_TITLE,
resolve: {
alias: {
--
Gitee