This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user