Commit 30fe2c46 by 胡悦

Merge branch 'v1.0.1' of http://192.168.3.233:8090/glsx/gl_tape into v1.0.1

2 parents 1f6c88db cf950e26
...@@ -6,37 +6,24 @@ ...@@ -6,37 +6,24 @@
<view class="content"> <view class="content">
<view class="title">问界·交车告知书</view> <view class="title">问界·交车告知书</view>
<view class="form"> <view class="form">
<template v-for="(i,index) in formObject"> <template v-for="(i, index) in formObject">
<view <view class="form-item" :key="index">
class="form-item" <view class="label">{{ i.label }}</view>
:key="index"
>
<view class="label">{{i.label}}</view>
<view class="value"> <view class="value">
<template v-if="i.type == 'input'"> <template v-if="i.type == 'input'">
<input <input :type="i.inputType" :maxlength="i.maxlength" />
:type="i.inputType"
:maxlength="i.maxlength"
/>
</template> </template>
<template v-else> <template v-else>
<view class="select"> <view class="select" @click="showPopup">
<uni-icons <uni-icons class="arrow" type="down" :size="16"></uni-icons>
class="arrow"
type="down"
:size="16"
></uni-icons>
</view> </view>
</template> </template>
</view> </view>
</view> </view>
</template> </template>
</view> </view>
<template v-for="(i,index) in views"> <template v-for="(i, index) in views">
<view <view class="view" :key="index">
class="view"
:key="index"
>
<wnCanvas <wnCanvas
saveImageType="3" saveImageType="3"
:drawImage="i.detailUrl" :drawImage="i.detailUrl"
...@@ -47,10 +34,23 @@ ...@@ -47,10 +34,23 @@
</view> </view>
</template> </template>
</view> </view>
<MessageBox v-if="carBoxVisible" :isFooter="false">
<view class="select-box">
<view
class="select-item"
:class="{ checked: selectId == item.id }"
@click="handleSelect(item)"
v-for="(item, index) in list"
:key="index"
>
{{ item.name }}
</view>
</view>
</MessageBox>
</view> </view>
</template> </template>
<script type='text/ecmascript-6'> <script type="text/ecmascript-6">
export default { export default {
props: { props: {
views: Array, views: Array,
...@@ -59,6 +59,26 @@ export default { ...@@ -59,6 +59,26 @@ export default {
name: 'Media_1', name: 'Media_1',
data () { data () {
return { return {
selectId: 1,
carBoxVisible:false,
list: [
{
id: 1,
name: "问界",
},
{
id: 2,
name: "问界",
},
{
id: 3,
name: "问界",
},
{
id: 4,
name: "问界",
},
],
formObject: [ formObject: [
{ {
label: '车主姓名', label: '车主姓名',
...@@ -90,12 +110,18 @@ export default { ...@@ -90,12 +110,18 @@ export default {
mounted () { mounted () {
}, },
methods: { methods: {
handleSelect(item) {
this.selectId = item.id;
this.carBoxVisible = false
},
showPopup() {
this.carBoxVisible = true
},
} }
} }
</script> </script>
<style scoped lang='scss'> <style scoped lang="scss">
.layout { .layout {
padding-top: 272rpx; padding-top: 272rpx;
position: relative; position: relative;
...@@ -167,4 +193,22 @@ export default { ...@@ -167,4 +193,22 @@ export default {
} }
} }
} }
</style>
\ No newline at end of file \ No newline at end of file
.select-box {
margin: 40rpx;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20rpx;
.select-item {
text-align: center;
height: 68rpx;
line-height: 68rpx;
opacity: 1;
border: 2rpx solid #dce0e6;
color: #292d33;
font-size: 28rpx;
&.checked {
border: 2rpx solid #292d33;
}
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!