切换导航条
此项目
正在载入...
登录
潘浩文
/
scoreshop
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
潘浩文
6 years ago
提交
19086b4a43a6b8d9aab521a13b579d9b69d75f52
1 个父辈
899ffe19
1 个管道 的构建
通过
耗费 0 秒
1
变更
1
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
28 行增加
和
30 行删除
public/themes/simpleboot3/portal/prize/getScore.html
public/themes/simpleboot3/portal/prize/getScore.html
查看文件 @
19086b4
...
...
@@ -68,9 +68,6 @@
<script
type=
"text/javascript"
src=
"__TMPL__/public/assets/js/jquery.min.js"
></script>
<script
src=
"http://res.wx.qq.com/open/js/jweixin-1.2.0.js"
></script>
<script>
wx
.
config
(
{
$js
}
);
// function clacImgZoomParam(maxWidth, maxHeight, width, height) {
// var param = {
// top: 0,
...
...
@@ -128,38 +125,39 @@
// }
//
// }
wx
.
config
(
{
$js
}
);
var
serverIds
=
''
;
wx
.
ready
(
function
()
{
$
(
'#imghead'
).
click
(
function
()
{
// var id = $(this).attr('id');
wx
.
ready
(
function
()
{
$
(
'#imghead'
).
click
(
function
()
{
// if ($(this).find('img').length=="") {
wx
.
chooseImage
({
count
:
1
,
// 默认9
sizeType
:
[
'original'
,
'compressed'
],
// 可以指定是原图还是压缩图,默认二者都有
sourceType
:
[
'album'
,
'camera'
],
// 可以指定来源是相册还是相机,默认二者都有
success
:
function
(
res
)
{
$
(
'#imghead'
).
attr
(
'src'
,
res
.
localIds
)
uploadImages
(
res
.
localIds
,
id
)
}
});
wx
.
chooseImage
({
count
:
1
,
// 默认9
sizeType
:
[
'original'
,
'compressed'
],
// 可以指定是原图还是压缩图,默认二者都有
sourceType
:
[
'album'
,
'camera'
],
// 可以指定来源是相册还是相机,默认二者都有
success
:
function
(
res
)
{
$
(
'#imghead'
).
attr
(
'src'
,
res
.
localIds
)
uploadImages
(
res
.
localIds
)
}
});
// }
});
function
uploadImages
(
localIds
)
{
// var localId = localIds.pop();
wx
.
uploadImage
({
localId
:
localIds
,
isShowProgressTips
:
1
,
success
:
function
(
res
)
{
serverIds
=
res
.
serverId
;
// 返回图片的服务器端ID
alert
(
serverIds
)
},
fail
:
function
(
res
)
{
alert
(
res
)
$modal
.
toast
(
JSON
.
stringify
(
res
));
});
function
uploadImages
(
localIds
)
{
var
localId
=
localIds
.
pop
();
wx
.
uploadImage
({
localId
:
localId
,
isShowProgressTips
:
1
,
success
:
function
(
res
)
{
var
serverId
=
res
.
serverId
;
// 返回图片的服务器端ID
serverIds
+=
id
+
':'
+
serverId
+
','
;
},
fail
:
function
(
res
)
{
$modal
.
toast
(
JSON
.
stringify
(
res
));
}
});
}
});
}
});
//确定上传小票
$
(
".footer"
).
click
(
function
(){
$
.
ajax
({
...
...
请
注册
或
登录
后发表评论