小程序兼容

This commit is contained in:
qiaocl 2024-10-11 10:04:19 +08:00
parent a745ec7aea
commit 73cfd5140b
368 changed files with 27646 additions and 26452 deletions

View File

@ -2,7 +2,7 @@
"version" : "1.0",
"configurations" : [
{
"playground" : "custom",
"playground" : "standard",
"type" : "uni-app:app-android"
},
{

32
App.vue
View File

@ -9,6 +9,7 @@
onLaunch: function() {
let that = this
// apk
// #ifdef APP-PLUS
uni.getSystemInfo({
success(e) {
platform = e.platform
@ -23,16 +24,15 @@
uni.onNetworkStatusChange(function(res) {
if (res.isConnected == true) {
uni.reLaunch({
url: '/pages/login/login'
url: '/pageTwo/login/login'
})
console.log("有网络连接", res.isConnected)
}
});
}
that.checkForUpdates()
uni.switchTab({
url: "/pages/home/home"
})
// #endif
that.handleoginversion()
console.log('App Launch')
},
onShow: function() {
@ -40,9 +40,11 @@
},
onHide: function() {
console.log('App Hide')
// #ifdef APP-PLUS
uni.offNetworkStatusChange(function(res) {
console.log("取消网络监听")
})
// #endif
},
methods: {
//
@ -60,13 +62,15 @@
//
handleoginversion(info) {
let that = this
let currentVersion = info.version;
that.$model.getloginversion({}).then(res => {
that.handleCancelUpdate(res.code)
// #ifdef APP-PLUS
let currentVersion = info.version;
let latestVersion = res.data.version
that.$store.commit('changePhoneInfo', {
versionUrl: res.data
})
that.handleCancelUpdate(res.code)
//
let version = that.$tools.compareVersions(currentVersion, latestVersion)
if (version == -1) { // 01-1
@ -122,17 +126,21 @@
}
});
}
// #endif
})
},
//
handleCancelUpdate(code) {
let that = this
if (code == 0) {
that.handleUserList()
// that.handleUserList()
uni.reLaunch({
url: "/pages/home/home?type=1"
})
} else {
setTimeout(() => {
uni.reLaunch({
url: '/pages/login/login'
url: '/pageTwo/login/login'
})
}, 500);
}
@ -151,14 +159,16 @@
that.$store.commit('changeFamilay', res.data)
if (res.data.length) {
that.$store.dispatch('getUserInfo', {
aud_id: uni.getStorageSync('userid') ? uni.getStorageSync('userid') : res.data[
aud_id: uni.getStorageSync('userid') ? uni.getStorageSync(
'userid') : res.data[
0].id
})
that.$store.dispatch("getCardList", {
aud_id: uni.getStorageSync('userid') ? uni.getStorageSync('userid') : res.data[
aud_id: uni.getStorageSync('userid') ? uni.getStorageSync(
'userid') : res.data[
0].id
})
that.handleLabelList( res.data[0].id)
that.handleLabelList(res.data[0].id)
that.handlePublicRecord(res.data[0].id)
}
}).catch(err => {})

74
element/city.vue Normal file
View File

@ -0,0 +1,74 @@
<template>
<view v-if="isCity" class="visible">
<view class="bg" @click="clear"></view>
<view @click.stop class="item">
<view class="groupBtn">
<view @click="visible=false">取消</view>
<view @click="handlesure()" class="sure">确定</view>
</view>
<picker-view @change="bindChange" :value="value" class="picker-view" :indicator-style="indicatorStyle">
<picker-view-column>
<view class="item" v-for="(item,index) in province" :key="index">{{item.name}}</view>
</picker-view-column>
<picker-view-column>
<view class="item" v-for="(item,index) in city" :key="index">{{item}}</view>
</picker-view-column>
<!-- <picker-view-column>
<view class="item" v-for="(item,index) in area" :key="index">{{item?item:'请选择'}}</view>
</picker-view-column> -->
</picker-view>
</view>
</view>
</template>
<script>
import {
mapState
} from "vuex";
export default {
data() {
return {
value: [2, 0],
province: [], //
city: [], //
area: [], //
}
},
computed: {
...mapState(["cityList", "user", "isCity"]),
},
mounted() {
let that = this
setTimeout(() => {
that.handleCityList()
console.log("1111", this.user.address, that.cityList, that.province)
}, 500);
},
methods: {
//
handleCityList() {
let that = this
that.province = that.cityList
let str = that.user.address.split(',')[0]
let str2 = that.user.address.split(',')[1]
var Index0 = that.cityList.findIndex((profile) => profile.name === str);
var Index2 = that.cityList[Index0].list.findIndex((ite) => ite === str2);
that.value[0] = Index0
that.value[1] = Index2
that.city = that.cityList[Index0].list
},
}
}
</script>
<style scoped lang="scss">
.bg {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.4);
z-index: 99;
}
</style>

View File

@ -66,7 +66,7 @@
addInfo() {
let that = this
uni.navigateTo({
url: "/pages/my/userInfo"
url: "/pageTwo/my/userInfo"
})
that.$store.commit("changeDrawe", false);
},

View File

@ -2,20 +2,20 @@
<view>
<view class="header">
<view class="top" v-if="userList.length">
<view class="headimg">
<view class="headimg" @click="handleAddUser(1)">
<image :src="info.head_pic"></image>
</view>
<view class="info">
<view class="info" @click="handleAddUser(1)">
<view class="size18 bold">{{info.nickname}}</view>
<view class="mt-10">
<text class="mr-10">性别{{info.gender==1?'男':info.gender==2?'女':'未知'}}</text>
<text class="ml-10">年龄{{info.age}}</text>
</view>
<!-- <view class="mt-10">{{$t("index.birthday")}}{{user.birthday}}</view> -->
<view class="mt-10">地区{{info.address}}</view>
</view>
<text class="t-icon t-icon-qiehuan1" @click="$store.commit('changeDrawe', true)" v-if="isLeft"></text>
</view>
<view class="top" v-else @click="handleAddUser">
<view class="top" v-else @click="handleAddUser(2)">
<view class="info">
暂无成员请先添加~
</view>
@ -79,7 +79,7 @@
};
},
computed: {
...mapState(["user", "familayList"]),
...mapState(["user", "familayList", "cityList"]),
info() {
return this.user
},
@ -88,7 +88,7 @@
},
userId() {
return this.user.id
}
},
},
props: {
isArea: {
@ -105,23 +105,14 @@
setTimeout(() => {
if (that.isArea) {
that.handleCityList()
console.log("1111", this.user.address)
}
}, 500);
}, 1000);
},
watch: {
userId() {
let that = this
that.region = that.user.address
if (that.province.length) {
let str = that.user.address.split(',')[0]
let str2 = that.user.address.split(',')[1]
var Index0 = that.province.findIndex((profile) => profile.name === str);
var Index2 = that.province[Index0].list.findIndex((ite) => ite === str2);
that.value[0] = Index0
that.value[1] = Index2
that.city = that.province[Index0].list
}
that.handleCityList()
that.$emit("getAciveCity", that.region)
},
},
@ -142,36 +133,32 @@
that.$emit("getAciveCity", that.region)
},
//
handleAddUser() {
handleAddUser(ind) {
let that = this
if (uni.getStorageSync('token')) {
let index = that.userList.findIndex((profile) => profile.id == that.info.id)
uni.navigateTo({
url: "/pages/my/userInfo"
url: ind == 1 ? "/pageTwo/my/userInfo?info=" + JSON.stringify(that.userList[index]) :
"/pageTwo/my/userInfo"
})
} else {
uni.reLaunch({
url: '/pages/login/login'
url: '/pageTwo/login/login'
})
}
},
//
handleCityList() {
let that = this
that.$model.getCityList({
type: 2
}).then((res) => {
console.log("|全部地区", res.data, that.user.address)
if (res.code != 0) return
that.province = res.data
if (that.cityList.length) {
that.province = that.cityList
let str = that.user.address.split(',')[0]
let str2 = that.user.address.split(',')[1]
var Index0 = res.data.findIndex((profile) => profile.name === str);
var Index2 = res.data[Index0].list.findIndex((ite) => ite === str2);
var Index0 = that.province.findIndex((profile) => profile.name == str);
that.value[0] = Index0
that.value[1] = Index2
that.city = res.data[Index0].list
})
console.log("地区", str, Index0)
that.city = that.province[Index0].list
}
},
}
}
</script>
@ -200,6 +187,7 @@
display: flex;
border-radius: 10px;
justify-content: space-between;
box-shadow: 0px 1px 5px 2px #dfe2e1fc;
}
@ -214,7 +202,7 @@
left: 0;
right: 0;
bottom: 0;
z-index: 99;
z-index: 9999;
background-color: rgba(0, 0, 0, 0.6);
.groupBtn {

View File

@ -7,7 +7,7 @@
<view class="editem" @click="hideKeyboard">
<view class="left">日期</view>
<view class="right">
<picker mode="date" :end="endDate" @change="changeLog" fields="time">
<picker mode="date" :end="endDate" @change="changeLog" :fields="fields">
<view class="uni-input">{{regTime?regTime:'请选择'}}</view>
<icon class="iconfont icon-arrow-down-bold"></icon>
</picker>
@ -50,7 +50,8 @@
regTime: "",
number1: '',
number2: "",
number3: ""
number3: "",
fields: "",
}
},
computed: {

View File

@ -16,7 +16,7 @@
<view class="editem" @click="hideKeyboard">
<view class="left">日期</view>
<view class="right">
<picker mode="date" :end="endDate" @change="changeLog" fields="time">
<picker mode="date" :end="endDate" @change="changeLog" :fields="fields">
<view class="uni-input">{{regTime?regTime:'请选择'}}</view>
<icon class="iconfont icon-arrow-down-bold"></icon>
</picker>
@ -53,6 +53,7 @@
timeList: [],
time_m: "",
time_s: "",
fields: "",
timesTndex: [1, 0],
lableTndex: 0,
}
@ -80,7 +81,14 @@
},
},
mounted() {
this.timeList = this.$tools.gethms()
let that = this
that.timeList = this.$tools.gethms()
// #ifdef APP-PLUS
that.fields = "time"
// #endif
// #ifndef APP-PLUS
that.fields = "day"
// #endif
},
methods: {
bindTimeChange(e) {

View File

@ -6,7 +6,7 @@
<view class="editem">
<view class="left">日期</view>
<view class="right">
<picker mode="date" :end="endDate" @change="changeLog" fields="time">
<picker mode="date" :end="endDate" @change="changeLog" :fields="fields">
<view class="uni-input">{{regTime?regTime:'请选择'}}</view>
<icon class="iconfont icon-arrow-down-bold"></icon>
</picker>
@ -118,7 +118,8 @@
timesTndex: [1, 0],
listType: null,
describe: "",
unit: ""
unit: "",
fields: ""
}
},
computed: {
@ -152,6 +153,12 @@
mounted() {
let that = this
that.timeList = that.$tools.gethms()
// #ifdef APP-PLUS
that.fields = "time"
// #endif
// #ifndef APP-PLUS
that.fields = "day"
// #endif
},
methods: {
//

View File

@ -7,7 +7,7 @@
<view class="editem" @click="hideKeyboard">
<view class="left">日期</view>
<view class="right">
<picker mode="date" :end="endDate" @change="changeLog" fields="time">
<picker mode="date" :end="endDate" @change="changeLog" :fields="fields">
<view class="uni-input">{{regTime?regTime:'请选择'}}</view>
<icon class="iconfont icon-arrow-down-bold"></icon>
</picker>

View File

@ -7,7 +7,7 @@
<view class="editem" @click="hideKeyboard">
<view class="left">日期</view>
<view class="right">
<picker mode="date" :end="endDate" @change="changeLog" fields="time">
<picker mode="date" :end="endDate" @change="changeLog" :fields="fields">
<view class="uni-input">{{regTime?regTime:'请选择'}}</view>
<icon class="iconfont icon-arrow-down-bold"></icon>
</picker>

View File

@ -6,7 +6,7 @@
<view class="editem" @click="hideKeyboard" v-if="type!=1">
<view class="name">日期</view>
<view class="right">
<picker mode="date" :start="startDate" :end="endDate" @change="changeLog" fields="time">
<picker mode="date" :start="startDate" :end="endDate" @change="changeLog" :fields="fields">
<view class="uni-input">{{regTime?regTime:'请选择'}}</view>
<icon class="iconfont icon-arrow-down-bold"></icon>
</picker>
@ -37,6 +37,7 @@
return {
regTime: "",
weight: "",
fields: "",
}
},
computed: {
@ -48,6 +49,15 @@
return this.$tools.getDate('start');
}
},
mounted() {
let that = this
// #ifdef APP-PLUS
that.fields = "time"
// #endif
// #ifndef APP-PLUS
that.fields = "day"
// #endif
},
methods: {
//
handleTarget() {

View File

@ -125,9 +125,11 @@
"quickapp" : {},
/* */
"mp-weixin" : {
"appid" : "",
"appid" : "wx9c0b7a436ada6d1e",
"setting" : {
"urlCheck" : false
"urlCheck" : false,
"postcss" : true,
"minified" : true
},
"usingComponents" : true
},

View File

@ -4,16 +4,18 @@
<!-- 时间选择 -->
<view class="boxTime">
<view class="one">
<picker mode="date" :end="endDate" @change="handStartTimeH" fields="time"
<picker mode="date" :end="endDate" @change="handStartTimeH" :fields="fields"
:value="startTime?startTime:startDate">
<view class="uni-input mr-10">{{startTime?startTime:startDate}}</view>
<view class="uni-input mr-10">{{startTime?startTime:startDate}}
<icon class="iconfont icon-arrow-down-bold"></icon>
</view>
</picker>
<view class="center">~</view>
<picker mode="date" :end="endDate" @change="handEndTimeH" fields="time"
<picker mode="date" :end="endDate" @change="handEndTimeH" :fields="fields"
:value="endTime?endTime:endDate">
<view class="uni-input mr-10">{{endTime?endTime:endDate}}</view>
<view class="uni-input mr-10">{{endTime?endTime:endDate}}
<icon class="iconfont icon-arrow-down-bold"></icon>
</view>
</picker>
</view>
</view>
@ -23,21 +25,22 @@
<view class="boxLine">
<view class="line" v-for="(item,index) in weightList">
<view v-if="item.line.categories.length" class="mt-15 mb-15">
<qiunDataCharts type="area" :chartData="item.line" :canvas2d="true" :canvasId="'1025'+ index"
:cHeight="400" :cWidth="720" :animation="false"
<qiunDataCharts type="column" :chartData="item.line" :canvas2d="true" :canvasId="item.id"
:Width="340" :Height="250" :animation="false"
:opts="{enableScroll:true,xAxis:{scrollShow:false,itemCount:3}}" :ontouch="true" />
</view>
<view class="nolist" v-else>
<view v-else>
<view class="nolist">
<image src="../../static/none.png"></image>
<text>暂无数据请手动添加~</text>
</view>
<view class="title">
<text :style="{'backgroundColor':item.line.series[0].color}"></text>
{{item.title}}
</view>
</view>
</view>
</view>
</view>
</view>
</template>
@ -45,7 +48,7 @@
import {
mapState
} from "vuex";
import qiunDataCharts from '@/uni_modules/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue';
import qiunDataCharts from '@/uni_modules/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue'
export default {
components: {
qiunDataCharts,
@ -68,6 +71,7 @@
active: 0,
startTime: "",
endTime: "",
fields: "",
weightList: [],
};
},
@ -84,6 +88,12 @@
}
})
that.handlePublicTrendList()
// #ifdef APP-PLUS
that.fields = "time"
// #endif
// #ifndef APP-PLUS
that.fields = "day"
// #endif
},
methods: {
handStartTimeH(e) {

View File

@ -175,7 +175,7 @@
info.after_id = that.isActive[1]
console.log("1111", info, that.isActive)
uni.navigateTo({
url: "/pages/compk/pkdetail?info=" + JSON.stringify(info)
url: "/pageTwo/compk/pkdetail?info=" + JSON.stringify(info)
})
},
handleActive(ite, ind) {

View File

@ -33,7 +33,7 @@
handlebinging(item) {
console.log("item", item)
uni.redirectTo({
url: "/pages/business/search?id=" + item.id
url: "/pageTwo/business/search?id=" + item.id
})
}
}

View File

@ -125,7 +125,7 @@
line-height: 60px;
border-radius: 5px;
.uni-icons {
.uni-icons,uni-icons {
font-size: 36rpx;
position: absolute;
top: -28px;
@ -133,6 +133,7 @@
}
.info {
width: 100%;
display: flex;
align-items: center;
justify-content: center;

View File

@ -154,7 +154,7 @@
info.after_id = that.isActive[1]
console.log("1111", info, that.isActive)
uni.navigateTo({
url: "/pages/compk/pkdetail?info=" + JSON.stringify(info)
url: "/pageTwo/compk/pkdetail?info=" + JSON.stringify(info)
})
},
},

View File

@ -1,7 +1,7 @@
<template>
<view class="content skipping">
<!--自由训练 -->
<view class="title">{{info.active==1?'自由训练':info.active==2?'定时训练':'定数训练'}}</view>
<view class="title">{{info.active==1?'自由跳':info.active==2?'倒计时':'倒计数'}}</view>
<view class="skiptop">
<view class="item">
<view class="item-ite">{{info.active==1?'自由次数':info.active==2?"个数":'目标次数'}}<text>{{weight}}</text>
@ -108,12 +108,22 @@
that.$store.commit("changeBluetooth", res.available);
})
},
// #ifdef APP-PLUS
onBackPress(options) {
let that = this
that.handleEnd()
innerAudioContext.stop();
console.log("页面返回onBackPress")
console.log("PCT01返回onBackPress")
},
// #endif
// #ifndef APP-PLUS
onUnload: function() {
let that = this
that.handleEnd()
innerAudioContext.stop();
console.log("PCT01返回onUnload")
},
// #endif
watch: {
isConnected: function() {
let that = this

View File

@ -114,7 +114,7 @@
let that = this
if (that.acd_id == "6") return
uni.navigateTo({
url: "/pages/history/historyDetail?type=" + that.acd_id + '&id=' + item.id
url: "/pageTwo/history/historyDetail?type=" + that.acd_id + '&id=' + item.id
})
},
getList(page) {

View File

@ -6,7 +6,7 @@
<view class="item">
<view class="text">手机号/邮箱</view>
<view class="input">
<input v-model="phone" placeholder="" />
<input v-model="phone" type="text"/>
</view>
</view>
<view class="item ">

View File

@ -154,7 +154,7 @@
},
handlePassword(text) {
uni.navigateTo({
url: "/pages/login/forgetPassword?type=" + text
url: "/pageTwo/login/forgetPassword?type=" + text
})
},
handlexieyi() {

View File

@ -119,13 +119,13 @@
editorInfo(item) {
console.log("familayList", this.familayList)
uni.navigateTo({
url: "/pages/my/userInfo?info=" + JSON.stringify(item)
url: "/pageTwo/my/userInfo?info=" + JSON.stringify(item)
})
},
//
handleAddUser() {
uni.navigateTo({
url: "/pages/my/userInfo"
url: "/pageTwo/my/userInfo"
})
},
}

View File

@ -44,25 +44,67 @@
<view class="left">出生日期</view>
<view class="right">
<picker mode="date" :end="endDate" @change="maskClick"
:value="memInfo.birthday?memInfo.birthday:endDate" fields="time">
:value="memInfo.birthday?memInfo.birthday:endDate" :fields="fields">
<view class="uni-input">{{memInfo.birthday?memInfo.birthday:'请选择'}}</view>
<icon class="iconfont icon-arrow-down-bold"></icon>
</picker>
<!-- <uni-datetime-picker type="date" :end="startDate" :clear-icon="false" v-model="memInfo.birthday"
@change="maskClick" :border="false" /> -->
</view>
</view>
<view class="lan border-bottom">
<view class="left">身份信息</view>
<view class="right">
<picker mode="selector" :range="identityList" :value="identityIndex" range-key="name"
@change="changegIdentity">
<view class="uni-input">{{identityList[identityIndex]?identityList[identityIndex].name:"请选择"}}
</view>
<icon class="iconfont icon-arrow-down-bold"></icon>
</picker>
</view>
</view>
<view class="lan border-bottom" v-if="memInfo.identity_id=='P0'">
<view class="left">自定义</view>
<view class="right">
<input name="name" type="text" v-model="identityName" placeholder="请输入身份" />
<uni-icons type="clear" color="#999" v-if="identityName" @click="identityName=''"
size="20"></uni-icons>
</view>
</view>
<view class="lan border-bottom" @click="handleCityList">
<view class="left">所属地区</view>
<view class="right">
<view class="mr-10">{{memInfo.address?memInfo.address:'请选择'}}</view>
<icon class="iconfont icon-arrow-down-bold"></icon>
</view>
</view>
<view class="lan border-bottom">
<view class="left">所在年级</view>
<view class="right">
<picker mode="selector" :range="gradeList" :value="index" range-key="name" @change="changegType">
<view class="uni-input">{{gradeList[index]?gradeList[index].name:"请选择"}}</view>
<picker mode="selector" :range="gradeList" :value="gradeIndex" range-key="name"
@change="changegType">
<view class="uni-input">{{gradeList[gradeIndex]?gradeList[gradeIndex].name:"请选择"}}</view>
<icon class="iconfont icon-arrow-down-bold"></icon>
</picker>
</view>
</view>
</view>
<view class="btn" @click="confirmInfo">提交</view>
<!-- 地区 -->
<view v-if="visible" class="visible" @click="visible=false">
<view @click.stop class="item">
<view class="groupBtn">
<view @click="visible=false">取消</view>
<view @click="handlesure()" class="sure">确定</view>
</view>
<picker-view @change="bindChange" :value="value" class="picker-view" :indicator-style="indicatorStyle">
<picker-view-column>
<view class="item" v-for="(item,index) in province" :key="index">{{item.name}}</view>
</picker-view-column>
<picker-view-column>
<view class="item" v-for="(item,index) in city" :key="index">{{item}}</view>
</picker-view-column>
</picker-view>
</view>
</view>
</view>
</template>
<script>
@ -73,26 +115,36 @@
data() {
return {
isEdit: false,
fields: "",
sexItem: [
"男",
"女"
],
memInfo: {
birthday: "",
gender: 0,
gender: '',
nickname: "",
grade: "",
height: "",
weight: ""
weight: "",
address: '',
identity_name: "",
identity_id: "P0",
},
identityName: "",
visible: false,
province: [], //
city: [], //
area: [], //
value: [2, 0],
headimg: "",
index: 0,
gradeList: []
identityIndex: 0,
gradeIndex: 0,
indicatorStyle: `height: 45px;`,
};
},
computed: {
...mapState(["user", "familayList"]),
...mapState(["user", "familayList", "cityList", "gradeList", "identityList"]),
endDate() {
return this.$tools.getDate("start")
},
@ -102,29 +154,23 @@
},
onLoad(options) {
let that = this
this.handleGradeList()
that.handleGradeList()
that.handleIdentityList()
if (options.info) {
that.memInfo = JSON.parse(options.info)
that.gradeIndex = that.gradeList.findIndex((profile) => profile.id === that.memInfo.grade);
that.identityIndex = that.identityList.findIndex((profile) => profile.id === that.memInfo.identity_id);
that.identityName = that.memInfo.identity_id == 'P0' ? that.memInfo.identity_name : ''
that.isEdit = true
}
console.log("1111", this.memInfo)
// #ifdef APP-PLUS
that.fields = "time"
// #endif
// #ifndef APP-PLUS
that.fields = "day"
// #endif
},
methods: {
handleGradeList() {
let that = this
that.$model.getGradeList({}).then(res => {
console.log("年级列表", res)
if (res.code != 0) {
that.$tools.msg(res.msg)
return
}
that.gradeList = res.data
if (that.isEdit == true) {
that.index = res.data.findIndex(ite => ite.id == that.memInfo.grade)
}
that.memInfo.grade = res.data[that.index].id
}).catch(err => {})
},
//
confirmInfo() {
let that = this
@ -148,10 +194,22 @@
that.$tools.msg("请选择出生日期")
return;
}
if (!that.memInfo.identity_id) {
that.$tools.msg("请选择身份信息")
return;
}
if (!that.memInfo.address) {
that.$tools.msg("请选择所属地区")
return;
}
if (!that.memInfo.grade) {
that.$tools.msg("请选择所在年级")
return;
}
if (that.memInfo.identity_id == 'P0') {
that.memInfo.identity_name = that.identityName ? that.identityName : that.identityList[that
.identityIndex].name
}
let https = that.isEdit ? that.$model.getEditUser(that.memInfo) : that.$model.getAddUser(that.memInfo)
return https.then(res => {
console.log("成功", res)
@ -189,7 +247,7 @@
aud_id: id
})
uni.redirectTo({
url: "/pages/cardList/card"
url: "/pageTwo/cardList/card"
})
} else {
uni.navigateBack({
@ -202,6 +260,7 @@
},
//
maskClick(e) {
console.log("出生日期", e.detail.value)
this.memInfo.birthday = e.detail.value
},
//
@ -210,9 +269,61 @@
},
//
changegType(e) {
this.index = e.detail.value
this.gradeIndex = e.detail.value
this.memInfo.grade = this.gradeList[e.target.value].id
},
//
changegIdentity(e) {
let that = this
that.identityIndex = e.detail.value
that.memInfo.identity_id = that.identityList[e.detail.value].id
that.memInfo.identity_name = that.identityList[e.detail.value].name
},
//
bindChange: function(e) {
let that = this
if (e.detail.value[0] != that.value[0]) {
e.detail.value[1] = 0
}
that.value = e.detail.value
that.city = that.province[that.value[0]].list
},
handlesure() {
let that = this
let defaultRegion = [that.province[that.value[0]].name, that.city[that.value[1]]]
that.memInfo.address = defaultRegion.join(",");
that.visible = false
},
handleCityList() {
let that = this
that.province = that.cityList
let str = that.user.address.split(',')[0]
let str2 = that.user.address.split(',')[1]
var Index0 = that.cityList.findIndex((profile) => profile.name === str);
var Index2 = that.cityList[Index0].list.findIndex((ite) => ite === str2);
that.value[0] = Index0
that.value[1] = Index2
that.city = that.cityList[Index0].list
that.visible = true
},
//
handleGradeList() {
let that = this
if (that.isEdit == true) {
that.gradeIndex = that.gradeList.findIndex(ite => ite.id == that.memInfo.grade)
that.memInfo.grade = that.gradeList[that.gradeIndex].id
}
},
//
handleIdentityList() {
let that = this
if (that.isEdit == true) {
that.identityIndex = that.identityList.findIndex(ite => ite.id == that.memInfo.identity_id)
that.memInfo.identity_id = that.identityList[that.identityIndex].id
that.memInfo.identity_name = that.identityList[that.identityIndex].name
}
},
},
};
@ -303,4 +414,56 @@
margin: 40px 15px 0;
background: $btncolor !important;
}
.visible {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 9999;
background-color: rgba(0, 0, 0, 0.6);
.groupBtn {
height: 50px;
line-height: 50px;
background-color: #fff;
display: flex;
justify-content: space-between;
padding: 0 15px;
border-bottom: 1px solid #dfdfdf;
position: absolute;
left: 0;
right: 0;
bottom: 45%;
z-index: 999;
view {
height: 30px;
line-height: 30px;
padding: 0 10px;
background-color: #dfdfdf;
border-radius: 5px;
margin-top: 10px;
}
.sure {
background-color: $textcolor;
color: #fff !important;
}
}
.picker-view {
width: 100%;
height: 45%;
bottom: 0;
position: absolute;
background-color: #fff;
}
.item {
line-height: 45px;
text-align: center;
}
}
</style>

