Browse Source

调整接口为线上

master
WN 1 year ago
parent
commit
9583a1f905
2 changed files with 4 additions and 5 deletions
  1. +2
    -2
      src/views/psychological-modeling/index.vue
  2. +2
    -3
      src/views/psychological-questionnaire/index.vue

+ 2
- 2
src/views/psychological-modeling/index.vue View File

@@ -59,7 +59,7 @@
style="width: 100%; height: 100%" style="width: 100%; height: 100%"
@click="toQuestion" @click="toQuestion"
v-if="info.initScaleState !== 1" v-if="info.initScaleState !== 1"
>情绪初始化评估</van-button
>去完成</van-button
> >
</div> </div>
</div> </div>
@@ -116,7 +116,7 @@ export default {
this.$router.push(`/PsychologicalQuestionnaire?uid=${this.uid}`) this.$router.push(`/PsychologicalQuestionnaire?uid=${this.uid}`)
}, },
api(url, config) { api(url, config) {
let baseUrl = 'http://172.16.1.97:9291'
let baseUrl = 'https://dbmq.rzliot.com/heart'
setTimeout(() => { setTimeout(() => {
this.$toast.loading({ this.$toast.loading({
message: '', message: '',


+ 2
- 3
src/views/psychological-questionnaire/index.vue View File

@@ -154,12 +154,11 @@ export default {
re1.response.forEach((item) => { re1.response.forEach((item) => {
let tempt = { ...item } let tempt = { ...item }
let a1 = tempt.Option.split('#&') let a1 = tempt.Option.split('#&')
let a2 = tempt.Score.split('#&')
let option = [] let option = []
for (let index = 0; index < a1.length; index++) { for (let index = 0; index < a1.length; index++) {
option.push({ option.push({
label: a1[index], label: a1[index],
value: a2[index],
value: index + 1,
}) })
} }
tempt.Option = option tempt.Option = option
@@ -230,7 +229,7 @@ export default {
duration: 0, duration: 0,
}) })
}, 100) }, 100)
let baseUrl = 'http://172.16.1.97:9291'
let baseUrl = 'https://dbmq.rzliot.com/heart'
return new Promise((res) => { return new Promise((res) => {
axios({ axios({
url: `${baseUrl}${url}`, url: `${baseUrl}${url}`,


Loading…
Cancel
Save