Commit a982c7ca by 前端

口语化

1 parent 19158f21
......@@ -201,7 +201,7 @@ export default {
* 获取客户角色
*/
sparringRole(data) {
return api.post("dj.api.carboutique.ai.sparring.role.info.page", data,[],"/rop-dj-pairexc/router");
return api.post("dj.api.carboutique.ai.sparring.role.info.page", data,[],"/rop-dj-car-boutique/router");
},
/**
* 对练次数
......
......@@ -307,6 +307,7 @@ Page({
main_point,
roleInspiration,
round,
person_type,
} = this.data;
this.data.isSend = false;
let history_message = this.getHistory();
......@@ -320,6 +321,7 @@ Page({
const { uuid } = wx.$util.getUserInfo();
aiApi
.sparring({
person_type,
user_message,
history_message,
step,
......@@ -464,10 +466,11 @@ Page({
timer = setInterval(() => {
duration++;
}, 1000);
const { sex, avatar, roleName, roleType, attackScript } = options;
const { sex, avatar, roleName, roleType, attackScript,person_type} = options;
this.getScriptList(attackScript);
this.setData({
avatar,
person_type,
sex,
roleName,
roleType,
......
......@@ -285,6 +285,9 @@ Component({
this.toBottom()
this.stopAudio()
},
/**
* @param index 1代表结束了,不播放音频
*/
setList(val, index) {
const {
list
......
......@@ -25,10 +25,10 @@ Page({
},
jump() {
const {selectedIndex,customeTypeList} = this.data
const {avatar,roleName,roleType,attackScript,roleDetail} = customeTypeList[selectedIndex]
const {avatar,roleName,roleType,attackScript,roleDetail,languageStyle} = customeTypeList[selectedIndex]
const sex = /性别:男/.test(roleDetail)?1:0
wx.navigateTo({
url: `/packageEquity/pages/aiCheck/chat/chat?avatar=${avatar}&sex=${sex}&roleName=${roleName}&roleType=${roleType}&attackScript=${attackScript}`
url: `/packageEquity/pages/aiCheck/chat/chat?avatar=${avatar}&sex=${sex}&roleName=${roleName}&roleType=${roleType}&attackScript=${attackScript}&person_type=${languageStyle}`
})
this.setData({show:false})
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!