Browse Source

detail2页面修改

yun
douzhuo 2 years ago
parent
commit
62930a157b
1 changed files with 37 additions and 33 deletions
  1. +37
    -33
      pages/mine/details2.vue

+ 37
- 33
pages/mine/details2.vue View File

@@ -11,10 +11,6 @@
</view>
<view class="headboxbott">
<view class="headovfu">
<!-- <u-tabs ref="tabs" font-size="30" :bold="true" swiper-width="600" :current="roleindex"
@change="tapspagek" inactive-color="#b1b1b1" active-color="#008ef2" :list="tablist"
:is-scroll="true">
</u-tabs> -->
<view class="mytab" v-for="(item,index) in tablist" :key="index" @click="tapspagek(item, index)">
<view class="tab-item" :class="{tabActive: item.select}">{{item.name}}</view>
</view>
@@ -1346,37 +1342,45 @@
if (this.roleSelectArr.findIndex(item => item == 0) == -1) {
str += `&speakerStr=${this.roleSelectArr.join(',')}`
}
this.$u.get(`${config.service.getCorpusAnal}${str}`).then(res => {
let jsonInfo = JSON.parse(res.audioContent);
//上拉标记点
this.textindex = res.index;
//下拉标记点
this.toptextindex = res.index;
jsonInfo.forEach(item => {
item.message = JSON.parse(item.onebest)
item.backindex = this.csdFileindex
item.message.forEach(info => {
info.checked = false
uni.request({
url: `${config.service.getCorpusAnal}${str}`,
method: "GET",
header: {
'content-type': 'application/json',
'Access-Token': uni.getStorageSync('weapp_session_login_data').token
},
success: (data) => {
let res = data.data.data
let jsonInfo = JSON.parse(res.audioContent);
//上拉标记点
this.textindex = res.index;
//下拉标记点
this.toptextindex = res.index;
jsonInfo.forEach(item => {
item.message = JSON.parse(item.onebest)
item.backindex = this.csdFileindex
item.message.forEach(info => {
info.checked = false
})
})
})
// 当页面标记重新刷新时
if (type == 'refresh') {
this.tablist = []
this.roleSelectArr = [0]
this.creatTabList(res.speakerNum)
this.tablist[0].select = true
this.tablist[res.speaker].name = this.tablist[res.speaker].name + "顾问";
}
this.newluyinList = jsonInfo;
if (this.textindex == null) {
return
} else {
this.dialogList.push(jsonInfo[this.textindex]);
// 当页面标记重新刷新时
if (type == 'refresh') {
this.tablist = []
this.roleSelectArr = [0]
this.creatTabList(res.speakerNum)
this.tablist[0].select = true
this.tablist[res.speaker].name = this.tablist[res.speaker].name + "顾问";
}
this.newluyinList = jsonInfo;
if (this.textindex == null) {
return
} else {
this.dialogList.push(jsonInfo[this.textindex]);
}
}
}).catch(e => {
console.log(e)
})
},



Loading…
Cancel
Save