Commit f1a4d7ec authored by lvtz's avatar lvtz

fix 客服消息

parent 6a2b5da9
......@@ -102,7 +102,8 @@ const apis = {
},
clockEditor: {
infoSet: `${api}student/clock`,
joinClass: `${api}student/class/join_class`
joinClass: `${api}student/class/join_class`,
getWebClockUuid: `${api}student/get_web_clock_uuid`
},
rankingList: {
totalList: `${api}consumer/clock/rank/total_index`,
......
export default {
imageRoot: 'https://cdn.img.shangjiadao.cn/qingxiao/daka/images/',
host: 'https://qxapi.qingxiao.online/daka',
host2: 'https://wx.m.shangjiadao.cn',
// host: 'https://qxapi.qingxiao.online/daka',
// host2: 'https://wx.m.shangjiadao.cn',
storageVersion: '5.0',
imageVersion: '20200117',
// host: 'https://clock.wp53.cn',
// host2: 'https://test.wp53.cn',
host: 'https://clock.wp53.cn',
host2: 'https://test.wp53.cn',
appId: 'wxc1246ea029394785',
miniProgram: {
clock: 'wxdeee20e52a1fd7ee'
......
......@@ -27,6 +27,14 @@ import {
errorresolve: 1,
})
}
function activityprizestatus(data) {
return wxRequest({
url: apis.customer.activity.prizestatus,
data,
method: 'GET',
errorresolve: 1,
})
}
export {
getwechatmobile,
activityconsumers,
......
import {
wxRequest
} from '../../utilities/request.js';
import apis from '../../constants/api.js';
function getInfo (data) {
return wxRequest({
url: apis.customer.shopeditor.infoGet,
data,
method: 'GET',
errorresolve: 1,
})
import { wxRequest } from "../../utilities/request.js";
import apis from "../../constants/api.js";
function getInfo(data) {
return wxRequest({
url: apis.customer.shopeditor.infoGet,
data,
method: "GET",
errorresolve: 1
});
}
function setInfo(data) {
return wxRequest({
url: apis.customer.clockEditor.infoSet,
data,
method: 'POST',
errorresolve: 1,
})
return wxRequest({
url: apis.customer.clockEditor.infoSet,
data,
method: "POST",
errorresolve: 1
});
}
function joinClass(data) {
return wxRequest({
url: apis.customer.clockEditor.joinClass,
data,
method: 'POST',
errorresolve: 2,
})
return wxRequest({
url: apis.customer.clockEditor.joinClass,
data,
method: "POST",
errorresolve: 2
});
}
export {
getInfo,
setInfo,
joinClass
}
\ No newline at end of file
function getWebClockUuid(data) {
return wxRequest({
url: apis.customer.clockEditor.getWebClockUuid,
data,
method: "GET",
errorresolve: 1,
needToken: true,
});
}
export {
getInfo,
setInfo,
joinClass,
getWebClockUuid
};
......@@ -46,6 +46,9 @@ import {
import {
studentidentity
} from '../../../service/customer/signup.js'
import {
getWebClockUuid
}from '../../../service/customer/clockeditor'
var app = getApp();
Page({
mixins: [require('../../../mixins/myMins/audioCallback')],
......@@ -79,6 +82,7 @@ Page({
}
},
id: 0, // 圈子ID
localImageRoot: '../../../images',
imageRoot: app.globalData.imageRoot,
imageVersion: app.globalData.imageVersion,
tid: 0, // 主题ID
......@@ -193,6 +197,7 @@ Page({
}, () => {
this.userShow();
this.queryActivtySchoolInfo(this.data.sid);
this.getClockUuid();
const visitor = LocalStorage.getItem('visitor');
activityLog({
type: 22,
......@@ -293,6 +298,25 @@ Page({
})
})
},
// 获取打卡相关参数的UUID
getClockUuid(){
getWebClockUuid({
subject_id: this.data.sub ? this.data.sub : this.data.tid,
data: this.data.clockdate
}).then(res=>{
const {code,data} = res;
if(code==200){
this.setData({
uuid: data.uuid
})
}else{
}
})
},
dssds(e){
console.log(e)
},
contentInput (e) {
const {value} = e.detail;
this.setData({
......
......@@ -222,6 +222,12 @@
</form>
</view>
</view>
<!-- 打卡出问题,去客服消息跳 H5 -->
<view class="clock-trouble" wx:if="{{uuid}}">
<view></view>
<button class="btn-open" bindcontact="dssds" open-type='contact' keyword="" show-message-card="true" send-message-title="点击返回轻校通" send-message-path="/src/pages/clockeditor/index?uuid={{uuid}}" send-message-img="{{imageRoot}}service/clock.png?{{imageVersion}}">打卡出问题?点这里</button>
</view>
<!-- 打卡出问题,去客服消息跳 H5 -->
<view class="red-text" wx:if="{{pagefrom!='morethemeindex'}}">一个主题只能打卡一次喔!</view>
<sound-recording
show="{{audioStatus.show}}"
......
......@@ -600,4 +600,18 @@
.limitcontent text.limitstatic {
color: red;
}
.clock-trouble{
display: flex;
align-items: center;
justify-content: space-between;
padding: 60rpx 0;
}
.clock-trouble button{
font-size: 26rpx;
color: #828E9C;
line-height: 1.5;
background: transparent;
margin: 0;
}
@import "../../style/radio.wxss";
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment