Commit bbe5e04b by 前端

回到首页

1 parent 21e5ef41
...@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd"; ...@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布 * 4预发布
* 5cdptest * 5cdptest
*/ */
let index = 2; let index = 1;
const accountInfo = wx.getAccountInfoSync(); const accountInfo = wx.getAccountInfoSync();
const systemInfo = wx.getSystemInfoSync(); const systemInfo = wx.getSystemInfoSync();
const envName = accountInfo.miniProgram.envVersion; const envName = accountInfo.miniProgram.envVersion;
......
...@@ -16,13 +16,42 @@ Page({ ...@@ -16,13 +16,42 @@ Page({
title: item.reportItem 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) { onLoad(options) {
wx.$router.getData(({ wx.$router.getData(({
reportItem, reportItem,
currentItem currentItem,
avatar
}) => { }) => {
console.log(currentItem) console.log(currentItem)
// this.setTitle(0); // this.setTitle(0);
...@@ -33,6 +62,7 @@ Page({ ...@@ -33,6 +62,7 @@ Page({
const reportItems = markList.map(item => reportItem.find(report => report.reportItem === item) || null); const reportItems = markList.map(item => reportItem.find(report => report.reportItem === item) || null);
this.setData({ this.setData({
reportItems, reportItems,
avatar,
title: currentItem.reportItem title: currentItem.reportItem
}); });
}) })
......
...@@ -15,13 +15,13 @@ ...@@ -15,13 +15,13 @@
</view> </view>
<view class="main-box"> <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> <fluent detailInfo="{{reportItems[1]}}" wx:if="{{markList[1] == title && reportItems[1]}}"></fluent>
<!--语音表达--> <!--语音表达-->
<deliver detailInfo="{{reportItems[2]}}" wx:if="{{markList[2] == title && reportItems[2]}}"></deliver> <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> <attitude detailInfo="{{reportItems[4]}}" wx:if="{{markList[4] == title && reportItems[4]}}"></attitude>
</view> </view>
......
...@@ -179,7 +179,6 @@ Page({ ...@@ -179,7 +179,6 @@ Page({
sparringTaskId, sparringTaskId,
}); });
this.getAvatar(roleType); this.getAvatar(roleType);
const chatList = JSON.parse(wx.getStorageSync("chatList"));
const { const {
uuid uuid
} = wx.$util.getUserInfo(); } = wx.$util.getUserInfo();
...@@ -187,6 +186,7 @@ Page({ ...@@ -187,6 +186,7 @@ Page({
if (id) { if (id) {
this.getDetail(id); this.getDetail(id);
} else { } else {
const chatList = JSON.parse(wx.getStorageSync("chatList"));
this.handleSave(chatList,duration) this.handleSave(chatList,duration)
} }
...@@ -299,9 +299,6 @@ Page({ ...@@ -299,9 +299,6 @@ Page({
descriptionList: list descriptionList: list
}) })
}, 500) }, 500)
setTimeout(() => {
wx.$router.go("/packageEquity/pages/aiCheck/detail/detail", reportItem)
}, 3000);
}); });
}, },
convertSecondsToMinutesAndSeconds(seconds,isSymbol) { convertSecondsToMinutesAndSeconds(seconds,isSymbol) {
...@@ -493,6 +490,7 @@ Page({ ...@@ -493,6 +490,7 @@ Page({
} = this.data } = this.data
wx.$router.go("/packageEquity/pages/aiCheck/detail/detail", { wx.$router.go("/packageEquity/pages/aiCheck/detail/detail", {
reportItem, reportItem,
avatar,
currentItem: item currentItem: item
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!