更新代码工程
This commit is contained in:
Generated
+1284
-1573
File diff suppressed because it is too large
Load Diff
+8
-5
@@ -12,14 +12,17 @@
|
|||||||
"build:ios": "uni build -p app-ios"
|
"build:ios": "uni build -p app-ios"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@dcloudio/uni-app": "^3.0.0-4080420251103001",
|
"@dcloudio/uni-app": "3.0.0-alpha-4080620251107001",
|
||||||
"@dcloudio/uni-app-plus": "^3.0.0-4080420251103001",
|
"@dcloudio/uni-app-plus": "3.0.0-alpha-4080620251107001",
|
||||||
|
"@dcloudio/uni-components": "3.0.0-alpha-4080620251107001",
|
||||||
"pinia": "^3.0.4",
|
"pinia": "^3.0.4",
|
||||||
"vue": "^3.4.27"
|
"vue": "^3.4.27"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@dcloudio/types": "latest",
|
"@dcloudio/types": "^3.4.19",
|
||||||
"@dcloudio/vite-plugin-uni": "3.0.0-4020320240708001",
|
"@dcloudio/uni-cli-shared": "3.0.0-alpha-4080620251107001",
|
||||||
"vite": "^5.2.8"
|
"@dcloudio/vite-plugin-uni": "3.0.0-alpha-4080620251107001",
|
||||||
|
"sass": "^1.77.0",
|
||||||
|
"vite": "5.2.8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,11 +14,11 @@ const props = defineProps({
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<view class="background" :style="{ backgroundColor: bgColor }">
|
<view class="background" :style="{ backgroundColor: bgColor }">
|
||||||
<image class="bg-image" v-if="type === 2" src="../static/app-bg3.png" />
|
<image class="bg-image" v-if="type === 2" src="/static/app-bg3.png" />
|
||||||
<image
|
<image
|
||||||
class="bg-image"
|
class="bg-image"
|
||||||
v-if="type === 4"
|
v-if="type === 4"
|
||||||
src="../static/app-bg5.png"
|
src="/static/app-bg5.png"
|
||||||
mode="widthFix"
|
mode="widthFix"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ const props = defineProps({
|
|||||||
<template>
|
<template>
|
||||||
<view class="avatar" @click="onClick">
|
<view class="avatar" @click="onClick">
|
||||||
<image
|
<image
|
||||||
:src="src || '../static/user-icon.png'"
|
:src="src || '/static/user-icon.png'"
|
||||||
mode="widthFix"
|
mode="widthFix"
|
||||||
:style="{
|
:style="{
|
||||||
width: size + 'px',
|
width: size + 'px',
|
||||||
|
|||||||
@@ -214,13 +214,13 @@ onMounted(async () => {
|
|||||||
@touchstart.stop="confirmAdd"
|
@touchstart.stop="confirmAdd"
|
||||||
:style="{ ...getNewPos() }"
|
:style="{ ...getNewPos() }"
|
||||||
>
|
>
|
||||||
<image src="../static/arrow-edit-save.png" mode="widthFix" />
|
<image src="/static/arrow-edit-save.png" mode="widthFix" />
|
||||||
</view>
|
</view>
|
||||||
<view class="edit-btn delete-btn" @touchstart.stop="deleteArrow">
|
<view class="edit-btn delete-btn" @touchstart.stop="deleteArrow">
|
||||||
<image src="../static/arrow-edit-delete.png" mode="widthFix" />
|
<image src="/static/arrow-edit-delete.png" mode="widthFix" />
|
||||||
</view>
|
</view>
|
||||||
<view class="edit-btn drag-btn" @touchstart.stop="startDrag($event)">
|
<view class="edit-btn drag-btn" @touchstart.stop="startDrag($event)">
|
||||||
<image src="../static/arrow-edit-move.png" mode="widthFix" />
|
<image src="/static/arrow-edit-move.png" mode="widthFix" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</movable-view>
|
</movable-view>
|
||||||
|
|||||||
@@ -210,7 +210,7 @@ onMounted(async () => {
|
|||||||
<view>
|
<view>
|
||||||
<image
|
<image
|
||||||
v-if="!noArrow"
|
v-if="!noArrow"
|
||||||
src="../static/arrow-grey.png"
|
src="/static/arrow-grey.png"
|
||||||
mode="widthFix"
|
mode="widthFix"
|
||||||
:style="{ transform: expand ? 'rotateX(180deg)' : 'rotateX(0deg)' }"
|
:style="{ transform: expand ? 'rotateX(180deg)' : 'rotateX(0deg)' }"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ const onClick = () => {
|
|||||||
uni.navigateBack();
|
uni.navigateBack();
|
||||||
} else {
|
} else {
|
||||||
uni.redirectTo({
|
uni.redirectTo({
|
||||||
url: "/pages/index",
|
url: "/pages/index/index",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -42,7 +42,7 @@ onMounted(() => {
|
|||||||
<template>
|
<template>
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<view class="back-btn" @click="onClick">
|
<view class="back-btn" @click="onClick">
|
||||||
<image src="../static/back-black.png" mode="widthFix" />
|
<image src="/static/back-black.png" mode="widthFix" />
|
||||||
</view>
|
</view>
|
||||||
<view v-if="pointBook" class="point-book-info">
|
<view v-if="pointBook" class="point-book-info">
|
||||||
<text>{{ pointBook.bowType.name }}</text>
|
<text>{{ pointBook.bowType.name }}</text>
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ const hide = ref(true);
|
|||||||
</view>
|
</view>
|
||||||
<view v-if="type === 'password'" class="eye-btn" @click="hide = !hide">
|
<view v-if="type === 'password'" class="eye-btn" @click="hide = !hide">
|
||||||
<image
|
<image
|
||||||
:src="`../static/${hide ? 'eye-close' : 'eye-open'}.png`"
|
:src="`/static/${hide ? 'eye-close' : 'eye-open'}.png`"
|
||||||
mode="widthFix"
|
mode="widthFix"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ const targetOptions = ref({});
|
|||||||
|
|
||||||
const toDetailPage = () => {
|
const toDetailPage = () => {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/detail?id=${props.data.id}`,
|
url: `/pages/detail/index?id=${props.data.id}`,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -52,7 +52,7 @@ onMounted(() => {
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<image src="../static/bow-target.png" mode="widthFix" />
|
<image src="/static/bow-target.png" mode="widthFix" />
|
||||||
<view class="arrow-amount">
|
<view class="arrow-amount">
|
||||||
<text>共</text>
|
<text>共</text>
|
||||||
<text>{{ data.arrows * data.groups }}</text>
|
<text>{{ data.arrows * data.groups }}</text>
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ const onBtnClick = debounce(async () => {
|
|||||||
<slot />
|
<slot />
|
||||||
</block>
|
</block>
|
||||||
<block v-else>
|
<block v-else>
|
||||||
<image src="../static/btn-loading.png" mode="widthFix" class="loading" />
|
<image src="/static/btn-loading.png" mode="widthFix" class="loading" />
|
||||||
</block>
|
</block>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ watch(
|
|||||||
mode="widthFix"
|
mode="widthFix"
|
||||||
/>
|
/>
|
||||||
<view class="close-btn" @click="onClose" v-if="!noBg">
|
<view class="close-btn" @click="onClose" v-if="!noBg">
|
||||||
<image src="../static/close-yellow.png" mode="widthFix" />
|
<image src="/static/close-yellow.png" mode="widthFix" />
|
||||||
</view>
|
</view>
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -20,12 +20,12 @@ const props = defineProps({
|
|||||||
<template>
|
<template>
|
||||||
<view class="container" :style="{ display: show ? 'flex' : 'none' }">
|
<view class="container" :style="{ display: show ? 'flex' : 'none' }">
|
||||||
<view class="scale-in">
|
<view class="scale-in">
|
||||||
<image src="../static/point-book-tip-bg.png" mode="widthFix" />
|
<image src="/static/point-book-tip-bg.png" mode="widthFix" />
|
||||||
<slot />
|
<slot />
|
||||||
</view>
|
</view>
|
||||||
<IconButton
|
<IconButton
|
||||||
v-if="!!onClose"
|
v-if="!!onClose"
|
||||||
src="../static/close-white-outline.png"
|
src="/static/close-white-outline.png"
|
||||||
:width="30"
|
:width="30"
|
||||||
:onClick="onClose"
|
:onClick="onClose"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -19,14 +19,14 @@ const isIOS = computed(() => {
|
|||||||
<view class="tabbar" :style="{ paddingBottom: isIOS ? '30rpx' : '0rpx' }">
|
<view class="tabbar" :style="{ paddingBottom: isIOS ? '30rpx' : '0rpx' }">
|
||||||
<view @click="onClick(0)">
|
<view @click="onClick(0)">
|
||||||
<image
|
<image
|
||||||
:src="`../static/tab-score${selected === 0 ? '-s' : ''}.png`"
|
:src="`/static/tab-score${selected === 0 ? '-s' : ''}.png`"
|
||||||
mode="widthFix"
|
mode="widthFix"
|
||||||
/>
|
/>
|
||||||
<text :style="{ color: selected === 0 ? '#333' : '#999999' }">Score</text>
|
<text :style="{ color: selected === 0 ? '#333' : '#999999' }">Score</text>
|
||||||
</view>
|
</view>
|
||||||
<view @click="onClick(1)">
|
<view @click="onClick(1)">
|
||||||
<image
|
<image
|
||||||
:src="`../static/tab-history${selected === 1 ? '-s' : ''}.png`"
|
:src="`/static/tab-history${selected === 1 ? '-s' : ''}.png`"
|
||||||
mode="widthFix"
|
mode="widthFix"
|
||||||
/>
|
/>
|
||||||
<text :style="{ color: selected === 1 ? '#333' : '#999999' }"
|
<text :style="{ color: selected === 1 ? '#333' : '#999999' }"
|
||||||
@@ -35,7 +35,7 @@ const isIOS = computed(() => {
|
|||||||
</view>
|
</view>
|
||||||
<view @click="onClick(2)">
|
<view @click="onClick(2)">
|
||||||
<image
|
<image
|
||||||
:src="`../static/tab-user${selected === 2 ? '-s' : ''}.png`"
|
:src="`/static/tab-user${selected === 2 ? '-s' : ''}.png`"
|
||||||
mode="widthFix"
|
mode="widthFix"
|
||||||
/>
|
/>
|
||||||
<text :style="{ color: selected === 2 ? '#333' : '#999999' }"
|
<text :style="{ color: selected === 2 ? '#333' : '#999999' }"
|
||||||
|
|||||||
+11
-8
@@ -1,28 +1,31 @@
|
|||||||
{
|
{
|
||||||
"pages": [
|
"pages": [
|
||||||
{
|
{
|
||||||
"path": "pages/index"
|
"path": "pages/index/index"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/signup"
|
"path": "pages/signup/index"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/signin"
|
"path": "pages/signin/index"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/create"
|
"path": "pages/create/index"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/detail"
|
"path": "pages/detail/index"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/edit"
|
"path": "pages/edit/index"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/reset-pwd"
|
"path": "pages/reset-pwd/index"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/edit-profile"
|
"path": "pages/edit-profile/index"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/list/index"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ const onExpandChange = (index, expand) => {
|
|||||||
|
|
||||||
const toListPage = () => {
|
const toListPage = () => {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/list",
|
url: "/pages/list/index",
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const onSelect = (itemIndex, value) => {
|
const onSelect = (itemIndex, value) => {
|
||||||
@@ -49,7 +49,7 @@ const toEditPage = () => {
|
|||||||
amountGroup: amountGroup.value,
|
amountGroup: amountGroup.value,
|
||||||
});
|
});
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/edit",
|
url: "/pages/edit/index",
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ const goBack = () => {
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
uni.redirectTo({
|
uni.redirectTo({
|
||||||
url: "/pages/index",
|
url: "/pages/index/index",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -126,7 +126,7 @@ onLoad(async (options) => {
|
|||||||
>
|
>
|
||||||
<text>Stability</text>
|
<text>Stability</text>
|
||||||
<image
|
<image
|
||||||
src="../static/s-question-mark.png"
|
src="/static/s-question-mark.png"
|
||||||
mode="widthFix"
|
mode="widthFix"
|
||||||
class="question-mark"
|
class="question-mark"
|
||||||
/>
|
/>
|
||||||
@@ -154,7 +154,7 @@ onLoad(async (options) => {
|
|||||||
@click="() => openTip(3)"
|
@click="() => openTip(3)"
|
||||||
v-if="user.id === record.user.id"
|
v-if="user.id === record.user.id"
|
||||||
>
|
>
|
||||||
<image src="../static/edit.png" mode="widthFix" />
|
<image src="/static/edit.png" mode="widthFix" />
|
||||||
<text>Notes</text>
|
<text>Notes</text>
|
||||||
</button>
|
</button>
|
||||||
</view>
|
</view>
|
||||||
@@ -163,7 +163,7 @@ onLoad(async (options) => {
|
|||||||
<text>Distribution</text>
|
<text>Distribution</text>
|
||||||
<!-- <button hover-class="none" @click="() => openTip(2)">
|
<!-- <button hover-class="none" @click="() => openTip(2)">
|
||||||
<image
|
<image
|
||||||
src="../static/s-question-mark.png"
|
src="/static/s-question-mark.png"
|
||||||
mode="widthFix"
|
mode="widthFix"
|
||||||
class="question-mark"
|
class="question-mark"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ const onSubmit = async () => {
|
|||||||
);
|
);
|
||||||
if (res.record_id) {
|
if (res.record_id) {
|
||||||
uni.redirectTo({
|
uni.redirectTo({
|
||||||
url: `/pages/detail?id=${res.record_id}`,
|
url: `/pages/detail/index?id=${res.record_id}`,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -110,7 +110,7 @@ onMounted(() => {
|
|||||||
<text>Set {{ currentGroup }}</text>
|
<text>Set {{ currentGroup }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view @click="deleteArrow">
|
<view @click="deleteArrow">
|
||||||
<image src="../static/delete.png" />
|
<image src="/static/delete.png" />
|
||||||
<text>Delete</text>
|
<text>Delete</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -101,11 +101,11 @@ const confirmRemove = async () => {
|
|||||||
<view>
|
<view>
|
||||||
<view>
|
<view>
|
||||||
<text>Take a photo</text>
|
<text>Take a photo</text>
|
||||||
<image src="../static/back-grey.png" mode="widthFix" />
|
<image src="/static/back-grey.png" mode="widthFix" />
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<text>Choose photo</text>
|
<text>Choose photo</text>
|
||||||
<image src="../static/back-grey.png" mode="widthFix" />
|
<image src="/static/back-grey.png" mode="widthFix" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -117,7 +117,7 @@ const confirmRemove = async () => {
|
|||||||
>
|
>
|
||||||
<view class="selector">
|
<view class="selector">
|
||||||
<view @click="() => (showModal = false)">
|
<view @click="() => (showModal = false)">
|
||||||
<image src="../static/close-grey.png" mode="widthFix" />
|
<image src="/static/close-grey.png" mode="widthFix" />
|
||||||
</view>
|
</view>
|
||||||
<EditOption
|
<EditOption
|
||||||
v-show="selectorIndex === 0"
|
v-show="selectorIndex === 0"
|
||||||
|
|||||||
@@ -79,19 +79,19 @@ const onListLoading = async (page) => {
|
|||||||
<text :style="{ color: bowType.name ? '#000' : '#999' }">{{
|
<text :style="{ color: bowType.name ? '#000' : '#999' }">{{
|
||||||
bowType.name || "Please select"
|
bowType.name || "Please select"
|
||||||
}}</text>
|
}}</text>
|
||||||
<image src="../static/arrow-grey.png" mode="widthFix" />
|
<image src="/static/arrow-grey.png" mode="widthFix" />
|
||||||
</view>
|
</view>
|
||||||
<view @click="() => openSelector(1)">
|
<view @click="() => openSelector(1)">
|
||||||
<text :style="{ color: distance ? '#000' : '#999' }">{{
|
<text :style="{ color: distance ? '#000' : '#999' }">{{
|
||||||
distance ? distance + " m" : "Please select"
|
distance ? distance + " m" : "Please select"
|
||||||
}}</text>
|
}}</text>
|
||||||
<image src="../static/arrow-grey.png" mode="widthFix" />
|
<image src="/static/arrow-grey.png" mode="widthFix" />
|
||||||
</view>
|
</view>
|
||||||
<view @click="() => openSelector(2)">
|
<view @click="() => openSelector(2)">
|
||||||
<text :style="{ color: bowtargetType.name ? '#000' : '#999' }">{{
|
<text :style="{ color: bowtargetType.name ? '#000' : '#999' }">{{
|
||||||
bowtargetType.name || "Please select"
|
bowtargetType.name || "Please select"
|
||||||
}}</text>
|
}}</text>
|
||||||
<image src="../static/arrow-grey.png" mode="widthFix" />
|
<image src="/static/arrow-grey.png" mode="widthFix" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="point-records">
|
<view class="point-records">
|
||||||
@@ -111,7 +111,7 @@ const onListLoading = async (page) => {
|
|||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.list {
|
.list {
|
||||||
background: url("../static/app-bg3.png") no-repeat top/contain;
|
background: url("/static/app-bg3.png") no-repeat top/contain;
|
||||||
}
|
}
|
||||||
.list-header {
|
.list-header {
|
||||||
height: 40px;
|
height: 40px;
|
||||||
|
|||||||
+10
-10
@@ -18,13 +18,13 @@ const statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
|
|||||||
|
|
||||||
const toEditPage = (type) => {
|
const toEditPage = (type) => {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/edit-profile?type=" + type,
|
url: "/pages/edit-profile/index?type=" + type,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const toSignInPage = () => {
|
const toSignInPage = () => {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/signin",
|
url: "/pages/signin/index",
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
@@ -39,25 +39,25 @@ const toSignInPage = () => {
|
|||||||
<view class="header">
|
<view class="header">
|
||||||
<image :src="user.avatar" mode="widthFix" />
|
<image :src="user.avatar" mode="widthFix" />
|
||||||
<view @click="editAvatar">
|
<view @click="editAvatar">
|
||||||
<image src="../static/pen-yellow.png" mode="widthFix" />
|
<image src="/static/pen-yellow.png" mode="widthFix" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="body">
|
<view class="body">
|
||||||
<view>
|
<view>
|
||||||
<view @click="toEditPage('Name')">
|
<view @click="toEditPage('Name')">
|
||||||
<image src="../static/user-yellow.png" mode="widthFix" />
|
<image src="/static/user-yellow.png" mode="widthFix" />
|
||||||
<text>Name</text>
|
<text>Name</text>
|
||||||
<image src="../static/back-grey.png" mode="widthFix" />
|
<image src="/static/back-grey.png" mode="widthFix" />
|
||||||
</view>
|
</view>
|
||||||
<view @click="toEditPage('Email')">
|
<view @click="toEditPage('Email')">
|
||||||
<image src="../static/email-yellow.png" mode="widthFix" />
|
<image src="/static/email-yellow.png" mode="widthFix" />
|
||||||
<text>Email</text>
|
<text>Email</text>
|
||||||
<image src="../static/back-grey.png" mode="widthFix" />
|
<image src="/static/back-grey.png" mode="widthFix" />
|
||||||
</view>
|
</view>
|
||||||
<view @click="toEditPage('Password')">
|
<view @click="toEditPage('Password')">
|
||||||
<image src="../static/password-yellow.png" mode="widthFix" />
|
<image src="/static/password-yellow.png" mode="widthFix" />
|
||||||
<text>Password</text>
|
<text>Password</text>
|
||||||
<image src="../static/back-grey.png" mode="widthFix" />
|
<image src="/static/back-grey.png" mode="widthFix" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view @click="toSignInPage">Log out</view>
|
<view @click="toSignInPage">Log out</view>
|
||||||
@@ -74,7 +74,7 @@ const toSignInPage = () => {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background: url("../static/app-bg6.png") no-repeat top/contain;
|
background: url("/static/app-bg6.png") no-repeat top/contain;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|||||||
+17
-17
@@ -32,10 +32,10 @@ const heatMapImageSrc = ref(""); // 存储热力图图片地址
|
|||||||
const startScoring = () => {
|
const startScoring = () => {
|
||||||
if (user.value.id)
|
if (user.value.id)
|
||||||
return uni.navigateTo({
|
return uni.navigateTo({
|
||||||
url: "/pages/create",
|
url: "/pages/create/index",
|
||||||
});
|
});
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/signin",
|
url: "/pages/signin/index",
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -59,7 +59,7 @@ watch(
|
|||||||
const signin = () => {
|
const signin = () => {
|
||||||
if (!user.value.id) {
|
if (!user.value.id) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/signin",
|
url: "/pages/signin/index",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -94,21 +94,21 @@ onMounted(async () => {
|
|||||||
borderColor="#333"
|
borderColor="#333"
|
||||||
/>
|
/>
|
||||||
<text class="truncate">{{ user.nickName }}</text>
|
<text class="truncate">{{ user.nickName }}</text>
|
||||||
<image v-if="heat" :src="`../static/hot${heat}.png`" mode="widthFix" />
|
<image v-if="heat" :src="`/static/hot${heat}.png`" mode="widthFix" />
|
||||||
</block>
|
</block>
|
||||||
<block v-else>
|
<block v-else>
|
||||||
<image src="../static/user-icon.png" mode="widthFix" />
|
<image src="/static/user-icon.png" mode="widthFix" />
|
||||||
<text>Hello~</text>
|
<text>Hello~</text>
|
||||||
</block>
|
</block>
|
||||||
</view>
|
</view>
|
||||||
<view class="daily-signin">
|
<view class="daily-signin">
|
||||||
<view>
|
<view>
|
||||||
<image src="../static/week-check.png" />
|
<image src="/static/week-check.png" />
|
||||||
</view>
|
</view>
|
||||||
<view :class="data.weeksCheckIn[0] ? 'checked' : ''">
|
<view :class="data.weeksCheckIn[0] ? 'checked' : ''">
|
||||||
<image
|
<image
|
||||||
v-if="data.weeksCheckIn[0]"
|
v-if="data.weeksCheckIn[0]"
|
||||||
src="../static/checked-green2.png"
|
src="/static/checked-green2.png"
|
||||||
mode="widthFix"
|
mode="widthFix"
|
||||||
/>
|
/>
|
||||||
<view v-else></view>
|
<view v-else></view>
|
||||||
@@ -117,7 +117,7 @@ onMounted(async () => {
|
|||||||
<view :class="data.weeksCheckIn[1] ? 'checked' : ''">
|
<view :class="data.weeksCheckIn[1] ? 'checked' : ''">
|
||||||
<image
|
<image
|
||||||
v-if="data.weeksCheckIn[1]"
|
v-if="data.weeksCheckIn[1]"
|
||||||
src="../static/checked-green2.png"
|
src="/static/checked-green2.png"
|
||||||
mode="widthFix"
|
mode="widthFix"
|
||||||
/>
|
/>
|
||||||
<view v-else></view>
|
<view v-else></view>
|
||||||
@@ -126,7 +126,7 @@ onMounted(async () => {
|
|||||||
<view :class="data.weeksCheckIn[2] ? 'checked' : ''">
|
<view :class="data.weeksCheckIn[2] ? 'checked' : ''">
|
||||||
<image
|
<image
|
||||||
v-if="data.weeksCheckIn[2]"
|
v-if="data.weeksCheckIn[2]"
|
||||||
src="../static/checked-green2.png"
|
src="/static/checked-green2.png"
|
||||||
mode="widthFix"
|
mode="widthFix"
|
||||||
/>
|
/>
|
||||||
<view v-else></view>
|
<view v-else></view>
|
||||||
@@ -135,7 +135,7 @@ onMounted(async () => {
|
|||||||
<view :class="data.weeksCheckIn[3] ? 'checked' : ''">
|
<view :class="data.weeksCheckIn[3] ? 'checked' : ''">
|
||||||
<image
|
<image
|
||||||
v-if="data.weeksCheckIn[3]"
|
v-if="data.weeksCheckIn[3]"
|
||||||
src="../static/checked-green2.png"
|
src="/static/checked-green2.png"
|
||||||
mode="widthFix"
|
mode="widthFix"
|
||||||
/>
|
/>
|
||||||
<view v-else></view>
|
<view v-else></view>
|
||||||
@@ -144,7 +144,7 @@ onMounted(async () => {
|
|||||||
<view :class="data.weeksCheckIn[4] ? 'checked' : ''">
|
<view :class="data.weeksCheckIn[4] ? 'checked' : ''">
|
||||||
<image
|
<image
|
||||||
v-if="data.weeksCheckIn[4]"
|
v-if="data.weeksCheckIn[4]"
|
||||||
src="../static/checked-green2.png"
|
src="/static/checked-green2.png"
|
||||||
mode="widthFix"
|
mode="widthFix"
|
||||||
/>
|
/>
|
||||||
<view v-else></view>
|
<view v-else></view>
|
||||||
@@ -153,7 +153,7 @@ onMounted(async () => {
|
|||||||
<view :class="data.weeksCheckIn[5] ? 'checked' : ''">
|
<view :class="data.weeksCheckIn[5] ? 'checked' : ''">
|
||||||
<image
|
<image
|
||||||
v-if="data.weeksCheckIn[5]"
|
v-if="data.weeksCheckIn[5]"
|
||||||
src="../static/checked-green2.png"
|
src="/static/checked-green2.png"
|
||||||
mode="widthFix"
|
mode="widthFix"
|
||||||
/>
|
/>
|
||||||
<view v-else></view>
|
<view v-else></view>
|
||||||
@@ -162,7 +162,7 @@ onMounted(async () => {
|
|||||||
<view :class="data.weeksCheckIn[6] ? 'checked' : ''">
|
<view :class="data.weeksCheckIn[6] ? 'checked' : ''">
|
||||||
<image
|
<image
|
||||||
v-if="data.weeksCheckIn[6]"
|
v-if="data.weeksCheckIn[6]"
|
||||||
src="../static/checked-green2.png"
|
src="/static/checked-green2.png"
|
||||||
mode="widthFix"
|
mode="widthFix"
|
||||||
/>
|
/>
|
||||||
<view v-else></view>
|
<view v-else></view>
|
||||||
@@ -196,16 +196,16 @@ onMounted(async () => {
|
|||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<view @click="startScoring">
|
<view @click="startScoring">
|
||||||
<image src="../static/start-scoring.png" mode="widthFix" />
|
<image src="/static/start-scoring.png" mode="widthFix" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="title" :style="{ marginBottom: 0 }">
|
<view class="title" :style="{ marginBottom: 0 }">
|
||||||
<image src="../static/point-book-title1.png" mode="widthFix" />
|
<image src="/static/point-book-title1.png" mode="widthFix" />
|
||||||
</view>
|
</view>
|
||||||
<view class="heat-map">
|
<view class="heat-map">
|
||||||
<image
|
<image
|
||||||
:src="bowTargetSrc || '../static/bow-target.png'"
|
:src="bowTargetSrc || '/static/bow-target.png'"
|
||||||
mode="widthFix"
|
mode="widthFix"
|
||||||
/>
|
/>
|
||||||
<image v-if="heatMapImageSrc" :src="heatMapImageSrc" mode="aspectFill" />
|
<image v-if="heatMapImageSrc" :src="heatMapImageSrc" mode="aspectFill" />
|
||||||
@@ -234,7 +234,7 @@ onMounted(async () => {
|
|||||||
.score {
|
.score {
|
||||||
padding-left: 25rpx;
|
padding-left: 25rpx;
|
||||||
padding-right: 25rpx;
|
padding-right: 25rpx;
|
||||||
background: url("../static/app-bg5.png") no-repeat top/contain;
|
background: url("/static/app-bg5.png") no-repeat top/contain;
|
||||||
}
|
}
|
||||||
.statistics {
|
.statistics {
|
||||||
border-radius: 25rpx;
|
border-radius: 25rpx;
|
||||||
|
|||||||
@@ -7,13 +7,13 @@ const checked = ref(false);
|
|||||||
|
|
||||||
const toSignUpPage = () => {
|
const toSignUpPage = () => {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/signup",
|
url: "/pages/signup/index",
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const toResetPasswordPage = () => {
|
const toResetPasswordPage = () => {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/reset-pwd",
|
url: "/pages/reset-pwd/index",
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -24,7 +24,7 @@ const signIn = () => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<image class="app-logo" src="../static/logo.png" mode="widthFix" />
|
<image class="app-logo" src="/static/logo.png" mode="widthFix" />
|
||||||
<text class="app-name">ARCX</text>
|
<text class="app-name">ARCX</text>
|
||||||
<InputRow type="text" placeholder="email" width="80vw" />
|
<InputRow type="text" placeholder="email" width="80vw" />
|
||||||
<InputRow type="password" placeholder="password" width="80vw" />
|
<InputRow type="password" placeholder="password" width="80vw" />
|
||||||
@@ -33,7 +33,7 @@ const signIn = () => {
|
|||||||
</view>
|
</view>
|
||||||
<SButton width="80vw" :onClick="signIn">login</SButton>
|
<SButton width="80vw" :onClick="signIn">login</SButton>
|
||||||
<view @click.stop="checked = !checked" class="agreement">
|
<view @click.stop="checked = !checked" class="agreement">
|
||||||
<image :src="`../static/${checked ? 'checked' : 'unchecked'}.png`" />
|
<image :src="`/static/${checked ? 'checked' : 'unchecked'}.png`" />
|
||||||
<text>i read and accept</text>
|
<text>i read and accept</text>
|
||||||
<view @click.stop="">user agreement</view>
|
<view @click.stop="">user agreement</view>
|
||||||
<text>and</text>
|
<text>and</text>
|
||||||
@@ -41,11 +41,11 @@ const signIn = () => {
|
|||||||
</view>
|
</view>
|
||||||
<view class="thrid-signin">
|
<view class="thrid-signin">
|
||||||
<view>
|
<view>
|
||||||
<image src="../static/google-icon.png" mode="widthFix" />
|
<image src="/static/google-icon.png" mode="widthFix" />
|
||||||
<text>login with google</text>
|
<text>login with google</text>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<image src="../static/apple-icon.png" mode="widthFix" />
|
<image src="/static/apple-icon.png" mode="widthFix" />
|
||||||
<text>login with apple</text>
|
<text>login with apple</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ import { defineStore } from "pinia";
|
|||||||
const defaultUser = {
|
const defaultUser = {
|
||||||
id: "",
|
id: "",
|
||||||
nickName: "user",
|
nickName: "user",
|
||||||
avatar: "../static/user-icon.png",
|
avatar: "/static/user-icon.png",
|
||||||
};
|
};
|
||||||
|
|
||||||
// 定义游戏相关的 store
|
// 定义游戏相关的 store
|
||||||
|
|||||||
Reference in New Issue
Block a user