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