Commit bbe5e04b by 前端

回到首页

1 parent 21e5ef41
......@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布
* 5cdptest
*/
let index = 2;
let index = 1;
const accountInfo = wx.getAccountInfoSync();
const systemInfo = wx.getSystemInfoSync();
const envName = accountInfo.miniProgram.envVersion;
......
......@@ -16,13 +16,42 @@ Page({
title: item.reportItem
})
},
again() {
const {
id
} = this.data;
if (id) {
wx.navigateTo({
url: `/packageEquity/pages/aiCheck/scene/scene`,
});
} else {
wx.$router.back();
}
},
backHome() {
const pages = getCurrentPages();
const prevPage = pages[pages.length - 3];
if (prevPage.route == "packageEquity/pages/aiCheck/start/start") {
wx.navigateBack({
delta: 2,
});
prevPage.setData({
tabIndex: 1
});
} else {
wx.navigateBack({
delta: 3,
});
}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
wx.$router.getData(({
reportItem,
currentItem
currentItem,
avatar
}) => {
console.log(currentItem)
// this.setTitle(0);
......@@ -33,6 +62,7 @@ Page({
const reportItems = markList.map(item => reportItem.find(report => report.reportItem === item) || null);
this.setData({
reportItems,
avatar,
title: currentItem.reportItem
});
})
......
......@@ -15,13 +15,13 @@
</view>
<view class="main-box">
<!--销售技巧-->
<sale detailInfo="{{reportItems[0]}}" wx:if="{{markList[0] == title && reportItems[0]}}"></sale>
<sale detailInfo="{{reportItems[0]}}" avatar="{{avatar}}" wx:if="{{markList[0] == title && reportItems[0]}}"></sale>
<!--流利度-->
<fluent detailInfo="{{reportItems[1]}}" wx:if="{{markList[1] == title && reportItems[1]}}"></fluent>
<!--语音表达-->
<deliver detailInfo="{{reportItems[2]}}" wx:if="{{markList[2] == title && reportItems[2]}}"></deliver>
<!--熟练度-->
<skilled detailInfo="{{reportItems[3]}}" wx:if="{{markList[3] == title && reportItems[3]}}"></skilled>
<skilled detailInfo="{{reportItems[3]}}" avatar="{{avatar}}" wx:if="{{markList[3] == title && reportItems[3]}}"></skilled>
<!--服务态度-->
<attitude detailInfo="{{reportItems[4]}}" wx:if="{{markList[4] == title && reportItems[4]}}"></attitude>
</view>
......
......@@ -179,7 +179,6 @@ Page({
sparringTaskId,
});
this.getAvatar(roleType);
const chatList = JSON.parse(wx.getStorageSync("chatList"));
const {
uuid
} = wx.$util.getUserInfo();
......@@ -187,6 +186,7 @@ Page({
if (id) {
this.getDetail(id);
} else {
const chatList = JSON.parse(wx.getStorageSync("chatList"));
this.handleSave(chatList,duration)
}
......@@ -299,9 +299,6 @@ Page({
descriptionList: list
})
}, 500)
setTimeout(() => {
wx.$router.go("/packageEquity/pages/aiCheck/detail/detail", reportItem)
}, 3000);
});
},
convertSecondsToMinutesAndSeconds(seconds,isSymbol) {
......@@ -493,6 +490,7 @@ Page({
} = this.data
wx.$router.go("/packageEquity/pages/aiCheck/detail/detail", {
reportItem,
avatar,
currentItem: item
})
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!