Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Y
yongxinda-h5
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
刘旭
yongxinda-h5
Commits
31d9135c
提交
31d9135c
authored
12月 19, 2022
作者:
刘旭
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加导入页面
上级
09457205
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
46 行增加
和
41 行删除
+46
-41
pages.json
src/pages.json
+5
-0
importProductLine.vue
src/pages/productLine/importProductLine.vue
+0
-0
productLine.vue
src/pages/productLine/productLine.vue
+41
-41
没有找到文件。
src/pages.json
浏览文件 @
31d9135c
...
@@ -35,6 +35,11 @@
...
@@ -35,6 +35,11 @@
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
}
}
},
{
},
{
"path"
:
"pages/productLine/importProductLine"
,
"style"
:
{
"navigationBarTitleText"
:
"导入产品线"
}
},
{
"path"
:
"pages/cart/index"
,
"path"
:
"pages/cart/index"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"购物车"
,
"navigationBarTitleText"
:
"购物车"
,
...
...
src/pages/productLine/importProductLine.vue
0 → 100644
浏览文件 @
31d9135c
差异被折叠。
点击展开。
src/pages/productLine/productLine.vue
浏览文件 @
31d9135c
...
@@ -431,7 +431,7 @@ let onClick = (e: any) => {
...
@@ -431,7 +431,7 @@ let onClick = (e: any) => {
}
}
};
};
// 商品加入购物车等右侧
侧
事件
// 商品加入购物车等右侧事件
let
buttonClick
=
(
e
:
any
)
=>
{
let
buttonClick
=
(
e
:
any
)
=>
{
switch
(
e
.
index
)
{
switch
(
e
.
index
)
{
case
0
:
case
0
:
...
@@ -603,46 +603,46 @@ let initDetails = (id: number) => {
...
@@ -603,46 +603,46 @@ let initDetails = (id: number) => {
let
reset
=
()
=>
(
model
.
value
.
show
=
true
);
let
reset
=
()
=>
(
model
.
value
.
show
=
true
);
// 导入产品线
// 导入产品线
let
uploadLine
=
()
=>
{
let
uploadLine
=
()
=>
{
// reload() // 重置产品线
uni
.
navigateTo
({
url
:
'./importProductLine'
})
uni
.
chooseFile
({
//
uni.chooseFile({
count
:
0
,
//
count: 0,
success
(
res
:
any
)
{
//
success(res: any) {
flag
.
value
=
false
;
//
flag.value = false;
uni
.
showLoading
({
//
uni.showLoading({
title
:
'加载中'
//
title: '加载中'
})
//
})
uni
.
uploadFile
({
//
uni.uploadFile({
url
:
baseUrl
+
'/wx/productLine/upload'
,
//
url: baseUrl + '/wx/productLine/upload',
filePath
:
res
.
tempFilePaths
[
0
],
//
filePath: res.tempFilePaths[0],
name
:
'file'
,
//
name: 'file',
header
:
{
Authorization
:
uni
.
getStorageSync
(
'token'
)
},
//
header: { Authorization: uni.getStorageSync('token') },
success
(
uploadFileRes
:
any
)
{
//
success(uploadFileRes: any) {
uni
.
hideLoading
()
//
uni.hideLoading()
// setTimeout(() => {
//
// setTimeout(() => {
let
res
=
JSON
.
parse
(
uploadFileRes
.
data
)
//
let res = JSON.parse(uploadFileRes.data)
if
(
res
.
code
===
200
)
{
//
if (res.code === 200) {
console
.
log
(
res
);
//
console.log(res);
// 判断是否为导入产品线
//
// 判断是否为导入产品线
isUpload
.
value
=
res
.
data
.
isUpload
//
isUpload.value = res.data.isUpload
// 清空标题
//
// 清空标题
store
.
title
=
''
;
//
store.title = '';
setTitleRef
.
value
.
title
=
store
.
title
;
//
setTitleRef.value.title = store.title;
lineId
.
value
=
null
//
lineId.value = null
// console.log(res.data.isUpload);
//
// console.log(res.data.isUpload);
handleEditProductLineData
(
res
.
data
)
//
handleEditProductLineData(res.data)
}
//
}
// }, 2000);
//
// }, 2000);
},
//
},
fail
()
{
//
fail() {
uni
.
hideLoading
()
//
uni.hideLoading()
uni
.
showToast
({
//
uni.showToast({
title
:
'导入失败'
,
//
title: '导入失败',
icon
:
'none'
//
icon: 'none'
})
//
})
}
//
}
})
//
})
}
//
}
})
//
})
}
}
//确认重置
//确认重置
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论