首页接口对接
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
import request from '../js/request';
|
import request from '../js/request';
|
||||||
import config from '../js/config';
|
import config from '../js/config';
|
||||||
|
|
||||||
export function queryDictData(dictType) {
|
export function queryDictData(dictTypeName) {
|
||||||
return request({
|
return request({
|
||||||
url: '/dict/queryDictData',
|
url: '/dictData/getDicDataByTypeName',
|
||||||
method: 'post',
|
method: 'get',
|
||||||
data: {
|
data: {
|
||||||
dictType,
|
dictTypeName,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
20
common/api/mine.js
Normal file
20
common/api/mine.js
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
import request from '../js/request';
|
||||||
|
import config from '../js/config';
|
||||||
|
|
||||||
|
export function queryPersonSet() {
|
||||||
|
return request({
|
||||||
|
url: '/appinfo/queryPersonSet',
|
||||||
|
method: 'post',
|
||||||
|
data: {},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export function queryAppInfo(id) {
|
||||||
|
return request({
|
||||||
|
url: '/appinfo/queryAppInfo',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
id,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -178,7 +178,7 @@ export default {
|
|||||||
console.log(this.store);
|
console.log(this.store);
|
||||||
}
|
}
|
||||||
this.getProjectList()
|
this.getProjectList()
|
||||||
this.queryDictData()
|
// this.queryDictData()
|
||||||
},
|
},
|
||||||
getProjectList() {
|
getProjectList() {
|
||||||
getProjectList({
|
getProjectList({
|
||||||
@@ -198,7 +198,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
queryDictData() {
|
queryDictData() {
|
||||||
queryDictData('projectType').then(res => {
|
queryDictData('项目类型').then(res => {
|
||||||
this.projectType = [{
|
this.projectType = [{
|
||||||
text: '全部类型',
|
text: '全部类型',
|
||||||
value: ''
|
value: ''
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
<view class="mine-nav-label">公司介绍</view>
|
<view class="mine-nav-label">公司介绍</view>
|
||||||
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
|
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
|
||||||
</view>
|
</view>
|
||||||
<view class="mine-nav" @click="jump('feedback')" >
|
<view class="mine-nav" @click="jump('feedback')">
|
||||||
<view class="mine-nav-label">意见反馈</view>
|
<view class="mine-nav-label">意见反馈</view>
|
||||||
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
|
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
|
||||||
</view>
|
</view>
|
||||||
@@ -49,16 +49,19 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { queryPersonSet } from '@/common/api/mine.js'
|
||||||
export default {
|
export default {
|
||||||
data () {
|
data() {
|
||||||
return {
|
return {
|
||||||
loading: false
|
loading: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
init () {
|
async init() {
|
||||||
|
const res = await queryPersonSet()
|
||||||
|
console.log(res);
|
||||||
},
|
},
|
||||||
jump (type) {
|
jump(type) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'changePwd':
|
case 'changePwd':
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
@@ -83,7 +86,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad () {
|
onLoad() {
|
||||||
this.init()
|
this.init()
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -92,6 +95,7 @@ export default {
|
|||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.mine {
|
.mine {
|
||||||
padding-top: 20rpx;
|
padding-top: 20rpx;
|
||||||
|
|
||||||
.mine-header {
|
.mine-header {
|
||||||
padding: 200rpx 34rpx 34rpx;
|
padding: 200rpx 34rpx 34rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -118,7 +122,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.mine-nav {
|
.mine-nav {
|
||||||
padding: 34rpx;
|
padding: 34rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background: $uni-theme-white;
|
background: $uni-theme-white;
|
||||||
|
|||||||
Reference in New Issue
Block a user