新增 删除 衣服

This commit is contained in:
X1627315083
2023-12-13 16:09:17 +08:00
parent e6c8fe3866
commit a0a8ab9a17
27 changed files with 608 additions and 260 deletions

View File

@@ -11,10 +11,10 @@
{{item.str}}
</span>
<div class="driver__btn" v-if="item.driver">
<span @click="setDriver">
<span @click="setDriver(index)">
Yes
</span>
<span @click="removeDriver">
<span @click="removeDriver(index)">
No
</span>
</div>
@@ -114,7 +114,6 @@ export default defineComponent({
watch:{
driver__:{
handler: function(newval) {
console.log(this.driver__);
if(this.driver__.driver && this.driver__.index == 0){
this.robotTop = true
this.robotInput = true
@@ -124,8 +123,6 @@ export default defineComponent({
str:"Welcome to AiDA. I am your friendly fashion design assistant. If you have any questions or need assistance, please don't hesitate to ask. ",
driver:false,
})
console.log(this.record);
this.textScroll()
setTimeout(() => {
this.record.push({
@@ -146,7 +143,7 @@ export default defineComponent({
}else{
clearTimeout(this.driver__Time)
}
if(!newval.driver){
if(!newval.driver && this.driver__.index != 0){
this.record.push({
state:1,
str:"You can start the tutorial at any time by simply telling me that you want to. ",
@@ -290,11 +287,12 @@ export default defineComponent({
Https.axiosPost(Https.httpUrls.chatStreamTest, data).then(
// Https.axiosPost(Https.httpUrls.pythonChatStream, data,interaction).then(
(rv) => {
if(rv){
if(rv.isTutorial){
this.record.push({
state:1,
str:"We need to refresh the page before starting the tutorial,Would you like to start the tutorial now?",
str:"We need to refresh the page before starting the tutorial. Would you like to start the tutorial now?",
driver:true,
})
}else{
@@ -325,7 +323,7 @@ export default defineComponent({
});
this.chatCentent = ""
},
setDriver(){
setDriver(index:number){
if(this.driver__.driver){
driverObj__.moveNext();
this.robotTop = false
@@ -335,8 +333,11 @@ export default defineComponent({
setCookie("isBeginner", true);
setCookie("isBeginnerNum", 1);
}
this.record[index].driver = false
sessionStorage.setItem('record', JSON.stringify(this.record));
this.textScroll()
},
removeDriver(){
removeDriver(index:number){
if(this.driver__.driver){
driverObj__.destroy();
let data = {
@@ -348,6 +349,9 @@ export default defineComponent({
// this.robotInput = false
this.createTimer()
}
this.record[index].driver = false
sessionStorage.setItem('record', JSON.stringify(this.record));
this.textScroll()
},
likeFile(item:any,imgIndex:number,index:number){
let data = {