Commit 5df2d07e authored by youjie's avatar youjie

修复bug

parent 8e95f01a
......@@ -52,11 +52,12 @@
<view>2025.02-2025.08</view>
</view>
<view class="userHeadCostChart">
// <mrsongCharts
// type='ring'
// align='center'
// :config="config"
// :options="options" />
<!--
<mrsongCharts
type='ring'
align='center'
:config="config"
:options="options" />-->
</view>
</view>
</view>
......
......@@ -4,7 +4,7 @@
<view class="hapPasDetNum">{{PassbookAata.type==1?'+':'-'}}{{ PassbookAata.money }}</view>
<view class="hapPasDetBox">
<view class="hapPasDetImg row" @click="goProduct">
<image mode="aspectFit" :src="PassbookAata.imgCover" />
<image mode="scaleToFill" :src="PassbookAata.imgCover" />
<view class="col">{{ PassbookAata.lineName }}</view>
</view>
<view class="row hapPasDetText">
......@@ -52,18 +52,15 @@
data() {
return {
scrollTop: 0,
b2b_user_info: {},
mall_UserInfo: {},
PassbookAata:{},
};
},
onLoad(option) {
if(option.data){
this.PassbookAata = decodeURIComponent(option.data)
if(option.datas){
this.PassbookAata = JSON.parse(
decodeURIComponent(option.data)
)
}
this.b2b_user_info = uni.getStorageSync('b2b_user');
this.mall_UserInfo = uni.getStorageSync("mall_UserInfo");
this.showAuth = !this.mall_UserInfo || !this.b2b_user_info;
},
onShow() {
uni.setNavigationBarTitle({
......@@ -71,20 +68,10 @@
})
},
methods: {
async handleCopy(text){
try {
await uni.copyText(text);
uni.showToast({
title: '复制成功',
icon: 'success',
});
} catch (err) {
uni.showToast({
title: '复制失败',
icon: 'none',
duration: 1500
});
}
handleCopy(text){
uni.setClipboardData({
data: String(text),
});
},
goProduct(){
return
......@@ -104,7 +91,7 @@
color: #080A0A;
line-height: 70rpx;
text-align: center;
padding: 39rpx 0 40rpx 0;
padding: 0rpx 0 40rpx 0;
}
.hapPasDetNum{
font-weight: bold;
......
......@@ -232,12 +232,11 @@
this.showTime = true
},
goDetails(item) {
if(url) {
let path = `/pages/user-center/happinessPasDetails?data=`+encodeURIComponent(item)
uni.navigateTo({
url: path,
});
}
let obj = JSON.stringify(item);
let path = `/pages/user-center/happinessPasDetails?datas=${encodeURIComponent(obj)}`
uni.navigateTo({
url: path,
});
},
scroll(e) {
this.scrollTop = e.detail.scrollTop;
......
......@@ -233,12 +233,11 @@
this.showTime = true
},
goDetails(item) {
if(url) {
let path = `/pages/user-center/pointsDetails?data=${encodeURIComponent(item)}`
uni.navigateTo({
url: path,
});
}
let obj = JSON.stringify(item);
let path = `/pages/user-center/pointsDetails?data=${encodeURIComponent(obj)}`
uni.navigateTo({
url: path,
});
},
scroll(e) {
this.scrollTop = e.detail.scrollTop;
......
......@@ -4,7 +4,7 @@
<view class="hapPasDetNum">{{PassbookAata.type==1?'+':'-'}}{{ PassbookAata.integralNum }}</view>
<view class="hapPasDetBox">
<view class="hapPasDetImg row" @click="goProduct">
<image mode="aspectFit" :src="PassbookAata.imgCover" />
<image mode="scaleToFill" :src="PassbookAata.imgCover" />
<view class="col">{{ PassbookAata.lineName }}</view>
</view>
<view class="row hapPasDetText">
......@@ -57,7 +57,10 @@
},
onLoad(option) {
if(option.data){
this.PassbookAata = decodeURIComponent(option.data)
this.PassbookAata = JSON.parse(
decodeURIComponent(option.data)
)
}
},
onShow() {
......@@ -66,20 +69,10 @@
})
},
methods: {
async handleCopy(text){
try {
await uni.copyText(text);
uni.showToast({
title: '复制成功',
icon: 'success',
});
} catch (err) {
uni.showToast({
title: '复制失败',
icon: 'none',
duration: 1500
});
}
handleCopy(text){
uni.setClipboardData({
data: String(text),
});
},
goProduct(){
return
......@@ -99,7 +92,7 @@
color: #080A0A;
line-height: 70rpx;
text-align: center;
padding: 39rpx 0 40rpx 0;
padding: 0rpx 0 40rpx 0;
}
.hapPasDetNum{
font-weight: bold;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment