From a997c45ed4675d2eb045090fddb933235f4279cd Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期六, 28 二月 2026 14:21:57 +0800
Subject: [PATCH] 经销商管理
---
mini-program/pagesA/pages/shop_points/shop_points.vue | 35 ++++++++++++++++++++++++++++++-----
1 files changed, 30 insertions(+), 5 deletions(-)
diff --git a/mini-program/pagesA/pages/shop_points/shop_points.vue b/mini-program/pagesA/pages/shop_points/shop_points.vue
index 15ae9ff..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>
@@ -52,13 +51,13 @@
return {
currentPage:1,
total:0,
- shop:{},
- active:0,
- hasNext:true,
dataList:[],
countData:{},
+ hasNext:true,
+ 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
@@ -248,6 +269,10 @@
font-weight: 400;
font-size: 28rpx;
color: #222222;
+ display: -webkit-box;
+ -webkit-line-clamp: 1; /* 闄愬埗鏂囨湰涓�2琛� */
+ -webkit-box-orient: vertical;
+ overflow: hidden;
}
&:nth-child(2) {
font-weight: 400;
--
Gitblit v1.9.3