更新代码工程
This commit is contained in:
@@ -26,7 +26,7 @@ const onExpandChange = (index, expand) => {
|
||||
|
||||
const toListPage = () => {
|
||||
uni.navigateTo({
|
||||
url: "/pages/list",
|
||||
url: "/pages/list/index",
|
||||
});
|
||||
};
|
||||
const onSelect = (itemIndex, value) => {
|
||||
@@ -49,7 +49,7 @@ const toEditPage = () => {
|
||||
amountGroup: amountGroup.value,
|
||||
});
|
||||
uni.navigateTo({
|
||||
url: "/pages/edit",
|
||||
url: "/pages/edit/index",
|
||||
});
|
||||
} else {
|
||||
uni.showToast({
|
||||
|
||||
@@ -68,7 +68,7 @@ const goBack = () => {
|
||||
});
|
||||
} else {
|
||||
uni.redirectTo({
|
||||
url: "/pages/index",
|
||||
url: "/pages/index/index",
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -126,7 +126,7 @@ onLoad(async (options) => {
|
||||
>
|
||||
<text>Stability</text>
|
||||
<image
|
||||
src="../static/s-question-mark.png"
|
||||
src="/static/s-question-mark.png"
|
||||
mode="widthFix"
|
||||
class="question-mark"
|
||||
/>
|
||||
@@ -154,7 +154,7 @@ onLoad(async (options) => {
|
||||
@click="() => openTip(3)"
|
||||
v-if="user.id === record.user.id"
|
||||
>
|
||||
<image src="../static/edit.png" mode="widthFix" />
|
||||
<image src="/static/edit.png" mode="widthFix" />
|
||||
<text>Notes</text>
|
||||
</button>
|
||||
</view>
|
||||
@@ -163,7 +163,7 @@ onLoad(async (options) => {
|
||||
<text>Distribution</text>
|
||||
<!-- <button hover-class="none" @click="() => openTip(2)">
|
||||
<image
|
||||
src="../static/s-question-mark.png"
|
||||
src="/static/s-question-mark.png"
|
||||
mode="widthFix"
|
||||
class="question-mark"
|
||||
/>
|
||||
|
||||
@@ -55,7 +55,7 @@ const onSubmit = async () => {
|
||||
);
|
||||
if (res.record_id) {
|
||||
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>
|
||||
</view>
|
||||
<view @click="deleteArrow">
|
||||
<image src="../static/delete.png" />
|
||||
<image src="/static/delete.png" />
|
||||
<text>Delete</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -101,11 +101,11 @@ const confirmRemove = async () => {
|
||||
<view>
|
||||
<view>
|
||||
<text>Take a photo</text>
|
||||
<image src="../static/back-grey.png" mode="widthFix" />
|
||||
<image src="/static/back-grey.png" mode="widthFix" />
|
||||
</view>
|
||||
<view>
|
||||
<text>Choose photo</text>
|
||||
<image src="../static/back-grey.png" mode="widthFix" />
|
||||
<image src="/static/back-grey.png" mode="widthFix" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -117,7 +117,7 @@ const confirmRemove = async () => {
|
||||
>
|
||||
<view class="selector">
|
||||
<view @click="() => (showModal = false)">
|
||||
<image src="../static/close-grey.png" mode="widthFix" />
|
||||
<image src="/static/close-grey.png" mode="widthFix" />
|
||||
</view>
|
||||
<EditOption
|
||||
v-show="selectorIndex === 0"
|
||||
|
||||
@@ -79,19 +79,19 @@ const onListLoading = async (page) => {
|
||||
<text :style="{ color: bowType.name ? '#000' : '#999' }">{{
|
||||
bowType.name || "Please select"
|
||||
}}</text>
|
||||
<image src="../static/arrow-grey.png" mode="widthFix" />
|
||||
<image src="/static/arrow-grey.png" mode="widthFix" />
|
||||
</view>
|
||||
<view @click="() => openSelector(1)">
|
||||
<text :style="{ color: distance ? '#000' : '#999' }">{{
|
||||
distance ? distance + " m" : "Please select"
|
||||
}}</text>
|
||||
<image src="../static/arrow-grey.png" mode="widthFix" />
|
||||
<image src="/static/arrow-grey.png" mode="widthFix" />
|
||||
</view>
|
||||
<view @click="() => openSelector(2)">
|
||||
<text :style="{ color: bowtargetType.name ? '#000' : '#999' }">{{
|
||||
bowtargetType.name || "Please select"
|
||||
}}</text>
|
||||
<image src="../static/arrow-grey.png" mode="widthFix" />
|
||||
<image src="/static/arrow-grey.png" mode="widthFix" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="point-records">
|
||||
@@ -111,7 +111,7 @@ const onListLoading = async (page) => {
|
||||
|
||||
<style scoped>
|
||||
.list {
|
||||
background: url("../static/app-bg3.png") no-repeat top/contain;
|
||||
background: url("/static/app-bg3.png") no-repeat top/contain;
|
||||
}
|
||||
.list-header {
|
||||
height: 40px;
|
||||
|
||||
+10
-10
@@ -18,13 +18,13 @@ const statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
|
||||
|
||||
const toEditPage = (type) => {
|
||||
uni.navigateTo({
|
||||
url: "/pages/edit-profile?type=" + type,
|
||||
url: "/pages/edit-profile/index?type=" + type,
|
||||
});
|
||||
};
|
||||
|
||||
const toSignInPage = () => {
|
||||
uni.navigateTo({
|
||||
url: "/pages/signin",
|
||||
url: "/pages/signin/index",
|
||||
});
|
||||
};
|
||||
</script>
|
||||
@@ -39,25 +39,25 @@ const toSignInPage = () => {
|
||||
<view class="header">
|
||||
<image :src="user.avatar" mode="widthFix" />
|
||||
<view @click="editAvatar">
|
||||
<image src="../static/pen-yellow.png" mode="widthFix" />
|
||||
<image src="/static/pen-yellow.png" mode="widthFix" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="body">
|
||||
<view>
|
||||
<view @click="toEditPage('Name')">
|
||||
<image src="../static/user-yellow.png" mode="widthFix" />
|
||||
<image src="/static/user-yellow.png" mode="widthFix" />
|
||||
<text>Name</text>
|
||||
<image src="../static/back-grey.png" mode="widthFix" />
|
||||
<image src="/static/back-grey.png" mode="widthFix" />
|
||||
</view>
|
||||
<view @click="toEditPage('Email')">
|
||||
<image src="../static/email-yellow.png" mode="widthFix" />
|
||||
<image src="/static/email-yellow.png" mode="widthFix" />
|
||||
<text>Email</text>
|
||||
<image src="../static/back-grey.png" mode="widthFix" />
|
||||
<image src="/static/back-grey.png" mode="widthFix" />
|
||||
</view>
|
||||
<view @click="toEditPage('Password')">
|
||||
<image src="../static/password-yellow.png" mode="widthFix" />
|
||||
<image src="/static/password-yellow.png" mode="widthFix" />
|
||||
<text>Password</text>
|
||||
<image src="../static/back-grey.png" mode="widthFix" />
|
||||
<image src="/static/back-grey.png" mode="widthFix" />
|
||||
</view>
|
||||
</view>
|
||||
<view @click="toSignInPage">Log out</view>
|
||||
@@ -74,7 +74,7 @@ const toSignInPage = () => {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
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%;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
+17
-17
@@ -32,10 +32,10 @@ const heatMapImageSrc = ref(""); // 存储热力图图片地址
|
||||
const startScoring = () => {
|
||||
if (user.value.id)
|
||||
return uni.navigateTo({
|
||||
url: "/pages/create",
|
||||
url: "/pages/create/index",
|
||||
});
|
||||
uni.navigateTo({
|
||||
url: "/pages/signin",
|
||||
url: "/pages/signin/index",
|
||||
});
|
||||
};
|
||||
|
||||
@@ -59,7 +59,7 @@ watch(
|
||||
const signin = () => {
|
||||
if (!user.value.id) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/signin",
|
||||
url: "/pages/signin/index",
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -94,21 +94,21 @@ onMounted(async () => {
|
||||
borderColor="#333"
|
||||
/>
|
||||
<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 v-else>
|
||||
<image src="../static/user-icon.png" mode="widthFix" />
|
||||
<image src="/static/user-icon.png" mode="widthFix" />
|
||||
<text>Hello~</text>
|
||||
</block>
|
||||
</view>
|
||||
<view class="daily-signin">
|
||||
<view>
|
||||
<image src="../static/week-check.png" />
|
||||
<image src="/static/week-check.png" />
|
||||
</view>
|
||||
<view :class="data.weeksCheckIn[0] ? 'checked' : ''">
|
||||
<image
|
||||
v-if="data.weeksCheckIn[0]"
|
||||
src="../static/checked-green2.png"
|
||||
src="/static/checked-green2.png"
|
||||
mode="widthFix"
|
||||
/>
|
||||
<view v-else></view>
|
||||
@@ -117,7 +117,7 @@ onMounted(async () => {
|
||||
<view :class="data.weeksCheckIn[1] ? 'checked' : ''">
|
||||
<image
|
||||
v-if="data.weeksCheckIn[1]"
|
||||
src="../static/checked-green2.png"
|
||||
src="/static/checked-green2.png"
|
||||
mode="widthFix"
|
||||
/>
|
||||
<view v-else></view>
|
||||
@@ -126,7 +126,7 @@ onMounted(async () => {
|
||||
<view :class="data.weeksCheckIn[2] ? 'checked' : ''">
|
||||
<image
|
||||
v-if="data.weeksCheckIn[2]"
|
||||
src="../static/checked-green2.png"
|
||||
src="/static/checked-green2.png"
|
||||
mode="widthFix"
|
||||
/>
|
||||
<view v-else></view>
|
||||
@@ -135,7 +135,7 @@ onMounted(async () => {
|
||||
<view :class="data.weeksCheckIn[3] ? 'checked' : ''">
|
||||
<image
|
||||
v-if="data.weeksCheckIn[3]"
|
||||
src="../static/checked-green2.png"
|
||||
src="/static/checked-green2.png"
|
||||
mode="widthFix"
|
||||
/>
|
||||
<view v-else></view>
|
||||
@@ -144,7 +144,7 @@ onMounted(async () => {
|
||||
<view :class="data.weeksCheckIn[4] ? 'checked' : ''">
|
||||
<image
|
||||
v-if="data.weeksCheckIn[4]"
|
||||
src="../static/checked-green2.png"
|
||||
src="/static/checked-green2.png"
|
||||
mode="widthFix"
|
||||
/>
|
||||
<view v-else></view>
|
||||
@@ -153,7 +153,7 @@ onMounted(async () => {
|
||||
<view :class="data.weeksCheckIn[5] ? 'checked' : ''">
|
||||
<image
|
||||
v-if="data.weeksCheckIn[5]"
|
||||
src="../static/checked-green2.png"
|
||||
src="/static/checked-green2.png"
|
||||
mode="widthFix"
|
||||
/>
|
||||
<view v-else></view>
|
||||
@@ -162,7 +162,7 @@ onMounted(async () => {
|
||||
<view :class="data.weeksCheckIn[6] ? 'checked' : ''">
|
||||
<image
|
||||
v-if="data.weeksCheckIn[6]"
|
||||
src="../static/checked-green2.png"
|
||||
src="/static/checked-green2.png"
|
||||
mode="widthFix"
|
||||
/>
|
||||
<view v-else></view>
|
||||
@@ -196,16 +196,16 @@ onMounted(async () => {
|
||||
</view>
|
||||
<view>
|
||||
<view @click="startScoring">
|
||||
<image src="../static/start-scoring.png" mode="widthFix" />
|
||||
<image src="/static/start-scoring.png" mode="widthFix" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<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 class="heat-map">
|
||||
<image
|
||||
:src="bowTargetSrc || '../static/bow-target.png'"
|
||||
:src="bowTargetSrc || '/static/bow-target.png'"
|
||||
mode="widthFix"
|
||||
/>
|
||||
<image v-if="heatMapImageSrc" :src="heatMapImageSrc" mode="aspectFill" />
|
||||
@@ -234,7 +234,7 @@ onMounted(async () => {
|
||||
.score {
|
||||
padding-left: 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 {
|
||||
border-radius: 25rpx;
|
||||
|
||||
@@ -7,13 +7,13 @@ const checked = ref(false);
|
||||
|
||||
const toSignUpPage = () => {
|
||||
uni.navigateTo({
|
||||
url: "/pages/signup",
|
||||
url: "/pages/signup/index",
|
||||
});
|
||||
};
|
||||
|
||||
const toResetPasswordPage = () => {
|
||||
uni.navigateTo({
|
||||
url: "/pages/reset-pwd",
|
||||
url: "/pages/reset-pwd/index",
|
||||
});
|
||||
};
|
||||
|
||||
@@ -24,7 +24,7 @@ const signIn = () => {
|
||||
|
||||
<template>
|
||||
<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>
|
||||
<InputRow type="text" placeholder="email" width="80vw" />
|
||||
<InputRow type="password" placeholder="password" width="80vw" />
|
||||
@@ -33,7 +33,7 @@ const signIn = () => {
|
||||
</view>
|
||||
<SButton width="80vw" :onClick="signIn">login</SButton>
|
||||
<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>
|
||||
<view @click.stop="">user agreement</view>
|
||||
<text>and</text>
|
||||
@@ -41,11 +41,11 @@ const signIn = () => {
|
||||
</view>
|
||||
<view class="thrid-signin">
|
||||
<view>
|
||||
<image src="../static/google-icon.png" mode="widthFix" />
|
||||
<image src="/static/google-icon.png" mode="widthFix" />
|
||||
<text>login with google</text>
|
||||
</view>
|
||||
<view>
|
||||
<image src="../static/apple-icon.png" mode="widthFix" />
|
||||
<image src="/static/apple-icon.png" mode="widthFix" />
|
||||
<text>login with apple</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user