Commit a12706be authored by 石建新(贵阳日报)'s avatar 石建新(贵阳日报)
parents a7fc3c7a 085215aa
This source diff could not be displayed because it is too large. You can view the blob instead.
<template>
<view class="search">
<image
@tap="test2"
class="arrow"
src="../../static/arrow.png"
mode="aspectFit|aspectFill|widthFix"
/>
<slot></slot>
<view class="searchBox">
<image
class="magnifyingGlass"
src="../../static/magnifyingGlass.png"
mode="aspectFit|aspectFill|widthFix"
/>
<input type="text" :value="test" class="text" />
</view>
</view>
</template>
<script setup>
import { useCountStore } from '@/store';
import { onMounted } from 'vue';
const title = ref('小程序平台');
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;
},
});
});
const test2 = () => {
xma.navigateTo({
url: '/page/index/index',
});
};
function toUIComponentsDoc() {
window.open('https://wot-design-uni.netlify.app/component/button.html');
}
function onHandleClick() {
addCount();
}
</script>
<style lang="scss">
.search {
width: 710rpx;
height: 80rpx;
background: rgba(255, 255, 255, 0.8);
border-radius: 16rpx 16rpx 16rpx 16rpx;
opacity: 0.8;
margin: 0 auto;
margin-top: 44rpx;
display: flex;
align-items: center;
padding-left: 20rpx;
.arrow {
width: 15rpx;
height: 24rpx;
}
.searchBox {
opacity: 1;
width: 256rpx;
height: 56rpx;
background: #ffffff;
border-radius: 28rpx 28rpx 28rpx 28rpx;
display: flex;
align-items: center;
padding-left: 20rpx;
margin-left: 20rpx;
.magnifyingGlass {
width: 26rpx;
height: 26rpx;
}
.text {
margin-left: 10rpx;
font-size: 24rpx;
}
}
}
</style>
<template> <template>
<wd-watermark content="小程序平台" :opacity="0.25"></wd-watermark> <view class="container" @tap="aa">
<view class="content"> <view class="top">
<image src="/static/logo-icon.png" class="logo" /> <Search>
<text>{{ title }}</text> <image class="food" src="../../static/food.png" mode="aspectFit|aspectFill|widthFix" />
<wd-button type="primary" @click="toUIComponentsDoc">wot-design-uni 文档</wd-button> </Search>
<text>pinia count: {{ countInfo.count }}</text> </view>
<wd-button type="primary" @click="onHandleClick">add count1</wd-button>
</view> </view>
</template> </template>
<script setup lang="ts"> <script setup>
import { onMounted } from 'vue';
import { useCountStore } from '@/store'; import { useCountStore } from '@/store';
import Search from '../../components/index/Search.vue';
const title = ref('小程序平台'); const title = ref('小程序平台');
const { countInfo, addCount } = useCountStore(); const { countInfo, addCount } = useCountStore();
onMounted(() => {});
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');
} }
...@@ -25,19 +27,18 @@ function onHandleClick() { ...@@ -25,19 +27,18 @@ function onHandleClick() {
</script> </script>
<style lang="scss"> <style lang="scss">
.content { .container {
display: flex; .top {
flex-direction: column; width: 100%;
align-items: center; height: 440rpx;
justify-content: center; background: linear-gradient(180deg, #fa5151 0%, rgba(243, 243, 243, 0) 100%);
padding: 40rpx { border-radius: 0rpx 0rpx 0rpx 0rpx;
top: 200rpx; overflow: hidden;
} .food {
gap: 24rpx; width: 178rpx;
height: 45rpx;
.logo { margin-left: 25rpx;
width: 80rpx; }
height: 80rpx;
} }
} }
</style> </style>
This source diff could not be displayed because it is too large. You can view the blob instead.
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