Commit d3ba905e by 张立顺

Merge branch 'SAAS+V4.43.1-0819' of http://192.168.3.233:8090/saas_plus/dj-car-b…

…outique-work-wechat into SAAS+V4.43.1-0819
2 parents 6b049f3c 3db26cec
...@@ -191,7 +191,8 @@ Page({ ...@@ -191,7 +191,8 @@ Page({
}); });
}, },
async checkDailyRecport() { async checkDailyRecport() {
let { tabIndex, userInfo } = this.data; let { tabIndex } = this.data;
let userInfo = wx.$util.getUserInfo()
const isStaff = app.globalData.isStaff; const isStaff = app.globalData.isStaff;
let eventRequest = []; let eventRequest = [];
isStaff && isStaff &&
......
// packageEquity/pages/aiCheck/chat/chat.js // packageEquity/pages/aiCheck/chat/chat.js
import carLifeApi from "../../../carEquityApi"; import carLifeApi from "../../../carEquityApi";
import api from '~/api/api.js'
const VOICE = { const VOICE = {
1: "zhifeng_emo", 1: "zhifeng_emo",
2: "stanley", 2: "stanley",
...@@ -264,7 +265,27 @@ Page({ ...@@ -264,7 +265,27 @@ Page({
content, content,
}; };
}, },
handleSave(list, sparringDuration, triggerSensitive) { getOpenId() {
return new Promise((resolve)=>{
wx.login({
success({
code
}) {
if (code) {
api
.ssoLogin({
code,
appId: wx.getAccountInfoSync().miniProgram.appId
}).then(res => {
resolve(res.data.openId)
})
}
},
})
})
},
async handleSave(list, sparringDuration, triggerSensitive) {
let totalTime = 0; let totalTime = 0;
let Sentences = []; let Sentences = [];
let content = ""; let content = "";
...@@ -329,8 +350,10 @@ Page({ ...@@ -329,8 +350,10 @@ Page({
redundant, redundant,
}; };
}); });
const openId = wx.$util.getOpenId(); let openId = wx.$util.getOpenId();
console.log(openId,'openId') if(!openId) {
openId = await this.getOpenId()
}
carLifeApi carLifeApi
.sparringCommit({ .sparringCommit({
openId, openId,
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
<view class="wrapper-content"> <view class="wrapper-content">
<gl-image class="icon-tips" webp src="/aiCheck/icon-tips.webp"></gl-image> <gl-image class="icon-tips" webp src="/aiCheck/icon-tips.webp"></gl-image>
<view class="title">温馨提示</view> <view class="title">温馨提示</view>
<view class="content">点击确定按钮,您将结束此次对练并订阅生成报告提醒</view> <view class="content">点击确定按钮,您将结束此次对练并订阅生成报告提醒!</view>
<view class="footer"> <view class="footer">
<view class="btn cancel" bind:tap="handleCancel">取消</view> <view class="btn cancel" bind:tap="handleCancel">取消</view>
<view class="btn sure" bind:tap="handleSure">确定</view> <view class="btn sure" bind:tap="handleSure">确定</view>
......
...@@ -265,6 +265,10 @@ Page({ ...@@ -265,6 +265,10 @@ Page({
id, id,
}) })
.then((res) => { .then((res) => {
if(!res.data) {
wx.$router.reLaunch('packageEquity.equityPage')
return
}
const { descriptionList, reportItem, sparringDuration, score } = const { descriptionList, reportItem, sparringDuration, score } =
res.data || {}; res.data || {};
let { minutes, seconds } = this.formatTime(sparringDuration || 0); let { minutes, seconds } = this.formatTime(sparringDuration || 0);
......
...@@ -343,12 +343,12 @@ Component({ ...@@ -343,12 +343,12 @@ Component({
e.value = [e.uuid] e.value = [e.uuid]
arr.push(e) arr.push(e)
}) })
if (!(userInfo?.isSuper || userInfo.loginRole == 3)) arr.map(e => { // if (!(userInfo?.isSuper || userInfo.loginRole == 3)) arr.map(e => {
if (type == 0) { // if (type == 0) {
e.active = false // e.active = false
if (e.uuid == userInfo.uuid) e.active = true // if (e.uuid == userInfo.uuid) e.active = true
} // }
}) // })
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
} }
...@@ -446,7 +446,7 @@ Component({ ...@@ -446,7 +446,7 @@ Component({
} }
}) })
}) })
if ((userInfo?.isSuper || userInfo.loginRole == 3))['selectedYqMerchantList', 'selectedMerchantList'].map(e => { if ((userInfo?.isSuper || userInfo.loginRole == 3)) ['selectedYqMerchantList', 'selectedMerchantList'].map(e => {
delete obj[e] delete obj[e]
}) })
if (isReset) obj = {} if (isReset) obj = {}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!