Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
wechatapp.shangjiadao.com
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxuelai
wechatapp.shangjiadao.com
Commits
f1a4d7ec
Commit
f1a4d7ec
authored
Mar 16, 2020
by
lvtz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 客服消息
parent
6a2b5da9
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
94 additions
and
33 deletions
+94
-33
api.js
constants/api.js
+2
-1
constants.js
constants/constants.js
+4
-4
activity.js
service/customer/activity.js
+8
-0
clockeditor.js
service/customer/clockeditor.js
+36
-28
index.js
src/pages/clockeditor/index.js
+24
-0
index.wxml
src/pages/clockeditor/index.wxml
+6
-0
index.wxss
src/pages/clockeditor/index.wxss
+14
-0
No files found.
constants/api.js
View file @
f1a4d7ec
...
...
@@ -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`
,
...
...
constants/constants.js
View file @
f1a4d7ec
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'
...
...
service/customer/activity.js
View file @
f1a4d7ec
...
...
@@ -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
,
...
...
service/customer/clockeditor.js
View file @
f1a4d7ec
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
};
src/pages/clockeditor/index.js
View file @
f1a4d7ec
...
...
@@ -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
({
...
...
src/pages/clockeditor/index.wxml
View file @
f1a4d7ec
...
...
@@ -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}}"
...
...
src/pages/clockeditor/index.wxss
View file @
f1a4d7ec
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment