feat:第二版ppt修改

This commit is contained in:
dzc committed 2026-01-13 10:47:02 +08:00
1 parent 2250f22672
commit 0c1a9e8620
9 files changed
+4475 -1614

No files matched your search

+1 -1
View File
@@ -7,4 +7,4 @@
"proseWrap": "never",
"htmlWhitespaceSensitivity": "strict",
"endOfLine": "auto"
}
}
+4082 -1391
View File
File diff suppressed because it is too large. Load diff
+185 -167
View File
@@ -1,39 +1,39 @@
{
"name" : "荷塘月色",
"appid" : "__UNI__5B53E65",
"description" : "聊天交友app",
"versionName" : "0.0.1",
"versionCode" : 2,
"transformPx" : false,
"app-plus" : {
"usingComponents" : true,
"nvueCompiler" : "uni-app",
"nvueStyleCompiler" : "uni-app",
"compilerVersion" : 3,
"nvueLaunchMode" : "fast",
"splashscreen" : {
"alwaysShowBeforeRender" : true,
"waiting" : true,
"autoclose" : true,
"delay" : 0
"name": "荷塘月色",
"appid": "__UNI__5B53E65",
"description": "聊天交友app",
"versionName": "0.0.1",
"versionCode": 2,
"transformPx": false,
"app-plus": {
"usingComponents": true,
"nvueCompiler": "uni-app",
"nvueStyleCompiler": "uni-app",
"compilerVersion": 3,
"nvueLaunchMode": "fast",
"splashscreen": {
"alwaysShowBeforeRender": true,
"waiting": true,
"autoclose": true,
"delay": 0
},
"safearea" : {
"bottom" : {
"offset" : "none"
"safearea": {
"bottom": {
"offset": "none"
}
},
"modules" : {
"Payment" : {},
"Share" : {},
"VideoPlayer" : {},
"OAuth" : {},
"Camera" : {},
"Geolocation" : {},
"FaceID" : {}
"modules": {
"Payment": {},
"Share": {},
"VideoPlayer": {},
"OAuth": {},
"Camera": {},
"Geolocation": {},
"FaceID": {}
},
"distribute" : {
"android" : {
"permissions" : [
"distribute": {
"android": {
"permissions": [
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
@@ -66,184 +66,202 @@
"<uses-permission android:name=\"android.permission.WRITE_SMS\"/>",
"<uses-permission android:name=\"android.permission.RECEIVE_USER_PRESENT\"/>"
],
"minSdkVersion" : 21,
"schemes" : "荷塘月色",
"excludePermissions" : [
"minSdkVersion": 21,
"schemes": "荷塘月色",
"excludePermissions": [
"<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>"
]
},
"ios" : {
"urlschemewhitelist" : [ "baidumap", "iosamap" ],
"dSYMs" : false,
"privacyDescription" : {
"NSPhotoLibraryUsageDescription" : "需要同意访问您的相册选取图片才能完善该条目",
"NSPhotoLibraryAddUsageDescription" : "需要同意访问您的相册才能保存该图片",
"NSCameraUsageDescription" : "需要同意访问您的摄像头拍摄照片才能完善该条目",
"NSUserTrackingUsageDescription" : "开启追踪并不会获取您在其它站点的隐私信息,该行为仅用于标识设备,保障服务安全和提升浏览体验"
"ios": {
"urlschemewhitelist": [
"baidumap",
"iosamap"
],
"dSYMs": false,
"privacyDescription": {
"NSPhotoLibraryUsageDescription": "需要同意访问您的相册选取图片才能完善该条目",
"NSPhotoLibraryAddUsageDescription": "需要同意访问您的相册才能保存该图片",
"NSCameraUsageDescription": "需要同意访问您的摄像头拍摄照片才能完善该条目",
"NSUserTrackingUsageDescription": "开启追踪并不会获取您在其它站点的隐私信息,该行为仅用于标识设备,保障服务安全和提升浏览体验"
},
"urltypes" : "荷塘月色",
"capabilities" : {
"entitlements" : {
"com.apple.developer.associated-domains" : [ "applinks:shopro.sheepjs.com" ]
"urltypes": "荷塘月色",
"capabilities": {
"entitlements": {
"com.apple.developer.associated-domains": [
"applinks:shopro.sheepjs.com"
]
}
},
"idfa" : true
"idfa": true
},
"sdkConfigs" : {
"speech" : {},
"ad" : {},
"oauth" : {},
"payment" : {
"weixin" : {
"__platform__" : [ "ios", "android" ],
"appid" : "wxae7a0c156da9383b",
"UniversalLinks" : "https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/"
"sdkConfigs": {
"speech": {},
"ad": {},
"oauth": {},
"payment": {
"weixin": {
"__platform__": [
"ios",
"android"
],
"appid": "wxae7a0c156da9383b",
"UniversalLinks": "https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/"
},
"alipay" : {
"__platform__" : [ "ios", "android" ]
"alipay": {
"__platform__": [
"ios",
"android"
]
}
},
"share" : {
"weixin" : {
"appid" : "wxae7a0c156da9383b",
"UniversalLinks" : "https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/"
"share": {
"weixin": {
"appid": "wxae7a0c156da9383b",
"UniversalLinks": "https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/"
}
},
"maps" : {},
"geolocation" : {
"system" : {
"__platform__" : [ "ios", "android" ]
"maps": {},
"geolocation": {
"system": {
"__platform__": [
"ios",
"android"
]
}
}
},
"orientation" : [ "portrait-primary" ],
"splashscreen" : {
"androidStyle" : "default",
"iosStyle" : "common",
"useOriginalMsgbox" : true,
"android" : {
"hdpi" : "unpackage/res/splash_screen/480x762.png",
"xhdpi" : "unpackage/res/splash_screen/720x1242.png",
"xxhdpi" : "unpackage/res/splash_screen/1080x1882.png"
"orientation": [
"portrait-primary"
],
"splashscreen": {
"androidStyle": "default",
"iosStyle": "common",
"useOriginalMsgbox": true,
"android": {
"hdpi": "unpackage/res/splash_screen/480x762.png",
"xhdpi": "unpackage/res/splash_screen/720x1242.png",
"xxhdpi": "unpackage/res/splash_screen/1080x1882.png"
}
},
"icons" : {
"android" : {
"hdpi" : "unpackage/res/icons/72x72.png",
"xhdpi" : "unpackage/res/icons/96x96.png",
"xxhdpi" : "unpackage/res/icons/144x144.png",
"xxxhdpi" : "unpackage/res/icons/192x192.png"
"icons": {
"android": {
"hdpi": "unpackage/res/icons/72x72.png",
"xhdpi": "unpackage/res/icons/96x96.png",
"xxhdpi": "unpackage/res/icons/144x144.png",
"xxxhdpi": "unpackage/res/icons/192x192.png"
},
"ios" : {
"appstore" : "unpackage/res/icons/1024x1024.png",
"ipad" : {
"app" : "unpackage/res/icons/76x76.png",
"app@2x" : "unpackage/res/icons/152x152.png",
"notification" : "unpackage/res/icons/20x20.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"proapp@2x" : "unpackage/res/icons/167x167.png",
"settings" : "unpackage/res/icons/29x29.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"spotlight" : "unpackage/res/icons/40x40.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png"
"ios": {
"appstore": "unpackage/res/icons/1024x1024.png",
"ipad": {
"app": "unpackage/res/icons/76x76.png",
"app@2x": "unpackage/res/icons/152x152.png",
"notification": "unpackage/res/icons/20x20.png",
"notification@2x": "unpackage/res/icons/40x40.png",
"proapp@2x": "unpackage/res/icons/167x167.png",
"settings": "unpackage/res/icons/29x29.png",
"settings@2x": "unpackage/res/icons/58x58.png",
"spotlight": "unpackage/res/icons/40x40.png",
"spotlight@2x": "unpackage/res/icons/80x80.png"
},
"iphone" : {
"app@2x" : "unpackage/res/icons/120x120.png",
"app@3x" : "unpackage/res/icons/180x180.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"notification@3x" : "unpackage/res/icons/60x60.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"settings@3x" : "unpackage/res/icons/87x87.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png",
"spotlight@3x" : "unpackage/res/icons/120x120.png"
"iphone": {
"app@2x": "unpackage/res/icons/120x120.png",
"app@3x": "unpackage/res/icons/180x180.png",
"notification@2x": "unpackage/res/icons/40x40.png",
"notification@3x": "unpackage/res/icons/60x60.png",
"settings@2x": "unpackage/res/icons/58x58.png",
"settings@3x": "unpackage/res/icons/87x87.png",
"spotlight@2x": "unpackage/res/icons/80x80.png",
"spotlight@3x": "unpackage/res/icons/120x120.png"
}
}
}
},
"nativePlugins" : {
"AP-FaceDetectModule" : {
"__plugin_info__" : {
"name" : "AP-FaceDetectModule",
"description" : "阿里云金融级实人认证SDK",
"platforms" : "Android,iOS",
"url" : "",
"android_package_name" : "",
"ios_bundle_id" : "",
"isCloud" : false,
"bought" : -1,
"pid" : "",
"parameters" : {}
"nativePlugins": {
"AP-FaceDetectModule": {
"__plugin_info__": {
"name": "AP-FaceDetectModule",
"description": "阿里云金融级实人认证SDK",
"platforms": "Android,iOS",
"url": "",
"android_package_name": "",
"ios_bundle_id": "",
"isCloud": false,
"bought": -1,
"pid": "",
"parameters": {}
}
}
}
},
"quickapp" : {},
"quickapp-native" : {
"icon" : "/static/logo.png",
"package" : "com.example.demo",
"features" : [
"quickapp": {},
"quickapp-native": {
"icon": "/static/logo.png",
"package": "com.example.demo",
"features": [
{
"name" : "system.clipboard"
"name": "system.clipboard"
}
]
},
"quickapp-webview" : {
"icon" : "/static/logo.png",
"package" : "com.example.demo",
"minPlatformVersion" : 1070,
"versionName" : "1.0.0",
"versionCode" : 100
"quickapp-webview": {
"icon": "/static/logo.png",
"package": "com.example.demo",
"minPlatformVersion": 1070,
"versionName": "1.0.0",
"versionCode": 100
},
"mp-weixin" : {
"appid" : "wx66186af0759f47c9",
"setting" : {
"urlCheck" : false,
"minified" : true,
"postcss" : true
"mp-weixin": {
"appid": "wx66186af0759f47c9",
"setting": {
"urlCheck": false,
"minified": true,
"postcss": true
},
"optimization" : {
"subPackages" : true
"optimization": {
"subPackages": true
},
"plugins" : {},
"lazyCodeLoading" : "requiredComponents",
"usingComponents" : {},
"permission" : {},
"requiredPrivateInfos" : [ "chooseAddress" ]
"plugins": {},
"lazyCodeLoading": "requiredComponents",
"usingComponents": {},
"permission": {},
"requiredPrivateInfos": [
"chooseAddress"
]
},
"mp-alipay" : {
"usingComponents" : true
"mp-alipay": {
"usingComponents": true
},
"mp-baidu" : {
"usingComponents" : true
"mp-baidu": {
"usingComponents": true
},
"mp-toutiao" : {
"usingComponents" : true
"mp-toutiao": {
"usingComponents": true
},
"mp-jd" : {
"usingComponents" : true
"mp-jd": {
"usingComponents": true
},
"h5" : {
"darkmode" : true,
"template" : "index.html",
"router" : {
"mode" : "history",
"base" : "/"
"h5": {
"darkmode": true,
"template": "index.html",
"router": {
"mode": "history",
"base": "/"
},
"sdkConfigs" : {
"maps" : {}
"sdkConfigs": {
"maps": {}
},
"async" : {
"timeout" : 20000
"async": {
"timeout": 20000
},
"title" : "聊天交友",
"optimization" : {
"treeShaking" : {
"enable" : true
"title": "聊天交友",
"optimization": {
"treeShaking": {
"enable": true
}
}
},
"vueVersion" : "3",
"_spaceID" : "192b4892-5452-4e1d-9f09-eee1ece40639",
"locale" : "zh-Hans",
"fallbackLocale" : "zh-Hans"
}
"vueVersion": "3",
"_spaceID": "192b4892-5452-4e1d-9f09-eee1ece40639",
"locale": "zh-Hans",
"fallbackLocale": "zh-Hans"
}
+14
View File
@@ -171,6 +171,13 @@
"navigationBarTitleText": "提现",
"navigationStyle": "custom"
}
},
{
"path": "pages/poster",
"style": {
"navigationBarTitleText": "海报",
"navigationStyle": "custom"
}
}
]
}
@@ -472,6 +479,13 @@
"navigationBarTitleText": "提现",
"navigationStyle": "custom"
}
},
{
"path": "pages/poster",
"style": {
"navigationBarTitleText": "海报",
"navigationStyle": "custom"
}
}
]
}
+9
View File
@@ -32,6 +32,11 @@
@click="handleLogin">
登 录 / 注 册
</view>
<!-- #ifdef MP-WEIXIN -->
<view class="flex items-center justify-end mt-25rpx w-full">
<text class="text-#D29E52 text-xs underline-amber m-r-30rpx" @tap="toHome">先不登录</text>
</view>
<!-- #endif -->
</view>
<view
@@ -168,6 +173,10 @@ const disposeLogin = async () => {
getApp().$vm.unloadStore();
};
const toHome = () => {
uni.reLaunch({ url: '/pages/wechat-tabbar/index' });
}
// 2-用户协议;3-隐私协议;
async function alert(type, title) {
const { data } = await RecentApi.getPromotionArticle({ id: type });
+68 -51
View File
@@ -53,6 +53,16 @@
<text class="text-color-theme text-sm">我的粉丝</text>
</view>
<view class="flex-1">
<navigator url="/pages/profile/my-moment" open-type="navigate" hover-class="navigator-hover">
<view class="flex-col-center">
<text class="text-color-theme font-600 text-lg">
{{ recentTotal.selfRecentTotal }}
</text>
<text class="text-color-theme text-sm">动态</text>
</view>
</navigator>
</view>
<view v-if="false" class="flex-1">
<navigator url="/pages/profile/recharge" open-type="navigate" hover-class="navigator-hover">
<view class="flex-col-center">
<text class="text-color-theme font-600 text-lg">
@@ -65,54 +75,36 @@
</view>
<!-- 开通vip -->
<navigator class="relative mx-4 overflow-hidden" url="/pages/profile/apply-vip" open-type="navigate"
hover-class="navigator-hover">
<image class="w-full block" src="/src/static/me/bg.png" mode="widthFix">
</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 v-if="!userInfo.memberVip?.vip" class="color-#222 font-size-sm font-bold">
开通会员 尊享特权
<!-- 邀请福利 -->
<navigator url="/pages/profile/apply-vip" open-type="navigate" hover-class="navigator-hover">
<view
class="flex justify-between items-center bg-gradient-to-r from-#d29e52 to-#333 py-2 px-4 rounded-2 mx-4 c-black">
<view class="flex items-center">
<image class="size-48rpx" src="/src/static/me/vip.png" mode="scaleToFill" />
<text v-if="!userInfo.memberVip?.vip" class="font-size-xs line-height-1em ml-2">开通会员 尊享特权</text>
<text v-else class="font-size-xs line-height-1em ml-2">
有效期至
{{ formatDate(userInfo.memberVip.expirationTime, "YYYY-MM-DD") }}
</text>
</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 v-if="!userInfo.memberVip?.vip">去开通</text>
<text v-else>去续费</text>
<text class="iconfont icon-youjiantou font-size-24rpx!"></text>
<view v-if="!userInfo.memberVip?.vip" class="bg-color-theme text-xs rounded-full py-1 px-3">立即开通</view>
<view v-else class="bg-color-theme text-xs rounded-full py-1 px-3">去续费</view>
</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 rounded-2.5 overflow-hidden" />
<text class="text-xs absolute bottom-20rpx font-size-24rpx" :style="{ color: v.titleColor }">{{ v.title
}}</text>
class="mx-4 mt-3 px-1 py-2 rounded-2 bg-gradient-to-b from-#111 to-#222 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-col-center size-150rpx rounded-8rpx"
:style="{ background: v.bgColor }" @tap="onTapMenu(v)">
<view class="iconfont font-size-48rpx" :class="v.icon"></view>
<view class="text-xs font-size-24rpx font-black mt-10rpx" :style="{ color: v.titleColor }">
{{ v.title }}
</view>
</view>
</view>
<!-- 用户相册 -->
<user-ablum :ablumList="ablumList" />
<!-- 邀请福利 -->
<view v-if="false" class="bg-gradient-to-r from-#d29e52 to-#333 py-2 px-4 rounded-2 mx-4 c-black">
<view class="flex justify-between items-center">
<view class="flex items-center">
<view class="bg-black rounded-full size-40rpx flex-row-center">
<uni-icons type="redo-filled" size="12" color="#d29e52"></uni-icons>
</view>
<text class="text-xs ml-2">邀请福利</text>
<text class="text-20rpx ml-4 mt-2rpx">邀请用户领会员</text>
</view>
<navigator url="/pages/wechat-tabbar/index" open-type="navigate" hover-class="navigator-hover">
<view class="bg-color-theme text-xs rounded-full py-1 px-3">查看福利</view>
</navigator>
</view>
</view>
<!-- 菜单 -->
<view class="mt-4 mx-1">
<wd-cell-group>
@@ -198,31 +190,40 @@ const recentTotal = ref({
collectTotal: 0,
userLikeItTotal: 0,
userLikeMeTotal: 0,
selfRecentTotal: 0,
});
const menu = ref([
{
title: '购买砖石',
titleColor: "#d08c30",
icon: "/static/me/menu_1.png",
titleColor: "#ffffff",
bg: "/static/me/menu_1.png",
bgColor: "#d08c30",
icon: "icon-lv_zuanshi_fill",
url: "/pages/profile/recharge"
},
{
title: '我的收益',
titleColor: "#654510",
icon: "/static/me/menu_2.png",
titleColor: "#ffffff",
bg: "/static/me/menu_2.png",
bgColor: "#654510",
icon: "icon-shouyiguanli",
url: "/pages/wechat-tabbar/index"
},
{
title: '邀请赚钱',
titleColor: "#f56251",
icon: "/static/me/menu_3.png",
url: "/pages/wechat/pages/inviter/index"
titleColor: "#ffffff",
bg: "/static/me/menu_3.png",
bgColor: "#f56251",
icon: "icon-zhuanqian",
url: "/pages/wechat/pages/poster"
},
{
title: '认证中心',
titleColor: "#23c0d7",
icon: "/static/me/menu_4.png",
titleColor: "#ffffff",
bg: "/static/me/menu_4.png",
bgColor: "#23c0d7",
icon: "icon-anquan",
url: "/pages/profile/verify-status"
}
])
@@ -252,6 +253,11 @@ onShow(async () => {
sheep.$store('user').updateUserData();
const { data: totalData } = await RecentApi.recentTotal();
recentTotal.value = totalData ?? {};
const { data: issueTotalData } = await RecentApi.recentIssueTotal();
recentTotal.value.selfRecentTotal = issueTotalData?.selfRecentTotal || 0;
getMemberSetting()
});
// type: 0-我喜欢 1-喜欢我
@@ -302,18 +308,29 @@ const goFeedback = () => {
};
// 菜单
const MenuCellList = [
const MenuCellList = ref([
// { title: '我的收益', value: '', icon: 'wallet', to: '/pages/wechat-tabbar/index' },
{ title: '访客记录', value: '', icon: 'browse', to: '/pages/profile/view-record' },
// { title: '认证中心', value: '', icon: 'discount-filled', to: '/pages/profile/verify-status' },
{ title: '联系方式', value: '修改微信需客服核实', icon: 'user', to: '/pages/profile/set-wechat' },
{ title: '我的动态', value: '', icon: 'star', to: '/pages/profile/my-moment' },
{ title: '联系方式', value: '', icon: 'user', to: '/pages/profile/set-wechat' },
// { title: '我的动态', value: '', icon: 'star', to: '/pages/profile/my-moment' },
{ title: '我的评价', value: '', icon: 'view-module', to: '', onClick: lookMyEvaluation },
{ title: '问题反馈', value: '', icon: 'backtop-rectangle', to: '', onClick: goFeedback },
{ title: '客服助手', value: '遇到问题点击这里', icon: 'service', to: `/pages/message/chat-box?chatIdx=-200&memberId=-200` },
{ title: '关注公众号', value: '领取福利、获取最新下载地址', icon: 'qrcode', to: '', onClick: subOfficial },
// { title: '设置', value: '', icon: 'setting1', to: '/pages/profile/setting' },
];
])
// 查询会员配置
const getMemberSetting = async () => {
const { data = null } = await RecentApi.reportType();
const autoWechatNumAuth = data?.autoWechatNumAuth || false;
const editChat = MenuCellList.value.find((item) => item.title === '联系方式');
if (editChat) {
editChat.value = autoWechatNumAuth ? '' : '修改微信需客服核实';
}
}
const onTapMenu = (item: any) => {
uni.navigateTo({
+95
View File
@@ -0,0 +1,95 @@
<template>
<wd-config-provider theme="dark">
<wd-navbar title="邀请海报" safeAreaInsetTop :bordered="false">
<template #left>
<navigator open-type="navigateBack" hover-class="navigator-hover">
<uni-icons type="back" size="30" color="#D29E52"></uni-icons>
</navigator>
</template>
</wd-navbar>
<view class="mx-20rpx mt-30rpx bg-color-dark rounded-12rpx px-6 py-4">
<image class="mt-30rpx" :src="state.posterPic" mode="widthFix" />
<view class="mt-30rpx flex justify-between items-center text-xs">
<view
class="flex-1 text-center px-2 py-8rpx border-1px border-solid rounded-full border-color-theme active_cl_bg-color-theme"
@tap="copyLink">
复制链接
</view>
<view class="w-30rpx" />
<view
class="flex-1 text-center px-2 py-8rpx border-1px border-solid rounded-full border-color-theme-dark bg-color-theme-dark active_cl_bg-color-theme"
@tap="savePoster">
保存海报
</view>
</view>
</view>
</wd-config-provider>
</template>
<script setup>
import { computed, reactive, ref } from 'vue';
import { onLoad, onShow } from '@dcloudio/uni-app';
import sheep from '@/sheep';
import BrokerageApi from '@/sheep/api/trade/brokerage';
const state = reactive({
posterPic: ''
})
const isLogin = computed(() => sheep.$store('user').isLogin && state.loginInfoStorage != null);
onShow(async () => {
sheep.$store('user').updateUserData();
state.loginInfoStorage = uni.getStorageSync('loginInfo') ?? null
if (isLogin.value) {
await getMiniProgramPoster()
}
})
// 获取分销海报
const getMiniProgramPoster = async () => {
try {
let { code, data } = await BrokerageApi.getBrokerageCode();
if (code != 0) throw new Error();
state.posterPic = data?.posterPic || '';
state.posterUrl = data?.url || '';
state.wechatNum = data?.txWechatNum ?? ''
} catch (error) {
console.error('|获取分销海报|,意外的错误:', error);
}
};
// 复制海报
const copyLink = () => {
uni.setClipboardData({
data: state.posterUrl,
success: () => {
uni.showToast({ title: '复制成功', icon: 'success' });
},
fail: (err) => {
uni.showToast({ title: '复制失败', icon: 'none' });
console.error('|复制链接|,意外的错误:', err);
},
});
};
// 保存海报
const savePoster = () => {
if (!state.posterPic) {
uni.showToast({ title: '海报不存在', icon: 'none' });
return;
}
uni.saveImageToPhotosAlbum({
filePath: state.posterPic,
success: () => {
uni.showToast({ title: '保存成功', icon: 'success' });
},
fail: (err) => {
uni.showToast({ title: '保存失败', icon: 'none' });
console.error('|保存海报|,意外的错误:', err);
},
});
};
</script>
+9
View File
@@ -117,6 +117,15 @@ const RecentApi = {
},
});
},
recentIssueTotal: () => {
return request({
url: '/member/recent/recent-issue-total',
method: 'GET',
custom: {
showLoading: false,
},
});
},
// 查看我的动态
myMomentList: (data: any) => {
return request({
+12 -4
View File
@@ -1,8 +1,8 @@
@font-face {
font-family: "iconfont"; /* Project id 5079650 */
src: url('https://at.alicdn.com/t/c/font_5079650_dlgclk5ww3.woff2?t=1767687032692') format('woff2'),
url('https://at.alicdn.com/t/c/font_5079650_dlgclk5ww3.woff?t=1767687032692') format('woff'),
url('https://at.alicdn.com/t/c/font_5079650_dlgclk5ww3.ttf?t=1767687032692') format('truetype');
src: url('https://at.alicdn.com/t/c/font_5079650_rw94mc6z8v.woff2?t=1768268079258') format('woff2'),
url('https://at.alicdn.com/t/c/font_5079650_rw94mc6z8v.woff?t=1768268079258') format('woff'),
url('https://at.alicdn.com/t/c/font_5079650_rw94mc6z8v.ttf?t=1768268079258') format('truetype');
}
.iconfont {
@@ -13,12 +13,20 @@
-moz-osx-font-smoothing: grayscale;
}
.icon-shouyiguanli:before {
content: "\e606";
}
.icon-zhuanqian:before {
content: "\e623";
}
.icon-youjiantou:before {
content: "\e744";
}
.icon-a-ziyuan592:before {
content: "\e78e";
content: "\e78e";
}
.icon-renzheng1:before {