fix:版本号,我看过滑动
This commit is contained in:
1 parent
cdf1013eba
commit
2250f22672
6 files changed
+47
-33
No files matched your search
@@ -6,8 +6,8 @@ SHOPRO_API_PATH=/app-api
|
||||
|
||||
# 后端接口 - 测试环境(通过 process.env.NODE_ENV == development)
|
||||
# SHOPRO_DEV_BASE_URL=http://127.0.0.1:48083
|
||||
SHOPRO_DEV_BASE_URL = https://chatapi.zianxin.com
|
||||
# SHOPRO_DEV_BASE_URL=https://dzc001.fy.takin.cc
|
||||
# SHOPRO_DEV_BASE_URL = https://chatapi.zianxin.com
|
||||
SHOPRO_DEV_BASE_URL=https://dzc001.fy.takin.cc
|
||||
|
||||
# 后端接口 - 正式环境(通过 process.env.NODE_ENV != development)
|
||||
SHOPRO_BASE_URL=https://chatapi.zianxin.com
|
||||
|
||||
+22
-13
@@ -26,19 +26,28 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { useMessage } from '@/uni_modules/wot-design-uni';
|
||||
import RecentApi from '@/sheep/api/member/recent';
|
||||
import packageInfo from '@/../package.json';
|
||||
import { ref } from "vue"
|
||||
import { onLoad, onShow } from '@dcloudio/uni-app';
|
||||
|
||||
const { version } = packageInfo;
|
||||
const message = useMessage();
|
||||
import { useMessage } from '@/uni_modules/wot-design-uni';
|
||||
import RecentApi from '@/sheep/api/member/recent';
|
||||
|
||||
// 2-用户协议;3-隐私协议;
|
||||
async function alert(type: number | string, title: string = '') {
|
||||
const { data } = await RecentApi.getPromotionArticle({ id: type });
|
||||
message.alert({
|
||||
msg: data.content.replace(/<\/?[^>]+>/g, ''),
|
||||
title,
|
||||
});
|
||||
}
|
||||
const message = useMessage();
|
||||
const version = ref('0.0.0');
|
||||
|
||||
onShow(() => {
|
||||
const systemInfo = uni.getSystemInfoSync();
|
||||
// #ifdef APP-PLUS
|
||||
version.value = systemInfo.appWgtVersion ?? "0.0.0";
|
||||
// #endif
|
||||
})
|
||||
|
||||
// 2-用户协议;3-隐私协议;
|
||||
async function alert(type: number | string, title: string = '') {
|
||||
const { data } = await RecentApi.getPromotionArticle({ id: type });
|
||||
message.alert({
|
||||
msg: data.content.replace(/<\/?[^>]+>/g, ''),
|
||||
title,
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<wd-config-provider theme="dark">
|
||||
<wd-config-provider class="h-full flex-col" theme="dark">
|
||||
<wd-navbar title="" safeAreaInsetTop :bordered="false">
|
||||
<template #left>
|
||||
<uni-icons type="back" size="30" color="#D29E52" @click="back"></uni-icons>
|
||||
@@ -11,17 +11,17 @@
|
||||
</template>
|
||||
</wd-navbar>
|
||||
|
||||
<swiper :current="current" style="height: calc(100vh - 44rpx - 100rpx)"
|
||||
@change="(e) => (current = e.detail.current)" :duration="200">
|
||||
<swiper class="flex-1 overflow-hidden" :current="current" @change="(e) => (current = e.detail.current)"
|
||||
:duration="200">
|
||||
<swiper-item>
|
||||
<scroll-list :loadMoreStatus="loadMoreStatus0" @refresh="refreshList0" @loadMore="listLoadMore0"
|
||||
:show-scrollbar="false" :refresherEnabled="false">
|
||||
<scroll-list class="h-full" :loadMoreStatus="loadMoreStatus0" @refresh="refreshList0" @loadMore="listLoadMore0"
|
||||
:show-scrollbar="false" :refresherEnabled="true">
|
||||
<user-card v-for="user in listData0" :key="user.id" :data="user" @click="detail(user)" />
|
||||
</scroll-list>
|
||||
</swiper-item>
|
||||
<swiper-item>
|
||||
<scroll-list :loadMoreStatus="loadMoreStatus1" @refresh="refreshList1" @loadMore="listLoadMore1"
|
||||
:show-scrollbar="false" :refresherEnabled="false">
|
||||
<scroll-list class="h-full" :loadMoreStatus="loadMoreStatus1" @refresh="refreshList1" @loadMore="listLoadMore1"
|
||||
:show-scrollbar="false" :refresherEnabled="true">
|
||||
<user-card v-for="user in listData1" :key="user.id" :data="user" @click="detail(user)" />
|
||||
</scroll-list>
|
||||
</swiper-item>
|
||||
@@ -30,7 +30,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { onLoad } from '@dcloudio/uni-app';
|
||||
import { onLoad, onShow } from '@dcloudio/uni-app';
|
||||
import { onMounted, ref } from 'vue';
|
||||
import segmented from '@/sheep/components/segmented/segmented.vue';
|
||||
import UserCard from '@/sheep/components/user-card/user-card.vue';
|
||||
@@ -61,7 +61,7 @@ onLoad((options: any) => {
|
||||
current.value = type;
|
||||
});
|
||||
|
||||
onMounted(() => {
|
||||
onShow(() => {
|
||||
refreshList0();
|
||||
refreshList1();
|
||||
});
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<scroll-list style="height: calc(100dvh - 44px - 50px - 42px)" :loadMoreStatus="loadMoreStatus_seenMe"
|
||||
@refresh="refreshList_seenMe" @loadMore="listLoadMore_seenMe">
|
||||
<view class="h-10rpx"></view>
|
||||
<view-record-item :is-dim="!userInfo.value?.memberVip?.vip" v-if="listData_seenMe.length"
|
||||
<view-record-item :is-dim="!userInfo?.memberVip?.vip" v-if="listData_seenMe.length"
|
||||
v-for="user in listData_seenMe" :record="user" @click="detail(user)" />
|
||||
</scroll-list>
|
||||
</wd-tab>
|
||||
|
||||
@@ -71,19 +71,24 @@
|
||||
</image>
|
||||
<view class="z-100 absolute top-16rpx left-24rpx flex items-center">
|
||||
<image class="size-48rpx" src="/src/static/me/vip.png" mode="scaleToFill" />
|
||||
<view class="color-#222 font-size-sm font-bold">
|
||||
<view v-if="!userInfo.memberVip?.vip" class="color-#222 font-size-sm font-bold">
|
||||
开通会员 尊享特权
|
||||
</view>
|
||||
<view v-else class="color-#222 font-size-sm font-bold">
|
||||
有效期至
|
||||
{{ formatDate(userInfo.memberVip.expirationTime, "YYYY-MM-DD") }}
|
||||
</view>
|
||||
</view>
|
||||
<view class="absolute right-18rpx top-18rpx flex items-center text-color-theme font-size-24rpx">
|
||||
<text>去开通</text>
|
||||
<text v-if="!userInfo.memberVip?.vip">去开通</text>
|
||||
<text v-else>去续费</text>
|
||||
<text class="iconfont icon-youjiantou font-size-24rpx!"></text>
|
||||
</view>
|
||||
</navigator>
|
||||
<view
|
||||
class="mx-4 px-1 py-2 rounded-b-2 bg-gradient-to-b from-#111 to-#222 b-b-4 b-solid b-t-#D29E52/60 b-l-#D29E52/40 b-r-#D29E52/40 b-b-#D29E52/20 flex items-center justify-evenly">
|
||||
<view v-for="(v, i) in menu" :key="i" class="flex flex-col-center size-150rpx relative" @tap="onTapMenu(v)">
|
||||
<image :src="v.icon" mode="aspectFill" class="size-full" />
|
||||
<image :src="v.icon" mode="aspectFill" class="size-full rounded-2.5 overflow-hidden" />
|
||||
<text class="text-xs absolute bottom-20rpx font-size-24rpx" :style="{ color: v.titleColor }">{{ v.title
|
||||
}}</text>
|
||||
</view>
|
||||
@@ -199,25 +204,25 @@ const menu = ref([
|
||||
{
|
||||
title: '购买砖石',
|
||||
titleColor: "#d08c30",
|
||||
icon: "/src/static/me/menu_1.png",
|
||||
icon: "/static/me/menu_1.png",
|
||||
url: "/pages/profile/recharge"
|
||||
},
|
||||
{
|
||||
title: '我的收益',
|
||||
titleColor: "#654510",
|
||||
icon: "/src/static/me/menu_2.png",
|
||||
icon: "/static/me/menu_2.png",
|
||||
url: "/pages/wechat-tabbar/index"
|
||||
},
|
||||
{
|
||||
title: '邀请赚钱',
|
||||
titleColor: "#f56251",
|
||||
icon: "/src/static/me/menu_3.png",
|
||||
icon: "/static/me/menu_3.png",
|
||||
url: "/pages/wechat/pages/inviter/index"
|
||||
},
|
||||
{
|
||||
title: '认证中心',
|
||||
titleColor: "#23c0d7",
|
||||
icon: "/src/static/me/menu_4.png",
|
||||
icon: "/static/me/menu_4.png",
|
||||
url: "/pages/profile/verify-status"
|
||||
}
|
||||
])
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
}
|
||||
|
||||
.icon-a-ziyuan592:before {
|
||||
content: "\e78e";
|
||||
content: "\e78e";
|
||||
}
|
||||
|
||||
.icon-renzheng1:before {
|
||||
|
||||
Reference in new issue
Block a user