Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsales
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8341f47b
authored
Jul 18, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1321
parent
f2f7fc4d
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
16 deletions
Application/Home/View/GoodManage/gooddetail.html
Application/Home/View/QuotePrice/inquirydetail.html
dist/css/common/base.css
dist/css/common/base.less
dist/js/chat/index.js
dist/js/goodmanage/gooddetail.js
dist/js/quoteprice/inquirydetail.js
Application/Home/View/GoodManage/gooddetail.html
View file @
8341f47b
...
@@ -92,9 +92,9 @@
...
@@ -92,9 +92,9 @@
</script>
</script>
<script
type=
"text/html"
id=
"detailTpl"
>
<script
type=
"text/html"
id=
"detailTpl"
>
{{
#
if
(
d
[
'goods_images'
]){
}}
{{
#
if
(
d
[
'goods_images'
]){
}}
<
img
src
=
"{{d.goods_images}}"
alt
=
""
class
=
"fr"
>
<
img
src
=
"{{d.goods_images}}"
alt
=
""
class
=
"fr
sp_img
"
>
{{
#
}
else
{
}}
{{
#
}
else
{
}}
<
img
src
=
"__PUBLIC__/images/defaultgood.png"
alt
=
""
class
=
"fr"
>
<
img
src
=
"__PUBLIC__/images/defaultgood.png"
alt
=
""
class
=
"fr
sp_img
"
>
{{
#
}
}}
{{
#
}
}}
<
div
class
=
" goods_desc boxsiz"
>
<
div
class
=
" goods_desc boxsiz"
>
<
div
class
=
"title"
>
<
div
class
=
"title"
>
...
...
Application/Home/View/QuotePrice/inquirydetail.html
View file @
8341f47b
...
@@ -43,9 +43,9 @@
...
@@ -43,9 +43,9 @@
<!--
商品详情
-->
<!--
商品详情
-->
{{
#
if
(
d
[
'goods_images'
]){
}}
{{
#
if
(
d
[
'goods_images'
]){
}}
<
img
src
=
"{{d.goods_images}}"
alt
=
""
class
=
"fr"
>
<
img
src
=
"{{d.goods_images}}"
alt
=
""
class
=
"fr
xj_img
"
>
{{
#
}
else
{
}}
{{
#
}
else
{
}}
<
img
src
=
"__PUBLIC__/images/defaultgood.png"
alt
=
""
class
=
"fr"
>
<
img
src
=
"__PUBLIC__/images/defaultgood.png"
alt
=
""
class
=
"fr
xj_img
"
>
{{
#
}
}}
{{
#
}
}}
<
div
class
=
" goods_desc boxsiz"
>
<
div
class
=
" goods_desc boxsiz"
>
<
div
class
=
"title"
>
<
div
class
=
"title"
>
...
...
dist/css/common/base.css
View file @
8341f47b
...
@@ -355,7 +355,7 @@ body {
...
@@ -355,7 +355,7 @@ body {
}
}
.goods_data_list
.my_xj_list
.my_xj_item
.item_user
.type
{
.goods_data_list
.my_xj_list
.my_xj_item
.item_user
.type
{
border-radius
:
5px
0px
5px
0px
;
border-radius
:
5px
0px
5px
0px
;
width
:
48
px
;
width
:
60
px
;
height
:
20px
;
height
:
20px
;
text-align
:
center
;
text-align
:
center
;
line-height
:
20px
;
line-height
:
20px
;
...
@@ -371,7 +371,7 @@ body {
...
@@ -371,7 +371,7 @@ body {
.goods_data_list
.my_xj_list
.my_xj_item
.item_user
.name
{
.goods_data_list
.my_xj_list
.my_xj_item
.item_user
.name
{
color
:
#8A9299
;
color
:
#8A9299
;
margin-left
:
10px
;
margin-left
:
10px
;
width
:
calc
(
100%
-
58
px
);
width
:
calc
(
100%
-
70
px
);
}
}
.goods_data_list
.my_xj_list
.my_xj_item
:hover
{
.goods_data_list
.my_xj_list
.my_xj_item
:hover
{
box-shadow
:
0px
5px
10px
0px
rgba
(
216
,
223
,
230
,
0.5
);
box-shadow
:
0px
5px
10px
0px
rgba
(
216
,
223
,
230
,
0.5
);
...
@@ -849,4 +849,3 @@ body {
...
@@ -849,4 +849,3 @@ body {
color
:
#ADB6BF
;
color
:
#ADB6BF
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
/*# sourceMappingURL=base.css.map */
\ No newline at end of file
dist/css/common/base.less
View file @
8341f47b
...
@@ -424,7 +424,7 @@ body {
...
@@ -424,7 +424,7 @@ body {
.type {
.type {
border-radius: 5px 0px 5px 0px;
border-radius: 5px 0px 5px 0px;
width:
48
px;
width:
60
px;
height: 20px;
height: 20px;
text-align: center;
text-align: center;
line-height: 20px;
line-height: 20px;
...
@@ -444,7 +444,7 @@ body {
...
@@ -444,7 +444,7 @@ body {
.name {
.name {
color: #8A9299;
color: #8A9299;
margin-left: 10px;
margin-left: 10px;
width: calc(~"100% -
58
px");
width: calc(~"100% -
70
px");
}
}
}
}
...
...
dist/js/chat/index.js
View file @
8341f47b
...
@@ -216,7 +216,7 @@ $(function () {
...
@@ -216,7 +216,7 @@ $(function () {
var
htmlp
=
'<p>'
+
html
+
'</p>'
;
var
htmlp
=
'<p>'
+
html
+
'</p>'
;
if
(
isTemplate
)
{
if
(
isTemplate
)
{
var
htmlp
=
'<div class="template lineBlock boxsiz">'
+
var
htmlp
=
'<div class="template lineBlock boxsiz">'
+
'<img src="
http://resic.liexin.com/images/defaultgood.png
" alt="">'
+
'<img src="
'
+
html
.
image
+
'
" alt="">'
+
'<div class="template_right">'
+
'<div class="template_right">'
+
'<div class="template_right_top clr">'
+
'<div class="template_right_top clr">'
+
'<h3 class="bold fl">'
+
html
.
type
+
'</h3>'
+
'<h3 class="bold fl">'
+
html
.
type
+
'</h3>'
+
...
...
dist/js/goodmanage/gooddetail.js
View file @
8341f47b
...
@@ -3,6 +3,7 @@ $(function () {
...
@@ -3,6 +3,7 @@ $(function () {
type
:
Util
.
getRequest
(
'type'
)
||
""
,
type
:
Util
.
getRequest
(
'type'
)
||
""
,
token
:
Util
.
getCookie
(
'token'
)
||
''
,
token
:
Util
.
getCookie
(
'token'
)
||
''
,
id
:
Util
.
getRequest
(
'id'
)
||
""
,
id
:
Util
.
getRequest
(
'id'
)
||
""
,
isClick
:
true
,
init
:
function
()
{
init
:
function
()
{
this
.
getDetail
();
this
.
getDetail
();
this
.
bindFun
();
this
.
bindFun
();
...
@@ -33,13 +34,13 @@ $(function () {
...
@@ -33,13 +34,13 @@ $(function () {
});
});
layui
.
laytpl
(
getCompany
).
render
(
res
.
goods_list
[
self
.
id
],
function
(
html
)
{
layui
.
laytpl
(
getCompany
).
render
(
res
.
goods_list
[
self
.
id
],
function
(
html
)
{
$
(
".good_detail_content .bj_item"
).
empty
().
html
(
html
);
$
(
".good_detail_content .bj_item"
).
empty
().
html
(
html
);
if
(
self
.
type
==
2
)
{
if
(
self
.
type
==
2
)
{
$
(
'.gt_div'
).
show
();
$
(
'.gt_div'
).
show
();
}
}
});
});
layui
.
laytpl
(
getDetail
).
render
(
res
.
goods_list
[
self
.
id
],
function
(
html
)
{
layui
.
laytpl
(
getDetail
).
render
(
res
.
goods_list
[
self
.
id
],
function
(
html
)
{
$
(
".good_detail_content .goods_detail"
).
empty
().
html
(
html
);
$
(
".good_detail_content .goods_detail"
).
empty
().
html
(
html
);
if
(
self
.
type
==
1
)
{
if
(
self
.
type
==
1
)
{
$
(
'.bj_btn'
).
show
();
$
(
'.bj_btn'
).
show
();
}
}
});
});
...
@@ -61,6 +62,8 @@ $(function () {
...
@@ -61,6 +62,8 @@ $(function () {
bindFun
:
function
()
{
bindFun
:
function
()
{
var
self
=
this
;
var
self
=
this
;
$
(
'.good_detail_content'
).
on
(
'click'
,
'.gt_div'
,
function
()
{
$
(
'.good_detail_content'
).
on
(
'click'
,
'.gt_div'
,
function
()
{
if
(
self
.
isClick
)
{
self
.
isClick
=
false
;
var
userId
=
$
(
this
).
attr
(
'imid'
),
var
userId
=
$
(
this
).
attr
(
'imid'
),
parent
=
$
(
'.goods_detail'
),
parent
=
$
(
'.goods_detail'
),
type
=
parent
.
find
(
'.goods_name'
).
text
(),
type
=
parent
.
find
(
'.goods_name'
).
text
(),
...
@@ -70,6 +73,7 @@ $(function () {
...
@@ -70,6 +73,7 @@ $(function () {
num
=
parent
.
find
(
'.num'
).
find
(
'span'
).
text
(),
num
=
parent
.
find
(
'.num'
).
find
(
'span'
).
text
(),
hq
=
parent
.
find
(
'.hq'
).
find
(
'span'
).
text
(),
hq
=
parent
.
find
(
'.hq'
).
find
(
'span'
).
text
(),
time
=
parent
.
find
(
'.time'
).
find
(
'span'
).
text
(),
time
=
parent
.
find
(
'.time'
).
find
(
'span'
).
text
(),
img
=
$
(
'.sp_img'
).
attr
(
'src'
)
obj
=
{
obj
=
{
userId
:
userId
,
userId
:
userId
,
type
:
type
,
type
:
type
,
...
@@ -78,13 +82,18 @@ $(function () {
...
@@ -78,13 +82,18 @@ $(function () {
fz
:
fz
,
fz
:
fz
,
num
:
num
,
num
:
num
,
hq
:
hq
,
hq
:
hq
,
time
:
time
time
:
time
,
image
:
img
};
};
Util
.
setCookie
(
'template'
,
JSON
.
stringify
(
obj
),
1
,
cookieHostname
)
Util
.
setCookie
(
'template'
,
JSON
.
stringify
(
obj
),
1
,
cookieHostname
)
window
.
location
.
href
=
'/chat'
window
.
location
.
href
=
'/chat'
}
else
{
return
}
});
});
$
(
'.good_detail_content '
).
on
(
'click'
,
'.bj_btn'
,
function
()
{
$
(
'.good_detail_content '
).
on
(
'click'
,
'.bj_btn'
,
function
()
{
window
.
location
.
href
=
'/uploadsingle?id='
+
self
.
id
window
.
location
.
href
=
'/uploadsingle?id='
+
self
.
id
})
})
}
}
};
};
...
...
dist/js/quoteprice/inquirydetail.js
View file @
8341f47b
$
(
function
()
{
$
(
function
()
{
var
inquiryDetail
=
{
var
inquiryDetail
=
{
isClick
:
true
,
init
:
function
()
{
init
:
function
()
{
this
.
getUserData
();
this
.
getUserData
();
this
.
getBjData
(
1
);
this
.
getBjData
(
1
);
...
@@ -74,7 +75,10 @@ $(function () {
...
@@ -74,7 +75,10 @@ $(function () {
})
})
},
},
bindFun
:
function
()
{
bindFun
:
function
()
{
var
self
=
this
;
$
(
'.inquiry_detail_content '
).
on
(
'click'
,
'.gt_div'
,
function
()
{
$
(
'.inquiry_detail_content '
).
on
(
'click'
,
'.gt_div'
,
function
()
{
if
(
self
.
isClick
)
{
self
.
isClick
=
false
;
var
userId
=
$
(
this
).
attr
(
'imid'
),
var
userId
=
$
(
this
).
attr
(
'imid'
),
parent
=
$
(
this
).
parents
(
'.bj_item'
),
parent
=
$
(
this
).
parents
(
'.bj_item'
),
type
=
parent
.
find
(
'.goods_name'
).
text
(),
type
=
parent
.
find
(
'.goods_name'
).
text
(),
...
@@ -84,6 +88,7 @@ $(function () {
...
@@ -84,6 +88,7 @@ $(function () {
num
=
parent
.
find
(
'.num'
).
find
(
'span'
).
text
(),
num
=
parent
.
find
(
'.num'
).
find
(
'span'
).
text
(),
hq
=
parent
.
find
(
'.hq'
).
find
(
'span'
).
text
(),
hq
=
parent
.
find
(
'.hq'
).
find
(
'span'
).
text
(),
time
=
parent
.
find
(
'.time'
).
find
(
'span'
).
text
(),
time
=
parent
.
find
(
'.time'
).
find
(
'span'
).
text
(),
img
=
$
(
'.xj_img'
).
attr
(
'src'
);
obj
=
{
obj
=
{
userId
:
userId
,
userId
:
userId
,
type
:
type
,
type
:
type
,
...
@@ -92,10 +97,15 @@ $(function () {
...
@@ -92,10 +97,15 @@ $(function () {
fz
:
fz
,
fz
:
fz
,
num
:
num
,
num
:
num
,
hq
:
hq
,
hq
:
hq
,
time
:
time
time
:
time
,
image
:
img
};
};
Util
.
setCookie
(
'template'
,
JSON
.
stringify
(
obj
),
1
,
cookieHostname
)
Util
.
setCookie
(
'template'
,
JSON
.
stringify
(
obj
),
1
,
cookieHostname
)
window
.
location
.
href
=
'/chat'
window
.
location
.
href
=
'/chat'
}
else
{
return
}
})
})
}
}
};
};
...
...
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