27602
This commit is contained in:
@@ -112,7 +112,7 @@ export default {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/supermarket/balance?category=" + JSON.stringify(filter)
|
url: "./balance?category=" + JSON.stringify(filter)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
active(key) {
|
active(key) {
|
||||||
@@ -255,7 +255,6 @@ uni-page-body {
|
|||||||
.less {
|
.less {
|
||||||
width: 40px;
|
width: 40px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
font-size: 20px;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|||||||
@@ -109,12 +109,12 @@ export default {
|
|||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/supermarket/components/resultPage/resultPage'
|
url: './resultPage'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:
|
url:
|
||||||
'/pages/supermarket/components/resultPage/resultPage?flag=' +
|
'./resultPage?flag=' +
|
||||||
false
|
false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -128,7 +128,7 @@ export default {
|
|||||||
},
|
},
|
||||||
handleSelect() {
|
handleSelect() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/supermarket/search'
|
url: './search'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
69
src/mods/AppSupermarket/resultPage.vue
Normal file
69
src/mods/AppSupermarket/resultPage.vue
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
<template>
|
||||||
|
<div class="result-page">
|
||||||
|
<img :src="imgSrc" alt="">
|
||||||
|
<text>{{ text }}</text>
|
||||||
|
<u-button type="primary" :custom-style="{width:'100%',borderRadius:'4px',marginTop:'48px'}" @click="goBack">
|
||||||
|
{{ btnText }}
|
||||||
|
</u-button>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "result-page",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
flag: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad(val) {
|
||||||
|
if (val.flag) {
|
||||||
|
this.flag = val.flag
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
goBack() {
|
||||||
|
uni.navigateBack({
|
||||||
|
delta: 3
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
text() {
|
||||||
|
return this.flag ? '领取成功!' : '领取失败!请联系管理员处理'
|
||||||
|
},
|
||||||
|
btnText() {
|
||||||
|
return this.flag ? '确定' : '我知道了'
|
||||||
|
},
|
||||||
|
imgSrc() {
|
||||||
|
return this.flag ? (this.$cdn + 'other/' + 'kztcg.png') : (this.$cdn + 'other/' + 'kztsb.png')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.result-page {
|
||||||
|
min-height: 100%;
|
||||||
|
background-color: #ffffff;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
padding: 96px;
|
||||||
|
|
||||||
|
img {
|
||||||
|
width: 192px;
|
||||||
|
height: 192px;
|
||||||
|
}
|
||||||
|
|
||||||
|
text {
|
||||||
|
font-size: 36px;
|
||||||
|
font-weight: 800;
|
||||||
|
color: #333333;
|
||||||
|
line-height: 50px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -2,17 +2,13 @@
|
|||||||
<div class="album">
|
<div class="album">
|
||||||
<div class="form-item__group">
|
<div class="form-item__group">
|
||||||
<div class="form-item">
|
<div class="form-item">
|
||||||
<div class="form-item__wrapper" @click="showSel = true">
|
<div class="form-item__wrapper">
|
||||||
<div class="form-item__title">
|
<div class="form-item__title">
|
||||||
<i>*</i>
|
<i>*</i>
|
||||||
<h2>事件类型</h2>
|
<h2>事件类型</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-item__right">
|
<div class="form-item__right">
|
||||||
<!-- <ai-select :list="dictList" v-model="form.groupId"></ai-select>
|
<AiSelect :list="dictList" v-model="form.groupId" placeholder="请选择"></AiSelect>
|
||||||
-->
|
|
||||||
<span :style="{ color: form.groupIdvalue ? '' : '#999' }">{{ form.groupIdvalue ? form.groupIdvalue : '请选择' }}</span>
|
|
||||||
|
|
||||||
<u-select v-model="showSel" value-name="value" label-name="label" :list="dictList" @confirm="confirm"></u-select>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -39,7 +35,7 @@
|
|||||||
<div class="form-item__right" @click="chooseAddress">
|
<div class="form-item__right" @click="chooseAddress">
|
||||||
<span v-if="form.address">{{ form.address }}</span>
|
<span v-if="form.address">{{ form.address }}</span>
|
||||||
<i v-else>请选择</i>
|
<i v-else>请选择</i>
|
||||||
<u-icon name="arrow-right" color="#ddd" />
|
<u-icon name="arrow-right" color="#ddd"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -49,11 +45,12 @@
|
|||||||
<i>*</i>
|
<i>*</i>
|
||||||
<h2>所属网格</h2>
|
<h2>所属网格</h2>
|
||||||
</div>
|
</div>
|
||||||
<picker :range="gridList" mode="multiSelector" range-key="girdName" @columnchange="onColumnChange" @change="onChange">
|
<picker :range="gridList" mode="multiSelector" range-key="girdName" @columnchange="onColumnChange"
|
||||||
|
@change="onChange">
|
||||||
<div class="form-item__right">
|
<div class="form-item__right">
|
||||||
<span v-if="form.girdName">{{ form.girdName }}</span>
|
<span v-if="form.girdName">{{ form.girdName }}</span>
|
||||||
<i v-else>请选择</i>
|
<i v-else>请选择</i>
|
||||||
<u-icon name="arrow-right" color="#ddd" />
|
<u-icon name="arrow-right" color="#ddd"/>
|
||||||
</div>
|
</div>
|
||||||
</picker>
|
</picker>
|
||||||
</div>
|
</div>
|
||||||
@@ -63,7 +60,7 @@
|
|||||||
<div class="form-item form-item__imgs">
|
<div class="form-item form-item__imgs">
|
||||||
<div class="form-item__wrapper">
|
<div class="form-item__wrapper">
|
||||||
<div class="form-item__title">
|
<div class="form-item__title">
|
||||||
<i style="opacity: 0">*</i>
|
<i style="opacity: 0;">*</i>
|
||||||
<h2>图片上传</h2>
|
<h2>图片上传</h2>
|
||||||
<span>(最多9张)</span>
|
<span>(最多9张)</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -81,7 +78,7 @@
|
|||||||
<h2>姓名</h2>
|
<h2>姓名</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-item__right">
|
<div class="form-item__right">
|
||||||
<input placeholder="请输入" v-model="form.name" :maxlength="20" />
|
<input placeholder="请输入" v-model="form.name" :maxlength="20"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -92,7 +89,7 @@
|
|||||||
<h2>联系方式</h2>
|
<h2>联系方式</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-item__right">
|
<div class="form-item__right">
|
||||||
<input placeholder="请输入" v-model="form.phone" :maxlength="20" />
|
<input placeholder="请输入" v-model="form.phone" :maxlength="20"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -104,7 +101,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import {mapState} from 'vuex'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@@ -121,19 +118,17 @@ export default {
|
|||||||
groupName: '',
|
groupName: '',
|
||||||
girdName: '',
|
girdName: '',
|
||||||
girdId: '',
|
girdId: '',
|
||||||
groupIdvalue: '',
|
files: []
|
||||||
files: [],
|
|
||||||
},
|
},
|
||||||
dictList: [],
|
dictList: [],
|
||||||
arr: [],
|
arr: [],
|
||||||
gridList: [[], []],
|
gridList: [[], []],
|
||||||
flag: false,
|
flag: false
|
||||||
showSel: false,
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['user']),
|
...mapState(['user'])
|
||||||
},
|
},
|
||||||
|
|
||||||
onLoad() {
|
onLoad() {
|
||||||
@@ -149,44 +144,41 @@ export default {
|
|||||||
scope: 'scope.userLocation',
|
scope: 'scope.userLocation',
|
||||||
success: () => {
|
success: () => {
|
||||||
uni.chooseLocation({
|
uni.chooseLocation({
|
||||||
success: (res) => {
|
success: res => {
|
||||||
this.form.address = res.address
|
this.form.address = res.address
|
||||||
this.form.lat = res.latitude
|
this.form.lat = res.latitude
|
||||||
this.form.lng = res.longitude
|
this.form.lng = res.longitude
|
||||||
},
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
fail: () => {
|
fail: () => {
|
||||||
this.$dialog
|
this.$dialog.confirm({
|
||||||
.confirm({
|
content: '您未授权定位权限,无法选择位置'
|
||||||
content: '您未授权定位权限,无法选择位置',
|
}).then(() => {
|
||||||
|
wx.openSetting({
|
||||||
|
success: res => {
|
||||||
|
if (!res.authSetting['scope.userLocation']) {
|
||||||
|
this.$dialog.alert({
|
||||||
|
content: '您未授权定位权限,无法选择位置'
|
||||||
|
}).then(() => {
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
console.log('设置定位权限')
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.then(() => {
|
})
|
||||||
wx.openSetting({
|
}
|
||||||
success: (res) => {
|
|
||||||
if (!res.authSetting['scope.userLocation']) {
|
|
||||||
this.$dialog
|
|
||||||
.alert({
|
|
||||||
content: '您未授权定位权限,无法选择位置',
|
|
||||||
})
|
|
||||||
.then(() => {})
|
|
||||||
} else {
|
|
||||||
console.log('设置定位权限')
|
|
||||||
}
|
|
||||||
},
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
getDict() {
|
getDict() {
|
||||||
this.$instance.post(`/app/appclapeventgroup/list?current=1&size=100000`).then((res) => {
|
this.$instance.post(`/app/appclapeventgroup/list?current=1&size=100000`).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.dictList = res.data.records.map((v) => {
|
this.dictList = res.data.records.map(v => {
|
||||||
return {
|
return {
|
||||||
value: v.id,
|
value: v.id,
|
||||||
label: v.groupName,
|
label: v.groupName
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -200,7 +192,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getGirdList() {
|
getGirdList() {
|
||||||
this.$instance.post(`/app/appgirdinfo/listAllByTop`).then((res) => {
|
this.$instance.post(`/app/appgirdinfo/listAllByTop`).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.arr = res.data
|
this.arr = res.data
|
||||||
this.gridList[0] = res.data[0].girdList
|
this.gridList[0] = res.data[0].girdList
|
||||||
@@ -213,6 +205,7 @@ export default {
|
|||||||
const column = e.detail.column
|
const column = e.detail.column
|
||||||
const value = e.detail.value
|
const value = e.detail.value
|
||||||
|
|
||||||
|
|
||||||
if (column === column) {
|
if (column === column) {
|
||||||
this.getGirdData(value)
|
this.getGirdData(value)
|
||||||
}
|
}
|
||||||
@@ -258,34 +251,27 @@ export default {
|
|||||||
this.flag = true
|
this.flag = true
|
||||||
|
|
||||||
this.$loading()
|
this.$loading()
|
||||||
this.$instance
|
this.$instance.post(`/app/appclapeventinfo/addOrUpdate`, {
|
||||||
.post(`/app/appclapeventinfo/addOrUpdate`, {
|
...this.form,
|
||||||
...this.form,
|
openid: this.user.openid,
|
||||||
openid: this.user.openid,
|
portrait: this.user.avatarUrl,
|
||||||
portrait: this.user.avatarUrl,
|
files: this.form.files,
|
||||||
files: this.form.files,
|
groupName: this.dictList.filter(v => v.value === this.form.groupId)[0].label
|
||||||
groupName: this.dictList.filter((v) => v.value === this.form.groupId)[0].label,
|
}).then(res => {
|
||||||
})
|
this.$hideLoading()
|
||||||
.then((res) => {
|
this.flag = false
|
||||||
this.$hideLoading()
|
if (res.code == 0) {
|
||||||
this.flag = false
|
uni.$emit('update')
|
||||||
if (res.code == 0) {
|
setTimeout(() => {
|
||||||
uni.$emit('update')
|
uni.redirectTo({
|
||||||
setTimeout(() => {
|
url: './PhotoResult?id=' + res.data.id
|
||||||
uni.redirectTo({
|
})
|
||||||
url: './PhotoResult?id=' + res.data.id,
|
}, 400)
|
||||||
})
|
}
|
||||||
}, 400)
|
this.$hideLoading()
|
||||||
}
|
})
|
||||||
this.$hideLoading()
|
}
|
||||||
})
|
}
|
||||||
},
|
|
||||||
|
|
||||||
confirm(e) {
|
|
||||||
this.form.groupId = e[0].value
|
|
||||||
this.form.groupIdvalue = e[0].label
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -307,7 +293,7 @@ export default {
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
height: 128px;
|
height: 128px;
|
||||||
padding-right: 28px;
|
padding-right: 28px;
|
||||||
border-bottom: 1px solid #dddddd;
|
border-bottom: 1px solid #DDDDDD;
|
||||||
|
|
||||||
input {
|
input {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
@@ -349,7 +335,7 @@ export default {
|
|||||||
|
|
||||||
i {
|
i {
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
color: #ff4466;
|
color: #FF4466;
|
||||||
}
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
@@ -365,8 +351,8 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.form-item__imgs,
|
|
||||||
&.form-item__textarea {
|
&.form-item__imgs, &.form-item__textarea {
|
||||||
.form-item__wrapper {
|
.form-item__wrapper {
|
||||||
display: block;
|
display: block;
|
||||||
height: auto;
|
height: auto;
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
<h2>人员类别</h2>
|
<h2>人员类别</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-item__right">
|
<div class="form-item__right">
|
||||||
<ai-select v-model="form.type" dict="epidemicRecentPersonType" class="select"></ai-select>
|
<AiSelect v-model="form.type" dict="epidemicRecentPersonType" class="select"></AiSelect>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -55,7 +55,7 @@
|
|||||||
<h2>出行方式</h2>
|
<h2>出行方式</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-item__right">
|
<div class="form-item__right">
|
||||||
<ai-select dict="epidemicRecentTravel" v-model="form.travelType" class="select"></ai-select>
|
<AiSelect dict="epidemicRecentTravel" v-model="form.travelType" class="select"></AiSelect>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user