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