Commit 66dcb2f6 by 张立顺

Merge branch 'SAAS+V4.43-0807' of http://192.168.3.233:8090/saas_plus/dj-car-bou…

…tique-work-wechat into SAAS+V4.43-0807
2 parents 847eb7e6 7b9711e6
...@@ -8,7 +8,7 @@ module.exports = { ...@@ -8,7 +8,7 @@ module.exports = {
}, },
/**微信登录 */ /**微信登录 */
ssoLogin(data) { ssoLogin(data) {
return api.post("scrm.api.sso.weapp.jscode.login", data, [], return api.post("scrm.api.sso.weapp.jscode.getOpenId", data, [],
"/rop-scrm-sso/router", "/rop-scrm-sso/router",
"scrm",false); "scrm",false);
}, },
......
...@@ -36,7 +36,7 @@ if (systemInfo.platform != "devtools") { ...@@ -36,7 +36,7 @@ if (systemInfo.platform != "devtools") {
case "develop": case "develop":
break; break;
case "trial": case "trial":
index = manual ? index : 4; index = manual ? index : 2;
break; break;
case "release": case "release":
index = release ? index : 3; index = release ? index : 3;
......
...@@ -92,7 +92,10 @@ Page({ ...@@ -92,7 +92,10 @@ Page({
// 头部返回上一级 // 头部返回上一级
back() { back() {
console.log(111111); if(this.data.backStatus) {
wx.$router.reLaunch('packageEquity.equityPage')
return
}
const pages = getCurrentPages(); const pages = getCurrentPages();
const prevPage = pages[pages.length - 2]; const prevPage = pages[pages.length - 2];
console.log(prevPage.route); console.log(prevPage.route);
...@@ -174,33 +177,25 @@ Page({ ...@@ -174,33 +177,25 @@ Page({
}) })
.exec(); .exec();
}, },
setRemind() {
wx.requestSubscribeMessage({
tmplIds: ["ctivVQAIoDzv1OKlcI9cXiJpyKZBUP1XamO8sBP8ij0"],
success(res) {
wx.showToast({
title: "订阅成功",
icon: "none",
});
wx.p.router.back();
},
});
},
/** /**
* 生命周期函数--监听页面加载+ * 生命周期函数--监听页面加载+
* *
*/ */
async onLoad(options) { async onLoad(options) {
this.setRemind(); let {
const {
duration,
batch_id,
roleType, roleType,
id, id,
sparringLink, sparringLink,
sparringTaskId, sparringTaskId,
entry, entry,
} = options; } = options;
this.getAvatar(roleType);
if(entry == "notice") {
this.setData({
backStatus:true
})
entry = 'other'
}
this.setData({ this.setData({
id, id,
entry, entry,
...@@ -208,10 +203,6 @@ Page({ ...@@ -208,10 +203,6 @@ Page({
sparringLink, sparringLink,
sparringTaskId, sparringTaskId,
}); });
this.getAvatar(roleType);
const { uuid } = wx.$util.getUserInfo();
if (id) {
this.setData({ this.setData({
duration: false, duration: false,
}); });
...@@ -219,18 +210,7 @@ Page({ ...@@ -219,18 +210,7 @@ Page({
this.getChatDetail({ this.getChatDetail({
id, id,
}); });
} else {
const history_message = wx.getStorageSync("history_message");
const sensitiveRes = await aiApi.getSensitive({
history_message,
});
const is_sensitive = sensitiveRes.is_sensitive;
const chatList = JSON.parse(wx.getStorageSync("chatList"));
this.setData({
chatList,
});
this.handleSave(chatList, duration, is_sensitive);
}
console.log(windowW); console.log(windowW);
}, },
......
...@@ -66,7 +66,7 @@ class Request { ...@@ -66,7 +66,7 @@ class Request {
if (thisPage.route != 'pages/wxLogin/wxLogin') { if (thisPage.route != 'pages/wxLogin/wxLogin') {
getApp().login(true) getApp().login(true)
} }
} else if (code == -1 && failTips) { } else if (code == -1) {
wx.showToast({ wx.showToast({
title: message || '网络请求失败', title: message || '网络请求失败',
icon: 'none' icon: 'none'
......
...@@ -114,7 +114,7 @@ const setOpenId = openId => { ...@@ -114,7 +114,7 @@ const setOpenId = openId => {
wx.setStorageSync('dj_boutique_openId', openId) wx.setStorageSync('dj_boutique_openId', openId)
} }
const getOpenId = () => { const getOpenId = () => {
wx.getStorageSync('dj_boutique_openId', openId) return wx.getStorageSync('dj_boutique_openId')
} }
const removeStorage = () => { const removeStorage = () => {
wx.removeStorageSync('noSignInUuid') wx.removeStorageSync('noSignInUuid')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!