1

parent 18bf1ac7
...@@ -2,16 +2,26 @@ ...@@ -2,16 +2,26 @@
<view class="search"> <view class="search">
<wd-icon name="thin-arrow-left" class="icon"></wd-icon> <wd-icon name="thin-arrow-left" class="icon"></wd-icon>
<slot></slot> <slot></slot>
<view class="searchBox">11</view> <view class="searchBox"><input type="text" :value="test" /></view>
</view> </view>
</template> </template>
<script setup> <script setup>
import { useCountStore } from '@/store'; import { useCountStore } from '@/store';
import { onMounted } from 'vue';
const title = ref('小程序平台'); const title = ref('小程序平台');
const { countInfo, addCount } = useCountStore(); const { countInfo, addCount } = useCountStore();
const test = ref('');
onMounted(() => {
xma.xh.getUserProfile({
range: ['ACCOUNT', 'MOBILE', 'CITIZEN'],
async success(info) {
const info2 = JSON.stringify(info);
test.value = info2;
},
});
});
function toUIComponentsDoc() { function toUIComponentsDoc() {
window.open('https://wot-design-uni.netlify.app/component/button.html'); window.open('https://wot-design-uni.netlify.app/component/button.html');
} }
......
...@@ -16,25 +16,7 @@ import Search from '../../components/index/Search.vue'; ...@@ -16,25 +16,7 @@ import Search from '../../components/index/Search.vue';
const title = ref('小程序平台'); const title = ref('小程序平台');
const { countInfo, addCount } = useCountStore(); const { countInfo, addCount } = useCountStore();
onMounted(() => { onMounted(() => {});
xma.xh.getUserProfile({
range: ['ACCOUNT', 'MOBILE', 'CITIZEN'],
async success(info) {
const info2 = JSON.stringify(info);
xma.showModal({
title: '提示',
content: info2,
success: function (res) {
if (res.confirm) {
console.log('用户点击确定');
} else if (res.cancel) {
console.log('用户点击取消');
}
},
});
},
});
});
function toUIComponentsDoc() { function toUIComponentsDoc() {
window.open('https://wot-design-uni.netlify.app/component/button.html'); window.open('https://wot-design-uni.netlify.app/component/button.html');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment