Commit c9214edc by suwenbiao

处理冲突

parent 36315d54
<script> <script>
export default { export default {
onLaunch() { onLaunch() {
let status = navigator.userAgent.toLowerCase(); if(window.location.href.slice( window.location.href.indexOf('/',10)+1,9999).length > 5 && window.location.href.indexOf("&code=" == -1)){
if (status.match(/MicroMessenger/i) == "micromessenger") { uni.setStorageSync('room_id', window.location.href.slice( window.location.href.indexOf('/',10)+1,9999))
//微信浏览器 window.location.href = window.location.href.slice(0, window.location.href.indexOf('/',10));
uni.setStorageSync('browser_type', '1')
} else {
//其他浏览器
uni.setStorageSync('browser_type', '0')
} }
}, },
onShow() { onShow() {
...@@ -21,18 +17,7 @@ ...@@ -21,18 +17,7 @@
<style> <style>
/*每个页面公共css */ /*每个页面公共css */
.contents { .contents{
overflow-x: hidden; overflow-x: hidden;
} }
uni-scroll-view .uni-scroll-view::-webkit-scrollbar {
/* 隐藏滚动条,但依旧具备可以滚动的功能 */
display: none;
width: 0 !important;
height: 0 !important;
-webkit-appearance: none;
background: transparent;
color: transparent;
}
</style> </style>
...@@ -246,7 +246,19 @@ function delwatchtype() { ...@@ -246,7 +246,19 @@ function delwatchtype() {
return request('/LiveRoomWatchType/delWatchType', "POST", { return request('/LiveRoomWatchType/delWatchType', "POST", {
}) })
} }
//获取appid
function getappid() {
return request('/ocLogin/getAppid', "GET", {
})
}
//wx登录
function loginbywx(code) {
return request('/ocLogin/loginByWx', "GET", {
code
})
}
export default { export default {
loginbywx,
sendsms, sendsms,
getverification, getverification,
loginforphone, loginforphone,
...@@ -287,5 +299,6 @@ export default { ...@@ -287,5 +299,6 @@ export default {
livechatinfo, livechatinfo,
livechecktoken, livechecktoken,
livewatchurl, livewatchurl,
delwatchtype delwatchtype,
getappid
} }
\ 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