This commit is contained in:
2024-01-22 10:50:10 +08:00
parent 719863c815
commit 0b673397c4
6 changed files with 50 additions and 24 deletions

View File

@ -53,7 +53,7 @@
"pages": [{ "pages": [{
"path": "Behaviorpoints/Behaviorpoints", "path": "Behaviorpoints/Behaviorpoints",
"style": { "style": {
"navigationBarTitleText": "行为积分", "navigationBarTitleText": "积分兑换",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, { }, {
@ -370,8 +370,7 @@
"navigationBarTitleText": "取消订单", "navigationBarTitleText": "取消订单",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, },{
{
"path": "PointsMall/PointsMall", "path": "PointsMall/PointsMall",
"style": { "style": {
"navigationBarTitleText": "积分商城", "navigationBarTitleText": "积分商城",

View File

@ -9,33 +9,35 @@
margin: 0 auto; margin: 0 auto;
.content { .content {
position: relative; position: relative;
margin-bottom: 50rpx;
image { image {
width: 100%; width: 100%;
height: 319rpx; height: 500rpx;
} }
.Exchangerecords { .Exchangerecords {
width: 180rpx; width: 180rpx;
height: 54rpx; height: 54rpx;
background: #FFFFFF; background: #00785C;
border-radius: 24rpx; border-radius: 24rpx;
position: absolute; position: absolute;
top: 60%; bottom: 0%;
left: 57%; right: 15%;
color: #26A888; color: #fff;
text-align: center; text-align: center;
border: 2rpx solid #00785C;
line-height: 54rpx; line-height: 54rpx;
} }
.PointsMall { .PointsMall {
width: 180rpx; width: 180rpx;
height: 54rpx; height: 54rpx;
background: #FFFFFF; border: 2rpx solid #00785C;
background: #00785C;
border-radius: 24rpx; border-radius: 24rpx;
position: absolute; position: absolute;
top: 60%; bottom: 0%;
left: 19%; left: 15%;
color: #26A888; color: #fff;
text-align: center; text-align: center;
line-height: 54rpx; line-height: 54rpx;
} }
@ -58,7 +60,7 @@
color: #FFFFFF; color: #FFFFFF;
position: absolute; position: absolute;
left: 50%; left: 50%;
top: 25%; top: 58%;
transform: translateX(-50%); transform: translateX(-50%);
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;

View File

@ -2,15 +2,17 @@
<view class="app"> <view class="app">
<view class="background"> <view class="background">
<view class="content"> <view class="content">
<image src="@/static/pagesB/Behave.png" mode=""></image> <image mode="" :src="require('../images/jifen.png')" v-if='region==2'></image>
<view class="name">我的积分 <image src="@/static/pagesB/Behave.png" mode="" v-if='region!=2' :style="region!=2?'height:350rpx':''">
</image>
<view class="name" v-if='region!=2'>我的积分
</view> </view>
<view class="number">{{score?score:0}} <view class="number" :style="region!=2?'top:35%':''">{{score?score:0}}
</view> </view>
<view class="PointsMall" @tap='gointegral'> <view class="PointsMall" @tap='gointegral' :style="region!=2?'bottom:15%':''">
积分商城 积分商城
</view> </view>
<view class="Exchangerecords" @tap="goexchange"> <view class="Exchangerecords" @tap="goexchange" :style="region!=2?'bottom:15%':''">
兑换记录 兑换记录
</view> </view>
</view> </view>
@ -55,6 +57,7 @@
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
}, },
region: uni.getStorageSync('region'),
list: null, list: null,
total: 0, total: 0,
score: 0, score: 0,
@ -64,6 +67,17 @@
this.info(); this.info();
this.scoretotalinfo(); this.scoretotalinfo();
}, },
onReady() { //
if (uni.getStorageSync('region') == 2) {
uni.setNavigationBarTitle({
title: '东营健康银行'
});
} else {
uni.setNavigationBarTitle({
title: '积分兑换'
});
}
},
methods: { methods: {
scoretotalinfo() { scoretotalinfo() {
scoretotal(this.query.identity).then(res => { scoretotal(this.query.identity).then(res => {

View File

@ -38,7 +38,17 @@
total: 0, total: 0,
}; };
}, },
onReady() { //
if (uni.getStorageSync('region') == 2) {
uni.setNavigationBarTitle({
title: '东营健康银行'
});
} else {
uni.setNavigationBarTitle({
title: '积分兑换'
});
}
},
methods: { methods: {
goexchange(item) { goexchange(item) {
var obj = { var obj = {
@ -93,9 +103,10 @@
<style lang="scss"> <style lang="scss">
.app { .app {
::v-deep .u-empty{ ::v-deep .u-empty {
margin-top: 25vh !important; margin-top: 25vh !important;
} }
.contents { .contents {
padding-top: 10rpx; padding-top: 10rpx;
display: flex; display: flex;

BIN
pagesB/images/jifen.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -53,7 +53,7 @@
}, },
onLoad() { onLoad() {
this.address = uni.getStorageSync('location') this.address = uni.getStorageSync('location')
this.address() this.getAddress()
}, },
methods: { methods: {
searchChange(value) { searchChange(value) {