feat(custom): 新增消息订阅
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-08-27 17:06:59 +08:00
parent f199320de0
commit 1d8532eccf
104 changed files with 2350 additions and 2477 deletions

View File

@@ -3,13 +3,13 @@
</template>
<script setup lang="ts">
import Taro from "@tarojs/taro";
import { ref } from "vue";
import { getAgreement } from "../../../api/user";
import Taro from '@tarojs/taro';
import {ref} from 'vue';
import {getAgreement} from '../../../api/user';
const nodes = ref(``);
Taro.useLoad((e) => {
Taro.useLoad(e => {
Taro.setNavigationBarTitle({
title: e.name,
});
@@ -19,13 +19,13 @@ Taro.useLoad((e) => {
const get_data = async (type: string) => {
const res = await getAgreement();
switch (type) {
case "1":
case '1':
nodes.value = res.data.data.user;
break;
case "2":
case '2':
nodes.value = res.data.data.policy;
break;
case "3":
case '3':
nodes.value = res.data.data.integral;
break;
}
@@ -33,5 +33,5 @@ const get_data = async (type: string) => {
</script>
<style lang="scss">
@import "./index.scss";
@import './index.scss';
</style>