Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
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
李俊赕
self-support
Commits
31c87f89
Commit
31c87f89
authored
Apr 19, 2021
by
李俊赕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经纬度组件
parent
7f5b8a9c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
16 deletions
+10
-16
classify.data.js
src/common/classify.data.js
+1
-1
XhLocation.vue
src/components/createCom/XhLocation.vue
+6
-12
complete.vue
src/pages/order/complete.vue
+3
-3
No files found.
src/common/classify.data.js
View file @
31c87f89
...
...
@@ -49,7 +49,7 @@ export default [{
"fieldsTitle"
:
"获取经纬度"
,
"fieldsName"
:
"location"
,
"fieldsType"
:
"location"
,
//
"required": true,
"required"
:
true
,
"key"
:
"阔腿裤"
,
"icon"
:
"https://cdn.uviewui.com/uview/common/classify/1/6.jpg"
,
"cat"
:
10
...
...
src/components/createCom/XhLocation.vue
View file @
31c87f89
<
template
>
<view
class=
"list u-flex u-row-between"
>
<text
class=
"required"
v-if=
"item.required"
>
*
</text>
<view
class=
"u-m-r-20"
>
{{
item
.
fieldsTitle
}}
</view>
<view
class=
"u-flex-1"
>
{{
valueTxt
||
''
}}
</view>
<u-button
type=
"primary"
size=
"mini"
@
click=
"$u.debounce(getLocation,1000)"
>
默认按钮
</u-button>
...
...
@@ -52,17 +53,10 @@
}
</
script
>
<
style
lang=
"scss"
scoped
>
.list
{
display
:
flex
;
.txt
{
color
:
#666
;
padding
:
10rpx
;
&
.active
{
background-color
:
red
;
color
:
#fff
;
}
}
.required
{
padding-right
:
10rpx
;
font-size
:
28rpx
;
line-height
:
40rpx
;
color
:
#fa3534
;
}
</
style
>
src/pages/order/complete.vue
View file @
31c87f89
...
...
@@ -22,13 +22,13 @@
<view
class=
"class-item"
:key=
"groupIndex"
>
<view
class=
"title"
>
{{
groupItem
.
groupName
}}
</view>
<view
class=
"class-bd"
>
<u-form-item
:label=
"toLowerCase(item.fieldsType)!=='location' ? item.fieldsTitle : ''"
:required=
"item.required"
v-for=
"(item,itemIndex) in groupItem.item"
:key=
"itemIndex"
<u-form-item
v-for=
"(item,itemIndex) in groupItem.item"
:key=
"itemIndex"
label-position=
"top"
:prop=
"item.fieldsName"
>
<!--
<view
class=
"label
"
@
click=
"nextStep(item)"
>
<view
class=
"label"
v-if=
"toLowerCase(item.fieldsType)!=='location'
"
@
click=
"nextStep(item)"
>
<text
class=
"required"
v-if=
"item.required"
>
*
</text>
{{
item
.
fieldsTitle
}}
</view>
-->
</view>
<template
v-if=
"item.fieldsType"
>
<xh-input
v-if=
"toLowerCase(item.fieldsType)==='input'"
:groupIndex=
"groupIndex"
:itemIndex=
"itemIndex"
:item=
"item"
@
value-change=
"fieldValueChange"
>
...
...
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