Commit 14f06db6 authored by Facius's avatar Facius

feat: 获取省份接口

parent afd989c3
...@@ -15,12 +15,15 @@ let learnApiFun = function(vm) { ...@@ -15,12 +15,15 @@ let learnApiFun = function(vm) {
'/rest/question/query/getQuestionWarehouse/' + subjectId, '/rest/question/query/getQuestionWarehouse/' + subjectId,
params params
) )
let getProvinceList = async (params = {}) =>
await vm.$u.get('/rest/question/getProvinceList', params)
const learnApi = { const learnApi = {
getQuestion, getQuestion,
getQuestionTotal, getQuestionTotal,
answer, answer,
subjectList, subjectList,
getQuestionWarehouse, getQuestionWarehouse,
getProvinceList,
} }
return learnApi return learnApi
} }
......
...@@ -54,7 +54,7 @@ export default { ...@@ -54,7 +54,7 @@ export default {
}, },
computed: { computed: {
imageUrl() { imageUrl() {
return '/static/logo.png' return process.uniEnv.qn_base_url + 'zuoyouqiehuantishi.png'
}, },
buttonStyle() { buttonStyle() {
return { return {
...@@ -87,7 +87,7 @@ export default { ...@@ -87,7 +87,7 @@ export default {
text-align: center; text-align: center;
.tip-image { .tip-image {
width: 670rpx; width: 662rpx;
height: 136rpx; height: 136rpx;
margin-bottom: 60rpx; margin-bottom: 60rpx;
} }
......
...@@ -166,6 +166,7 @@ export default { ...@@ -166,6 +166,7 @@ export default {
onLoad(e) { onLoad(e) {
this.getPageInfo() this.getPageInfo()
this.getLocation() this.getLocation()
this.getProvinceList()
}, },
methods: { methods: {
handleClickArea() { handleClickArea() {
...@@ -198,6 +199,10 @@ export default { ...@@ -198,6 +199,10 @@ export default {
handleClickSure() { handleClickSure() {
this.showPop = true this.showPop = true
}, },
async getProvinceList() {
let res = await this.$u.api.getProvinceList()
console.log(res)
},
async handleClickSubmit() { async handleClickSubmit() {
if (this.buttonDisabled) return if (this.buttonDisabled) return
let param = { let param = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment