更新记录

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>

隐私、权限声明

1. 本插件需要申请的系统权限列表:

<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

只是io.socket客户端

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

无广告

暂无用户评论。