View File

@ -83,7 +83,7 @@
methods: {
clickItemMethod(id) {
uni.navigateTo({
url: "/pages/score/report?id=" + id
url: "/pageTwo/score/report?id=" + id
})
},
getList(page) {

View File

@ -5,7 +5,7 @@
<view class="box">
<view class="title bold">本次估分成绩为</view>
<view class="charts">
<qiun-data-charts type="arcbar" :chartData="chartData" />
<qiun-data-charts type="arcbar" :chartData="chartData" :Height="140" :Width="140"/>
<view class="name">{{score}}</view>
</view>
<view class="title bold" v-if="Max_score">该地区体育总成绩为:{{Max_score}}</view>

View File

@ -5,7 +5,7 @@
<view class="item">
<view class="text">邮箱</view>
<view class="input">
<input v-model="phone" placeholder="" />
<input v-model="phone" placeholder="请输入邮箱"/>
</view>
</view>
<view class="item ">
@ -58,7 +58,7 @@
my_email: that.phone
})
uni.redirectTo({
url: "/pages/setting/setting"
url: "/pageTwo/setting/setting"
})
}
}).catch(err => {})

View File

@ -5,13 +5,13 @@
<view class="item">
<view class="text">密码</view>
<view class="input">
<input class="uni-input" v-model="password" />
<input class="uni-input" v-model="password" placeholder="请输入密码"/>
</view>
</view>
<view class="item">
<view class="text">确认密码</view>
<view class="input">
<input class="uni-input" v-model="password2" />
<input class="uni-input" v-model="password2" placeholder="请输入确认密码"/>
</view>
</view>
</view>

