Commit f1a4d7ec authored by lvtz's avatar lvtz

fix 客服消息

parent 6a2b5da9
...@@ -102,7 +102,8 @@ const apis = { ...@@ -102,7 +102,8 @@ const apis = {
}, },
clockEditor: { clockEditor: {
infoSet: `${api}student/clock`, infoSet: `${api}student/clock`,
joinClass: `${api}student/class/join_class` joinClass: `${api}student/class/join_class`,
getWebClockUuid: `${api}student/get_web_clock_uuid`
}, },
rankingList: { rankingList: {
totalList: `${api}consumer/clock/rank/total_index`, totalList: `${api}consumer/clock/rank/total_index`,
......
export default { export default {
imageRoot: 'https://cdn.img.shangjiadao.cn/qingxiao/daka/images/', imageRoot: 'https://cdn.img.shangjiadao.cn/qingxiao/daka/images/',
host: 'https://qxapi.qingxiao.online/daka', // host: 'https://qxapi.qingxiao.online/daka',
host2: 'https://wx.m.shangjiadao.cn', // host2: 'https://wx.m.shangjiadao.cn',
storageVersion: '5.0', storageVersion: '5.0',
imageVersion: '20200117', imageVersion: '20200117',
// host: 'https://clock.wp53.cn', host: 'https://clock.wp53.cn',
// host2: 'https://test.wp53.cn', host2: 'https://test.wp53.cn',
appId: 'wxc1246ea029394785', appId: 'wxc1246ea029394785',
miniProgram: { miniProgram: {
clock: 'wxdeee20e52a1fd7ee' clock: 'wxdeee20e52a1fd7ee'
......
...@@ -27,6 +27,14 @@ import { ...@@ -27,6 +27,14 @@ import {
errorresolve: 1, errorresolve: 1,
}) })
} }
function activityprizestatus(data) {
return wxRequest({
url: apis.customer.activity.prizestatus,
data,
method: 'GET',
errorresolve: 1,
})
}
export { export {
getwechatmobile, getwechatmobile,
activityconsumers, activityconsumers,
......
import { import { wxRequest } from "../../utilities/request.js";
wxRequest import apis from "../../constants/api.js";
} from '../../utilities/request.js'; function getInfo(data) {
import apis from '../../constants/api.js'; return wxRequest({
function getInfo (data) { url: apis.customer.shopeditor.infoGet,
return wxRequest({ data,
url: apis.customer.shopeditor.infoGet, method: "GET",
data, errorresolve: 1
method: 'GET', });
errorresolve: 1,
})
} }
function setInfo(data) { function setInfo(data) {
return wxRequest({ return wxRequest({
url: apis.customer.clockEditor.infoSet, url: apis.customer.clockEditor.infoSet,
data, data,
method: 'POST', method: "POST",
errorresolve: 1, errorresolve: 1
}) });
} }
function joinClass(data) { function joinClass(data) {
return wxRequest({ return wxRequest({
url: apis.customer.clockEditor.joinClass, url: apis.customer.clockEditor.joinClass,
data, data,
method: 'POST', method: "POST",
errorresolve: 2, errorresolve: 2
}) });
} }
export { function getWebClockUuid(data) {
getInfo, return wxRequest({
setInfo, url: apis.customer.clockEditor.getWebClockUuid,
joinClass data,
} method: "GET",
\ No newline at end of file errorresolve: 1,
needToken: true,
});
}
export {
getInfo,
setInfo,
joinClass,
getWebClockUuid
};
...@@ -46,6 +46,9 @@ import { ...@@ -46,6 +46,9 @@ import {
import { import {
studentidentity studentidentity
} from '../../../service/customer/signup.js' } from '../../../service/customer/signup.js'
import {
getWebClockUuid
}from '../../../service/customer/clockeditor'
var app = getApp(); var app = getApp();
Page({ Page({
mixins: [require('../../../mixins/myMins/audioCallback')], mixins: [require('../../../mixins/myMins/audioCallback')],
...@@ -79,6 +82,7 @@ Page({ ...@@ -79,6 +82,7 @@ Page({
} }
}, },
id: 0, // 圈子ID id: 0, // 圈子ID
localImageRoot: '../../../images',
imageRoot: app.globalData.imageRoot, imageRoot: app.globalData.imageRoot,
imageVersion: app.globalData.imageVersion, imageVersion: app.globalData.imageVersion,
tid: 0, // 主题ID tid: 0, // 主题ID
...@@ -193,6 +197,7 @@ Page({ ...@@ -193,6 +197,7 @@ Page({
}, () => { }, () => {
this.userShow(); this.userShow();
this.queryActivtySchoolInfo(this.data.sid); this.queryActivtySchoolInfo(this.data.sid);
this.getClockUuid();
const visitor = LocalStorage.getItem('visitor'); const visitor = LocalStorage.getItem('visitor');
activityLog({ activityLog({
type: 22, type: 22,
...@@ -293,6 +298,25 @@ Page({ ...@@ -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) { contentInput (e) {
const {value} = e.detail; const {value} = e.detail;
this.setData({ this.setData({
......
...@@ -222,6 +222,12 @@ ...@@ -222,6 +222,12 @@
</form> </form>
</view> </view>
</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> <view class="red-text" wx:if="{{pagefrom!='morethemeindex'}}">一个主题只能打卡一次喔!</view>
<sound-recording <sound-recording
show="{{audioStatus.show}}" show="{{audioStatus.show}}"
......
...@@ -600,4 +600,18 @@ ...@@ -600,4 +600,18 @@
.limitcontent text.limitstatic { .limitcontent text.limitstatic {
color: red; 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"; @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