1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
import request from './request.js'
//获取图形验证码
function getverification(time) {
return request('/ocLogin/generateValidateCode', "GET", {
time: time
})
}
//发送短信验证码
function sendsms(phone, time, imageCode) {
return request('/ocLogin/getVerificationCode', "POST", {
phone,
time,
imageCode
})
}
//手机号登录
function loginforphone(phone, code, time, imageCode, type) {
return request('/ocLogin/loginByVerificationCode', "POST", {
phone,
code,
time,
imageCode,
type
})
}
//观看方式
function roomwatchytype() {
return request('/LiveRoomWatchType/getInfo', "POST", {
})
}
//type1免费观看
function roomwatchytypefree() {
return request('/LiveRoomWatchType/free', "POST", {
})
}
//type2付费观看
function roomwatchytypepay(stype) {
return request('/LiveRoomWatchType/pay', "POST", {
stype
})
}
//type3密码观看
function roomwatchytypeencryption(password) {
return request('/LiveRoomWatchType/encryption', "POST", {
password
})
}
//type4账号观看
function roomwatchytypephone(phone) {
return request('/LiveRoomWatchType/phone', "POST", {
phone
})
}
//检查支付状态
function roomwatchytypeverifyPay(orderNum) {
return request('/LiveRoomWatchType/verifyPay', "POST", {
orderNum
})
}
//type5报名观看
function roomwatchytypesubmit(data) {
return request('/LiveRoomWatchType/submit', "POST", data)
}
//type6邀请码观看
function roomwatchytypeinvite(code) {
return request('/LiveRoomWatchType/invite', "POST", {
code
})
}
//验证观看方式是否认证过
function roomwatchytypeverify() {
return request('/LiveRoomWatchType/verify', "POST", {
})
}
//获取房间token
function getusertoken(nickname,userLogin,isUpdate) {
return request("/room/getUserToken", "POST", {
nickname,
userLogin,
isUpdate
})
}
//获取房间基础信息
function roomconfig() {
return request('/roomConfig/getRoomConfig', "GET", {
})
}
//获取房间自定义菜单信息
function getroomconfigtags() {
return request('/roomTagConfig/getRoomConfigTags', "GET", {
})
}
//获取房间视频信息
function getroombindvideos() {
return request('/roomTagConfig/getRoomBindVideos', "GET", {
})
}
//获取礼物信息
function getclientgift() {
return request('/liveGiftConfig/getClientGift', "GET", {
})
}
//获取二维码
function getwxqrcode(path) {
return request('/ocLogin/getWxQrCode', "GET", {
path
})
}
//检查二维码
function checkwxqrcode(code) {
return request('/ocLogin/checkWxQrCode', "GET", {
code
})
}
//标记二维码已使用
function savewxqrcode(code) {
return request('/ocLogin/saveWxQrCode', "GET", {
code
})
}
//创建礼物支付订单
function createpcorderbygift(id) {
return request('/pay/createPcOrderByGift', "GET", {
id
})
}
//检查礼物订单支付状态
function wxcheckorder(orderNum) {
return request('/pay/checkOrder', "GET", {
orderNum
})
}
//获取房间基本信息
function getwatchroombasevo() {
return request('/room/getWatchRoomBaseVo', "POST", {
})
}
//获取房间跑马灯
function getroommarquee() {
return request('/roomMarquee/info', "POST", {
})
}
//打赏获取支付链接
function createorderbyreward(price) {
return request('/pay/createPcOrderByReward', "GET", {
price
})
}
//设置观看人数
function setwatchlookbase() {
return request('/roomConfig/setWatchLookBase', "POST", {
})
}
//获取累计观看人数
function getwatchlookbase() {
return request('/roomConfig/getWatchLookBase', "POST", {
})
}
//获取用户连麦信息
function getusertrtcsign(account) {
return request('/room/getUserTRTCSign', "POST", {
account
})
}
//获取商品列表
function getroomcommodity(page,pageSize) {
return request('/roomConfig/getRoomCommodity', "POST", {
page,
pageSize,
})
}
//支付商品
function createcommodity(id) {
return request('/pay/createPCOrderByCommodity', "GET", {
id
})
}
//上报外部商品点击
function escalation(id) {
return request('/room/escalationH5Check', "GET", {
id
})
}
//获取累计观看人数
function getlookbase() {
return request('/roomConfig/getWatchLookBase', "POST", {
})
}
//获取客服列表
function getroomcustomer() {
return request('/roomCustomer/list', "POST", {
})
}
//获取关注信息
function getfollow() {
return request('/roomConfig/getFollow', "GET", {
})
}
//获取回看地址
function getbackinfo() {
return request('/roomLookBack/info', "POST", {
})
}
//签到
function signadd(signId) {
return request('/roomUserSign/add', "POST", {
signId
})
}
//续签到
function needsign() {
return request('/roomUserSign/needSign', "POST", {
})
}
//聊天设置
function livechatinfo() {
return request('/LiveChat/info', "POST", {
})
}
//校验token
function livechecktoken(token) {
return request('/ocLogin/checkToken', "GET", {
token
})
}
//获取观看地址
function livewatchurl() {
return request('/room/watchUrl', "POST", {
})
}
//取消认证
function delwatchtype() {
return request('/LiveRoomWatchType/delWatchType', "POST", {
})
}
export default {
sendsms,
getverification,
loginforphone,
roomwatchytype,
getusertoken,
roomconfig,
getroomconfigtags,
getroombindvideos,
getclientgift,
getwxqrcode,
checkwxqrcode,
savewxqrcode,
createpcorderbygift,
wxcheckorder,
roomwatchytypeverify,
roomwatchytypefree,
roomwatchytypeencryption,
getwatchroombasevo,
getroommarquee,
roomwatchytypepay,
roomwatchytypeinvite,
roomwatchytypeverifyPay,
roomwatchytypephone,
createorderbyreward,
setwatchlookbase,
getwatchlookbase,
roomwatchytypesubmit,
getusertrtcsign,
getroomcommodity,
createcommodity,
escalation,
getlookbase,
getroomcustomer,
getfollow,
getbackinfo,
signadd,
needsign,
livechatinfo,
livechecktoken,
livewatchurl,
delwatchtype
}