Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xinrenli-app
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郑云飞
xinrenli-app
Commits
a241d741
Commit
a241d741
authored
Mar 09, 2023
by
honghong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2023-3-8修改图片细节,图片预览
parent
a7089f9b
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
66 additions
and
18 deletions
+66
-18
components/evaluate.vue
+30
-5
components/form.vue
+5
-4
components/upload/aIndex.vue
+2
-2
css/form.css
+1
-0
demand/index/index.vue
+1
-1
demand/payment/index.vue
+1
-0
manifest.json
+1
-1
order/detail/detail.vue
+9
-3
pages/demand/components/index.vue
+7
-2
pages/order/index.vue
+1
-0
pages/release/index.vue
+8
-0
No files found.
components/evaluate.vue
View file @
a241d741
...
@@ -19,8 +19,9 @@
...
@@ -19,8 +19,9 @@
<view
class=
"rightText"
v-else
@
click=
"changeAllFun(item, index)"
>
收起
</view>
<view
class=
"rightText"
v-else
@
click=
"changeAllFun(item, index)"
>
收起
</view>
</view>
-->
</view>
-->
<view
class=
"evaluateListImg"
>
<view
class=
"evaluateListImg"
>
<view
v-for=
"(itm, ind) in item.imageList"
:key=
"ind"
>
<view
class=
"evaluateListImgItem"
v-for=
"(itm, ind) in item.imageList"
:key=
"ind"
<image
class=
"evaluateListImgItem"
:src=
"itm.url"
mode=
"scaleToFill"
></image>
@
click
.
stop=
"handlePreview(index,ind)"
>
<image
:src=
"itm.url"
mode=
"scaleToFill"
></image>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -70,6 +71,18 @@
...
@@ -70,6 +71,18 @@
}
}
})
})
this
.
list
=
list
this
.
list
=
list
},
//图片预览
handlePreview
(
index
,
inx
)
{
let
that
=
this
var
photoList
=
that
.
list
[
index
].
imageList
.
map
(
item
=>
{
// item 获取到的图片地址
return
item
.
url
;
});
uni
.
previewImage
({
current
:
inx
,
urls
:
photoList
,
loop
:
true
})
}
}
}
}
...
@@ -134,15 +147,27 @@
...
@@ -134,15 +147,27 @@
.evaluateListImg
{
.evaluateListImg
{
width
:
100%
;
width
:
100%
;
display
:
flex
;
justify-content
:
space-between
;
flex-wrap
:
wrap
;
.evaluateListImgItem
{
.evaluateListImgItem
{
width
:
210
rpx
;
width
:
210
rpx
;
height
:
210
rpx
;
height
:
210
rpx
;
float
:
left
;
background
:
#ffa
;
margin-right
:
10
rpx
;
margin-top
:
20
rpx
;
margin-top
:
10
rpx
;
image
{
width
:
100%
;
height
:
100%
;
}
}
}
}
}
.evaluateListImg
:after
{
content
:
''
;
width
:
210
rpx
;
}
}
}
...
...
components/form.vue
View file @
a241d741
...
@@ -39,10 +39,7 @@
...
@@ -39,10 +39,7 @@
<input
type=
"text"
placeholder=
"请填写预算金额"
>
<input
type=
"text"
placeholder=
"请填写预算金额"
>
</view>
</view>
</view>
</view>
<view
class=
"paddding-x-three"
>
<view
class=
"form-item-name margin-y-two"
>
备注
</view>
<u--textarea
v-model=
"remark"
height=
"128"
placeholder=
"备注说明"
></u--textarea>
</view>
<view>
<view>
<view>
<view>
<view
class=
"d-flex j-sb a-center form-item-height-only"
>
<view
class=
"d-flex j-sb a-center form-item-height-only"
>
...
@@ -81,6 +78,10 @@
...
@@ -81,6 +78,10 @@
</view>
</view>
</u-popup>
</u-popup>
</view>
</view>
<view
class=
"paddding-x-three"
>
<view
class=
"form-item-name margin-y-two"
>
备注
</view>
<u--textarea
v-model=
"remark"
height=
"128"
placeholder=
"备注说明"
></u--textarea>
</view>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
...
components/upload/aIndex.vue
View file @
a241d741
<
template
>
<
template
>
<view
class=
"index"
>
<view
class=
"index"
>
<u-upload
:fileList=
"fileList
6
"
@
afterRead=
"afterRead"
@
delete=
"deletePic"
name=
"6"
multiple
:maxCount=
"1"
width=
"210"
height=
"210"
:accept=
"acceptType"
>
<u-upload
:fileList=
"fileList"
@
afterRead=
"afterRead"
@
delete=
"deletePic"
name=
"6"
multiple
:maxCount=
"1"
width=
"210"
height=
"210"
:accept=
"acceptType"
>
<view
class=
"index-upload d-flex j-center a-center"
>
<view
class=
"index-upload d-flex j-center a-center"
>
<image
v-if=
"imgType === 'camera'"
src=
"@/static/icon/camera.png"
mode=
"widthFix"
></image>
<image
v-if=
"imgType === 'camera'"
src=
"@/static/icon/camera.png"
mode=
"widthFix"
></image>
<view
class=
"index-upload-tlo d-flex flex-wrap j-center"
v-else-if=
"imgType === 'cross'"
>
<view
class=
"index-upload-tlo d-flex flex-wrap j-center"
v-else-if=
"imgType === 'cross'"
>
...
@@ -33,7 +33,7 @@ export default {
...
@@ -33,7 +33,7 @@ export default {
return
{
return
{
// imgBgUrl: apiBaseConfig.imgBgUrl,
// imgBgUrl: apiBaseConfig.imgBgUrl,
// globalData: getApp().globalData,
// globalData: getApp().globalData,
fileList
6
:
[
fileList
:
[
{
{
url
:
'https://img2.baidu.com/it/u=955956276,3392954639&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'
url
:
'https://img2.baidu.com/it/u=955956276,3392954639&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'
},
},
...
...
css/form.css
View file @
a241d741
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
text-align
:
center
;
text-align
:
center
;
line-height
:
80
rpx
;
line-height
:
80
rpx
;
margin
:
30
rpx
auto
;
margin
:
30
rpx
auto
;
margin-top
:
100
rpx
;
}
}
.voice-box
{
.voice-box
{
width
:
244
rpx
;
width
:
244
rpx
;
...
...
demand/index/index.vue
View file @
a241d741
...
@@ -174,7 +174,7 @@
...
@@ -174,7 +174,7 @@
&-img
{
&-img
{
margin-top
:
20
rpx
;
margin-top
:
20
rpx
;
margin-right
:
2
2
rpx
;
margin-right
:
2
0
rpx
;
width
:
210
rpx
;
width
:
210
rpx
;
height
:
210
rpx
;
height
:
210
rpx
;
}
}
...
...
demand/payment/index.vue
View file @
a241d741
...
@@ -137,6 +137,7 @@
...
@@ -137,6 +137,7 @@
font-size
:
24
rpx
;
font-size
:
24
rpx
;
font-weight
:
400
;
font-weight
:
400
;
color
:
#444444
;
color
:
#444444
;
line-height
:
36
rpx
;
}
}
&
-photo
{
&
-photo
{
...
...
manifest.json
View file @
a241d741
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
"quickapp"
:
{},
"quickapp"
:
{},
/*
小程序特有相关
*/
/*
小程序特有相关
*/
"mp-weixin"
:
{
"mp-weixin"
:
{
"appid"
:
"wx
b323afcbe152514f
"
,
"appid"
:
"wx
312fb4fecd3ee803
"
,
"setting"
:
{
"setting"
:
{
"urlCheck"
:
false
,
"urlCheck"
:
false
,
"es6"
:
true
,
"es6"
:
true
,
...
...
order/detail/detail.vue
View file @
a241d741
<
template
>
<
template
>
<view>
<view>
<view
style=
"padding-bottom: 100rpx;"
>
<view
style=
"padding-bottom: 100rpx;"
>
<view
class=
"padding-x-four d-flex flex-wrap"
>
<view
class=
"padding-x-four d-flex flex-wrap
j-sb flex-content
"
>
<view
v-for=
"item in
6
"
>
<view
v-for=
"item in
5
"
>
<image
class=
"evaluateListImgItem"
<image
class=
"evaluateListImgItem"
src=
"https://img2.baidu.com/it/u=955956276,3392954639&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500"
src=
"https://img2.baidu.com/it/u=955956276,3392954639&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500"
mode=
"scaleToFill"
></image>
mode=
"scaleToFill"
></image>
...
@@ -122,11 +122,17 @@
...
@@ -122,11 +122,17 @@
margin-left
:
10
rpx
;
margin-left
:
10
rpx
;
}
}
.flex-content
:after
{
content
:
''
;
width
:
210
rpx
;
}
.evaluateListImgItem
{
.evaluateListImgItem
{
width
:
210
rpx
;
width
:
210
rpx
;
height
:
210
rpx
;
height
:
210
rpx
;
margin-right
:
10
rpx
;
margin-top
:
10
rpx
;
margin-top
:
10
rpx
;
/* margin-right: 10rpx;
margin-top: 10rpx; */
}
}
/* 内容样式 */
/* 内容样式 */
...
...
pages/demand/components/index.vue
View file @
a241d741
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<view
class=
"content-matter"
v-for=
"(v,index) in 20"
@
click=
"jump"
:key=
"index"
>
<view
class=
"content-matter"
v-for=
"(v,index) in 20"
@
click=
"jump"
:key=
"index"
>
<view
class=
"content-matter-lampwick"
>
<view
class=
"content-matter-lampwick"
>
<view
class=
"content-matter-lampwick-lampw"
>
<view
class=
"content-matter-lampwick-lampw"
>
<view
class=
""
></view>
<view
:class=
"subscript == '1' ? 'only-bg-red' : 'common-bg'"
class=
""
></view>
<view
class=
""
>
灯泡灯芯坏了
</view>
<view
class=
""
>
灯泡灯芯坏了
</view>
</view>
</view>
<view
class=
"content-matter-lampwick-wick"
>
<view
class=
"content-matter-lampwick-wick"
>
...
@@ -162,10 +162,15 @@
...
@@ -162,10 +162,15 @@
>
view
:
nth-child
(
1
)
{
>
view
:
nth-child
(
1
)
{
width
:
6
rpx
;
width
:
6
rpx
;
height
:
36
rpx
;
height
:
36
rpx
;
background
:
#2C66FF
;
border-radius
:
3
rpx
;
border-radius
:
3
rpx
;
margin-right
:
10
rpx
;
margin-right
:
10
rpx
;
}
}
.common-bg
{
background
:
#2C66FF
;
}
.only-bg-red
{
background
:
#FD0000
;
}
>
view
:nth-child
(
2
)
{
>
view
:nth-child
(
2
)
{
font-size
:
28
rpx
;
font-size
:
28
rpx
;
...
...
pages/order/index.vue
View file @
a241d741
...
@@ -76,6 +76,7 @@
...
@@ -76,6 +76,7 @@
{
{
url
:
'https://img2.baidu.com/it/u=955956276,3392954639&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'
url
:
'https://img2.baidu.com/it/u=955956276,3392954639&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'
},
},
]
]
}],
}],
personEvalList
:
[{
personEvalList
:
[{
...
...
pages/release/index.vue
View file @
a241d741
...
@@ -67,4 +67,12 @@
...
@@ -67,4 +67,12 @@
<
style
scoped
>
<
style
scoped
>
@import
url("@/css/form.css")
;
@import
url("@/css/form.css")
;
::v-deep
.u-border
{
border
:
0
!important
;
background
:
#F5F5F5
!important
;
}
::v-deep
.u-upload__wrap__preview
{
margin
:
0
6
rpx
10
rpx
0
!important
;
}
</
style
>
</
style
>
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