切换导航条
此项目
正在载入...
登录
anyv
/
xkeasy
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
差异文件
浏览文件
作者
魏强
6 years ago
提交
cd04b8791e12765323d0d020d6ca9326e88ba0f2
2 个父辈
ffa5bf95
d7276797
1 个管道 的构建
通过
耗费 2 秒
Merge branch 'master' of
http://114.215.101.231:8099/anyv/xkeasy
变更
1
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
21 行增加
和
20 行删除
public/themes/simpleboot3/portal/salesmangoods/salesman_goods_add.html
public/themes/simpleboot3/portal/salesmangoods/salesman_goods_add.html
查看文件 @
cd04b87
...
...
@@ -304,22 +304,23 @@
$
(
'#img20'
).
attr
(
"src"
,
localIds
);
$
(
".log_six_pictyre_img"
).
addClass
(
"log_six_pictyre_imgs"
);
$
(
".log_six_pictyre_title"
).
addClass
(
"log_six_pictyre_titles"
);
wx
.
uploadImage
({
localId
:
localIds
.
toString
(),
// 需要上传的图片的ID,由chooseImage接口获得
isShowProgressTips
:
1
,
// 进度提示
success
:
function
(
res
)
{
var
mediaId
=
res
.
serverId
;
// 返回图片的服务器端ID,即mediaId
//将获取到的 mediaId 传入后台 方法savePicture
$
.
post
(
"{:url('Salesmangoods/savePicture')}"
,{
"mediaId"
:
mediaId
},
function
(
res
){
//填写你自己的业务逻辑
alert
(
res
);
});
wx
.
uploadImage
({
localId
:
localIds
.
toString
(),
// 需要上传的图片的ID,由chooseImage接口获得
isShowProgressTips
:
1
,
// 进度提示
success
:
function
(
res
)
{
var
mediaId
=
res
.
serverId
;
// 返回图片的服务器端ID,即mediaId
//将获取到的 mediaId 传入后台 方法savePicture
$
.
post
(
"{:url('Salesmangoods/savePicture')}"
,{
"mediaId"
:
mediaId
},
function
(
res
){
//填写你自己的业务逻辑
},
fail
:
function
(
res
)
{
alertModal
(
'图片上传失败,请重试'
);
}
});
});
},
fail
:
function
(
res
)
{
alertModal
(
'图片上传失败,请重试'
);
}
});
}
});
...
...
@@ -369,11 +370,11 @@
}
$
.
post
(
"{:url('Salesmangoods/Salesman_goods_add')}"
,{
show_img
:
show_img
,
thumbnail
:
thumbnail
,
book_name
:
book_name
,
money
:
money
,
price
:
price
,
pricing
:
pricing
,
instr
:
instr
,
book_number
:
book_number
,
paper
:
paper
,
book_size
:
book_size
,
binding
:
binding
,
author
:
author
,
press
:
press
,
press_time
:
press_time
,
suit
:
suit
,
grade
:
grade
,
img0
:
img0
,
img1
:
img1
,
img2
:
img2
,
printing
:
printing
},
function
(
data
){
if
(
data
){
window
.
location
.
href
=
"{:url('salesmangoods/salesman_goods')}"
;
}
else
{
alert
(
'添加失败'
);
}
if
(
data
){
window
.
location
.
href
=
"{:url('salesmangoods/salesman_goods')}"
;
}
else
{
alert
(
'添加失败'
);
}
});
}
...
...
请
注册
或
登录
后发表评论