View File

@ -5,7 +5,7 @@
<view class="item">
<view class="text">手机号</view>
<view class="input">
<input v-model="phone" placeholder="" />
<input v-model="phone" placeholder="请输入手机号" />
</view>
</view>
<view class="item ">
@ -58,7 +58,7 @@
my_tel: that.phone
})
uni.redirectTo({
url: "/pages/setting/setting"
url: "/pageTwo/setting/setting"
})
}
}).catch(err => {})

View File

@ -12,21 +12,21 @@
<uni-icons type="compose" color="#FEC407" @click="isEdit=true" class="ml-10" size="22"></uni-icons>
</view>
</view>
<view class="caritem" @click="navTo('/pages/setting/phone')">
<view class="caritem" @click="navTo('/pageTwo/setting/phone')">
<view class="text">手机号</view>
<view class="text_r">
<text>{{user.my_tel}}</text>
<uni-icons type="right"></uni-icons>
</view>
</view>
<view class="caritem" @click="navTo('/pages/setting/email')">
<view class="caritem" @click="navTo('/pageTwo/setting/email')">
<view class="text">邮箱</view>
<view class="text_r">
<text>{{user.my_email}}</text>
<uni-icons type="right"></uni-icons>
</view>
</view>
<view class="caritem" @click="navTo('/pages/setting/password')">
<view class="caritem" @click="navTo('/pageTwo/setting/password')">
<view class="text">设置密码</view>
<uni-icons type="right"></uni-icons>
</view>
@ -69,7 +69,7 @@
uni.clearStorageSync()
setTimeout(() => {
uni.reLaunch({
url: "/pages/login/login"
url: "/pageTwo/login/login"
})
}, 3000);
})
@ -120,7 +120,7 @@
width: 70%;
display: flex;
align-items: center;
// justify-content: flex-end;
justify-content: flex-end;
text {
width: calc(100% - 30px);

View File

@ -8,55 +8,6 @@
"onReachBottomDistance": 50
}
},
{
"path": "pages/cardList/card",
"style": {
"navigationBarTitleText": "卡片设置",
"enablePullDownRefresh": false
}
},
{
"path": "pages/body/body",
"style": {
"navigationBarTitleText": "身体数据",
"enablePullDownRefresh": true,
"onReachBottomDistance": 50
}
},
{
"path": "pages/history/history",
"style": {
"navigationBarTitleText": "历史记录",
"enablePullDownRefresh": false
}
},
{
"path": "pages/history/historyDetail",
"style": {
"navigationBarTitleText": "记录详情",
"enablePullDownRefresh": false
}
},
{
"path": "pages/compk/contrast",
"style": {
"navigationBarTitleText": "数据对比",
"enablePullDownRefresh": false
}
},
{
"path": "pages/compk/pkdetail",
"style": {
"navigationBarTitleText": "对比详情",
"enablePullDownRefresh": false
}
},
{
"path": "pages/skiping/skip",
"style": {
@ -98,21 +49,6 @@
"enablePullDownRefresh": true,
"onReachBottomDistance": 50
}
}, {
"path": "pages/my/manage",
"style": {
"navigationBarTitleText": "成员管理",
"enablePullDownRefresh": true,
"onReachBottomDistance": 50
}
},
{
"path": "pages/my/userInfo",
"style": {
"navigationBarTitleText": "资料"
}
},
{
@ -122,84 +58,6 @@
"enablePullDownRefresh": true,
"onReachBottomDistance": 50
}
}, {
"path": "pages/score/history",
"style": {
"navigationBarTitleText": "估分历史",
"enablePullDownRefresh": false
}
}, {
"path": "pages/score/report",
"style": {
"navigationBarTitleText": "估分报告",
"enablePullDownRefresh": false
}
},
{
"path": "pages/login/forgetPassword",
"style": {
"navigationBarTitleText": "密码",
"enablePullDownRefresh": false
}
},
{
"path": "pages/login/login",
"style": {
"navigationBarTitleText": "登录",
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
},
{
"path": "pages/setting/setting",
"style": {
"navigationBarTitleText": "设置",
"enablePullDownRefresh": false
}
},
{
"path": "pages/setting/password",
"style": {
"navigationBarTitleText": "修改密码",
"enablePullDownRefresh": false
}
},
{
"path": "pages/setting/email",
"style": {
"navigationBarTitleText": "绑定邮箱",
"enablePullDownRefresh": false
}
},
{
"path": "pages/setting/phone",
"style": {
"navigationBarTitleText": "绑定手机号",
"enablePullDownRefresh": false
}
},
{
"path": "pages/devices/search",
"style": {
"navigationBarTitleText": "蓝牙搜索",
"enablePullDownRefresh": false
}
},
{
"path": "pages/devices/G02",
"style": {
"navigationBarTitleText": "测量",
"enablePullDownRefresh": false
}
},
{
@ -212,14 +70,64 @@
}
},
{
"path": "pages/devices/PCV02",
"path": "pages/PublicCards/PublicCards",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
"navigationBarTitleText": "对比详情"
}
},
{
"path": "pages/business/addDevice",
"path": "pages/body/body",
"style": {
"navigationBarTitleText": "身体数据",
"enablePullDownRefresh": true,
"onReachBottomDistance": 50
}
}
],
"subPackages": [{
"root": "pageTwo",
"pages": [{
"path": "history/history",
"style": {
"navigationBarTitleText": "历史记录",
"enablePullDownRefresh": false
}
},
{
"path": "history/historyDetail",
"style": {
"navigationBarTitleText": "记录详情",
"enablePullDownRefresh": false
}
},
{
"path": "compk/contrast",
"style": {
"navigationBarTitleText": "数据对比",
"enablePullDownRefresh": false
}
},
{
"path": "compk/pkdetail",
"style": {
"navigationBarTitleText": "对比详情",
"enablePullDownRefresh": false
}
}, {
"path": "cardList/card",
"style": {
"navigationBarTitleText": "卡片设置",
"enablePullDownRefresh": false
}
}, {
"path": "business/addDevice",
"style": {
"navigationBarTitleText": "设备列表",
"enablePullDownRefresh": false
@ -227,7 +135,7 @@
}
},
{
"path": "pages/business/search",
"path": "business/search",
"style": {
"navigationBarTitleText": "搜索设备",
"enablePullDownRefresh": false
@ -235,7 +143,123 @@
}
},
{
"path": "pages/devices/PCT01",
"path": "score/history",
"style": {
"navigationBarTitleText": "估分历史",
"enablePullDownRefresh": false
}
}, {
"path": "score/report",
"style": {
"navigationBarTitleText": "估分报告",
"enablePullDownRefresh": false
}
},
{
"path": "my/manage",
"style": {
"navigationBarTitleText": "成员管理",
"enablePullDownRefresh": true,
"onReachBottomDistance": 50
}
},
{
"path": "message/list",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},
{
"path": "my/userInfo",
"style": {
"navigationBarTitleText": "资料"
}
},
{
"path": "login/forgetPassword",
"style": {
"navigationBarTitleText": "密码",
"enablePullDownRefresh": false
}
},
{
"path": "login/login",
"style": {
"navigationBarTitleText": "登录",
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
},
{
"path": "my/about",
"style": {
"navigationBarTitleText": "关于我们",
"enablePullDownRefresh": false
}
},
{
"path": "setting/setting",
"style": {
"navigationBarTitleText": "设置",
"enablePullDownRefresh": false
}
},
{
"path": "setting/password",
"style": {
"navigationBarTitleText": "修改密码",
"enablePullDownRefresh": false
}
},
{
"path": "setting/email",
"style": {
"navigationBarTitleText": "绑定邮箱",
"enablePullDownRefresh": false
}
},
{
"path": "setting/phone",
"style": {
"navigationBarTitleText": "绑定手机号",
"enablePullDownRefresh": false
}
},
{
"path": "devices/search",
"style": {
"navigationBarTitleText": "蓝牙搜索",
"enablePullDownRefresh": false
}
},
{
"path": "devices/G02",
"style": {
"navigationBarTitleText": "测量",
"enablePullDownRefresh": false
}
},
{
"path": "devices/PCV02",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},
{
"path": "devices/PCT01",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
@ -243,64 +267,46 @@
}
},
{
"path": "pages/my/about",
"style": {
"navigationBarTitleText": "关于我们",
"enablePullDownRefresh": false
}
},
{
"path": "pages/message/list",
"path": "notepad/notepad",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},
{
"path": "pages/notepad/notepad",
"path": "notepad/addNotepad",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},
{
"path": "pages/notepad/addNotepad",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},
{
"path": "pages/PublicCards/PublicCards",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/PublicCards/charts",
"path": "PublicCards/charts",
"style": {
"navigationBarTitleText": "运动曲线"
}
},
{
"path": "pages/PublicCards/history",
"path": "PublicCards/history",
"style": {
"navigationBarTitleText": "历史记录"
}
},
{
"path": "pages/PublicCards/contrast",
"path": "PublicCards/contrast",
"style": {
"navigationBarTitleText": "数据对比"
}
},
{
"path": "pages/PublicCards/pkdetail",
"path": "PublicCards/pkdetail",
"style": {
"navigationBarTitleText": "对比详情"
}
}
],
]
}],
"globalStyle": {
"navigationBarTextStyle": "white",
"navigationBarTitleText": "",

View File

@ -25,7 +25,10 @@
<!-- -->
<view v-for="(ite,ind) in label_data" v-if="active == ind">
<view class="info">
<view class="time">{{ite.record_time}}</view>
<view class="table">
<text class="time">{{ite.record_time}}</text>
<text class="name2">训练成绩为</text>
</view>
<view class="left">
<view class="left_view">
<view class="title">{{ite.this_time_title}}:</view>
@ -64,9 +67,8 @@
</view>
</view>
<view class="right">
<view class="title bold">训练成绩为</view>
<view class="charts">
<qiun-data-charts type="arcbar" :chartData="chartData" />
<qiun-data-charts type="arcbar" :chartData="chartData" :Height="140" :Width="140" />
<view class="name">{{ite.score?ite.score:'-'}}</view>
</view>
<view class="standard" v-if="ite.standard">
@ -83,19 +85,19 @@
<!-- -->
<view class="gridList">
<view class="data">
<view class="item" @click="navTo('/pages/PublicCards/charts?acd_id='+acd_id)">
<view class="item" @click="navTo('/pageTwo/PublicCards/charts?acd_id='+acd_id)">
<view class="image">
<image src="@/static/charts.png"></image>
</view>
<view class="name">运动曲线</view>
</view>
<view class="item" @click="navTo('/pages/PublicCards/history?acd_id='+acd_id)">
<view class="item" @click="navTo('/pageTwo/PublicCards/history?acd_id='+acd_id)">
<view class="image">
<image src="@/static/add.png"></image>
</view>
<view class="name">历史记录</view>
</view>
<view class="item" @click="navTo('/pages/PublicCards/contrast?acd_id='+acd_id)">
<view class="item" @click="navTo('/pageTwo/PublicCards/contrast?acd_id='+acd_id)">
<view class="image">
<image src="@/static/pk.png"></image>
</view>
@ -150,6 +152,7 @@
that.labelName = that.PublicContent.label_list[0]
that.lineList = that.PublicContent.line_list
that.label_data = that.PublicContent.label_data
that.chartData.series[0].data = Number(that.PublicContent.label_data[0].offset) / 100
that.offset = that.PublicContent.label_data[0].offset
}
return that.PublicContent ? that.PublicContent.label_list : []
@ -169,6 +172,7 @@
that.active = ind
that.labelName = ite
that.offset = that.label_data[ind].offset
that.chartData.series[0].data = Number(that.label_data[ind].offset) / 100
},
//
reload() {
@ -312,11 +316,25 @@
flex-wrap: wrap;
justify-content: space-between;
.time {
.table {
width: 100%;
display: flex;
flex-wrap: wrap;
.name2 {
width: 260rpx;
text-align: center;
font-weight: bold;
font-size: 36rpx;
}
.time {
width: calc(100% - 260rpx);
color: #999;
font-size: 32rpx;
margin-bottom: 5px;
display: inline-block;
}
}
.left {

View File

@ -115,7 +115,7 @@
</view>
<!-- 成长建议 -->
<view v-if="info&&cplist&&(cplist.sleeplist.lengt||cplist.nutritionlist.length)">
<view class="bold mt-10" >成长建议</view>
<view class="bold mt-10">成长建议</view>
<view class="jianyi_box">
<view class="jianyi">
<view @click="proposalnd=1" :class="{active:proposalnd==1}">
@ -160,16 +160,19 @@
<!-- 时间选择 -->
<view class="boxTime">
<view class="one">
<picker mode="date" :end="endDate" @change="handStartTimeH" fields="time"
<picker mode="date" :end="endDate" @change="handStartTimeH" :fields="fields"
:value="startTime?startTime:startDate">
<view class="uni-input mr-10">{{startTime?startTime:startDate}}</view>
<view class="uni-input mr-10">{{startTime?startTime:startDate}}
<icon class="iconfont icon-arrow-down-bold"></icon>
</view>
</picker>
<view class="center">~</view>
<picker mode="date" :end="endDate" @change="handEndTimeH" fields="time"
<picker mode="date" :end="endDate" @change="handEndTimeH" :fields="fields"
:value="endTime?endTime:endDate">
<view class="uni-input mr-10">{{endTime?endTime:endDate}}</view>
<view class="uni-input mr-10">{{endTime?endTime:endDate}}
<icon class="iconfont icon-arrow-down-bold"></icon>
</view>
</picker>
</view>
</view>
@ -184,7 +187,7 @@
<view class="blockC">
<view v-if="handTrue">
<qiunDataCharts type="area" :chartData="lineData" :canvas2d="true" canvasId="charts09"
:cHeight="480" :cWidth="680" :animation="false"
:animation="false" :Width="340" :Height="250"
:opts="{enableScroll:true,xAxis:{scrollShow:false,itemCount:3}}" :ontouch="true" />
</view>
</view>
@ -199,11 +202,11 @@
<!-- 目标-->
<view class="gridList">
<view class="info">
<view class="item" @click="navTo('/pages/history/history?acd_id='+ acd_id)">
<view class="item" @click="navTo('/pageTwo/history/history?acd_id='+ acd_id)">
<text class="t-icon-lishi t-icon"></text>
<view>历史记录</view>
</view>
<view class="item" @click="navTo('/pages/compk/contrast?acd_id='+ acd_id)">
<view class="item" @click="navTo('/pageTwo/compk/contrast?acd_id='+ acd_id)">
<text class="t-icon-renshiduibifenxi t-icon"></text>
<view>数据对比</view>
</view>
@ -250,10 +253,11 @@
} from "vuex";
import record from '@/element/manuallyAdd/record.vue';
import firstweight from '@/element/target/firstweight.vue';
import qiunDataCharts from '@/uni_modules/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue';
import qiunDataCharts from '@/uni_modules/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue'
export default {
data() {
return {
fields: "",
active: 1,
acd_id: 2,
isDevice: 0,
@ -314,7 +318,12 @@
s_time: that.startDate,
e_time: that.endDate
})
console.log("11111", options)
// #ifdef APP-PLUS
that.fields = "time"
// #endif
// #ifndef APP-PLUS
that.fields = "day"
// #endif
},
onBackPress(options) {
let that = this
@ -350,7 +359,7 @@
success: e => {
that.$store.commit("changeBluetooth", true);
uni.navigateTo({
url: "/pages/devices/search?id=" + that.acd_id
url: "/pageTwo/devices/search?id=" + that.acd_id
})
console.log('初始化蓝牙成功:' + e.errMsg);
},
@ -468,4 +477,9 @@
background-color: #F5F6FA;
min-height: 100vh;
}
.listC {
margin: 0;
width: 100%;
}
</style>

View File

@ -1,7 +1,7 @@
<template>
<view class="content">
<view class="add" @click="handleAddDevice()">添加设备</view>
<view class="list" v-if="list.length">
<view class="list">
<view class="item" v-for="(item,index) in list" @click="handleunbind(item,index)">
<view class="left">
<image :src="item.pic"></image>
@ -72,7 +72,7 @@
},
handleAddDevice() {
uni.navigateTo({
url: "/pages/business/addDevice"
url: "/pageTwo/business/addDevice"
})
},
}

