更新记录
1.0.0.0(2025-11-11)
这是第一版,后续会更新
平台兼容性
其他
| 多语言 | 暗黑模式 | 宽屏模式 |
|---|---|---|
| √ | √ | √ |
使用
<template>
<view class="box">
<view class="box2"></view>
<view class="box1" @click="test1">1</view>
<view class="box2"></view>
<view class="box1" @click="test2">2</view>
<view class="box2"></view>
<view class="box1" @click="test3">3</view>
<view class="box2"></view>
<view class="box1" @click="test4">4</view>
<view class="box2"></view>
<view class="box1" @click="test5">5</view>
<view class="box2"></view>
<view class="box1" @click="test6">6</view>
</view>
</template>
<script>
import {seturl,sendMes,onMonitor,setroot1} from '@/uni_modules/mrltc-utsiows'
export default {
data() {
return {
title: 'Hello12'
}
},
onLoad() {
this.ccsse();
},
methods: {
ccsse(){//设置url
seturl(
"https://网址",
function(response){
uni.showToast({
title:response,
icon:'none'
});
},
)
},
test1(){
sendMes(
"房间名","消息",
function(response){
uni.showToast({
title:response,
icon:'none'
});
},
);
},
test2(){//启动监听
onMonitor(
function(response){
uni.showToast({
title:response,
icon:'none'
});
},
);
},
test3(){//设置监听房间名
setroot1(
"robotcontrol",
function(response){
uni.showToast({
title:response,
icon:'none'
});
},
);
},
}
}
</script>
<style>
.box{
width: 750rpx;
}
.box1 {
width: 750rpx;
height: 70rpx;
background-color: #64ff85;
}
.box2 {
width: 750rpx;
height: 50rpx;
}
.logo {
height: 200rpx;
width: 200rpx;
margin-top: 200rpx;
margin-left: auto;
margin-right: auto;
margin-bottom: 50rpx;
}
.text-area {
display: flex;
justify-content: center;
}
.title {
font-size: 36rpx;
color: #8f8f94;
}
</style>

收藏人数:
购买源码授权版(
试用
赞赏(0)
下载 0
赞赏 0
下载 10883741
赞赏 1799
赞赏
京公网安备:11010802035340号