成人首次扫码测量
This commit is contained in:
parent
0a2e094f4a
commit
ad619e7636
|
|
@ -4,7 +4,8 @@
|
|||
<view class="title" v-if="isConnection == 0">连接中,请稍后</view>
|
||||
<view class="title" v-if="isConnection == 1">连接成功,请开始测量</view>
|
||||
<view class="title" v-if="isConnection == 2" @click="openBluetoothAdapter">连接失败,点击重新连接</view>
|
||||
<view class="text">{{text}}</view>
|
||||
<view class="text">{{textW}}</view>
|
||||
<view class="text">{{textH}}</view>
|
||||
<view class="image">
|
||||
<image src="/BLEPages/static/F018P01.gif" v-if="type==1"></image>
|
||||
<image src="/BLEPages/static/F018P01.gif" v-if="type==2"></image>
|
||||
|
|
@ -27,7 +28,8 @@
|
|||
export default {
|
||||
data() {
|
||||
return {
|
||||
text: "",
|
||||
textW: "",
|
||||
textH: "",
|
||||
height: "",
|
||||
weight: "",
|
||||
imp: 0,
|
||||
|
|
@ -55,6 +57,9 @@
|
|||
clearTimeout(myTime);
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
uni.switchTab({
|
||||
url: "/pages/index/index"
|
||||
})
|
||||
console.log("返回上一个页面")
|
||||
}
|
||||
},
|
||||
|
|
@ -66,12 +71,15 @@
|
|||
backgroundColor: this.appTheme,
|
||||
})
|
||||
//
|
||||
that.text = ""
|
||||
that.textW = ""
|
||||
that.textH = ""
|
||||
if (options && options.deviceId) {
|
||||
that.macAddr = options.deviceId
|
||||
that.deviceId = options.deviceId
|
||||
that.createBLEConnection()
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
that.openBluetoothAdapter()
|
||||
}
|
||||
that.$store.commit("changeDevType", null);
|
||||
that.onBLEConnectionStateChange()
|
||||
uni.onBluetoothAdapterStateChange(function(res) {
|
||||
that.$store.commit("changeBluetooth", res.available);
|
||||
|
|
@ -98,6 +106,8 @@
|
|||
openBluetoothAdapter() {
|
||||
let that = this
|
||||
that.type = 1
|
||||
that.textW = ""
|
||||
that.textH = ""
|
||||
uni.openBluetoothAdapter({
|
||||
success: e => {
|
||||
that.isConnection = 0
|
||||
|
|
@ -188,6 +198,7 @@
|
|||
if (!res.connected) {
|
||||
clearTimeout(myTime);
|
||||
that.Unload = true
|
||||
that.type = 1
|
||||
that.isConnection = 2
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
|
|
@ -310,10 +321,10 @@
|
|||
data = parseInt(value.substring(13, 18), 16) / 1000
|
||||
}
|
||||
if (typeInfo == "01") {
|
||||
that.text = "您的实时体重是:" + data + dw1
|
||||
that.textW = "您的实时体重是:" + data + dw1
|
||||
}
|
||||
if (typeInfo == "02") {
|
||||
that.text = "您的体重是:" + data + dw1
|
||||
that.textW = "您的体重是:" + data + dw1
|
||||
that.weight = data + dw2
|
||||
console.log("稳定体重:", value, that.weight)
|
||||
}
|
||||
|
|
@ -326,6 +337,7 @@
|
|||
console.log("体脂:", that.imp)
|
||||
}
|
||||
if (type == "14") { //身高模式
|
||||
that.textH = "您的身高是:" + parseInt(value.substring(10, 14), 16) / 10
|
||||
that.height = parseInt(value.substring(10, 14), 16) / 10
|
||||
console.log("身高模式:", that.height)
|
||||
}
|
||||
|
|
@ -345,8 +357,8 @@
|
|||
that.Unload = true
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
uni.navigateBack({
|
||||
delta: 1
|
||||
uni.switchTab({
|
||||
url: "/pages/index/index"
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
@ -399,7 +411,6 @@
|
|||
},
|
||||
handleBack(ind) {
|
||||
let that = this
|
||||
that.text = ""
|
||||
that.Unload = true
|
||||
that.stopBluetoothDevicesDiscovery() //取消蓝牙搜索
|
||||
that.closeBLEConnection()
|
||||
|
|
|
|||
|
|
@ -61,6 +61,9 @@
|
|||
clearTimeout(myTime);
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
uni.switchTab({
|
||||
url: "/pages/index/index"
|
||||
})
|
||||
console.log("页面返回onUnload")
|
||||
}
|
||||
},
|
||||
|
|
@ -98,6 +101,7 @@
|
|||
that.closeBluetoothAdapter()
|
||||
that.openBluetoothAdapter()
|
||||
}
|
||||
that.$store.commit("changeDevType", null);
|
||||
that.onBLEConnectionStateChange()
|
||||
uni.onBluetoothAdapterStateChange(function(res) {
|
||||
that.$store.commit("changeBluetooth", res.available);
|
||||
|
|
@ -107,6 +111,8 @@
|
|||
// 重新连接
|
||||
openBluetoothAdapter() {
|
||||
let that = this
|
||||
that.textW = ""
|
||||
that.textH = ""
|
||||
that.isSend = true
|
||||
uni.openBluetoothAdapter({
|
||||
success: e => {
|
||||
|
|
@ -297,8 +303,6 @@
|
|||
let bleData = plugin.parseBleData(characteristic.value)
|
||||
let dw0 = "kg"
|
||||
let dw1 = "kg"
|
||||
let data1 = {}
|
||||
let data2 = {}
|
||||
if (bleData.status == 0) {
|
||||
let sex0 = that.info.sex == 1 ? 1 : 0
|
||||
let sex = "0x0" + sex0.toString(16)
|
||||
|
|
@ -397,8 +401,29 @@
|
|||
that.BLEResult.height = that.height ? that.height : that.info.height
|
||||
that.BLEResult.familyid = that.info.id
|
||||
console.log("体脂成功:", that.BLEResult)
|
||||
that.handleGetMeasure(that.BLEResult)
|
||||
|
||||
if (that.BLEResult.imp == 0) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: "体脂测量失败,是否保存本次测量结果?",
|
||||
cancelText: "放弃",
|
||||
confirmText: "保存",
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
that.handleGetMeasure(that.BLEResult)
|
||||
} else {
|
||||
console.log("放弃保存")
|
||||
that.Unload = true
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
uni.switchTab({
|
||||
url: "/pages/index/index"
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
} else {
|
||||
that.handleGetMeasure(that.BLEResult)
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,393 +1,400 @@
|
|||
<template>
|
||||
<view class="content weightPages">
|
||||
<view class="title" v-if="isConnection == 0">连接中,请稍后</view>
|
||||
<view class="title" v-if="isConnection == 1">连接成功,请开始测量</view>
|
||||
<view class="title" v-if="isConnection == 2" @click="openBluetoothAdapter">连接失败,点击重新连接</view>
|
||||
<view class="text">{{textW}}</view>
|
||||
<view class="text">{{textH}}</view>
|
||||
<view class="image">
|
||||
<image src="/BLEPages/static/H01pro.gif"></image>
|
||||
</view>
|
||||
<view class="tips">
|
||||
<text>请确保:</text>
|
||||
<text>1.请确定设备是开机状态</text>
|
||||
<text>2.请确定手机蓝牙、位置信息已打开</text>
|
||||
<text>3.ios系统需打开设置—>应用—>微信里的蓝牙权限</text>
|
||||
</view>
|
||||
<view class="content weightPages">
|
||||
<view class="title" v-if="isConnection == 0">连接中,请稍后</view>
|
||||
<view class="title" v-if="isConnection == 1">连接成功,请开始测量</view>
|
||||
<view class="title" v-if="isConnection == 2" @click="openBluetoothAdapter">连接失败,点击重新连接</view>
|
||||
<view class="text">{{textW}}</view>
|
||||
<view class="text">{{textH}}</view>
|
||||
<view class="image">
|
||||
<image src="/BLEPages/static/H01pro.gif"></image>
|
||||
</view>
|
||||
<view class="tips">
|
||||
<text>请确保:</text>
|
||||
<text>1.请确定设备是开机状态</text>
|
||||
<text>2.请确定手机蓝牙、位置信息已打开</text>
|
||||
<text>3.ios系统需打开设置—>应用—>微信里的蓝牙权限</text>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
mapState
|
||||
} from "vuex";
|
||||
var myTime;
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
textW: "",
|
||||
textH: "",
|
||||
height: "",
|
||||
weight: "",
|
||||
imp: 0,
|
||||
macAddr: "",
|
||||
deviceId: "",
|
||||
serviceId: "",
|
||||
readId: "",
|
||||
writeId: "",
|
||||
notifyId: "",
|
||||
Unload: false,
|
||||
isConnection: 0,
|
||||
import {
|
||||
mapState
|
||||
} from "vuex";
|
||||
var myTime;
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
textW: "",
|
||||
textH: "",
|
||||
height: "",
|
||||
weight: "",
|
||||
imp: 0,
|
||||
macAddr: "",
|
||||
deviceId: "",
|
||||
serviceId: "",
|
||||
readId: "",
|
||||
writeId: "",
|
||||
notifyId: "",
|
||||
Unload: false,
|
||||
isConnection: 0,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(["user", "isConnected", "isBluetoothTyle", "appTheme"]),
|
||||
info() {
|
||||
return this.user
|
||||
}
|
||||
},
|
||||
onUnload: function() {
|
||||
let that = this
|
||||
if (!that.Unload) {
|
||||
that.stopBluetoothDevicesDiscovery() //取消蓝牙搜索
|
||||
clearTimeout(myTime);
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
uni.switchTab({
|
||||
url: "/pages/index/index"
|
||||
})
|
||||
console.log("页面返回onUnload")
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
isConnected: function() {
|
||||
let that = this
|
||||
if (!that.isConnected) {
|
||||
that.handleBack()
|
||||
that.isConnection = 2
|
||||
}
|
||||
},
|
||||
isBluetoothTyle: function() {
|
||||
let that = this
|
||||
if (!that.isBluetoothTyle) {
|
||||
that.handleBack()
|
||||
that.isConnection = 2
|
||||
}
|
||||
},
|
||||
},
|
||||
onLoad(options) {
|
||||
let that = this
|
||||
// 导航栏颜色
|
||||
uni.setNavigationBarColor({
|
||||
frontColor: '#ffffff',
|
||||
backgroundColor: this.appTheme,
|
||||
})
|
||||
//
|
||||
that.textW = ""
|
||||
that.textH = ""
|
||||
if (options && options.deviceId) {
|
||||
that.deviceId = options.deviceId
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
that.openBluetoothAdapter()
|
||||
}
|
||||
that.$store.commit("changeDevType", null);
|
||||
that.onBLEConnectionStateChange()
|
||||
uni.onBluetoothAdapterStateChange(function(res) {
|
||||
that.$store.commit("changeBluetooth", res.available);
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
// 重新连接
|
||||
openBluetoothAdapter() {
|
||||
let that = this
|
||||
that.textW = ""
|
||||
that.textH = ""
|
||||
uni.openBluetoothAdapter({
|
||||
success: e => {
|
||||
that.isConnection = 0
|
||||
that.startBluetoothDeviceDiscovery()
|
||||
},
|
||||
fail: e => {
|
||||
that.isConnection = 2
|
||||
that.$tools.msg("请确定设备是开机状态、手机蓝牙权限已打开!")
|
||||
}
|
||||
});
|
||||
},
|
||||
// 监听蓝牙连接状态
|
||||
onBLEConnectionStateChange() {
|
||||
let that = this
|
||||
uni.onBLEConnectionStateChange(function(res) {
|
||||
console.log("监听蓝牙连接状态", res.connected)
|
||||
if (!res.connected) {
|
||||
that.Unload = true
|
||||
that.isConnection = 2
|
||||
clearTimeout(myTime);
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
}
|
||||
that.$store.commit("changeConnected", res.connected);
|
||||
})
|
||||
},
|
||||
// 开始搜寻附近的蓝牙外围设备
|
||||
startBluetoothDeviceDiscovery() {
|
||||
let that = this
|
||||
uni.startBluetoothDevicesDiscovery({
|
||||
allowDuplicatesKey: false,
|
||||
interval: 500, //上报设备的间隔
|
||||
success: res => {
|
||||
that.isConnection = 0
|
||||
that.onBluetoothDeviceFound();
|
||||
},
|
||||
fail: res => {
|
||||
that.isConnection = 2
|
||||
that.$tools.msg("请确定设备是开机状态、手机蓝牙权限已打开!")
|
||||
}
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 发现外围设备
|
||||
*/
|
||||
onBluetoothDeviceFound() {
|
||||
var that = this;
|
||||
that.isConnection = 0
|
||||
uni.onBluetoothDeviceFound(res => {
|
||||
res.devices.forEach(device => {
|
||||
if (!device.name && !device.localName) {
|
||||
return
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(["user", "isConnected", "isBluetoothTyle","appTheme"]),
|
||||
info() {
|
||||
return this.user
|
||||
}
|
||||
},
|
||||
onUnload: function() {
|
||||
let that = this
|
||||
if (!that.Unload) {
|
||||
console.log('开始监听寻找到新设备的事件', device);
|
||||
if (device.name.indexOf('My') != -1) {
|
||||
clearTimeout(myTime);
|
||||
let buff = device.advertisData.slice(-6)
|
||||
device.mac = new Uint8Array(buff) // 保存广播数据中的mac地址,这是由于iOS不直接返回mac地址
|
||||
let tempMac = Array.from(device.mac)
|
||||
console.log('开始监听寻找到新设备的事件0', device)
|
||||
device.macAddr = that.$tools.ab2hex(tempMac, ':').toUpperCase()
|
||||
if (device.deviceId.indexOf(that.deviceId) != -1 || device.macAddr.indexOf(that.deviceId) != -1) {
|
||||
console.log('开始监听寻找到新设备的事件1', that.deviceId)
|
||||
that.stopBluetoothDevicesDiscovery() //取消蓝牙搜索
|
||||
clearTimeout(myTime);
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
console.log("页面返回onUnload")
|
||||
that.deviceId = device.deviceId
|
||||
that.macAddr = device.macAddr
|
||||
that.createBLEConnection()
|
||||
return;
|
||||
}
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
isConnected: function() {
|
||||
let that = this
|
||||
if (!that.isConnected) {
|
||||
that.handleBack()
|
||||
that.isConnection = 2
|
||||
}
|
||||
},
|
||||
isBluetoothTyle: function() {
|
||||
let that = this
|
||||
if (!that.isBluetoothTyle) {
|
||||
that.handleBack()
|
||||
that.isConnection = 2
|
||||
}
|
||||
},
|
||||
},
|
||||
onLoad(options) {
|
||||
let that = this
|
||||
// 导航栏颜色
|
||||
uni.setNavigationBarColor({
|
||||
frontColor: '#ffffff',
|
||||
backgroundColor: this.appTheme,
|
||||
})
|
||||
//
|
||||
that.textW = ""
|
||||
that.textH = ""
|
||||
if (options && options.deviceId) {
|
||||
that.deviceId = options.deviceId
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
that.openBluetoothAdapter()
|
||||
})
|
||||
});
|
||||
that.handleMyTime()
|
||||
},
|
||||
handleMyTime() {
|
||||
var that = this;
|
||||
myTime = setTimeout(function() {
|
||||
if (!that.macAddr) {
|
||||
clearTimeout(myTime);
|
||||
that.Unload = true
|
||||
that.isConnection = 2
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
}
|
||||
}, 20000);
|
||||
},
|
||||
/**
|
||||
* 停止搜索蓝牙设备
|
||||
*/
|
||||
stopBluetoothDevicesDiscovery() {
|
||||
uni.stopBluetoothDevicesDiscovery({
|
||||
success: e => {
|
||||
console.log("停止搜索蓝牙设备", e)
|
||||
},
|
||||
});
|
||||
},
|
||||
// 连接蓝牙
|
||||
createBLEConnection() {
|
||||
let that = this;
|
||||
uni.createBLEConnection({
|
||||
deviceId: that.deviceId,
|
||||
success: res => {
|
||||
that.isConnection = 0
|
||||
that.getBLEDeviceServices();
|
||||
},
|
||||
fail: res => {
|
||||
that.isConnection = 2
|
||||
console.log("设备连接失败,请重新连接", res);
|
||||
}
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 获取设备的UUID
|
||||
*/
|
||||
getBLEDeviceServices() {
|
||||
let serviceList = [];
|
||||
let that = this;
|
||||
uni.getBLEDeviceServices({
|
||||
deviceId: that.deviceId,
|
||||
success: res => {
|
||||
console.log("获取设备的UUID成功", res)
|
||||
serviceList = res.services;
|
||||
for (let i = 0; i < serviceList.length; i++) {
|
||||
let service = serviceList[i];
|
||||
if (service.uuid.indexOf('FFE0') != -1) {
|
||||
that.serviceId = service.uuid;
|
||||
that.isConnection = 1
|
||||
that.getBLEDeviceCharacteristics(that.deviceId, service.uuid);
|
||||
console.log("设备的FFE0的serviceId: ", that.serviceId);
|
||||
break;
|
||||
}
|
||||
}
|
||||
that.onBLEConnectionStateChange()
|
||||
uni.onBluetoothAdapterStateChange(function(res) {
|
||||
that.$store.commit("changeBluetooth", res.available);
|
||||
},
|
||||
fail: res => {
|
||||
console.log('获取设备的UUID失败:', res)
|
||||
}
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 获取指定服务的特征值
|
||||
*/
|
||||
getBLEDeviceCharacteristics(deviceId, serviceId) {
|
||||
let characteristicsList = [];
|
||||
let that = this;
|
||||
uni.getBLEDeviceCharacteristics({
|
||||
deviceId: deviceId,
|
||||
serviceId: serviceId,
|
||||
success: res => {
|
||||
console.log("服务的特征值成功", res)
|
||||
characteristicsList = res.characteristics;
|
||||
for (let i = 0; i < characteristicsList.length; i++) {
|
||||
let item = characteristicsList[i];
|
||||
if (item.uuid.indexOf("FFE1") != -1) {
|
||||
if (item.properties.notify == true) {
|
||||
that.notifyId = item.uuid
|
||||
}
|
||||
if (item.properties.write == true) {
|
||||
that.writeId = item.uuid
|
||||
}
|
||||
if (item.properties.read) {
|
||||
that.readId = item.uuid
|
||||
}
|
||||
}
|
||||
}
|
||||
// 打开监听
|
||||
uni.notifyBLECharacteristicValueChange({
|
||||
deviceId,
|
||||
serviceId,
|
||||
characteristicId: that.notifyId,
|
||||
state: true,
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
// 重新连接
|
||||
openBluetoothAdapter() {
|
||||
let that = this
|
||||
uni.openBluetoothAdapter({
|
||||
success: e => {
|
||||
that.isConnection = 0
|
||||
that.startBluetoothDeviceDiscovery()
|
||||
},
|
||||
fail: e => {
|
||||
that.isConnection = 2
|
||||
that.$tools.msg("请确定设备是开机状态、手机蓝牙权限已打开!")
|
||||
}
|
||||
});
|
||||
},
|
||||
// 监听蓝牙连接状态
|
||||
onBLEConnectionStateChange() {
|
||||
let that = this
|
||||
uni.onBLEConnectionStateChange(function(res) {
|
||||
console.log("监听蓝牙连接状态", res.connected)
|
||||
if (!res.connected) {
|
||||
that.Unload = true
|
||||
that.isConnection = 2
|
||||
clearTimeout(myTime);
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
}
|
||||
that.$store.commit("changeConnected", res.connected);
|
||||
})
|
||||
},
|
||||
// 开始搜寻附近的蓝牙外围设备
|
||||
startBluetoothDeviceDiscovery() {
|
||||
let that = this
|
||||
uni.startBluetoothDevicesDiscovery({
|
||||
allowDuplicatesKey: false,
|
||||
interval: 500, //上报设备的间隔
|
||||
success: res => {
|
||||
that.isConnection = 0
|
||||
that.onBluetoothDeviceFound();
|
||||
},
|
||||
fail: res => {
|
||||
that.isConnection = 2
|
||||
that.$tools.msg("请确定设备是开机状态、手机蓝牙权限已打开!")
|
||||
}
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 发现外围设备
|
||||
*/
|
||||
onBluetoothDeviceFound() {
|
||||
var that = this;
|
||||
that.isConnection = 0
|
||||
uni.onBluetoothDeviceFound(res => {
|
||||
res.devices.forEach(device => {
|
||||
if (!device.name && !device.localName) {
|
||||
return
|
||||
}
|
||||
console.log('开始监听寻找到新设备的事件', device);
|
||||
if (device.name.indexOf('My') != -1) {
|
||||
clearTimeout(myTime);
|
||||
let buff = device.advertisData.slice(-6)
|
||||
device.mac = new Uint8Array(buff) // 保存广播数据中的mac地址,这是由于iOS不直接返回mac地址
|
||||
let tempMac = Array.from(device.mac)
|
||||
console.log('开始监听寻找到新设备的事件0', device)
|
||||
device.macAddr = that.$tools.ab2hex(tempMac, ':').toUpperCase()
|
||||
if (device.deviceId.indexOf(that.deviceId) != -1 || device.macAddr.indexOf(that.deviceId) != -1) {
|
||||
console.log('开始监听寻找到新设备的事件1', that.deviceId)
|
||||
that.stopBluetoothDevicesDiscovery() //取消蓝牙搜索
|
||||
that.deviceId = device.deviceId
|
||||
that.macAddr = device.macAddr
|
||||
that.createBLEConnection()
|
||||
return;
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
that.handleMyTime()
|
||||
},
|
||||
handleMyTime() {
|
||||
var that = this;
|
||||
myTime = setTimeout(function() {
|
||||
if (!that.macAddr) {
|
||||
clearTimeout(myTime);
|
||||
that.Unload = true
|
||||
that.isConnection = 2
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
}
|
||||
}, 20000);
|
||||
},
|
||||
/**
|
||||
* 停止搜索蓝牙设备
|
||||
*/
|
||||
stopBluetoothDevicesDiscovery() {
|
||||
uni.stopBluetoothDevicesDiscovery({
|
||||
success: e => {
|
||||
console.log("停止搜索蓝牙设备", e)
|
||||
},
|
||||
});
|
||||
},
|
||||
// 连接蓝牙
|
||||
createBLEConnection() {
|
||||
let that = this;
|
||||
uni.createBLEConnection({
|
||||
deviceId: that.deviceId,
|
||||
success: res => {
|
||||
that.isConnection = 0
|
||||
that.getBLEDeviceServices();
|
||||
},
|
||||
fail: res => {
|
||||
that.isConnection = 2
|
||||
console.log("设备连接失败,请重新连接", res);
|
||||
}
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 获取设备的UUID
|
||||
*/
|
||||
getBLEDeviceServices() {
|
||||
let serviceList = [];
|
||||
let that = this;
|
||||
uni.getBLEDeviceServices({
|
||||
deviceId: that.deviceId,
|
||||
success: res => {
|
||||
console.log("获取设备的UUID成功", res)
|
||||
serviceList = res.services;
|
||||
for (let i = 0; i < serviceList.length; i++) {
|
||||
let service = serviceList[i];
|
||||
if (service.uuid.indexOf('FFE0') != -1) {
|
||||
that.serviceId = service.uuid;
|
||||
that.isConnection = 1
|
||||
that.getBLEDeviceCharacteristics(that.deviceId, service.uuid);
|
||||
console.log("设备的FFE0的serviceId: ", that.serviceId);
|
||||
break;
|
||||
}
|
||||
}
|
||||
},
|
||||
fail: res => {
|
||||
console.log('获取设备的UUID失败:', res)
|
||||
}
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 获取指定服务的特征值
|
||||
*/
|
||||
getBLEDeviceCharacteristics(deviceId, serviceId) {
|
||||
let characteristicsList = [];
|
||||
let that = this;
|
||||
uni.getBLEDeviceCharacteristics({
|
||||
deviceId: deviceId,
|
||||
serviceId: serviceId,
|
||||
success: res => {
|
||||
console.log("服务的特征值成功", res)
|
||||
characteristicsList = res.characteristics;
|
||||
for (let i = 0; i < characteristicsList.length; i++) {
|
||||
let item = characteristicsList[i];
|
||||
if (item.uuid.indexOf("FFE1") != -1) {
|
||||
if (item.properties.notify == true) {
|
||||
that.notifyId = item.uuid
|
||||
}
|
||||
if (item.properties.write == true) {
|
||||
that.writeId = item.uuid
|
||||
}
|
||||
if (item.properties.read) {
|
||||
that.readId = item.uuid
|
||||
}
|
||||
}
|
||||
}
|
||||
// 打开监听
|
||||
uni.notifyBLECharacteristicValueChange({
|
||||
deviceId,
|
||||
serviceId,
|
||||
characteristicId: that.notifyId,
|
||||
state: true,
|
||||
})
|
||||
uni.notifyBLECharacteristicValueChange({
|
||||
deviceId,
|
||||
serviceId,
|
||||
characteristicId: that.writeId,
|
||||
state: true,
|
||||
})
|
||||
uni.onBLECharacteristicValueChange(function(res) {
|
||||
let value = that.$tools.ab2hex(res.value, '');
|
||||
let weight = parseInt(value.substring(4, 8), 16) / 100
|
||||
let height = parseInt(value.substring(30, 34), 16) / 10
|
||||
let imp0 = value.substring(28, 30) + value.substring(34, 36)
|
||||
let imp = parseInt(imp0, 16)
|
||||
that.imp = imp
|
||||
that.textW = "您的体重是:" + weight + 'kg'
|
||||
that.textH = "您的身高是:" + height + 'cm'
|
||||
that.weight = weight + 'kg'
|
||||
that.height = height
|
||||
console.log("测量完成", that.weight, that.height, that.imp)
|
||||
if (imp == 0) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: "体脂测量失败,是否保存本次测量结果?",
|
||||
cancelText: "放弃",
|
||||
confirmText: "保存",
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
that.handleGetMeasure()
|
||||
} else {
|
||||
that.Unload = true
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
uni.navigateBack({
|
||||
delta: 1
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
})
|
||||
} else {
|
||||
that.handleGetMeasure()
|
||||
}
|
||||
});
|
||||
},
|
||||
fail: res => {
|
||||
console.log('获取特征值失败:', JSON.stringify(res))
|
||||
}
|
||||
})
|
||||
},
|
||||
// 保存测量结果
|
||||
handleGetMeasure() {
|
||||
console.log("保存结果")
|
||||
let that = this
|
||||
that.$model.getmeasure({
|
||||
weight: that.weight,
|
||||
imp: that.imp,
|
||||
ecode: that.macAddr,
|
||||
height: that.height ? that.height : that.info.height,
|
||||
familyid: that.info.familyid,
|
||||
}).then(res => {
|
||||
if (res.code == 0) {
|
||||
that.$tools.msg("测量成功")
|
||||
that.$store.dispatch("getUserInfo", {
|
||||
familyid: that.info.familyid,
|
||||
});
|
||||
that.$store.dispatch("getResult", {
|
||||
birthday: that.info.birthday,
|
||||
familyid: that.info.familyid,
|
||||
height: that.height ? that.height : that.info.height,
|
||||
sex: that.info.sex,
|
||||
});
|
||||
uni.notifyBLECharacteristicValueChange({
|
||||
deviceId,
|
||||
serviceId,
|
||||
characteristicId: that.writeId,
|
||||
state: true,
|
||||
})
|
||||
uni.onBLECharacteristicValueChange(function(res) {
|
||||
let value = that.$tools.ab2hex(res.value, '');
|
||||
console.log("测量中", value)
|
||||
let weight = parseInt(value.substring(4, 8), 16) / 100
|
||||
let height = parseInt(value.substring(30, 34), 16) / 10
|
||||
let imp0 = value.substring(28, 30) + value.substring(34, 36)
|
||||
let imp = parseInt(imp0, 16)
|
||||
that.imp = imp
|
||||
that.textW = "您的体重是:" + weight + 'kg'
|
||||
that.textH = "您的身高是:" + height + 'cm'
|
||||
that.weight = weight + 'kg'
|
||||
that.height = height
|
||||
console.log("测量完成", that.weight, that.height, that.imp)
|
||||
if (imp == 0) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: "体脂测量失败,是否保存本次测量结果?",
|
||||
cancelText: "放弃",
|
||||
confirmText: "保存",
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
that.handleGetMeasure()
|
||||
} else {
|
||||
console.log("测量失败", res.message)
|
||||
that.$tools.msg(res.message)
|
||||
that.Unload = true
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
uni.switchTab({
|
||||
url: "/pages/index/index"
|
||||
})
|
||||
}
|
||||
that.Unload = true
|
||||
setTimeout(function() {
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
uni.switchTab({
|
||||
url: "/pages/index/index"
|
||||
})
|
||||
}, 200)
|
||||
|
||||
}
|
||||
})
|
||||
},
|
||||
handleBack() {
|
||||
let that = this
|
||||
that.textW = ""
|
||||
that.textH = ""
|
||||
that.Unload = true
|
||||
that.Unload = true
|
||||
that.stopBluetoothDevicesDiscovery() //取消蓝牙搜索
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
},
|
||||
/**
|
||||
* 断开蓝牙模块
|
||||
*/
|
||||
closeBluetoothAdapter() {
|
||||
let that = this;
|
||||
uni.closeBluetoothAdapter({
|
||||
success: res => {
|
||||
console.log('蓝牙模块关闭成功');
|
||||
}
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 断开蓝牙连接
|
||||
*/
|
||||
closeBLEConnection() {
|
||||
var that = this;
|
||||
uni.closeBLEConnection({
|
||||
deviceId: that.deviceId,
|
||||
success: res => {
|
||||
console.log('断开蓝牙连接成功');
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
}
|
||||
} else {
|
||||
that.handleGetMeasure()
|
||||
}
|
||||
});
|
||||
},
|
||||
fail: res => {
|
||||
console.log('获取特征值失败:', JSON.stringify(res))
|
||||
}
|
||||
})
|
||||
},
|
||||
// 保存测量结果
|
||||
handleGetMeasure() {
|
||||
console.log("保存结果")
|
||||
let that = this
|
||||
that.$model.getmeasure({
|
||||
weight: that.weight,
|
||||
imp: that.imp,
|
||||
ecode: that.macAddr,
|
||||
height: that.height ? that.height : that.info.height,
|
||||
familyid: that.info.familyid,
|
||||
}).then(res => {
|
||||
if (res.code == 0) {
|
||||
that.$tools.msg("测量成功")
|
||||
that.$store.dispatch("getUserInfo", {
|
||||
familyid: that.info.familyid,
|
||||
});
|
||||
that.$store.dispatch("getResult", {
|
||||
birthday: that.info.birthday,
|
||||
familyid: that.info.familyid,
|
||||
height: that.height ? that.height : that.info.height,
|
||||
sex: that.info.sex,
|
||||
});
|
||||
} else {
|
||||
console.log("测量失败", res.message)
|
||||
that.$tools.msg(res.message)
|
||||
}
|
||||
that.Unload = true
|
||||
setTimeout(function() {
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
uni.switchTab({
|
||||
url: "/pages/index/index"
|
||||
})
|
||||
}, 200)
|
||||
|
||||
})
|
||||
},
|
||||
handleBack() {
|
||||
let that = this
|
||||
that.textW = ""
|
||||
that.textH = ""
|
||||
that.Unload = true
|
||||
that.Unload = true
|
||||
that.stopBluetoothDevicesDiscovery() //取消蓝牙搜索
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
},
|
||||
/**
|
||||
* 断开蓝牙模块
|
||||
*/
|
||||
closeBluetoothAdapter() {
|
||||
let that = this;
|
||||
uni.closeBluetoothAdapter({
|
||||
success: res => {
|
||||
console.log('蓝牙模块关闭成功');
|
||||
}
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 断开蓝牙连接
|
||||
*/
|
||||
closeBLEConnection() {
|
||||
var that = this;
|
||||
uni.closeBLEConnection({
|
||||
deviceId: that.deviceId,
|
||||
success: res => {
|
||||
console.log('断开蓝牙连接成功');
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
|
|
|||
|
|
@ -57,6 +57,10 @@
|
|||
clearTimeout(myTime);
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
uni.switchTab({
|
||||
url: "/pages/index/index"
|
||||
})
|
||||
console.log("返回首页")
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
|
|
@ -76,6 +80,7 @@
|
|||
that.closeBluetoothAdapter()
|
||||
that.openBluetoothAdapter()
|
||||
}
|
||||
that.$store.commit("changeDevType", null);
|
||||
that.onBLEConnectionStateChange()
|
||||
uni.onBluetoothAdapterStateChange(function(res) {
|
||||
that.$store.commit("changeBluetooth", res.available);
|
||||
|
|
@ -102,6 +107,8 @@
|
|||
openBluetoothAdapter() {
|
||||
let that = this
|
||||
that.type = 1
|
||||
that.text = ""
|
||||
that.textH = ""
|
||||
uni.openBluetoothAdapter({
|
||||
success: e => {
|
||||
that.isConnection = 0
|
||||
|
|
@ -262,7 +269,6 @@
|
|||
that.uuid3 = item.uuid //写入设置
|
||||
}
|
||||
}
|
||||
that.sendData()
|
||||
uni.notifyBLECharacteristicValueChange({
|
||||
deviceId: that.deviceId,
|
||||
serviceId: that.serviceId,
|
||||
|
|
@ -275,6 +281,7 @@
|
|||
characteristicId: that.uuid3,
|
||||
state: true,
|
||||
})
|
||||
that.sendData()
|
||||
uni.onBLECharacteristicValueChange(function(res) {
|
||||
let value = that.$tools.ab2hex(res.value, "");
|
||||
let num = value.substring(18, 19)
|
||||
|
|
@ -345,8 +352,8 @@
|
|||
that.Unload = true
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
uni.navigateBack({
|
||||
delta: 1
|
||||
uni.switchTab({
|
||||
url: "/pages/index/index"
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,439 +1,445 @@
|
|||
<template>
|
||||
<view>
|
||||
<view class="content weightPages">
|
||||
<view class="title" v-if="isConnection == 0">连接中,请稍后</view>
|
||||
<view class="title" v-if="isConnection == 1">连接成功,请开始测量</view>
|
||||
<view class="title" v-if="isConnection == 2" @click="openBluetoothAdapter">连接失败,点击重新连接</view>
|
||||
<view class="text">{{text}}</view>
|
||||
<view class="image">
|
||||
<image src="/BLEPages/static/Hd01bt01.gif" v-if="type==1"></image>
|
||||
<image src="/BLEPages/static/Hd01bt02.gif" v-if="type==2"></image>
|
||||
</view>
|
||||
<view class="tips">
|
||||
<text>提示:</text>
|
||||
<text>1.请确定设备是开机状态</text>
|
||||
<text>2.请确定手机蓝牙、位置信息已打开</text>
|
||||
<text>3.ios系统需打开设置—>应用—>微信里的蓝牙权限</text>
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<view class="content weightPages">
|
||||
<view class="title" v-if="isConnection == 0">连接中,请稍后</view>
|
||||
<view class="title" v-if="isConnection == 1">连接成功,请开始测量</view>
|
||||
<view class="title" v-if="isConnection == 2" @click="openBluetoothAdapter">连接失败,点击重新连接</view>
|
||||
<view class="text">{{text}}</view>
|
||||
<view class="image">
|
||||
<image src="/BLEPages/static/Hd01bt01.gif" v-if="type==1"></image>
|
||||
<image src="/BLEPages/static/Hd01bt02.gif" v-if="type==2"></image>
|
||||
</view>
|
||||
<view class="tips">
|
||||
<text>提示:</text>
|
||||
<text>1.请确定设备是开机状态</text>
|
||||
<text>2.请确定手机蓝牙、位置信息已打开</text>
|
||||
<text>3.ios系统需打开设置—>应用—>微信里的蓝牙权限</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
mapState
|
||||
} from "vuex";
|
||||
var myTime;
|
||||
let cnt = 0
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
text: "",
|
||||
height: "",
|
||||
weight: "",
|
||||
imp: 0,
|
||||
type: 1,
|
||||
uuid1: "",
|
||||
uuid2: "",
|
||||
uuid3: "",
|
||||
macAddr: "",
|
||||
deviceId: "",
|
||||
serviceId: "",
|
||||
Unload: false,
|
||||
pageNav: false,
|
||||
isConnection: 0, //是否连接成功
|
||||
import {
|
||||
mapState
|
||||
} from "vuex";
|
||||
var myTime;
|
||||
let cnt = 0
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
text: "",
|
||||
height: "",
|
||||
weight: "",
|
||||
imp: 0,
|
||||
type: 1,
|
||||
uuid1: "",
|
||||
uuid2: "",
|
||||
uuid3: "",
|
||||
macAddr: "",
|
||||
deviceId: "",
|
||||
serviceId: "",
|
||||
Unload: false,
|
||||
pageNav: false,
|
||||
isConnection: 0, //是否连接成功
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(["user", "isConnected", "isBluetoothTyle", "appTheme"]),
|
||||
info() {
|
||||
return this.user
|
||||
}
|
||||
},
|
||||
onUnload: function() {
|
||||
let that = this
|
||||
if (!that.Unload) {
|
||||
that.stopBluetoothDevicesDiscovery() //取消蓝牙搜索
|
||||
clearTimeout(myTime);
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
uni.switchTab({
|
||||
url: "/pages/index/index"
|
||||
})
|
||||
console.log("测量页返回1")
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
let that = this
|
||||
// 导航栏颜色
|
||||
uni.setNavigationBarColor({
|
||||
frontColor: '#ffffff',
|
||||
backgroundColor: this.appTheme,
|
||||
})
|
||||
//
|
||||
cnt = 0
|
||||
that.text = ""
|
||||
if (options && options.deviceId) {
|
||||
that.deviceId = options.deviceId
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
that.openBluetoothAdapter()
|
||||
}
|
||||
that.$store.commit("changeDevType", null);
|
||||
that.onBLEConnectionStateChange()
|
||||
uni.onBluetoothAdapterStateChange(function(res) {
|
||||
that.$store.commit("changeBluetooth", res.available);
|
||||
})
|
||||
},
|
||||
watch: {
|
||||
isConnected: function() {
|
||||
let that = this
|
||||
if (!that.isConnected) {
|
||||
that.handleBack()
|
||||
that.isConnection = 2
|
||||
}
|
||||
},
|
||||
isBluetoothTyle: function() {
|
||||
let that = this
|
||||
if (!that.isBluetoothTyle) {
|
||||
that.handleBack()
|
||||
that.isConnection = 2
|
||||
}
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
// 初始化蓝牙
|
||||
openBluetoothAdapter() {
|
||||
let that = this
|
||||
cnt = 0
|
||||
that.type = 1
|
||||
that.text = ""
|
||||
uni.openBluetoothAdapter({
|
||||
success: e => {
|
||||
that.isConnection = 0
|
||||
that.startBluetoothDeviceDiscovery()
|
||||
},
|
||||
fail: e => {
|
||||
that.isConnection = 2
|
||||
that.$tools.msg("请确定设备是开机状态、手机蓝牙权限已打开!")
|
||||
}
|
||||
});
|
||||
},
|
||||
// 开始搜寻附近的蓝牙外围设备
|
||||
startBluetoothDeviceDiscovery() {
|
||||
let that = this
|
||||
uni.startBluetoothDevicesDiscovery({
|
||||
allowDuplicatesKey: false,
|
||||
interval: 500, //上报设备的间隔
|
||||
services: [
|
||||
"FFE0",
|
||||
],
|
||||
success: res => {
|
||||
that.isConnection = 0
|
||||
that.onBluetoothDeviceFound();
|
||||
},
|
||||
fail: res => {
|
||||
that.isConnection = 2
|
||||
that.$tools.msg("请确定设备是开机状态、手机蓝牙权限已打开!")
|
||||
}
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 发现外围设备
|
||||
*/
|
||||
onBluetoothDeviceFound() {
|
||||
var that = this;
|
||||
that.isConnection = 0
|
||||
uni.onBluetoothDeviceFound(res => {
|
||||
res.devices.forEach(device => {
|
||||
if (!device.name && !device.localName) {
|
||||
return
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(["user", "isConnected", "isBluetoothTyle","appTheme"]),
|
||||
info() {
|
||||
return this.user
|
||||
}
|
||||
},
|
||||
onUnload: function() {
|
||||
let that = this
|
||||
if (!that.Unload) {
|
||||
that.stopBluetoothDevicesDiscovery() //取消蓝牙搜索
|
||||
clearTimeout(myTime);
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
console.log("测量页返回1")
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
let that = this
|
||||
// 导航栏颜色
|
||||
uni.setNavigationBarColor({
|
||||
frontColor: '#ffffff',
|
||||
backgroundColor: this.appTheme,
|
||||
})
|
||||
//
|
||||
cnt = 0
|
||||
that.text = ""
|
||||
if (options && options.deviceId) {
|
||||
that.macAddr = options.deviceId
|
||||
that.deviceId = options.deviceId
|
||||
if (device.name.indexOf('AiLink_') != -1) {
|
||||
clearTimeout(myTime);
|
||||
let buff = device.advertisData.slice(-6)
|
||||
device.mac = new Uint8Array(buff) // 保存广播数据中的mac地址,这是由于iOS不直接返回mac地址
|
||||
let tempMac = Array.from(device.mac)
|
||||
tempMac.reverse()
|
||||
device.macAddr = that.$tools.ab2hex(tempMac, ':').toUpperCase()
|
||||
if (device.deviceId.indexOf(that.deviceId) != -1 || device.macAddr.indexOf(that.deviceId) != -1) {
|
||||
that.stopBluetoothDevicesDiscovery()
|
||||
that.macAddr = device.macAddr
|
||||
that.deviceId = device.deviceId;
|
||||
that.createBLEConnection()
|
||||
return;
|
||||
}
|
||||
}
|
||||
that.onBLEConnectionStateChange()
|
||||
uni.onBluetoothAdapterStateChange(function(res) {
|
||||
that.$store.commit("changeBluetooth", res.available);
|
||||
})
|
||||
},
|
||||
watch: {
|
||||
isConnected: function() {
|
||||
let that = this
|
||||
if (!that.isConnected) {
|
||||
that.handleBack()
|
||||
that.isConnection = 2
|
||||
})
|
||||
});
|
||||
that.handleMyTime()
|
||||
},
|
||||
handleMyTime() {
|
||||
var that = this;
|
||||
myTime = setTimeout(function() {
|
||||
if (!that.macAddr) {
|
||||
clearTimeout(myTime);
|
||||
that.Unload = true
|
||||
that.isConnection = 2
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
}
|
||||
}, 20000);
|
||||
},
|
||||
/**
|
||||
* 停止搜索蓝牙设备
|
||||
*/
|
||||
stopBluetoothDevicesDiscovery() {
|
||||
uni.stopBluetoothDevicesDiscovery({
|
||||
success: e => {
|
||||
console.log("停止搜索蓝牙设备", e)
|
||||
},
|
||||
});
|
||||
},
|
||||
// 监听蓝牙连接状态
|
||||
onBLEConnectionStateChange() {
|
||||
let that = this
|
||||
uni.onBLEConnectionStateChange(function(res) {
|
||||
console.log("监听蓝牙连接状态", res.connected)
|
||||
if (!res.connected) {
|
||||
that.Unload = true
|
||||
that.isConnection = 2
|
||||
clearTimeout(myTime);
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
}
|
||||
that.$store.commit("changeConnected", res.connected);
|
||||
})
|
||||
},
|
||||
// 连接蓝牙
|
||||
createBLEConnection() {
|
||||
let that = this;
|
||||
uni.createBLEConnection({
|
||||
deviceId: that.deviceId,
|
||||
success: res => {
|
||||
that.isConnection = 0
|
||||
that.getBLEDeviceServices();
|
||||
},
|
||||
fail: res => {
|
||||
that.isConnection = 2
|
||||
console.log("设备连接失败,请重新连接", res);
|
||||
}
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 获取设备的UUID
|
||||
*/
|
||||
getBLEDeviceServices() {
|
||||
let serviceList = [];
|
||||
let that = this;
|
||||
uni.getBLEDeviceServices({
|
||||
deviceId: that.deviceId,
|
||||
success: res => {
|
||||
console.log("获取设备的UUID成功", res)
|
||||
serviceList = res.services;
|
||||
for (let i = 0; i < serviceList.length; i++) {
|
||||
let service = serviceList[i];
|
||||
if (service.uuid.indexOf("FFE0") != -1) {
|
||||
that.isConnection = 1
|
||||
that.serviceId = service.uuid;
|
||||
that.getBLEDeviceCharacteristics();
|
||||
console.log("设备的FFE0的serviceId: " + that.serviceId);
|
||||
break;
|
||||
}
|
||||
}
|
||||
},
|
||||
fail: res => {
|
||||
console.log('获取设备的UUID失败:', res)
|
||||
}
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 获取指定服务的特征值
|
||||
*/
|
||||
getBLEDeviceCharacteristics() {
|
||||
let characteristicsList = [];
|
||||
let that = this;
|
||||
uni.getBLEDeviceCharacteristics({
|
||||
deviceId: that.deviceId,
|
||||
serviceId: that.serviceId,
|
||||
success: res => {
|
||||
console.log("服务的特征值成功", res)
|
||||
for (let i = 0; i < res.characteristics.length; i++) {
|
||||
let item = res.characteristics[i];
|
||||
if (item.uuid.indexOf('FFE1') != -1) {
|
||||
that.uuid1 = item.uuid //下发数据
|
||||
} else if (item.uuid.indexOf('FFE2') != -1) {
|
||||
that.uuid2 = item.uuid //监听数据
|
||||
that.notifyBLECharacteristicValue()
|
||||
} else if (item.uuid.indexOf('FFE3') != -1) {
|
||||
that.uuid3 = item.uuid //写入设置
|
||||
}
|
||||
}
|
||||
},
|
||||
fail: res => {
|
||||
console.log('获取特征值失败:', JSON.stringify(res))
|
||||
}
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 开启订阅特征值
|
||||
* read: true, //读,write: true, //写,notify: true, //广播
|
||||
*/
|
||||
notifyBLECharacteristicValue() {
|
||||
let that = this;
|
||||
uni.notifyBLECharacteristicValueChange({
|
||||
state: true, // 启用 notify 功能
|
||||
deviceId: that.deviceId,
|
||||
serviceId: that.serviceId,
|
||||
characteristicId: that.uuid2,
|
||||
success(res) {
|
||||
uni.onBLECharacteristicValueChange(function(res) {
|
||||
let value = that.$tools.ab2hex(res.value, "");
|
||||
let num = value.substring(18, 19)
|
||||
let dw = value.substring(19, 20)
|
||||
let type = value.substring(8, 10)
|
||||
let typeInfo = value.substring(10, 12)
|
||||
console.log("value", value)
|
||||
if (type == "10") {
|
||||
let data = parseInt(value.substring(13, 18), 16)
|
||||
let dw1 = "kg"
|
||||
let dw2 = "kg"
|
||||
if (dw == "1") {
|
||||
dw1 = "斤"
|
||||
dw2 = "jin"
|
||||
}
|
||||
},
|
||||
isBluetoothTyle: function() {
|
||||
let that = this
|
||||
if (!that.isBluetoothTyle) {
|
||||
that.handleBack()
|
||||
that.isConnection = 2
|
||||
if (dw == "4") {
|
||||
dw1 = "st:lb"
|
||||
dw2 = "st"
|
||||
data = 1 * data + 5
|
||||
}
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
// 初始化蓝牙
|
||||
openBluetoothAdapter() {
|
||||
let that = this
|
||||
cnt = 0
|
||||
that.type = 1
|
||||
uni.openBluetoothAdapter({
|
||||
success: e => {
|
||||
that.isConnection = 0
|
||||
that.startBluetoothDeviceDiscovery()
|
||||
},
|
||||
fail: e => {
|
||||
that.isConnection = 2
|
||||
that.$tools.msg("请确定设备是开机状态、手机蓝牙权限已打开!")
|
||||
}
|
||||
});
|
||||
},
|
||||
// 开始搜寻附近的蓝牙外围设备
|
||||
startBluetoothDeviceDiscovery() {
|
||||
let that = this
|
||||
uni.startBluetoothDevicesDiscovery({
|
||||
allowDuplicatesKey: false,
|
||||
interval: 500, //上报设备的间隔
|
||||
services: [
|
||||
"FFE0",
|
||||
],
|
||||
success: res => {
|
||||
that.isConnection = 0
|
||||
that.onBluetoothDeviceFound();
|
||||
},
|
||||
fail: res => {
|
||||
that.isConnection = 2
|
||||
that.$tools.msg("请确定设备是开机状态、手机蓝牙权限已打开!")
|
||||
}
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 发现外围设备
|
||||
*/
|
||||
onBluetoothDeviceFound() {
|
||||
var that = this;
|
||||
that.isConnection = 0
|
||||
uni.onBluetoothDeviceFound(res => {
|
||||
res.devices.forEach(device => {
|
||||
if (!device.name && !device.localName) {
|
||||
return
|
||||
}
|
||||
if (device.name.indexOf('AiLink_') != -1) {
|
||||
clearTimeout(myTime);
|
||||
let buff = device.advertisData.slice(-6)
|
||||
device.mac = new Uint8Array(buff) // 保存广播数据中的mac地址,这是由于iOS不直接返回mac地址
|
||||
let tempMac = Array.from(device.mac)
|
||||
tempMac.reverse()
|
||||
device.macAddr = that.$tools.ab2hex(tempMac, ':').toUpperCase()
|
||||
if (device.deviceId.indexOf(that.deviceId) != -1 || device.macAddr.indexOf(that.deviceId) != -1) {
|
||||
that.stopBluetoothDevicesDiscovery()
|
||||
that.macAddr = device.macAddr
|
||||
that.deviceId = device.deviceId;
|
||||
that.createBLEConnection()
|
||||
return;
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
that.handleMyTime()
|
||||
},
|
||||
handleMyTime() {
|
||||
var that = this;
|
||||
myTime = setTimeout(function() {
|
||||
if (!that.macAddr) {
|
||||
clearTimeout(myTime);
|
||||
that.Unload = true
|
||||
that.isConnection = 2
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
}
|
||||
}, 20000);
|
||||
},
|
||||
/**
|
||||
* 停止搜索蓝牙设备
|
||||
*/
|
||||
stopBluetoothDevicesDiscovery() {
|
||||
uni.stopBluetoothDevicesDiscovery({
|
||||
success: e => {
|
||||
console.log("停止搜索蓝牙设备", e)
|
||||
},
|
||||
});
|
||||
},
|
||||
// 监听蓝牙连接状态
|
||||
onBLEConnectionStateChange() {
|
||||
let that = this
|
||||
uni.onBLEConnectionStateChange(function(res) {
|
||||
console.log("监听蓝牙连接状态", res.connected)
|
||||
if (!res.connected) {
|
||||
that.Unload = true
|
||||
that.isConnection = 2
|
||||
clearTimeout(myTime);
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
}
|
||||
that.$store.commit("changeConnected", res.connected);
|
||||
})
|
||||
},
|
||||
// 连接蓝牙
|
||||
createBLEConnection() {
|
||||
let that = this;
|
||||
uni.createBLEConnection({
|
||||
deviceId: that.deviceId,
|
||||
success: res => {
|
||||
that.isConnection = 0
|
||||
that.getBLEDeviceServices();
|
||||
},
|
||||
fail: res => {
|
||||
that.isConnection = 2
|
||||
console.log("设备连接失败,请重新连接", res);
|
||||
}
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 获取设备的UUID
|
||||
*/
|
||||
getBLEDeviceServices() {
|
||||
let serviceList = [];
|
||||
let that = this;
|
||||
uni.getBLEDeviceServices({
|
||||
deviceId: that.deviceId,
|
||||
success: res => {
|
||||
console.log("获取设备的UUID成功", res)
|
||||
serviceList = res.services;
|
||||
for (let i = 0; i < serviceList.length; i++) {
|
||||
let service = serviceList[i];
|
||||
if (service.uuid.indexOf("FFE0") != -1) {
|
||||
that.isConnection = 1
|
||||
that.serviceId = service.uuid;
|
||||
that.getBLEDeviceCharacteristics();
|
||||
console.log("设备的FFE0的serviceId: " + that.serviceId);
|
||||
break;
|
||||
}
|
||||
}
|
||||
},
|
||||
fail: res => {
|
||||
console.log('获取设备的UUID失败:', res)
|
||||
}
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 获取指定服务的特征值
|
||||
*/
|
||||
getBLEDeviceCharacteristics() {
|
||||
let characteristicsList = [];
|
||||
let that = this;
|
||||
uni.getBLEDeviceCharacteristics({
|
||||
deviceId: that.deviceId,
|
||||
serviceId: that.serviceId,
|
||||
success: res => {
|
||||
console.log("服务的特征值成功", res)
|
||||
for (let i = 0; i < res.characteristics.length; i++) {
|
||||
let item = res.characteristics[i];
|
||||
if (item.uuid.indexOf('FFE1') != -1) {
|
||||
that.uuid1 = item.uuid //下发数据
|
||||
} else if (item.uuid.indexOf('FFE2') != -1) {
|
||||
that.uuid2 = item.uuid //监听数据
|
||||
that.notifyBLECharacteristicValue()
|
||||
} else if (item.uuid.indexOf('FFE3') != -1) {
|
||||
that.uuid3 = item.uuid //写入设置
|
||||
}
|
||||
}
|
||||
},
|
||||
fail: res => {
|
||||
console.log('获取特征值失败:', JSON.stringify(res))
|
||||
}
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 开启订阅特征值
|
||||
* read: true, //读,write: true, //写,notify: true, //广播
|
||||
*/
|
||||
notifyBLECharacteristicValue() {
|
||||
let that = this;
|
||||
uni.notifyBLECharacteristicValueChange({
|
||||
state: true, // 启用 notify 功能
|
||||
deviceId: that.deviceId,
|
||||
serviceId: that.serviceId,
|
||||
characteristicId: that.uuid2,
|
||||
if (dw == "6") {
|
||||
dw1 = "lb"
|
||||
dw2 = "lb"
|
||||
}
|
||||
if (num == "1") {
|
||||
data = parseInt(value.substring(13, 18), 16) / 10
|
||||
}
|
||||
if (num == "2") {
|
||||
data = parseInt(value.substring(13, 18), 16) / 100
|
||||
}
|
||||
if (num == "3") {
|
||||
data = parseInt(value.substring(13, 18), 16) / 1000
|
||||
}
|
||||
if (typeInfo == "01") {
|
||||
that.text = "您的实时体重是:" + data + dw1
|
||||
}
|
||||
if (typeInfo == "02") {
|
||||
that.text = "您的体重是:" + data + dw1
|
||||
that.weight = data + dw2
|
||||
console.log("稳定体重:", value, that.weight)
|
||||
}
|
||||
}
|
||||
if (type == "11") {
|
||||
that.type = 2
|
||||
if (typeInfo == "02") {
|
||||
cnt = cnt + 1;
|
||||
}
|
||||
if (typeInfo == "03") {
|
||||
that.imp = parseInt(value.substring(17, 22), 16)
|
||||
}
|
||||
if (cnt >= 2) {
|
||||
console.log("阻抗值shibai", cnt)
|
||||
that.imp = 0
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: "体脂测量失败,是否保存本次测量结果?",
|
||||
cancelText: "放弃",
|
||||
confirmText: "保存",
|
||||
success(res) {
|
||||
uni.onBLECharacteristicValueChange(function(res) {
|
||||
let value = that.$tools.ab2hex(res.value, "");
|
||||
let num = value.substring(18, 19)
|
||||
let dw = value.substring(19, 20)
|
||||
let type = value.substring(8, 10)
|
||||
let typeInfo = value.substring(10, 12)
|
||||
console.log("value", value)
|
||||
if (type == "10") {
|
||||
let data = parseInt(value.substring(13, 18), 16)
|
||||
let dw1 = "kg"
|
||||
let dw2 = "kg"
|
||||
if (dw == "1") {
|
||||
dw1 = "斤"
|
||||
dw2 = "jin"
|
||||
}
|
||||
if (dw == "4") {
|
||||
dw1 = "st:lb"
|
||||
dw2 = "st"
|
||||
data = 1 * data + 5
|
||||
}
|
||||
if (dw == "6") {
|
||||
dw1 = "lb"
|
||||
dw2 = "lb"
|
||||
}
|
||||
if (num == "1") {
|
||||
data = parseInt(value.substring(13, 18), 16) / 10
|
||||
}
|
||||
if (num == "2") {
|
||||
data = parseInt(value.substring(13, 18), 16) / 100
|
||||
}
|
||||
if (num == "3") {
|
||||
data = parseInt(value.substring(13, 18), 16) / 1000
|
||||
}
|
||||
if (typeInfo == "01") {
|
||||
that.text = "您的实时体重是:" + data + dw1
|
||||
}
|
||||
if (typeInfo == "02") {
|
||||
that.text = "您的体重是:" + data + dw1
|
||||
that.weight = data + dw2
|
||||
console.log("稳定体重:", value, that.weight)
|
||||
}
|
||||
}
|
||||
if (type == "11") {
|
||||
that.type = 2
|
||||
if (typeInfo == "02") {
|
||||
cnt = cnt + 1;
|
||||
}
|
||||
if (typeInfo == "03") {
|
||||
that.imp = parseInt(value.substring(17, 22), 16)
|
||||
}
|
||||
if (cnt >= 2) {
|
||||
console.log("阻抗值shibai", cnt)
|
||||
that.imp = 0
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: "体脂测量失败,是否保存本次测量结果?",
|
||||
cancelText: "放弃",
|
||||
confirmText: "保存",
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
that.imp = 0
|
||||
that.handleGetMeasure()
|
||||
} else {
|
||||
that.Unload = true
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
uni.navigateBack({
|
||||
delta: 1
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
if (type == "30") {
|
||||
console.log("测量完成", that.weight)
|
||||
that.handleGetMeasure()
|
||||
}
|
||||
});
|
||||
},
|
||||
fail(res) {
|
||||
console.log("测量失败", res.value);
|
||||
}
|
||||
});
|
||||
},
|
||||
// 保存测量结果
|
||||
handleGetMeasure() {
|
||||
let that = this
|
||||
that.$model.getmeasure({
|
||||
weight: that.weight,
|
||||
imp: that.imp,
|
||||
ecode: that.macAddr,
|
||||
height: that.info.height,
|
||||
familyid: that.info.familyid,
|
||||
}).then(res => {
|
||||
if (res.code == 0) {
|
||||
that.$tools.msg("测量成功")
|
||||
that.$store.dispatch("getUserInfo", {
|
||||
familyid: that.info.familyid,
|
||||
});
|
||||
that.$store.dispatch("getResult", {
|
||||
birthday: that.info.birthday,
|
||||
familyid: that.info.familyid,
|
||||
height: that.info.height,
|
||||
sex: that.info.sex,
|
||||
});
|
||||
} else {
|
||||
console.log("测量失败", res.message)
|
||||
that.$tools.msg(res.message)
|
||||
}
|
||||
that.Unload = true
|
||||
setTimeout(function() {
|
||||
if (res.confirm) {
|
||||
that.imp = 0
|
||||
that.handleGetMeasure()
|
||||
} else {
|
||||
that.Unload = true
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
uni.switchTab({
|
||||
url: "/pages/index/index"
|
||||
url: "/pages/index/index"
|
||||
})
|
||||
}, 200)
|
||||
})
|
||||
},
|
||||
handleBack() {
|
||||
let that = this
|
||||
that.Unload = true
|
||||
clearTimeout(myTime)
|
||||
that.stopBluetoothDevicesDiscovery() //取消蓝牙搜索
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
},
|
||||
/**
|
||||
* 断开蓝牙模块
|
||||
*/
|
||||
closeBluetoothAdapter() {
|
||||
let that = this;
|
||||
uni.closeBluetoothAdapter({
|
||||
success: res => {
|
||||
console.log('蓝牙模块关闭成功');
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 断开蓝牙连接
|
||||
*/
|
||||
closeBLEConnection() {
|
||||
var that = this;
|
||||
uni.closeBLEConnection({
|
||||
deviceId: that.deviceId,
|
||||
success: res => {
|
||||
console.log('断开蓝牙连接成功');
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
if (type == "30") {
|
||||
console.log("测量完成", that.weight)
|
||||
that.handleGetMeasure()
|
||||
}
|
||||
});
|
||||
},
|
||||
fail(res) {
|
||||
console.log("测量失败", res.value);
|
||||
}
|
||||
});
|
||||
},
|
||||
// 保存测量结果
|
||||
handleGetMeasure() {
|
||||
let that = this
|
||||
that.$model.getmeasure({
|
||||
weight: that.weight,
|
||||
imp: that.imp,
|
||||
ecode: that.macAddr,
|
||||
height: that.info.height,
|
||||
familyid: that.info.familyid,
|
||||
}).then(res => {
|
||||
if (res.code == 0) {
|
||||
that.$tools.msg("测量成功")
|
||||
that.$store.dispatch("getUserInfo", {
|
||||
familyid: that.info.familyid,
|
||||
});
|
||||
that.$store.dispatch("getResult", {
|
||||
birthday: that.info.birthday,
|
||||
familyid: that.info.familyid,
|
||||
height: that.info.height,
|
||||
sex: that.info.sex,
|
||||
});
|
||||
} else {
|
||||
console.log("测量失败", res.message)
|
||||
that.$tools.msg(res.message)
|
||||
}
|
||||
that.Unload = true
|
||||
setTimeout(function() {
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
uni.switchTab({
|
||||
url: "/pages/index/index"
|
||||
})
|
||||
}, 200)
|
||||
})
|
||||
},
|
||||
handleBack() {
|
||||
let that = this
|
||||
that.Unload = true
|
||||
clearTimeout(myTime)
|
||||
that.stopBluetoothDevicesDiscovery() //取消蓝牙搜索
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
},
|
||||
/**
|
||||
* 断开蓝牙模块
|
||||
*/
|
||||
closeBluetoothAdapter() {
|
||||
let that = this;
|
||||
uni.closeBluetoothAdapter({
|
||||
success: res => {
|
||||
console.log('蓝牙模块关闭成功');
|
||||
}
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 断开蓝牙连接
|
||||
*/
|
||||
closeBLEConnection() {
|
||||
var that = this;
|
||||
uni.closeBLEConnection({
|
||||
deviceId: that.deviceId,
|
||||
success: res => {
|
||||
console.log('断开蓝牙连接成功');
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
|
|
|||
|
|
@ -52,6 +52,9 @@
|
|||
clearTimeout(myTime);
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
uni.switchTab({
|
||||
url: "/pages/index/index"
|
||||
})
|
||||
console.log("测量页返回1")
|
||||
}
|
||||
},
|
||||
|
|
@ -68,6 +71,7 @@
|
|||
that.deviceId = options.deviceId
|
||||
that.openBluetoothAdapter()
|
||||
}
|
||||
that.$store.commit("changeDevType", null);
|
||||
uni.onBluetoothAdapterStateChange(function(res) {
|
||||
that.$store.commit("changeBluetooth", res.available);
|
||||
})
|
||||
|
|
@ -106,8 +110,8 @@
|
|||
that.startBluetoothDeviceDiscovery()
|
||||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
uni.navigateBack({
|
||||
delta: 1
|
||||
uni.switchTab({
|
||||
url: "/pages/index/index"
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
@ -274,7 +278,7 @@
|
|||
that.closeBLEConnection()
|
||||
that.closeBluetoothAdapter()
|
||||
uni.switchTab({
|
||||
url: "/pages/index/index"
|
||||
url: "/pages/index/index"
|
||||
})
|
||||
}, 200)
|
||||
})
|
||||
|
|
|
|||
|
|
@ -443,7 +443,7 @@
|
|||
width: 100%;
|
||||
z-index: 99;
|
||||
height:95px;
|
||||
background: $mainColor;
|
||||
background: #F9FAFC;
|
||||
box-shadow: 0px 1px 5px 0px #dfdfdf;
|
||||
|
||||
.bg {
|
||||
|
|
@ -560,15 +560,16 @@
|
|||
|
||||
.celiang_r {
|
||||
position: absolute;
|
||||
width: 60px;
|
||||
width: 70px;
|
||||
background: #fff;
|
||||
color: #75DAD0;
|
||||
right: 20px;
|
||||
right: 15px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
border-radius: 10px;
|
||||
justify-content: center;
|
||||
bottom: -32px;
|
||||
bottom: -30px;
|
||||
padding: 5px 0;
|
||||
box-shadow: 0px 1px 5px 2px #dfe2e1fc;
|
||||
-webkit-animation-name: heart;
|
||||
-webkit-animation-duration: 0.75s;
|
||||
|
|
@ -584,10 +585,10 @@
|
|||
display: inline-block;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
font-size: 11px;
|
||||
font-size: 13px;
|
||||
padding: 0;
|
||||
border: none;
|
||||
margin: -3px 0 3px;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,170 +1,170 @@
|
|||
<template>
|
||||
<view class="wrapper" v-if="isLogin">
|
||||
<view class="popup" @click="onTap">
|
||||
<view class="block" @click.stop>
|
||||
<view class="item" @click="getUserInfo">
|
||||
<image src="../static/2253.png" class="image1"></image>
|
||||
<view class="text">
|
||||
<view><text></text>体重体脂测量与记录</view>
|
||||
<view><text></text>18项身体数据分析、身体评分</view>
|
||||
<view><text></text>满足所有人群检测</view>
|
||||
</view>
|
||||
<view class="pbtn">立即体验</view>
|
||||
</view>
|
||||
<icon class="t-icon t-icon-quxiao image2" @click="onTap"></icon>
|
||||
</view>
|
||||
<view class="wrapper" v-if="isLogin">
|
||||
<view class="popup" @click="onTap">
|
||||
<view class="block" @click.stop>
|
||||
<view class="item" @click="getUserInfo">
|
||||
<image src="../static/2253.png" class="image1"></image>
|
||||
<view class="text">
|
||||
<view><text></text>体重体脂测量与记录</view>
|
||||
<view><text></text>18项身体数据分析、身体评分</view>
|
||||
<view><text></text>满足所有人群检测</view>
|
||||
</view>
|
||||
<view class="pbtn">立即体验</view>
|
||||
</view>
|
||||
<icon class="t-icon t-icon-quxiao image2" @click="onTap"></icon>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
mapState
|
||||
} from "vuex";
|
||||
export default {
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
props: {
|
||||
url: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
mounted() {},
|
||||
computed: {
|
||||
...mapState(["user", "isLogin"]),
|
||||
},
|
||||
methods: {
|
||||
onTap() {
|
||||
this.$store.commit("changeUserLogin", false);
|
||||
},
|
||||
getUserInfo() {
|
||||
let that = this
|
||||
uni.getUserProfile({
|
||||
desc: '登录',
|
||||
success: (infoRes) => {
|
||||
console.log("getUserProfile授权成功", infoRes, uni.getStorageSync('tenantid'));
|
||||
that.$store.dispatch("getConfig", {
|
||||
tenantId: uni.getStorageSync('tenantid')
|
||||
})
|
||||
uni.redirectTo({
|
||||
url: `/pageTwo/login/login?name=` + infoRes.userInfo.nickName +
|
||||
"&headimg=" + infoRes.userInfo.avatarUrl + "&url=" + that.url
|
||||
})
|
||||
// that.DecodeEncryptedData(infoRes)
|
||||
that.$store.commit("changeUserLogin", false);
|
||||
},
|
||||
fail: (res) => {
|
||||
console.log("授权失败", res)
|
||||
}
|
||||
});
|
||||
},
|
||||
// 解密
|
||||
DecodeEncryptedData(data) {
|
||||
let that = this
|
||||
that.$model.getDecryptdata({
|
||||
encryptedData: data.encryptedData,
|
||||
iv: data.iv,
|
||||
tenantid: uni.getStorageSync('tenantid'),
|
||||
sessionid: uni.getStorageSync('sessionid'),
|
||||
}).then(res => {
|
||||
if (res.code != 0) return
|
||||
uni.redirectTo({
|
||||
url: `/pageTwo/login/login`
|
||||
})
|
||||
console.log("解密成功", res)
|
||||
}).catch(e => {
|
||||
console.log("解密失败", e)
|
||||
})
|
||||
},
|
||||
}
|
||||
import {
|
||||
mapState
|
||||
} from "vuex";
|
||||
export default {
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
props: {
|
||||
url: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
code: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
mounted() {},
|
||||
computed: {
|
||||
...mapState(["user", "isLogin"]),
|
||||
},
|
||||
methods: {
|
||||
onTap() {
|
||||
this.$store.commit("changeUserLogin", false);
|
||||
},
|
||||
getUserInfo() {
|
||||
let that = this
|
||||
uni.getUserProfile({
|
||||
desc: '登录',
|
||||
success: (infoRes) => {
|
||||
console.log("getUserProfile授权成功", infoRes, uni.getStorageSync('tenantid'));
|
||||
uni.redirectTo({
|
||||
url: `/pageTwo/login/login?name=` + infoRes.userInfo.nickName +
|
||||
"&headimg=" + infoRes.userInfo.avatarUrl + "&url=" + that.url + "&code=" + that.code
|
||||
})
|
||||
that.$store.commit("changeUserLogin", false);
|
||||
},
|
||||
fail: (res) => {
|
||||
console.log("授权失败", res)
|
||||
}
|
||||
});
|
||||
},
|
||||
// 解密
|
||||
DecodeEncryptedData(data) {
|
||||
let that = this
|
||||
that.$model.getDecryptdata({
|
||||
encryptedData: data.encryptedData,
|
||||
iv: data.iv,
|
||||
tenantid: uni.getStorageSync('tenantid'),
|
||||
sessionid: uni.getStorageSync('sessionid'),
|
||||
}).then(res => {
|
||||
if (res.code != 0) return
|
||||
uni.redirectTo({
|
||||
url: `/pageTwo/login/login`
|
||||
})
|
||||
console.log("解密成功", res)
|
||||
}).catch(e => {
|
||||
console.log("解密失败", e)
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.wrapper {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
.wrapper {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.popup {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
z-index: 99;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.item {
|
||||
width: 291px;
|
||||
height: 324px;
|
||||
position: relative;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
margin: auto;
|
||||
bottom: 0;
|
||||
padding: 0;
|
||||
border-radius: 15px;
|
||||
|
||||
text {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
background: $greencolor;
|
||||
display: inline-block;
|
||||
border-radius: 50%;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.popup {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
z-index: 99;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: rgba(0, 0, 0, 0.4);
|
||||
.image1 {
|
||||
width: 291px;
|
||||
height: 324px;
|
||||
}
|
||||
|
||||
.item {
|
||||
width: 291px;
|
||||
height: 324px;
|
||||
position: relative;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
margin: auto;
|
||||
bottom: 0;
|
||||
padding: 0;
|
||||
border-radius: 15px;
|
||||
|
||||
text {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
background: $greencolor;
|
||||
display: inline-block;
|
||||
border-radius: 50%;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.image1 {
|
||||
width: 291px;
|
||||
height: 324px;
|
||||
}
|
||||
|
||||
.text {
|
||||
position: absolute;
|
||||
top: 60%;
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
line-height: 28px;
|
||||
right: 10px;
|
||||
left: 30px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.text {
|
||||
position: absolute;
|
||||
top: 60%;
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
line-height: 28px;
|
||||
right: 10px;
|
||||
left: 30px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.pbtn {
|
||||
background: $btncolor;
|
||||
text-align: center;
|
||||
border-radius: 10px;
|
||||
margin: 5px auto;
|
||||
width: 50%;
|
||||
color: #fff;
|
||||
position: absolute;
|
||||
bottom: 10px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
margin: auto;
|
||||
padding: 5px 0;
|
||||
}
|
||||
}
|
||||
|
||||
.image2 {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
font-size: 30px;
|
||||
color: #666;
|
||||
background-color: #fff;
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
margin: 20px auto;
|
||||
}
|
||||
.pbtn {
|
||||
background: $btncolor;
|
||||
text-align: center;
|
||||
border-radius: 10px;
|
||||
margin: 5px auto;
|
||||
width: 50%;
|
||||
color: #fff;
|
||||
position: absolute;
|
||||
bottom: 10px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
margin: auto;
|
||||
padding: 5px 0;
|
||||
}
|
||||
|
||||
.image2 {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
font-size: 30px;
|
||||
color: #666;
|
||||
background-color: #fff;
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
margin: 20px auto;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
18
config.js
18
config.js
|
|
@ -1,17 +1,23 @@
|
|||
const accountInfo = wx.getAccountInfoSync();
|
||||
const appid = accountInfo.miniProgram.appId
|
||||
uni.setStorageSync('appid', appid)
|
||||
let host = ""
|
||||
let configPro = {}
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
console.log("开发环境")
|
||||
host = "https://ttybapi.pcxbc.com"
|
||||
// host = "https://ybapi.pcxbc.com"
|
||||
console.log("测试环境")
|
||||
configPro = {
|
||||
// host = "https://ttybapi.pcxbc.com"
|
||||
host: "https://ybapi.pcxbc.com",
|
||||
envVersion: "trial"
|
||||
}
|
||||
} else {
|
||||
console.log("生产环境")
|
||||
host = "https://ybapi.pcxbc.com"
|
||||
configPro = {
|
||||
host: "https://ybapi.pcxbc.com",
|
||||
envVersion: "develop"
|
||||
}
|
||||
}
|
||||
console.log("appid", appid)
|
||||
module.exports = {
|
||||
appid,
|
||||
host,
|
||||
configPro,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@
|
|||
"quickapp" : {},
|
||||
/* 小程序特有相关 */
|
||||
"mp-weixin" : {
|
||||
"appid" : "wxd230a93791c03259",
|
||||
"appid" : "wx39cf431caa22b5c8",
|
||||
"setting" : {
|
||||
"urlCheck" : true,
|
||||
"minified" : true,
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@
|
|||
handleTelLogin() {
|
||||
let that = this
|
||||
if (this.value == 0) {
|
||||
that.$tools.msg("请先勾选同意每日一称《个人信息保护政策》")
|
||||
that.$tools.msg("请先勾选同意《个人信息保护政策》")
|
||||
return
|
||||
}
|
||||
if (!this.phone) {
|
||||
|
|
@ -115,7 +115,7 @@
|
|||
uni.setStorageSync('sessionid', res.data.sessionid)
|
||||
if (that.infoRes.url == 'active') {
|
||||
uni.reLaunch({
|
||||
url: "/pages/index/active"
|
||||
url: "/pages/index/active?code=" + that.infoRes.code
|
||||
})
|
||||
} else {
|
||||
uni.reLaunch({
|
||||
|
|
@ -159,7 +159,7 @@
|
|||
getPhoneNumber(res) {
|
||||
const that = this
|
||||
if (this.value == 0) {
|
||||
that.$tools.msg("请先勾选同意每日一称《个人信息保护政策")
|
||||
that.$tools.msg("请先勾选同意个人信息保护政策")
|
||||
return
|
||||
}
|
||||
if (res.detail.errMsg == 'getPhoneNumber:ok') {
|
||||
|
|
@ -181,7 +181,7 @@
|
|||
uni.setStorageSync('sessionid', res.data.sessionid)
|
||||
if (that.infoRes.url == 'active') {
|
||||
uni.reLaunch({
|
||||
url: "/pages/index/active"
|
||||
url: "/pages/index/active?code=" + that.infoRes.code
|
||||
})
|
||||
} else {
|
||||
uni.reLaunch({
|
||||
|
|
|
|||
|
|
@ -13,8 +13,7 @@
|
|||
<view class="lan border-bottom">
|
||||
<view class="left">用户名/昵称</view>
|
||||
<view class="right">
|
||||
<text v-if="user.nickname">{{user.nickname}}</text>
|
||||
<!-- <input name="name" type="text" v-model="name" placeholder="请输入用户名/昵称" /> -->
|
||||
<input name="name" type="text" v-model="name" placeholder="请输入用户名/昵称" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="lan border-bottom">
|
||||
|
|
@ -157,6 +156,7 @@
|
|||
frontColor: '#ffffff',
|
||||
backgroundColor: this.appTheme,
|
||||
})
|
||||
this.name = this.user.nickname
|
||||
var agedata = []
|
||||
for (var i = 12; i <= 80; i++) {
|
||||
agedata.push(i);
|
||||
|
|
|
|||
|
|
@ -167,4 +167,7 @@
|
|||
min-height: calc(100vh - 40px);
|
||||
padding-bottom: 15px
|
||||
}
|
||||
.history {
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<view>
|
||||
<view class="box">
|
||||
<view class="form lanBox">
|
||||
<view class="lan border-bottom" v-for="(item,index) in list" :key="index">
|
||||
<view class="left">
|
||||
<!-- <view class="lan border-bottom" v-for="(item,index) in list" :key="index">
|
||||
<view class="left"><view class="icon">
|
||||
<view class="icon">
|
||||
<icon class="t-icon" :class="'t-icon-'+item.key"></icon>
|
||||
<icon class="t-icon" :class="'t-icon-'+item.key"></icon></view>
|
||||
</view>
|
||||
{{item.title}}
|
||||
</view>
|
||||
|
|
@ -15,115 +15,179 @@
|
|||
</view>
|
||||
<view v-if="item.title=='肥胖等级'"><text>{{item.fevaluation}}</text></view>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<view class="icon">
|
||||
<icon class="t-icon t-icon-height"></icon>
|
||||
</view>身高
|
||||
</view>
|
||||
<view class="right">{{memInfo.height?memInfo.height:"0"}}cm</view>
|
||||
</view>
|
||||
<!-- -->
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<view class="icon">
|
||||
<icon class="t-icon t-icon-weight"></icon>
|
||||
</view>体重
|
||||
</view>
|
||||
<view class="right">{{memInfo.weight?memInfo.weight:"0"}}kg</view>
|
||||
</view>
|
||||
<!-- -->
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<view class="icon">
|
||||
<image src="../../static/age.png"></image>
|
||||
</view>年龄
|
||||
</view>
|
||||
<view class="right">{{memInfo.age?memInfo.age:"0岁"}}</view>
|
||||
</view>
|
||||
<!-- -->
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<view class="icon">
|
||||
<icon class="t-icon t-icon-bmi"></icon>
|
||||
</view>BMI
|
||||
</view>
|
||||
<view class="right">{{memInfo.bmi?memInfo.bmi:"0"}}</view>
|
||||
</view>
|
||||
<!-- -->
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<view class="icon">
|
||||
<icon class="t-icon t-icon-fat_w"></icon>
|
||||
</view>脂肪量
|
||||
</view>
|
||||
<view class="right">{{memInfo.fat_w?memInfo.fat_w:"0"}}%</view>
|
||||
</view>
|
||||
<!-- -->
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<view class="icon">
|
||||
<icon class="t-icon t-icon-fat_r"></icon>
|
||||
</view>脂肪率
|
||||
</view>
|
||||
<view class="right">{{memInfo.fat_r?memInfo.fat_r:"0"}}%</view>
|
||||
</view>
|
||||
|
||||
<!-- -->
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<view class="icon">
|
||||
<icon class="t-icon t-icon-muscleval"></icon>
|
||||
</view>肌肉量
|
||||
</view>
|
||||
<view class="right">{{memInfo.muscleval?memInfo.muscleval:"0"}}kg</view>
|
||||
</view>
|
||||
<!-- -->
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<view class="icon">
|
||||
<icon class="t-icon t-icon-muscle"></icon>
|
||||
</view>肌肉率
|
||||
</view>
|
||||
<view class="right">{{memInfo.muscle?memInfo.muscle:"0"}}%</view>
|
||||
</view>
|
||||
<!-- -->
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<view class="icon">
|
||||
<icon class="t-icon t-icon-proteinval"></icon>
|
||||
</view>蛋白量
|
||||
</view>
|
||||
<view class="right">{{memInfo.proteinval?memInfo.proteinval:'0'}}kg</view>
|
||||
</view>
|
||||
<!-- -->
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<view class="icon">
|
||||
<icon class="t-icon t-icon-protein"></icon>
|
||||
</view>蛋白率
|
||||
</view>
|
||||
<view class="right">{{memInfo.protein?memInfo.protein:"0"}}%</view>
|
||||
</view>
|
||||
<!-- -->
|
||||
<!-- -->
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<view class="icon">
|
||||
<icon class="t-icon t-icon-water"></icon>
|
||||
</view>水分
|
||||
</view>
|
||||
<view class="right">{{memInfo.water?memInfo.water:"0"}}</view>
|
||||
</view>
|
||||
<!-- -->
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<view class="icon">
|
||||
<icon class="t-icon t-icon-bone"></icon>
|
||||
</view>骨重
|
||||
</view>
|
||||
<view class="right">{{memInfo.bone?memInfo.bone:"0"}}kg</view>
|
||||
</view>
|
||||
<!-- -->
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<view class="icon">
|
||||
<icon class="t-icon t-icon-visceral"></icon>
|
||||
</view>内脏指数
|
||||
</view>
|
||||
<view class="right">{{memInfo.visceral?memInfo.visceral:"0"}}</view>
|
||||
</view>
|
||||
<!-- -->
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<view class="icon">
|
||||
<icon class="t-icon t-icon-sfr"></icon>
|
||||
</view>皮下脂肪
|
||||
</view>
|
||||
<view class="right">{{memInfo.sfr?memInfo.sfr:"0"}}%</view>
|
||||
</view>
|
||||
<!-- -->
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<view class="icon">
|
||||
<icon class="t-icon t-icon-kcal"></icon>
|
||||
</view>基础代谢率
|
||||
</view>
|
||||
<view class="right">{{memInfo.kcal?memInfo.kcal:'0'}}kcal</view>
|
||||
</view>
|
||||
<!-- -->
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<view class="icon">
|
||||
<icon class="t-icon t-icon-lbm"></icon>
|
||||
</view>去脂体重
|
||||
</view>
|
||||
<view class="right">{{memInfo.lbm?memInfo.lbm:"0"}}kg</view>
|
||||
</view>
|
||||
<!-- -->
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<view class="icon">
|
||||
<icon class="t-icon t-icon-bodyage"></icon>
|
||||
</view>体龄
|
||||
</view>
|
||||
<view class="right">{{memInfo.bodyage?memInfo.bodyage:"0"}}</view>
|
||||
</view>
|
||||
<!-- -->
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<view class="icon">
|
||||
<icon class="t-icon t-icon-fatlevel"></icon>
|
||||
</view>肥胖等级
|
||||
</view>
|
||||
<view class="right">{{memInfo.fatlevel?memInfo.fatlevel:'0'}}</view>
|
||||
</view>
|
||||
<!-- -->
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<view class="icon">
|
||||
<icon class="t-icon t-icon-body"></icon>
|
||||
</view>体型
|
||||
</view>
|
||||
<view class="right">{{memInfo.body?memInfo.body:'0'}}</view>
|
||||
</view>
|
||||
<!-- <view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<image src="@/static/weight.png"></image>体重
|
||||
</view>
|
||||
<view class="right">{{memInfo.weight?memInfo.weight:"-"}}kg</view>
|
||||
</view>
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<image src="@/static/height.png"></image>身高
|
||||
</view>
|
||||
<view class="right">{{memInfo.height?memInfo.height:"-"}}cm</view>
|
||||
</view>
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<image src="@/static/bmi.png"></image>BMI
|
||||
</view>
|
||||
<view class="right">{{memInfo.bmi?memInfo.bmi:"-"}}</view>
|
||||
</view>
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<image src="@/static/fat_r.png"></image>体脂率
|
||||
</view>
|
||||
<view class="right">{{memInfo.fat_r?memInfo.fat_r:"-"}}%</view>
|
||||
</view>
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<image src="@/static/fat_w.png"></image>脂肪量
|
||||
</view>
|
||||
<view class="right">{{memInfo.fat_w?memInfo.fat_w:"-"}}%</view>
|
||||
</view>
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<image src="@/static/muscle.png"></image>肌肉率
|
||||
</view>
|
||||
<view class="right">{{memInfo.muscle?memInfo.muscle:"-"}}%</view>
|
||||
</view>
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<image src="@/static/water.png"></image>水分
|
||||
</view>
|
||||
<view class="right">{{memInfo.water?memInfo.water:"-"}}</view>
|
||||
</view>
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<image src="@/static/bone.png"></image>骨重
|
||||
</view>
|
||||
<view class="right">{{memInfo.bone?memInfo.bone:"-"}}kg</view>
|
||||
</view>
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<image src="@/static/visceral.png"></image>内脏指数
|
||||
</view>
|
||||
<view class="right">{{memInfo.visceral?memInfo.visceral:"-"}}</view>
|
||||
</view>
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<image src="@/static/sfr.png"></image>皮下脂肪
|
||||
</view>
|
||||
<view class="right">{{memInfo.sfr?memInfo.sfr:"-"}}%</view>
|
||||
</view>
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<image src="@/static/protein.png"></image>蛋白率
|
||||
</view>
|
||||
<view class="right">{{memInfo.protein?memInfo.protein:"-"}}%</view>
|
||||
</view>
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<image src="@/static/bodyage.png"></image>身体年龄
|
||||
</view>
|
||||
<view class="right">{{memInfo.bodyage?memInfo.bodyage:"-"}}</view>
|
||||
</view>
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<image src="@/static/kcal.png"></image>基础代谢率
|
||||
</view>
|
||||
<view class="right">{{memInfo.kcal?memInfo.kcal:'0'}}kcal</view>
|
||||
</view>
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<image src="@/static/muscleval.png"></image>肌肉量
|
||||
</view>
|
||||
<view class="right">{{memInfo.muscleval?memInfo.muscleval:"-"}}kg</view>
|
||||
</view>
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<image src="@/static/lbm.png"></image>去脂体重
|
||||
</view>
|
||||
<view class="right">{{memInfo.lbm?memInfo.lbm:"-"}}kg</view>
|
||||
</view>
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<image src="@/static/proteinval.png"></image>蛋白量
|
||||
</view>
|
||||
<view class="right">{{memInfo.proteinval?memInfo.proteinval:'0'}}kg</view>
|
||||
</view>
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<image src="@/static/fat.png"></image>肥胖等级
|
||||
</view>
|
||||
<view class="right">{{memInfo.fatlevel?memInfo.fatlevel:'0'}}</view>
|
||||
</view>
|
||||
<view class="lan border-bottom">
|
||||
<view class="left">
|
||||
<image src="@/static/body.png"></image>体型
|
||||
</view>
|
||||
<view class="right">{{memInfo.body?memInfo.body:'0'}}</view>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -137,6 +201,7 @@
|
|||
data() {
|
||||
return {
|
||||
list: {},
|
||||
memInfo: {}
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
|
|
@ -151,8 +216,9 @@
|
|||
//
|
||||
let info = options.index
|
||||
let memInfo = JSON.parse(info)
|
||||
this.list = this.weightInfo.infoList(memInfo)
|
||||
console.log(this.list)
|
||||
this.memInfo = memInfo
|
||||
// this.list = this.weightInfo.infoList(memInfo)
|
||||
// console.log(this.list)
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -188,14 +254,20 @@
|
|||
height: 18px;
|
||||
position: absolute;
|
||||
left: 15px;
|
||||
padding: 3px;
|
||||
background-color: #aaa;
|
||||
padding: 2px;
|
||||
background-color: #c7c7c7;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.t-icon,
|
||||
image {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.right {
|
||||
|
|
|
|||
|
|
@ -86,6 +86,8 @@
|
|||
"style": {
|
||||
"navigationBarTitleText": "历史记录",
|
||||
"navigationBarBackgroundColor": "#F9FAFC"
|
||||
// "enablePullDownRefresh": true,
|
||||
// "onReachBottomDistance": 80
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -203,7 +205,7 @@
|
|||
}],
|
||||
"globalStyle": {
|
||||
"navigationBarTextStyle": "#fff",
|
||||
"navigationBarBackgroundColor": "#00c6c6",
|
||||
"navigationBarBackgroundColor": "#F9FAFC",
|
||||
"backgroundColor": "#fff"
|
||||
},
|
||||
// 切换导航
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<view class="content">
|
||||
<view class="content" :style="{borderTopColor:appTheme}">
|
||||
<view class="tips">请在设备开机状态下,搜索设备</view>
|
||||
<view class="item" @click="handleWeight">开始搜索设备</view>
|
||||
<view class="devices_summary">已发现 {{devices.length}} 个设备:</view>
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
<text>4、选择蓝牙进行激活</text>
|
||||
</view>
|
||||
</view>
|
||||
<userLogin :url="'active'"></userLogin>
|
||||
<userLogin :url="'active'" :code='code'></userLogin>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
computed: {
|
||||
...mapState(["user", "isBluetoothTyle", "appTheme"])
|
||||
},
|
||||
onLoad(options) {
|
||||
async onLoad(options) {
|
||||
let that = this
|
||||
// 导航栏颜色
|
||||
uni.setNavigationBarColor({
|
||||
|
|
@ -64,10 +64,10 @@
|
|||
that.code = options.code
|
||||
}
|
||||
that.token = uni.getStorageSync('token')
|
||||
that.login()
|
||||
uni.onBluetoothAdapterStateChange(function(res) {
|
||||
that.$store.commit("changeBluetooth", res.available);
|
||||
})
|
||||
await that.login()
|
||||
},
|
||||
methods: {
|
||||
login() {
|
||||
|
|
@ -86,14 +86,20 @@
|
|||
uni.setStorageSync('tenantid', res.data.tenantid)
|
||||
uni.setStorageSync('sessionid', res.data.sessionid)
|
||||
uni.setStorageSync('iswxphone', res.data.iswxphone)
|
||||
that.$store.commit("changeUserLogin", true)
|
||||
that.$store.dispatch("getConfig", {
|
||||
tenantId: uni.getStorageSync('tenantid')
|
||||
})
|
||||
return
|
||||
} else {
|
||||
uni.setStorageSync('userid', res.data.userid)
|
||||
uni.setStorageSync('sessionid', res.data.sessionid)
|
||||
uni.setStorageSync('token', res.data.token)
|
||||
uni.setStorageSync('iswxphone', res.data.iswxphone)
|
||||
uni.setStorageSync('tenantid', res.data.tenantid)
|
||||
uni.setStorageSync('refreshtoken', res.data.refreshtoken)
|
||||
that.$store.dispatch("getConfig", {
|
||||
tenantId: uni.getStorageSync('tenantid')
|
||||
})
|
||||
}
|
||||
}).catch(e => {})
|
||||
}
|
||||
|
|
@ -162,7 +168,7 @@
|
|||
that.popup = true
|
||||
return
|
||||
}
|
||||
if (device.advertisServiceUUIDs[0].indexOf("F0A0") !== -1) {
|
||||
if (device.name.indexOf("ELK") !== -1 && device.advertisServiceUUIDs[0].indexOf("F0A0") !== -1) {
|
||||
const foundDevices = that.devices
|
||||
const idx = that.$tools.inArray(foundDevices, "deviceId", device.deviceId)
|
||||
let buffer = device.advertisData.slice(0, 8)
|
||||
|
|
@ -296,7 +302,7 @@
|
|||
.content {
|
||||
min-height: 100vh;
|
||||
padding: 0;
|
||||
border-top: 66px solid #75DAD0;
|
||||
border-top: 66px solid #F9FAFC;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -178,7 +178,7 @@
|
|||
manuaRecord
|
||||
},
|
||||
computed: {
|
||||
...mapState(["user", "MeasureResult", "configBox", "appTheme"]),
|
||||
...mapState(["user", "MeasureResult", "configBox", "appTheme", "devHomePram"]),
|
||||
},
|
||||
async onLoad(options) {
|
||||
let that = this;
|
||||
|
|
@ -187,13 +187,18 @@
|
|||
backgroundColor: that.appTheme,
|
||||
});
|
||||
that.token = uni.getStorageSync('token')
|
||||
if (options && options.t) {
|
||||
that.devType = options.t
|
||||
that.deviceId = options.sn
|
||||
console.log("首页收参", options, )
|
||||
if (options && options.userId) {
|
||||
that.userId = options.userId
|
||||
}
|
||||
if (options && options.t) {
|
||||
that.$store.commit("changeDevType", options);
|
||||
}
|
||||
uni.setStorageSync('familyid', 123)
|
||||
await that.login()
|
||||
},
|
||||
onShow() {
|
||||
console.log("MeasureResult", this.infoList)
|
||||
this.token = uni.getStorageSync('token')
|
||||
},
|
||||
onTabItemTap() {
|
||||
|
|
@ -202,7 +207,7 @@
|
|||
},
|
||||
watch: {
|
||||
MeasureResult() {
|
||||
console.log("MeasureResult", this.MeasureResult)
|
||||
console.log("MeasureResult更新", this.MeasureResult)
|
||||
this.handleToggle(0)
|
||||
},
|
||||
appTheme() {
|
||||
|
|
@ -221,11 +226,11 @@
|
|||
if (res.errMsg = "login:ok") {
|
||||
that.$model.onlogin({
|
||||
code: res.code,
|
||||
userid: that.userId
|
||||
}).then(res => {
|
||||
if (res.code == 2) {
|
||||
that.token = null
|
||||
uni.clearStorageSync()
|
||||
uni.removeStorageSync('token')
|
||||
uni.removeStorageSync('changeUser')
|
||||
that.$store.commit("changeLogout", false);
|
||||
uni.setStorageSync('tenantid', res.data.tenantid)
|
||||
uni.setStorageSync('sessionid', res.data.sessionid)
|
||||
|
|
@ -238,6 +243,7 @@
|
|||
if (res.code == 0) {
|
||||
that.token = res.data.token
|
||||
uni.setStorageSync('token', res.data.token)
|
||||
uni.setStorageSync('userid', res.data.userid)
|
||||
uni.setStorageSync('tenantid', res.data.tenantid)
|
||||
uni.setStorageSync('sessionid', res.data.sessionid)
|
||||
uni.setStorageSync('iswxphone', res.data.iswxphone)
|
||||
|
|
@ -255,16 +261,25 @@
|
|||
},
|
||||
getFamilyList() {
|
||||
let that = this
|
||||
let isfamily
|
||||
let id = uni.getStorageSync('familyid')
|
||||
that.$model.getFamilyList({}).then(res => {
|
||||
that.$store.commit("changeFamilay", res)
|
||||
if (id && !isNaN(id) && typeof id === "number") {
|
||||
// familyId = res[0].familyid
|
||||
isfamily = true
|
||||
} else {
|
||||
isfamily = false
|
||||
// familyId = id
|
||||
}
|
||||
that.$store.dispatch("getUserInfo", {
|
||||
familyid: res[0].familyid
|
||||
familyid: isfamily ? res[0].familyid : uni.getStorageSync('familyid')
|
||||
})
|
||||
that.$store.dispatch("getResult", {
|
||||
birthday: res[0].birthday,
|
||||
familyid: res[0].familyid,
|
||||
height: res[0].height,
|
||||
sex: res[0].sex,
|
||||
birthday: isfamily ? res[0].birthday : uni.getStorageSync('birthday'),
|
||||
familyid: isfamily ? res[0].familyid : uni.getStorageSync('familyid'),
|
||||
height: isfamily ? res[0].height : uni.getStorageSync('height'),
|
||||
sex: isfamily ? res[0].sex : uni.getStorageSync('sex'),
|
||||
})
|
||||
that.GetTplList()
|
||||
that.GetSubscribeInfo()
|
||||
|
|
@ -287,7 +302,7 @@
|
|||
GetSubscribeInfo() {
|
||||
let that = this
|
||||
that.$model.GetSubscribeInfo({}).then(res => {
|
||||
console.log("消息模板状态", res.data.type)
|
||||
console.log("消息模板状态", res)
|
||||
if (res.code == 0) {
|
||||
that.isShowEle = res.data.type
|
||||
}
|
||||
|
|
@ -347,11 +362,12 @@
|
|||
that.$store.commit("changeUserLogin", true)
|
||||
return
|
||||
}
|
||||
console.log("上称测量", that.devHomePram)
|
||||
uni.openBluetoothAdapter({
|
||||
success: e => {
|
||||
that.$store.commit("changeBluetooth", true);
|
||||
if (that.devType && that.deviceId) {
|
||||
that.$tools.handlePages(that.devType, that.deviceId)
|
||||
if (that.devHomePram && that.devHomePram.t && that.devHomePram.sn) {
|
||||
that.$tools.handlePages(that.devHomePram.t, that.devHomePram.sn)
|
||||
return
|
||||
}
|
||||
uni.navigateTo({
|
||||
|
|
@ -401,9 +417,10 @@
|
|||
return
|
||||
}
|
||||
if (ind == 2 && that.configBox.referappid) {
|
||||
console.log("跳转儿童小程序", uni.getStorageSync('userid'))
|
||||
uni.navigateToMiniProgram({
|
||||
appId: that.configBox.referappid,
|
||||
path: 'pages/index/index',
|
||||
path: 'pages/index/index?userid=' + uni.getStorageSync('userid'),
|
||||
extraData: {},
|
||||
})
|
||||
return
|
||||
|
|
@ -450,8 +467,8 @@
|
|||
data() {
|
||||
return {
|
||||
fimages: [],
|
||||
userId: null,
|
||||
token: null,
|
||||
devType: "",
|
||||
deviceId: "",
|
||||
isShowEle: 0,
|
||||
infoList: [],
|
||||
|
|
@ -501,7 +518,7 @@
|
|||
|
||||
<style scoped lang="scss">
|
||||
.content {
|
||||
margin-top: 110px;
|
||||
margin-top: 115px;
|
||||
background-color: #f7f7f7;
|
||||
padding-bottom: 15px;
|
||||
|
||||
|
|
|
|||
|
|
@ -174,9 +174,10 @@
|
|||
return
|
||||
}
|
||||
if (ind == 'adult' && that.configBox.referappid) {
|
||||
console.log("跳转儿童小程序", uni.getStorageSync('userid'))
|
||||
uni.navigateToMiniProgram({
|
||||
appId: that.configBox.referappid,
|
||||
path: 'pages/index/index',
|
||||
path: 'pages/index/index?userid=' + uni.getStorageSync('userid'),
|
||||
extraData: {},
|
||||
})
|
||||
return
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 3.3 KiB |
|
|
@ -36,7 +36,8 @@ export default new Vuex.Store({
|
|||
isRecord: false,
|
||||
isLogin: false,
|
||||
isLogout: true,
|
||||
appTheme: '#00c6c6',
|
||||
appTheme: '',
|
||||
devHomePram: {}
|
||||
},
|
||||
// mutations: Store中更改state数据状态的唯一方法(必须是同步函数)
|
||||
mutations: {
|
||||
|
|
@ -48,6 +49,15 @@ export default new Vuex.Store({
|
|||
if (newData.familyid) {
|
||||
uni.setStorageSync('familyid', newData.familyid);
|
||||
}
|
||||
if (newData.birthday) {
|
||||
uni.setStorageSync('birthday', newData.birthday);
|
||||
}
|
||||
if (newData.height) {
|
||||
uni.setStorageSync('height', newData.height);
|
||||
}
|
||||
if (newData.sex) {
|
||||
uni.setStorageSync('sex', newData.sex);
|
||||
}
|
||||
Object.assign(state.user, newData)
|
||||
},
|
||||
//登录弹框
|
||||
|
|
@ -133,6 +143,9 @@ export default new Vuex.Store({
|
|||
}
|
||||
state.isLogout = newData
|
||||
},
|
||||
changeDevType(state, newData) {
|
||||
state.devHomePram = newData
|
||||
}
|
||||
|
||||
},
|
||||
// 模块化vuex
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import tools from '@/tools/tools.js'
|
|||
import store from '../store'
|
||||
import config from '@/config.js'
|
||||
|
||||
let baseUrl = config.host
|
||||
let baseUrl = config.configPro.host
|
||||
const httpRequest = (url, method = "get", data) => {
|
||||
let httpDefaultOpts = {
|
||||
url: baseUrl + url,
|
||||
|
|
|
|||
|
|
@ -264,38 +264,38 @@ function getMonth(dates, months) {
|
|||
// 页面跳转
|
||||
function handlePages(type, deviceId) {
|
||||
if (type == 1) {
|
||||
uni.redirectTo({
|
||||
url: "/BLEPages/adult/PCD01pro?deviceId=" + deviceId
|
||||
})
|
||||
return
|
||||
uni.navigateTo({
|
||||
url: "/BLEPages/adult/PCD01pro?deviceId=" + deviceId
|
||||
})
|
||||
return
|
||||
}
|
||||
if (type == 4 || type == 16) {
|
||||
uni.redirectTo({
|
||||
uni.navigateTo({
|
||||
url: "/BLEPages/adult/PCL01?deviceId=" + deviceId
|
||||
})
|
||||
return
|
||||
}
|
||||
if (type == 7) {
|
||||
uni.redirectTo({
|
||||
uni.navigateTo({
|
||||
url: "/BLEPages/adult/F01PRO?deviceId=" + deviceId
|
||||
})
|
||||
return
|
||||
}
|
||||
if (type == 8) {
|
||||
uni.redirectTo({
|
||||
uni.navigateTo({
|
||||
url: "/BLEPages/adult/H01pro?deviceId=" + deviceId
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
if (type == 14) {
|
||||
uni.redirectTo({
|
||||
uni.navigateTo({
|
||||
url: "/BLEPages/adult/F01B?deviceId=" + deviceId
|
||||
})
|
||||
return
|
||||
}
|
||||
if (type == 21) {
|
||||
uni.redirectTo({
|
||||
uni.navigateTo({
|
||||
url: "/BLEPages/adult/H09B?deviceId=" + deviceId
|
||||
})
|
||||
return
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarBackgroundColor": "#F9FAFC",
|
||||
"usingComponents": {}
|
||||
}
|
||||
|
|
@ -1 +1 @@
|
|||
<view class="data-v-a5d69904"><view class="content weightPages data-v-a5d69904"><block wx:if="{{isConnection==0}}"><view class="title data-v-a5d69904">连接中,请稍后</view></block><block wx:if="{{isConnection==1}}"><view class="title data-v-a5d69904">连接成功,请开始测量</view></block><block wx:if="{{isConnection==2}}"><view data-event-opts="{{[['tap',[['openBluetoothAdapter',['$event']]]]]}}" class="title data-v-a5d69904" bindtap="__e">连接失败,点击重新连接</view></block><view class="text data-v-a5d69904">{{text}}</view><view class="image data-v-a5d69904"><block wx:if="{{type==1}}"><image src="/BLEPages/static/F018P01.gif" class="data-v-a5d69904"></image></block><block wx:if="{{type==2}}"><image src="/BLEPages/static/F018P01.gif" class="data-v-a5d69904"></image></block></view><view class="tips data-v-a5d69904"><text class="data-v-a5d69904">提示:</text><text class="data-v-a5d69904">1.请确定设备是开机状态</text><text class="data-v-a5d69904">2.请确定手机蓝牙、位置信息已打开</text><text class="data-v-a5d69904">3.ios系统需打开设置—>应用—>微信里的蓝牙权限</text></view></view></view>
|
||||
<view class="data-v-5c73fc6e"><view class="content weightPages data-v-5c73fc6e"><block wx:if="{{isConnection==0}}"><view class="title data-v-5c73fc6e">连接中,请稍后</view></block><block wx:if="{{isConnection==1}}"><view class="title data-v-5c73fc6e">连接成功,请开始测量</view></block><block wx:if="{{isConnection==2}}"><view data-event-opts="{{[['tap',[['openBluetoothAdapter',['$event']]]]]}}" class="title data-v-5c73fc6e" bindtap="__e">连接失败,点击重新连接</view></block><view class="text data-v-5c73fc6e">{{textW}}</view><view class="text data-v-5c73fc6e">{{textH}}</view><view class="image data-v-5c73fc6e"><block wx:if="{{type==1}}"><image src="/BLEPages/static/F018P01.gif" class="data-v-5c73fc6e"></image></block><block wx:if="{{type==2}}"><image src="/BLEPages/static/F018P01.gif" class="data-v-5c73fc6e"></image></block></view><view class="tips data-v-5c73fc6e"><text class="data-v-5c73fc6e">提示:</text><text class="data-v-5c73fc6e">1.请确定设备是开机状态</text><text class="data-v-5c73fc6e">2.请确定手机蓝牙、位置信息已打开</text><text class="data-v-5c73fc6e">3.ios系统需打开设置—>应用—>微信里的蓝牙权限</text></view></view></view>
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarBackgroundColor": "#F9FAFC",
|
||||
"usingComponents": {}
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
<view class="data-v-7048df86"><view class="content weightPages data-v-7048df86"><block wx:if="{{isConnection==0}}"><view class="title data-v-7048df86">连接中,请稍后</view></block><block wx:if="{{isConnection==1}}"><view class="title data-v-7048df86">连接成功,请开始测量</view></block><block wx:if="{{isConnection==2}}"><view data-event-opts="{{[['tap',[['openBluetoothAdapter',['$event']]]]]}}" class="title data-v-7048df86" bindtap="__e">连接失败,点击重新连接</view></block><view class="text data-v-7048df86">{{textW}}</view><view class="text data-v-7048df86">{{textH}}</view><view class="image data-v-7048df86"><image src="/BLEPages/static/F018P01.gif" class="data-v-7048df86"></image></view><view class="tips data-v-7048df86"><text class="data-v-7048df86">请确保:</text><text class="data-v-7048df86">1.请确定设备是开机状态</text><text class="data-v-7048df86">2.请确定手机蓝牙、位置信息已打开</text><text class="data-v-7048df86">3.ios系统需打开设置—>应用—>微信里的蓝牙权限</text></view></view></view>
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarBackgroundColor": "#F9FAFC",
|
||||
"usingComponents": {}
|
||||
}
|
||||
|
|
@ -1 +1 @@
|
|||
<view class="content weightPages data-v-56eb894e"><block wx:if="{{isConnection==0}}"><view class="title data-v-56eb894e">连接中,请稍后</view></block><block wx:if="{{isConnection==1}}"><view class="title data-v-56eb894e">连接成功,请开始测量</view></block><block wx:if="{{isConnection==2}}"><view data-event-opts="{{[['tap',[['openBluetoothAdapter',['$event']]]]]}}" class="title data-v-56eb894e" bindtap="__e">连接失败,点击重新连接</view></block><view class="text data-v-56eb894e">{{textW}}</view><view class="text data-v-56eb894e">{{textH}}</view><view class="image data-v-56eb894e"><image src="/BLEPages/static/H01pro.gif" class="data-v-56eb894e"></image></view><view class="tips data-v-56eb894e"><text class="data-v-56eb894e">请确保:</text><text class="data-v-56eb894e">1.请确定设备是开机状态</text><text class="data-v-56eb894e">2.请确定手机蓝牙、位置信息已打开</text><text class="data-v-56eb894e">3.ios系统需打开设置—>应用—>微信里的蓝牙权限</text></view></view>
|
||||
<view class="content weightPages data-v-6f20578f"><block wx:if="{{isConnection==0}}"><view class="title data-v-6f20578f">连接中,请稍后</view></block><block wx:if="{{isConnection==1}}"><view class="title data-v-6f20578f">连接成功,请开始测量</view></block><block wx:if="{{isConnection==2}}"><view data-event-opts="{{[['tap',[['openBluetoothAdapter',['$event']]]]]}}" class="title data-v-6f20578f" bindtap="__e">连接失败,点击重新连接</view></block><view class="text data-v-6f20578f">{{textW}}</view><view class="text data-v-6f20578f">{{textH}}</view><view class="image data-v-6f20578f"><image src="/BLEPages/static/H01pro.gif" class="data-v-6f20578f"></image></view><view class="tips data-v-6f20578f"><text class="data-v-6f20578f">请确保:</text><text class="data-v-6f20578f">1.请确定设备是开机状态</text><text class="data-v-6f20578f">2.请确定手机蓝牙、位置信息已打开</text><text class="data-v-6f20578f">3.ios系统需打开设置—>应用—>微信里的蓝牙权限</text></view></view>
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarBackgroundColor": "#F9FAFC",
|
||||
"usingComponents": {}
|
||||
}
|
||||
|
|
@ -1 +1 @@
|
|||
<view class="data-v-07eec542"><view class="content weightPages data-v-07eec542"><block wx:if="{{isConnection==0}}"><view class="title data-v-07eec542">连接中,请稍后</view></block><block wx:if="{{isConnection==1}}"><view class="title data-v-07eec542">连接成功,请开始测量</view></block><block wx:if="{{isConnection==2}}"><view data-event-opts="{{[['tap',[['openBluetoothAdapter',['$event']]]]]}}" class="title data-v-07eec542" bindtap="__e">连接失败,点击重新连接</view></block><view class="text data-v-07eec542">{{text}}</view><view class="text data-v-07eec542">{{textH}}</view><view class="image data-v-07eec542"><block wx:if="{{type==1}}"><image src="/BLEPages/static/H09B.gif" class="data-v-07eec542"></image></block><block wx:if="{{type==2}}"><image src="/BLEPages/static/H09B2.gif" class="data-v-07eec542"></image></block></view><view class="tips data-v-07eec542"><text class="data-v-07eec542">提示:</text><text class="data-v-07eec542">1.请确定设备是开机状态</text><text class="data-v-07eec542">2.请确定手机蓝牙、位置信息已打开</text><text class="data-v-07eec542">3.ios系统需打开设置—>应用—>微信里的蓝牙权限</text></view></view></view>
|
||||
<view class="data-v-41ed1fa4"><view class="content weightPages data-v-41ed1fa4"><block wx:if="{{isConnection==0}}"><view class="title data-v-41ed1fa4">连接中,请稍后</view></block><block wx:if="{{isConnection==1}}"><view class="title data-v-41ed1fa4">连接成功,请开始测量</view></block><block wx:if="{{isConnection==2}}"><view data-event-opts="{{[['tap',[['openBluetoothAdapter',['$event']]]]]}}" class="title data-v-41ed1fa4" bindtap="__e">连接失败,点击重新连接</view></block><view class="text data-v-41ed1fa4">{{text}}</view><view class="text data-v-41ed1fa4">{{textH}}</view><view class="image data-v-41ed1fa4"><block wx:if="{{type==1}}"><image src="/BLEPages/static/H09B.gif" class="data-v-41ed1fa4"></image></block><block wx:if="{{type==2}}"><image src="/BLEPages/static/H09B2.gif" class="data-v-41ed1fa4"></image></block></view><view class="tips data-v-41ed1fa4"><text class="data-v-41ed1fa4">提示:</text><text class="data-v-41ed1fa4">1.请确定设备是开机状态</text><text class="data-v-41ed1fa4">2.请确定手机蓝牙、位置信息已打开</text><text class="data-v-41ed1fa4">3.ios系统需打开设置—>应用—>微信里的蓝牙权限</text></view></view></view>
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarBackgroundColor": "#F9FAFC",
|
||||
"usingComponents": {}
|
||||
}
|
||||
|
|
@ -1 +1 @@
|
|||
<view class="data-v-ef796f16"><view class="content weightPages data-v-ef796f16"><block wx:if="{{isConnection==0}}"><view class="title data-v-ef796f16">连接中,请稍后</view></block><block wx:if="{{isConnection==1}}"><view class="title data-v-ef796f16">连接成功,请开始测量</view></block><block wx:if="{{isConnection==2}}"><view data-event-opts="{{[['tap',[['openBluetoothAdapter',['$event']]]]]}}" class="title data-v-ef796f16" bindtap="__e">连接失败,点击重新连接</view></block><view class="text data-v-ef796f16">{{text}}</view><view class="image data-v-ef796f16"><block wx:if="{{type==1}}"><image src="/BLEPages/static/Hd01bt01.gif" class="data-v-ef796f16"></image></block><block wx:if="{{type==2}}"><image src="/BLEPages/static/Hd01bt02.gif" class="data-v-ef796f16"></image></block></view><view class="tips data-v-ef796f16"><text class="data-v-ef796f16">提示:</text><text class="data-v-ef796f16">1.请确定设备是开机状态</text><text class="data-v-ef796f16">2.请确定手机蓝牙、位置信息已打开</text><text class="data-v-ef796f16">3.ios系统需打开设置—>应用—>微信里的蓝牙权限</text></view></view></view>
|
||||
<view class="data-v-42308438"><view class="content weightPages data-v-42308438"><block wx:if="{{isConnection==0}}"><view class="title data-v-42308438">连接中,请稍后</view></block><block wx:if="{{isConnection==1}}"><view class="title data-v-42308438">连接成功,请开始测量</view></block><block wx:if="{{isConnection==2}}"><view data-event-opts="{{[['tap',[['openBluetoothAdapter',['$event']]]]]}}" class="title data-v-42308438" bindtap="__e">连接失败,点击重新连接</view></block><view class="text data-v-42308438">{{text}}</view><view class="image data-v-42308438"><block wx:if="{{type==1}}"><image src="/BLEPages/static/Hd01bt01.gif" class="data-v-42308438"></image></block><block wx:if="{{type==2}}"><image src="/BLEPages/static/Hd01bt02.gif" class="data-v-42308438"></image></block></view><view class="tips data-v-42308438"><text class="data-v-42308438">提示:</text><text class="data-v-42308438">1.请确定设备是开机状态</text><text class="data-v-42308438">2.请确定手机蓝牙、位置信息已打开</text><text class="data-v-42308438">3.ios系统需打开设置—>应用—>微信里的蓝牙权限</text></view></view></view>
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarBackgroundColor": "#F9FAFC",
|
||||
"usingComponents": {}
|
||||
}
|
||||
|
|
@ -1 +1 @@
|
|||
<view class="data-v-28821ab9"><view class="content weightPages data-v-28821ab9"><block wx:if="{{isConnection==0}}"><view class="title data-v-28821ab9">连接中,请稍后</view></block><block wx:if="{{isConnection==1}}"><view class="title data-v-28821ab9">连接成功,请开始测量</view></block><block wx:if="{{isConnection==2}}"><view data-event-opts="{{[['tap',[['openBluetoothAdapter',['$event']]]]]}}" class="title data-v-28821ab9" bindtap="__e">连接失败,点击重新连接</view></block><view class="text data-v-28821ab9">{{text}}</view><view class="image data-v-28821ab9"><image src="/BLEPages/static/L01.gif" class="data-v-28821ab9"></image></view><view class="tips data-v-28821ab9"><text class="data-v-28821ab9">提示:</text><text class="data-v-28821ab9">1.请确定设备是开机状态</text><text class="data-v-28821ab9">2.请确定手机蓝牙、位置信息已打开</text><text class="data-v-28821ab9">3.ios系统需打开设置—>应用—>微信里的蓝牙权限</text></view></view></view>
|
||||
<view class="data-v-33c5474c"><view class="content weightPages data-v-33c5474c"><block wx:if="{{isConnection==0}}"><view class="title data-v-33c5474c">连接中,请稍后</view></block><block wx:if="{{isConnection==1}}"><view class="title data-v-33c5474c">连接成功,请开始测量</view></block><block wx:if="{{isConnection==2}}"><view data-event-opts="{{[['tap',[['openBluetoothAdapter',['$event']]]]]}}" class="title data-v-33c5474c" bindtap="__e">连接失败,点击重新连接</view></block><view class="text data-v-33c5474c">{{text}}</view><view class="image data-v-33c5474c"><image src="/BLEPages/static/L01.gif" class="data-v-33c5474c"></image></view><view class="tips data-v-33c5474c"><text class="data-v-33c5474c">提示:</text><text class="data-v-33c5474c">1.请确定设备是开机状态</text><text class="data-v-33c5474c">2.请确定手机蓝牙、位置信息已打开</text><text class="data-v-33c5474c">3.ios系统需打开设置—>应用—>微信里的蓝牙权限</text></view></view></view>
|
||||
|
|
@ -1,83 +1,84 @@
|
|||
{
|
||||
"pages": [
|
||||
"pages/index/index",
|
||||
"pages/target/target",
|
||||
"pages/compk/compk",
|
||||
"pages/me/me",
|
||||
"pages/index/active",
|
||||
"pages/search/devType"
|
||||
],
|
||||
"subPackages": [
|
||||
{
|
||||
"root": "pageTwo",
|
||||
"pages": [
|
||||
"login/login",
|
||||
"login/detail",
|
||||
"login/userinfo",
|
||||
"home/index",
|
||||
"compk/pkdetail",
|
||||
"me/history",
|
||||
"me/feedBack",
|
||||
"me/manage",
|
||||
"me/adduser",
|
||||
"me/detail",
|
||||
"me/info",
|
||||
"survey/survey"
|
||||
]
|
||||
"pages": [
|
||||
"pages/index/index",
|
||||
"pages/target/target",
|
||||
"pages/compk/compk",
|
||||
"pages/me/me",
|
||||
"pages/index/active",
|
||||
"pages/search/devType"
|
||||
],
|
||||
"subPackages": [
|
||||
{
|
||||
"root": "pageTwo",
|
||||
"pages": [
|
||||
"login/login",
|
||||
"login/detail",
|
||||
"login/userinfo",
|
||||
"compk/pkdetail",
|
||||
"me/history",
|
||||
"me/feedBack",
|
||||
"me/manage",
|
||||
"me/adduser",
|
||||
"me/detail",
|
||||
"me/info",
|
||||
"survey/survey",
|
||||
"zixun/detail"
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "BLEPages",
|
||||
"pages": [
|
||||
"adult/H01pro",
|
||||
"adult/PCD01pro",
|
||||
"adult/PCL01",
|
||||
"adult/H09B",
|
||||
"adult/F01B",
|
||||
"adult/F01PRO"
|
||||
]
|
||||
}
|
||||
],
|
||||
"window": {
|
||||
"navigationBarTextStyle": "white",
|
||||
"navigationBarBackgroundColor": "#F9FAFC",
|
||||
"backgroundColor": "#fff"
|
||||
},
|
||||
{
|
||||
"root": "BLEPages",
|
||||
"pages": [
|
||||
"adult/H01pro",
|
||||
"adult/PCD01pro",
|
||||
"adult/PCL01",
|
||||
"adult/H09B",
|
||||
"adult/F01B"
|
||||
]
|
||||
}
|
||||
],
|
||||
"window": {
|
||||
"navigationBarTextStyle": "white",
|
||||
"navigationBarBackgroundColor": "#00c6c6",
|
||||
"backgroundColor": "#fff"
|
||||
},
|
||||
"tabBar": {
|
||||
"color": "#333",
|
||||
"selectedColor": "#00c6c6",
|
||||
"backgroundColor": "#fff",
|
||||
"list": [
|
||||
{
|
||||
"pagePath": "pages/index/index",
|
||||
"iconPath": "static/tab_sy.png",
|
||||
"selectedIconPath": "static/tab_sy01.png",
|
||||
"text": "首页"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/target/target",
|
||||
"iconPath": "static/tab_sj.png",
|
||||
"selectedIconPath": "static/tab_sj01.png",
|
||||
"text": "目标"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/compk/compk",
|
||||
"iconPath": "static/tab_db.png",
|
||||
"selectedIconPath": "static/tab_db01.png",
|
||||
"text": "对比"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/me/me",
|
||||
"iconPath": "static/tab_me.png",
|
||||
"selectedIconPath": "static/tab_me01.png",
|
||||
"text": "我的"
|
||||
}
|
||||
]
|
||||
},
|
||||
"plugins": {
|
||||
"sdkPlugin": {
|
||||
"version": "2.1.0",
|
||||
"provider": "wx17e93aad47cdae1a"
|
||||
}
|
||||
},
|
||||
"usingComponents": {},
|
||||
"sitemapLocation": "sitemap.json"
|
||||
"tabBar": {
|
||||
"color": "#333",
|
||||
"selectedColor": "#00c6c6",
|
||||
"backgroundColor": "#fff",
|
||||
"list": [
|
||||
{
|
||||
"pagePath": "pages/index/index",
|
||||
"iconPath": "static/tab_sy.png",
|
||||
"selectedIconPath": "static/tab_sy01.png",
|
||||
"text": "首页"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/target/target",
|
||||
"iconPath": "static/tab_sj.png",
|
||||
"selectedIconPath": "static/tab_sj01.png",
|
||||
"text": "目标"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/compk/compk",
|
||||
"iconPath": "static/tab_db.png",
|
||||
"selectedIconPath": "static/tab_db01.png",
|
||||
"text": "对比"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/me/me",
|
||||
"iconPath": "static/tab_me.png",
|
||||
"selectedIconPath": "static/tab_me01.png",
|
||||
"text": "我的"
|
||||
}
|
||||
]
|
||||
},
|
||||
"plugins": {
|
||||
"sdkPlugin": {
|
||||
"version": "2.1.0",
|
||||
"provider": "wx17e93aad47cdae1a"
|
||||
}
|
||||
},
|
||||
"usingComponents": {},
|
||||
"sitemapLocation": "sitemap.json"
|
||||
}
|
||||
|
|
@ -1 +1 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/main"],{"2aac":function(e,t,o){"use strict";(function(e){o("0d2f");var t=i(o("66fd")),n=i(o("f6f1"));o("8076"),o("c447"),o("26a3"),o("faa6");var r=i(o("02d4")),a=i(o("d4ce")),u=i(o("2a8e")),c=i(o("a275")),f=i(o("8196")),l=i(o("38df"));function i(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function p(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?d(Object(o),!0).forEach((function(t){s(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):d(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function s(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}wx.__webpack_require_UNI_MP_PLUGIN__=o,t.default.prototype.$store=r.default,t.default.prototype.$tools=a.default,t.default.prototype.weightInfo=u.default,t.default.prototype.$http=c.default,t.default.prototype.$model=f.default,t.default.prototype.config=l.default,t.default.config.productionTip=!1,n.default.mpType="app",t.default.prototype.$onLaunched=new Promise((function(e){t.default.prototype.$isResolve=e}));var b=new t.default(p({},n.default));e(b).$mount()}).call(this,o("543d")["createApp"])},b97b:function(e,t,o){"use strict";o.r(t);var n=o("d14b"),r=o.n(n);for(var a in n)"default"!==a&&function(e){o.d(t,e,(function(){return n[e]}))}(a);t["default"]=r.a},d14b:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={methods:{},onLaunch:function(){var e=wx.getUpdateManager();e.onCheckForUpdate((function(e){console.log("是否有新版本",e.hasUpdate)})),e.onUpdateReady((function(){wx.showModal({title:"更新提示",content:"新版本已经准备好,是否重启应用?",success:function(t){t.confirm&&e.applyUpdate()}})})),e.onUpdateFailed((function(){wx.showModal({title:"新版本更新失败",content:"请退出并移除小程序,重新打开..."})}))},mounted:function(){},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")}};t.default=n},f6f1:function(e,t,o){"use strict";o.r(t);var n=o("b97b");for(var r in n)"default"!==r&&function(e){o.d(t,e,(function(){return n[e]}))}(r);var a,u,c,f,l=o("f0c5"),i=Object(l["a"])(n["default"],a,u,!1,null,null,null,!1,c,f);t["default"]=i.exports}},[["2aac","common/runtime","common/vendor"]]]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/main"],{7364:function(e,t,o){"use strict";o.r(t);var n=o("ff3b");for(var r in n)"default"!==r&&function(e){o.d(t,e,(function(){return n[e]}))}(r);var c,u,a,f,i=o("f0c5"),l=Object(i["a"])(n["default"],c,u,!1,null,null,null,!1,a,f);t["default"]=l.exports},b242:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o("26cb");function r(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function c(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?r(Object(o),!0).forEach((function(t){u(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function u(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var a={methods:{},computed:c({},(0,n.mapState)(["appTheme"])),onLaunch:function(){var e=wx.getUpdateManager();e.onCheckForUpdate((function(e){console.log("是否有新版本",e.hasUpdate)})),e.onUpdateReady((function(){wx.showModal({title:"更新提示",content:"新版本已经准备好,是否重启应用?",success:function(t){t.confirm&&e.applyUpdate()}})})),e.onUpdateFailed((function(){wx.showModal({title:"新版本更新失败",content:"请退出并移除小程序,重新打开..."})}))},mounted:function(){},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")}};t.default=a},e6da:function(e,t,o){"use strict";(function(e){o("e568");var t=l(o("66fd")),n=l(o("7364"));o("ecf1"),o("e7e2"),o("c443"),o("a506");var r=l(o("02ea")),c=l(o("e106")),u=l(o("851d")),a=l(o("ffc5")),f=l(o("3fb0")),i=l(o("d3fa"));function l(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function d(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?p(Object(o),!0).forEach((function(t){s(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):p(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function s(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}wx.__webpack_require_UNI_MP_PLUGIN__=o,t.default.prototype.$store=r.default,t.default.prototype.$tools=c.default,t.default.prototype.weightInfo=u.default,t.default.prototype.$http=a.default,t.default.prototype.$model=f.default,t.default.prototype.config=i.default,console.log("uni.setStorageSync",r.default),t.default.config.productionTip=!1,n.default.mpType="app",t.default.prototype.$onLaunched=new Promise((function(e){t.default.prototype.$isResolve=e}));var b=new t.default(d({},n.default));e(b).$mount()}).call(this,o("543d")["createApp"])},ff3b:function(e,t,o){"use strict";o.r(t);var n=o("b242"),r=o.n(n);for(var c in n)"default"!==c&&function(e){o.d(t,e,(function(){return n[e]}))}(c);t["default"]=r.a}},[["e6da","common/runtime","common/vendor"]]]);
|
||||
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
|
|
@ -1,9 +1,9 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/drawer/drawer"],{"2ae8":function(t,e,r){"use strict";r.r(e);var n=r("8e7f"),i=r("f0dc");for(var a in i)"default"!==a&&function(t){r.d(e,t,(function(){return i[t]}))}(a);r("2d29");var c,o=r("f0c5"),u=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"3689fbae",null,!1,n["a"],c);e["default"]=u.exports},"2d29":function(t,e,r){"use strict";var n=r("d83f"),i=r.n(n);i.a},"59ac":function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r("26cb");function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function c(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o={data:function(){return{}},computed:a(a({},(0,n.mapState)(["user","familayList","isDrawe"])),{},{userinfo:function(){return this.user},List:function(){return this.familayList}}),methods:{toggle:function(e){var r=this;t.setStorageSync("familyid",e.familyid),r.$store.dispatch("getResult",{birthday:e.birthday,familyid:e.familyid,height:e.height,sex:e.sex}),r.$store.dispatch("getUserInfo",{familyid:e.familyid}),r.$store.commit("changeDrawe",!1)},addInfo:function(e){t.navigateTo({url:"/pageTwo/me/adduser?type="+e})},clear:function(){this.$store.commit("changeDrawe",!1)}}};e.default=o}).call(this,r("543d")["default"])},"8e7f":function(t,e,r){"use strict";var n;r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement;t._self._c},a=[]},d83f:function(t,e,r){},f0dc:function(t,e,r){"use strict";r.r(e);var n=r("59ac"),i=r.n(n);for(var a in n)"default"!==a&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/drawer/drawer"],{"33dc":function(t,e,r){"use strict";r.r(e);var n=r("8151"),i=r.n(n);for(var c in n)"default"!==c&&function(t){r.d(e,t,(function(){return n[t]}))}(c);e["default"]=i.a},6300:function(t,e,r){},"6fc6":function(t,e,r){"use strict";var n;r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return c})),r.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement;t._self._c},c=[]},8151:function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r("26cb");function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o={data:function(){return{}},computed:c(c({},(0,n.mapState)(["user","familayList","isDrawe","appTheme"])),{},{userinfo:function(){return this.user},List:function(){return this.familayList}}),methods:{toggle:function(e){var r=this;t.setStorageSync("familyid",e.familyid),r.$store.dispatch("getResult",{birthday:e.birthday,familyid:e.familyid,height:e.height,sex:e.sex}),r.$store.dispatch("getUserInfo",{familyid:e.familyid}),r.$store.commit("changeDrawe",!1)},addInfo:function(e){t.navigateTo({url:"/pageTwo/me/adduser?type="+e})},clear:function(){this.$store.commit("changeDrawe",!1)}}};e.default=o}).call(this,r("543d")["default"])},"862c":function(t,e,r){"use strict";var n=r("6300"),i=r.n(n);i.a},e76e:function(t,e,r){"use strict";r.r(e);var n=r("6fc6"),i=r("33dc");for(var c in i)"default"!==c&&function(t){r.d(e,t,(function(){return i[t]}))}(c);r("862c");var a,o=r("f0c5"),u=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"66b9de77",null,!1,n["a"],a);e["default"]=u.exports}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/drawer/drawer-create-component',
|
||||
{
|
||||
'components/drawer/drawer-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("2ae8"))
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("e76e"))
|
||||
})
|
||||
},
|
||||
[['components/drawer/drawer-create-component']]
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
<view class="data-v-3689fbae"><block wx:if="{{isDrawe}}"><view class="wrapper data-v-3689fbae"><view data-event-opts="{{[['tap',[['clear',['$event']]]]]}}" class="bg data-v-3689fbae" bindtap="__e"></view><view class="wrapper_box data-v-3689fbae"><view class="top data-v-3689fbae"><block wx:if="{{userinfo.headimg}}"><image class="headimage mt-10 data-v-3689fbae" src="{{userinfo.headimg}}"></image></block><view class="overflow data-v-3689fbae">{{userinfo.nickname||userinfo.name}}</view></view><view class="drawerList data-v-3689fbae"><block wx:if="{{List.length}}"><view class="data-v-3689fbae"><block wx:for="{{List}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toggle',['$0'],[[['List','',index]]]]]]]}}" class="drawerList_item data-v-3689fbae" bindtap="__e"><block wx:if="{{item.headimg}}"><image class="image1 data-v-3689fbae" src="{{item.headimg}}"></image></block><view class="right data-v-3689fbae"><view class="name data-v-3689fbae"><view class="overflow data-v-3689fbae">{{''+item.name+''}}</view><block wx:if="{{item.id==userinfo.familyid}}"><view class="dangqian data-v-3689fbae">当前</view></block></view><view class="info data-v-3689fbae"><view class="data-v-3689fbae">{{item.mage}}</view><view class="data-v-3689fbae">{{item.sex==0?'未知':item.sex==1?'男':'女'}}</view><view class="data-v-3689fbae">{{item.type}}</view></view></view></view></block></view></block><view class="add data-v-3689fbae"><view data-event-opts="{{[['tap',[['addInfo',['add']]]]]}}" bindtap="__e" class="data-v-3689fbae">+</view></view></view></view></view></block></view>
|
||||
<view class="data-v-66b9de77"><block wx:if="{{isDrawe}}"><view class="wrapper data-v-66b9de77"><view data-event-opts="{{[['tap',[['clear',['$event']]]]]}}" class="bg data-v-66b9de77" bindtap="__e"></view><view class="wrapper_box data-v-66b9de77"><view class="top data-v-66b9de77" style="{{'background:'+(appTheme)+';'}}"><block wx:if="{{userinfo.headimg}}"><image class="headimage mt-10 data-v-66b9de77" src="{{userinfo.headimg}}"></image></block><view class="overflow data-v-66b9de77">{{userinfo.nickname||userinfo.name}}</view></view><view class="drawerList data-v-66b9de77"><block wx:if="{{List.length}}"><view class="data-v-66b9de77"><block wx:for="{{List}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toggle',['$0'],[[['List','',index]]]]]]]}}" class="drawerList_item data-v-66b9de77" bindtap="__e"><block wx:if="{{item.headimg}}"><image class="image1 data-v-66b9de77" src="{{item.headimg}}"></image></block><view class="right data-v-66b9de77"><view class="name data-v-66b9de77"><view class="overflow data-v-66b9de77">{{''+item.name+''}}</view><block wx:if="{{item.id==userinfo.familyid}}"><view class="dangqian data-v-66b9de77">当前</view></block></view><view class="info data-v-66b9de77"><view class="data-v-66b9de77">{{item.mage}}</view><view class="data-v-66b9de77">{{item.sex==0?'未知':item.sex==1?'男':'女'}}</view><view class="data-v-66b9de77">{{item.type}}</view></view></view></view></block></view></block><view class="add data-v-66b9de77"><view data-event-opts="{{[['tap',[['addInfo',['add']]]]]}}" bindtap="__e" class="data-v-66b9de77">+</view></view></view></view></view></block></view>
|
||||
|
|
@ -1 +1 @@
|
|||
.wrapper.data-v-3689fbae{position:fixed;left:0;right:0;top:0;bottom:0;z-index:999}.bg.data-v-3689fbae{position:fixed;left:0;right:0;top:0;bottom:0;height:100vh;background-color:rgba(0,0,0,.4);z-index:99}.uniDrawer.data-v-3689fbae{width:220px;background-color:#fff;z-index:1000}@-webkit-keyframes uniDrawer-data-v-3689fbae{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes uniDrawer-data-v-3689fbae{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}.list.data-v-3689fbae{position:relative;top:0;left:0;flex-direction:column;flex:1;justify-content:flex-end;margin-bottom:20rpx;width:220px;height:calc(100vh - 100px);overflow-y:scroll}.name.data-v-3689fbae{width:100%;display:flex;justify-content:space-between}.name .overflow.data-v-3689fbae{width:60%}
|
||||
.wrapper.data-v-66b9de77{position:fixed;left:0;right:0;top:0;bottom:0;z-index:999}.bg.data-v-66b9de77{position:fixed;left:0;right:0;top:0;bottom:0;height:100vh;background-color:rgba(0,0,0,.4);z-index:99}.uniDrawer.data-v-66b9de77{width:220px;background-color:#fff;z-index:1000}@-webkit-keyframes uniDrawer-data-v-66b9de77{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes uniDrawer-data-v-66b9de77{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}.list.data-v-66b9de77{position:relative;top:0;left:0;flex-direction:column;flex:1;justify-content:flex-end;margin-bottom:20rpx;width:220px;height:calc(100vh - 100px);overflow-y:scroll}.name.data-v-66b9de77{width:100%;display:flex;justify-content:space-between}.name .overflow.data-v-66b9de77{width:60%}
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/header/head"],{"1c56":function(e,t,n){"use strict";n.r(t);var r=n("9c04"),o=n("a210");for(var c in o)"default"!==c&&function(e){n.d(t,e,(function(){return o[e]}))}(c);var u,a=n("f0c5"),i=Object(a["a"])(o["default"],r["b"],r["c"],!1,null,"61c24fe9",null,!1,r["a"],u);t["default"]=i.exports},"331c":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("26cb");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=function(){n.e("components/userLogin").then(function(){return resolve(n("b06c"))}.bind(null,n)).catch(n.oe)},i=function(){n.e("components/drawer/drawer").then(function(){return resolve(n("2ae8"))}.bind(null,n)).catch(n.oe)},l={components:{userLogin:a,leftdrawer:i},data:function(){return{devType:"",deviceId:""}},props:{token:{type:String,default:null}},computed:c({},(0,r.mapState)(["user"])),mounted:function(){},methods:{handleBluetoothClick:function(){var t=this,n=this;n.token?e.openBluetoothAdapter({success:function(t){n.$store.commit("changeBluetooth",!0),n.devType&&n.deviceId?n.$tools.handlePages(n.devType,n.deviceId):(e.navigateTo({url:"/pages/search/devType"}),console.log("初始化蓝牙成功:"+t.errMsg))},fail:function(e){return console.log("初始化蓝牙失败:"+e.errMsg),t.$tools.getBluetoothAdapter(e)}}):n.$store.commit("changeUserLogin",!0)},handleLogin:function(){this.$store.commit("changeUserLogin",!0)},handleDrawer:function(){this.$store.commit("changeDrawe",!0)}}};t.default=l}).call(this,n("543d")["default"])},"9c04":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return r}));var o=function(){var e=this,t=e.$createElement;e._self._c},c=[]},a210:function(e,t,n){"use strict";n.r(t);var r=n("331c"),o=n.n(r);for(var c in r)"default"!==c&&function(e){n.d(t,e,(function(){return r[e]}))}(c);t["default"]=o.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/header/head-create-component',
|
||||
{
|
||||
'components/header/head-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("1c56"))
|
||||
})
|
||||
},
|
||||
[['components/header/head-create-component']]
|
||||
]);
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"user-login": "/components/userLogin",
|
||||
"leftdrawer": "/components/drawer/drawer"
|
||||
}
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
<view class="data-v-61c24fe9"><view class="header-con data-v-61c24fe9"><block wx:if="{{token}}"><view class="header data-v-61c24fe9"><view class="left data-v-61c24fe9"><image class="headimage mr-10 data-v-61c24fe9" src="{{user.headimg}}" data-event-opts="{{[['tap',[['handleDrawer',['$event']]]]]}}" bindtap="__e"></image><view class="data-v-61c24fe9"><view data-event-opts="{{[['tap',[['handleDrawer',['$event']]]]]}}" class="name data-v-61c24fe9" bindtap="__e"><text class="overflow data-v-61c24fe9">{{user.name}}</text><icon class="iconfont icon-yqfqiehuan data-v-61c24fe9"></icon></view><view class="age data-v-61c24fe9"><view class="data-v-61c24fe9">{{'性别:'+(!user.sex?"未知":user.sex==1?'男':'女')+''}}</view><view class="data-v-61c24fe9">{{'年龄:'+(user.mage?user.mage:"0岁")+''}}</view></view></view></view><view data-event-opts="{{[['tap',[['handleBluetoothClick',['$event']]]]]}}" class="celiang_r data-v-61c24fe9" bindtap="__e"><icon class="t-icon t-icon-tizhongcheng data-v-61c24fe9"></icon><text class="data-v-61c24fe9">上秤测量</text></view></view></block><block wx:else><view data-event-opts="{{[['tap',[['handleLogin',['$event']]]]]}}" class="header2 data-v-61c24fe9" bindtap="__e"><view class="text data-v-61c24fe9"><text class="data-v-61c24fe9">登录</text>查看更多信息</view></view></block></view><user-login vue-id="53cc52af-1" class="data-v-61c24fe9" bind:__l="__l"></user-login><leftdrawer vue-id="53cc52af-2" class="data-v-61c24fe9" bind:__l="__l"></leftdrawer></view>
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/mark-slide-list/mark-slide-list"],{"302f":function(t,i,e){"use strict";e.r(i);var n=e("a0a2"),s=e("868c");for(var a in s)"default"!==a&&function(t){e.d(i,t,(function(){return s[t]}))}(a);e("752b");var r,l=e("f0c5"),o=Object(l["a"])(s["default"],n["b"],n["c"],!1,null,"328b2d5e",null,!1,n["a"],r);i["default"]=o.exports},"752b":function(t,i,e){"use strict";var n=e("d54b"),s=e.n(n);s.a},"868c":function(t,i,e){"use strict";e.r(i);var n=e("8713"),s=e.n(n);for(var a in n)"default"!==a&&function(t){e.d(i,t,(function(){return n[t]}))}(a);i["default"]=s.a},8713:function(t,i,e){"use strict";(function(t){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e={name:"mark-slide-list",props:{list:{type:Array,default:function(){return[]}},button:{type:Array,default:function(){return[{title:"删除",background:"#ff3b32"}]}},border:{type:Boolean,default:!1},type:{type:String,default:null},id:{type:String,default:null}},computed:{windowWidth:function(){return t.getSystemInfoSync().windowWidth}},data:function(){return{listData:[],start_slide_x:0,btnWidth:0,startX:0,LastX:0,startTime:0,itemIndex:0}},mounted:function(){this.listData=this.clone(this.list)},watch:{list:{handler:function(t,i){this.listData=this.clone(this.list)},deep:!0}},methods:{clone:function(t){var i,e=typeof t;if("array"===e)i=[];else{if("object"!==e)return t;i={}}if("array"===e)for(var n=0,s=t.length;n<s;n++)i.push(this.clone(t[n]));else if("object"===e)for(var a in t)i[a]=this.clone(t[a]);return i},touchStart:function(i,e){var n=this;for(var s in this.itemIndex==e&&(this.itemIndex=e),this.startTime=i.timeStamp,this.start_slide_x=this.listData[e].slide_x,t.createSelectorQuery().in(this).selectAll(".group-btn").boundingClientRect((function(t){null!=t&&(n.btnWidth=-1*t[e].width)})).exec(),this.startX=i.touches[0].pageX,this.lastX=this.startX,this.listData)e!=s&&(this.listData[s].slide_x=0)},touchMove:function(t,i){var e=t.touches[0].pageX,n=e-this.lastX,s=this.listData[i].slide_x+n;s<=0&&s>=this.btnWidth&&(this.listData[i].slide_x=s),this.lastX=e},touchEnd:function(t,i){var e=10,n=t.timeStamp,s=this.startX-this.lastX;Math.abs(n-this.startTime)>200&&(e=this.btnWidth/-2),this.listData[i].slide_x=s>e?this.btnWidth:s<-1*e?0:this.start_slide_x},recover:function(t){this.listData[t].slide_x=0},clickMethod:function(t){1!=this.list.length?this.$emit("changeDelete",t):this.$tools.msg("只剩一条记录了,不可以删除!")},clickItemMethod:function(i){1==this.type&&t.navigateTo({url:"/pageTwo/me/info?index="+JSON.stringify(i)})}}};i.default=e}).call(this,e("543d")["default"])},a0a2:function(t,i,e){"use strict";var n;e.d(i,"b",(function(){return s})),e.d(i,"c",(function(){return a})),e.d(i,"a",(function(){return n}));var s=function(){var t=this,i=t.$createElement;t._self._c},a=[]},d54b:function(t,i,e){}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/mark-slide-list/mark-slide-list"],{1344:function(t,i,e){"use strict";var n=e("bd3e"),s=e.n(n);s.a},bb03:function(t,i,e){"use strict";(function(t){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e={name:"mark-slide-list",props:{list:{type:Array,default:function(){return[]}},button:{type:Array,default:function(){return[{title:"删除",background:"#ff3b32"}]}},border:{type:Boolean,default:!1},type:{type:String,default:null},id:{type:String,default:null}},computed:{windowWidth:function(){return t.getSystemInfoSync().windowWidth}},data:function(){return{listData:[],start_slide_x:0,btnWidth:0,startX:0,LastX:0,startTime:0,itemIndex:0}},mounted:function(){this.listData=this.clone(this.list)},watch:{list:{handler:function(t,i){this.listData=this.clone(this.list)},deep:!0}},methods:{clone:function(t){var i,e=typeof t;if("array"===e)i=[];else{if("object"!==e)return t;i={}}if("array"===e)for(var n=0,s=t.length;n<s;n++)i.push(this.clone(t[n]));else if("object"===e)for(var a in t)i[a]=this.clone(t[a]);return i},touchStart:function(i,e){var n=this;for(var s in this.itemIndex==e&&(this.itemIndex=e),this.startTime=i.timeStamp,this.start_slide_x=this.listData[e].slide_x,t.createSelectorQuery().in(this).selectAll(".group-btn").boundingClientRect((function(t){null!=t&&(n.btnWidth=-1*t[e].width)})).exec(),this.startX=i.touches[0].pageX,this.lastX=this.startX,this.listData)e!=s&&(this.listData[s].slide_x=0)},touchMove:function(t,i){var e=t.touches[0].pageX,n=e-this.lastX,s=this.listData[i].slide_x+n;s<=0&&s>=this.btnWidth&&(this.listData[i].slide_x=s),this.lastX=e},touchEnd:function(t,i){var e=10,n=t.timeStamp,s=this.startX-this.lastX;Math.abs(n-this.startTime)>200&&(e=this.btnWidth/-2),this.listData[i].slide_x=s>e?this.btnWidth:s<-1*e?0:this.start_slide_x},recover:function(t){this.listData[t].slide_x=0},clickMethod:function(t){1!=this.list.length?this.$emit("changeDelete",t):this.$tools.msg("只剩一条记录了,不可以删除!")},clickItemMethod:function(i){t.navigateTo({url:"/pageTwo/me/info?index="+JSON.stringify(i)})}}};i.default=e}).call(this,e("543d")["default"])},bd3e:function(t,i,e){},c44f:function(t,i,e){"use strict";e.r(i);var n=e("f744"),s=e("d1ff");for(var a in s)"default"!==a&&function(t){e.d(i,t,(function(){return s[t]}))}(a);e("1344");var r,l=e("f0c5"),o=Object(l["a"])(s["default"],n["b"],n["c"],!1,null,"7b0b3708",null,!1,n["a"],r);i["default"]=o.exports},d1ff:function(t,i,e){"use strict";e.r(i);var n=e("bb03"),s=e.n(n);for(var a in n)"default"!==a&&function(t){e.d(i,t,(function(){return n[t]}))}(a);i["default"]=s.a},f744:function(t,i,e){"use strict";var n;e.d(i,"b",(function(){return s})),e.d(i,"c",(function(){return a})),e.d(i,"a",(function(){return n}));var s=function(){var t=this,i=t.$createElement;t._self._c},a=[]}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/mark-slide-list/mark-slide-list-create-component',
|
||||
{
|
||||
'components/mark-slide-list/mark-slide-list-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("302f"))
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("c44f"))
|
||||
})
|
||||
},
|
||||
[['components/mark-slide-list/mark-slide-list-create-component']]
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
<view class="container data-v-328b2d5e"><block wx:for="{{listData}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="slide-box data-v-328b2d5e"><view data-event-opts="{{[['touchstart',[['touchStart',['$event',index]]]],['touchend',[['touchEnd',['$event',index]]]],['touchmove',[['touchMove',['$event',index]]]],['tap',[['recover',[index]]]]]}}" class="slide-list data-v-328b2d5e" style="{{'transform:'+('translate3d('+item.slide_x+'px, 0, 0)')+';'}}" bindtouchstart="__e" bindtouchend="__e" bindtouchmove="__e" bindtap="__e"><view class="now-message-info data-v-328b2d5e" style="{{'width:'+(windowWidth+'px')+';'}}" hover-class="uni-item--hover" data-event-opts="{{[['tap',[['clickItemMethod',['$0'],[[['listData','',index]]]]]]]}}" bindtap="__e"><view class="list data-v-328b2d5e"><view class="{{['item','data-v-328b2d5e',type!=1?'leftChild':'']}}"><view class="time data-v-328b2d5e"><icon class="t-icon t-icon-shijian-mianxing-0 data-v-328b2d5e"></icon><text class="data-v-328b2d5e">{{item.createtime}}</text></view><block wx:if="{{type!=1}}"><view class="data-v-328b2d5e">{{item.height}}<text class="data-v-328b2d5e">身高</text></view></block><view class="data-v-328b2d5e">{{item.weight}}<text class="data-v-328b2d5e">体重</text></view><view class="data-v-328b2d5e">{{item.bmi}}<text class="data-v-328b2d5e">BMI</text></view><block wx:if="{{type==1}}"><view class="data-v-328b2d5e">{{item.fat_r}}<text class="data-v-328b2d5e">脂肪率</text></view></block><block wx:if="{{type==1}}"><icon class="iconfont icon-arrow-right data-v-328b2d5e"></icon></block></view></view></view><view class="group-btn data-v-328b2d5e"><block wx:for="{{button}}" wx:for-item="value" wx:for-index="key" wx:key="key"><view data-event-opts="{{[['tap',[['clickMethod',['$0'],[[['listData','',index]]]]]]]}}" class="btn-div data-v-328b2d5e" style="{{'background:'+(value.background)+';'}}" bindtap="__e">{{''+value.title+''}}</view></block></view><view style="clear:both;" class="data-v-328b2d5e"></view></view><block wx:if="{{border}}"><view class="list-item-border data-v-328b2d5e"></view></block></view></block></view>
|
||||
<view class="container data-v-7b0b3708"><block wx:for="{{listData}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="slide-box data-v-7b0b3708"><view data-event-opts="{{[['touchstart',[['touchStart',['$event',index]]]],['touchend',[['touchEnd',['$event',index]]]],['touchmove',[['touchMove',['$event',index]]]],['tap',[['recover',[index]]]]]}}" class="slide-list data-v-7b0b3708" style="{{'transform:'+('translate3d('+item.slide_x+'px, 0, 0)')+';'}}" bindtouchstart="__e" bindtouchend="__e" bindtouchmove="__e" bindtap="__e"><view class="now-message-info data-v-7b0b3708" style="{{'width:'+(windowWidth+'px')+';'}}" hover-class="uni-item--hover" data-event-opts="{{[['tap',[['clickItemMethod',['$0'],[[['listData','',index]]]]]]]}}" bindtap="__e"><view class="list data-v-7b0b3708"><view class="{{['item','data-v-7b0b3708',type!=1?'leftChild':'']}}"><view class="time data-v-7b0b3708"><icon class="t-icon t-icon-shijian-mianxing-0 data-v-7b0b3708"></icon><text class="data-v-7b0b3708">{{item.createtime}}</text></view><view class="data-v-7b0b3708">{{item.weight}}<text class="data-v-7b0b3708">体重</text></view><view class="data-v-7b0b3708">{{item.bmi}}<text class="data-v-7b0b3708">BMI</text></view><view class="data-v-7b0b3708">{{item.fat_r}}<text class="data-v-7b0b3708">脂肪率</text></view><icon class="iconfont icon-arrow-right data-v-7b0b3708"></icon></view></view></view><view class="group-btn data-v-7b0b3708"><block wx:for="{{button}}" wx:for-item="value" wx:for-index="key" wx:key="key"><view data-event-opts="{{[['tap',[['clickMethod',['$0'],[[['listData','',index]]]]]]]}}" class="btn-div data-v-7b0b3708" style="{{'background:'+(value.background)+';'}}" bindtap="__e">{{''+value.title+''}}</view></block></view><view style="clear:both;" class="data-v-7b0b3708"></view></view><block wx:if="{{border}}"><view class="list-item-border data-v-7b0b3708"></view></block></view></block></view>
|
||||
|
|
@ -1 +1 @@
|
|||
.container .slide-box.data-v-328b2d5e{width:100%;overflow:hidden}.container .slide-box .list-item-border.data-v-328b2d5e{width:100%}.container .slide-box .slide-list.data-v-328b2d5e{transition:all .1s;transition-timing-function:ease-out;min-width:200%}.container .slide-box .slide-list .now-message-info.data-v-328b2d5e{position:relative;box-sizing:border-box;display:flex;align-items:center;font-size:16px;clear:both;padding:0 30rpx;background:#f7f7f7;float:left}.container .slide-box .slide-list .now-message-info .icon-image.data-v-328b2d5e{border-radius:10rpx;width:100rpx;height:100rpx;float:left}.container .slide-box .slide-list .now-message-info .icon-circle.data-v-328b2d5e{background:#3396fb;border-radius:100%;width:100rpx;height:100rpx;line-height:100rpx;text-align:center;color:#fff;font-weight:700;font-size:20px;float:left}.container .slide-box .slide-list .now-message-info .list-right.data-v-328b2d5e{float:left;margin-left:25rpx;margin-right:30rpx}.container .slide-box .slide-list .now-message-info .list-right .list-title.data-v-328b2d5e{width:350rpx;line-height:1.5;overflow:hidden;margin-bottom:10rpx;color:#333;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.container .slide-box .slide-list .now-message-info .list-right .list-detail.data-v-328b2d5e{width:350rpx;font-size:14px;color:#a9a9a9;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.container .slide-box .slide-list .now-message-info .list-right-1.data-v-328b2d5e{float:right;position:absolute;right:30rpx;color:#a9a9a9}.container .slide-box .slide-list .group-btn.data-v-328b2d5e{float:left;display:flex;flex-direction:row;min-width:100rpx;align-items:center;margin-top:6rpx}.container .slide-box .slide-list .group-btn .btn-div.data-v-328b2d5e{height:100rpx;color:#fff;text-align:center;padding:0 50rpx;font-size:34rpx;line-height:100rpx;border-radius:5px 0 0 5px}.container .slide-box .slide-list .group-btn .top.data-v-328b2d5e{background-color:#c4c7cd}.container .slide-box .slide-list .group-btn .removeM.data-v-328b2d5e{background-color:#ff3b32}.leftChild view.data-v-328b2d5e{width:18%}.leftChild .time.data-v-328b2d5e{width:32%!important}
|
||||
.container .slide-box.data-v-7b0b3708{width:100%;overflow:hidden}.container .slide-box .list-item-border.data-v-7b0b3708{width:100%}.container .slide-box .slide-list.data-v-7b0b3708{transition:all .1s;transition-timing-function:ease-out;min-width:200%}.container .slide-box .slide-list .now-message-info.data-v-7b0b3708{position:relative;box-sizing:border-box;display:flex;align-items:center;font-size:16px;clear:both;padding:0 30rpx;background:#f7f7f7;float:left}.container .slide-box .slide-list .now-message-info .icon-image.data-v-7b0b3708{border-radius:10rpx;width:100rpx;height:100rpx;float:left}.container .slide-box .slide-list .now-message-info .icon-circle.data-v-7b0b3708{background:#3396fb;border-radius:100%;width:100rpx;height:100rpx;line-height:100rpx;text-align:center;color:#fff;font-weight:700;font-size:20px;float:left}.container .slide-box .slide-list .now-message-info .list-right.data-v-7b0b3708{float:left;margin-left:25rpx;margin-right:30rpx}.container .slide-box .slide-list .now-message-info .list-right .list-title.data-v-7b0b3708{width:350rpx;line-height:1.5;overflow:hidden;margin-bottom:10rpx;color:#333;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.container .slide-box .slide-list .now-message-info .list-right .list-detail.data-v-7b0b3708{width:350rpx;font-size:14px;color:#a9a9a9;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.container .slide-box .slide-list .now-message-info .list-right-1.data-v-7b0b3708{float:right;position:absolute;right:30rpx;color:#a9a9a9}.container .slide-box .slide-list .group-btn.data-v-7b0b3708{float:left;display:flex;flex-direction:row;min-width:100rpx;align-items:center;margin-top:6rpx}.container .slide-box .slide-list .group-btn .btn-div.data-v-7b0b3708{height:100rpx;color:#fff;text-align:center;padding:0 50rpx;font-size:34rpx;line-height:100rpx;border-radius:5px 0 0 5px}.container .slide-box .slide-list .group-btn .top.data-v-7b0b3708{background-color:#c4c7cd}.container .slide-box .slide-list .group-btn .removeM.data-v-7b0b3708{background-color:#ff3b32}.leftChild view.data-v-7b0b3708{width:18%}.leftChild .time.data-v-7b0b3708{width:32%!important}
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/ren-calendar/ren-calendar"],{"1ad8":function(t,e,n){"use strict";n.r(e);var a=n("502b"),o=n("c13a");for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);n("c77c");var i,s=n("f0c5"),c=Object(s["a"])(o["default"],a["b"],a["c"],!1,null,"e1d267b8",null,!1,a["a"],i);e["default"]=c.exports},"502b":function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a}));var o=function(){var t=this,e=t.$createElement,n=(t._self._c,t.formatNum(t.m)),a=t.__map(t.dates,(function(e,n){var a=t.__get_orig(e),o=t.isToday(e.year,e.month,e.date),r=t.isWorkDay(e.year,e.month,e.date),i=Number(e.date),s=t.isMarkDay(e.year,e.month,e.date)&&e.isCurM;return{$orig:a,m1:o,m2:r,m3:i,m4:s}}));t.$mp.data=Object.assign({},{$root:{m0:n,l0:a}})},r=[]},"735f":function(t,e,n){},c13a:function(t,e,n){"use strict";n.r(e);var a=n("cdfb"),o=n.n(a);for(var r in a)"default"!==r&&function(t){n.d(e,t,(function(){return a[t]}))}(r);e["default"]=o.a},c77c:function(t,e,n){"use strict";var a=n("735f"),o=n.n(a);o.a},cdfb:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"ren-calendar",props:{weekstart:{type:Number,default:0},markDays:{type:Array,default:function(){return[]}},headerBar:{type:Boolean,default:!0},open:{type:Boolean,default:!0},collapsible:{type:Boolean,default:!0},disabledAfter:{type:Boolean,default:!0}},data:function(){return{weektext:["日","一","二","三","四","五","六"],y:(new Date).getFullYear(),m:(new Date).getMonth()+1,dates:[],positionTop:0,monthOpen:!0,choose:"",month:null}},created:function(){this.dates=this.monthDay(this.y,this.m),!this.open&&this.toggle()},mounted:function(){this.y=(new Date).getFullYear(),this.m=(new Date).getMonth()+1,this.month=this.$tools.getDate("m"),this.choose=this.getToday().date},computed:{weekDay:function(){return this.weektext.slice(this.weekstart).concat(this.weektext.slice(0,this.weekstart))},height:function(){return this.dates.length/7*80+"rpx"}},methods:{formatNum:function(t){var e=Number(t);return e<10?"0"+e:e},getToday:function(){var t=new Date,e=t.getFullYear(),n=t.getMonth(),a=t.getDate(),o=(new Date).getDay(),r=["日","一","二","三","四","五","六"],i="星期"+r[o],s={date:e+"-"+this.formatNum(n+1)+"-"+this.formatNum(a),week:i};return s},monthDay:function(t,e){var n=[],a=Number(e),o=new Date(t,a-1,1).getDay(),r=new Date(t,a,0).getDate(),i=new Date(t,a-1,0).getDate(),s=7==this.weekstart?0:this.weekstart,c=function(){return o==s?0:o>s?o-s:7-s+o}(),h=7-(c+r)%7;7==h&&(h=0);for(var u=1;u<=c;u++)n.push({date:this.formatNum(i-c+u),day:s+u-1||7,month:a-1>=0?this.formatNum(a-1):12,year:a-1>=0?t:t-1});for(var m=1;m<=r;m++)n.push({date:this.formatNum(m),day:m%7+o-1||7,month:this.formatNum(a),year:t,isCurM:!0});for(var f=1;f<=h;f++)n.push({date:this.formatNum(f),day:(r+c+s+f-1)%7||7,month:a+1<=11?this.formatNum(a+1):0,year:a+1<=11?t:t+1});return n},isWorkDay:function(t,e,n){var a="".concat(t,"/").concat(e,"/").concat(n),o=new Date(a.replace(/-/g,"/")),r=o.getDay();return 0!=r&&6!=r},isFutureDay:function(t,e,n){var a="".concat(t,"/").concat(e,"/").concat(n),o=new Date(a.replace(/-/g,"/")),r=o.getTime(),i=(new Date).getTime();return r>i},isMarkDay:function(t,e,n){for(var a=!1,o=0;o<this.markDays.length;o++){var r="".concat(t,"-").concat(e,"-").concat(n);if(this.markDays[o]==r){a=!0;break}}return a},isToday:function(t,e,n){var a=t+"-"+e+"-"+n,o=this.getToday().date;return a==o},toggle:function(){var t=this;if(this.monthOpen=!this.monthOpen,this.monthOpen)this.positionTop=0;else{var e=-1;this.dates.forEach((function(n,a){t.isToday(n.year,n.month,n.date)&&(e=a)})),this.positionTop=80*-((Math.ceil((e+1)/7)||1)-1)}},selectOne:function(t,e){var n="".concat(t.year,"-").concat(t.month,"-").concat(t.date),a=new Date(n).getTime(),o=(new Date).getTime(),r=new Date(n).getDay(),i=["日","一","二","三","四","五","六"],s="星期"+i[r],c={date:n,week:s};if(!t.isCurM)return!1;if(a>o){if(this.disabledAfter)return console.log("未来日期不可选"),!1;this.choose=n,this.$emit("onDayClick",c)}else this.choose=n,this.$emit("onDayClick",c);console.log(c)},changYearMonth:function(t,e){this.dates=this.monthDay(t,e),this.y=t,this.m=e},changeMonth:function(e){var n=this;t.getStorageSync("token")?("pre"==e?(n.m+1==2?(n.m=12,n.y=n.y-1):n.m=n.m-1,n.month=this.$tools.getMonth(n.month,-1),n.$emit("onMonthClickPre",n.month)):(this.m+1==13?(this.m=1,this.y=this.y+1):this.m=this.m+1,n.month=this.$tools.getMonth(n.month,1),n.$emit("onMonthClickPre",n.month)),this.dates=this.monthDay(this.y,this.m)):this.$store.commit("changeUserLogin",!0)}}};e.default=n}).call(this,n("543d")["default"])}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/ren-calendar/ren-calendar"],{"11d7":function(t,e,n){"use strict";var a=n("7143"),o=n.n(a);o.a},2400:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"ren-calendar",props:{weekstart:{type:Number,default:0},markDays:{type:Array,default:function(){return[]}},headerBar:{type:Boolean,default:!0},open:{type:Boolean,default:!0},collapsible:{type:Boolean,default:!0},disabledAfter:{type:Boolean,default:!0}},data:function(){return{weektext:["日","一","二","三","四","五","六"],y:(new Date).getFullYear(),m:(new Date).getMonth()+1,dates:[],positionTop:0,monthOpen:!0,choose:"",month:null}},created:function(){this.dates=this.monthDay(this.y,this.m),!this.open&&this.toggle()},mounted:function(){this.y=(new Date).getFullYear(),this.m=(new Date).getMonth()+1,this.month=this.$tools.getDate("m"),this.choose=this.getToday().date},computed:{weekDay:function(){return this.weektext.slice(this.weekstart).concat(this.weektext.slice(0,this.weekstart))},height:function(){return this.dates.length/7*80+"rpx"}},methods:{formatNum:function(t){var e=Number(t);return e<10?"0"+e:e},getToday:function(){var t=new Date,e=t.getFullYear(),n=t.getMonth(),a=t.getDate(),o=(new Date).getDay(),r=["日","一","二","三","四","五","六"],i="星期"+r[o],s={date:e+"-"+this.formatNum(n+1)+"-"+this.formatNum(a),week:i};return s},monthDay:function(t,e){var n=[],a=Number(e),o=new Date(t,a-1,1).getDay(),r=new Date(t,a,0).getDate(),i=new Date(t,a-1,0).getDate(),s=7==this.weekstart?0:this.weekstart,h=function(){return o==s?0:o>s?o-s:7-s+o}(),u=7-(h+r)%7;7==u&&(u=0);for(var c=1;c<=h;c++)n.push({date:this.formatNum(i-h+c),day:s+c-1||7,month:a-1>=0?this.formatNum(a-1):12,year:a-1>=0?t:t-1});for(var m=1;m<=r;m++)n.push({date:this.formatNum(m),day:m%7+o-1||7,month:this.formatNum(a),year:t,isCurM:!0});for(var f=1;f<=u;f++)n.push({date:this.formatNum(f),day:(r+h+s+f-1)%7||7,month:a+1<=11?this.formatNum(a+1):0,year:a+1<=11?t:t+1});return n},isWorkDay:function(t,e,n){var a="".concat(t,"/").concat(e,"/").concat(n),o=new Date(a.replace(/-/g,"/")),r=o.getDay();return 0!=r&&6!=r},isFutureDay:function(t,e,n){var a="".concat(t,"/").concat(e,"/").concat(n),o=new Date(a.replace(/-/g,"/")),r=o.getTime(),i=(new Date).getTime();return r>i},isMarkDay:function(t,e,n){for(var a=!1,o=0;o<this.markDays.length;o++){var r="".concat(t,"-").concat(e,"-").concat(n);if(this.markDays[o]==r){a=!0;break}}return a},isToday:function(t,e,n){var a=t+"-"+e+"-"+n,o=this.getToday().date;return a==o},toggle:function(){var t=this;if(this.monthOpen=!this.monthOpen,this.monthOpen)this.positionTop=0;else{var e=-1;this.dates.forEach((function(n,a){t.isToday(n.year,n.month,n.date)&&(e=a)})),this.positionTop=80*-((Math.ceil((e+1)/7)||1)-1)}},selectOne:function(t,e){var n="".concat(t.year,"-").concat(t.month,"-").concat(t.date),a=new Date(n).getTime(),o=(new Date).getTime(),r=new Date(n).getDay(),i=["日","一","二","三","四","五","六"],s="星期"+i[r],h={date:n,week:s};if(!t.isCurM)return!1;if(a>o){if(this.disabledAfter)return console.log("未来日期不可选"),!1;this.choose=n,this.$emit("onDayClick",h)}else this.choose=n,this.$emit("onDayClick",h);console.log(h)},changYearMonth:function(t,e){this.dates=this.monthDay(t,e),this.y=t,this.m=e},changeMonth:function(e){var n=this;t.getStorageSync("token")?("pre"==e?(n.m+1==2?(n.m=12,n.y=n.y-1):n.m=n.m-1,n.month=this.$tools.getMonth(n.month,-1),n.$emit("onMonthClickPre",n.month)):(this.m+1==13?(this.m=1,this.y=this.y+1):this.m=this.m+1,n.month=this.$tools.getMonth(n.month,1),n.$emit("onMonthClickPre",n.month)),this.dates=this.monthDay(this.y,this.m)):this.$store.commit("changeUserLogin",!0)}}};e.default=n}).call(this,n("543d")["default"])},"39af":function(t,e,n){"use strict";n.r(e);var a=n("2400"),o=n.n(a);for(var r in a)"default"!==r&&function(t){n.d(e,t,(function(){return a[t]}))}(r);e["default"]=o.a},7143:function(t,e,n){},"9be4":function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a}));var o=function(){var t=this,e=t.$createElement,n=(t._self._c,t.formatNum(t.m)),a=t.__map(t.dates,(function(e,n){var a=t.__get_orig(e),o=t.isToday(e.year,e.month,e.date),r=t.isWorkDay(e.year,e.month,e.date),i=Number(e.date),s=t.isMarkDay(e.year,e.month,e.date)&&e.isCurM;return{$orig:a,m1:o,m2:r,m3:i,m4:s}}));t.$mp.data=Object.assign({},{$root:{m0:n,l0:a}})},r=[]},e6b2:function(t,e,n){"use strict";n.r(e);var a=n("9be4"),o=n("39af");for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);n("11d7");var i,s=n("f0c5"),h=Object(s["a"])(o["default"],a["b"],a["c"],!1,null,"e1d267b8",null,!1,a["a"],i);e["default"]=h.exports}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/ren-calendar/ren-calendar-create-component',
|
||||
{
|
||||
'components/ren-calendar/ren-calendar-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("1ad8"))
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("e6b2"))
|
||||
})
|
||||
},
|
||||
[['components/ren-calendar/ren-calendar-create-component']]
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/signup/signup"],{"6e1e":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("26cb");function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s={data:function(){return{info:{height:"",birthday:"",sex:0},ageArr:[]}},computed:o(o({},(0,r.mapState)(["user","isedit"])),{},{userInfo:function(){return this.user}}),mounted:function(){for(var t=[],e=12;e<=80;e++)t.push(e);this.ageArr=t,this.info=this.user},methods:{onTap:function(){},selectsex:function(t){this.info.sex=t},onBirthdayArr:function(t){this.info.birthday=t.target.value},handleCloseClick:function(){var t=this;t.info.sex?t.info.height?t.info.birthday?(t.$store.commit("changeEdit",!1),t.getResult()):t.$tools.msg("请选择出生日期"):t.$tools.msg("请选择身高"):t.$tools.msg("请选择性别")},getResult:function(){var t=this;t.$model.getResult({birthday:t.userInfo.birthday,familyid:t.userInfo.familyid,height:t.userInfo.height,sex:t.userInfo.sex}).then((function(e){t.$store.dispatch("getUserInfo",{familyid:t.userInfo.familyid}),t.$store.dispatch("getFamilyList")}))}}};e.default=s},c3b7:function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var i=function(){var t=this,e=t.$createElement;t._self._c},o=[]},c86f:function(t,e,n){"use strict";n.r(e);var r=n("c3b7"),i=n("d93d");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var u,s=n("f0c5"),c=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"d5f50124",null,!1,r["a"],u);e["default"]=c.exports},d93d:function(t,e,n){"use strict";n.r(e);var r=n("6e1e"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/signup/signup"],{"1d0c":function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var i=function(){var t=this,e=t.$createElement;t._self._c},o=[]},"822a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("26cb");function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s={data:function(){return{info:{height:"",birthday:"",sex:0},ageArr:[]}},computed:o(o({},(0,r.mapState)(["user","isedit"])),{},{userInfo:function(){return this.user},endDate:function(){return this.$tools.getDate("start")}}),mounted:function(){for(var t=[],e=12;e<=80;e++)t.push(e);this.ageArr=t,this.info=this.user},methods:{onTap:function(){},selectsex:function(t){this.info.sex=t},onBirthdayArr:function(t){this.info.birthday=t.target.value},handleCloseClick:function(){var t=this;t.info.sex?t.info.height?t.info.birthday?(t.$store.commit("changeEdit",!1),t.getResult()):t.$tools.msg("请选择出生日期"):t.$tools.msg("请选择身高"):t.$tools.msg("请选择性别")},getResult:function(){var t=this;t.$model.getResult({birthday:t.userInfo.birthday,familyid:t.userInfo.familyid,height:t.userInfo.height,sex:t.userInfo.sex}).then((function(e){0==e.code&&t.$store.commit("changeMeasureResult",e.data),t.$store.dispatch("getUserInfo",{familyid:t.userInfo.familyid}),t.$store.dispatch("getFamilyList")}))}}};e.default=s},d373:function(t,e,n){"use strict";n.r(e);var r=n("822a"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},f9e5:function(t,e,n){"use strict";n.r(e);var r=n("1d0c"),i=n("d373");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var u,s=n("f0c5"),a=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"21058072",null,!1,r["a"],u);e["default"]=a.exports}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/signup/signup-create-component',
|
||||
{
|
||||
'components/signup/signup-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("c86f"))
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("f9e5"))
|
||||
})
|
||||
},
|
||||
[['components/signup/signup-create-component']]
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
<block wx:if="{{isedit}}"><view class="wrapper data-v-d5f50124"><view data-event-opts="{{[['tap',[['onTap',['$event']]]]]}}" class="bg data-v-d5f50124" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="edit data-v-d5f50124" catchtap="__e"><view class="title data-v-d5f50124">健康资料</view><view class="editem data-v-d5f50124"><view class="name data-v-d5f50124">性别</view><view data-event-opts="{{[['tap',[['selectsex',[1]]]]]}}" class="radio mr-10 data-v-d5f50124" bindtap="__e"><icon class="{{['iconfont','radioimg','data-v-d5f50124',info.sex==1?'icon-radio':'icon-kongradio']}}"></icon><view class="ml-10 data-v-d5f50124">男</view></view><view data-event-opts="{{[['tap',[['selectsex',[2]]]]]}}" class="radio data-v-d5f50124" bindtap="__e"><icon class="{{['iconfont','radioimg','data-v-d5f50124',info.sex==2?'icon-radio':'icon-kongradio']}}"></icon><view class="ml-10 data-v-d5f50124">女</view></view></view><view class="editem data-v-d5f50124"><view class="name data-v-d5f50124">身高</view><view class="right data-v-d5f50124"><input type="digit" placeholder="请输入身高" data-event-opts="{{[['input',[['__set_model',['$0','height','$event',[]],['info']]]]]}}" value="{{info.height}}" bindinput="__e" class="data-v-d5f50124"/>cm</view></view><view class="editem data-v-d5f50124"><view class="name data-v-d5f50124">出生日期</view><view class="right data-v-d5f50124"><picker class="f-r data-v-d5f50124" mode="date" end="{{startDate}}" value="{{info.birthday}}" data-event-opts="{{[['change',[['onBirthdayArr',['$event']]]]]}}" bindchange="__e"><view class="uni-input data-v-d5f50124">{{(info.birthday?info.birthday:"请选择")+''}}<icon class="iconfont icon-arrow-down data-v-d5f50124"></icon></view></picker></view></view><view class="tips data-v-d5f50124">请准确填写信息方便我们给您更精确的报告</view><view data-event-opts="{{[['tap',[['handleCloseClick',['$event']]]]]}}" class="btn mt-15 data-v-d5f50124" bindtap="__e">保存信息</view></view></view></view></block>
|
||||
<block wx:if="{{isedit}}"><view class="wrapper data-v-21058072"><view data-event-opts="{{[['tap',[['onTap',['$event']]]]]}}" class="bg data-v-21058072" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="edit data-v-21058072" catchtap="__e"><view class="title data-v-21058072">健康资料</view><view class="editem data-v-21058072"><view class="name data-v-21058072">性别</view><view data-event-opts="{{[['tap',[['selectsex',[1]]]]]}}" class="radio mr-10 data-v-21058072" bindtap="__e"><icon class="{{['iconfont','radioimg','data-v-21058072',info.sex==1?'icon-radio':'icon-kongradio']}}"></icon><view class="ml-10 data-v-21058072">男</view></view><view data-event-opts="{{[['tap',[['selectsex',[2]]]]]}}" class="radio data-v-21058072" bindtap="__e"><icon class="{{['iconfont','radioimg','data-v-21058072',info.sex==2?'icon-radio':'icon-kongradio']}}"></icon><view class="ml-10 data-v-21058072">女</view></view></view><view class="editem data-v-21058072"><view class="name data-v-21058072">身高</view><view class="right data-v-21058072"><input type="digit" placeholder="请输入身高" data-event-opts="{{[['input',[['__set_model',['$0','height','$event',[]],['info']]]]]}}" value="{{info.height}}" bindinput="__e" class="data-v-21058072"/>cm</view></view><view class="editem data-v-21058072"><view class="name data-v-21058072">出生日期</view><view class="right data-v-21058072"><picker class="f-r data-v-21058072" mode="date" end="{{endDate}}" value="{{info.birthday}}" data-event-opts="{{[['change',[['onBirthdayArr',['$event']]]]]}}" bindchange="__e"><view class="uni-input data-v-21058072">{{(info.birthday?info.birthday:"请选择")+''}}<icon class="iconfont icon-arrow-down data-v-21058072"></icon></view></picker></view></view><view class="tips data-v-21058072">请准确填写信息方便我们给您更精确的报告</view><view data-event-opts="{{[['tap',[['handleCloseClick',['$event']]]]]}}" class="btn mt-15 data-v-21058072" bindtap="__e">保存信息</view></view></view></view></block>
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/target/firstweight"],{2511:function(t,e,r){"use strict";var n=r("55f1"),i=r.n(n);i.a},"55f1":function(t,e,r){},7497:function(t,e,r){"use strict";var n;r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement;t._self._c},o=[]},8886:function(t,e,r){"use strict";r.r(e);var n=r("d23a"),i=r.n(n);for(var o in n)"default"!==o&&function(t){r.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},c4e2:function(t,e,r){"use strict";r.r(e);var n=r("7497"),i=r("8886");for(var o in i)"default"!==o&&function(t){r.d(e,t,(function(){return i[t]}))}(o);r("2511");var c,a=r("f0c5"),u=Object(a["a"])(i["default"],n["b"],n["c"],!1,null,"fca8ea4c",null,!1,n["a"],c);e["default"]=u.exports},d23a:function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r("26cb");function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function c(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a={data:function(){return{regTime:"",weight:""}},computed:o(o({},(0,n.mapState)(["user","isFirst"])),{},{endDate:function(){return this.$tools.getDate("start")}}),methods:{handleTarget:function(){var t=this;t.regTime?t.weight?t.$model.getfirstweight({familyid:t.user.familyid,time:t.regTime,weight:t.weight}).then((function(e){t.$tools.msg(e.message),0==e.code&&(t.$store.commit("changeFirst",!1),t.$store.dispatch("getUserInfo",{familyid:t.user.familyid}))})):t.$tools.msg("请输入测量体重"):t.$tools.msg("请选择测量日期")},bindDateChange:function(t){this.regTime=t.target.value},onTap:function(){this.regTime="",this.weight="",this.$store.commit("changeFirst",!1)},hideKeyboard:function(){t.hideKeyboard()}}};e.default=a}).call(this,r("543d")["default"])}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/target/firstweight"],{"196e":function(t,e,r){"use strict";var n;r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement;t._self._c},o=[]},"29bc":function(t,e,r){},"3f78":function(t,e,r){"use strict";r.r(e);var n=r("196e"),i=r("4eaf");for(var o in i)"default"!==o&&function(t){r.d(e,t,(function(){return i[t]}))}(o);r("b586");var a,c=r("f0c5"),u=Object(c["a"])(i["default"],n["b"],n["c"],!1,null,"58245898",null,!1,n["a"],a);e["default"]=u.exports},"4eaf":function(t,e,r){"use strict";r.r(e);var n=r("960a"),i=r.n(n);for(var o in n)"default"!==o&&function(t){r.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},"960a":function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r("26cb");function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var c={data:function(){return{regTime:"",weight:""}},computed:o(o({},(0,n.mapState)(["user","isFirst"])),{},{endDate:function(){return this.$tools.getDate("start")}}),methods:{handleTarget:function(){var t=this;t.regTime?t.weight?t.$model.getfirstweight({familyid:t.user.familyid,time:t.regTime,weight:t.weight}).then((function(e){t.$tools.msg(e.message),0==e.code&&(t.$store.commit("changeFirst",!1),t.$store.dispatch("getUserInfo",{familyid:t.user.familyid}))})):t.$tools.msg("请输入测量体重"):t.$tools.msg("请选择测量日期")},bindDateChange:function(t){this.regTime=t.target.value},onTap:function(){this.regTime="",this.weight="",this.$store.commit("changeFirst",!1)},hideKeyboard:function(){t.hideKeyboard()}}};e.default=c}).call(this,r("543d")["default"])},b586:function(t,e,r){"use strict";var n=r("29bc"),i=r.n(n);i.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/target/firstweight-create-component',
|
||||
{
|
||||
'components/target/firstweight-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("c4e2"))
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("3f78"))
|
||||
})
|
||||
},
|
||||
[['components/target/firstweight-create-component']]
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
<block wx:if="{{isFirst}}"><view class="wrapper data-v-fca8ea4c"><view data-event-opts="{{[['tap',[['onTap',['$event']]]]]}}" class="bg data-v-fca8ea4c" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="edit data-v-fca8ea4c" catchtap="__e"><view class="title data-v-fca8ea4c">初始体重</view><view data-event-opts="{{[['tap',[['hideKeyboard',['$event']]]]]}}" class="editem data-v-fca8ea4c" bindtap="__e"><view class="name data-v-fca8ea4c">日期</view><view class="right data-v-fca8ea4c"><picker mode="date" value="{{user.firstresulttime}}" end="{{endDate}}" data-event-opts="{{[['change',[['bindDateChange',['$event']]]]]}}" bindchange="__e" class="data-v-fca8ea4c"><view class="text data-v-fca8ea4c">{{(regTime?regTime:user.firstresulttime?user.firstresulttime:"请选择")+''}}</view></picker></view></view><view class="editem data-v-fca8ea4c"><view class="name data-v-fca8ea4c">体重</view><view class="right data-v-fca8ea4c"><input type="digit" placeholder="请输入体重" data-event-opts="{{[['input',[['__set_model',['','weight','$event',[]]]]]]}}" value="{{weight}}" bindinput="__e" class="data-v-fca8ea4c"/>kg</view></view><view data-event-opts="{{[['tap',[['onTap']]]]}}" class="btn close data-v-fca8ea4c" bindtap="__e">取消</view><view data-event-opts="{{[['tap',[['handleTarget',['$event']]]]]}}" class="btn data-v-fca8ea4c" bindtap="__e">确定</view></view></view></view></block>
|
||||
<block wx:if="{{isFirst}}"><view class="wrapper data-v-58245898"><view data-event-opts="{{[['tap',[['onTap',['$event']]]]]}}" class="bg data-v-58245898" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="edit data-v-58245898" catchtap="__e"><view class="title data-v-58245898">初始体重</view><view data-event-opts="{{[['tap',[['hideKeyboard',['$event']]]]]}}" class="editem data-v-58245898" bindtap="__e"><view class="name data-v-58245898">日期</view><view class="right data-v-58245898"><picker mode="date" value="{{user.firstresulttime}}" end="{{endDate}}" data-event-opts="{{[['change',[['bindDateChange',['$event']]]]]}}" bindchange="__e" class="data-v-58245898"><view class="text data-v-58245898">{{(regTime?regTime:user.firstresulttime?user.firstresulttime:"请选择")+''}}</view></picker></view></view><view class="editem data-v-58245898"><view class="name data-v-58245898">体重</view><view class="right data-v-58245898"><input type="digit" placeholder="请输入" data-event-opts="{{[['input',[['__set_model',['','weight','$event',[]]]]]]}}" value="{{weight}}" bindinput="__e" class="data-v-58245898"/>kg</view></view><view data-event-opts="{{[['tap',[['onTap']]]]}}" class="btn close data-v-58245898" bindtap="__e">取消</view><view data-event-opts="{{[['tap',[['handleTarget',['$event']]]]]}}" class="btn data-v-58245898" bindtap="__e">确定</view></view></view></view></block>
|
||||
|
|
@ -1 +1 @@
|
|||
.btn.data-v-fca8ea4c{width:40%;float:right;margin-top:15px}.edit.data-v-fca8ea4c{top:20%}.close.data-v-fca8ea4c{background:#dfdfdf!important;float:left}
|
||||
.btn.data-v-58245898{width:40%;float:right;margin-top:15px}.edit.data-v-58245898{top:20%}.close.data-v-58245898{background:#dfdfdf!important;float:left}
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/target/manuaRecord"],{"4ecf":function(e,t,r){},"976a":function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("26cb");function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c={data:function(){return{regTime:"",weight:""}},computed:o(o({},(0,n.mapState)(["user","isRecord"])),{},{endDate:function(){return this.$tools.getDate("start")},startDate:function(){return this.$tools.GetDateStr(-90)}}),methods:{handleTarget:function(){var e=this,t=this;t.regTime?t.weight?t.$model.getinsertmeasure({familyid:t.user.familyid,time:t.regTime,weight:t.weight}).then((function(r){0==r.code&&(t.$tools.msg(r.message),t.$store.commit("changeRecord",!1),t.$store.dispatch("getResult",{birthday:t.user.birthday,familyid:t.user.familyid,height:t.user.height,sex:t.user.sex}),t.$store.dispatch("getUserInfo",{familyid:t.user.familyid}),t.$emit("getList",e.startDate,e.endDate),t.regTime="",t.weight="")})):t.$tools.msg("请输入测量体重"):t.$tools.msg("请选择测量日期")},bindDateChange:function(e){this.regTime=e.target.value},onTap:function(){this.regTime="",this.weight="",this.$store.commit("changeRecord",!1)},hideKeyboard:function(){e.hideKeyboard()}}};t.default=c}).call(this,r("543d")["default"])},cb96:function(e,t,r){"use strict";var n=r("4ecf"),i=r.n(n);i.a},d95c:function(e,t,r){"use strict";r.r(t);var n=r("ff07"),i=r("e3fd");for(var o in i)"default"!==o&&function(e){r.d(t,e,(function(){return i[e]}))}(o);r("cb96");var a,c=r("f0c5"),u=Object(c["a"])(i["default"],n["b"],n["c"],!1,null,"1c7a0dce",null,!1,n["a"],a);t["default"]=u.exports},e3fd:function(e,t,r){"use strict";r.r(t);var n=r("976a"),i=r.n(n);for(var o in n)"default"!==o&&function(e){r.d(t,e,(function(){return n[e]}))}(o);t["default"]=i.a},ff07:function(e,t,r){"use strict";var n;r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return o})),r.d(t,"a",(function(){return n}));var i=function(){var e=this,t=e.$createElement;e._self._c},o=[]}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/target/manuaRecord"],{"17fd":function(e,t,r){},3610:function(e,t,r){"use strict";r.r(t);var n=r("ef9b"),i=r("e5b6");for(var o in i)"default"!==o&&function(e){r.d(t,e,(function(){return i[e]}))}(o);r("93cd");var a,c=r("f0c5"),u=Object(c["a"])(i["default"],n["b"],n["c"],!1,null,"6948f702",null,!1,n["a"],a);t["default"]=u.exports},"5f55":function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("26cb");function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c={data:function(){return{regTime:"",weight:""}},computed:o(o({},(0,n.mapState)(["user","isRecord"])),{},{endDate:function(){return this.$tools.getDate("start")},startDate:function(){return this.$tools.GetDateStr(-90)}}),methods:{handleTarget:function(){var e=this,t=this;t.regTime?t.weight?t.$model.getinsertmeasure({familyid:t.user.familyid,time:t.regTime,weight:t.weight}).then((function(r){0==r.code&&(t.$tools.msg(r.message),t.$store.commit("changeRecord",!1),t.$store.dispatch("getResult",{birthday:t.user.birthday,familyid:t.user.familyid,height:t.user.height,sex:t.user.sex}),t.$store.dispatch("getUserInfo",{familyid:t.user.familyid}),t.$emit("getList",e.startDate,e.endDate),t.regTime="",t.weight="")})):t.$tools.msg("请输入测量体重"):t.$tools.msg("请选择测量日期")},bindDateChange:function(e){this.regTime=e.target.value},onTap:function(){this.regTime="",this.weight="",this.$store.commit("changeRecord",!1)},hideKeyboard:function(){e.hideKeyboard()}}};t.default=c}).call(this,r("543d")["default"])},"93cd":function(e,t,r){"use strict";var n=r("17fd"),i=r.n(n);i.a},e5b6:function(e,t,r){"use strict";r.r(t);var n=r("5f55"),i=r.n(n);for(var o in n)"default"!==o&&function(e){r.d(t,e,(function(){return n[e]}))}(o);t["default"]=i.a},ef9b:function(e,t,r){"use strict";var n;r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return o})),r.d(t,"a",(function(){return n}));var i=function(){var e=this,t=e.$createElement;e._self._c},o=[]}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/target/manuaRecord-create-component',
|
||||
{
|
||||
'components/target/manuaRecord-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("d95c"))
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("3610"))
|
||||
})
|
||||
},
|
||||
[['components/target/manuaRecord-create-component']]
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
<block wx:if="{{isRecord}}"><view class="wrapper data-v-1c7a0dce"><view data-event-opts="{{[['tap',[['onTap',['$event']]]]]}}" class="bg data-v-1c7a0dce" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="edit data-v-1c7a0dce" catchtap="__e"><view class="title data-v-1c7a0dce">手动记录</view><view data-event-opts="{{[['tap',[['hideKeyboard',['$event']]]]]}}" class="editem data-v-1c7a0dce" bindtap="__e"><view class="left data-v-1c7a0dce">日期</view><view class="right data-v-1c7a0dce"><picker mode="date" value="{{regTime}}" end="{{endDate}}" data-event-opts="{{[['change',[['bindDateChange',['$event']]]]]}}" bindchange="__e" class="data-v-1c7a0dce"><view class="text data-v-1c7a0dce">{{regTime?regTime:"请选择"}}</view></picker></view></view><view class="editem data-v-1c7a0dce"><view class="left data-v-1c7a0dce">体重</view><view class="right data-v-1c7a0dce"><input type="digit" placeholder="请输入体重" data-event-opts="{{[['input',[['__set_model',['','weight','$event',[]]]]]]}}" value="{{weight}}" bindinput="__e" class="data-v-1c7a0dce"/>kg</view></view><view data-event-opts="{{[['tap',[['onTap']]]]}}" class="btn close data-v-1c7a0dce" bindtap="__e">取消</view><view data-event-opts="{{[['tap',[['handleTarget',['$event']]]]]}}" class="btn data-v-1c7a0dce" bindtap="__e">确定</view></view></view></view></block>
|
||||
<block wx:if="{{isRecord}}"><view class="wrapper data-v-6948f702"><view data-event-opts="{{[['tap',[['onTap',['$event']]]]]}}" class="bg data-v-6948f702" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="edit data-v-6948f702" catchtap="__e"><view class="title data-v-6948f702">手动记录</view><view data-event-opts="{{[['tap',[['hideKeyboard',['$event']]]]]}}" class="editem data-v-6948f702" bindtap="__e"><view class="left data-v-6948f702">日期</view><view class="right data-v-6948f702"><picker mode="date" value="{{regTime}}" end="{{endDate}}" data-event-opts="{{[['change',[['bindDateChange',['$event']]]]]}}" bindchange="__e" class="data-v-6948f702"><view class="text data-v-6948f702">{{regTime?regTime:"请选择"}}</view></picker></view></view><view class="editem data-v-6948f702"><view class="left data-v-6948f702">体重</view><view class="right data-v-6948f702"><input type="digit" placeholder="请输入" data-event-opts="{{[['input',[['__set_model',['','weight','$event',[]]]]]]}}" value="{{weight}}" bindinput="__e" class="data-v-6948f702"/>kg</view></view><view data-event-opts="{{[['tap',[['onTap']]]]}}" class="btn close data-v-6948f702" bindtap="__e">取消</view><view data-event-opts="{{[['tap',[['handleTarget',['$event']]]]]}}" class="btn data-v-6948f702" bindtap="__e">确定</view></view></view></view></block>
|
||||
|
|
@ -1 +1 @@
|
|||
.btn.data-v-1c7a0dce{width:40%;float:right;margin-top:15px}.edit.data-v-1c7a0dce{top:20%}.close.data-v-1c7a0dce{background:#dfdfdf!important;float:left}
|
||||
.btn.data-v-6948f702{width:40%;float:right;margin-top:15px}.edit.data-v-6948f702{top:20%}.close.data-v-6948f702{background:#dfdfdf!important;float:left}
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/target/targetWeight"],{"15d2":function(t,e,r){"use strict";r.r(e);var n=r("9013"),a=r.n(n);for(var o in n)"default"!==o&&function(t){r.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},6307:function(t,e,r){"use strict";var n=r("f140"),a=r.n(n);a.a},9013:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r("26cb");function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u={data:function(){return{inputvalue:""}},computed:o(o({},(0,n.mapState)(["user","isTarget"])),{},{startDate:function(){return this.$tools.getDate("start")}}),methods:{handleWeight:function(){var t=this;console.log("startDate",t.startDate),t.inputvalue?t.$model.setTarget({familyid:t.user.familyid,time:t.startDate,weight:t.inputvalue}).then((function(e){0==e.code&&(t.$tools.msg(e.message),t.$store.commit("changeTarget",!1),t.$store.dispatch("getUserInfo",{familyid:t.user.familyid}))})):t.$tools.msg("请输入目标体重")},onTap:function(){this.inputvalue="",this.$store.commit("changeTarget",!1)}}};e.default=u},a0f7:function(t,e,r){"use strict";r.r(e);var n=r("aa6f"),a=r("15d2");for(var o in a)"default"!==o&&function(t){r.d(e,t,(function(){return a[t]}))}(o);r("6307");var i,u=r("f0c5"),c=Object(u["a"])(a["default"],n["b"],n["c"],!1,null,"02c81fb1",null,!1,n["a"],i);e["default"]=c.exports},aa6f:function(t,e,r){"use strict";var n;r.d(e,"b",(function(){return a})),r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement;t._self._c},o=[]},f140:function(t,e,r){}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/target/targetWeight"],{"54e5":function(t,e,r){"use strict";r.r(e);var n=r("5909"),a=r("6e9e");for(var o in a)"default"!==o&&function(t){r.d(e,t,(function(){return a[t]}))}(o);r("bdd0");var i,u=r("f0c5"),c=Object(u["a"])(a["default"],n["b"],n["c"],!1,null,"0b24f604",null,!1,n["a"],i);e["default"]=c.exports},5909:function(t,e,r){"use strict";var n;r.d(e,"b",(function(){return a})),r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement;t._self._c},o=[]},"6d6e":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r("26cb");function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u={data:function(){return{inputvalue:""}},computed:o(o({},(0,n.mapState)(["user","isTarget"])),{},{startDate:function(){return this.$tools.getDate("start")}}),methods:{handleWeight:function(){var t=this;console.log("startDate",t.startDate),t.inputvalue?t.$model.setTarget({familyid:t.user.familyid,time:t.startDate,weight:t.inputvalue}).then((function(e){0==e.code&&(t.$tools.msg(e.message),t.$store.commit("changeTarget",!1),t.$store.dispatch("getUserInfo",{familyid:t.user.familyid}))})):t.$tools.msg("请输入目标体重")},onTap:function(){this.inputvalue="",this.$store.commit("changeTarget",!1)}}};e.default=u},"6e9e":function(t,e,r){"use strict";r.r(e);var n=r("6d6e"),a=r.n(n);for(var o in n)"default"!==o&&function(t){r.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"879f":function(t,e,r){},bdd0:function(t,e,r){"use strict";var n=r("879f"),a=r.n(n);a.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/target/targetWeight-create-component',
|
||||
{
|
||||
'components/target/targetWeight-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("a0f7"))
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("54e5"))
|
||||
})
|
||||
},
|
||||
[['components/target/targetWeight-create-component']]
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
<block wx:if="{{isTarget}}"><view class="wrapper data-v-02c81fb1"><view data-event-opts="{{[['tap',[['onTap',['$event']]]]]}}" class="bg data-v-02c81fb1" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="edit data-v-02c81fb1" catchtap="__e"><view class="title data-v-02c81fb1">目标体重</view><view class="editem data-v-02c81fb1"><view class="left data-v-02c81fb1">目标体重</view><view class="right data-v-02c81fb1"><input class="text data-v-02c81fb1" type="digit" placeholder="请输入目标体重" data-event-opts="{{[['input',[['__set_model',['','inputvalue','$event',[]]]]]]}}" value="{{inputvalue}}" bindinput="__e"/>kg</view></view><view data-event-opts="{{[['tap',[['onTap']]]]}}" class="btn close data-v-02c81fb1" bindtap="__e">取消</view><view data-event-opts="{{[['tap',[['handleWeight',['$event']]]]]}}" class="btn data-v-02c81fb1" bindtap="__e">确定</view></view></view></view></block>
|
||||
<block wx:if="{{isTarget}}"><view class="wrapper data-v-0b24f604"><view data-event-opts="{{[['tap',[['onTap',['$event']]]]]}}" class="bg data-v-0b24f604" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="edit data-v-0b24f604" catchtap="__e"><view class="title data-v-0b24f604">目标体重</view><view class="editem data-v-0b24f604"><view class="left data-v-0b24f604">目标体重</view><view class="right data-v-0b24f604"><input class="text data-v-0b24f604" type="digit" placeholder="请输入" data-event-opts="{{[['input',[['__set_model',['','inputvalue','$event',[]]]]]]}}" value="{{inputvalue}}" bindinput="__e"/>kg</view></view><view data-event-opts="{{[['tap',[['onTap']]]]}}" class="btn close data-v-0b24f604" bindtap="__e">取消</view><view data-event-opts="{{[['tap',[['handleWeight',['$event']]]]]}}" class="btn data-v-0b24f604" bindtap="__e">确定</view></view></view></view></block>
|
||||
|
|
@ -1 +1 @@
|
|||
.btn.data-v-02c81fb1{width:40%;float:right;margin-top:15px}.edit.data-v-02c81fb1{top:20%}.close.data-v-02c81fb1{background:#dfdfdf!important;float:left}
|
||||
.btn.data-v-0b24f604{width:40%;float:right;margin-top:15px}.edit.data-v-0b24f604{top:20%}.close.data-v-0b24f604{background:#dfdfdf!important;float:left}
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/components/wxParseAudio"],{"07e6":function(n,t,e){"use strict";e.r(t);var u=e("c964"),r=e("8680");for(var c in r)"default"!==c&&function(n){e.d(t,n,(function(){return r[n]}))}(c);var a,o=e("f0c5"),f=Object(o["a"])(r["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],a);t["default"]=f.exports},8680:function(n,t,e){"use strict";e.r(t);var u=e("c7b1"),r=e.n(u);for(var c in u)"default"!==c&&function(n){e.d(t,n,(function(){return u[n]}))}(c);t["default"]=r.a},c7b1:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u={name:"wxParseAudio",props:{node:{type:Object,default:function(){return{}}}}};t.default=u},c964:function(n,t,e){"use strict";var u;e.d(t,"b",(function(){return r})),e.d(t,"c",(function(){return c})),e.d(t,"a",(function(){return u}));var r=function(){var n=this,t=n.$createElement;n._self._c},c=[]}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/components/wxParseAudio"],{"309f":function(n,t,e){"use strict";var u;e.d(t,"b",(function(){return r})),e.d(t,"c",(function(){return a})),e.d(t,"a",(function(){return u}));var r=function(){var n=this,t=n.$createElement;n._self._c},a=[]},"380f":function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u={name:"wxParseAudio",props:{node:{type:Object,default:function(){return{}}}}};t.default=u},4087:function(n,t,e){"use strict";e.r(t);var u=e("309f"),r=e("a1a6");for(var a in r)"default"!==a&&function(n){e.d(t,n,(function(){return r[n]}))}(a);var o,f=e("f0c5"),c=Object(f["a"])(r["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],o);t["default"]=c.exports},a1a6:function(n,t,e){"use strict";e.r(t);var u=e("380f"),r=e.n(u);for(var a in u)"default"!==a&&function(n){e.d(t,n,(function(){return u[n]}))}(a);t["default"]=r.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/u-parse/components/wxParseAudio-create-component',
|
||||
{
|
||||
'components/u-parse/components/wxParseAudio-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("07e6"))
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("4087"))
|
||||
})
|
||||
},
|
||||
[['components/u-parse/components/wxParseAudio-create-component']]
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/components/wxParseImg"],{"07cb":function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return r}));var a=function(){var t=this,e=t.$createElement;t._self._c},i=[]},3458:function(t,e,n){"use strict";n.r(e);var r=n("07cb"),a=n("844c");for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);var c,o=n("f0c5"),u=Object(o["a"])(a["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],c);e["default"]=u.exports},"844c":function(t,e,n){"use strict";n.r(e);var r=n("a83f"),a=n.n(r);for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=a.a},a83f:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={name:"wxParseImg",data:function(){return{newStyleStr:"",preview:!0}},props:{node:{type:Object,default:function(){return{}}}},methods:{wxParseImgTap:function(t){if(this.preview){var e=t.currentTarget.dataset.src;if(e){var n=this.$parent;while(!n.preview||"function"!==typeof n.preview)n=n.$parent;n.preview(e,t)}}},wxParseImgLoad:function(t){var e=t.currentTarget.dataset.src;if(e){var n=t.mp.detail,r=n.width,a=n.height,i=this.wxAutoImageCal(r,a),c=i.imageheight,o=i.imageWidth,u=this.node.attr,d=u.padding,s=u.mode,f=this.node.styleStr,p="widthFix"===s?"":"height: ".concat(c,"px;");this.newStyleStr="".concat(f,"; ").concat(p,"; width: ").concat(o,"px; padding: 0 ").concat(+d,"px;")}},wxAutoImageCal:function(t,e){this.node.attr.padding;var n=this.node.$screen.width-30,r={};if(t<60||e<60){var a=this.node.attr.src,i=this.$parent;while(!i.preview||"function"!==typeof i.preview)i=i.$parent;i.removeImageUrl(a),this.preview=!1}return t>n?(r.imageWidth=n,r.imageheight=n*(e/t)):(r.imageWidth=t,r.imageheight=e),r}}};e.default=r}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/components/wxParseImg"],{"3bad":function(t,e,n){"use strict";n.r(e);var a=n("e413"),r=n("d4de");for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);var o,c=n("f0c5"),u=Object(c["a"])(r["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],o);e["default"]=u.exports},"47a9":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={name:"wxParseImg",data:function(){return{newStyleStr:"",preview:!0}},props:{node:{type:Object,default:function(){return{}}}},methods:{wxParseImgTap:function(t){if(this.preview){var e=t.currentTarget.dataset.src;if(e){var n=this.$parent;while(!n.preview||"function"!==typeof n.preview)n=n.$parent;n.preview(e,t)}}},wxParseImgLoad:function(t){var e=t.currentTarget.dataset.src;if(e){var n=t.mp.detail,a=n.width,r=n.height,i=this.wxAutoImageCal(a,r),o=i.imageheight,c=i.imageWidth,u=this.node.attr,d=u.padding,s=u.mode,f=this.node.styleStr,p="widthFix"===s?"":"height: ".concat(o,"px;");this.newStyleStr="".concat(f,"; ").concat(p,"; width: ").concat(c,"px; padding: 0 ").concat(+d,"px;")}},wxAutoImageCal:function(t,e){this.node.attr.padding;var n=this.node.$screen.width-30,a={};if(t<60||e<60){var r=this.node.attr.src,i=this.$parent;while(!i.preview||"function"!==typeof i.preview)i=i.$parent;i.removeImageUrl(r),this.preview=!1}return t>n?(a.imageWidth=n,a.imageheight=n*(e/t)):(a.imageWidth=t,a.imageheight=e),a}}};e.default=a},d4de:function(t,e,n){"use strict";n.r(e);var a=n("47a9"),r=n.n(a);for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=r.a},e413:function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}));var r=function(){var t=this,e=t.$createElement;t._self._c},i=[]}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/u-parse/components/wxParseImg-create-component',
|
||||
{
|
||||
'components/u-parse/components/wxParseImg-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("3458"))
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("3bad"))
|
||||
})
|
||||
},
|
||||
[['components/u-parse/components/wxParseImg-create-component']]
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/components/wxParseTemplate0"],{"1cd0":function(e,n,t){"use strict";t.r(n);var o=t("80d0"),r=t.n(o);for(var a in o)"default"!==a&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a},"664e":function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o}));var r=function(){var e=this,n=e.$createElement;e._self._c},a=[]},"80d0":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(){t.e("components/u-parse/components/wxParseTemplate1").then(function(){return resolve(t("3472"))}.bind(null,t)).catch(t.oe)},r=function(){t.e("components/u-parse/components/wxParseImg").then(function(){return resolve(t("3458"))}.bind(null,t)).catch(t.oe)},a=function(){t.e("components/u-parse/components/wxParseVideo").then(function(){return resolve(t("50b5"))}.bind(null,t)).catch(t.oe)},u=function(){t.e("components/u-parse/components/wxParseAudio").then(function(){return resolve(t("07e6"))}.bind(null,t)).catch(t.oe)},c={name:"wxParseTemplate0",props:{node:{}},components:{wxParseTemplate:o,wxParseImg:r,wxParseVideo:a,wxParseAudio:u},methods:{wxParseATap:function(e){var n=e.currentTarget.dataset.href;if(n){var t=this.$parent;while(!t.preview||"function"!==typeof t.preview)t=t.$parent;t.navigate(n,e)}}}};n.default=c},dcb7:function(e,n,t){"use strict";t.r(n);var o=t("664e"),r=t("1cd0");for(var a in r)"default"!==a&&function(e){t.d(n,e,(function(){return r[e]}))}(a);var u,c=t("f0c5"),s=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);n["default"]=s.exports}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/components/wxParseTemplate0"],{"2e42":function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o}));var r=function(){var e=this,n=e.$createElement;e._self._c},a=[]},"56bd":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(){t.e("components/u-parse/components/wxParseTemplate1").then(function(){return resolve(t("4df3"))}.bind(null,t)).catch(t.oe)},r=function(){t.e("components/u-parse/components/wxParseImg").then(function(){return resolve(t("3bad"))}.bind(null,t)).catch(t.oe)},a=function(){t.e("components/u-parse/components/wxParseVideo").then(function(){return resolve(t("5030"))}.bind(null,t)).catch(t.oe)},u=function(){t.e("components/u-parse/components/wxParseAudio").then(function(){return resolve(t("4087"))}.bind(null,t)).catch(t.oe)},c={name:"wxParseTemplate0",props:{node:{}},components:{wxParseTemplate:o,wxParseImg:r,wxParseVideo:a,wxParseAudio:u},methods:{wxParseATap:function(e){var n=e.currentTarget.dataset.href;if(n){var t=this.$parent;while(!t.preview||"function"!==typeof t.preview)t=t.$parent;t.navigate(n,e)}}}};n.default=c},"9c85":function(e,n,t){"use strict";t.r(n);var o=t("2e42"),r=t("dc16");for(var a in r)"default"!==a&&function(e){t.d(n,e,(function(){return r[e]}))}(a);var u,c=t("f0c5"),s=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);n["default"]=s.exports},dc16:function(e,n,t){"use strict";t.r(n);var o=t("56bd"),r=t.n(o);for(var a in o)"default"!==a&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/u-parse/components/wxParseTemplate0-create-component',
|
||||
{
|
||||
'components/u-parse/components/wxParseTemplate0-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("dcb7"))
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("9c85"))
|
||||
})
|
||||
},
|
||||
[['components/u-parse/components/wxParseTemplate0-create-component']]
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/components/wxParseTemplate1"],{3472:function(e,n,t){"use strict";t.r(n);var o=t("f7c8"),r=t("e8d4");for(var a in r)"default"!==a&&function(e){t.d(n,e,(function(){return r[e]}))}(a);var u,c=t("f0c5"),s=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);n["default"]=s.exports},3880:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(){t.e("components/u-parse/components/wxParseTemplate2").then(function(){return resolve(t("7f14"))}.bind(null,t)).catch(t.oe)},r=function(){t.e("components/u-parse/components/wxParseImg").then(function(){return resolve(t("3458"))}.bind(null,t)).catch(t.oe)},a=function(){t.e("components/u-parse/components/wxParseVideo").then(function(){return resolve(t("50b5"))}.bind(null,t)).catch(t.oe)},u=function(){t.e("components/u-parse/components/wxParseAudio").then(function(){return resolve(t("07e6"))}.bind(null,t)).catch(t.oe)},c={name:"wxParseTemplate1",props:{node:{}},components:{wxParseTemplate:o,wxParseImg:r,wxParseVideo:a,wxParseAudio:u},methods:{wxParseATap:function(e){var n=e.currentTarget.dataset.href;if(n){var t=this.$parent;while(!t.preview||"function"!==typeof t.preview)t=t.$parent;t.navigate(n,e)}}}};n.default=c},e8d4:function(e,n,t){"use strict";t.r(n);var o=t("3880"),r=t.n(o);for(var a in o)"default"!==a&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a},f7c8:function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o}));var r=function(){var e=this,n=e.$createElement;e._self._c},a=[]}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/components/wxParseTemplate1"],{"4df3":function(e,n,t){"use strict";t.r(n);var o=t("63fc"),r=t("c26c");for(var a in r)"default"!==a&&function(e){t.d(n,e,(function(){return r[e]}))}(a);var c,u=t("f0c5"),s=Object(u["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],c);n["default"]=s.exports},"63fc":function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o}));var r=function(){var e=this,n=e.$createElement;e._self._c},a=[]},c26c:function(e,n,t){"use strict";t.r(n);var o=t("d392"),r=t.n(o);for(var a in o)"default"!==a&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a},d392:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(){t.e("components/u-parse/components/wxParseTemplate2").then(function(){return resolve(t("dfcb"))}.bind(null,t)).catch(t.oe)},r=function(){t.e("components/u-parse/components/wxParseImg").then(function(){return resolve(t("3bad"))}.bind(null,t)).catch(t.oe)},a=function(){t.e("components/u-parse/components/wxParseVideo").then(function(){return resolve(t("5030"))}.bind(null,t)).catch(t.oe)},c=function(){t.e("components/u-parse/components/wxParseAudio").then(function(){return resolve(t("4087"))}.bind(null,t)).catch(t.oe)},u={name:"wxParseTemplate1",props:{node:{}},components:{wxParseTemplate:o,wxParseImg:r,wxParseVideo:a,wxParseAudio:c},methods:{wxParseATap:function(e){var n=e.currentTarget.dataset.href;if(n){var t=this.$parent;while(!t.preview||"function"!==typeof t.preview)t=t.$parent;t.navigate(n,e)}}}};n.default=u}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/u-parse/components/wxParseTemplate1-create-component',
|
||||
{
|
||||
'components/u-parse/components/wxParseTemplate1-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("3472"))
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("4df3"))
|
||||
})
|
||||
},
|
||||
[['components/u-parse/components/wxParseTemplate1-create-component']]
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/components/wxParseTemplate10"],{"4fb9":function(e,n,t){"use strict";t.r(n);var o=t("8111"),r=t.n(o);for(var a in o)"default"!==a&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a},8111:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(){t.e("components/u-parse/components/wxParseTemplate11").then(function(){return resolve(t("ec61"))}.bind(null,t)).catch(t.oe)},r=function(){t.e("components/u-parse/components/wxParseImg").then(function(){return resolve(t("3458"))}.bind(null,t)).catch(t.oe)},a=function(){t.e("components/u-parse/components/wxParseVideo").then(function(){return resolve(t("50b5"))}.bind(null,t)).catch(t.oe)},u=function(){t.e("components/u-parse/components/wxParseAudio").then(function(){return resolve(t("07e6"))}.bind(null,t)).catch(t.oe)},c={name:"wxParseTemplate10",props:{node:{}},components:{wxParseTemplate:o,wxParseImg:r,wxParseVideo:a,wxParseAudio:u},methods:{wxParseATap:function(e){var n=e.currentTarget.dataset.href;if(n){var t=this.$parent;while(!t.preview||"function"!==typeof t.preview)t=t.$parent;t.navigate(n,e)}}}};n.default=c},"9dc2":function(e,n,t){"use strict";t.r(n);var o=t("acf9"),r=t("4fb9");for(var a in r)"default"!==a&&function(e){t.d(n,e,(function(){return r[e]}))}(a);var u,c=t("f0c5"),s=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);n["default"]=s.exports},acf9:function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o}));var r=function(){var e=this,n=e.$createElement;e._self._c},a=[]}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/components/wxParseTemplate10"],{"0129":function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o}));var r=function(){var e=this,n=e.$createElement;e._self._c},a=[]},"160a":function(e,n,t){"use strict";t.r(n);var o=t("9486"),r=t.n(o);for(var a in o)"default"!==a&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a},"70a4":function(e,n,t){"use strict";t.r(n);var o=t("0129"),r=t("160a");for(var a in r)"default"!==a&&function(e){t.d(n,e,(function(){return r[e]}))}(a);var u,c=t("f0c5"),s=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);n["default"]=s.exports},9486:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(){t.e("components/u-parse/components/wxParseTemplate11").then(function(){return resolve(t("5122"))}.bind(null,t)).catch(t.oe)},r=function(){t.e("components/u-parse/components/wxParseImg").then(function(){return resolve(t("3bad"))}.bind(null,t)).catch(t.oe)},a=function(){t.e("components/u-parse/components/wxParseVideo").then(function(){return resolve(t("5030"))}.bind(null,t)).catch(t.oe)},u=function(){t.e("components/u-parse/components/wxParseAudio").then(function(){return resolve(t("4087"))}.bind(null,t)).catch(t.oe)},c={name:"wxParseTemplate10",props:{node:{}},components:{wxParseTemplate:o,wxParseImg:r,wxParseVideo:a,wxParseAudio:u},methods:{wxParseATap:function(e){var n=e.currentTarget.dataset.href;if(n){var t=this.$parent;while(!t.preview||"function"!==typeof t.preview)t=t.$parent;t.navigate(n,e)}}}};n.default=c}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/u-parse/components/wxParseTemplate10-create-component',
|
||||
{
|
||||
'components/u-parse/components/wxParseTemplate10-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("9dc2"))
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("70a4"))
|
||||
})
|
||||
},
|
||||
[['components/u-parse/components/wxParseTemplate10-create-component']]
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/components/wxParseTemplate11"],{"74f8":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=function(){t.e("components/u-parse/components/wxParseImg").then(function(){return resolve(t("3458"))}.bind(null,t)).catch(t.oe)},o=function(){t.e("components/u-parse/components/wxParseVideo").then(function(){return resolve(t("50b5"))}.bind(null,t)).catch(t.oe)},a=function(){t.e("components/u-parse/components/wxParseAudio").then(function(){return resolve(t("07e6"))}.bind(null,t)).catch(t.oe)},u={name:"wxParseTemplate11",props:{node:{}},components:{wxParseImg:r,wxParseVideo:o,wxParseAudio:a},methods:{wxParseATap:function(e){var n=e.currentTarget.dataset.href;if(n){var t=this.$parent;while(!t.preview||"function"!==typeof t.preview)t=t.$parent;t.navigate(n,e)}}}};n.default=u},7923:function(e,n,t){"use strict";var r;t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return r}));var o=function(){var e=this,n=e.$createElement;e._self._c},a=[]},cc49:function(e,n,t){"use strict";t.r(n);var r=t("74f8"),o=t.n(r);for(var a in r)"default"!==a&&function(e){t.d(n,e,(function(){return r[e]}))}(a);n["default"]=o.a},ec61:function(e,n,t){"use strict";t.r(n);var r=t("7923"),o=t("cc49");for(var a in o)"default"!==a&&function(e){t.d(n,e,(function(){return o[e]}))}(a);var u,c=t("f0c5"),s=Object(c["a"])(o["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],u);n["default"]=s.exports}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/components/wxParseTemplate11"],{5122:function(e,n,t){"use strict";t.r(n);var r=t("ec89"),o=t("b70a");for(var a in o)"default"!==a&&function(e){t.d(n,e,(function(){return o[e]}))}(a);var u,c=t("f0c5"),s=Object(c["a"])(o["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],u);n["default"]=s.exports},"58e3":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=function(){t.e("components/u-parse/components/wxParseImg").then(function(){return resolve(t("3bad"))}.bind(null,t)).catch(t.oe)},o=function(){t.e("components/u-parse/components/wxParseVideo").then(function(){return resolve(t("5030"))}.bind(null,t)).catch(t.oe)},a=function(){t.e("components/u-parse/components/wxParseAudio").then(function(){return resolve(t("4087"))}.bind(null,t)).catch(t.oe)},u={name:"wxParseTemplate11",props:{node:{}},components:{wxParseImg:r,wxParseVideo:o,wxParseAudio:a},methods:{wxParseATap:function(e){var n=e.currentTarget.dataset.href;if(n){var t=this.$parent;while(!t.preview||"function"!==typeof t.preview)t=t.$parent;t.navigate(n,e)}}}};n.default=u},b70a:function(e,n,t){"use strict";t.r(n);var r=t("58e3"),o=t.n(r);for(var a in r)"default"!==a&&function(e){t.d(n,e,(function(){return r[e]}))}(a);n["default"]=o.a},ec89:function(e,n,t){"use strict";var r;t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return r}));var o=function(){var e=this,n=e.$createElement;e._self._c},a=[]}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/u-parse/components/wxParseTemplate11-create-component',
|
||||
{
|
||||
'components/u-parse/components/wxParseTemplate11-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("ec61"))
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("5122"))
|
||||
})
|
||||
},
|
||||
[['components/u-parse/components/wxParseTemplate11-create-component']]
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/components/wxParseTemplate2"],{"596e":function(e,n,t){"use strict";t.r(n);var o=t("e420"),r=t.n(o);for(var a in o)"default"!==a&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a},"7f14":function(e,n,t){"use strict";t.r(n);var o=t("999c"),r=t("596e");for(var a in r)"default"!==a&&function(e){t.d(n,e,(function(){return r[e]}))}(a);var u,c=t("f0c5"),s=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);n["default"]=s.exports},"999c":function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o}));var r=function(){var e=this,n=e.$createElement;e._self._c},a=[]},e420:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(){t.e("components/u-parse/components/wxParseTemplate3").then(function(){return resolve(t("68d5"))}.bind(null,t)).catch(t.oe)},r=function(){t.e("components/u-parse/components/wxParseImg").then(function(){return resolve(t("3458"))}.bind(null,t)).catch(t.oe)},a=function(){t.e("components/u-parse/components/wxParseVideo").then(function(){return resolve(t("50b5"))}.bind(null,t)).catch(t.oe)},u=function(){t.e("components/u-parse/components/wxParseAudio").then(function(){return resolve(t("07e6"))}.bind(null,t)).catch(t.oe)},c={name:"wxParseTemplate2",props:{node:{}},components:{wxParseTemplate:o,wxParseImg:r,wxParseVideo:a,wxParseAudio:u},methods:{wxParseATap:function(e){var n=e.currentTarget.dataset.href;if(n){var t=this.$parent;while(!t.preview||"function"!==typeof t.preview)t=t.$parent;t.navigate(n,e)}}}};n.default=c}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/components/wxParseTemplate2"],{"4a2d":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(){t.e("components/u-parse/components/wxParseTemplate3").then(function(){return resolve(t("76c3"))}.bind(null,t)).catch(t.oe)},r=function(){t.e("components/u-parse/components/wxParseImg").then(function(){return resolve(t("3bad"))}.bind(null,t)).catch(t.oe)},a=function(){t.e("components/u-parse/components/wxParseVideo").then(function(){return resolve(t("5030"))}.bind(null,t)).catch(t.oe)},c=function(){t.e("components/u-parse/components/wxParseAudio").then(function(){return resolve(t("4087"))}.bind(null,t)).catch(t.oe)},u={name:"wxParseTemplate2",props:{node:{}},components:{wxParseTemplate:o,wxParseImg:r,wxParseVideo:a,wxParseAudio:c},methods:{wxParseATap:function(e){var n=e.currentTarget.dataset.href;if(n){var t=this.$parent;while(!t.preview||"function"!==typeof t.preview)t=t.$parent;t.navigate(n,e)}}}};n.default=u},c8c6:function(e,n,t){"use strict";t.r(n);var o=t("4a2d"),r=t.n(o);for(var a in o)"default"!==a&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a},dfcb:function(e,n,t){"use strict";t.r(n);var o=t("e173"),r=t("c8c6");for(var a in r)"default"!==a&&function(e){t.d(n,e,(function(){return r[e]}))}(a);var c,u=t("f0c5"),s=Object(u["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],c);n["default"]=s.exports},e173:function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o}));var r=function(){var e=this,n=e.$createElement;e._self._c},a=[]}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/u-parse/components/wxParseTemplate2-create-component',
|
||||
{
|
||||
'components/u-parse/components/wxParseTemplate2-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("7f14"))
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("dfcb"))
|
||||
})
|
||||
},
|
||||
[['components/u-parse/components/wxParseTemplate2-create-component']]
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/components/wxParseTemplate3"],{"68d5":function(e,n,t){"use strict";t.r(n);var o=t("8b45"),r=t("d5ce");for(var a in r)"default"!==a&&function(e){t.d(n,e,(function(){return r[e]}))}(a);var u,c=t("f0c5"),s=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);n["default"]=s.exports},"8b45":function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o}));var r=function(){var e=this,n=e.$createElement;e._self._c},a=[]},9331:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(){t.e("components/u-parse/components/wxParseTemplate4").then(function(){return resolve(t("62fb"))}.bind(null,t)).catch(t.oe)},r=function(){t.e("components/u-parse/components/wxParseImg").then(function(){return resolve(t("3458"))}.bind(null,t)).catch(t.oe)},a=function(){t.e("components/u-parse/components/wxParseVideo").then(function(){return resolve(t("50b5"))}.bind(null,t)).catch(t.oe)},u=function(){t.e("components/u-parse/components/wxParseAudio").then(function(){return resolve(t("07e6"))}.bind(null,t)).catch(t.oe)},c={name:"wxParseTemplate3",props:{node:{}},components:{wxParseTemplate:o,wxParseImg:r,wxParseVideo:a,wxParseAudio:u},methods:{wxParseATap:function(e){var n=e.currentTarget.dataset.href;if(n){var t=this.$parent;while(!t.preview||"function"!==typeof t.preview)t=t.$parent;t.navigate(n,e)}}}};n.default=c},d5ce:function(e,n,t){"use strict";t.r(n);var o=t("9331"),r=t.n(o);for(var a in o)"default"!==a&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/components/wxParseTemplate3"],{5437:function(e,n,t){"use strict";t.r(n);var o=t("74e8"),r=t.n(o);for(var a in o)"default"!==a&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a},"5b9d":function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o}));var r=function(){var e=this,n=e.$createElement;e._self._c},a=[]},"74e8":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(){t.e("components/u-parse/components/wxParseTemplate4").then(function(){return resolve(t("fd10"))}.bind(null,t)).catch(t.oe)},r=function(){t.e("components/u-parse/components/wxParseImg").then(function(){return resolve(t("3bad"))}.bind(null,t)).catch(t.oe)},a=function(){t.e("components/u-parse/components/wxParseVideo").then(function(){return resolve(t("5030"))}.bind(null,t)).catch(t.oe)},u=function(){t.e("components/u-parse/components/wxParseAudio").then(function(){return resolve(t("4087"))}.bind(null,t)).catch(t.oe)},c={name:"wxParseTemplate3",props:{node:{}},components:{wxParseTemplate:o,wxParseImg:r,wxParseVideo:a,wxParseAudio:u},methods:{wxParseATap:function(e){var n=e.currentTarget.dataset.href;if(n){var t=this.$parent;while(!t.preview||"function"!==typeof t.preview)t=t.$parent;t.navigate(n,e)}}}};n.default=c},"76c3":function(e,n,t){"use strict";t.r(n);var o=t("5b9d"),r=t("5437");for(var a in r)"default"!==a&&function(e){t.d(n,e,(function(){return r[e]}))}(a);var u,c=t("f0c5"),s=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);n["default"]=s.exports}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/u-parse/components/wxParseTemplate3-create-component',
|
||||
{
|
||||
'components/u-parse/components/wxParseTemplate3-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("68d5"))
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("76c3"))
|
||||
})
|
||||
},
|
||||
[['components/u-parse/components/wxParseTemplate3-create-component']]
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/components/wxParseTemplate4"],{"62d2":function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o}));var r=function(){var e=this,n=e.$createElement;e._self._c},a=[]},"62fb":function(e,n,t){"use strict";t.r(n);var o=t("62d2"),r=t("a601");for(var a in r)"default"!==a&&function(e){t.d(n,e,(function(){return r[e]}))}(a);var u,c=t("f0c5"),s=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);n["default"]=s.exports},"8dae":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(){t.e("components/u-parse/components/wxParseTemplate5").then(function(){return resolve(t("0b12"))}.bind(null,t)).catch(t.oe)},r=function(){t.e("components/u-parse/components/wxParseImg").then(function(){return resolve(t("3458"))}.bind(null,t)).catch(t.oe)},a=function(){t.e("components/u-parse/components/wxParseVideo").then(function(){return resolve(t("50b5"))}.bind(null,t)).catch(t.oe)},u=function(){t.e("components/u-parse/components/wxParseAudio").then(function(){return resolve(t("07e6"))}.bind(null,t)).catch(t.oe)},c={name:"wxParseTemplate4",props:{node:{}},components:{wxParseTemplate:o,wxParseImg:r,wxParseVideo:a,wxParseAudio:u},methods:{wxParseATap:function(e){var n=e.currentTarget.dataset.href;if(n){var t=this.$parent;while(!t.preview||"function"!==typeof t.preview)t=t.$parent;t.navigate(n,e)}}}};n.default=c},a601:function(e,n,t){"use strict";t.r(n);var o=t("8dae"),r=t.n(o);for(var a in o)"default"!==a&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/components/wxParseTemplate4"],{"77af":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(){t.e("components/u-parse/components/wxParseTemplate5").then(function(){return resolve(t("0ba8"))}.bind(null,t)).catch(t.oe)},r=function(){t.e("components/u-parse/components/wxParseImg").then(function(){return resolve(t("3bad"))}.bind(null,t)).catch(t.oe)},a=function(){t.e("components/u-parse/components/wxParseVideo").then(function(){return resolve(t("5030"))}.bind(null,t)).catch(t.oe)},u=function(){t.e("components/u-parse/components/wxParseAudio").then(function(){return resolve(t("4087"))}.bind(null,t)).catch(t.oe)},c={name:"wxParseTemplate4",props:{node:{}},components:{wxParseTemplate:o,wxParseImg:r,wxParseVideo:a,wxParseAudio:u},methods:{wxParseATap:function(e){var n=e.currentTarget.dataset.href;if(n){var t=this.$parent;while(!t.preview||"function"!==typeof t.preview)t=t.$parent;t.navigate(n,e)}}}};n.default=c},"83e4":function(e,n,t){"use strict";t.r(n);var o=t("77af"),r=t.n(o);for(var a in o)"default"!==a&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a},c41c:function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o}));var r=function(){var e=this,n=e.$createElement;e._self._c},a=[]},fd10:function(e,n,t){"use strict";t.r(n);var o=t("c41c"),r=t("83e4");for(var a in r)"default"!==a&&function(e){t.d(n,e,(function(){return r[e]}))}(a);var u,c=t("f0c5"),s=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);n["default"]=s.exports}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/u-parse/components/wxParseTemplate4-create-component',
|
||||
{
|
||||
'components/u-parse/components/wxParseTemplate4-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("62fb"))
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("fd10"))
|
||||
})
|
||||
},
|
||||
[['components/u-parse/components/wxParseTemplate4-create-component']]
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/components/wxParseTemplate5"],{"0b12":function(e,n,t){"use strict";t.r(n);var o=t("1410"),r=t("fb93");for(var a in r)"default"!==a&&function(e){t.d(n,e,(function(){return r[e]}))}(a);var u,c=t("f0c5"),s=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);n["default"]=s.exports},1410:function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o}));var r=function(){var e=this,n=e.$createElement;e._self._c},a=[]},1737:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(){t.e("components/u-parse/components/wxParseTemplate6").then(function(){return resolve(t("6ec7"))}.bind(null,t)).catch(t.oe)},r=function(){t.e("components/u-parse/components/wxParseImg").then(function(){return resolve(t("3458"))}.bind(null,t)).catch(t.oe)},a=function(){t.e("components/u-parse/components/wxParseVideo").then(function(){return resolve(t("50b5"))}.bind(null,t)).catch(t.oe)},u=function(){t.e("components/u-parse/components/wxParseAudio").then(function(){return resolve(t("07e6"))}.bind(null,t)).catch(t.oe)},c={name:"wxParseTemplate5",props:{node:{}},components:{wxParseTemplate:o,wxParseImg:r,wxParseVideo:a,wxParseAudio:u},methods:{wxParseATap:function(e){var n=e.currentTarget.dataset.href;if(n){var t=this.$parent;while(!t.preview||"function"!==typeof t.preview)t=t.$parent;t.navigate(n,e)}}}};n.default=c},fb93:function(e,n,t){"use strict";t.r(n);var o=t("1737"),r=t.n(o);for(var a in o)"default"!==a&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/components/wxParseTemplate5"],{"0ba8":function(e,n,t){"use strict";t.r(n);var o=t("1ac6"),r=t("7b77");for(var a in r)"default"!==a&&function(e){t.d(n,e,(function(){return r[e]}))}(a);var u,c=t("f0c5"),s=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);n["default"]=s.exports},"1ac6":function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o}));var r=function(){var e=this,n=e.$createElement;e._self._c},a=[]},"1bb3":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(){t.e("components/u-parse/components/wxParseTemplate6").then(function(){return resolve(t("99fa"))}.bind(null,t)).catch(t.oe)},r=function(){t.e("components/u-parse/components/wxParseImg").then(function(){return resolve(t("3bad"))}.bind(null,t)).catch(t.oe)},a=function(){t.e("components/u-parse/components/wxParseVideo").then(function(){return resolve(t("5030"))}.bind(null,t)).catch(t.oe)},u=function(){t.e("components/u-parse/components/wxParseAudio").then(function(){return resolve(t("4087"))}.bind(null,t)).catch(t.oe)},c={name:"wxParseTemplate5",props:{node:{}},components:{wxParseTemplate:o,wxParseImg:r,wxParseVideo:a,wxParseAudio:u},methods:{wxParseATap:function(e){var n=e.currentTarget.dataset.href;if(n){var t=this.$parent;while(!t.preview||"function"!==typeof t.preview)t=t.$parent;t.navigate(n,e)}}}};n.default=c},"7b77":function(e,n,t){"use strict";t.r(n);var o=t("1bb3"),r=t.n(o);for(var a in o)"default"!==a&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/u-parse/components/wxParseTemplate5-create-component',
|
||||
{
|
||||
'components/u-parse/components/wxParseTemplate5-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("0b12"))
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("0ba8"))
|
||||
})
|
||||
},
|
||||
[['components/u-parse/components/wxParseTemplate5-create-component']]
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/components/wxParseTemplate6"],{"42f5":function(e,n,t){"use strict";t.r(n);var o=t("7019"),r=t.n(o);for(var a in o)"default"!==a&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a},"6ec7":function(e,n,t){"use strict";t.r(n);var o=t("ffdd"),r=t("42f5");for(var a in r)"default"!==a&&function(e){t.d(n,e,(function(){return r[e]}))}(a);var u,c=t("f0c5"),s=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);n["default"]=s.exports},7019:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(){t.e("components/u-parse/components/wxParseTemplate7").then(function(){return resolve(t("80aa"))}.bind(null,t)).catch(t.oe)},r=function(){t.e("components/u-parse/components/wxParseImg").then(function(){return resolve(t("3458"))}.bind(null,t)).catch(t.oe)},a=function(){t.e("components/u-parse/components/wxParseVideo").then(function(){return resolve(t("50b5"))}.bind(null,t)).catch(t.oe)},u=function(){t.e("components/u-parse/components/wxParseAudio").then(function(){return resolve(t("07e6"))}.bind(null,t)).catch(t.oe)},c={name:"wxParseTemplate6",props:{node:{}},components:{wxParseTemplate:o,wxParseImg:r,wxParseVideo:a,wxParseAudio:u},methods:{wxParseATap:function(e){var n=e.currentTarget.dataset.href;if(n){var t=this.$parent;while(!t.preview||"function"!==typeof t.preview)t=t.$parent;t.navigate(n,e)}}}};n.default=c},ffdd:function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o}));var r=function(){var e=this,n=e.$createElement;e._self._c},a=[]}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/components/wxParseTemplate6"],{"99fa":function(e,n,t){"use strict";t.r(n);var o=t("af53"),r=t("ff8f");for(var a in r)"default"!==a&&function(e){t.d(n,e,(function(){return r[e]}))}(a);var u,c=t("f0c5"),s=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);n["default"]=s.exports},af53:function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o}));var r=function(){var e=this,n=e.$createElement;e._self._c},a=[]},dee9:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(){t.e("components/u-parse/components/wxParseTemplate7").then(function(){return resolve(t("6e28"))}.bind(null,t)).catch(t.oe)},r=function(){t.e("components/u-parse/components/wxParseImg").then(function(){return resolve(t("3bad"))}.bind(null,t)).catch(t.oe)},a=function(){t.e("components/u-parse/components/wxParseVideo").then(function(){return resolve(t("5030"))}.bind(null,t)).catch(t.oe)},u=function(){t.e("components/u-parse/components/wxParseAudio").then(function(){return resolve(t("4087"))}.bind(null,t)).catch(t.oe)},c={name:"wxParseTemplate6",props:{node:{}},components:{wxParseTemplate:o,wxParseImg:r,wxParseVideo:a,wxParseAudio:u},methods:{wxParseATap:function(e){var n=e.currentTarget.dataset.href;if(n){var t=this.$parent;while(!t.preview||"function"!==typeof t.preview)t=t.$parent;t.navigate(n,e)}}}};n.default=c},ff8f:function(e,n,t){"use strict";t.r(n);var o=t("dee9"),r=t.n(o);for(var a in o)"default"!==a&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/u-parse/components/wxParseTemplate6-create-component',
|
||||
{
|
||||
'components/u-parse/components/wxParseTemplate6-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("6ec7"))
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("99fa"))
|
||||
})
|
||||
},
|
||||
[['components/u-parse/components/wxParseTemplate6-create-component']]
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/components/wxParseTemplate7"],{"32be":function(e,n,t){"use strict";t.r(n);var o=t("f07a"),r=t.n(o);for(var a in o)"default"!==a&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a},"3cf1":function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o}));var r=function(){var e=this,n=e.$createElement;e._self._c},a=[]},"80aa":function(e,n,t){"use strict";t.r(n);var o=t("3cf1"),r=t("32be");for(var a in r)"default"!==a&&function(e){t.d(n,e,(function(){return r[e]}))}(a);var u,c=t("f0c5"),s=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);n["default"]=s.exports},f07a:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(){t.e("components/u-parse/components/wxParseTemplate8").then(function(){return resolve(t("8b20"))}.bind(null,t)).catch(t.oe)},r=function(){t.e("components/u-parse/components/wxParseImg").then(function(){return resolve(t("3458"))}.bind(null,t)).catch(t.oe)},a=function(){t.e("components/u-parse/components/wxParseVideo").then(function(){return resolve(t("50b5"))}.bind(null,t)).catch(t.oe)},u=function(){t.e("components/u-parse/components/wxParseAudio").then(function(){return resolve(t("07e6"))}.bind(null,t)).catch(t.oe)},c={name:"wxParseTemplate7",props:{node:{}},components:{wxParseTemplate:o,wxParseImg:r,wxParseVideo:a,wxParseAudio:u},methods:{wxParseATap:function(e){var n=e.currentTarget.dataset.href;if(n){var t=this.$parent;while(!t.preview||"function"!==typeof t.preview)t=t.$parent;t.navigate(n,e)}}}};n.default=c}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/components/wxParseTemplate7"],{"3c22":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(){t.e("components/u-parse/components/wxParseTemplate8").then(function(){return resolve(t("4cb8"))}.bind(null,t)).catch(t.oe)},r=function(){t.e("components/u-parse/components/wxParseImg").then(function(){return resolve(t("3bad"))}.bind(null,t)).catch(t.oe)},a=function(){t.e("components/u-parse/components/wxParseVideo").then(function(){return resolve(t("5030"))}.bind(null,t)).catch(t.oe)},u=function(){t.e("components/u-parse/components/wxParseAudio").then(function(){return resolve(t("4087"))}.bind(null,t)).catch(t.oe)},c={name:"wxParseTemplate7",props:{node:{}},components:{wxParseTemplate:o,wxParseImg:r,wxParseVideo:a,wxParseAudio:u},methods:{wxParseATap:function(e){var n=e.currentTarget.dataset.href;if(n){var t=this.$parent;while(!t.preview||"function"!==typeof t.preview)t=t.$parent;t.navigate(n,e)}}}};n.default=c},"6e28":function(e,n,t){"use strict";t.r(n);var o=t("7641"),r=t("fea7");for(var a in r)"default"!==a&&function(e){t.d(n,e,(function(){return r[e]}))}(a);var u,c=t("f0c5"),s=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);n["default"]=s.exports},7641:function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o}));var r=function(){var e=this,n=e.$createElement;e._self._c},a=[]},fea7:function(e,n,t){"use strict";t.r(n);var o=t("3c22"),r=t.n(o);for(var a in o)"default"!==a&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/u-parse/components/wxParseTemplate7-create-component',
|
||||
{
|
||||
'components/u-parse/components/wxParseTemplate7-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("80aa"))
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("6e28"))
|
||||
})
|
||||
},
|
||||
[['components/u-parse/components/wxParseTemplate7-create-component']]
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/components/wxParseTemplate8"],{"149b":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(){t.e("components/u-parse/components/wxParseTemplate9").then(function(){return resolve(t("7d3e"))}.bind(null,t)).catch(t.oe)},r=function(){t.e("components/u-parse/components/wxParseImg").then(function(){return resolve(t("3458"))}.bind(null,t)).catch(t.oe)},a=function(){t.e("components/u-parse/components/wxParseVideo").then(function(){return resolve(t("50b5"))}.bind(null,t)).catch(t.oe)},u=function(){t.e("components/u-parse/components/wxParseAudio").then(function(){return resolve(t("07e6"))}.bind(null,t)).catch(t.oe)},c={name:"wxParseTemplate8",props:{node:{}},components:{wxParseTemplate:o,wxParseImg:r,wxParseVideo:a,wxParseAudio:u},methods:{wxParseATap:function(e){var n=e.currentTarget.dataset.href;if(n){var t=this.$parent;while(!t.preview||"function"!==typeof t.preview)t=t.$parent;t.navigate(n,e)}}}};n.default=c},"5ef0":function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o}));var r=function(){var e=this,n=e.$createElement;e._self._c},a=[]},"8b20":function(e,n,t){"use strict";t.r(n);var o=t("5ef0"),r=t("df0d");for(var a in r)"default"!==a&&function(e){t.d(n,e,(function(){return r[e]}))}(a);var u,c=t("f0c5"),s=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);n["default"]=s.exports},df0d:function(e,n,t){"use strict";t.r(n);var o=t("149b"),r=t.n(o);for(var a in o)"default"!==a&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/components/wxParseTemplate8"],{"1ed1":function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o}));var r=function(){var e=this,n=e.$createElement;e._self._c},a=[]},"4cb8":function(e,n,t){"use strict";t.r(n);var o=t("1ed1"),r=t("854d");for(var a in r)"default"!==a&&function(e){t.d(n,e,(function(){return r[e]}))}(a);var u,c=t("f0c5"),s=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);n["default"]=s.exports},"6ed1":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(){t.e("components/u-parse/components/wxParseTemplate9").then(function(){return resolve(t("782c"))}.bind(null,t)).catch(t.oe)},r=function(){t.e("components/u-parse/components/wxParseImg").then(function(){return resolve(t("3bad"))}.bind(null,t)).catch(t.oe)},a=function(){t.e("components/u-parse/components/wxParseVideo").then(function(){return resolve(t("5030"))}.bind(null,t)).catch(t.oe)},u=function(){t.e("components/u-parse/components/wxParseAudio").then(function(){return resolve(t("4087"))}.bind(null,t)).catch(t.oe)},c={name:"wxParseTemplate8",props:{node:{}},components:{wxParseTemplate:o,wxParseImg:r,wxParseVideo:a,wxParseAudio:u},methods:{wxParseATap:function(e){var n=e.currentTarget.dataset.href;if(n){var t=this.$parent;while(!t.preview||"function"!==typeof t.preview)t=t.$parent;t.navigate(n,e)}}}};n.default=c},"854d":function(e,n,t){"use strict";t.r(n);var o=t("6ed1"),r=t.n(o);for(var a in o)"default"!==a&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/u-parse/components/wxParseTemplate8-create-component',
|
||||
{
|
||||
'components/u-parse/components/wxParseTemplate8-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("8b20"))
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("4cb8"))
|
||||
})
|
||||
},
|
||||
[['components/u-parse/components/wxParseTemplate8-create-component']]
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/components/wxParseTemplate9"],{"0622":function(e,n,t){"use strict";t.r(n);var o=t("1058"),r=t.n(o);for(var a in o)"default"!==a&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a},1058:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(){t.e("components/u-parse/components/wxParseTemplate10").then(function(){return resolve(t("9dc2"))}.bind(null,t)).catch(t.oe)},r=function(){t.e("components/u-parse/components/wxParseImg").then(function(){return resolve(t("3458"))}.bind(null,t)).catch(t.oe)},a=function(){t.e("components/u-parse/components/wxParseVideo").then(function(){return resolve(t("50b5"))}.bind(null,t)).catch(t.oe)},u=function(){t.e("components/u-parse/components/wxParseAudio").then(function(){return resolve(t("07e6"))}.bind(null,t)).catch(t.oe)},c={name:"wxParseTemplate9",props:{node:{}},components:{wxParseTemplate:o,wxParseImg:r,wxParseVideo:a,wxParseAudio:u},methods:{wxParseATap:function(e){var n=e.currentTarget.dataset.href;if(n){var t=this.$parent;while(!t.preview||"function"!==typeof t.preview)t=t.$parent;t.navigate(n,e)}}}};n.default=c},"7d3e":function(e,n,t){"use strict";t.r(n);var o=t("d0dc"),r=t("0622");for(var a in r)"default"!==a&&function(e){t.d(n,e,(function(){return r[e]}))}(a);var u,c=t("f0c5"),s=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);n["default"]=s.exports},d0dc:function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o}));var r=function(){var e=this,n=e.$createElement;e._self._c},a=[]}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/components/wxParseTemplate9"],{"0266":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(){t.e("components/u-parse/components/wxParseTemplate10").then(function(){return resolve(t("70a4"))}.bind(null,t)).catch(t.oe)},r=function(){t.e("components/u-parse/components/wxParseImg").then(function(){return resolve(t("3bad"))}.bind(null,t)).catch(t.oe)},a=function(){t.e("components/u-parse/components/wxParseVideo").then(function(){return resolve(t("5030"))}.bind(null,t)).catch(t.oe)},u=function(){t.e("components/u-parse/components/wxParseAudio").then(function(){return resolve(t("4087"))}.bind(null,t)).catch(t.oe)},c={name:"wxParseTemplate9",props:{node:{}},components:{wxParseTemplate:o,wxParseImg:r,wxParseVideo:a,wxParseAudio:u},methods:{wxParseATap:function(e){var n=e.currentTarget.dataset.href;if(n){var t=this.$parent;while(!t.preview||"function"!==typeof t.preview)t=t.$parent;t.navigate(n,e)}}}};n.default=c},"53bb":function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o}));var r=function(){var e=this,n=e.$createElement;e._self._c},a=[]},"5f9b":function(e,n,t){"use strict";t.r(n);var o=t("0266"),r=t.n(o);for(var a in o)"default"!==a&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a},"782c":function(e,n,t){"use strict";t.r(n);var o=t("53bb"),r=t("5f9b");for(var a in r)"default"!==a&&function(e){t.d(n,e,(function(){return r[e]}))}(a);var u,c=t("f0c5"),s=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);n["default"]=s.exports}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/u-parse/components/wxParseTemplate9-create-component',
|
||||
{
|
||||
'components/u-parse/components/wxParseTemplate9-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("7d3e"))
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("782c"))
|
||||
})
|
||||
},
|
||||
[['components/u-parse/components/wxParseTemplate9-create-component']]
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/components/wxParseVideo"],{"2f0d":function(e,n,t){"use strict";t.r(n);var r=t("6be1"),u=t.n(r);for(var a in r)"default"!==a&&function(e){t.d(n,e,(function(){return r[e]}))}(a);n["default"]=u.a},"50b5":function(e,n,t){"use strict";t.r(n);var r=t("5eba"),u=t("2f0d");for(var a in u)"default"!==a&&function(e){t.d(n,e,(function(){return u[e]}))}(a);var o,c=t("f0c5"),f=Object(c["a"])(u["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],o);n["default"]=f.exports},"5eba":function(e,n,t){"use strict";var r;t.d(n,"b",(function(){return u})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return r}));var u=function(){var e=this,n=e.$createElement;e._self._c},a=[]},"6be1":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r={name:"wxParseVideo",props:{node:{}}};n.default=r}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/components/wxParseVideo"],{5030:function(n,e,t){"use strict";t.r(e);var r=t("df7c"),u=t("f0e9");for(var c in u)"default"!==c&&function(n){t.d(e,n,(function(){return u[n]}))}(c);var a,o=t("f0c5"),f=Object(o["a"])(u["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],a);e["default"]=f.exports},"75bc":function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={name:"wxParseVideo",props:{node:{}}};e.default=r},df7c:function(n,e,t){"use strict";var r;t.d(e,"b",(function(){return u})),t.d(e,"c",(function(){return c})),t.d(e,"a",(function(){return r}));var u=function(){var n=this,e=n.$createElement;n._self._c},c=[]},f0e9:function(n,e,t){"use strict";t.r(e);var r=t("75bc"),u=t.n(r);for(var c in r)"default"!==c&&function(n){t.d(e,n,(function(){return r[n]}))}(c);e["default"]=u.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/u-parse/components/wxParseVideo-create-component',
|
||||
{
|
||||
'components/u-parse/components/wxParseVideo-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("50b5"))
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("5030"))
|
||||
})
|
||||
},
|
||||
[['components/u-parse/components/wxParseVideo-create-component']]
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/u-parse"],{"1f2c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(n("8a8f"));function r(t){return t&&t.__esModule?t:{default:t}}var u=function(){n.e("components/u-parse/components/wxParseTemplate0").then(function(){return resolve(n("dcb7"))}.bind(null,n)).catch(n.oe)},i={name:"wxParse",props:{loading:{type:Boolean,default:!1},className:{type:String,default:""},content:{type:String,default:""},noData:{type:String,default:""},startHandler:{type:Function,default:function(){return function(t){t.attr.class=null,t.attr.style=null}}},endHandler:{type:Function,default:null},charsHandler:{type:Function,default:null},imageProp:{type:Object,default:function(){return{mode:"aspectFit",padding:0,lazyLoad:!1,domain:""}}}},components:{wxParseTemplate:u},data:function(){return{imageUrls:[]}},computed:{nodes:function(){var t=this.content,e=this.noData,n=this.imageProp,r=this.startHandler,u=this.endHandler,i=this.charsHandler,l=t||e,o={start:r,end:u,chars:i},s=(0,a.default)(l,o,n,this);return this.imageUrls=s.imageUrls,console.log(s),s.nodes}},methods:{navigate:function(t,e){this.$emit("navigate",t,e)},preview:function(t,e){this.imageUrls.length&&(wx.previewImage({current:t,urls:this.imageUrls}),this.$emit("preview",t,e))},removeImageUrl:function(t){var e=this.imageUrls;e.splice(e.indexOf(t),1)}}};e.default=i},"3d9d":function(t,e,n){"use strict";n.r(e);var a=n("c836"),r=n("5427");for(var u in r)"default"!==u&&function(t){n.d(e,t,(function(){return r[t]}))}(u);var i,l=n("f0c5"),o=Object(l["a"])(r["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],i);e["default"]=o.exports},5427:function(t,e,n){"use strict";n.r(e);var a=n("1f2c"),r=n.n(a);for(var u in a)"default"!==u&&function(t){n.d(e,t,(function(){return a[t]}))}(u);e["default"]=r.a},c836:function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return a}));var r=function(){var t=this,e=t.$createElement;t._self._c},u=[]}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/u-parse"],{6029:function(e,t,n){"use strict";n.r(t);var a=n("6e77"),r=n("8a95");for(var u in r)"default"!==u&&function(e){n.d(t,e,(function(){return r[e]}))}(u);var i,l=n("f0c5"),o=Object(l["a"])(r["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],i);t["default"]=o.exports},"6e77":function(e,t,n){"use strict";var a;n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return a}));var r=function(){var e=this,t=e.$createElement;e._self._c},u=[]},"8a95":function(e,t,n){"use strict";n.r(t);var a=n("e2c3"),r=n.n(a);for(var u in a)"default"!==u&&function(e){n.d(t,e,(function(){return a[e]}))}(u);t["default"]=r.a},e2c3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n("06ef"));function r(e){return e&&e.__esModule?e:{default:e}}var u=function(){n.e("components/u-parse/components/wxParseTemplate0").then(function(){return resolve(n("9c85"))}.bind(null,n)).catch(n.oe)},i={name:"wxParse",props:{loading:{type:Boolean,default:!1},className:{type:String,default:""},content:{type:String,default:""},noData:{type:String,default:""},startHandler:{type:Function,default:function(){return function(e){e.attr.class=null,e.attr.style=null}}},endHandler:{type:Function,default:null},charsHandler:{type:Function,default:null},imageProp:{type:Object,default:function(){return{mode:"aspectFit",padding:0,lazyLoad:!1,domain:""}}}},components:{wxParseTemplate:u},data:function(){return{imageUrls:[]}},computed:{nodes:function(){var e=this.content,t=this.noData,n=this.imageProp,r=this.startHandler,u=this.endHandler,i=this.charsHandler,l=e||t,o={start:r,end:u,chars:i},s=(0,a.default)(l,o,n,this);return this.imageUrls=s.imageUrls,console.log(s),s.nodes}},methods:{navigate:function(e,t){this.$emit("navigate",e,t)},preview:function(e,t){this.imageUrls.length&&(wx.previewImage({current:e,urls:this.imageUrls}),this.$emit("preview",e,t))},removeImageUrl:function(e){var t=this.imageUrls;t.splice(t.indexOf(e),1)}}};t.default=i}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/u-parse/u-parse-create-component',
|
||||
{
|
||||
'components/u-parse/u-parse-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("3d9d"))
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("6029"))
|
||||
})
|
||||
},
|
||||
[['components/u-parse/u-parse-create-component']]
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/userLogin"],{2258:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("26cb");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u={data:function(){return{}},props:{url:{type:String,default:""}},mounted:function(){},computed:c({},(0,r.mapState)(["user","isLogin"])),methods:{onTap:function(){this.$store.commit("changeUserLogin",!1)},getUserInfo:function(){var t=this;e.getUserProfile({desc:"登录",success:function(n){console.log("getUserProfile授权成功",n,t.url),e.redirectTo({url:"/pageTwo/login/login?name="+n.userInfo.nickName+"&headimg="+n.userInfo.avatarUrl+"&url="+t.url}),t.$store.commit("changeUserLogin",!1)},fail:function(e){console.log("授权失败",e)}})},DecodeEncryptedData:function(t){var n=this;n.$model.getDecryptdata({encryptedData:t.encryptedData,iv:t.iv,tenantid:e.getStorageSync("tenantid"),sessionid:e.getStorageSync("sessionid")}).then((function(t){0==t.code&&(e.redirectTo({url:"/pageTwo/login/login"}),console.log("解密成功",t))})).catch((function(e){console.log("解密失败",e)}))}}};t.default=u}).call(this,n("543d")["default"])},"6f26":function(e,t,n){"use strict";var r=n("7d35"),o=n.n(r);o.a},"7d35":function(e,t,n){},"7e91":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return r}));var o=function(){var e=this,t=e.$createElement;e._self._c},c=[]},b06c:function(e,t,n){"use strict";n.r(t);var r=n("7e91"),o=n("db9a");for(var c in o)"default"!==c&&function(e){n.d(t,e,(function(){return o[e]}))}(c);n("6f26");var i,u=n("f0c5"),a=Object(u["a"])(o["default"],r["b"],r["c"],!1,null,"9cd79c3e",null,!1,r["a"],i);t["default"]=a.exports},db9a:function(e,t,n){"use strict";n.r(t);var r=n("2258"),o=n.n(r);for(var c in r)"default"!==c&&function(e){n.d(t,e,(function(){return r[e]}))}(c);t["default"]=o.a}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/userLogin"],{"2b56":function(e,t,n){"use strict";n.r(t);var r=n("c93d"),o=n.n(r);for(var c in r)"default"!==c&&function(e){n.d(t,e,(function(){return r[e]}))}(c);t["default"]=o.a},"4a91":function(e,t,n){},"80e0":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return r}));var o=function(){var e=this,t=e.$createElement;e._self._c},c=[]},"9bd3":function(e,t,n){"use strict";var r=n("4a91"),o=n.n(r);o.a},c93d:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("26cb");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a={data:function(){return{}},props:{url:{type:String,default:""},code:{type:String,default:""}},mounted:function(){},computed:c({},(0,r.mapState)(["user","isLogin"])),methods:{onTap:function(){this.$store.commit("changeUserLogin",!1)},getUserInfo:function(){var t=this;e.getUserProfile({desc:"登录",success:function(n){console.log("getUserProfile授权成功",n,e.getStorageSync("tenantid")),t.$store.dispatch("getConfig",{tenantId:e.getStorageSync("tenantid")}),e.redirectTo({url:"/pageTwo/login/login?name="+n.userInfo.nickName+"&headimg="+n.userInfo.avatarUrl+"&url="+t.url+"&code="+t.code}),t.$store.commit("changeUserLogin",!1)},fail:function(e){console.log("授权失败",e)}})},DecodeEncryptedData:function(t){var n=this;n.$model.getDecryptdata({encryptedData:t.encryptedData,iv:t.iv,tenantid:e.getStorageSync("tenantid"),sessionid:e.getStorageSync("sessionid")}).then((function(t){0==t.code&&(e.redirectTo({url:"/pageTwo/login/login"}),console.log("解密成功",t))})).catch((function(e){console.log("解密失败",e)}))}}};t.default=a}).call(this,n("543d")["default"])},d753:function(e,t,n){"use strict";n.r(t);var r=n("80e0"),o=n("2b56");for(var c in o)"default"!==c&&function(e){n.d(t,e,(function(){return o[e]}))}(c);n("9bd3");var i,a=n("f0c5"),u=Object(a["a"])(o["default"],r["b"],r["c"],!1,null,"8dbff688",null,!1,r["a"],i);t["default"]=u.exports}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/userLogin-create-component',
|
||||
{
|
||||
'components/userLogin-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("b06c"))
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("d753"))
|
||||
})
|
||||
},
|
||||
[['components/userLogin-create-component']]
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
<block wx:if="{{isLogin}}"><view class="wrapper data-v-9cd79c3e"><view data-event-opts="{{[['tap',[['onTap',['$event']]]]]}}" class="popup data-v-9cd79c3e" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="block data-v-9cd79c3e" catchtap="__e"><view data-event-opts="{{[['tap',[['getUserInfo',['$event']]]]]}}" class="item data-v-9cd79c3e" bindtap="__e"><image class="image1 data-v-9cd79c3e" src="../static/2253.png"></image><view class="text data-v-9cd79c3e"><view class="data-v-9cd79c3e"><text class="data-v-9cd79c3e"></text>体重体脂测量与记录</view><view class="data-v-9cd79c3e"><text class="data-v-9cd79c3e"></text>18项身体数据分析、身体评分</view><view class="data-v-9cd79c3e"><text class="data-v-9cd79c3e"></text>满足所有人群检测</view></view><view class="pbtn data-v-9cd79c3e">立即体验</view></view><icon data-event-opts="{{[['tap',[['onTap',['$event']]]]]}}" class="t-icon t-icon-quxiao image2 data-v-9cd79c3e" bindtap="__e"></icon></view></view></view></block>
|
||||
<block wx:if="{{isLogin}}"><view class="wrapper data-v-8dbff688"><view data-event-opts="{{[['tap',[['onTap',['$event']]]]]}}" class="popup data-v-8dbff688" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="block data-v-8dbff688" catchtap="__e"><view data-event-opts="{{[['tap',[['getUserInfo',['$event']]]]]}}" class="item data-v-8dbff688" bindtap="__e"><image class="image1 data-v-8dbff688" src="../static/2253.png"></image><view class="text data-v-8dbff688"><view class="data-v-8dbff688"><text class="data-v-8dbff688"></text>体重体脂测量与记录</view><view class="data-v-8dbff688"><text class="data-v-8dbff688"></text>18项身体数据分析、身体评分</view><view class="data-v-8dbff688"><text class="data-v-8dbff688"></text>满足所有人群检测</view></view><view class="pbtn data-v-8dbff688">立即体验</view></view><icon data-event-opts="{{[['tap',[['onTap',['$event']]]]]}}" class="t-icon t-icon-quxiao image2 data-v-8dbff688" bindtap="__e"></icon></view></view></view></block>
|
||||
|
|
@ -1 +1 @@
|
|||
.wrapper.data-v-9cd79c3e{width:100%;height:100%}.popup.data-v-9cd79c3e{position:fixed;top:0;bottom:0;right:0;left:0;z-index:99;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4)}.item.data-v-9cd79c3e{width:291px;height:324px;position:relative;left:0;right:0;top:0;margin:auto;bottom:0;padding:0;border-radius:15px}.item text.data-v-9cd79c3e{width:8px;height:8px;background:#00c6c6;display:inline-block;border-radius:50%;margin-right:5px}.item .image1.data-v-9cd79c3e{width:291px;height:324px}.item .text.data-v-9cd79c3e{position:absolute;top:60%;font-size:12px;color:#666;line-height:28px;right:10px;left:30px;text-align:left}.pbtn.data-v-9cd79c3e{background:#fca82d;text-align:center;border-radius:10px;margin:5px auto;width:50%;color:#fff;position:absolute;bottom:10px;left:0;right:0;margin:auto;padding:5px 0}.image2.data-v-9cd79c3e{width:30px;height:30px;font-size:30px;color:#666;background-color:#fff;border-radius:50%;position:absolute;left:0;right:0;margin:20px auto}
|
||||
.wrapper.data-v-8dbff688{width:100%;height:100%}.popup.data-v-8dbff688{position:fixed;top:0;bottom:0;right:0;left:0;z-index:99;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4)}.item.data-v-8dbff688{width:291px;height:324px;position:relative;left:0;right:0;top:0;margin:auto;bottom:0;padding:0;border-radius:15px}.item text.data-v-8dbff688{width:8px;height:8px;background:#00c6c6;display:inline-block;border-radius:50%;margin-right:5px}.item .image1.data-v-8dbff688{width:291px;height:324px}.item .text.data-v-8dbff688{position:absolute;top:60%;font-size:12px;color:#666;line-height:28px;right:10px;left:30px;text-align:left}.pbtn.data-v-8dbff688{background:#fca82d;text-align:center;border-radius:10px;margin:5px auto;width:50%;color:#fff;position:absolute;bottom:10px;left:0;right:0;margin:auto;padding:5px 0}.image2.data-v-8dbff688{width:30px;height:30px;font-size:30px;color:#666;background-color:#fff;border-radius:50%;position:absolute;left:0;right:0;margin:20px auto}
|
||||
|
|
@ -1 +1 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/compk/pkdetail"],{"06a1":function(e,t,n){},"0967":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return r}));var o=function(){var e=this,t=e.$createElement,n=(e._self._c,Math.abs(e.memInfo.weightdiff)),r=Number(e.memInfo.weightdiff),o=Math.abs(e.memInfo.fat_wdiff),i=Number(e.memInfo.fat_wdiff);e.$mp.data=Object.assign({},{$root:{g0:n,m0:r,g1:o,m1:i}})},i=[]},"4fba":function(e,t,n){"use strict";n.r(t);var r=n("0967"),o=n("7107");for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);n("d582");var a,f=n("f0c5"),c=Object(f["a"])(o["default"],r["b"],r["c"],!1,null,"0a5398a8",null,!1,r["a"],a);t["default"]=c.exports},"61bc":function(e,t,n){"use strict";(function(e){n("0d2f");r(n("66fd"));var t=r(n("4fba"));function r(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n("543d")["createPage"])},7107:function(e,t,n){"use strict";n.r(t);var r=n("e6d8"),o=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t["default"]=o.a},d582:function(e,t,n){"use strict";var r=n("06a1"),o=n.n(r);o.a},e6d8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("26cb");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f={onLoad:function(e){var t=this;console.log("options",e),e.info&&(t.infoID=JSON.parse(e.info),t.handleSharepic(t.infoID))},computed:i({},(0,r.mapState)(["user"])),methods:{handleSharepic:function(e){var t=this,n=this;n.$model.getresultdiff({familyid:e.familyid,firstId:e.firstId,secondId:e.secondId}).then((function(e){console.log("res",e),0==e.code?n.handleInfoList(e.data):t.$tools.msg(e.message)}))},handleInfoList:function(e){var t=this;t.memInfo=e;for(var n=t.weightInfo.infoList(e.firstresult),r=t.memInfo.secondresult,o=0;o<n.length;o++){n[o].svalue=r[n[o].key];var i=n[o].svalue-n[o].fvalue;n[o].vs=i<0?"-1":i>0?"1":"0",n[o].num=Math.abs(i).toFixed(2),r[n[o].level]&&(n[o].sevaluation=r[n[o].level]),console.log("listStr[i].title",n[o].title)}t.listStr=n,console.log("listStr[i]",t.memInfo,n)}},data:function(){return{infoID:{},memInfo:{},listStr:[]}}};t.default=f}},[["61bc","common/runtime","common/vendor"]]]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/compk/pkdetail"],{"122d":function(e,t,n){"use strict";n.r(t);var o=n("4772"),r=n("f274");for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);n("372d");var a,f=n("f0c5"),c=Object(f["a"])(r["default"],o["b"],o["c"],!1,null,"7e29c6ae",null,!1,o["a"],a);t["default"]=c.exports},"372d":function(e,t,n){"use strict";var o=n("e351"),r=n.n(o);r.a},4772:function(e,t,n){"use strict";var o;n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o}));var r=function(){var e=this,t=e.$createElement,n=(e._self._c,Math.abs(e.memInfo.weightdiff)),o=Number(e.memInfo.weightdiff),r=Math.abs(e.memInfo.fat_wdiff),i=Number(e.memInfo.fat_wdiff);e.$mp.data=Object.assign({},{$root:{g0:n,m0:o,g1:r,m1:i}})},i=[]},"597a":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n("26cb");function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f={onLoad:function(t){var n=this;e.setNavigationBarColor({frontColor:"#ffffff",backgroundColor:this.appTheme}),console.log("options",t),t.info&&(n.infoID=JSON.parse(t.info),n.handleSharepic(n.infoID))},computed:i({},(0,o.mapState)(["user","appTheme"])),methods:{handleSharepic:function(e){var t=this,n=this;n.$model.getresultdiff({familyid:e.familyid,firstId:e.firstId,secondId:e.secondId}).then((function(e){console.log("res",e),0==e.code?n.handleInfoList(e.data):t.$tools.msg(e.message)}))},handleInfoList:function(e){var t=this;t.memInfo=e;for(var n=t.weightInfo.infoList(e.firstresult),o=t.memInfo.secondresult,r=0;r<n.length;r++){n[r].svalue=o[n[r].key];var i=n[r].svalue-n[r].fvalue;n[r].vs=i<0?"-1":i>0?"1":"0",n[r].num=Math.abs(i).toFixed(2),o[n[r].level]&&(n[r].sevaluation=o[n[r].level]),console.log("listStr[i].title",n[r].title)}t.listStr=n,console.log("listStr[i]",t.memInfo,n)}},data:function(){return{infoID:{},memInfo:{},listStr:[]}}};t.default=f}).call(this,n("543d")["default"])},d043:function(e,t,n){"use strict";(function(e){n("e568");o(n("66fd"));var t=o(n("122d"));function o(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n("543d")["createPage"])},e351:function(e,t,n){},f274:function(e,t,n){"use strict";n.r(t);var o=n("597a"),r=n.n(o);for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);t["default"]=r.a}},[["d043","common/runtime","common/vendor"]]]);
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"navigationBarTitleText": "对比详情",
|
||||
"navigationBarBackgroundColor": "#F9FAFC",
|
||||
"usingComponents": {}
|
||||
}
|
||||
|
|
@ -1 +1 @@
|
|||
<view class="content pkconp data-v-0a5398a8"><view class="header data-v-0a5398a8"><view class="left data-v-0a5398a8"><image class="image1 data-v-0a5398a8" src="{{memInfo.headimg}}"></image></view><view class="right data-v-0a5398a8"><view class="name data-v-0a5398a8">{{memInfo.name?memInfo.name:memInfo.nickname}}</view><view class="top data-v-0a5398a8"><view class="age data-v-0a5398a8">{{"性别:"+(memInfo.sex==0?'未知':memInfo.sex==1?'男':'女')}}</view><view class="data-v-0a5398a8">{{"年龄:"+user.age+"岁"}}</view></view></view></view><view class="box data-v-0a5398a8"><view class="item data-v-0a5398a8"><view class="data-v-0a5398a8">{{memInfo.day?memInfo.day:'0'}}</view><text class="data-v-0a5398a8">时间(天)</text></view><view class="item data-v-0a5398a8"><view class="data-v-0a5398a8">{{$root.g0}}</view><block wx:if="{{$root.m0>0}}"><text class="data-v-0a5398a8">增重(kg)</text></block><block wx:else><text class="data-v-0a5398a8">减重(kg)</text></block></view><view class="item data-v-0a5398a8"><view class="data-v-0a5398a8">{{$root.g1}}</view><block wx:if="{{$root.m1>0}}"><text class="data-v-0a5398a8">增脂(kg)</text></block><block wx:else><text class="data-v-0a5398a8">减脂(kg)</text></block></view><view class="time data-v-0a5398a8"><view class="data-v-0a5398a8"><icon class="yuanxing data-v-0a5398a8"></icon>{{memInfo.time+''}}</view>数据变化</view></view><view class="control data-v-0a5398a8"><view class="title data-v-0a5398a8"><view class="name data-v-0a5398a8"></view><view class="data-v-0a5398a8">趋势</view><view class="data-v-0a5398a8">之前</view><view class="data-v-0a5398a8">之后</view></view><block wx:for="{{listStr}}" wx:for-item="ite" wx:for-index="ind" wx:key="ind"><view class="li data-v-0a5398a8"><view class="name data-v-0a5398a8"><view class="icon data-v-0a5398a8"><icon class="{{['t-icon','data-v-0a5398a8','t-icon-'+ite.key]}}"></icon></view><text class="data-v-0a5398a8">{{ite.title}}</text></view><block wx:if="{{ite.title=='体型'||ite.title=='肥胖等级'}}"><view class="num data-v-0a5398a8"><icon class="t-icon t-icon-hengxian data-v-0a5398a8"></icon></view></block><block wx:else><view class="num data-v-0a5398a8">{{''+ite.num+''}}<block wx:if="{{ite.vs=='1'}}"><icon class="t-icon t-icon-shang data-v-0a5398a8"></icon></block><block wx:if="{{ite.vs=='-1'}}"><icon class="t-icon t-icon-xia data-v-0a5398a8"></icon></block><block wx:if="{{!ite.vs||ite.vs=='0'||ite.num=='0.00'}}"><icon class="t-icon t-icon-hengxian data-v-0a5398a8"></icon></block></view></block><block wx:if="{{ite.title=='体型'||ite.title=='肥胖等级'}}"><view class="f0 data-v-0a5398a8"><text class="data-v-0a5398a8">{{ite.fevaluation}}</text></view></block><block wx:else><view class="f data-v-0a5398a8"><view class="data-v-0a5398a8">{{ite.fvalue}}</view><block wx:if="{{ite.fevaluation}}"><text class="data-v-0a5398a8">{{ite.fevaluation}}</text></block></view></block><block wx:if="{{ite.title=='体型'||ite.title=='肥胖等级'}}"><view class="f0 data-v-0a5398a8"><text class="data-v-0a5398a8">{{ite.sevaluation}}</text></view></block><block wx:else><view class="f data-v-0a5398a8"><view class="data-v-0a5398a8">{{ite.svalue}}</view><block wx:if="{{ite.fevaluation}}"><text class="data-v-0a5398a8">{{ite.sevaluation}}</text></block></view></block></view></block></view></view>
|
||||
<view class="content pkconp data-v-7e29c6ae"><view class="header data-v-7e29c6ae"><view class="left data-v-7e29c6ae"><image class="image1 data-v-7e29c6ae" src="{{memInfo.headimg}}"></image></view><view class="right data-v-7e29c6ae"><view class="name data-v-7e29c6ae">{{memInfo.name?memInfo.name:memInfo.nickname}}</view><view class="top data-v-7e29c6ae"><view class="age data-v-7e29c6ae">{{"性别:"+(memInfo.sex==0?'未知':memInfo.sex==1?'男':'女')}}</view><view class="data-v-7e29c6ae">{{"年龄:"+user.age+"岁"}}</view></view></view></view><view class="box data-v-7e29c6ae"><view class="item data-v-7e29c6ae"><view class="data-v-7e29c6ae">{{memInfo.day?memInfo.day:'0'}}</view><text class="data-v-7e29c6ae">时间(天)</text></view><view class="item data-v-7e29c6ae"><view class="data-v-7e29c6ae">{{$root.g0}}</view><block wx:if="{{$root.m0>0}}"><text class="data-v-7e29c6ae">增重(kg)</text></block><block wx:else><text class="data-v-7e29c6ae">减重(kg)</text></block></view><view class="item data-v-7e29c6ae"><view class="data-v-7e29c6ae">{{$root.g1}}</view><block wx:if="{{$root.m1>0}}"><text class="data-v-7e29c6ae">增脂(kg)</text></block><block wx:else><text class="data-v-7e29c6ae">减脂(kg)</text></block></view><view class="time data-v-7e29c6ae"><view class="data-v-7e29c6ae"><icon class="yuanxing data-v-7e29c6ae"></icon>{{memInfo.time+''}}</view>数据变化</view></view><view class="control data-v-7e29c6ae"><view class="title data-v-7e29c6ae"><view class="name data-v-7e29c6ae"></view><view class="data-v-7e29c6ae">趋势</view><view class="data-v-7e29c6ae">之前</view><view class="data-v-7e29c6ae">之后</view></view><block wx:for="{{listStr}}" wx:for-item="ite" wx:for-index="ind" wx:key="ind"><view class="li data-v-7e29c6ae"><view class="name data-v-7e29c6ae"><view class="icon data-v-7e29c6ae"><icon class="{{['t-icon','data-v-7e29c6ae','t-icon-'+ite.key]}}"></icon></view><text class="data-v-7e29c6ae">{{ite.title}}</text></view><block wx:if="{{ite.title=='体型'||ite.title=='肥胖等级'}}"><view class="num data-v-7e29c6ae"><icon class="t-icon t-icon-hengxian data-v-7e29c6ae"></icon></view></block><block wx:else><view class="num data-v-7e29c6ae">{{''+ite.num+''}}<block wx:if="{{ite.vs=='1'}}"><icon class="t-icon t-icon-shang data-v-7e29c6ae"></icon></block><block wx:if="{{ite.vs=='-1'}}"><icon class="t-icon t-icon-xia data-v-7e29c6ae"></icon></block><block wx:if="{{!ite.vs||ite.vs=='0'||ite.num=='0.00'}}"><icon class="t-icon t-icon-hengxian data-v-7e29c6ae"></icon></block></view></block><block wx:if="{{ite.title=='体型'||ite.title=='肥胖等级'}}"><view class="f0 data-v-7e29c6ae"><text class="data-v-7e29c6ae">{{ite.fevaluation}}</text></view></block><block wx:else><view class="f data-v-7e29c6ae"><view class="data-v-7e29c6ae">{{ite.fvalue}}</view><block wx:if="{{ite.fevaluation}}"><text class="data-v-7e29c6ae">{{ite.fevaluation}}</text></block></view></block><block wx:if="{{ite.title=='体型'||ite.title=='肥胖等级'}}"><view class="f0 data-v-7e29c6ae"><text class="data-v-7e29c6ae">{{ite.sevaluation}}</text></view></block><block wx:else><view class="f data-v-7e29c6ae"><view class="data-v-7e29c6ae">{{ite.svalue}}</view><block wx:if="{{ite.fevaluation}}"><text class="data-v-7e29c6ae">{{ite.sevaluation}}</text></block></view></block></view></block></view></view>
|
||||
|
|
@ -1 +1 @@
|
|||
.age.data-v-0a5398a8{margin-right:20px}.icon.data-v-0a5398a8{width:18px;height:18px;padding:3px;margin-right:7px;background-color:#aaa;border-radius:50%;display:flex;align-items:center;justify-content:center}.t-icon-hengxian.data-v-0a5398a8{height:4px!important}
|
||||
.age.data-v-7e29c6ae{margin-right:20px}.icon.data-v-7e29c6ae{width:18px;height:18px;padding:3px;margin-right:7px;background-color:#aaa;border-radius:50%;display:flex;align-items:center;justify-content:center}.t-icon-hengxian.data-v-7e29c6ae{height:4px!important}
|
||||
|
|
@ -1 +0,0 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/home/index"],{"0160":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n("26cb");function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=function(){n.e("components/header/head").then(function(){return resolve(n("1c56"))}.bind(null,n)).catch(n.oe)},a={components:{headTop:i},data:function(){return{token:null,devtype:0,infoList:[],deviceId:null}},computed:c({},(0,o.mapState)(["user","MeasureResult"])),onUnload:function(){e.switchTab({url:"/pages/index/index"})},onShow:function(){var t=this;t.token=e.getStorageSync("token"),e.onBluetoothAdapterStateChange((function(e){t.$store.commit("changeBluetooth",e.available),console.log("报告页监听蓝牙状态openBluetoothAdapter",e.available)}))},onLoad:function(e){var t=this;console.log("options",e),e&&(t.devtype=e.t,t.deviceId=e.sn),this.$nextTick((function(){t.handleToggle(0)}))},watch:{MeasureResult:function(){this.handleToggle(0)}},methods:{handleToggle:function(e){var t=this;if(t.MeasureResult){for(var n=this.weightInfo.infoList(t.MeasureResult).slice(1,14),o=0;o<n.length;o++)n[o].showCon=o==e&&!n[o].showCon;t.infoList=this.weightInfo.infoList(t.MeasureResult).slice(1,14)}}}};t.default=a}).call(this,n("543d")["default"])},"580f":function(e,t,n){"use strict";(function(e){n("0d2f");o(n("66fd"));var t=o(n("7c13"));function o(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n("543d")["createPage"])},"6e79":function(e,t,n){},"7c13":function(e,t,n){"use strict";n.r(t);var o=n("c774"),r=n("f037");for(var c in r)"default"!==c&&function(e){n.d(t,e,(function(){return r[e]}))}(c);n("d41e");var u,i=n("f0c5"),a=Object(i["a"])(r["default"],o["b"],o["c"],!1,null,"220974b7",null,!1,o["a"],u);t["default"]=a.exports},c774:function(e,t,n){"use strict";var o;n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return o}));var r=function(){var e=this,t=e.$createElement;e._self._c},c=[]},d41e:function(e,t,n){"use strict";var o=n("6e79"),r=n.n(o);r.a},f037:function(e,t,n){"use strict";n.r(t);var o=n("0160"),r=n.n(o);for(var c in o)"default"!==c&&function(e){n.d(t,e,(function(){return o[e]}))}(c);t["default"]=r.a}},[["580f","common/runtime","common/vendor"]]]);
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"navigationBarTitleText": "报告页",
|
||||
"usingComponents": {
|
||||
"head-top": "/components/header/head"
|
||||
}
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
<view class="common homePage data-v-220974b7"><head-top vue-id="3498c184-1" token="{{token}}" class="data-v-220974b7" bind:__l="__l"></head-top><view class="myinfo myinfoPage data-v-220974b7"><view hidden="{{!(MeasureResult&&MeasureResult.muscle==0)}}" class="mt-15 data-v-220974b7"><view class="unusual data-v-220974b7">体脂测量异常,请重新测量</view></view><block wx:if="{{infoList.length}}"><view class="data-v-220974b7"><view class="box data-v-220974b7"><view class="left data-v-220974b7"><text class="text data-v-220974b7">本次健康评分</text><view class="circleprogress data-v-220974b7"><view class="wrapper data-v-220974b7"><view class="leftprogress data-v-220974b7" style="{{'width:'+(MeasureResult.cmi+'%')+';'}}"></view></view><view class="fen data-v-220974b7"><view class="data-v-220974b7">{{MeasureResult.cmi}}</view>分</view></view></view><view class="right data-v-220974b7"><view class="item data-v-220974b7"><view class="data-v-220974b7"><text class="data-v-220974b7">{{MeasureResult.height}}</text>cm</view><view class="tivon data-v-220974b7">身高</view></view><view class="item data-v-220974b7"><view class="data-v-220974b7"><text class="data-v-220974b7">{{MeasureResult.weight}}</text>kg</view><view class="data-v-220974b7">体重</view></view><view class="item data-v-220974b7"><view class="data-v-220974b7"><text class="data-v-220974b7">{{MeasureResult.bodyage}}</text>岁</view><view class="data-v-220974b7">体龄</view></view><view class="item data-v-220974b7"><view class="data-v-220974b7"><text class="f-14 data-v-220974b7">{{MeasureResult.body}}</text></view><view class="data-v-220974b7">体型</view></view></view></view><view class="box1 data-v-220974b7"><view class="h2 data-v-220974b7"><icon class="yuanxing data-v-220974b7"></icon>其他人体成分分析</view><block wx:for="{{infoList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['handleToggle',[index]]]]]}}" class="list data-v-220974b7" bindtap="__e"><view class="block data-v-220974b7"><view class="name data-v-220974b7"><icon class="{{['t-icon','iconfont','data-v-220974b7','t-icon-'+item.key]}}"></icon>{{''+item.title+''}}</view><block wx:if="{{item.title!='肥胖等级'}}"><view class="val data-v-220974b7">{{''+(item.fvalue?item.fvalue:'0')+item.dw+''}}</view></block><block wx:else><view class="val0 data-v-220974b7">{{item.fevaluation}}</view></block><block wx:if="{{item.title!='肥胖等级'}}"><view class="level data-v-220974b7"><view class="btnf data-v-220974b7" style="{{'background-color:'+(item.color)+';'}}">{{item.fevaluation}}</view></view></block><view class="icon data-v-220974b7"><block wx:if="{{item.desc}}"><icon class="iconfont icon-arrow-down data-v-220974b7"></icon></block></view></view><block wx:if="{{item.showCon}}"><view class="desc data-v-220974b7"><block wx:if="{{item.desc}}"><view class="data-v-220974b7">{{item.desc}}</view></block><block wx:if="{{item.slist}}"><view class="statuevue data-v-220974b7"><block wx:if="{{item.title!='基础代谢'}}"><view class="bi data-v-220974b7"><block wx:for="{{item.slist}}" wx:for-item="ite" wx:for-index="ind" wx:key="ind"><view class="item data-v-220974b7" style="{{'background-color:'+(ite.color)+';'}}"><view class="span1 data-v-220974b7">{{ite.text}}</view><block wx:if="{{ite.text==item.fevaluation&&item.fvalue>ite.maxvalue}}"><view class="peobox data-v-220974b7" style="right:10px;"><view class="xx data-v-220974b7"></view></view></block><block wx:if="{{ite.text==item.fevaluation&&item.fvalue<=ite.maxvalue}}"><view class="peobox data-v-220974b7" style="{{('left:'+item.leftval+'rem')}}"><view class="xx data-v-220974b7"></view></view></block><block wx:if="{{ind<item.slist.length-1}}"><view class="span data-v-220974b7">{{ite.maxvalue}}</view></block></view></block></view></block><block wx:else><view class="data-v-220974b7"><view class="kcalClass data-v-220974b7">{{'标准值:'+item.slist[0].maxvalue+'kcal'}}</view></view></block></view></block></view></block></view></block></view><view class="introction data-v-220974b7"><icon class="t-icon t-icon-tishi data-v-220974b7"></icon><label class="_span data-v-220974b7">此测量数据仅供参考,不可代替医学专业测试!</label></view></view></block><block wx:else><view class="nolist data-v-220974b7"><icon class="iconfont icon-zanwu data-v-220974b7"></icon></view></block></view></view>
|
||||
|
|
@ -1 +0,0 @@
|
|||
.myinfo.data-v-220974b7{margin-top:105px}.val0.data-v-220974b7{position:absolute;left:40%;margin-left:3px}.wrapper.data-v-220974b7{z-index:9!important}.unusual.data-v-220974b7{font-size:14px;border-radius:8px;text-align:center;color:#e83a1e;margin:15px;background:#f7e4c8;padding:5px 0}.introction.data-v-220974b7{display:flex;margin-left:15px;margin-bottom:20px;font-size:12px;color:#666}.introction .t-icon.data-v-220974b7{width:15px;height:15px;margin-right:5px}
|
||||
|
|
@ -1 +1 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/login/detail"],{"1d2d":function(n,e,t){"use strict";t.r(e);var o=t("a86b"),u=t("6f79");for(var r in u)"default"!==r&&function(n){t.d(e,n,(function(){return u[n]}))}(r);t("a884");var a,i=t("f0c5"),c=Object(i["a"])(u["default"],o["b"],o["c"],!1,null,"d70053c0",null,!1,o["a"],a);e["default"]=c.exports},"6f79":function(n,e,t){"use strict";t.r(e);var o=t("f143"),u=t.n(o);for(var r in o)"default"!==r&&function(n){t.d(e,n,(function(){return o[n]}))}(r);e["default"]=u.a},a86b:function(n,e,t){"use strict";t.d(e,"b",(function(){return u})),t.d(e,"c",(function(){return r})),t.d(e,"a",(function(){return o}));var o={uParse:function(){return Promise.all([t.e("common/vendor"),t.e("components/u-parse/u-parse")]).then(t.bind(null,"3d9d"))}},u=function(){var n=this,e=n.$createElement;n._self._c},r=[]},a884:function(n,e,t){"use strict";var o=t("ef88"),u=t.n(o);u.a},b12a:function(n,e,t){"use strict";(function(n){t("0d2f");o(t("66fd"));var e=o(t("1d2d"));function o(n){return n&&n.__esModule?n:{default:n}}wx.__webpack_require_UNI_MP_PLUGIN__=t,n(e.default)}).call(this,t("543d")["createPage"])},ef88:function(n,e,t){},f143:function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(){Promise.all([t.e("common/vendor"),t.e("components/u-parse/u-parse")]).then(function(){return resolve(t("3d9d"))}.bind(null,t)).catch(t.oe)},u={data:function(){return{content:"",url:null}},components:{uParse:o},onLoad:function(n){console.log(n),n.id&&this.getOrderDetail(n.id),n.url?this.url=n.url:this.url=null},methods:{getOrderDetail:function(n){var e=this;this.$model.GetAdListDetail({id:n}).then((function(n){0==n.code&&(e.content=n.data,console.log("资讯详情",n))}))},preview:function(n,e){},navigate:function(n,e){}}};e.default=u}},[["b12a","common/runtime","common/vendor"]]]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/login/detail"],{"02ac":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("26cb");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=function(){Promise.all([n.e("common/vendor"),n.e("components/u-parse/u-parse")]).then(function(){return resolve(n("6029"))}.bind(null,n)).catch(n.oe)},i={data:function(){return{content:"",url:null}},components:{uParse:a},computed:u({},(0,r.mapState)(["user","appTheme"])),onLoad:function(t){e.setNavigationBarColor({frontColor:"#ffffff",backgroundColor:this.appTheme}),console.log(t),t.id&&this.getOrderDetail(t.id),t.url?this.url=t.url:this.url=null},methods:{getOrderDetail:function(e){var t=this;this.$model.GetAdListDetail({id:e}).then((function(e){0==e.code&&(t.content=e.data,console.log("资讯详情",e))}))},preview:function(e,t){},navigate:function(e,t){}}};t.default=i}).call(this,n("543d")["default"])},"04ae":function(e,t,n){},2567:function(e,t,n){"use strict";n.r(t);var r=n("d886"),o=n("59ce");for(var u in o)"default"!==u&&function(e){n.d(t,e,(function(){return o[e]}))}(u);n("d729");var c,a=n("f0c5"),i=Object(a["a"])(o["default"],r["b"],r["c"],!1,null,"474e7f20",null,!1,r["a"],c);t["default"]=i.exports},"59ce":function(e,t,n){"use strict";n.r(t);var r=n("02ac"),o=n.n(r);for(var u in r)"default"!==u&&function(e){n.d(t,e,(function(){return r[e]}))}(u);t["default"]=o.a},d729:function(e,t,n){"use strict";var r=n("04ae"),o=n.n(r);o.a},d886:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return r}));var r={uParse:function(){return Promise.all([n.e("common/vendor"),n.e("components/u-parse/u-parse")]).then(n.bind(null,"6029"))}},o=function(){var e=this,t=e.$createElement;e._self._c},u=[]},fa16:function(e,t,n){"use strict";(function(e){n("e568");r(n("66fd"));var t=r(n("2567"));function r(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n("543d")["createPage"])}},[["fa16","common/runtime","common/vendor"]]]);
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"navigationBarTitleText": "协议",
|
||||
"navigationBarBackgroundColor": "#F9FAFC",
|
||||
"usingComponents": {
|
||||
"u-parse": "/components/u-parse/u-parse"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
<view class="content data-v-d70053c0"><view class="data-v-d70053c0"><view class="title data-v-d70053c0">{{content.title}}</view><view class="time data-v-d70053c0">{{"发布时间:"+content.createtime}}</view><u-parse vue-id="a67412e2-1" content="{{content.content}}" data-event-opts="{{[['^preview',[['preview']]],['^navigate',[['navigate']]]]}}" bind:preview="__e" bind:navigate="__e" class="data-v-d70053c0" bind:__l="__l"></u-parse></view></view>
|
||||
<view class="content data-v-474e7f20"><view class="data-v-474e7f20"><view class="title data-v-474e7f20">{{content.title}}</view><view class="time data-v-474e7f20">{{"发布时间:"+content.createtime}}</view><u-parse vue-id="a67412e2-1" content="{{content.content}}" data-event-opts="{{[['^preview',[['preview']]],['^navigate',[['navigate']]]]}}" bind:preview="__e" bind:navigate="__e" class="data-v-474e7f20" bind:__l="__l"></u-parse></view></view>
|
||||
|
|
@ -1,22 +1,22 @@
|
|||
.wxParse.data-v-d70053c0{width:100%;font-family:Helvetica,sans-serif;font-size:30rpx;color:#666;line-height:1.8}.wxParse view.data-v-d70053c0{word-break:hyphenate}.wxParse .inline.data-v-d70053c0{display:inline;margin:0;padding:0}.wxParse .div.data-v-d70053c0{margin:0;padding:0}.wxParse .h1 .text.data-v-d70053c0{font-size:2em;margin:.67em 0}.wxParse .h2 .text.data-v-d70053c0{font-size:1.5em;margin:.83em 0}.wxParse .h3 .text.data-v-d70053c0{font-size:1.17em;margin:1em 0}.wxParse .h4 .text.data-v-d70053c0{margin:1.33em 0}.wxParse .h5 .text.data-v-d70053c0{font-size:.83em;margin:1.67em 0}.wxParse .h6 .text.data-v-d70053c0{font-size:.67em;margin:2.33em 0}.wxParse .h1 .text.data-v-d70053c0,
|
||||
.wxParse .h2 .text.data-v-d70053c0,
|
||||
.wxParse .h3 .text.data-v-d70053c0,
|
||||
.wxParse .h4 .text.data-v-d70053c0,
|
||||
.wxParse .h5 .text.data-v-d70053c0,
|
||||
.wxParse .h6 .text.data-v-d70053c0,
|
||||
.wxParse .b.data-v-d70053c0,
|
||||
.wxParse .strong.data-v-d70053c0{font-weight:bolder}.wxParse .p.data-v-d70053c0{margin:1em 0}.wxParse .i.data-v-d70053c0,
|
||||
.wxParse .cite.data-v-d70053c0,
|
||||
.wxParse .em.data-v-d70053c0,
|
||||
.wxParse .var.data-v-d70053c0,
|
||||
.wxParse .address.data-v-d70053c0{font-style:italic}.wxParse .pre.data-v-d70053c0,
|
||||
.wxParse .tt.data-v-d70053c0,
|
||||
.wxParse .code.data-v-d70053c0,
|
||||
.wxParse .kbd.data-v-d70053c0,
|
||||
.wxParse .samp.data-v-d70053c0{font-family:monospace}.wxParse .pre.data-v-d70053c0{overflow:auto;background:#f5f5f5;padding:16rpx;white-space:pre;margin:1em 0rpx}.wxParse .code.data-v-d70053c0{display:inline;background:#f5f5f5}.wxParse .big.data-v-d70053c0{font-size:1.17em}.wxParse .small.data-v-d70053c0,
|
||||
.wxParse .sub.data-v-d70053c0,
|
||||
.wxParse .sup.data-v-d70053c0{font-size:.83em}.wxParse .sub.data-v-d70053c0{vertical-align:sub}.wxParse .sup.data-v-d70053c0{vertical-align:super}.wxParse .s.data-v-d70053c0,
|
||||
.wxParse .strike.data-v-d70053c0,
|
||||
.wxParse .del.data-v-d70053c0{text-decoration:line-through}.wxParse .strong.data-v-d70053c0,
|
||||
.wxParse .s.data-v-d70053c0{display:inline}.wxParse .a.data-v-d70053c0{color:#00bfff}.wxParse .video.data-v-d70053c0{text-align:center;margin:22rpx 0}.wxParse .video-video.data-v-d70053c0{width:100%}.wxParse .img.data-v-d70053c0{display:inline-block;width:0;height:0;max-width:100%;overflow:hidden}.wxParse .blockquote.data-v-d70053c0{margin:10rpx 0;padding:22rpx 0 22rpx 22rpx;font-family:Courier,Calibri,宋体;background:#f5f5f5;border-left:6rpx solid #dbdbdb}.wxParse .blockquote .p.data-v-d70053c0{margin:0}.wxParse .ul.data-v-d70053c0, .wxParse .ol.data-v-d70053c0{display:block;margin:1em 0;padding-left:33rpx}.wxParse .ol.data-v-d70053c0{list-style-type:disc}.wxParse .ol.data-v-d70053c0{list-style-type:decimal}.wxParse .ol>weixin-parse-template.data-v-d70053c0,.wxParse .ul>weixin-parse-template.data-v-d70053c0{display:list-item;align-items:baseline;text-align:match-parent}.wxParse .ol>.li.data-v-d70053c0,.wxParse .ul>.li.data-v-d70053c0{display:list-item;align-items:baseline;text-align:match-parent}.wxParse .ul .ul.data-v-d70053c0, .wxParse .ol .ul.data-v-d70053c0{list-style-type:circle}.wxParse .ol .ol .ul.data-v-d70053c0, .wxParse .ol .ul .ul.data-v-d70053c0, .wxParse .ul .ol .ul.data-v-d70053c0, .wxParse .ul .ul .ul.data-v-d70053c0{list-style-type:square}.wxParse .u.data-v-d70053c0{text-decoration:underline}.wxParse .hide.data-v-d70053c0{display:none}.wxParse .del.data-v-d70053c0{display:inline}.wxParse .figure.data-v-d70053c0{overflow:hidden}.wxParse .table.data-v-d70053c0{width:100%}.wxParse .thead.data-v-d70053c0, .wxParse .tfoot.data-v-d70053c0, .wxParse .tr.data-v-d70053c0{display:flex;flex-direction:row}.wxParse .tr.data-v-d70053c0{width:100%;display:flex;border-right:2rpx solid #e0e0e0;border-bottom:2rpx solid #e0e0e0}.wxParse .th.data-v-d70053c0,
|
||||
.wxParse .td.data-v-d70053c0{display:flex;width:1276rpx;overflow:auto;flex:1;padding:11rpx;border-left:2rpx solid #e0e0e0}.wxParse .td.data-v-d70053c0:last{border-top:2rpx solid #e0e0e0}.wxParse .th.data-v-d70053c0{background:#f0f0f0;border-top:2rpx solid #e0e0e0}.content.data-v-d70053c0{padding:30rpx}.title.data-v-d70053c0{width:100%;margin-bottom:15px;text-align:left;font-size:18px;font-weight:700}.time.data-v-d70053c0{width:100%;text-align:left;margin-bottom:15px;color:#666}
|
||||
.wxParse.data-v-474e7f20{width:100%;font-family:Helvetica,sans-serif;font-size:30rpx;color:#666;line-height:1.8}.wxParse view.data-v-474e7f20{word-break:hyphenate}.wxParse .inline.data-v-474e7f20{display:inline;margin:0;padding:0}.wxParse .div.data-v-474e7f20{margin:0;padding:0}.wxParse .h1 .text.data-v-474e7f20{font-size:2em;margin:.67em 0}.wxParse .h2 .text.data-v-474e7f20{font-size:1.5em;margin:.83em 0}.wxParse .h3 .text.data-v-474e7f20{font-size:1.17em;margin:1em 0}.wxParse .h4 .text.data-v-474e7f20{margin:1.33em 0}.wxParse .h5 .text.data-v-474e7f20{font-size:.83em;margin:1.67em 0}.wxParse .h6 .text.data-v-474e7f20{font-size:.67em;margin:2.33em 0}.wxParse .h1 .text.data-v-474e7f20,
|
||||
.wxParse .h2 .text.data-v-474e7f20,
|
||||
.wxParse .h3 .text.data-v-474e7f20,
|
||||
.wxParse .h4 .text.data-v-474e7f20,
|
||||
.wxParse .h5 .text.data-v-474e7f20,
|
||||
.wxParse .h6 .text.data-v-474e7f20,
|
||||
.wxParse .b.data-v-474e7f20,
|
||||
.wxParse .strong.data-v-474e7f20{font-weight:bolder}.wxParse .p.data-v-474e7f20{margin:1em 0}.wxParse .i.data-v-474e7f20,
|
||||
.wxParse .cite.data-v-474e7f20,
|
||||
.wxParse .em.data-v-474e7f20,
|
||||
.wxParse .var.data-v-474e7f20,
|
||||
.wxParse .address.data-v-474e7f20{font-style:italic}.wxParse .pre.data-v-474e7f20,
|
||||
.wxParse .tt.data-v-474e7f20,
|
||||
.wxParse .code.data-v-474e7f20,
|
||||
.wxParse .kbd.data-v-474e7f20,
|
||||
.wxParse .samp.data-v-474e7f20{font-family:monospace}.wxParse .pre.data-v-474e7f20{overflow:auto;background:#f5f5f5;padding:16rpx;white-space:pre;margin:1em 0rpx}.wxParse .code.data-v-474e7f20{display:inline;background:#f5f5f5}.wxParse .big.data-v-474e7f20{font-size:1.17em}.wxParse .small.data-v-474e7f20,
|
||||
.wxParse .sub.data-v-474e7f20,
|
||||
.wxParse .sup.data-v-474e7f20{font-size:.83em}.wxParse .sub.data-v-474e7f20{vertical-align:sub}.wxParse .sup.data-v-474e7f20{vertical-align:super}.wxParse .s.data-v-474e7f20,
|
||||
.wxParse .strike.data-v-474e7f20,
|
||||
.wxParse .del.data-v-474e7f20{text-decoration:line-through}.wxParse .strong.data-v-474e7f20,
|
||||
.wxParse .s.data-v-474e7f20{display:inline}.wxParse .a.data-v-474e7f20{color:#00bfff}.wxParse .video.data-v-474e7f20{text-align:center;margin:22rpx 0}.wxParse .video-video.data-v-474e7f20{width:100%}.wxParse .img.data-v-474e7f20{display:inline-block;width:0;height:0;max-width:100%;overflow:hidden}.wxParse .blockquote.data-v-474e7f20{margin:10rpx 0;padding:22rpx 0 22rpx 22rpx;font-family:Courier,Calibri,宋体;background:#f5f5f5;border-left:6rpx solid #dbdbdb}.wxParse .blockquote .p.data-v-474e7f20{margin:0}.wxParse .ul.data-v-474e7f20, .wxParse .ol.data-v-474e7f20{display:block;margin:1em 0;padding-left:33rpx}.wxParse .ol.data-v-474e7f20{list-style-type:disc}.wxParse .ol.data-v-474e7f20{list-style-type:decimal}.wxParse .ol>weixin-parse-template.data-v-474e7f20,.wxParse .ul>weixin-parse-template.data-v-474e7f20{display:list-item;align-items:baseline;text-align:match-parent}.wxParse .ol>.li.data-v-474e7f20,.wxParse .ul>.li.data-v-474e7f20{display:list-item;align-items:baseline;text-align:match-parent}.wxParse .ul .ul.data-v-474e7f20, .wxParse .ol .ul.data-v-474e7f20{list-style-type:circle}.wxParse .ol .ol .ul.data-v-474e7f20, .wxParse .ol .ul .ul.data-v-474e7f20, .wxParse .ul .ol .ul.data-v-474e7f20, .wxParse .ul .ul .ul.data-v-474e7f20{list-style-type:square}.wxParse .u.data-v-474e7f20{text-decoration:underline}.wxParse .hide.data-v-474e7f20{display:none}.wxParse .del.data-v-474e7f20{display:inline}.wxParse .figure.data-v-474e7f20{overflow:hidden}.wxParse .table.data-v-474e7f20{width:100%}.wxParse .thead.data-v-474e7f20, .wxParse .tfoot.data-v-474e7f20, .wxParse .tr.data-v-474e7f20{display:flex;flex-direction:row}.wxParse .tr.data-v-474e7f20{width:100%;display:flex;border-right:2rpx solid #e0e0e0;border-bottom:2rpx solid #e0e0e0}.wxParse .th.data-v-474e7f20,
|
||||
.wxParse .td.data-v-474e7f20{display:flex;width:1276rpx;overflow:auto;flex:1;padding:11rpx;border-left:2rpx solid #e0e0e0}.wxParse .td.data-v-474e7f20:last{border-top:2rpx solid #e0e0e0}.wxParse .th.data-v-474e7f20{background:#f0f0f0;border-top:2rpx solid #e0e0e0}.content.data-v-474e7f20{padding:30rpx}.title.data-v-474e7f20{width:100%;margin-bottom:15px;text-align:left;font-size:18px;font-weight:700}.time.data-v-474e7f20{width:100%;text-align:left;margin-bottom:15px;color:#666}
|
||||
|
|
@ -1 +1 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/login/login"],{"0efb":function(e,n,t){"use strict";t.r(n);var o=t("4e5e"),a=t.n(o);for(var s in o)"default"!==s&&function(e){t.d(n,e,(function(){return o[e]}))}(s);n["default"]=a.a},"36c0":function(e,n,t){"use strict";(function(e){t("0d2f");o(t("66fd"));var n=o(t("4c9e"));function o(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=t,e(n.default)}).call(this,t("543d")["createPage"])},"4c9e":function(e,n,t){"use strict";t.r(n);var o=t("dca2"),a=t("0efb");for(var s in a)"default"!==s&&function(e){t.d(n,e,(function(){return a[e]}))}(s);t("c28d");var i,c=t("f0c5"),d=Object(c["a"])(a["default"],o["b"],o["c"],!1,null,"94373a76",null,!1,o["a"],i);n["default"]=d.exports},"4e5e":function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t={data:function(){return{phone:"",code:"",disabled:!1,second:60,value:1,iswxphone:!0,infoRes:{}}},onLoad:function(n){var t=this;n&&(t.infoRes=n,console.log("登录信息",n,t.infoRes)),this.iswxphone=e.getStorageSync("iswxphone")},methods:{checkboxChange:function(e){this.value=e.detail.value.length?e.detail.value[0]:"0"},handleTelLogin:function(){var n=this;0!=this.value?this.phone?/^1[3456789]\d{9}$/.test(n.phone)?n.code?this.$model.getRegister({phone:n.phone,tenantId:e.getStorageSync("tenantid"),sessionId:e.getStorageSync("sessionid"),name:n.infoRes.name,headImg:n.infoRes.headimg,code:n.code,isvrcode:!0}).then((function(t){0==t.code?(e.setStorageSync("token",t.data.token),e.setStorageSync("iswxphone",t.data.iswxphone),e.setStorageSync("refreshtoken",t.data.refreshtoken),e.setStorageSync("sessionid",t.data.sessionid),"active"==n.infoRes.url?e.reLaunch({url:"/pages/index/active"}):e.reLaunch({url:"/pages/index/index"})):n.$tools.msg(t.message)})).catch((function(e){})):n.$tools.msg("请输入验证码"):n.$tools.msg("请输入正确的手机号码"):n.$tools.msg("请输入手机号"):n.$tools.msg("请先勾选同意每日一称《个人信息保护政策》")},handleCode:function(){var e=this;e.phone?/^1[3456789]\d{9}$/.test(e.phone)?e.$model.getSendCode({phone:e.phone}).then((function(n){if(console.log(n),0==n.code){e.disabled=!0;var t=setInterval((function(){--e.second}),1e3);setTimeout((function(){clearInterval(t),e.disabled=!1,e.second=60}),6e4)}else e.$tools.msg(n.message)})).catch((function(e){})):e.$tools.msg("请输入正确的手机号码"):e.$tools.msg("请输入手机号")},getPhoneNumber:function(n){var t=this;0!=this.value?"getPhoneNumber:ok"==n.detail.errMsg&&(console.log("res",n),this.$model.getregister({tenantId:e.getStorageSync("tenantid"),sessionId:e.getStorageSync("sessionid"),encryptedData:n.detail.encryptedData,iv:n.detail.iv,name:t.infoRes.name,headImg:t.infoRes.headimg,fansid:e.getStorageSync("fansid")}).then((function(n){0==n.code&&(t.value=1,e.setStorageSync("token",n.data.token),e.setStorageSync("iswxphone",n.data.iswxphone),e.setStorageSync("refreshtoken",n.data.refreshtoken),e.setStorageSync("sessionid",n.data.sessionid),"active"==t.infoRes.url?e.reLaunch({url:"/pages/index/active"}):e.reLaunch({url:"/pages/index/index"}))}))):t.$tools.msg("请先勾选同意每日一称《个人信息保护政策")},handlexieyi:function(){e.navigateTo({url:"/pageTwo/login/detail?id=08DA1796-2FEE-4813-8B0C-8A45E7A57E70"})}}};n.default=t}).call(this,t("543d")["default"])},c28d:function(e,n,t){"use strict";var o=t("e43a"),a=t.n(o);a.a},dca2:function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return a})),t.d(n,"c",(function(){return s})),t.d(n,"a",(function(){return o}));var a=function(){var e=this,n=e.$createElement;e._self._c},s=[]},e43a:function(e,n,t){}},[["36c0","common/runtime","common/vendor"]]]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/login/login"],{"2b86":function(e,t,n){"use strict";n.r(t);var o=n("5c76"),a=n("2c33");for(var i in a)"default"!==i&&function(e){n.d(t,e,(function(){return a[e]}))}(i);n("fe55");var r,s=n("f0c5"),c=Object(s["a"])(a["default"],o["b"],o["c"],!1,null,"22aabdb1",null,!1,o["a"],r);t["default"]=c.exports},"2c33":function(e,t,n){"use strict";n.r(t);var o=n("2e16"),a=n.n(o);for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);t["default"]=a.a},"2e16":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n("26cb");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s={data:function(){return{phone:"",code:"",disabled:!1,second:60,value:1,iswxphone:!0,infoRes:{}}},computed:i({},(0,o.mapState)(["configBox","appTheme"])),onLoad:function(t){e.setNavigationBarColor({frontColor:"#ffffff",backgroundColor:this.appTheme});var n=this;t&&(n.infoRes=t,console.log("登录信息",t,n.infoRes,this.configBox)),this.iswxphone=e.getStorageSync("iswxphone")},methods:{checkboxChange:function(e){this.value=e.detail.value.length?e.detail.value[0]:"0"},handleTelLogin:function(){var t=this;0!=this.value?this.phone?/^1[3456789]\d{9}$/.test(t.phone)?t.code?this.$model.getRegister({phone:t.phone,tenantId:e.getStorageSync("tenantid"),sessionId:e.getStorageSync("sessionid"),name:t.infoRes.name,headImg:t.infoRes.headimg,code:t.code,isvrcode:!0}).then((function(n){0==n.code?(e.setStorageSync("token",n.data.token),e.setStorageSync("iswxphone",n.data.iswxphone),e.setStorageSync("refreshtoken",n.data.refreshtoken),e.setStorageSync("sessionid",n.data.sessionid),"active"==t.infoRes.url?e.reLaunch({url:"/pages/index/active?code="+t.infoRes.code}):e.reLaunch({url:"/pages/index/index"})):t.$tools.msg(n.message)})).catch((function(e){})):t.$tools.msg("请输入验证码"):t.$tools.msg("请输入正确的手机号码"):t.$tools.msg("请输入手机号"):t.$tools.msg("请先勾选同意《个人信息保护政策》")},handleCode:function(){var e=this;e.phone?/^1[3456789]\d{9}$/.test(e.phone)?e.$model.getSendCode({phone:e.phone}).then((function(t){if(console.log(t),0==t.code){e.disabled=!0;var n=setInterval((function(){--e.second}),1e3);setTimeout((function(){clearInterval(n),e.disabled=!1,e.second=60}),6e4)}else e.$tools.msg(t.message)})).catch((function(e){})):e.$tools.msg("请输入正确的手机号码"):e.$tools.msg("请输入手机号")},getPhoneNumber:function(t){var n=this;0!=this.value?"getPhoneNumber:ok"==t.detail.errMsg&&(console.log("res",t),this.$model.getregister({tenantId:e.getStorageSync("tenantid"),sessionId:e.getStorageSync("sessionid"),encryptedData:t.detail.encryptedData,iv:t.detail.iv,name:n.infoRes.name,headImg:n.infoRes.headimg,fansid:e.getStorageSync("fansid")}).then((function(t){0==t.code&&(n.value=1,e.setStorageSync("token",t.data.token),e.setStorageSync("iswxphone",t.data.iswxphone),e.setStorageSync("refreshtoken",t.data.refreshtoken),e.setStorageSync("sessionid",t.data.sessionid),"active"==n.infoRes.url?e.reLaunch({url:"/pages/index/active?code="+n.infoRes.code}):e.reLaunch({url:"/pages/index/index"}))}))):n.$tools.msg("请先勾选同意个人信息保护政策")},handlexieyi:function(){e.navigateTo({url:"/pageTwo/login/detail?id="+this.configBox.privacyid})}}};t.default=s}).call(this,n("543d")["default"])},"5c76":function(e,t,n){"use strict";var o;n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o}));var a=function(){var e=this,t=e.$createElement;e._self._c},i=[]},"8c66":function(e,t,n){"use strict";(function(e){n("e568");o(n("66fd"));var t=o(n("2b86"));function o(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n("543d")["createPage"])},a4cf:function(e,t,n){},fe55:function(e,t,n){"use strict";var o=n("a4cf"),a=n.n(o);a.a}},[["8c66","common/runtime","common/vendor"]]]);
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"navigationBarTitleText": "登录",
|
||||
"navigationBarBackgroundColor": "#F9FAFC",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {}
|
||||
}
|
||||
|
|
@ -1 +1 @@
|
|||
<view class="content data-v-94373a76"><view class="top data-v-94373a76"><image src="/static/logo.png" class="data-v-94373a76"></image><text class="data-v-94373a76">每日一称-成人</text></view><view class="edit data-v-94373a76"><view class="ts data-v-94373a76"><view class="data-v-94373a76">短信验证码登录</view></view><view class="editem data-v-94373a76"><view class="input data-v-94373a76"><input class="uni-input data-v-94373a76" placeholder="请输入手机号" data-event-opts="{{[['input',[['__set_model',['','phone','$event',[]]]]]]}}" value="{{phone}}" bindinput="__e"/></view><view class="input yanzheng data-v-94373a76"><view class="yanzhengma data-v-94373a76"><input class="uni-input data-v-94373a76" placeholder="请输入验证码" data-event-opts="{{[['input',[['__set_model',['','code','$event',[]]]]]]}}" value="{{code}}" bindinput="__e"/></view><button class="code data-v-94373a76" type="none" disabled="{{disabled}}" value="{{codeInfo}}" data-event-opts="{{[['tap',[['handleCode',['$event']]]],['input',[['__set_model',['','codeInfo','$event',[]]]]]]}}" bindtap="__e" bindinput="__e">{{(second<60?second+'S后重发':'获取验证码')+''}}</button></view></view><view data-event-opts="{{[['tap',[['handleTelLogin',['$event']]]]]}}" class="btnlogin data-v-94373a76" bindtap="__e">登录</view></view><view class="btnGroup data-v-94373a76"><block wx:if="{{iswxphone}}"><view class="wxbtn data-v-94373a76"><button open-type="getPhoneNumber" data-event-opts="{{[['getphonenumber',[['getPhoneNumber',['$event']]]]]}}" bindgetphonenumber="__e" class="data-v-94373a76"><icon class="iconfont icon-weixin data-v-94373a76"></icon><text class="data-v-94373a76">微信登录</text></button></view></block><view class="xieyi data-v-94373a76"><checkbox-group data-event-opts="{{[['change',[['checkboxChange',['$event']]]]]}}" class="group data-v-94373a76" bindchange="__e"><checkbox style="transform:scale(0.7);" value="{{1}}" checked="true" class="data-v-94373a76"></checkbox>同意每日一称<text data-event-opts="{{[['tap',[['handlexieyi',['$event']]]]]}}" bindtap="__e" class="data-v-94373a76">《个人信息保护政策》</text></checkbox-group></view></view></view>
|
||||
<view class="content data-v-22aabdb1"><view class="top data-v-22aabdb1"><image src="{{configBox.logo}}" class="data-v-22aabdb1"></image><text class="data-v-22aabdb1">{{configBox.title}}</text></view><view class="edit data-v-22aabdb1"><view class="ts data-v-22aabdb1"><view class="data-v-22aabdb1">短信验证码登录</view></view><view class="editem data-v-22aabdb1"><view class="input data-v-22aabdb1"><input class="uni-input data-v-22aabdb1" placeholder="请输入手机号" data-event-opts="{{[['input',[['__set_model',['','phone','$event',[]]]]]]}}" value="{{phone}}" bindinput="__e"/></view><view class="input yanzheng data-v-22aabdb1"><view class="yanzhengma data-v-22aabdb1"><input class="uni-input data-v-22aabdb1" placeholder="请输入验证码" data-event-opts="{{[['input',[['__set_model',['','code','$event',[]]]]]]}}" value="{{code}}" bindinput="__e"/></view><button class="code data-v-22aabdb1" type="none" disabled="{{disabled}}" value="{{codeInfo}}" data-event-opts="{{[['tap',[['handleCode',['$event']]]],['input',[['__set_model',['','codeInfo','$event',[]]]]]]}}" bindtap="__e" bindinput="__e">{{(second<60?second+'S后重发':'获取验证码')+''}}</button></view></view><view data-event-opts="{{[['tap',[['handleTelLogin',['$event']]]]]}}" class="btnlogin data-v-22aabdb1" bindtap="__e">登录</view></view><view class="btnGroup data-v-22aabdb1"><block wx:if="{{iswxphone}}"><view class="wxbtn data-v-22aabdb1"><button open-type="getPhoneNumber" data-event-opts="{{[['getphonenumber',[['getPhoneNumber',['$event']]]]]}}" bindgetphonenumber="__e" class="data-v-22aabdb1"><icon class="iconfont icon-weixin data-v-22aabdb1"></icon><text class="data-v-22aabdb1">微信登录</text></button></view></block><view class="xieyi data-v-22aabdb1"><checkbox-group data-event-opts="{{[['change',[['checkboxChange',['$event']]]]]}}" class="group data-v-22aabdb1" bindchange="__e"><checkbox style="transform:scale(0.7);" value="{{1}}" checked="true" class="data-v-22aabdb1"></checkbox>{{"同意"+configBox.title}}<text data-event-opts="{{[['tap',[['handlexieyi',['$event']]]]]}}" bindtap="__e" class="data-v-22aabdb1">《个人信息保护政策》</text></checkbox-group></view></view></view>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue