修改
This commit is contained in:
parent
bbdd2c8612
commit
2dfddc7dac
@ -49,6 +49,9 @@ export function wxSportDecrypt(data) {
|
||||
url: `/applet/register/wxSportDecrypt`,
|
||||
method: 'post',
|
||||
data,
|
||||
header: {
|
||||
region: uni.getStorageSync('region'),
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -32,4 +32,15 @@ export function healthActlist(data) {
|
||||
region: uni.getStorageSync('region'),
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 获取积分排名接口
|
||||
export function scoreorder(cardNo) {
|
||||
return request({
|
||||
url: `/applet/score/order/${cardNo}`,
|
||||
method: 'get',
|
||||
header: {
|
||||
region: uni.getStorageSync('region'),
|
||||
}
|
||||
})
|
||||
}
|
||||
@ -6,6 +6,11 @@ var request = function(config) {
|
||||
config.header = {}
|
||||
}
|
||||
config.header.openid = uni.getStorageSync('openid')
|
||||
config.header.appletType = ''
|
||||
} else {
|
||||
config.header = {
|
||||
appletType: ''
|
||||
}
|
||||
}
|
||||
const urls = config.url.split('?')[0]
|
||||
if (config.url != '/nurseApplet/chatRecord/updateReadStatus' && config.url !=
|
||||
|
||||
@ -30,7 +30,17 @@
|
||||
|
||||
.content {
|
||||
position: relative;
|
||||
|
||||
|
||||
.paiming{
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
font-size: 30rpx;
|
||||
position: absolute;
|
||||
top: calc(50% + 90rpx);
|
||||
font-weight: 600;
|
||||
color:#AD7600;
|
||||
}
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
height: 420rpx;
|
||||
@ -66,7 +76,7 @@
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
top: 50%;
|
||||
top: 48%;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
color:#AD7600;
|
||||
@ -114,7 +124,7 @@
|
||||
}
|
||||
|
||||
.PointsRecord {
|
||||
font-size: 30rpx;
|
||||
font-size: 36rpx;
|
||||
font-weight: 400;
|
||||
color: #000000;
|
||||
line-height: 33rpx;
|
||||
|
||||
@ -20,6 +20,12 @@
|
||||
{{score?score:0}}
|
||||
</span>
|
||||
</view>
|
||||
<view class="paiming" v-if="hkname=='河口'">
|
||||
<span
|
||||
:style="score>=0&&score<800?'color:#fff':score>=800&&score<1600?'color:#D3BC96':score>=1600&&score<2400?'color:#AD7600':score>=2400&&score<3000?'color:#FAEEDB':score>=3000?'color:#4864ED':''">
|
||||
积分榜排名:NO.{{scoreranking}}
|
||||
</span>
|
||||
</view>
|
||||
<view class="flex" v-if="region!=2">
|
||||
<view class="item" @tap='gointegral'>
|
||||
积分商城
|
||||
@ -84,7 +90,8 @@
|
||||
<script>
|
||||
import {
|
||||
scorelist,
|
||||
scoretotal
|
||||
scoretotal,
|
||||
scoreorder
|
||||
} from '@/api/pagesB/Behaviorpoints/index.js'
|
||||
import {
|
||||
detail,
|
||||
@ -106,6 +113,8 @@
|
||||
score: 0,
|
||||
orgNo: '',
|
||||
title: '',
|
||||
hkname: '',
|
||||
scoreranking: 0,
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
@ -117,12 +126,17 @@
|
||||
onReady() { //更改导航栏文字
|
||||
if (uni.getStorageSync('region') == 2) {
|
||||
detail(this.query.identity).then(res => {
|
||||
let name = res.data.countyName.split('区')[0].split('县')
|
||||
this.hkname = res.data.countyName.split('区')[0].split('县')[0]
|
||||
this.orgNo = res.data.orgNo
|
||||
this.title = name + '健康信用中心'
|
||||
this.title = this.hkname + '健康信用中心'
|
||||
uni.setNavigationBarTitle({
|
||||
title: name + '健康信用中心'
|
||||
title: this.hkname + '健康信用中心'
|
||||
});
|
||||
if (this.hkname == '河口') {
|
||||
scoreorder(this.query.identity).then(resp => {
|
||||
this.scoreranking = resp.data
|
||||
})
|
||||
}
|
||||
})
|
||||
} else {
|
||||
uni.setNavigationBarTitle({
|
||||
|
||||
BIN
pagesC/images/redsport.png
Normal file
BIN
pagesC/images/redsport.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.2 KiB |
@ -414,7 +414,7 @@
|
||||
content: '您好,正在努力联系您的家庭医生,请稍等...',
|
||||
sourcePlatform: 'APPLET',
|
||||
autoResponder: 'AUTORESPONDER',
|
||||
sendWho: '1'
|
||||
sendWho: '3'
|
||||
}
|
||||
sendMessage(obj).then(res => {
|
||||
if (res.code == 200) {
|
||||
|
||||
@ -1,18 +1,33 @@
|
||||
<template>
|
||||
<view class="app">
|
||||
<view class="item" v-for="item in list" :key="item.date" @tap="tapstep(item)">
|
||||
<view class="left">
|
||||
<image v-if="item.step>=5000" mode="" :src="require('@/pagesC/images/greensport.png')"></image>
|
||||
<image mode="" v-else :src="require('@/pagesC/images/sport.png')"></image>
|
||||
<view class="time" :style="item.step>=5000?'color:#29AF2A':''">
|
||||
<view class="left" v-if="item.status=='1'">
|
||||
<image mode="" :src="require('@/pagesC/images/sport.png')"></image>
|
||||
<view class="time">
|
||||
{{item.date}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="right">
|
||||
<view class="number" :style="item.step>=5000?'color:#29AF2A':''">
|
||||
<view class="left" v-else-if="item.status=='2'">
|
||||
<image v-if="item.step>=5000" mode="" :src="require('@/pagesC/images/greensport.png')"></image>
|
||||
<image v-if="item.step<5000" mode="" :src="require('@/pagesC/images/redsport.png')"></image>
|
||||
<view class="time" :style="item.step>=5000?'color:#29AF2A':'color:#e08175'">
|
||||
{{item.date}}
|
||||
</view>
|
||||
</div>
|
||||
</view>
|
||||
<view class="right" v-if="item.status=='1'">
|
||||
<view class="number" style="color:#999999">
|
||||
{{item.step}}
|
||||
</view>
|
||||
<view class="text" :style="item.step>=5000?'color:#29AF2A':''">
|
||||
<view class="text" style="color:#999999">
|
||||
步数
|
||||
</view>
|
||||
</view>
|
||||
<view class="right" v-else-if="item.status=='2'">
|
||||
<view class="number" :style="item.step>=5000?'color:#29AF2A':'color:#e08175'">
|
||||
{{item.step}}
|
||||
</view>
|
||||
<view class="text" :style="item.step>=5000?'color:#29AF2A':'color:#e08175'">
|
||||
步数
|
||||
</view>
|
||||
</view>
|
||||
@ -44,6 +59,7 @@
|
||||
if (item.step >= 5000) {
|
||||
wxsportaddV1(uni.getStorageSync('userinfo').cardNo, item.date, item.step).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.getStepInfo();
|
||||
this.$refs.uToast.show({
|
||||
title: '新增积分成功',
|
||||
duration: '1500',
|
||||
@ -78,6 +94,7 @@
|
||||
let obj = {
|
||||
code: res.code,
|
||||
encryptedData: resp.encryptedData,
|
||||
identity: uni.getStorageSync('userinfo').cardNo,
|
||||
iv: resp.iv
|
||||
}
|
||||
wxSportDecrypt(obj).then(Sportres => {
|
||||
@ -198,4 +215,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
Loading…
Reference in New Issue
Block a user