View File

@ -123,13 +123,16 @@
that.$store.commit('changeFamilay', res.data)
if (res.data.length) {
that.$store.dispatch('getUserInfo', {
aud_id: uni.getStorageSync('userid') ? uni.getStorageSync('userid') : res.data[0].id
aud_id: uni.getStorageSync('userid') ? uni.getStorageSync('userid') : res.data[
0].id
})
that.$store.dispatch("getCardList", {
aud_id: uni.getStorageSync('userid') ? uni.getStorageSync('userid') : res.data[0].id
aud_id: uni.getStorageSync('userid') ? uni.getStorageSync('userid') : res.data[
0].id
})
that.handleLabelList(res.data[0].id)
that.handlePublicRecord(res.data[0].id)
that.handleCityList()
}
}).catch(err => {})
},
@ -145,6 +148,17 @@
}
})
},
//
handleCityList() {
let that = this
that.$model.getGradeList({}).then((res) => {
console.log("|全部地区", res.data)
if (res.code != 0) return
that.$store.commit('changeCityList', res.data.area_list)
that.$store.commit('changeGradeList', res.data.grade_list)
that.$store.commit('changeIdentityList', res.data.identity_list)
})
},
//
handlePublicRecord(id) {
let that = this
@ -160,7 +174,7 @@
//
handleCard() {
uni.navigateTo({
url: "/pages/cardList/card"
url: "/pageTwo/cardList/card"
})
},
//
@ -179,7 +193,7 @@
//
handleAddUser() {
uni.navigateTo({
url: "/pages/my/userInfo"
url: "/pageTwo/my/userInfo"
})
},
navTo(url) {
@ -195,26 +209,20 @@
<style lang="scss" scoped>
/deep/.header {
width: 100%;
height: 380rpx;
.top {
color: #fff;
background: $maincolor ;
}
}
.radius50 {
width: 100%;
height: 80px;
margin-top: -100rpx;
border-radius: 40px 40px 0 0;
background-color: #f7f7f7;
/deep/.cityList {
margin-top: -36px;
}
.list {
margin-top: -260rpx;
padding: 0 10px;
margin-top: 0rpx;
padding: 0;
}
.blueBtn {

View File

@ -17,8 +17,8 @@
<view class="boxLine">
<view class="line" v-for="(item,index) in weightList">
<view v-if="item.line.categories.length">
<qiunDataCharts type="column" :chartData="item.line" :canvas2d="true" :canvasId="item.id"
:cHeight="400" :cWidth="720" :animation="false"
<qiunDataCharts type="column" :chartData="item.line" :canvas2d="true" :canvasId="'lung'+index"
:Width="340" :Height="250" :animation="false"
:opts="{enableScroll:true,xAxis:{scrollShow:false,itemCount:3}}" :ontouch="true" />
</view>
<view class="nolist" v-else>
@ -34,7 +34,7 @@
import {
mapState
} from "vuex";
import qiunDataCharts from '@/uni_modules/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue';
import qiunDataCharts from '@/uni_modules/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue'
export default {
components: {
qiunDataCharts,

View File

@ -40,13 +40,13 @@
</view>
<view class="name">运动曲线</view>
</view>
<view class="item" @click="navTo('/pages/history/history?acd_id='+acd_id)">
<view class="item" @click="navTo('/pageTwo/history/history?acd_id='+acd_id)">
<view class="image">
<image src="../../static/add.png"></image>
</view>
<view class="name">历史记录</view>
</view>
<view class="item" @click="navTo('/pages/compk/contrast?acd_id='+acd_id)">
<view class="item" @click="navTo('/pageTwo/compk/contrast?acd_id='+acd_id)">
<view class="image">
<image src="../../static/pk.png"></image>
</view>

View File

@ -1,7 +1,7 @@
<template>
<view class="content">
<!-- 头部 -->
<view class="top" @click="navTo('/pages/setting/setting')">
<view class="top" @click="navTo('/pageTwo/setting/setting')">
<view class="headimg">
<image :src="user.head_pic" class="image"></image>
<view class="size20 bold">{{user.nickname}}</view>
@ -10,7 +10,7 @@
</view>
<!-- -->
<view class="wxlist borderRadius">
<view class="list" @click="navTo('/pages/my/manage')">
<view class="list" @click="navTo('/pageTwo/my/manage')">
<view class="item border-bottom">
<view class="left">
<view class="name">成员管理</view>
@ -30,7 +30,7 @@
</view>
</view>
</view> -->
<view class="list" @click="navTo('/pages/score/history')">
<view class="list" @click="navTo('/pageTwo/score/history')">
<view class="item border-bottom">
<view class="left">
<view class="name">估分历史</view>
@ -50,7 +50,8 @@
</view>
</view>
</view> -->
<view class="list" @click="navTo('/pages/my/about')">
<!-- #ifdef APP-PLUS -->
<view class="list" @click="navTo('/pageTwo/my/about')">
<view class="item border-bottom">
<view class="left">
<view class="name">关于我们</view>
@ -60,6 +61,7 @@
</view>
</view>
</view>
<!-- #endif -->
<!-- <view class="list" @click="navTo('/pages/login/forgetPassword?type=forgetPassword')">
<view class="item border-bottom">
<view class="left">
@ -145,7 +147,7 @@
uni.setStorageSync('aan_id', null)
uni.clearStorageSync()
uni.reLaunch({
url: "/pages/login/login"
url: "/pageTwo/login/login"
})
})
} else if (res.cancel) {

View File

@ -6,10 +6,10 @@
<view class="box">
<view class="title bold">本次估分成绩为</view>
<view class="charts mt-15">
<qiun-data-charts type="arcbar" :chartData="chartData" />
<qiun-data-charts type="arcbar" :chartData="chartData" :Height="140" :Width="140"/>
<view class="name">{{score?score:'--'}}</view>
</view>
<view class="btn history" @click="navTo('/pages/score/history')">估分历史</view>
<view class="btn history" @click="navTo('/pageTwo/score/history')">估分历史</view>
<view class="title bold" v-if="Max_score">该地区体育总成绩为:{{Max_score}}</view>
</view>
<!-- -->
@ -19,12 +19,12 @@
<view class="indexCarList">
<view class="card" v-for="(ite,ind) in item.list">
<view class="title">
<view class="name">{{ite.name}}</view>
<view class="name ">{{ite.name}}</view>
<view class="right" v-if="ite.is_choice!=0" @click="handleHistory(ite)">选择项目</view>
</view>
<!-- 列表 -->
<view class="item3" v-for="(it,ik) in ite.list" :key="ik" v-if="!isresult">
<view class="name">{{it.name}}<uni-icons type="info" color="#f0ad4e" size="20"
<view class="name overflow">{{it.name}}<uni-icons type="info" color="#f0ad4e" size="20"
@click="handleTips(it.describe)" v-if="it.describe"></uni-icons></view>
<view class="weight">
<view class="input">
@ -359,6 +359,7 @@
<style scoped lang="scss">
@import "@/scss/score.scss";
.content {
min-height: 100vh;
padding-bottom: 15px;

View File

@ -18,7 +18,7 @@
<view class="line" v-for="(item,index) in weightList">
<view v-if="item.line.categories.length">
<qiunDataCharts type="column" :chartData="item.line" :canvas2d="true" :canvasId="item.id"
:cHeight="480" :cWidth="680" :animation="false"
:Width="340" :Height="250" :animation="false"
:opts="{enableScroll:true,xAxis:{scrollShow:false,itemCount:3}}" :ontouch="true" />
</view>
<view class="line" v-else>
@ -36,7 +36,7 @@
import {
mapState
} from "vuex";
import qiunDataCharts from '@/uni_modules/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue';
import qiunDataCharts from '@/uni_modules/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue'
export default {
components: {
qiunDataCharts,

View File

@ -15,9 +15,9 @@
</view>
<!-- -->
<view class="tabbar">
<view @click="active=1" :class="[active==1?'active':'']">自由训练</view>
<view @click="active=2" :class="[active==2?'active':'']">定时训练</view>
<view @click="active=3" :class="[active==3?'active':'']">定数训练</view>
<view @click="active=1" :class="[active==1?'active':'']">自由</view>
<view @click="active=3" :class="[active==3?'active':'']">倒计数</view>
<view @click="active=2" :class="[active==2?'active':'']">倒计时</view>
</view>
<!--自由训练 -->
<view class="box1 box" v-if="active==1">
@ -89,13 +89,13 @@
</view>
<view class="name">运动曲线</view>
</view>
<view class="item" @click="navTo('/pages/history/history?acd_id='+acd_id)">
<view class="item" @click="navTo('/pageTwo/history/history?acd_id='+acd_id)">
<view class="image">
<image src="@/static/add.png"></image>
</view>
<view class="name">历史记录</view>
</view>
<view class="item" @click="navTo('/pages/compk/contrast?acd_id='+acd_id)">
<view class="item" @click="navTo('/pageTwo/compk/contrast?acd_id='+acd_id)">
<view class="image">
<image src="@/static/pk.png"></image>
</view>
@ -126,6 +126,7 @@
active: 1,
acd_id: 6,
weight: 50,
Unload: false,
disabled: false,
isDevice: 0,
isConnection: false,
@ -169,6 +170,7 @@
//
if (options && options.info) {
let data = JSON.parse(options.info)
that.Unload = true
that.active = data.active
that.deviceId = data.deviceId
that.serviceId = data.serviceId
@ -201,11 +203,13 @@
console.log('监听到事件来自 updateData ,携带参数为:' + info);
})
},
onBackPress(options) {
// #ifdef APP-PLUS
onBackPress() {
let that = this
that.islink = -1
clearTimeout(myTime);
that.isConnection = false
console.log("返回首页onBackPress")
that.$Bluetooth.closeBluetoothAdapter()
that.$Bluetooth.closeBLEConnection(that.deviceId)
that.$Bluetooth.stopBluetoothDevicesDiscovery()
@ -216,9 +220,32 @@
url: '/pages/home/home'
})
}, 300)
console.log("返回首页")
return true
},
// #endif
// #ifndef APP-PLUS
onUnload: function() {
let that = this
// clearTimeout(myTime);
// that.islink = -1
// that.isConnection = false
// that.$Bluetooth.closeBluetoothAdapter()
// that.$Bluetooth.closeBLEConnection(that.deviceId)
// that.$Bluetooth.stopBluetoothDevicesDiscovery()
// that.$store.commit("changeBluetooth", false);
// that.$store.commit("changeConnected", false);
// setTimeout(() => {
uni.switchTab({
url: '/pages/home/home'
})
// }, 300)
let pages = getCurrentPages()
let prevPage = pages[pages.length - 2]
console.log("prevPage", prevPage)
uni.$off("updateData")
console.log("返回首页onUnload")
},
// #endif
watch: {
devicesList() {
let that = this
@ -333,6 +360,9 @@
},
fail: res => {
console.log('获取设备的UUID失败:', res)
that.islink = -1
clearTimeout(myTime);
that.isConnection = false
}
});
},
@ -396,6 +426,7 @@
success(res) {
uni.onBLECharacteristicValueChange(function(res) {
let value = that.$tools.ab2hex(res.value, "");
console.log("1111跳", value)
if (value == '5a05090169') { //
let info = {
active: that.active,
@ -408,7 +439,8 @@
}
setTimeout(function() {
uni.navigateTo({
url: "/pages/devices/PCT01?info=" + JSON.stringify(info)
url: "/pageTwo/devices/PCT01?info=" + JSON
.stringify(info)
})
}, 200)
}

View File

@ -451,6 +451,53 @@
}
}
}
.visible {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 99;
background-color: rgba(0, 0, 0, 0.6);
.groupBtn {
height: 50px;
line-height: 50px;
background-color: #fff;
display: flex;
justify-content: space-between;
padding: 0 15px;
border-bottom: 1px solid #dfdfdf;
position: absolute;
left: 0;
right: 0;
bottom: 45%;
z-index: 999;
view {
height: 30px;
line-height: 30px;
padding: 0 10px;
background-color: #dfdfdf;
border-radius: 5px;
margin-top: 10px;
}
.sure {
background-color: $textcolor;
color: #fff !important;
}
}
.picker-view {
width: 100%;
height: 45%;
bottom: 0;
position: absolute;
background-color: #fff;
}
}
.header {
width: 100%;
height: 240rpx;
@ -734,18 +781,16 @@
font-size: 28rpx;
align-items: center;
}
.name2 {
font-size: 36rpx;
font-weight: bold;
margin-right: 10px;
color: #333;
}
}
.item {
padding: 15px 0;
padding: 7px 0;
display: flex;
flex-wrap: wrap;
text-align: center;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

View File

@ -135,7 +135,7 @@ export default {
}) {
return model.getUserDeviceList({}).then(res => {
console.log("用户设备", res)
if (res.data && res.data.list.length) {
if (res.data) {
commit('changeUserDeviceList', res.data.list)
} else {
commit('changeUserDeviceList', [])

View File

@ -57,7 +57,9 @@ export default new Vuex.Store({
versionUrl: null,
platform: ""
},
cityList: [],
gradeList: [],
identityList: []
},
// mutations: Store中更改state数据状态的唯一方法(必须是同步函数)
mutations: {
@ -162,8 +164,17 @@ export default new Vuex.Store({
// 公共卡片
changeLabelList(state, newData) {
state.labelList = newData
}
},
// 城市
changeCityList(state, newData) {
state.cityList = newData
},
changeGradeList(state, newData) {
state.gradeList = newData
},
changeIdentityList(state, newData) {
state.identityList = newData
},
},
// 模块化vuex
modules: {},

View File

@ -140,7 +140,7 @@ function handleDevicesMac(device, acd_id) {
success: e => {
$store.commit("changeBluetooth", true);
uni.navigateTo({
url: "/pages/devices/search?id=" + acd_id + '&device=' + device
url: "/pageTwo/devices/search?id=" + acd_id + '&device=' + device
})
console.log('初始化蓝牙成功:' + e.errMsg);
},

View File

@ -1,7 +1,7 @@
import tools from '@/toolJs/tools.js'
import store from '../store'
// let baseUrl = "http://tc.pcxbc.com"
let baseUrl = "http://tc.pcxbc.com/testedition"
let baseUrl = "https://tc.pcxbc.com/testedition"
const httpRequest = (url, method = "get", data) => {
data.token = uni.getStorageSync('token')
data.aan_id = uni.getStorageSync('aan_id')
@ -25,7 +25,7 @@ const httpRequest = (url, method = "get", data) => {
uni.setStorageSync('aan_id', null)
setTimeout(function() {
uni.reLaunch({
url: "/pages/login/login"
url: "/pageTwo/login/login"
})
}, 2000)
return

View File

@ -97,7 +97,7 @@ export default {
return res
})
},
getGradeList(param) { // 获取年级列表
getGradeList(param) { // 获取年级、身份、地区列表
return http.post("/get_grade_list", param).then(res => {
return res
})

View File

@ -16,563 +16,407 @@
*
*/
// 通用配置项
// 主题颜色配置如每个图表类型需要不同主题请在对应图表类型上更改color属性
const color = ['#1890FF', '#91CB74', '#FAC858', '#EE6666', '#73C0DE', '#3CA272', '#FC8452', '#9A60B4', '#ea7ccc'];
//事件转换函数主要用作格式化x轴为时间轴根据需求自行修改
const formatDateTime = (timeStamp, returnType) => {
var date = new Date();
date.setTime(timeStamp * 1000);
var y = date.getFullYear();
var m = date.getMonth() + 1;
m = m < 10 ? ('0' + m) : m;
var d = date.getDate();
d = d < 10 ? ('0' + d) : d;
var h = date.getHours();
h = h < 10 ? ('0' + h) : h;
var minute = date.getMinutes();
var second = date.getSeconds();
minute = minute < 10 ? ('0' + minute) : minute;
second = second < 10 ? ('0' + second) : second;
if (returnType == 'full') {
return y + '-' + m + '-' + d + ' ' + h + ':' + minute + ':' + second;
}
if (returnType == 'y-m-d') {
return y + '-' + m + '-' + d;
}
if (returnType == 'h:m') {
return h + ':' + minute;
}
if (returnType == 'h:m:s') {
return h + ':' + minute + ':' + second;
}
return [y, m, d, h, minute, second];
}
module.exports = {
//demotype为自定义图表类型一般不需要自定义图表类型只需要改根节点上对应的类型即可
"type": ["pie", "ring", "rose", "word", "funnel", "map", "arcbar", "line", "column", "area", "radar", "gauge",
"candle", "mix", "tline", "tarea", "scatter", "bubble", "demotype"
],
"range": ["饼状图", "圆环图", "玫瑰图", "词云图", "漏斗图", "地图", "圆弧进度条", "折线图", "柱状图", "区域图", "雷达图", "仪表盘", "K线图", "混合图",
"时间轴折线", "时间轴区域", "散点图", "气泡图", "自定义类型"
],
//增加自定义图表类型如果需要categories请在这里加入您的图表类型例如最后的"demotype"
//自定义类型时需要注意"tline","tarea","scatter","bubble"等时间轴矢量x轴类图表没有categories不需要加入categories
"categories": ["line", "column", "area", "radar", "gauge", "candle", "mix", "demotype"],
//instance为实例变量承载属性不要删除
const cfe = {
//demotype为自定义图表类型
"type": ["pie", "ring", "rose", "funnel", "line", "column", "area", "radar", "gauge","candle","demotype"],
//增加自定义图表类型如果需要categories请在这里加入您的图表类型例如最后的"demotype"
"categories": ["line", "column", "area", "radar", "gauge", "candle","demotype"],
//instance为实例变量承载属性option为eopts承载属性不要删除
"instance": {},
//option为opts及eopts承载属性不要删除
"option": {},
//下面是自定义format配置因除H5端外的其他端无法通过props传递函数只能通过此属性对应下标的方式来替换
"formatter": {
"yAxisDemo1": function(val) {
return val + '元'
"formatter":{
"tooltipDemo1":function(res){
let result = ''
for (let i in res) {
if (i == 0) {
result += res[i].axisValueLabel + '年销售额'
}
let value = '--'
if (res[i].data !== null) {
value = res[i].data
}
// #ifdef H5
result += '\n' + res[i].seriesName + '' + value + ' 万元'
// #endif
// #ifdef APP-PLUS
result += '<br/>' + res[i].marker + res[i].seriesName + '' + value + ' 万元'
// #endif
}
return result;
},
"yAxisDemo2": function(val) {
return val.toFixed(2)
legendFormat:function(name){
return "自定义图例+"+name;
},
"xAxisDemo1": function(val) {
return val + '年'
yAxisFormatDemo:function (value, index) {
return value + '元';
},
"xAxisDemo2": function(val) {
return formatDateTime(val, 'h:m')
},
"seriesDemo1": function(val) {
return val + '元'
},
"tooltipDemo1": function(item, category, index, opts) {
if (index == 0) {
return '随便用' + item.data + '年'
} else {
return '其他我没改' + item.data + '天'
seriesFormatDemo:function(res){
return res.name + '年' + res.value + '元';
}
},
"pieDemo": function(val, index, series) {
if (index !== undefined) {
return series[index].name + '' + series[index].data + '元'
}
},
},
//这里演示了自定义您的图表类型的option可以随意命名之后在组件上 type="demotype" 后组件会调用这个花括号里的option如果组件上还存在opts参数会将demotype与opts中option合并后渲染图表。
"demotype": {
//我这里把曲线图当做了自定义图表类型,您可以根据需要随意指定类型或配置
"type": "line",
//这里演示了自定义您的图表类型的option可以随意命名之后在组件上 type="demotype" 后组件会调用这个花括号里的option如果组件上还存在eopts参数会将demotype与eopts中option合并后渲染图表。
"demotype":{
"color": color,
"padding": [15, 10, 0, 15],
"xAxis": {
"disableGrid": true,
},
"yAxis": {
"gridType": "dash",
"dashLength": 2,
},
"legend": {},
"extra": {
"line": {
"type": "curve",
"width": 2
},
}
//在这里填写echarts的option即可
},
//下面是自定义配置,请添加项目所需的通用配置
"pie": {
"type": "pie",
"color": color,
"padding": [5, 5, 5, 5],
"extra": {
"pie": {
"activeOpacity": 0.5,
"activeRadius": 10,
"offsetAngle": 0,
"labelWidth": 15,
"border": true,
"borderWidth": 3,
"borderColor": "#FFFFFF"
},
}
},
"ring": {
"type": "ring",
"color": color,
"padding": [5, 5, 5, 5],
"rotate": false,
"dataLabel": true,
"legend": {
"show": true,
"position": "right",
"lineHeight": 25,
},
"title": {
"name": "收益率",
"fontSize": 15,
"color": "#666666"
},
"subtitle": {
"name": "70%",
"fontSize": 25,
"color": "#7cb5ec"
},
"extra": {
"ring": {
"ringWidth": 30,
"activeOpacity": 0.5,
"activeRadius": 10,
"offsetAngle": 0,
"labelWidth": 15,
"border": true,
"borderWidth": 3,
"borderColor": "#FFFFFF"
},
},
},
"rose": {
"type": "rose",
"color": color,
"padding": [5, 5, 5, 5],
"legend": {
"show": true,
"position": "left",
"lineHeight": 25,
},
"extra": {
"rose": {
"type": "area",
"minRadius": 50,
"activeOpacity": 0.5,
"activeRadius": 10,
"offsetAngle": 0,
"labelWidth": 15,
"border": false,
"borderWidth": 2,
"borderColor": "#FFFFFF"
},
}
},
"word": {
"type": "word",
"color": color,
"extra": {
"word": {
"type": "normal",
"autoColors": false
}
}
},
"funnel": {
"type": "funnel",
"color": color,
"padding": [15, 15, 0, 15],
"extra": {
"funnel": {
"activeOpacity": 0.3,
"activeWidth": 10,
"border": true,
"borderWidth": 2,
"borderColor": "#FFFFFF",
"fillOpacity": 1,
"labelAlign": "right"
},
}
},
"map": {
"type": "map",
"color": color,
"padding": [0, 0, 0, 0],
"dataLabel": true,
"extra": {
"map": {
"border": true,
"borderWidth": 1,
"borderColor": "#666666",
"fillOpacity": 0.6,
"activeBorderColor": "#F04864",
"activeFillColor": "#FACC14",
"activeFillOpacity": 1
},
}
},
"arcbar": {
"type": "arcbar",
"column": {
"color": color,
"title": {
"name": "百分比",
"fontSize": 25,
"color": "#00FF00"
"text": ''
},
"subtitle": {
"name": "默认标题",
"fontSize": 15,
"color": "#666666"
"tooltip": {
"trigger": 'axis'
},
"extra": {
"arcbar": {
"type": "default",
"width": 12,
"backgroundColor": "#E9E9E9",
"startAngle": 0.75,
"endAngle": 0.25,
"gap": 2
}
}
},
"line": {
"type": "line",
"color": color,
"padding": [15, 10, 0, 15],
"xAxis": {
"disableGrid": true,
},
"yAxis": {
"gridType": "dash",
"dashLength": 2,
},
"legend": {},
"extra": {
"line": {
"type": "straight",
"width": 2
},
}
},
"tline": {
"type": "line",
"color": color,
"padding": [15, 10, 0, 15],
"xAxis": {
"disableGrid": false,
"boundaryGap": "justify",
},
"yAxis": {
"gridType": "dash",
"dashLength": 2,
"data": [{
"min": 0,
"max": 80
}]
},
"legend": {},
"extra": {
"line": {
"type": "curve",
"width": 2
},
}
},
"tarea": {
"type": "area",
"color": color,
"padding": [0, 15, 15, 5],
"xAxis": {
"disableGrid": true,
"boundaryGap": "justify",
},
"yAxis": {
"gridType": "dash",
"dashLength": 2,
"data": [{
"min": 0,
"max": 80
}]
},
"legend": {},
"extra": {
"area": {
"type": "curve",
"opacity": 0.2,
"addLine": true,
"width": 2,
"gradient": true
},
}
},
"column": {
"type": "column",
"color": color,
"padding": [15, 15, 0, 5],
"xAxis": {
"disableGrid": true,
},
"yAxis": {
"gridType": "dash",
"disableGrid": true,
"gridColor": '#ffffff',
"data": [{
"tofix": 1,
"min": 0
}],
},
"legend": {},
"extra": {
"column": {
"type": "group",
"width": 20,
"seriesGap": 5,
"meterFillColor": "#FFFFFF",
"activeBgColor": "#000000",
"activeBgOpacity": 0.5,
"barBorderCircle": true,
"linearType": "opacity",
// "customColor": "#ff9f40",
"linearOpacity": 1,
},
}
},
"area": {
"type": "area",
"color": color,
"padding": [20, 15, 5, 10],
"xAxis": {
"disableGrid": true,
},
"yAxis": {
"gridType": "dash",
"disableGrid": true,
"gridColor": '#ffffff',
"data": [{
"tofix": 1,
"min": 0
}],
"grid": {
"top": 30,
"bottom": 50,
"right": 15,
"left": 40
},
"legend": {
"bottom": 'left',
},
"toolbox": {
"show": false,
},
"extra": {
"area": {
"type": "curve",
"opacity": 0.2,
"addLine": true,
"width": 1,
"gradient": true
},
}
},
"radar": {
"type": "radar",
"color": color,
"padding": [5, 5, 5, 5],
"legend": {
"show": true,
"position": "right",
"lineHeight": 25,
},
"extra": {
"radar": {
"gridType": "radar",
"gridColor": "#CCCCCC",
"gridCount": 3,
"opacity": 0.2,
"max": 200
},
}
},
"gauge": {
"type": "gauge",
"color": color,
"title": {
"name": "66Km/H",
"fontSize": 25,
"color": "#2fc25b",
"offsetY": 50
},
"subtitle": {
"name": "实时速度",
"fontSize": 15,
"color": "#1890ff",
"offsetY": -50
},
"extra": {
"gauge": {
"type": "default",
"width": 30,
"labelColor": "#666666",
"startAngle": 0.75,
"endAngle": 0.25,
"startNumber": 0,
"endNumber": 100,
"labelFormat": "",
"splitLine": {
"fixRadius": 0,
"splitNumber": 10,
"width": 30,
"color": "#FFFFFF",
"childNumber": 5,
"childWidth": 12
},
"pointer": {
"width": 24,
"color": "auto"
}
}
}
},
"candle": {
"type": "candle",
"color": color,
"padding": [15, 15, 0, 15],
"enableScroll": true,
"enableMarkLine": true,
"dataLabel": false,
"xAxis": {
"labelCount": 4,
"itemCount": 40,
"disableGrid": true,
"gridColor": "#CCCCCC",
"gridType": "solid",
"dashLength": 4,
"scrollShow": true,
"scrollAlign": "left",
"scrollColor": "#A6A6A6",
"scrollBackgroundColor": "#EFEBEF"
"type": 'category',
"axisLabel": {
"color": '#666666'
},
"yAxis": {},
"legend": {},
"extra": {
"candle": {
"color": {
"upLine": "#f04864",
"upFill": "#f04864",
"downLine": "#2fc25b",
"downFill": "#2fc25b"
},
"average": {
"show": true,
"name": ["MA5", "MA10", "MA30"],
"day": [5, 10, 20],
"color": ["#1890ff", "#2fc25b", "#facc14"]
"axisLine": {
"lineStyle": {
"color": '#CCCCCC'
}
},
"markLine": {
"type": "dash",
"dashLength": 5,
"data": [{
"value": 2150,
"lineColor": "#f04864",
"showLabel": true
},
{
"value": 2350,
"lineColor": "#f04864",
"showLabel": true
}
]
}
}
},
"mix": {
"type": "mix",
"color": color,
"padding": [15, 15, 0, 15],
"xAxis": {
"disableGrid": true,
},
"yAxis": {
"disabled": false,
"disableGrid": false,
"splitNumber": 5,
"gridType": "dash",
"dashLength": 4,
"gridColor": "#CCCCCC",
"padding": 10,
"showTitle": true,
"boundaryGap": true,
"data": []
},
"legend": {},
"extra": {
"mix": {
"column": {
"width": 20
"yAxis": {
"type": 'value',
"axisTick": {
"show": false,
},
"axisLabel": {
"color": '#666666'
},
"axisLine": {
"lineStyle": {
"color": '#CCCCCC'
}
},
}
},
"scatter": {
"type": "scatter",
"seriesTemplate": {
"name": '',
"type": 'bar',
"data": [],
"barwidth": 20,
"label": {
"show": true,
"color": "#666666",
"position": 'top',
},
},
},
"line": {
"color": color,
"padding": [15, 15, 0, 15],
"dataLabel": false,
"title": {
"text": ''
},
"tooltip": {
"trigger": 'axis'
},
"grid": {
"top": 30,
"bottom": 50,
"right": 15,
"left": 40
},
"legend": {
"bottom": 'left',
},
"toolbox": {
"show": false,
},
"xAxis": {
"disableGrid": false,
"gridType": "dash",
"splitNumber": 5,
"boundaryGap": "justify",
"min": 0
"type": 'category',
"axisLabel": {
"color": '#666666'
},
"axisLine": {
"lineStyle": {
"color": '#CCCCCC'
}
},
"boundaryGap": true,
"data": []
},
"yAxis": {
"disableGrid": false,
"gridType": "dash",
"type": 'value',
"axisTick": {
"show": false,
},
"legend": {},
"extra": {
"scatter": {},
"axisLabel": {
"color": '#666666'
},
"axisLine": {
"lineStyle": {
"color": '#CCCCCC'
}
},
"bubble": {
"type": "bubble",
},
"seriesTemplate": {
"name": '',
"type": 'line',
"data": [],
"barwidth": 20,
"label": {
"show": true,
"color": "#666666",
"position": 'top',
},
},
},
"area": {
"color": color,
"padding": [15, 15, 0, 15],
"title": {
"text": ''
},
"tooltip": {
"trigger": 'axis'
},
"grid": {
"top": 30,
"bottom": 50,
"right": 15,
"left": 40
},
"legend": {
"bottom": 'left',
},
"toolbox": {
"show": false,
},
"xAxis": {
"disableGrid": false,
"gridType": "dash",
"splitNumber": 5,
"boundaryGap": "justify",
"min": 0,
"max": 250
"type": 'category',
"axisLabel": {
"color": '#666666'
},
"axisLine": {
"lineStyle": {
"color": '#CCCCCC'
}
},
"boundaryGap": true,
"data": []
},
"yAxis": {
"disableGrid": false,
"gridType": "dash",
"data": [{
"min": 0,
"max": 150
}]
"type": 'value',
"axisTick": {
"show": false,
},
"legend": {},
"extra": {
"bubble": {
"border": 2,
"opacity": 0.5,
"axisLabel": {
"color": '#666666'
},
"axisLine": {
"lineStyle": {
"color": '#CCCCCC'
}
},
},
"seriesTemplate": {
"name": '',
"type": 'line',
"data": [],
"areaStyle": {},
"label": {
"show": true,
"color": "#666666",
"position": 'top',
},
},
},
"pie": {
"color": color,
"title": {
"text": ''
},
"tooltip": {
"trigger": 'item'
},
"grid": {
"top": 40,
"bottom": 30,
"right": 15,
"left": 15
},
"legend": {
"bottom": 'left',
},
"seriesTemplate": {
"name": '',
"type": 'pie',
"data": [],
"radius": '50%',
"label": {
"show": true,
"color": "#666666",
"position": 'top',
},
},
},
"ring": {
"color": color,
"title": {
"text": ''
},
"tooltip": {
"trigger": 'item'
},
"grid": {
"top": 40,
"bottom": 30,
"right": 15,
"left": 15
},
"legend": {
"bottom": 'left',
},
"seriesTemplate": {
"name": '',
"type": 'pie',
"data": [],
"radius": ['40%', '70%'],
"avoidLabelOverlap": false,
"label": {
"show": true,
"color": "#666666",
"position": 'top',
},
"labelLine": {
"show": true
},
},
},
"rose": {
"color": color,
"title": {
"text": ''
},
"tooltip": {
"trigger": 'item'
},
"legend": {
"top": 'bottom'
},
"seriesTemplate": {
"name": '',
"type": 'pie',
"data": [],
"radius": "55%",
"center": ['50%', '50%'],
"roseType": 'area',
},
},
"funnel": {
"color": color,
"title": {
"text": ''
},
"tooltip": {
"trigger": 'item',
"formatter": "{b} : {c}%"
},
"legend": {
"top": 'bottom'
},
"seriesTemplate": {
"name": '',
"type": 'funnel',
"left": '10%',
"top": 60,
"bottom": 60,
"width": '80%',
"min": 0,
"max": 100,
"minSize": '0%',
"maxSize": '100%',
"sort": 'descending',
"gap": 2,
"label": {
"show": true,
"position": 'inside'
},
"labelLine": {
"length": 10,
"lineStyle": {
"width": 1,
"type": 'solid'
}
},
"itemStyle": {
"bordercolor": '#fff',
"borderwidth": 1
},
"emphasis": {
"label": {
"fontSize": 20
}
},
"data": [],
},
},
"gauge": {
"color": color,
"tooltip": {
"formatter": '{a} <br/>{b} : {c}%'
},
"seriesTemplate": {
"name": '业务指标',
"type": 'gauge',
"detail": {"formatter": '{value}%'},
"data": [{"value": 50, "name": '完成率'}]
},
},
"candle": {
"xAxis": {
"data": []
},
"yAxis": {},
"color": color,
"title": {
"text": ''
},
"dataZoom": [{
"type": 'inside',
"xAxisIndex": [0, 1],
"start": 10,
"end": 100
},
{
"show": true,
"xAxisIndex": [0, 1],
"type": 'slider',
"bottom": 10,
"start": 10,
"end": 100
}
],
"seriesTemplate": {
"name": '',
"type": 'k',
"data": [],
},
}
}
export default cfe;

View File

@ -237,13 +237,13 @@ const cfu = {
"color": color,
"title": {
"name": "",
"fontSize": 22,
"color": "#00FF00"
"fontSize": 25,
"color": ""
},
"subtitle": {
"name": "",
"fontSize": 15,
"color": "#666666"
"color": ""
},
"extra": {
"arcbar": {
@ -340,17 +340,27 @@ const cfu = {
"gridType": "dash",
"disableGrid": true,
"gridColor": '#ffffff',
"data": [{
"tofix": 1,
"min": 0
}],
"data": [{
"min": 0
}]
},
"legend": {},
"extra": {
"column": {
"type": "group",
"width": 30,
"width": 20,
"seriesGap": 5,
"meterFillColor": "#FFFFFF",
"activeBgColor": "#000000",
"activeBgOpacity": 0.08
"activeBgOpacity": 0.5,
"barBorderCircle": true,
"linearType": "opacity",
// "customColor": "#ff9f40",
"linearOpacity": 1,
},
}
},
@ -400,7 +410,7 @@ const cfu = {
"area": {
"type": "area",
"color": color,
"padding": [15, 15, 0, 15],
"padding": [20, 15, 5, 10],
"xAxis": {
"disableGrid": true,
},
@ -421,8 +431,8 @@ const cfu = {
"type": "curve",
"opacity": 0.2,
"addLine": true,
"width": 2,
"gradient": false,
"width": 1,
"gradient": true,
"activeType": "hollow"
},
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
{"version":3,"sources":["uni-app:///main.js"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,aAAI,CAAC,C","file":"body/body.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './body/body.vue'\ncreatePage(Page)"],"sourceRoot":""}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
{"version":3,"sources":["uni-app:///main.js"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,oBAAI,CAAC,C","file":"pageTwo/PublicCards/PublicCards.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pageTwo/PublicCards/PublicCards.vue'\ncreatePage(Page)"],"sourceRoot":""}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More