From 8fd09daba5c89106b4a9aacd8d5ef9354afc93be Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期六, 28 二月 2026 14:22:09 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
mini-program/pagesA/pages/shop_points/shop_points.vue | 25 +++++++++++++++++++++++--
1 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/mini-program/pagesA/pages/shop_points/shop_points.vue b/mini-program/pagesA/pages/shop_points/shop_points.vue
index 5a42a88..021e954 100644
--- a/mini-program/pagesA/pages/shop_points/shop_points.vue
+++ b/mini-program/pagesA/pages/shop_points/shop_points.vue
@@ -1,6 +1,5 @@
<template>
<view class="points">
-
<view class="info-rule" @click="jumpService">绉垎瑙勫垯</view>
<view class="head" :style="{ backgroundImage: 'url(' + backImage + ')', height: 'calc(' + (navHeight + statusbarHeight + 'px + 376rpx)') }">
<view :style="{ width: '100%', height: navHeight + statusbarHeight + 'px' }"></view>
@@ -58,7 +57,7 @@
shop:{},
active:0,
backHeadImage:'',
- backImage: require('@/static/images/jifen_bg@2x.png')
+ backImage: ''
};
},
onReachBottom(){
@@ -72,6 +71,12 @@
this.backHeadImage = ''
}
},
+ onLoad() {
+ if (uni.getStorageSync('backgroundImage')) {
+ this.backImage = uni.getStorageSync('backgroundImage').shopIntegralBg
+ }
+ // this.getBase64Img('/static/images/jifen_bg@2x.png')
+ },
onShow() {
this.shop ={}
this.checkShopLogin()
@@ -81,6 +86,22 @@
this.getFirstPageData()
},
methods:{
+ getBase64Img(path){
+ var that =this
+ uni.getFileSystemManager().readFile({
+ filePath: path, // 鏇挎崲涓轰綘鐨勫浘鐗囪矾寰�
+ encoding: 'base64',
+ success: (res) => {
+ const base64Data = 'data:image/png;base64,' + res.data; // 鎷兼帴鍓嶇紑锛岀敤浜庨〉闈㈡樉绀�
+ console.log('鍥剧墖Base64缂栫爜:', base64Data);
+ // 鍙互灏� base64Data 缁戝畾鍒� data 涓紝鐢ㄤ簬椤甸潰灞曠ず
+ that.backImage = base64Data;
+ },
+ fail: (err) => {
+ console.error('璇诲彇鍥剧墖澶辫触:', err);
+ }
+ });
+ },
getFirstPageData(){
this.currentPage = 0
this.hasNext=true
--
Gitblit v1.9.3