Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wechat_lung
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hanpeng
wechat_lung
Commits
655b6538
Commit
655b6538
authored
Nov 28, 2019
by
zujiaozhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'修改了删除图片的提示'
parent
7c0f4abd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
7 deletions
+21
-7
furtherConsultation.js
wechat_lung_questionnaire/javaScript/furtherConsultation.js
+7
-3
geneDetection.js
wechat_lung_questionnaire/javaScript/geneDetection.js
+7
-2
generalPage.js
wechat_lung_questionnaire/javaScript/generalPage.js
+7
-2
No files found.
wechat_lung_questionnaire/javaScript/furtherConsultation.js
View file @
655b6538
...
@@ -29,15 +29,19 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
...
@@ -29,15 +29,19 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
// console.log(furtherConsultation.flag)
// console.log(furtherConsultation.flag)
// 点击删除图片
// 点击删除图片
$
(
'#ImgUp'
).
on
(
'click'
,
'.image_del'
,
function
()
{
$
(
'#ImgUp'
).
on
(
'click'
,
'.image_del'
,
function
()
{
var
that
=
$
(
this
)
var
src
=
$
(
this
).
siblings
(
'img'
).
attr
(
'src'
)
var
src
=
$
(
this
).
siblings
(
'img'
).
attr
(
'src'
)
var
index
=
furtherConsultation
.
imgList
.
findIndex
(
function
(
item
){
var
index
=
furtherConsultation
.
imgList
.
findIndex
(
function
(
item
){
return
item
=
src
return
item
=
src
})
})
console
.
log
(
index
)
mui
.
confirm
(
'确定要删除这张图片吗?'
,
function
(
e
){
if
(
confirm
(
'确定要删除图片吗?'
))
{
if
(
e
.
index
==
1
)
{
furtherConsultation
.
imgList
.
splice
(
index
,
1
)
furtherConsultation
.
imgList
.
splice
(
index
,
1
)
$
(
this
).
parent
().
remove
();
that
.
parent
().
remove
();
}
else
if
(
e
.
index
==
0
){
console
.
log
(
'取消了'
)
}
}
})
});
});
// 用户点击了无
// 用户点击了无
$
(
'.noHas'
).
on
(
'tap'
,
function
(){
$
(
'.noHas'
).
on
(
'tap'
,
function
(){
...
...
wechat_lung_questionnaire/javaScript/geneDetection.js
View file @
655b6538
...
@@ -32,14 +32,19 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
...
@@ -32,14 +32,19 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
init
:
function
(){
init
:
function
(){
// 点击删除图片
// 点击删除图片
$
(
'#ImgUp'
).
on
(
'click'
,
'.image_del'
,
function
()
{
$
(
'#ImgUp'
).
on
(
'click'
,
'.image_del'
,
function
()
{
var
that
=
$
(
this
)
var
src
=
$
(
this
).
siblings
(
'img'
).
attr
(
'src'
)
var
src
=
$
(
this
).
siblings
(
'img'
).
attr
(
'src'
)
var
index
=
geneDetection
.
imgList
.
findIndex
(
function
(
item
){
var
index
=
geneDetection
.
imgList
.
findIndex
(
function
(
item
){
return
item
=
src
return
item
=
src
})
})
if
(
confirm
(
'确定要删除图片吗?'
))
{
mui
.
confirm
(
'确定要删除这张图片吗?'
,
function
(
e
){
if
(
e
.
index
==
1
){
geneDetection
.
imgList
.
splice
(
index
,
1
)
geneDetection
.
imgList
.
splice
(
index
,
1
)
$
(
this
).
parent
().
remove
();
that
.
parent
().
remove
();
}
else
if
(
e
.
index
==
0
){
console
.
log
(
'取消了'
)
}
}
})
});
});
// 用户点击了无
// 用户点击了无
$
(
'.noHas'
).
on
(
'tap'
,
function
(){
$
(
'.noHas'
).
on
(
'tap'
,
function
(){
...
...
wechat_lung_questionnaire/javaScript/generalPage.js
View file @
655b6538
...
@@ -55,14 +55,19 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
...
@@ -55,14 +55,19 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
}
}
// 点击删除图片
// 点击删除图片
$
(
'#ImgUp'
).
on
(
'click'
,
'.image_del'
,
function
()
{
$
(
'#ImgUp'
).
on
(
'click'
,
'.image_del'
,
function
()
{
var
that
=
$
(
this
)
var
src
=
$
(
this
).
siblings
(
'img'
).
attr
(
'src'
)
var
src
=
$
(
this
).
siblings
(
'img'
).
attr
(
'src'
)
var
index
=
generalPage
.
imgList
.
findIndex
(
function
(
item
){
var
index
=
generalPage
.
imgList
.
findIndex
(
function
(
item
){
return
item
=
src
return
item
=
src
})
})
if
(
confirm
(
'确定要删除图片吗?'
))
{
mui
.
confirm
(
'确定要删除这张图片吗?'
,
function
(
e
){
if
(
e
.
index
==
1
){
generalPage
.
imgList
.
splice
(
index
,
1
)
generalPage
.
imgList
.
splice
(
index
,
1
)
$
(
this
).
parent
().
remove
();
that
.
parent
().
remove
();
}
else
if
(
e
.
index
==
0
){
console
.
log
(
'取消了'
)
}
}
})
});
});
// 点击下一题
// 点击下一题
$
(
'.next'
).
on
(
'click'
,
function
(){
$
(
'.next'
).
on
(
'click'
,
function
(){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment