feat: add virtual resource payments and optimize images

This commit is contained in:
王鹏
2026-07-28 13:35:23 +08:00
parent ab281be02a
commit d14f005d34
35 changed files with 462 additions and 2125 deletions

View File

@@ -1,10 +1,10 @@
<template>
<view class="my">
<image src="https://v2.api-m.com/api/wallpaper?return=302" mode="aspectFill" class="my_bg"></image>
<image src="/static/mine/default-profile-bg.jpg" mode="aspectFill" class="my_bg"></image>
<view class="header_cell">
<view style="margin-top: 40rpx;" class="user_info">
<view class="flex justify-center align-center">
<image src="https://v2.api-m.com/api/head?return=302" mode="aspectFill" class="user_photo"></image>
<image src="/static/mine/default-avatar.jpg" mode="aspectFill" class="user_photo"></image>
<view>
<view class="text-black text-bold">
<text v-if="userid" class="text-xl" style="font-weight: bold;">微信用户_{{userid}}</text>
@@ -53,7 +53,7 @@
<!-- <view style="width: 100%; margin-top: 30rpx;">
<ad-custom unit-id="adunit-ff28399b17818338" ad-intervals="30" ></ad-custom>
</view> -->
<view class="mt30 grid text-center col-4 bg-white"
<view class="mt30 grid text-center col-3 bg-white"
style="padding: 30rpx 0; border-radius: 15rpx;row-gap: 30rpx;">
<view @click="exchange()">
<view class="cell_3_icon flex justify-center align-center"><text
@@ -65,16 +65,11 @@
class="text-cyan cuIcon-selection"></text></view>
<view>兑换记录</view>
</view>
<view @click="integralRecord()">
<view class="cell_3_icon flex justify-center align-center"><text class="text-cyan cuIcon-coin"></text>
</view>
<view>积分记录</view>
</view>
<view @click="recharge()">
<view class="cell_3_icon flex justify-center align-center"><text
class="text-olive cuIcon-moneybag"></text></view>
<view>充值积分</view>
<view @click="integralRecord()">
<view class="cell_3_icon flex justify-center align-center"><text class="text-cyan cuIcon-coin"></text>
</view>
<view>消费记录</view>
</view>
</view>
<!-- 功能列表 -->
@@ -108,7 +103,7 @@
<image class="blogui-img" src="https://img.yidaima.cn/feast/more.svg" mode=""></image>
</view>
</view>
<view class="metergasis-li" hover-class="fengrui-li-hover" @tap="categoryNew()">
<view v-if="false" class="metergasis-li" hover-class="fengrui-li-hover" @tap="categoryNew()">
<view class="metergasis-li-img">
<image class="blogui-img" src="https://img.yidaima.cn/feast/weixin.svg" mode="aspectFill">
</image>
@@ -135,19 +130,6 @@
<image class="blogui-img" src="https://img.yidaima.cn/feast/more.svg" mode=""></image>
</view>
</view>
<view class="metergasis-li" hover-class="fengrui-li-hover" @tap="guanzhu(2)">
<view style="width: 55rpx; height: 55rpx;" class="metergasis-li-img">
<image class="blogui-img" src="https://img.yidaima.cn/feast/adduser.svg" mode="aspectFill">
</image>
</view>
<view style="margin-left: 27rpx;" class="metergasis-li-h">
添加好友
</view>
<text class="metergasis-li-h2">添加成功可获得 {{addUserNumber}} 积分</text>
<view class="metergasis-li-rgth">
<image class="blogui-img" src="https://img.yidaima.cn/feast/more.svg" mode=""></image>
</view>
</view>
<view class="metergasis-li" hover-class="fengrui-li-hover" @tap="lottery()">
<view class="metergasis-li-img">
<image class="blogui-img" src="http://imgs.emoboy.vip/static/mine/choujiang.svg" mode="aspectFill"></image>
@@ -189,7 +171,6 @@
<script>
import {
autoLoginWx,
wxLogin,
getUser,
addAppIntegra
@@ -218,8 +199,7 @@
adIntegral: 0,
adYesNumber: 0,
adNumber: 0,
newUserNumber: 0,
addUserNumber: 0
newUserNumber: 0
};
},
// 分享好友配置
@@ -319,9 +299,6 @@
exchange(){
this.$tab.navigateTo('/pages/tool/exchange')
},
recharge() {
this.$tab.navigateTo('/pages/mine/recharge')
},
categoryNew(){
uni.switchTab({
url: '/pages/search/index'
@@ -428,7 +405,6 @@
that.adIntegral = response.ad.split(",")[0]
that.adNumber = response.ad.split(",")[1]
that.newUserNumber = response.newUserNumber
that.addUserNumber = response.addUserNumber
})
},
autologin() {
@@ -437,25 +413,15 @@
uni.login({
provider: 'weixin',
success: loginRes => {
//获取openid
autoLoginWx(loginRes.code).then(response => {
var antoInfo = JSON.parse(response.msg)
console.log(antoInfo)
console.log(antoInfo.openid)
//登录
wxLogin({
openId: antoInfo.openid
}).then(logininfo => {
console.log(logininfo)
setToken(logininfo.token)
//设置用户信息
this.$store.dispatch('GetInfo').then(res => {
that.userid = uni.getStorageSync("userInfo").userId
that.getUserInfo()
})
wxLogin({
code: loginRes.code
}).then(logininfo => {
setToken(logininfo.token)
this.$store.dispatch('GetInfo').then(res => {
that.userid = uni.getStorageSync("userInfo").userId
that.getUserInfo()
})
})
}
});
},
@@ -670,4 +636,4 @@
}
}
}
</style>
</style>