Browse Source

意见主题,日常征集加上参数

dongming-master
是小王呀\24601 9 months ago
parent
commit
66fdfda9b6
  1. 4
      src/config/env.production.js
  2. 15
      src/views/peoSuggestion/SpecialsolicitationFill.vue
  3. 4
      src/views/peoSuggestion/solicitationDaily.vue

4
src/config/env.production.js

@ -14,8 +14,8 @@ module.exports = {
version: 'V1.0.0',
technicalSupport: '',
copyright: 'Copyright @ 2023 版权所有',
baseUrl: 'https://epmet-preview.elinkservice.cn/', // 项目地址
baseApi: 'https://epmet-preview.elinkservice.cn/api',
baseUrl: 'https://epmet-test.elinkservice.cn/', // 项目地址
baseApi: 'https://epmet-test.elinkservice.cn/api-140-proxy',
wxId: 'wx1078fa1e99424de9',
secret: 'ebecf6b88ab455f1cdf4a5b6357407b8',
mapKey: '5D6BZ-KHLW4-JUXU5-XIM47-5Q2DJ-IPBBT'

15
src/views/peoSuggestion/SpecialsolicitationFill.vue

@ -112,8 +112,19 @@ export default {
...this.formData
}
icEventOldAdd(params).then(res=>{
this.$toast.success('提交成功')
console.log(res,"sdl;kjdsjls;kdgj");
if (res.code==0) {
console.log(res,"sdl;kjdsjls;kdgj");
this.$toast.success({
message: '上报成功',
duration: 3000, // 3000 3
});
setTimeout(() => {
this.$router.push('/peoSuggestion'); //
}, 3000);
}else{
this.$toast.fail(res.message)
}
})
},

4
src/views/peoSuggestion/solicitationDaily.vue

@ -2,7 +2,7 @@
<div class="container">
<div class="block">
<div class="textarea">
<van-field v-model="formData.subjectTitle" autosize label="诉求描述" maxlength="20" placeholder="请输入建议主题(20字以内)"
<van-field v-model="formData.subjectTitle" autosize label="建议主题" maxlength="20" placeholder="请输入建议主题(20字以内)"
required rows="2" type="textarea">
<template #extra>
</template>
@ -61,7 +61,7 @@
@click="onClickdaily">提交</van-button>
</div>
<!-- <Android @send-number="handleNumber" /> -->
<Android @send-number="handleNumber" />
</div>
</template>

Loading…
Cancel
Save