mkm
/
yanzhiAPP
Template
2
0
Fork 0
yanzhiAPP/pages/index/index.vue

41 lines
754 B
Vue
Raw Normal View History

2023-10-17 11:00:41 +08:00
<template>
2023-10-17 16:02:55 +08:00
<view class="">
{{res}}
<up-button text="渐变色按钮" @click="handleAdd"
color="linear-gradient(to right, rgb(66, 83, 216), rgb(213, 51, 186))"></up-button>
<up-button text="存值" @click="handle"
color="linear-gradient(to right, rgb(66, 83, 216), rgb(213, 51, 186))"></up-button>
2023-10-17 11:00:41 +08:00
</view>
</template>
2023-10-17 16:02:55 +08:00
<script setup>
import {
ref
} from 'vue';
import {
companyMine
} from "@/api/test.js";
import {
counterStore
} from '@/store/counter'
import {
onLoad
} from "@dcloudio/uni-app"
const counter = counterStore()
const res = ref({})
const handleAdd = () => {
}
const handle = () => {
2023-10-17 11:00:41 +08:00
}
2023-10-17 16:02:55 +08:00
onLoad(() => {
companyMine({
id: 1,
flag: 1
}).then(res1 => {
res.value = res1.data
})
})
</script>