Commit 5df2d07e authored by youjie's avatar youjie

修复bug

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