更新记录

1.0.1(2019-10-02)

完善使用说明

1.0.0(2019-10-01)

构建完成,持续完善


平台兼容性

[TOC]

目录结构

本插件使用了火星的代码结构与方式。 引用:https://ext.dcloud.net.cn/plugin?id=596

  • base64.vue Base64加密脚本
  • xxtea.vue XXTEA加密脚本
使用方法

index.vue

<template>
    <view class="e-page">
    </view>
</template>
<script>
import '@/components/shoyu-xxtea/shoyu-xxtea';
export default {
    data() {
        return {
            title: 'XXTEA',
            host: 'edusoho.taobao.com',
            nickname: 'shoyu',
            password: '123456',
            basic: false,
            xxtea: false
        };
    },
    onLoad() {
        let that = this;

        let string = that.nickname + ':' + that.password;
        that.basic = Base64.encode(string);

        that.xxtea = XXTEA.encryptToBase64(this.password, that.host);
    },
    methods: {}
};
</script>

隐私、权限声明

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

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

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

许可协议

MIT协议

使用中有什么不明白的地方,就向插件作者提问吧~ 我要提问