修复测量记录显示问题
This commit is contained in:
parent
73ef550930
commit
94efac76af
|
|
@ -1,4 +0,0 @@
|
||||||
|
|
||||||
require('./common/runtime.js')
|
|
||||||
require('./common/vendor.js')
|
|
||||||
require('./common/main.js')
|
|
||||||
|
|
@ -1,89 +0,0 @@
|
||||||
{
|
|
||||||
"pages": [
|
|
||||||
"pages/home/home",
|
|
||||||
"pages/skiping/skip",
|
|
||||||
"pages/skiping/charts",
|
|
||||||
"pages/lunging/vitalcapacity",
|
|
||||||
"pages/lunging/charts",
|
|
||||||
"pages/my/me",
|
|
||||||
"pages/score/score",
|
|
||||||
"pages/PublicCards/PublicCards",
|
|
||||||
"pages/body/body",
|
|
||||||
"pages/zixun/list"
|
|
||||||
],
|
|
||||||
"subPackages": [
|
|
||||||
{
|
|
||||||
"root": "pageTwo",
|
|
||||||
"pages": [
|
|
||||||
"history/history",
|
|
||||||
"history/historyDetail",
|
|
||||||
"compk/contrast",
|
|
||||||
"compk/pkdetail",
|
|
||||||
"cardList/card",
|
|
||||||
"business/business",
|
|
||||||
"business/addDevice",
|
|
||||||
"business/search",
|
|
||||||
"score/history",
|
|
||||||
"score/report",
|
|
||||||
"my/manage",
|
|
||||||
"message/list",
|
|
||||||
"my/userInfo",
|
|
||||||
"login/forgetPassword",
|
|
||||||
"login/login",
|
|
||||||
"my/about",
|
|
||||||
"setting/setting",
|
|
||||||
"setting/password",
|
|
||||||
"setting/email",
|
|
||||||
"setting/phone",
|
|
||||||
"devices/search",
|
|
||||||
"devices/G02",
|
|
||||||
"devices/PCL",
|
|
||||||
"devices/PCV02",
|
|
||||||
"devices/PCT01",
|
|
||||||
"devices/B20",
|
|
||||||
"notepad/notepad",
|
|
||||||
"notepad/addNotepad",
|
|
||||||
"PublicCards/charts",
|
|
||||||
"PublicCards/history",
|
|
||||||
"PublicCards/contrast",
|
|
||||||
"PublicCards/pkdetail",
|
|
||||||
"home/inheritHeighet",
|
|
||||||
"home/bmi",
|
|
||||||
"webview/webview"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"window": {
|
|
||||||
"navigationBarTextStyle": "white",
|
|
||||||
"navigationBarTitleText": "",
|
|
||||||
"navigationBarBackgroundColor": "#37cc92",
|
|
||||||
"backgroundColor": "#fff"
|
|
||||||
},
|
|
||||||
"tabBar": {
|
|
||||||
"color": "#333",
|
|
||||||
"fontSize": "14px",
|
|
||||||
"selectedColor": "#37cc92",
|
|
||||||
"backgroundColor": "#fff",
|
|
||||||
"list": [
|
|
||||||
{
|
|
||||||
"pagePath": "pages/home/home",
|
|
||||||
"iconPath": "static/shou.png",
|
|
||||||
"selectedIconPath": "static/shou2.png",
|
|
||||||
"text": "记录"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pagePath": "pages/zixun/list",
|
|
||||||
"iconPath": "static/ping.png",
|
|
||||||
"selectedIconPath": "static/ping2.png",
|
|
||||||
"text": "资讯"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pagePath": "pages/my/me",
|
|
||||||
"iconPath": "static/wo.png",
|
|
||||||
"selectedIconPath": "static/wo2.png",
|
|
||||||
"text": "我的"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"usingComponents": {}
|
|
||||||
}
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
@import './common/main.wxss';
|
|
||||||
|
|
||||||
[data-custom-hidden="true"],[bind-data-custom-hidden="true"]{display: none !important;}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/main"],{"0326":function(t,e,o){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={data:function(){return{}},onLaunch:function(){this.handleCityList(),this.handleCooperationUrl(),this.updataWeiXin(),console.log("App Launch")},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")},methods:{checkForUpdates:function(){var e=this;plus.runtime.getProperty(plus.runtime.appid,(function(o){t.setStorageSync("VERSION",o.version),e.$store.commit("changePhoneInfo",{info:o}),console.log("当前应用版本号",o),e.handleCityList(),e.handleCooperationUrl(),e.handleoginversion(o)}))},handleoginversion:function(t){var e=this;e.$model.getloginversion({}).then((function(t){console.log("是否登录及版本号",t),e.handleCancelUpdate(t.code)}))},handleCancelUpdate:function(e){0==e?t.reLaunch({url:"/pages/home/home?type=1"}):setTimeout((function(){t.reLaunch({url:"/pageTwo/login/login"})}),500)},handleCityList:function(){var t=this;t.$model.getGradeList({}).then((function(e){console.log("|全部地区",e.data),0==e.code&&(t.$store.commit("changeCityList",e.data.area_list),t.$store.commit("changeGradeList",e.data.grade_list),t.$store.commit("changeIdentityList",e.data.identity_list))}))},handleCooperationUrl:function(){var t=this;this.$model.getCooperationUrl({}).then((function(e){console.log("合作服务",e.data),0==e.code&&t.$store.commit("changeCooperationUrl",e.data)}))},updataWeiXin:function(){var e=t.getUpdateManager();e.onCheckForUpdate((function(t){console.log("是否有新版本",t.hasUpdate)})),e.onUpdateReady((function(){t.showModal({title:"更新提示",content:"新版本已经准备好,是否重启应用?",success:function(t){t.confirm&&e.applyUpdate()}})})),e.onUpdateFailed((function(){t.showModal({title:"新版本更新失败",content:"请退出并移除小程序,重新打开..."})}))}}};e.default=o}).call(this,o("df3c")["default"])},"25df":function(t,e,o){},"266f":function(t,e,o){"use strict";o.r(e);var n=o("0326"),a=o.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(i);e["default"]=a.a},"467f":function(t,e,o){"use strict";o.r(e);var n=o("266f");for(var a in n)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(a);o("dad9");var i=o("828b"),r=Object(i["a"])(n["default"],void 0,void 0,!1,null,null,null,!1,void 0,void 0);e["default"]=r.exports},7580:function(t,e,o){"use strict";(function(t,e,n){var a=o("47a9"),i=a(o("7ca3"));o("30b7");var r=a(o("467f")),c=a(o("1160")),l=a(o("7d8e")),d=a(o("8d27")),u=a(o("b788")),f=a(o("455e")),s=a(o("a3d2")),p=a(o("b664")),h=a(o("3240")),g=a(o("4d79"));function m(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}t.__webpack_require_UNI_MP_PLUGIN__=o,h.default.prototype.$store=c.default,h.default.prototype.$tools=l.default,h.default.prototype.$Bluetooth=d.default,h.default.prototype.$http=u.default,h.default.prototype.$model=f.default,h.default.prototype.$video=p.default;var v={locale:e.getLocale(),messages:s.default};h.default.use(g.default);var y=new g.default(v);h.default.config.productionTip=!1,r.default.mpType="app";var b=new h.default(function(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?m(Object(o),!0).forEach((function(e){(0,i.default)(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):m(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({i18n:y},r.default));n(b).$mount()}).call(this,o("3223")["default"],o("df3c")["default"],o("df3c")["createApp"])},dad9:function(t,e,o){"use strict";var n=o("25df"),a=o.n(n);a.a}},[["7580","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,10 +0,0 @@
|
||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["element/drawer"],{"2d56":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,n=(t._self._c,t.isDrawe?t.__map(t.List,(function(e,n){var r=t.__get_orig(e),i=t.List.length;return{$orig:r,g0:i}})):null);t.$mp.data=Object.assign({},{$root:{l0:n}})},i=[]},"55f0":function(t,e,n){"use strict";var r=n("90e3"),i=n.n(r);i.a},"634b":function(t,e,n){"use strict";n.r(e);var r=n("2d56"),i=n("8fbb");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("55f0");var c=n("828b"),a=Object(c["a"])(i["default"],r["b"],r["c"],!1,null,"36e4bf37",null,!1,r["a"],void 0);e["default"]=a.exports},"8fbb":function(t,e,n){"use strict";n.r(e);var r=n("f6dd"),i=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},"90e3":function(t,e,n){},f6dd:function(t,e,n){"use strict";(function(t){var r=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("7ca3")),o=n("8f59");function c(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 a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var u={data:function(){return{}},computed:a(a({},(0,o.mapState)(["user","familayList","isDrawe"])),{},{userinfo:function(){return this.user},List:function(){return this.familayList}}),methods:{toggle:function(e){t.setStorageSync("userid",e.id),t.setStorageSync("gender",e.gender),this.$store.dispatch("getUserInfo",{aud_id:e.id}),this.$store.dispatch("getResult",{aud_id:e.id}),this.$store.commit("changeDrawe",!1),this.handlePublicRecord(e.id)},handlePublicRecord:function(t){var e=this;e.$model.getPublicRecord({aud_id:t}).then((function(t){console.log("公共手动记录",t),0==t.code&&e.$store.commit("changePublicRecord",t.data)}))},addInfo:function(){t.navigateTo({url:"/pageTwo/my/userInfo"}),this.$store.commit("changeDrawe",!1)},clear:function(){this.$store.commit("changeDrawe",!1)}}};e.default=u}).call(this,n("df3c")["default"])}}]);
|
|
||||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
|
||||||
'element/drawer-create-component',
|
|
||||||
{
|
|
||||||
'element/drawer-create-component':(function(module, exports, __webpack_require__){
|
|
||||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("634b"))
|
|
||||||
})
|
|
||||||
},
|
|
||||||
[['element/drawer-create-component']]
|
|
||||||
]);
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
{
|
|
||||||
"usingComponents": {},
|
|
||||||
"component": true
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
<block wx:if="{{isDrawe}}"><view class="wrapper data-v-36e4bf37"><view data-event-opts="{{[['tap',[['clear',['$event']]]]]}}" class="bg data-v-36e4bf37" bindtap="__e"></view><view class="wrapper_box data-v-36e4bf37"><view class="top data-v-36e4bf37"><block wx:if="{{userinfo.head_pic}}"><image class="headimage mt-10 data-v-36e4bf37" src="{{userinfo.head_pic}}"></image></block><view class="overflow data-v-36e4bf37">{{userinfo.nickname}}</view></view><view class="drawerList data-v-36e4bf37"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{item.g0}}"><view data-event-opts="{{[['tap',[['toggle',['$0'],[[['List','',index]]]]]]]}}" class="drawerList_item data-v-36e4bf37" bindtap="__e"><block wx:if="{{item.$orig.head_pic}}"><image class="image1 data-v-36e4bf37" src="{{item.$orig.head_pic}}"></image></block><view class="right data-v-36e4bf37"><view class="name data-v-36e4bf37"><view class="overflow data-v-36e4bf37">{{''+item.$orig.nickname+''}}</view><block wx:if="{{item.$orig.id==userinfo.id}}"><view class="dangqian data-v-36e4bf37">当前</view></block></view><view class="info data-v-36e4bf37"><view class="data-v-36e4bf37">{{item.$orig.gender==1?'男':'女'}}</view><view class="data-v-36e4bf37">{{item.$orig.age+"岁"}}</view></view></view></view></block></block><view data-event-opts="{{[['tap',[['addInfo']]]]}}" class="add data-v-36e4bf37" bindtap="__e">+</view></view></view></view></block>
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.wrapper.data-v-36e4bf37{position:fixed;left:0;right:0;top:0;bottom:0;z-index:999}.wrapper .bg.data-v-36e4bf37{position:fixed;left:0;right:0;top:0;bottom:0;background-color:rgba(0,0,0,.4);z-index:99}.headimage.data-v-36e4bf37{width:50px;height:50px;margin:auto;border-radius:50%;margin-bottom:16rpx}.dangqian.data-v-36e4bf37{font-size:24rpx!important}@-webkit-keyframes wrapper_box-data-v-36e4bf37{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes wrapper_box-data-v-36e4bf37{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["element/headerIndex"],{"2f21":function(e,t,i){"use strict";(function(e){var n=i("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(i("7ca3")),s=i("8f59");function o(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function u(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?o(Object(i),!0).forEach((function(t){(0,r.default)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var c={name:"headerIndex",components:{drawer:function(){i.e("element/drawer").then(function(){return resolve(i("634b"))}.bind(null,i)).catch(i.oe)}},data:function(){return{value:[2,0],visible:!1,region:"",province:[],city:[],area:[],indicatorStyle:"height: 45px;"}},computed:u(u({},(0,s.mapState)(["user","familayList","cityList"])),{},{info:function(){return this.user},userList:function(){return this.familayList},userAddress:function(){return this.user.address}}),props:{isArea:{type:Boolean,default:!0},isLeft:{type:Boolean,default:!0}},mounted:function(){var e=this;setTimeout((function(){e.isArea&&e.handleCityList()}),1e3)},watch:{userAddress:function(){this.region=this.user.address,this.handleCityList(),this.$emit("getAciveCity",this.region)}},methods:{bindChange:function(e){e.detail.value[0]!=this.value[0]&&(e.detail.value[1]=0),this.value=e.detail.value,this.city=this.province[this.value[0]].list},handlesure:function(){var e=[this.province[this.value[0]].name,this.city[this.value[1]]];this.region=e.join(","),this.visible=!1,this.$emit("getAciveCity",this.region)},handleAddUser:function(t){var i=this;if(e.getStorageSync("token")){var n=i.userList.findIndex((function(e){return e.id==i.info.id}));e.navigateTo({url:1==t?"/pageTwo/my/userInfo?info="+JSON.stringify(i.userList[n]):"/pageTwo/my/userInfo"})}else console.log("headerIndex跳转登录页面"),e.reLaunch({url:"/pageTwo/login/login"})},handleCityList:function(){if(this.cityList.length)if(""!=this.user.address){this.province=this.cityList;var e=this.user.address.split(",")[0],t=this.province.findIndex((function(t){return t.name==e}));this.value[0]=t,console.log("地区",e,t),this.city=this.province[t].list}else this.value=[2,0],this.city=this.cityList[2].list}}};t.default=c}).call(this,i("df3c")["default"])},"36d8":function(e,t,i){},"6ab6":function(e,t,i){"use strict";i.r(t);var n=i("2f21"),r=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(s);t["default"]=r.a},8596:function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"c",(function(){return s})),i.d(t,"a",(function(){return n}));var n={uniIcons:function(){return Promise.all([i.e("common/vendor"),i.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(i.bind(null,"bbd6"))}},r=function(){var e=this,t=e.$createElement,i=(e._self._c,e.userList.length);e._isMounted||(e.e0=function(t){return e.$store.commit("changeDrawe",!0)},e.e1=function(t){e.visible=!0},e.e2=function(t){e.visible=!1},e.e3=function(t){e.visible=!1}),e.$mp.data=Object.assign({},{$root:{g0:i}})},s=[]},c5cc:function(e,t,i){"use strict";i.r(t);var n=i("8596"),r=i("6ab6");for(var s in r)["default"].indexOf(s)<0&&function(e){i.d(t,e,(function(){return r[e]}))}(s);i("e8c6");var o=i("828b"),u=Object(o["a"])(r["default"],n["b"],n["c"],!1,null,"5b996001",null,!1,n["a"],void 0);t["default"]=u.exports},e8c6:function(e,t,i){"use strict";var n=i("36d8"),r=i.n(n);r.a}}]);
|
|
||||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
|
||||||
'element/headerIndex-create-component',
|
|
||||||
{
|
|
||||||
'element/headerIndex-create-component':(function(module, exports, __webpack_require__){
|
|
||||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("c5cc"))
|
|
||||||
})
|
|
||||||
},
|
|
||||||
[['element/headerIndex-create-component']]
|
|
||||||
]);
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
{
|
|
||||||
"component": true,
|
|
||||||
"usingComponents": {
|
|
||||||
"uni-icons": "/uni_modules/uni-icons/components/uni-icons/uni-icons",
|
|
||||||
"drawer": "/element/drawer"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
<view class="data-v-5b996001"><view class="header data-v-5b996001"><block wx:if="{{$root.g0}}"><view class="top data-v-5b996001"><view data-event-opts="{{[['tap',[['handleAddUser',[1]]]]]}}" class="headimg data-v-5b996001" bindtap="__e"><image src="{{info.head_pic}}" class="data-v-5b996001"></image></view><view data-event-opts="{{[['tap',[['handleAddUser',[1]]]]]}}" class="info data-v-5b996001" bindtap="__e"><view class="size18 bold data-v-5b996001">{{info.nickname}}</view><view class="mt-5 data-v-5b996001"><text class="mr-10 data-v-5b996001">{{"性别:"+(info.gender==1?'男':info.gender==2?'女':'未知')}}</text><text class="ml-10 data-v-5b996001">{{"年龄:"+info.age+"岁"}}</text></view><block wx:if="{{info.measure_model==1}}"><view class="mt-5 data-v-5b996001">{{"当前地区:"+info.address}}</view></block></view><block wx:if="{{isLeft}}"><text data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="t-icon t-icon-qiehuan1 data-v-5b996001" bindtap="__e"></text></block></view></block><block wx:else><view data-event-opts="{{[['tap',[['handleAddUser',[2]]]]]}}" class="top data-v-5b996001" bindtap="__e"><view class="info data-v-5b996001">暂无成员,请先添加~</view><view class="add data-v-5b996001">+</view></view></block></view><view class="cityList data-v-5b996001"><block wx:if="{{isArea}}"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="area data-v-5b996001" bindtap="__e"><view class="data-v-5b996001">中招地区标准:</view><view class="data-v-5b996001">{{region?region:info.address}}<uni-icons vue-id="f56e3a1c-1" type="bottom" class="data-v-5b996001" bind:__l="__l"></uni-icons></view></view></block><block wx:if="{{visible}}"><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="visible data-v-5b996001" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="item data-v-5b996001" catchtap="__e"><view class="groupBtn data-v-5b996001"><view data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" bindtap="__e" class="data-v-5b996001">取消</view><view data-event-opts="{{[['tap',[['handlesure']]]]}}" class="sure data-v-5b996001" bindtap="__e">确定</view></view><picker-view class="picker-view data-v-5b996001" value="{{value}}" indicator-style="{{indicatorStyle}}" data-event-opts="{{[['change',[['bindChange',['$event']]]]]}}" bindchange="__e"><picker-view-column class="data-v-5b996001"><block wx:for="{{province}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="item data-v-5b996001">{{item.name}}</view></block></picker-view-column><picker-view-column class="data-v-5b996001"><block wx:for="{{city}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="item data-v-5b996001">{{item}}</view></block></picker-view-column></picker-view></view></view></block></view><drawer vue-id="f56e3a1c-2" class="data-v-5b996001" bind:__l="__l"></drawer></view>
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.info.data-v-5b996001{display:flex;flex-wrap:wrap;margin-left:15px;width:calc(100% - 70px)}.info view.data-v-5b996001{width:100%}.info last-child.data-v-5b996001{margin-top:2px!important}.area.data-v-5b996001{margin:15px 10px 0;padding:15px 10px 10px;background-color:#fff;width:calc(100% - 40px);display:flex;border-radius:10px;justify-content:space-between;box-shadow:0 1px 5px 2px rgba(223,226,225,.9882352941176471)}.item.data-v-5b996001{line-height:80rpx;text-align:center}.visible.data-v-5b996001{position:fixed;top:0;left:0;right:0;bottom:0;z-index:9999;background-color:rgba(0,0,0,.6)}.visible .groupBtn.data-v-5b996001{height:50px;line-height:50px;background-color:#fff;display:flex;justify-content:space-between;padding:0 15px;border-bottom:1px solid #dfdfdf;position:absolute;left:0;right:0;bottom:45%;z-index:999}.visible .groupBtn view.data-v-5b996001{height:30px;line-height:30px;padding:0 10px;background-color:#dfdfdf;border-radius:5px;margin-top:10px}.visible .groupBtn .sure.data-v-5b996001{background-color:#37cc92;color:#fff!important}.visible .picker-view.data-v-5b996001{width:100%;height:45%;bottom:0;position:absolute;background-color:#fff}.t-icon-qiehuan1.data-v-5b996001{width:25px;height:25px}
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["element/manuallyAdd/publicAdd"],{"08f5":function(t,e,i){"use strict";i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return n}));var n={uniIcons:function(){return Promise.all([i.e("common/vendor"),i.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(i.bind(null,"bbd6"))}},s=function(){var t=this.$createElement,e=(this._self._c,this.isPublicRecord?this.info&&this.info.list.length&&this.listType:null);this.$mp.data=Object.assign({},{$root:{g0:e}})},r=[]},4308:function(t,e,i){"use strict";i.r(e);var n=i("8fd0"),s=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=s.a},"8fd0":function(t,e,i){"use strict";(function(t){var n=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s,r,u=n(i("7ca3")),o=i("8f59");function a(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function c(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?a(Object(i),!0).forEach((function(e){(0,u.default)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var l=(r={data:function(){return{name:"",regTime:"",number:"",timeList:[],time_m:"",time_s:"",fields:"",listType:null,describe:"",unit:"",timesTndex:[1,0],lableTndex:0,labelName:""}},props:{rtype:null,active:{type:Number,default:0}},computed:c(c({},(0,o.mapState)(["PublicRecord","isPublicRecord"])),{},{info:function(){var t=this,e={height:!1,weight:!1,number:!1,time:!1,list:[]};return t.PublicRecord.length&&(t.PublicRecord.forEach((function(i){i.id==t.rtype&&(e=i)})),e&&e.list.length&&(t.labelName=e.list[t.active].name,t.listType=e.list[t.active].type,t.describe=e.list[t.active].describe,t.unit=e.list[t.active].unit)),t.PublicRecord.length?e:null},endDate:function(){return this.$tools.getDate("start")},startDate:function(){return this.$tools.GetDateStr(-90)}}),mounted:function(){}},(0,u.default)(r,"mounted",(function(){this.timeList=this.$tools.gethms(),this.fields="day"})),(0,u.default)(r,"methods",(s={bindTimeChange:function(t){var e=t.target.value[0],i=t.target.value[1];Number(this.timeList[0][e].substring(0,2)),Number(this.timeList[1][i].substring(0,2));this.timesTndex=t.target.value,this.time_m=this.timeList[0][e].substring(0,2),this.time_s=this.timeList[1][i].substring(0,2),console.log("时长",this.time_m,this.time_s)},handleTarget:function(){var e=this;if(e.regTime)if(4!=e.listType||e.time_m&&e.time_s)if(4==e.listType||e.number){var i=e.time_m+":"+e.time_s;e.$model.getpublicmeasure({acd_id:e.rtype,name:e.labelName,record_time:e.regTime,data:4==e.listType?i:e.number,aud_id:t.getStorageSync("userid")}).then((function(i){0==i.code&&(e.$tools.msg(i.msg),e.$store.commit("changeRecord",!1),e.$store.dispatch("getUserInfo",{aud_id:t.getStorageSync("userid")}),e.$store.dispatch("getPublicContent",{acd_id:e.rtype,aud_id:t.getStorageSync("userid")}),e.onTap())}))}else{var n=1==e.listType?"请输入个数":"请输入时长";e.$tools.msg(n)}else e.$tools.msg("请输入时长");else e.$tools.msg("请选择日期")}},(0,u.default)(s,"bindTimeChange",(function(t){var e=t.target.value[0],i=t.target.value[1];this.timesTndex=t.target.value;Number(this.timeList[0][e].substring(0,2)),Number(this.timeList[1][i].substring(0,2));this.time_m=this.timeList[0][e].substring(0,2),this.time_s=this.timeList[1][i].substring(0,2)})),(0,u.default)(s,"changeLog",(function(t){this.regTime=t.detail.value})),(0,u.default)(s,"onTap",(function(){this.regTime="",this.$store.commit("changePublicAdd",!1)})),s)),r);e.default=l}).call(this,i("df3c")["default"])},"9b53":function(t,e,i){"use strict";i.r(e);var n=i("08f5"),s=i("4308");for(var r in s)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return s[t]}))}(r);i("e4c1");var u=i("828b"),o=Object(u["a"])(s["default"],n["b"],n["c"],!1,null,"fccf681c",null,!1,n["a"],void 0);e["default"]=o.exports},dc56:function(t,e,i){},e4c1:function(t,e,i){"use strict";var n=i("dc56"),s=i.n(n);s.a}}]);
|
|
||||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
|
||||||
'element/manuallyAdd/publicAdd-create-component',
|
|
||||||
{
|
|
||||||
'element/manuallyAdd/publicAdd-create-component':(function(module, exports, __webpack_require__){
|
|
||||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("9b53"))
|
|
||||||
})
|
|
||||||
},
|
|
||||||
[['element/manuallyAdd/publicAdd-create-component']]
|
|
||||||
]);
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
"usingComponents": {
|
|
||||||
"uni-icons": "/uni_modules/uni-icons/components/uni-icons/uni-icons"
|
|
||||||
},
|
|
||||||
"component": true
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
<block wx:if="{{isPublicRecord}}"><view class="wrapper data-v-fccf681c"><view data-event-opts="{{[['tap',[['onTap',['$event']]]]]}}" class="bg data-v-fccf681c" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="edit data-v-fccf681c" catchtap="__e"><view class="title data-v-fccf681c">手动记录</view><view class="editem data-v-fccf681c"><view class="left data-v-fccf681c">项目</view><view class="right data-v-fccf681c">{{''+labelName+''}}</view></view><view class="editem data-v-fccf681c"><view class="left data-v-fccf681c">日期</view><view class="right data-v-fccf681c"><picker mode="date" end="{{endDate}}" fields="{{fields}}" data-event-opts="{{[['change',[['changeLog',['$event']]]]]}}" bindchange="__e" class="data-v-fccf681c"><view class="uni-input data-v-fccf681c">{{regTime?regTime:'请选择'}}</view><icon class="iconfont icon-arrow-down-bold data-v-fccf681c"></icon></picker></view></view><block wx:if="{{$root.g0}}"><view class="editem data-v-fccf681c"><view class="name data-v-fccf681c">{{describe}}</view><block wx:if="{{listType==4}}"><view class="right data-v-fccf681c"><picker mode="multiSelector" range="{{timeList}}" value="{{timesTndex}}" data-event-opts="{{[['change',[['bindTimeChange',['$event']]]]]}}" bindchange="__e" class="data-v-fccf681c"><view class="size16 data-v-fccf681c">{{(time_m?time_m+':':'请选择')+(time_s?time_s:'')}}</view></picker><uni-icons class="ml-10 c666 data-v-fccf681c" vue-id="7b9f44c0-1" type="bottom" bind:__l="__l"></uni-icons></view></block><block wx:if="{{listType!=4}}"><view class="right data-v-fccf681c"><input type="{{listType==1?'number':'digit'}}" placeholder="请输入" data-event-opts="{{[['input',[['__set_model',['','number','$event',[]]]]]]}}" value="{{number}}" bindinput="__e" class="data-v-fccf681c"/>{{''+unit+''}}</view></block></view></block><block wx:if="{{info&&info.time}}"><view class="editem data-v-fccf681c"><view class="name data-v-fccf681c">时长</view><view class="right data-v-fccf681c"><picker mode="multiSelector" range="{{timeList}}" value="{{timesTndex}}" data-event-opts="{{[['change',[['bindTimeChange',['$event']]]]]}}" bindchange="__e" class="data-v-fccf681c"><view class="size16 data-v-fccf681c">{{(time_m?time_m+':':'请选择')+(time_s?time_s:'')}}</view></picker><uni-icons class="ml-15 c666 data-v-fccf681c" vue-id="7b9f44c0-2" type="bottom" bind:__l="__l"></uni-icons></view></view></block><block wx:if="{{info&&info.number}}"><view class="editem data-v-fccf681c"><view class="name data-v-fccf681c">个数</view><view class="right data-v-fccf681c"><input type="number" placeholder="请输入" data-event-opts="{{[['input',[['__set_model',['','number','$event',[]]]]]]}}" value="{{number}}" bindinput="__e" class="data-v-fccf681c"/>个</view></view></block><view data-event-opts="{{[['tap',[['onTap']]]]}}" class="btn close data-v-fccf681c" bindtap="__e">取消</view><view data-event-opts="{{[['tap',[['handleTarget',['$event']]]]]}}" class="btn data-v-fccf681c" bindtap="__e">确定</view></view></view></view></block>
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.btn.data-v-fccf681c{width:40%;float:right;margin-top:15px;background:#37cc92!important}.edit.data-v-fccf681c{top:20%}.close.data-v-fccf681c{background:#fff!important;float:left;color:#333}
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
"usingComponents": {
|
|
||||||
"uni-icons": "/uni_modules/uni-icons/components/uni-icons/uni-icons"
|
|
||||||
},
|
|
||||||
"component": true
|
|
||||||
}
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +0,0 @@
|
||||||
.btn.data-v-345408ac{width:40%;float:right;margin-top:15px;background:#37cc92!important}.close.data-v-345408ac{background:#dfdfdf!important;float:left}
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["element/ren-calendar/ren-calendar"],{a185:function(t,e,n){"use strict";n.r(e);var a=n("d481"),o=n("fbdc");for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("c0df");var r=n("828b"),s=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,"090734d8",null,!1,a["a"],void 0);e["default"]=s.exports},a8fa:function(t,e,n){},c0df:function(t,e,n){"use strict";var a=n("a8fa"),o=n.n(a);o.a},cf37:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={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(),i="星期"+["日","一","二","三","四","五","六"][o],r={date:e+"-"+this.formatNum(n+1)+"-"+this.formatNum(a),week:i};return r},monthDay:function(t,e){var n=[],a=Number(e),o=new Date(t,a-1,1).getDay(),i=new Date(t,a,0).getDate(),r=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+i)%7;7==u&&(u=0);for(var c=1;c<=h;c++)n.push({date:this.formatNum(r-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<=i;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:(i+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,"/")),i=o.getDay();return 0!=i&&6!=i},isFutureDay:function(t,e,n){var a="".concat(t,"/").concat(e,"/").concat(n),o=new Date(a.replace(/-/g,"/")),i=o.getTime(),r=(new Date).getTime();return i>r},isMarkDay:function(t,e,n){for(var a=!1,o=0;o<this.markDays.length;o++){var i="".concat(t,"-").concat(e,"-").concat(n);if(this.markDays[o]==i){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(),i=new Date(n).getDay(),r="星期"+["日","一","二","三","四","五","六"][i],s={date:n,week:r};if(!t.isCurM)return!1;if(a>o){if(this.disabledAfter)return console.log("未来日期不可选"),!1;this.choose=n,this.$emit("onDayClick",s)}else this.choose=n,this.$emit("onDayClick",s);console.log(s)},changYearMonth:function(t,e){this.dates=this.monthDay(t,e),this.y=t,this.m=e},changeMonth:function(t){"pre"==t?(this.m+1==2?(this.m=12,this.y=this.y-1):this.m=this.m-1,this.month=this.$tools.getMonth(this.month,-1),this.$emit("onMonthClickPre",this.month)):(this.m+1==13?(this.m=1,this.y=this.y+1):this.m=this.m+1,this.month=this.$tools.getMonth(this.month,1),this.$emit("onMonthClickPre",this.month)),this.dates=this.monthDay(this.y,this.m)}}};e.default=a},d481:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}));var a={uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"bbd6"))}},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),i=t.isWorkDay(e.year,e.month,e.date),r=Number(e.date),s=t.isMarkDay(e.year,e.month,e.date)&&e.isCurM;return{$orig:a,m1:o,m2:i,m3:r,m4:s}}));t.$mp.data=Object.assign({},{$root:{m0:n,l0:a}})},i=[]},fbdc:function(t,e,n){"use strict";n.r(e);var a=n("cf37"),o=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=o.a}}]);
|
|
||||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
|
||||||
'element/ren-calendar/ren-calendar-create-component',
|
|
||||||
{
|
|
||||||
'element/ren-calendar/ren-calendar-create-component':(function(module, exports, __webpack_require__){
|
|
||||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("a185"))
|
|
||||||
})
|
|
||||||
},
|
|
||||||
[['element/ren-calendar/ren-calendar-create-component']]
|
|
||||||
]);
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
"usingComponents": {
|
|
||||||
"uni-icons": "/uni_modules/uni-icons/components/uni-icons/uni-icons"
|
|
||||||
},
|
|
||||||
"component": true
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
<view class="calendar-wrapper data-v-090734d8"><view class="header data-v-090734d8"><view data-event-opts="{{[['tap',[['changeMonth',['pre']]]]]}}" class="pre data-v-090734d8" bindtap="__e"><uni-icons vue-id="1c647ff0-1" type="back" size="26" class="data-v-090734d8" bind:__l="__l"></uni-icons></view><view class="data-v-090734d8">{{y+'年'+$root.m0+'月'}}</view><view data-event-opts="{{[['tap',[['changeMonth',['next']]]]]}}" class="next data-v-090734d8" bindtap="__e"><uni-icons vue-id="1c647ff0-2" type="forward" size="26" class="data-v-090734d8" bind:__l="__l"></uni-icons></view></view><view class="week data-v-090734d8"><block wx:for="{{weekDay}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="week-day data-v-090734d8">{{item}}</view></block></view><view class="{{['content0','data-v-090734d8',(!monthOpen)?'hide':'']}}" style="{{'height:'+(height)+';'}}"><view class="days data-v-090734d8" style="{{'top:'+(positionTop+'rpx')+';'}}"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="item data-v-090734d8"><view data-event-opts="{{[['tap',[['selectOne',['$0','$event'],[[['dates','',index]]]]]]]}}" class="{{['day','data-v-090734d8',(choose==item.$orig.year+'-'+item.$orig.month+'-'+item.$orig.date&&item.$orig.isCurM)?'choose':'',(!item.$orig.isCurM)?'nolm':'',(item.m1)?'today':'',(item.m2)?'isWorkDay':'']}}" bindtap="__e">{{''+item.m3+''}}</view><block wx:if="{{item.m4}}"><view class="markDay data-v-090734d8"></view></block></view></block></view></view><block wx:if="{{collapsible}}"><image class="{{['weektoggle','data-v-090734d8',(monthOpen)?'down':'']}}" src="https://i.loli.net/2020/07/16/2MmZsucVTlRjSwK.png" mode="scaleToFill" data-event-opts="{{[['tap',[['toggle',['$event']]]]]}}" bindtap="__e"></image></block></view>
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
.calendar-wrapper.data-v-090734d8{color:#bbb7b7;border-radius:10px;font-size:32rpx;text-align:center;background-color:#fff;padding-bottom:10rpx}.calendar-wrapper .header.data-v-090734d8{display:flex;align-items:center;justify-content:center;height:88rpx;color:#42464a;font-size:36rpx;font-weight:700;justify-content:space-around}.calendar-wrapper .header .pre.data-v-090734d8,
|
|
||||||
.calendar-wrapper .header .next.data-v-090734d8{color:#fea606;font-size:32rpx}.calendar-wrapper .week.data-v-090734d8{display:flex;align-items:center;height:80rpx;line-height:80rpx;border-bottom:1rpx solid hsla(0,0%,100%,.2)}.calendar-wrapper .week view.data-v-090734d8{flex:1}.calendar-wrapper .content0.data-v-090734d8{position:relative;overflow:hidden;transition:height .4s ease}.calendar-wrapper .content0 .days.data-v-090734d8{transition:top .3s;display:flex;align-items:center;flex-wrap:wrap;position:relative}.calendar-wrapper .content0 .days .item.data-v-090734d8{position:relative;display:block;height:80rpx;line-height:80rpx;width:calc(100% / 7)}.calendar-wrapper .content0 .days .item .day.data-v-090734d8{font-style:normal;display:inline-block;vertical-align:middle;width:60rpx;height:60rpx;line-height:60rpx;overflow:hidden;border-radius:60rpx}.calendar-wrapper .content0 .days .item .day.choose.data-v-090734d8{background-color:#fea606;color:#fff}.calendar-wrapper .content0 .days .item .day.nolm.data-v-090734d8{color:#fff;opacity:.3}.calendar-wrapper .content0 .days .item .isWorkDay.data-v-090734d8{color:#42464a}.calendar-wrapper .content0 .days .item .notSigned.data-v-090734d8{font-style:normal;width:8rpx;height:8rpx;background:#fa7268;border-radius:10rpx;position:absolute;left:50%;bottom:0;pointer-events:none}.calendar-wrapper .content0 .days .item .today.data-v-090734d8{color:#fff;background-color:#a8c0ff}.calendar-wrapper .content0 .days .item .workDay.data-v-090734d8{font-style:normal;width:8rpx;height:8rpx;background:#4d7df9;border-radius:10rpx;position:absolute;left:50%;bottom:0;pointer-events:none}.calendar-wrapper .content0 .days .item .markDay.data-v-090734d8{font-style:normal;width:8rpx;height:8rpx;background:#fa7268;border-radius:10rpx;position:absolute;left:50%;bottom:0;pointer-events:none}.calendar-wrapper .hide.data-v-090734d8{height:80rpx!important}.calendar-wrapper .weektoggle.data-v-090734d8{width:85rpx;height:32rpx;position:relative;bottom:-42rpx}.calendar-wrapper .weektoggle.down.data-v-090734d8{-webkit-transform:rotate(180deg);transform:rotate(180deg);bottom:0}
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["element/slider-fraction"],{"417f":function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return i})),r.d(t,"a",(function(){}));var n=function(){var e=this.$createElement;this._self._c},i=[]},a499:function(e,t,r){"use strict";r.r(t);var n=r("417f"),i=r("c8ce");for(var o in i)["default"].indexOf(o)<0&&function(e){r.d(t,e,(function(){return i[e]}))}(o);r("f43e");var u=r("828b"),a=Object(u["a"])(i["default"],n["b"],n["c"],!1,null,"ddd3d67e",null,!1,n["a"],void 0);t["default"]=a.exports},b3d7:function(e,t,r){},c8ce:function(e,t,r){"use strict";r.r(t);var n=r("db63"),i=r.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(o);t["default"]=i.a},db63:function(t,r,n){"use strict";var i=n("47a9");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=i(n("7ca3")),u=n("8f59");function a(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}var c={data:function(){return{regTime:"",number1:"",number2:"",number3:""}},computed:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,o.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},(0,u.mapState)(["user","isSlider"])),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.msg),t.$store.commit("changeSlider",!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("请选择测量日期")},sliderChange:function(t,r){console.log("value 发生变化:",e.detail.value,r)},onTap:function(){this.regTime="",this.number1="",this.number2="",this.number3="",this.$store.commit("changeSlider",!1)}}};r.default=c},f43e:function(e,t,r){"use strict";var n=r("b3d7"),i=r.n(n);i.a}}]);
|
|
||||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
|
||||||
'element/slider-fraction-create-component',
|
|
||||||
{
|
|
||||||
'element/slider-fraction-create-component':(function(module, exports, __webpack_require__){
|
|
||||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("a499"))
|
|
||||||
})
|
|
||||||
},
|
|
||||||
[['element/slider-fraction-create-component']]
|
|
||||||
]);
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
{
|
|
||||||
"usingComponents": {},
|
|
||||||
"component": true
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
<block wx:if="{{isSlider}}"><view class="wrapper data-v-ddd3d67e"><view data-event-opts="{{[['tap',[['onTap',['$event']]]]]}}" class="bg data-v-ddd3d67e" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="edit data-v-ddd3d67e" catchtap="__e"><view class="title data-v-ddd3d67e">分数占比设置</view><view class="editem data-v-ddd3d67e"><view class="left data-v-ddd3d67e">身体指数</view><view class="right data-v-ddd3d67e"><slider value="10" show-value="{{true}}" block-size="12" block-color="#007aff" data-event-opts="{{[['change',[['sliderChange',['$event']]]]]}}" bindchange="__e" class="data-v-ddd3d67e"></slider></view></view><view class="editem data-v-ddd3d67e"><view class="left data-v-ddd3d67e">1分钟跳绳</view><view class="right data-v-ddd3d67e"><slider value="40" show-value="{{true}}" block-size="12" block-color="#007aff" data-event-opts="{{[['change',[['sliderChange',['$event',2]]]]]}}" bindchange="__e" class="data-v-ddd3d67e"></slider></view></view><view class="editem data-v-ddd3d67e"><view class="left data-v-ddd3d67e">肺活量</view><view class="right data-v-ddd3d67e"><slider value="60" show-value="{{true}}" block-size="12" block-color="#007aff" data-event-opts="{{[['change',[['sliderChange',['$event']]]]]}}" bindchange="__e" class="data-v-ddd3d67e"></slider></view></view><view class="tips data-v-ddd3d67e">*所有项目评分占比和为100%</view><view data-event-opts="{{[['tap',[['onTap']]]]}}" class="btn close data-v-ddd3d67e" bindtap="__e">取消</view><view data-event-opts="{{[['tap',[['handleTarget',['$event']]]]]}}" class="btn data-v-ddd3d67e" bindtap="__e">确定</view></view></view></view></block>
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.edit.data-v-ddd3d67e{width:75%;padding:15px}.edit .editem.data-v-ddd3d67e{padding:0!important;background:#fff!important}.edit .editem .right.data-v-ddd3d67e{width:72%!important}.edit .editem.data-v-ddd3d67e slider{width:100%;padding:0!important;margin:0!important}.btn.data-v-ddd3d67e{width:40%;float:right;margin-top:15px;background:#37cc92!important}.edit.data-v-ddd3d67e{top:20%}.close.data-v-ddd3d67e{background:#dfdfdf!important;float:left}
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["element/target/firstweight"],{"108f":function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this.$createElement;this._self._c},i=[]},"116f":function(t,e,r){},"455c":function(t,e,r){"use strict";r.r(e);var n=r("5e38"),i=r.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},4636:function(t,e,r){"use strict";r.r(e);var n=r("108f"),i=r("455c");for(var o in i)["default"].indexOf(o)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(o);r("5692");var c=r("828b"),a=Object(c["a"])(i["default"],n["b"],n["c"],!1,null,"c949a7ae",null,!1,n["a"],void 0);e["default"]=a.exports},5692:function(t,e,r){"use strict";var n=r("116f"),i=r.n(n);i.a},"5e38":function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("7ca3")),o=r("8f59");function c(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?c(Object(r),!0).forEach((function(e){(0,i.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var u={props:{type:{}},data:function(){return{regTime:"",weight:"",fields:""}},computed:a(a({},(0,o.mapState)(["user","isFirst"])),{},{endDate:function(){return this.$tools.getDate("start")}}),mounted:function(){this.fields="day"},methods:{handleTarget:function(){var t=this;1==t.type||t.regTime?t.weight?t.$model.getfirstweight({aud_id:t.user.id,time:1==t.type?"":t.regTime?t.regTime:t.user.firstresulttime,weight:t.weight,type:t.type}).then((function(e){console.log("目标,",e),t.$tools.msg(e.msg),0==e.code&&(t.$store.commit("changeFirst",!1),t.$store.commit("changeMeasureResult",{target_current:e.data}),t.regTime="",t.weight="")})):t.$tools.msg("请输入测量体重"):t.$tools.msg("请选择测量日期")},changeLog:function(t){this.regTime=t.detail.value},onTap:function(){this.weight="",this.regTime="",this.$store.commit("changeFirst",!1)},hideKeyboard:function(){t.hideKeyboard()}}};e.default=u}).call(this,r("df3c")["default"])}}]);
|
|
||||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
|
||||||
'element/target/firstweight-create-component',
|
|
||||||
{
|
|
||||||
'element/target/firstweight-create-component':(function(module, exports, __webpack_require__){
|
|
||||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("4636"))
|
|
||||||
})
|
|
||||||
},
|
|
||||||
[['element/target/firstweight-create-component']]
|
|
||||||
]);
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
{
|
|
||||||
"usingComponents": {},
|
|
||||||
"component": true
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
<block wx:if="{{isFirst}}"><view class="wrapper wrapperbg data-v-c949a7ae"><view data-event-opts="{{[['tap',[['onTap',['$event']]]]]}}" class="bg data-v-c949a7ae" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="edit data-v-c949a7ae" catchtap="__e"><view class="title data-v-c949a7ae">{{type==1?'目标体重':'初始体重'}}</view><block wx:if="{{type!=1}}"><view data-event-opts="{{[['tap',[['hideKeyboard',['$event']]]]]}}" class="editem data-v-c949a7ae" bindtap="__e"><view class="name data-v-c949a7ae">日期</view><view class="right data-v-c949a7ae"><picker mode="date" end="{{endDate}}" fields="{{fields}}" data-event-opts="{{[['change',[['changeLog',['$event']]]]]}}" bindchange="__e" class="data-v-c949a7ae"><view class="uni-input data-v-c949a7ae">{{regTime?regTime:'请选择'}}</view><icon class="iconfont icon-arrow-down-bold data-v-c949a7ae"></icon></picker></view></view></block><view class="editem data-v-c949a7ae"><view class="name data-v-c949a7ae">体重</view><view class="right data-v-c949a7ae"><input type="digit" placeholder="请输入" data-event-opts="{{[['input',[['__set_model',['','weight','$event',[]]]]]]}}" value="{{weight}}" bindinput="__e" class="data-v-c949a7ae"/>kg</view></view><view data-event-opts="{{[['tap',[['onTap']]]]}}" class="btn close data-v-c949a7ae" bindtap="__e">取消</view><view data-event-opts="{{[['tap',[['handleTarget',['$event']]]]]}}" class="btn data-v-c949a7ae" bindtap="__e">确定</view></view></view></view></block>
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.btn.data-v-c949a7ae{width:40%;float:right;margin-top:15px;background:#37cc92!important}.edit.data-v-c949a7ae{top:20%}.close.data-v-c949a7ae{background:#fff!important;float:left;color:#333}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/PublicCards/charts"],{"04da":function(t,e,i){"use strict";(function(t){var a=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("7ca3")),r=i("8f59");function o(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function s(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?o(Object(i),!0).forEach((function(e){(0,n.default)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var c={components:{qiunDataCharts:function(){Promise.all([i.e("common/vendor"),i.e("uni_modules/qiun-data-charts/components/qiun-data-charts/qiun-data-charts")]).then(function(){return resolve(i("7135"))}.bind(null,i)).catch(i.oe)}},computed:s(s({},(0,r.mapState)(["labelList"])),{},{endDate:function(){return this.$tools.getDate("start")},startDate:function(){return this.$tools.GetDateStr(-90)}}),data:function(){return{name:"",list:[],acd_id:0,handTrue:!0,active:0,startTime:"",endTime:"",fields:"",weightList:[]}},onLoad:function(t){var e=this;e.active=0,e.acd_id=t.acd_id,e.time=e.startDate,e.labelList.forEach((function(t){if(t.acd_id==e.acd_id)return e.list=t.list,void(e.name=e.list[0])})),e.handlePublicTrendList(),e.fields="day"},methods:{handStartTimeH:function(t){if(this.endTime){if(Date.parse(t.detail.value)>Date.parse(this.endTime))return void this.$tools.msg("请选择正确的时间")}else if(Date.parse(t.detail.value)>Date.parse(this.endDate))return void this.$tools.msg("请选择正确的时间");this.startTime=t.detail.value,this.handlePublicTrendList()},handEndTimeH:function(t){if(this.startTime){if(Date.parse(t.detail.value)<Date.parse(this.startTime))return void this.$tools.msg("请选择正确的时间")}else if(Date.parse(t.detail.value)<Date.parse(this.startDate))return void this.$tools.msg("请选择正确的时间");this.endTime=t.detail.value,this.handlePublicTrendList()},handlePublicTrendList:function(){var e=this;e.$model.getPublicTrendList({aud_id:t.getStorageSync("userid"),acd_id:e.acd_id,s_time:e.startTime?e.startTime:e.startDate,e_time:e.endTime?e.endTime:e.endDate}).then((function(t){0==t.code&&(e.weightList=t.data),console.log("公共曲线",e.weightList)}))},navTo:function(e){t.navigateTo({url:e})}}};e.default=c}).call(this,i("df3c")["default"])},"0c00":function(t,e,i){"use strict";i.r(e);var a=i("eb24"),n=i("6096");for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);i("f50f");var o=i("828b"),s=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"55f297e5",null,!1,a["a"],void 0);e["default"]=s.exports},6096:function(t,e,i){"use strict";i.r(e);var a=i("04da"),n=i.n(a);for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},"91ff":function(t,e,i){},af3c:function(t,e,i){"use strict";(function(t,e){var a=i("47a9");i("30b7");a(i("3240"));var n=a(i("0c00"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(n.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},eb24:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=(t._self._c,t.__map(t.weightList,(function(e,i){var a=t.__get_orig(e),n=e.line.categories.length,r=n?{enableScroll:!0,xAxis:{scrollShow:!1,itemCount:3}}:null;return{$orig:a,g0:n,a0:r}})));t.$mp.data=Object.assign({},{$root:{l0:i}})},n=[]},f50f:function(t,e,i){"use strict";var a=i("91ff"),n=i.n(a);n.a}},[["af3c","common/runtime","common/vendor"]]]);
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
"navigationBarTitleText": "运动曲线",
|
|
||||||
"usingComponents": {
|
|
||||||
"qiun-data-charts": "/uni_modules/qiun-data-charts/components/qiun-data-charts/qiun-data-charts"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
<view class="TrendPage data-v-55f297e5"><view class="charts data-v-55f297e5"><view class="boxTime data-v-55f297e5"><view class="one data-v-55f297e5"><picker mode="date" end="{{endDate}}" fields="{{fields}}" value="{{startTime?startTime:startDate}}" data-event-opts="{{[['change',[['handStartTimeH',['$event']]]]]}}" bindchange="__e" class="data-v-55f297e5"><view class="uni-input mr-10 data-v-55f297e5">{{(startTime?startTime:startDate)+''}}<icon class="iconfont icon-arrow-down-bold data-v-55f297e5"></icon></view></picker><view class="center data-v-55f297e5">~</view><picker mode="date" end="{{endDate}}" fields="{{fields}}" value="{{endTime?endTime:endDate}}" data-event-opts="{{[['change',[['handEndTimeH',['$event']]]]]}}" bindchange="__e" class="data-v-55f297e5"><view class="uni-input mr-10 data-v-55f297e5">{{(endTime?endTime:endDate)+''}}<icon class="iconfont icon-arrow-down-bold data-v-55f297e5"></icon></view></picker></view></view></view><view class="box data-v-55f297e5"><view class="boxLine data-v-55f297e5"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index"><view class="line data-v-55f297e5"><block wx:if="{{item.g0}}"><view class="mt-15 mb-15 data-v-55f297e5"><qiun-data-charts vue-id="{{'bd126f08-1-'+index}}" type="column" chartData="{{item.$orig.line}}" canvas2d="{{true}}" canvasId="{{item.$orig.id}}" Width="{{340}}" Height="{{250}}" animation="{{false}}" opts="{{item.a0}}" ontouch="{{true}}" class="data-v-55f297e5" bind:__l="__l"></qiun-data-charts></view></block><block wx:else><view class="data-v-55f297e5"><view class="nolist data-v-55f297e5"><image src="../../static/none.png" class="data-v-55f297e5"></image><text class="data-v-55f297e5">暂无数据,请手动添加~</text></view><view class="title data-v-55f297e5">{{''+item.$orig.title+''}}</view></view></block></view></block></view></view></view>
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.TrendPage.data-v-55f297e5{min-height:100vh}.boxTime.data-v-55f297e5{display:flex;justify-content:center;align-items:center;background-color:#fff;border-radius:10px 10px 0 0}.boxTime .one.data-v-55f297e5{width:100%;display:flex;line-height:25px;justify-content:space-between;align-items:center}.boxTime .center.data-v-55f297e5{width:10%;margin:0 15px}.boxTime picker.data-v-55f297e5{width:50%;border:none;display:flex;justify-content:center}.boxTime .iconfont.data-v-55f297e5{color:#333;font-size:36rpx}.line.data-v-55f297e5{padding-top:15px}.title.data-v-55f297e5{width:100%;text-align:center;color:#999;font-size:14PX;margin-top:15px}.title text.data-v-55f297e5{width:15px;height:10px;margin-right:5px;display:inline-block}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/PublicCards/contrast"],{"23c3":function(t,e,i){"use strict";(function(t,e){var n=i("47a9");i("30b7");n(i("3240"));var s=n(i("e3ed"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(s.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},"727a":function(t,e,i){"use strict";i.r(e);var n=i("8be2"),s=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=s.a},"854a":function(t,e,i){"use strict";var n=i("fae3"),s=i.n(n);s.a},"8be2":function(t,e,i){"use strict";(function(t){var n=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=n(i("7ca3")),a=i("8f59");function r(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function c(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach((function(e){(0,s.default)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var o={data:function(){return{markDays:[],infoList:[],list:[],isActive:[],ActiveDays:[],startM:null,endM:null,isShow:!0,acd_id:"",active:0,labelName:""}},components:{RenCalendar:function(){i.e("element/ren-calendar/ren-calendar").then(function(){return resolve(i("a185"))}.bind(null,i)).catch(i.oe)}},computed:c(c({},(0,a.mapState)(["user","TrendPk","labelList"])),{},{labellist:function(){var t=this,e=[];return t.labelList.forEach((function(i){i.acd_id==t.acd_id&&(e=i.list,t.labelName=i.list[0])})),e},length:function(){return this.isActive.length},endDate:function(){return this.$tools.getDate("start")}}),onLoad:function(t){var e=this;e.acd_id=t.acd_id,e.startM=e.$tools.getDate("m").substring(0,10),e.endM=e.$tools.getDate("m").substring(11,21),e.markDays=[],e.list=[],e.isActive=[],e.ActiveDays=[],e.$nextTick((function(){e.isShow=!0,e.getList(e.startM,e.endM)}))},methods:{getList:function(e,i){var n=this;n.$model.getPublicResultdiff({aud_id:t.getStorageSync("userid"),acd_id:n.acd_id,s_time:e,e_time:i,name:n.labelName}).then((function(t){if(t){n.markDays=t.Dlist,n.list=t.data;for(var e=0;e<t.data.length;e++)Date.parse(n.endDate)==Date.parse(t.data[e].r_t)&&n.infoList.push(t.data[e]);console.log("对比",t)}}))},onMonthClickPre:function(t){console.log("onMonthClickPre",t);var e=t.substring(0,10),i=t.substring(11,21);this.infoList=[],this.markDays=[],this.list=[],this.getList(e,i)},onDayClick:function(t){this.infoList=[];for(var e=0;e<this.list.length;e++)Date.parse(t.date)==Date.parse(this.list[e].r_t)&&this.infoList.push(this.list[e])},addMemberTags:function(t,e){console.log("addMemberTags",t,e),-1==this.isActive.indexOf(t)?(this.isActive.push(t),this.ActiveDays.push(e)):(this.isActive.splice(this.isActive.indexOf(t),1),this.ActiveDays.splice(this.ActiveDays.indexOf(e),1)),this.isActive.length>2&&(this.isActive.splice(0,1),this.ActiveDays.splice(0,1))},handlePK:function(){if(2==this.isActive.length){var e={};e.type=this.acd_id,e.before_id=this.isActive[0],e.after_id=this.isActive[1],console.log("1111",e,this.isActive),t.navigateTo({url:"/pageTwo/compk/pkdetail?info="+JSON.stringify(e)})}else this.$tools.msg("请先选择数据!")},handleActive:function(t,e){var i=this;i.active=e,i.labelName=t,i.startM=i.$tools.getDate("m").substring(0,10),i.endM=i.$tools.getDate("m").substring(11,21),i.list=[],i.infoList=[],i.markDays=[],i.isActive=[],i.ActiveDays=[],i.$nextTick((function(){i.isShow=!0,i.getList(i.startM,i.endM)}))}}};e.default=o}).call(this,i("df3c")["default"])},e07c:function(t,e,i){"use strict";i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var n={uniIcons:function(){return Promise.all([i.e("common/vendor"),i.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(i.bind(null,"bbd6"))}},s=function(){var t=this,e=t.$createElement,i=(t._self._c,t.infoList.length),n=i?t.__map(t.infoList,(function(e,i){var n=t.__get_orig(e),s=t.isActive.indexOf(e.id),a=t.isActive.indexOf(e.id);return{$orig:n,g1:s,g2:a}})):null;t.$mp.data=Object.assign({},{$root:{g0:i,l0:n}})},a=[]},e3ed:function(t,e,i){"use strict";i.r(e);var n=i("e07c"),s=i("727a");for(var a in s)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return s[t]}))}(a);i("854a");var r=i("828b"),c=Object(r["a"])(s["default"],n["b"],n["c"],!1,null,"0b9a8129",null,!1,n["a"],void 0);e["default"]=c.exports},fae3:function(t,e,i){}},[["23c3","common/runtime","common/vendor"]]]);
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
{
|
|
||||||
"navigationBarTitleText": "数据对比",
|
|
||||||
"usingComponents": {
|
|
||||||
"uni-icons": "/uni_modules/uni-icons/components/uni-icons/uni-icons",
|
|
||||||
"ren-calendar": "/element/ren-calendar/ren-calendar"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
<view class="content data-v-0b9a8129"><view class="tabbar data-v-0b9a8129"><scroll-view class="scroll-menu data-v-0b9a8129" style="white-space:nowrap;" scroll-x="true"><block wx:for="{{labellist}}" wx:for-item="item" wx:for-index="index"><view data-event-opts="{{[['tap',[['handleActive',['$0',index],[[['labellist','',index]]]]]]]}}" class="{{['data-v-0b9a8129',active==index?'active':'']}}" bindtap="__e"><text class="data-v-0b9a8129">{{item}}</text></view></block></scroll-view></view><view class="calendar data-v-0b9a8129"><block wx:if="{{isShow}}"><ren-calendar vue-id="e1150da2-1" markDays="{{markDays}}" data-ref="ren" data-event-opts="{{[['^onDayClick',[['onDayClick']]],['^onMonthClickPre',[['onMonthClickPre']]]]}}" bind:onDayClick="__e" bind:onMonthClickPre="__e" class="data-v-0b9a8129 vue-ref" bind:__l="__l"></ren-calendar></block><block wx:if="{{$root.g0}}"><view class="box data-v-0b9a8129"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['addMemberTags',['$0','$1'],[[['infoList','',index,'id']],[['infoList','',index]]]]]]]}}" class="list data-v-0b9a8129" bindtap="__e"><view class="item data-v-0b9a8129"><view class="check data-v-0b9a8129"><uni-icons vue-id="{{'e1150da2-2-'+index}}" type="{{item.g1!=-1?'checkbox-filled':'circle'}}" size="22" color="{{item.g2!=-1?'#FEC407':'#dfdfdf'}}" class="data-v-0b9a8129" bind:__l="__l"></uni-icons></view><view class="data-v-0b9a8129">{{item.$orig.v1}}<text class="data-v-0b9a8129">{{item.$orig.v1_name}}</text></view><block wx:if="{{item.$orig.v2}}"><view class="data-v-0b9a8129">{{item.$orig.v2}}<text class="data-v-0b9a8129">{{item.$orig.v2_name}}</text></view></block><block wx:if="{{item.$orig.v3}}"><view class="data-v-0b9a8129">{{item.$orig.v3}}<text class="data-v-0b9a8129">{{item.$orig.v3_name}}</text></view></block></view></view></block></view></block><view class="bottom data-v-0b9a8129"><block wx:for="{{ActiveDays}}" wx:for-item="ite" wx:for-index="ind" wx:key="ind"><block wx:if="{{isActive}}"><view data-event-opts="{{[['tap',[['addMemberTags',['$0','$1'],[[['ActiveDays','',ind,'id']],[['ActiveDays','',ind]]]]]]]}}" class="list data-v-0b9a8129" bindtap="__e"><view class="item borderRadius data-v-0b9a8129"><view class="time data-v-0b9a8129">{{ite.r_t}}</view><view class="data-v-0b9a8129">{{ite.v1}}<text class="data-v-0b9a8129">{{ite.v1_name}}</text></view><block wx:if="{{ite.v2}}"><view class="data-v-0b9a8129">{{ite.v2}}<text class="data-v-0b9a8129">{{ite.v2_name}}</text></view></block><block wx:if="{{ite.v3}}"><view class="data-v-0b9a8129">{{ite.v3}}<text class="data-v-0b9a8129">{{ite.v3_name}}</text></view></block><view class="check data-v-0b9a8129"><uni-icons vue-id="{{'e1150da2-3-'+ind}}" type="clear" size="22" color="#999" class="data-v-0b9a8129" bind:__l="__l"></uni-icons></view></view></view></block></block><block wx:if="{{length==2}}"><view class="pkclass data-v-0b9a8129">vs</view></block></view></view></view>
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.calendar.data-v-0b9a8129{padding-top:60px}.data-v-0b9a8129 .calendar-wrapper{margin:15px}.data-v-0b9a8129 .calendar-wrapper .header{background-color:#fff;color:#37cc92;border-radius:10px 10px 0 0}.data-v-0b9a8129 .calendar-wrapper /deep/uni-icons{color:#37cc92}.item.data-v-0b9a8129{font-size:30rpx!important}.tabbar.data-v-0b9a8129{display:flex;position:fixed;top:0;left:0;right:0;z-index:999;justify-content:space-between;border-bottom:1px solid #f7f7f7;box-shadow:0 1px 5px 2px rgba(223,226,225,.9882352941176471);background-color:#fff}.tabbar .scroll-menu.data-v-0b9a8129{width:100%;white-space:nowrap}.tabbar .scroll-menu view.data-v-0b9a8129{height:55px;line-height:55px;display:inline-block;min-width:100px;margin:0 10px;text-align:center}.tabbar .active.data-v-0b9a8129{color:#37cc92;font-weight:700;border-bottom:2px solid #37cc92}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/PublicCards/history"],{"0b98":function(t,e,n){"use strict";var i=n("edd3"),o=n.n(i);o.a},"73a6":function(t,e,n){"use strict";n.r(e);var i=n("e2db"),o=n("a252");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("0b98");var c=n("828b"),r=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,"570898e0",null,!1,i["a"],void 0);e["default"]=r.exports},a252:function(t,e,n){"use strict";n.r(e);var i=n("f9c5"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},c1e0:function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("30b7");i(n("3240"));var o=i(n("73a6"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},e2db:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var i={uniSwipeAction:function(){return n.e("uni_modules/uni-swipe-action/components/uni-swipe-action/uni-swipe-action").then(n.bind(null,"7f50"))},uniSwipeActionItem:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item")]).then(n.bind(null,"0809"))}},o=function(){var t=this.$createElement;this._self._c},a=[]},edd3:function(t,e,n){},f9c5:function(t,e,n){"use strict";(function(t){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("7ca3")),a=n("8f59");function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var s={computed:r(r({},(0,a.mapState)(["user","labelList"])),{},{labellist:function(){var t=this,e=[];return t.labelList.forEach((function(n){n.acd_id==t.acd_id&&(e=n.list,t.labelName=n.list[0])})),e},endDate:function(){return this.$tools.getDate("start")},startDate:function(){return this.$tools.GetDateStr(-90)}}),data:function(){return{ranklist:[],page:1,isDelete:!1,lastPage:"",acd_id:"",active:0,labelName:""}},onLoad:function(t){var e=this;e.acd_id=t.acd_id,e.$nextTick((function(){e.getList()}))},onUnload:function(){console.log("关闭页面");var t=getCurrentPages(),e=(t[t.length-1],t[t.length-2]);this.isDelete&&e.$vm.reload()},onReachBottom:function(){console.log("onReachBottom",this.lastPage),!this.lastPage||this.page>=this.lastPage?t.showToast({title:"没有更多数据!",icon:"none"}):(this.page++,this.getList())},methods:{swipeClick:function(e,n){var i=this,o=i.ranklist[n].id;t.showModal({title:"友情提示",content:"是否删除当前测量记录?",success:function(e){e.confirm?i.$model.getPublicHistoryDel({id:o}).then((function(e){0==e.code?(i.ranklist.splice(n,1),i.$store.dispatch("getUserInfo",{aud_id:t.getStorageSync("userid")}),i.isDelete=!0,i.$tools.msg("删除成功")):i.$tools.msg(e.msg)})):e.cancel&&i.$tools.msg("您已取消操作!")}})},getList:function(){var e=this;this.$model.getPublicHistory({aud_id:t.getStorageSync("userid"),acd_id:this.acd_id,page:this.page,name:this.labelName}).then((function(t){if(console.log("历史记录",t),0==t.code){var n=[{text:"删除",style:{backgroundColor:"#dd524d"}}];t.data.rows.forEach((function(t){t.options=n})),e.ranklist=e.ranklist.concat(t.data.rows),e.lastPage=t.data.totalpage}}))},handleActive:function(t,e){this.active=e,this.labelName=t,this.page=1,this.ranklist=[],this.lastPage="",this.getList()}}};e.default=s}).call(this,n("df3c")["default"])}},[["c1e0","common/runtime","common/vendor"]]]);
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
{
|
|
||||||
"navigationBarTitleText": "历史记录",
|
|
||||||
"usingComponents": {
|
|
||||||
"uni-swipe-action": "/uni_modules/uni-swipe-action/components/uni-swipe-action/uni-swipe-action",
|
|
||||||
"uni-swipe-action-item": "/uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
<view class="common data-v-570898e0"><view class="tabbar data-v-570898e0"><scroll-view class="scroll-menu data-v-570898e0" style="white-space:nowrap;" scroll-x="true"><block wx:for="{{labellist}}" wx:for-item="item" wx:for-index="index"><view data-event-opts="{{[['tap',[['handleActive',['$0',index],[[['labellist','',index]]]]]]]}}" class="{{['data-v-570898e0',active==index?'active':'']}}" bindtap="__e"><text class="data-v-570898e0">{{item}}</text></view></block></scroll-view></view><view class="history data-v-570898e0"><uni-swipe-action vue-id="43c73912-1" class="data-v-570898e0" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{ranklist}}" wx:for-item="item" wx:for-index="index" wx:key="index"><uni-swipe-action-item vue-id="{{('43c73912-2-'+index)+','+('43c73912-1')}}" right-options="{{item.options}}" data-event-opts="{{[['^click',[['swipeClick',['$event',index]]]]]}}" bind:click="__e" class="data-v-570898e0" bind:__l="__l" vue-slots="{{['default']}}"><view class="list data-v-570898e0"><view class="item data-v-570898e0"><view class="time data-v-570898e0"><icon class="t-icon t-icon-shijian-mianxing-0 data-v-570898e0"></icon><text class="data-v-570898e0">{{item.record_time}}</text></view><view class="data-v-570898e0">{{item.v1}}<text class="data-v-570898e0">{{item.v1_name}}</text></view><view class="data-v-570898e0">{{item.v2}}<text class="data-v-570898e0">{{item.v2_name}}</text></view></view></view></uni-swipe-action-item></block></uni-swipe-action><block wx:if="{{!lastPage||page>=lastPage}}"><view class="endtext data-v-570898e0">—— 到底了,看看别的吧 ——</view></block></view><block wx:if="{{!lastPage}}"><view class="nolist data-v-570898e0"><image src="../../static/none.png" class="data-v-570898e0"></image><text class="data-v-570898e0">暂无数据</text></view></block></view>
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.common.data-v-570898e0{width:100%;min-height:100.5vh;overflow-y:scroll;background-color:#f7f7f7}.tabbar.data-v-570898e0{display:flex;position:fixed;top:0;left:0;right:0;z-index:999;justify-content:space-between;border-bottom:1px solid #f7f7f7;box-shadow:0 1px 5px 2px rgba(223,226,225,.9882352941176471);background-color:#fff}.tabbar .scroll-menu.data-v-570898e0{width:100%;white-space:nowrap}.tabbar .scroll-menu view.data-v-570898e0{height:55px;line-height:55px;display:inline-block;min-width:100px;margin:0 10px;text-align:center}.tabbar .active.data-v-570898e0{color:#37cc92;font-weight:700;border-bottom:2px solid #37cc92}.history.data-v-570898e0{width:calc(100% - 30px);height:auto;margin:70px 15px 0;padding-bottom:40px}.history .list.data-v-570898e0{width:100%;margin-top:12px;position:relative}.history .list .item.data-v-570898e0{width:calc(100% - 20px);height:auto;background:#fff;padding:10px;display:flex;justify-content:space-between;border-radius:10px;align-items:center;font-weight:700;font-size:30rpx!important}.history .list .item text.data-v-570898e0{width:100%;display:block;color:#666;text-align:center;font-weight:500;font-size:28rpx}.history .list .item view.data-v-570898e0{width:28%;display:flex;flex-wrap:wrap;justify-content:center}.history .list .time.data-v-570898e0{width:44%!important;font-size:28rpx;color:#666;display:flex;flex-wrap:wrap;align-items:center;justify-content:center}.history .list .time icon.data-v-570898e0{width:40rpx;height:40rpx;margin-right:5px}.history .list .time text.data-v-570898e0{width:100%;font-size:30rpx;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/PublicCards/pkdetail"],{2171:function(t,e,n){"use strict";n.r(e);var r=n("fa09"),i=n("38d1");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("4925");var f=n("828b"),o=Object(f["a"])(i["default"],r["b"],r["c"],!1,null,"34c5adb9",null,!1,r["a"],void 0);e["default"]=o.exports},"38d1":function(t,e,n){"use strict";n.r(e);var r=n("dd73"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},4925:function(t,e,n){"use strict";var r=n("8821"),i=n.n(r);i.a},8821:function(t,e,n){},"9fe4":function(t,e,n){"use strict";(function(t,e){var r=n("47a9");n("30b7");r(n("3240"));var i=r(n("2171"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},dd73:function(t,e,n){"use strict";var r=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("7ca3")),a=n("8f59");function f(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}var o={onLoad:function(t){if(console.log("options",t),t.info){var e=JSON.parse(t.info);this.acd_id=e.type,this.handleSharepic(JSON.parse(t.info))}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,a.mapState)(["user","appTheme"])),methods:{handleSharepic:function(t){var e=this,n=this;n.$model.getresultcontrast({type:t.type,before_id:t.before_id,after_id:t.after_id}).then((function(t){console.log("res",t),0==t.code?(t.data.list.forEach((function(e){e.firstresult&&"weight"==e.firstresult.name&&(t.data.weightdiff=e.diffval),e.firstresult&&"fat_w"==e.firstresult.name&&(t.data.fat_wdiff=e.diffval),(e.firstresult||e.secondresult)&&(e.name=e.firstresult?e.firstresult.name:e.secondresult.name,e.title=e.firstresult?e.firstresult.title:e.secondresult.title)})),n.memInfo=t.data,n.listStr=t.data.list):e.$tools.msg(t.msg)}))}},data:function(){return{memInfo:{},listStr:[],acd_id:""}}};e.default=o},fa09:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"bbd6"))}},i=function(){var t=this,e=t.$createElement,n=(t._self._c,2==t.acd_id&&t.memInfo.weightdiff?Math.abs(t.memInfo.weightdiff):null),r=2==t.acd_id?Number(t.memInfo.weightdiff):null,i=2==t.acd_id&&t.memInfo.fat_wdiff?Math.abs(t.memInfo.fat_wdiff):null,a=2==t.acd_id?Number(t.memInfo.fat_wdiff):null,f=t.__map(t.listStr,(function(e,n){var r=t.__get_orig(e),i=0==e.diffval&&"0.00"!=e.diffval&&"00:00:00"!=e.diffval||6==t.acd_id?null:Math.abs(e.diffval),a=Number(e.diffval),f=Number(e.diffval);return{$orig:r,g2:i,m2:a,m3:f}}));t.$mp.data=Object.assign({},{$root:{g0:n,m0:r,g1:i,m1:a,l0:f}})},a=[]}},[["9fe4","common/runtime","common/vendor"]]]);
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
"navigationBarTitleText": "对比详情",
|
|
||||||
"usingComponents": {
|
|
||||||
"uni-icons": "/uni_modules/uni-icons/components/uni-icons/uni-icons"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
<view class="content pkconp data-v-34c5adb9"><view class="headerTop data-v-34c5adb9"><view class="left data-v-34c5adb9"><image class="image1 data-v-34c5adb9" src="{{memInfo.headimg}}"></image></view><view class="right data-v-34c5adb9"><view class="name data-v-34c5adb9">{{memInfo.name?memInfo.name:memInfo.nickname}}</view><view class="top data-v-34c5adb9"><view class="data-v-34c5adb9">{{"性别:"+(memInfo.gender=='0'?'未知':memInfo.gender=='1'?'男':'女')}}</view><view class="ml-15 data-v-34c5adb9">{{"年龄:"+user.age+"岁"}}</view></view></view></view><block wx:if="{{acd_id==2}}"><view class="box data-v-34c5adb9"><view class="item data-v-34c5adb9"><view class="data-v-34c5adb9">{{memInfo.day?memInfo.day:'0'}}</view><text class="data-v-34c5adb9">时间(天)</text></view><view class="item data-v-34c5adb9"><view class="data-v-34c5adb9">{{memInfo.weightdiff?$root.g0:0}}</view><block wx:if="{{$root.m0>0}}"><text class="data-v-34c5adb9">增重(kg)</text></block><block wx:else><text class="data-v-34c5adb9">减重(kg)</text></block></view><view class="item data-v-34c5adb9"><view class="data-v-34c5adb9">{{memInfo.fat_wdiff?$root.g1:0}}</view><block wx:if="{{$root.m1>0}}"><text class="data-v-34c5adb9">增脂(kg)</text></block><block wx:else><text class="data-v-34c5adb9">减脂(kg)</text></block></view><view class="time data-v-34c5adb9"><view class="data-v-34c5adb9"><uni-icons class="t-icon t-icon-shijian-mianxing-0 data-v-34c5adb9" vue-id="75fd6465-1" bind:__l="__l"></uni-icons>{{memInfo.time+''}}</view>数据变化</view></view></block><block wx:else><view class="boxTime data-v-34c5adb9"><view class="mt-10 mb-10 data-v-34c5adb9"><uni-icons class="t-icon t-icon-shijian-mianxing-0 mr-10 size18 data-v-34c5adb9" vue-id="75fd6465-2" bind:__l="__l"></uni-icons>{{''+memInfo.time+''}}</view>数据变化</view></block><view class="control data-v-34c5adb9"><view class="title data-v-34c5adb9"><view class="name data-v-34c5adb9"></view><view class="data-v-34c5adb9">趋势</view><view class="data-v-34c5adb9">之前</view><view class="data-v-34c5adb9">之后</view></view><block wx:for="{{$root.l0}}" wx:for-item="ite" wx:for-index="ind" wx:key="ind"><view class="li data-v-34c5adb9"><view class="name data-v-34c5adb9"><text class="data-v-34c5adb9">{{ite.$orig.title}}</text></view><view class="num data-v-34c5adb9"><block wx:if="{{ite.$orig.diffval!=0||ite.$orig.diffval=='0.00'||ite.$orig.diffval=='00:00:00'}}"><text class="data-v-34c5adb9">{{acd_id!=6?ite.g2:ite.$orig.diffval}}</text></block><block wx:if="{{ite.m2>0}}"><icon class="t-icon t-icon-shang data-v-34c5adb9"></icon></block><block wx:if="{{ite.m3<0}}"><icon class="t-icon t-icon-xia data-v-34c5adb9"></icon></block><block wx:if="{{!ite.$orig.diffval||ite.$orig.diffval=='0.00'||ite.$orig.diffval=='00:00:00'}}"><icon class="t-icon t-icon-hengxian data-v-34c5adb9"></icon></block></view><view class="f data-v-34c5adb9"><view class="data-v-34c5adb9">{{ite.$orig.firstresult?ite.$orig.firstresult.value:'-'}}</view><text class="data-v-34c5adb9">{{ite.$orig.firstresult.level}}</text></view><view class="f data-v-34c5adb9"><view class="data-v-34c5adb9">{{ite.$orig.secondresult?ite.$orig.secondresult.value:'-'}}</view><text class="data-v-34c5adb9">{{ite.$orig.secondresult.level}}</text></view></view></block></view></view>
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.age.data-v-34c5adb9{margin-right:20px}.icon.data-v-34c5adb9{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-34c5adb9{height:2px;width:10px}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/business/addDevice"],{"213f":function(e,t,n){},"9e50":function(e,t,n){"use strict";var i=n("213f"),c=n.n(i);c.a},baf7:function(e,t,n){"use strict";(function(e,t){var i=n("47a9");n("30b7");i(n("3240"));var c=i(n("bc19"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(c.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},bc19:function(e,t,n){"use strict";n.r(t);var i=n("e968"),c=n("cea8");for(var a in c)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return c[e]}))}(a);n("9e50");var u=n("828b"),o=Object(u["a"])(c["default"],i["b"],i["c"],!1,null,"9bca8c7e",null,!1,i["a"],void 0);t["default"]=o.exports},cea8:function(e,t,n){"use strict";n.r(t);var i=n("f7ff"),c=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);t["default"]=c.a},e968:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){}));var i=function(){var e=this.$createElement;this._self._c},c=[]},f7ff:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{list:[]}},onLoad:function(){this.handleUserDeviceList()},methods:{handleUserDeviceList:function(){var e=this;e.$model.getDeviceList({}).then((function(t){0==t.code?e.list=t.data.list:e.$tools.msg(t.msg)})).catch((function(e){}))},handlebinging:function(t){console.log("item",t),e.redirectTo({url:"/pageTwo/business/search?id="+t.id})}}};t.default=n}).call(this,n("df3c")["default"])}},[["baf7","common/runtime","common/vendor"]]]);
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
{
|
|
||||||
"navigationBarTitleText": "设备列表",
|
|
||||||
"enablePullDownRefresh": false,
|
|
||||||
"usingComponents": {}
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
<view class="content data-v-9bca8c7e"><view class="list data-v-9bca8c7e"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index"><view data-event-opts="{{[['tap',[['handlebinging',['$0'],[[['list','',index]]]]]]]}}" class="item data-v-9bca8c7e" bindtap="__e"><image src="{{item.pic}}" class="data-v-9bca8c7e"></image><view class="name data-v-9bca8c7e">{{item.name}}</view></view></block></view></view>
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.list.data-v-9bca8c7e{width:100%}.list .item.data-v-9bca8c7e{width:33.3%;padding-top:8px;display:flex;float:left;flex-direction:column;box-sizing:border-box;justify-content:center;border-right:1px solid #dfdfdf;border-bottom:1px solid #dfdfdf}.list .item image.data-v-9bca8c7e{width:60px;height:60px;margin:0 auto 10px}.list .item .name.data-v-9bca8c7e{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;margin-bottom:10px}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/business/business"],{"35ea":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){}));var r=function(){var e=this.$createElement;this._self._c},c=[]},8051:function(e,t,n){"use strict";(function(e,t){var r=n("47a9");n("30b7");r(n("3240"));var c=r(n("a485"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(c.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"816f":function(e,t,n){},a485:function(e,t,n){"use strict";n.r(t);var r=n("35ea"),c=n("d1c1");for(var i in c)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return c[e]}))}(i);n("b5c4");var o=n("828b"),s=Object(o["a"])(c["default"],r["b"],r["c"],!1,null,"7523c67b",null,!1,r["a"],void 0);t["default"]=s.exports},b5c4:function(e,t,n){"use strict";var r=n("816f"),c=n.n(r);c.a},d1c1:function(e,t,n){"use strict";n.r(t);var r=n("e3e6"),c=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t["default"]=c.a},e3e6:function(e,t,n){"use strict";(function(e){var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=r(n("7ca3")),i=n("8f59");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 s(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){(0,c.default)(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}var u={data:function(){return{}},computed:s(s({},(0,i.mapState)(["user","userDeviceList"])),{},{list:function(){return this.userDeviceList}}),onLoad:function(){this.$store.dispatch("getUserDeviceList")},onPullDownRefresh:function(){this.$store.dispatch("getUserDeviceList"),setTimeout((function(){e.stopPullDownRefresh()}),1e3)},methods:{handleunbind:function(t,n){var r=this;e.showModal({title:"友情提示",content:"是否解绑该设备?",success:function(c){c.confirm?r.$model.getUnbinding({id:t.id}).then((function(t){0==t.code?(r.$tools.msg("操作成功"),r.list.splice(n,1),r.$store.dispatch("getUserInfo",{aud_id:e.getStorageSync("userid")})):r.$tools.msg(t.msg)})):c.cancel&&r.$tools.msg("您已取消操作!")}})},handleAddDevice:function(){e.navigateTo({url:"/pageTwo/business/addDevice"})}}};t.default=u}).call(this,n("df3c")["default"])}},[["8051","common/runtime","common/vendor"]]]);
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
"navigationBarTitleText": "设备管理",
|
|
||||||
"enablePullDownRefresh": true,
|
|
||||||
"onReachBottomDistance": 50,
|
|
||||||
"usingComponents": {}
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
<view class="content data-v-7523c67b"><view data-event-opts="{{[['tap',[['handleAddDevice']]]]}}" class="add data-v-7523c67b" bindtap="__e">添加设备</view><view class="list data-v-7523c67b"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index"><view data-event-opts="{{[['tap',[['handleunbind',['$0',index],[[['list','',index]]]]]]]}}" class="item data-v-7523c67b" bindtap="__e"><view class="left data-v-7523c67b"><image src="{{item.pic}}" class="data-v-7523c67b"></image><view class="name data-v-7523c67b"><text class="data-v-7523c67b">{{item.name}}</text><text class="data-v-7523c67b">{{item.bind_time}}</text></view></view><view class="bing data-v-7523c67b">解绑</view></view></block></view></view>
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.content.data-v-7523c67b{font-size:32rpx;padding:15px;background-color:#f5f6fa;min-height:calc(100vh - 30px)}.add.data-v-7523c67b{width:100%;height:35px;line-height:35px;font-size:32rpx;margin-bottom:15px;color:#fff;border-radius:15px;display:flex;justify-content:center;background:#fea606}.list.data-v-7523c67b{width:100%}.list .item.data-v-7523c67b{width:calc(100% - 20px);padding:5px 10px;display:flex;align-items:center;justify-content:space-between;border-radius:10px;background-color:#fff;margin-bottom:10px}.list .item .left.data-v-7523c67b{width:80%;display:flex;align-items:center}.list .item .left image.data-v-7523c67b{width:50px;height:50px;margin-right:10px}.list .item .left .name.data-v-7523c67b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}.list .item .left .name text.data-v-7523c67b{width:100%;display:block;text-align:left;margin-top:10px}.list .item .bing.data-v-7523c67b{width:auto;float:right;background-color:#dfdfdf;border-radius:10px;padding:5px 10px}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/business/search"],{"2c78":function(e,t,o){"use strict";o.d(t,"b",(function(){return n})),o.d(t,"c",(function(){return i})),o.d(t,"a",(function(){}));var n=function(){var e=this.$createElement,t=(this._self._c,this.devices.length);this.$mp.data=Object.assign({},{$root:{g0:t}})},i=[]},"46e3":function(e,t,o){"use strict";var n=o("f503"),i=o.n(n);i.a},"534b":function(e,t,o){"use strict";o.r(t);var n=o("b65d"),i=o.n(n);for(var c in n)["default"].indexOf(c)<0&&function(e){o.d(t,e,(function(){return n[e]}))}(c);t["default"]=i.a},6387:function(e,t,o){"use strict";o.r(t);var n=o("2c78"),i=o("534b");for(var c in i)["default"].indexOf(c)<0&&function(e){o.d(t,e,(function(){return i[e]}))}(c);o("46e3");var r=o("828b"),a=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"ca7415fe",null,!1,n["a"],void 0);t["default"]=a.exports},b2de:function(e,t,o){"use strict";(function(e,t){var n=o("47a9");o("30b7");n(o("3240"));var i=n(o("6387"));e.__webpack_require_UNI_MP_PLUGIN__=o,t(i.default)}).call(this,o("3223")["default"],o("df3c")["createPage"])},b65d:function(e,t,o){"use strict";(function(e,n){var i=o("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c,r,a=i(o("7ca3")),s=o("8f59");function u(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}var d={data:function(){return{macAddr:"",code:"",deviceId:"",popup:!1,devices:[],id:0}},computed:function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?u(Object(o),!0).forEach((function(t){(0,a.default)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):u(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({},(0,s.mapState)(["user","isConnected","isBluetoothTyle"])),onLoad:function(t){c=this,c.id=t.id,c.$Bluetooth.onBLEConnectionStateChange(),e.onBluetoothAdapterStateChange((function(e){c.$store.commit("changeBluetooth",e.available)})),console.log("搜索")},onUnload:function(){console.log("onUnload");this.Unload||(e.hideLoading(),this.$Bluetooth.closeBluetoothAdapter(),this.$Bluetooth.stopBluetoothDevicesDiscovery())},methods:{openBluetoothAdapter:function(){var t=this;e.openBluetoothAdapter({success:function(e){console.log("蓝牙初始化成功"),t.startBluetoothDeviceDiscovery()},fail:function(e){console.log("初始化蓝牙失败:"+e.errMsg),t.$Bluetooth.getBluetoothAdapter(e)}})},startBluetoothDeviceDiscovery:function(){var t=this;e.startBluetoothDevicesDiscovery({allowDuplicatesKey:!0,success:function(e){t.onBluetoothDeviceFound()},fail:function(e){}})},onBluetoothDeviceFound:function(){var t=this;n.showLoading({title:"设备搜索中"}),e.onBluetoothDeviceFound((function(e){e.devices.forEach((function(e){if(-1!=e.name.indexOf("YPC")){clearTimeout(r);var o=e.name.slice(7,19);return e.macAddr=t.$Bluetooth.str2Num(o),e.deviceId=t.$Bluetooth.str2Num(o),void t.handleDevice(e)}if(-1!=e.name.indexOf("G02")){clearTimeout(r);var n=e.advertisData.slice(3,9);e.mac=new Uint8Array(n);var i=Array.from(e.mac);return i.reverse(),e.macAddr=t.$tools.ab2hex(i,":").toUpperCase(),void t.handleDevice(e)}if(-1!=e.name.indexOf("Yihejia_Lung"))return console.log("肺活量",e,"04:0D:84:48:E0:9B"),e.macAddr=e.deviceId,clearTimeout(r),void t.handleDevice(e)}))})),t.handleMyTime()},handleDevice:function(e){var t=this.devices,o=this.$tools.inArray(t,"deviceId",e.deviceId);this.deviceId=e.deviceId,-1===o?this.devices.push(e):this.devices[o]=e,this.popup=!0},handleMyTime:function(){var t=this;r=setTimeout((function(){t.devices.length||(t.islink=-1,t.$tools.showModal("没有查找到设备")),e.hideLoading(),clearTimeout(r),t.$Bluetooth.stopBluetoothDevicesDiscovery()}),15e3)},createBLEConnection:function(t){var o=this;o.$Bluetooth.stopBluetoothDevicesDiscovery(),o.macAddr=t.macAddr,e.showModal({title:"提示",content:"是否绑定该设备?",cancelText:"取消",confirmText:"确定",success:function(e){e.confirm?o.getActive():o.$tools.msg("您已取消操作")}})},getActive:function(){var t=this;t.$model.getBinding({device_id:t.id,device_mac:t.macAddr}).then((function(o){t.$Bluetooth.closeBluetoothAdapter(),t.devices=[],0==o.code?(t.$tools.msg("绑定成功!"),t.$store.dispatch("getUserDeviceList"),t.$store.dispatch("getUserInfo",{aud_id:e.getStorageSync("userid")}),setTimeout((function(){e.switchTab({url:"/pages/home/home"})}),500)):t.$tools.msg(o.msg)}))}}};t.default=d}).call(this,o("df3c")["default"],o("3223")["default"])},f503:function(e,t,o){}},[["b2de","common/runtime","common/vendor"]]]);
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
{
|
|
||||||
"navigationBarTitleText": "搜索设备",
|
|
||||||
"enablePullDownRefresh": false,
|
|
||||||
"usingComponents": {}
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
<view class="container data-v-ca7415fe"><view class="tips data-v-ca7415fe">请在设备开机状态下,搜索设备</view><view data-event-opts="{{[['tap',[['openBluetoothAdapter',['$event']]]]]}}" class="item data-v-ca7415fe" bindtap="__e">开始搜索设备</view><view class="devices_summary data-v-ca7415fe">{{"已发现 "+$root.g0+" 个设备:"}}</view><view class="data-v-ca7415fe"><block wx:if="{{popup}}"><scroll-view class="device_list data-v-ca7415fe" scroll-y="{{true}}" scroll-with-animation="{{true}}"><block wx:for="{{devices}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['createBLEConnection',['$0'],[[['devices','',index]]]]]]]}}" class="device_item data-v-ca7415fe" bindtap="__e"><view class="data-v-ca7415fe"><text class="data-v-ca7415fe">{{item.localName||item.name}}</text></view><view class="data-v-ca7415fe">{{"mac地址:"+(item.macAddr||item.deviceId)}}</view></view></block></scroll-view></block></view><view class="tishi data-v-ca7415fe"><view class="text data-v-ca7415fe"><icon class="t-icon t-icon-tishi data-v-ca7415fe"></icon>设备绑定流程说明</view><view class="dv data-v-ca7415fe"><text class="data-v-ca7415fe">1、打开手机蓝牙和位置信息</text><text class="data-v-ca7415fe">2、ios系统需打开设置—>应用—>微信里的蓝牙权限</text><text class="data-v-ca7415fe">3、设备亮屏状态下搜索蓝牙</text><text class="data-v-ca7415fe">4、选择蓝牙进行绑定</text></view></view></view>
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.content.data-v-ca7415fe{min-height:calc(100vh - 66px);padding:0;border-top:66px solid #f9fafc;background-color:#fff}.tishi.data-v-ca7415fe{width:100%;font-size:28rpx;line-height:25px;font-weight:700;position:absolute;bottom:20px;padding-left:15px}.tishi .text.data-v-ca7415fe{display:flex;align-items:center}.tishi .text icon.data-v-ca7415fe{margin-right:5px}.tishi text.data-v-ca7415fe{font-weight:500;font-size:32rpx;color:#999;width:100%;display:block}.item.data-v-ca7415fe{width:70%;height:40px;line-height:38px;text-align:center;background:#f7f7f7;border:1px solid #dfdfdf;font-weight:700;margin:auto;border-radius:15px;margin-top:15px}.devices_summary.data-v-ca7415fe{width:100%;height:40px;line-height:40px;text-align:center;font-size:36rpx;color:#666}.device_list.data-v-ca7415fe{flex:1;width:100%;height:auto;max-height:340px;margin-top:0;margin-bottom:10px;position:absolute;bottom:160px;top:170px}.device_list .device_item.data-v-ca7415fe{font-size:32rpx;padding:7px 10px;color:#999;border-bottom:1px solid #dfdfdf}.device_list .device_item text.data-v-ca7415fe{display:inline-block;font-size:28rpx;font-weight:700;color:#666;margin-bottom:5px}.tips.data-v-ca7415fe{font-size:28rpx;text-align:center;color:#e83a1e;background:#f7e4c8;padding:5px 0;margin-top:15px}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/cardList/card"],{"27a0":function(t,e,n){},"2a49":function(t,e,n){"use strict";n.r(e);var r=n("d0d7"),a=n("99c3");for(var c in a)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(c);n("e60e");var i=n("828b"),o=Object(i["a"])(a["default"],r["b"],r["c"],!1,null,"3a5cf56e",null,!1,r["a"],void 0);e["default"]=o.exports},9842:function(t,e,n){"use strict";(function(t,e){var r=n("47a9");n("30b7");r(n("3240"));var a=r(n("2a49"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"99c3":function(t,e,n){"use strict";n.r(e);var r=n("a9e7"),a=n.n(r);for(var c in r)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(c);e["default"]=a.a},a9e7:function(t,e,n){"use strict";(function(t){var r=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(n("7ca3")),c=n("8f59");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}var o={data:function(){return{cardList:{user:[],all:[]}}},onLoad:function(){this.handleCardList()},computed:function(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){(0,a.default)(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}({},(0,c.mapState)(["user"])),methods:{handleCardList:function(){var t=this;t.$model.getCardAllList({aud_id:t.user.id}).then((function(e){console.log("卡片列表",e.data),0==e.code?t.cardList=e.data:t.$tools.msg(e.msg)}))},handleGradeList:function(){var e=this,n=[];e.cardList.user.forEach((function(t){n.push(t.id)})),e.$model.getCardAllOrder({aud_id:e.user.id,card_order:n.join(",")}).then((function(n){0==n.code?(e.$store.dispatch("getUserInfo",{aud_id:e.user.id}),t.switchTab({url:"/pages/home/home"})):e.$tools.msg(n.msg)})).catch((function(t){}))},deleteCard:function(t,e){2!=t.id&&(this.cardList.user.splice(e,1),this.cardList.all.push(t))},addCard:function(t,e){this.cardList.all.splice(e,1),this.cardList.user.push(t)}}};e.default=o}).call(this,n("df3c")["default"])},d0d7:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return r}));var r={uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"bbd6"))}},a=function(){var t=this.$createElement;this._self._c},c=[]},e60e:function(t,e,n){"use strict";var r=n("27a0"),a=n.n(r);a.a}},[["9842","common/runtime","common/vendor"]]]);
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
{
|
|
||||||
"navigationBarTitleText": "卡片设置",
|
|
||||||
"enablePullDownRefresh": false,
|
|
||||||
"usingComponents": {
|
|
||||||
"uni-icons": "/uni_modules/uni-icons/components/uni-icons/uni-icons"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
<view class="content data-v-3a5cf56e"><view class="box data-v-3a5cf56e"><view class="list data-v-3a5cf56e"><block wx:for="{{cardList.user}}" wx:for-item="item" wx:for-index="index"><view data-event-opts="{{[['tap',[['deleteCard',['$0',index],[[['cardList.user','',index]]]]]]]}}" class="item data-v-3a5cf56e" bindtap="__e"><block wx:if="{{item.id!=2}}"><uni-icons vue-id="{{'67cd25e5-1-'+index}}" type="minus-filled" size="18" color="#FF6D66" class="data-v-3a5cf56e" bind:__l="__l"></uni-icons></block><view class="info data-v-3a5cf56e"><image src="{{item.pic}}" class="data-v-3a5cf56e"></image><view class="data-v-3a5cf56e">{{item.name}}</view></view></view></block></view></view><view class="box data-v-3a5cf56e"><view class="tips2 tips data-v-3a5cf56e">可添加的卡片</view><view class="list data-v-3a5cf56e"><block wx:for="{{cardList.all}}" wx:for-item="item" wx:for-index="index"><view data-event-opts="{{[['tap',[['addCard',['$0',index],[[['cardList.all','',index]]]]]]]}}" class="item data-v-3a5cf56e" bindtap="__e"><uni-icons vue-id="{{'67cd25e5-2-'+index}}" type="plus-filled" size="18" color="#05BD79" class="data-v-3a5cf56e" bind:__l="__l"></uni-icons><view class="info data-v-3a5cf56e"><image src="{{item.pic}}" class="data-v-3a5cf56e"></image><view class="data-v-3a5cf56e">{{item.name}}</view></view></view></block></view></view><view data-event-opts="{{[['tap',[['handleGradeList']]]]}}" class="btn data-v-3a5cf56e" bindtap="__e">保存卡片</view></view>
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
.content.data-v-3a5cf56e{padding:15px;font-size:32rpx;background-color:#f5f6fa;min-height:100vh}.content .tips.data-v-3a5cf56e{font-size:32rpx;color:#999;width:100%;margin-bottom:15px}.content .tips2.data-v-3a5cf56e{color:#333;font-size:32rpx;font-weight:700}.content .list.data-v-3a5cf56e{display:flex;justify-content:space-between;flex-wrap:wrap}.content .list .item.data-v-3a5cf56e{width:45%;background-color:#fff;margin-bottom:15px;position:relative;height:60px;line-height:60px;border-radius:5px}.content .list .item .uni-icons.data-v-3a5cf56e,
|
|
||||||
.content .list .item uni-icons.data-v-3a5cf56e{font-size:36rpx;position:absolute;top:-28px;left:-5px}.content .list .item .info.data-v-3a5cf56e{width:100%;display:flex;align-items:center;justify-content:center}.content .list .item .info image.data-v-3a5cf56e{width:30px;height:30px;background-color:#f2f2f2;margin-right:10px;border-radius:50%}.btn.data-v-3a5cf56e{width:auto;margin:40px 15px 0;background:#fea606!important}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/compk/contrast"],{"5c5c":function(t,e,i){"use strict";i.r(e);var n=i("b9de"),s=i("7f12");for(var r in s)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return s[t]}))}(r);var o=i("828b"),a=Object(o["a"])(s["default"],n["b"],n["c"],!1,null,"f4a58812",null,!1,n["a"],void 0);e["default"]=a.exports},7023:function(t,e,i){"use strict";(function(t,e){var n=i("47a9");i("30b7");n(i("3240"));var s=n(i("5c5c"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(s.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},"7f12":function(t,e,i){"use strict";i.r(e);var n=i("8c0b"),s=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=s.a},"8c0b":function(t,e,i){"use strict";(function(t){var n=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=n(i("7ca3")),r=i("8f59");function o(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function a(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?o(Object(i),!0).forEach((function(e){(0,s.default)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var c={data:function(){return{markDays:[],infoList:[],list:[],isActive:[],ActiveDays:[],startM:null,endM:null,isShow:!0,acd_id:""}},components:{RenCalendar:function(){i.e("element/ren-calendar/ren-calendar").then(function(){return resolve(i("a185"))}.bind(null,i)).catch(i.oe)}},computed:a(a({},(0,r.mapState)(["user","TrendPk","appTheme"])),{},{length:function(){return this.isActive.length},endDate:function(){return this.$tools.getDate("start")}}),onLoad:function(t){var e=this;e.acd_id=t.acd_id,e.startM=e.$tools.getDate("m").substring(0,10),e.endM=e.$tools.getDate("m").substring(11,21),e.markDays=[],e.list=[],e.isActive=[],e.ActiveDays=[],this.$nextTick((function(){e.isShow=!0,e.getList(e.startM,e.endM)}))},methods:{getList:function(e,i){var n=this;n.$model.getresultdiff({aud_id:t.getStorageSync("userid"),s_time:e,e_time:i,type:n.acd_id}).then((function(t){if(t){n.markDays=t.Dlist,n.list=t.data;for(var e=0;e<t.data.length;e++)Date.parse(n.endDate)==Date.parse(t.data[e].r_t)&&n.infoList.push(t.data[e]);console.log("对比",t)}}))},onMonthClickPre:function(t){console.log("onMonthClickPre",t);var e=t.substring(0,10),i=t.substring(11,21);this.infoList=[],this.markDays=[],this.list=[],this.getList(e,i)},onDayClick:function(t){this.infoList=[];for(var e=0;e<this.list.length;e++)Date.parse(t.date)==Date.parse(this.list[e].r_t)&&this.infoList.push(this.list[e])},addMemberTags:function(t,e){console.log("addMemberTags",t,e),-1==this.isActive.indexOf(t)?(this.isActive.push(t),this.ActiveDays.push(e)):(this.isActive.splice(this.isActive.indexOf(t),1),this.ActiveDays.splice(this.ActiveDays.indexOf(e),1)),this.isActive.length>2&&(this.isActive.splice(0,1),this.ActiveDays.splice(0,1))},handlePK:function(){if(2==this.isActive.length){var e={};e.type=this.acd_id,e.before_id=this.isActive[0],e.after_id=this.isActive[1],console.log("1111",e,this.isActive),t.navigateTo({url:"/pageTwo/compk/pkdetail?info="+JSON.stringify(e)})}else this.$tools.msg("请先选择数据!")}}};e.default=c}).call(this,i("df3c")["default"])},b9de:function(t,e,i){"use strict";i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return n}));var n={uniIcons:function(){return Promise.all([i.e("common/vendor"),i.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(i.bind(null,"bbd6"))}},s=function(){var t=this,e=t.$createElement,i=(t._self._c,t.infoList.length),n=i?t.__map(t.infoList,(function(e,i){var n=t.__get_orig(e),s=t.isActive.indexOf(e.id),r=t.isActive.indexOf(e.id);return{$orig:n,g1:s,g2:r}})):null;t.$mp.data=Object.assign({},{$root:{g0:i,l0:n}})},r=[]}},[["7023","common/runtime","common/vendor"]]]);
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
{
|
|
||||||
"navigationBarTitleText": "数据对比",
|
|
||||||
"enablePullDownRefresh": false,
|
|
||||||
"usingComponents": {
|
|
||||||
"uni-icons": "/uni_modules/uni-icons/components/uni-icons/uni-icons",
|
|
||||||
"ren-calendar": "/element/ren-calendar/ren-calendar"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
<view class="content data-v-f4a58812"><view class="calendar data-v-f4a58812"><block wx:if="{{isShow}}"><ren-calendar vue-id="54ac2c91-1" markDays="{{markDays}}" data-ref="ren" data-event-opts="{{[['^onDayClick',[['onDayClick']]],['^onMonthClickPre',[['onMonthClickPre']]]]}}" bind:onDayClick="__e" bind:onMonthClickPre="__e" class="data-v-f4a58812 vue-ref" bind:__l="__l"></ren-calendar></block><block wx:if="{{$root.g0}}"><view class="box data-v-f4a58812"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['addMemberTags',['$0','$1'],[[['infoList','',index,'id']],[['infoList','',index]]]]]]]}}" class="list data-v-f4a58812" bindtap="__e"><view class="item data-v-f4a58812"><view class="check data-v-f4a58812"><uni-icons vue-id="{{'54ac2c91-2-'+index}}" type="{{item.g1!=-1?'checkbox-filled':'circle'}}" size="22" color="{{item.g2!=-1?'#FEC407':'#dfdfdf'}}" class="data-v-f4a58812" bind:__l="__l"></uni-icons></view><view class="data-v-f4a58812">{{item.$orig.v1}}<text class="data-v-f4a58812">{{item.$orig.v1_name}}</text></view><block wx:if="{{item.$orig.v2}}"><view class="data-v-f4a58812">{{item.$orig.v2}}<text class="data-v-f4a58812">{{item.$orig.v2_name}}</text></view></block><block wx:if="{{item.$orig.v3}}"><view class="data-v-f4a58812">{{item.$orig.v3}}<text class="data-v-f4a58812">{{item.$orig.v3_name}}</text></view></block></view></view></block></view></block><view class="bottom data-v-f4a58812"><block wx:for="{{ActiveDays}}" wx:for-item="ite" wx:for-index="ind" wx:key="ind"><block wx:if="{{isActive}}"><view data-event-opts="{{[['tap',[['addMemberTags',['$0','$1'],[[['ActiveDays','',ind,'id']],[['ActiveDays','',ind]]]]]]]}}" class="list data-v-f4a58812" bindtap="__e"><view class="item borderRadius data-v-f4a58812"><view class="time data-v-f4a58812">{{ite.r_t}}</view><view class="data-v-f4a58812">{{ite.v1}}<text class="data-v-f4a58812">{{ite.v1_name}}</text></view><block wx:if="{{ite.v2}}"><view class="data-v-f4a58812">{{ite.v2}}<text class="data-v-f4a58812">{{ite.v2_name}}</text></view></block><block wx:if="{{ite.v3}}"><view class="data-v-f4a58812">{{ite.v3}}<text class="data-v-f4a58812">{{ite.v3_name}}</text></view></block><view class="check data-v-f4a58812"><uni-icons vue-id="{{'54ac2c91-3-'+ind}}" type="clear" size="22" color="#999" class="data-v-f4a58812" bind:__l="__l"></uni-icons></view></view></view></block></block><block wx:if="{{length==2}}"><view class="pkclass data-v-f4a58812">vs</view></block><view data-event-opts="{{[['tap',[['handlePK',['$event']]]]]}}" class="{{['btn','data-v-f4a58812',(length!=2)?'active':'']}}" bindtap="__e">对比</view></view></view></view>
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/compk/pkdetail"],{"2de2":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return f})),n.d(e,"a",(function(){return r}));var r={uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"bbd6"))}},i=function(){var t=this,e=t.$createElement,n=(t._self._c,2==t.acd_id&&t.memInfo.weightdiff?Math.abs(t.memInfo.weightdiff):null),r=2==t.acd_id?Number(t.memInfo.weightdiff):null,i=2==t.acd_id&&t.memInfo.fat_wdiff?Math.abs(t.memInfo.fat_wdiff):null,f=2==t.acd_id?Number(t.memInfo.fat_wdiff):null,a=t.__map(t.listStr,(function(e,n){var r=t.__get_orig(e),i=0==e.diffval&&"0.00"!=e.diffval&&"00:00:00"!=e.diffval||6==t.acd_id?null:Math.abs(e.diffval),f=Number(e.diffval),a=Number(e.diffval);return{$orig:r,g2:i,m2:f,m3:a}}));t.$mp.data=Object.assign({},{$root:{g0:n,m0:r,g1:i,m1:f,l0:a}})},f=[]},"67c9":function(t,e,n){},7154:function(t,e,n){"use strict";var r=n("67c9"),i=n.n(r);i.a},"9b19":function(t,e,n){"use strict";var r=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("7ca3")),f=n("8f59");function a(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}var o={onLoad:function(t){if(console.log("options",t),t.info){var e=JSON.parse(t.info);this.acd_id=e.type,this.handleSharepic(JSON.parse(t.info))}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,f.mapState)(["user","appTheme"])),methods:{handleSharepic:function(t){var e=this,n=this;n.$model.getresultcontrast({type:t.type,before_id:t.before_id,after_id:t.after_id}).then((function(t){console.log("res",t),0==t.code?(t.data.list.forEach((function(e){e.firstresult&&"weight"==e.firstresult.name&&(t.data.weightdiff=e.diffval),e.firstresult&&"fat_w"==e.firstresult.name&&(t.data.fat_wdiff=e.diffval),(e.firstresult||e.secondresult)&&(e.name=e.firstresult?e.firstresult.name:e.secondresult.name,e.title=e.firstresult?e.firstresult.title:e.secondresult.title)})),n.memInfo=t.data,n.listStr=t.data.list):e.$tools.msg(t.msg)}))}},data:function(){return{memInfo:{},listStr:[],acd_id:""}}};e.default=o},b5e4:function(t,e,n){"use strict";n.r(e);var r=n("2de2"),i=n("b805");for(var f in i)["default"].indexOf(f)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(f);n("7154");var a=n("828b"),o=Object(a["a"])(i["default"],r["b"],r["c"],!1,null,"15603b97",null,!1,r["a"],void 0);e["default"]=o.exports},b805:function(t,e,n){"use strict";n.r(e);var r=n("9b19"),i=n.n(r);for(var f in r)["default"].indexOf(f)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(f);e["default"]=i.a},cfee:function(t,e,n){"use strict";(function(t,e){var r=n("47a9");n("30b7");r(n("3240"));var i=r(n("b5e4"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])}},[["cfee","common/runtime","common/vendor"]]]);
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
{
|
|
||||||
"navigationBarTitleText": "对比详情",
|
|
||||||
"enablePullDownRefresh": false,
|
|
||||||
"usingComponents": {
|
|
||||||
"uni-icons": "/uni_modules/uni-icons/components/uni-icons/uni-icons"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
<view class="content pkconp data-v-15603b97"><view class="headerTop data-v-15603b97"><view class="left data-v-15603b97"><image class="image1 data-v-15603b97" src="{{memInfo.headimg}}"></image></view><view class="right data-v-15603b97"><view class="name data-v-15603b97">{{memInfo.name?memInfo.name:memInfo.nickname}}</view><view class="top data-v-15603b97"><view class="data-v-15603b97">{{"性别:"+(memInfo.gender=='0'?'未知':memInfo.gender=='1'?'男':'女')}}</view><view class="ml-15 data-v-15603b97">{{"年龄:"+user.age+"岁"}}</view></view></view></view><block wx:if="{{acd_id==2}}"><view class="box data-v-15603b97"><view class="item data-v-15603b97"><view class="data-v-15603b97">{{memInfo.day?memInfo.day:'0'}}</view><text class="data-v-15603b97">时间(天)</text></view><view class="item data-v-15603b97"><view class="data-v-15603b97">{{memInfo.weightdiff?$root.g0:0}}</view><block wx:if="{{$root.m0>0}}"><text class="data-v-15603b97">增重(kg)</text></block><block wx:else><text class="data-v-15603b97">减重(kg)</text></block></view><view class="item data-v-15603b97"><view class="data-v-15603b97">{{memInfo.fat_wdiff?$root.g1:0}}</view><block wx:if="{{$root.m1>0}}"><text class="data-v-15603b97">增脂(kg)</text></block><block wx:else><text class="data-v-15603b97">减脂(kg)</text></block></view><view class="time data-v-15603b97"><view class="data-v-15603b97"><uni-icons class="t-icon t-icon-shijian-mianxing-0 data-v-15603b97" vue-id="3b3417c7-1" bind:__l="__l"></uni-icons>{{memInfo.time+''}}</view>数据变化</view></view></block><block wx:else><view class="boxTime data-v-15603b97"><view class="mt-10 mb-10 data-v-15603b97"><uni-icons class="t-icon t-icon-shijian-mianxing-0 mr-10 size18 data-v-15603b97" vue-id="3b3417c7-2" bind:__l="__l"></uni-icons>{{''+memInfo.time+''}}</view>数据变化</view></block><view class="control data-v-15603b97"><view class="title data-v-15603b97"><view class="name data-v-15603b97"></view><view class="data-v-15603b97">趋势</view><view class="data-v-15603b97">之前</view><view class="data-v-15603b97">之后</view></view><block wx:for="{{$root.l0}}" wx:for-item="ite" wx:for-index="ind" wx:key="ind"><view class="li data-v-15603b97"><view class="name data-v-15603b97"><text class="data-v-15603b97">{{ite.$orig.title}}</text></view><view class="num data-v-15603b97"><block wx:if="{{ite.$orig.diffval!=0||ite.$orig.diffval=='0.00'||ite.$orig.diffval=='00:00:00'}}"><text class="data-v-15603b97">{{acd_id!=6?ite.g2:ite.$orig.diffval}}</text></block><block wx:if="{{ite.m2>0}}"><icon class="t-icon t-icon-shang data-v-15603b97"></icon></block><block wx:if="{{ite.m3<0}}"><icon class="t-icon t-icon-xia data-v-15603b97"></icon></block><block wx:if="{{!ite.$orig.diffval||ite.$orig.diffval=='0.00'||ite.$orig.diffval=='00:00:00'}}"><icon class="t-icon t-icon-hengxian data-v-15603b97"></icon></block></view><view class="f data-v-15603b97"><view class="data-v-15603b97">{{ite.$orig.firstresult?ite.$orig.firstresult.value:'-'}}</view><text class="data-v-15603b97">{{ite.$orig.firstresult.level}}</text></view><view class="f data-v-15603b97"><view class="data-v-15603b97">{{ite.$orig.secondresult?ite.$orig.secondresult.value:'-'}}</view><text class="data-v-15603b97">{{ite.$orig.secondresult.level}}</text></view></view></block></view></view>
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.age.data-v-15603b97{margin-right:20px}.icon.data-v-15603b97{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-15603b97{height:2px;width:10px}
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,5 +0,0 @@
|
||||||
{
|
|
||||||
"navigationBarTitleText": "",
|
|
||||||
"enablePullDownRefresh": false,
|
|
||||||
"usingComponents": {}
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
<view class="weightPages data-v-2e16bdff"><view class="content data-v-2e16bdff"><view class="status data-v-2e16bdff">{{textLink}}</view><view class="quan data-v-2e16bdff"><view class="data-v-2e16bdff"><text class="weight data-v-2e16bdff">{{weight?weight:'0.00'}}</text>{{unit+''}}</view><block wx:if="{{typeInfo!=0}}"><view class="typeInfo data-v-2e16bdff">{{typeInfo==2?'稳定重量':'实时重量'}}</view></block></view><block wx:if="{{isSave}}"><view class="btnGroup data-v-2e16bdff"><view data-event-opts="{{[['tap',[['handleIsLing',['$event']]]]]}}" class="{{['data-v-2e16bdff',IsLing?'disabled':'btnClose']}}" bindtap="__e">清零</view><view data-event-opts="{{[['tap',[['handleIsNum',['$event']]]]]}}" class="baocun data-v-2e16bdff" bindtap="__e">锁定</view></view></block><view class="tips data-v-2e16bdff"><text class="data-v-2e16bdff">提示:</text><text class="data-v-2e16bdff">1.请确定设备是开机状态</text><text class="data-v-2e16bdff">2.请确定手机蓝牙、位置信息已打开</text></view></view><block wx:if="{{isHeight}}"><view class="wrapper data-v-2e16bdff"><view class="bg data-v-2e16bdff"></view><view class="Blue data-v-2e16bdff"><view class="h4 data-v-2e16bdff">测量结果提示</view><view class="Blue-box data-v-2e16bdff">本次测量体重是:<text class="data-v-2e16bdff">{{weight+unit}}</text></view><view class="Blue-box data-v-2e16bdff">上次测量身高是:<input type="digit" placeholder="请输入身高" data-event-opts="{{[['input',[['__set_model',['','height','$event',[]]]]]]}}" value="{{height}}" bindinput="__e" class="data-v-2e16bdff"/>cm</view><block wx:if="{{userInfo.stage=='婴儿'}}"><view class="Blue-box data-v-2e16bdff">上次测量头围是:<input type="digit" placeholder="请输入头围" data-event-opts="{{[['input',[['__set_model',['','head','$event',[]]]]]]}}" value="{{head}}" bindinput="__e" class="data-v-2e16bdff"/>cm</view></block><view data-event-opts="{{[['tap',[['handleBack',['$event']]]]]}}" class="Blue-btn Blue-close data-v-2e16bdff" bindtap="__e">重新测量</view><view data-event-opts="{{[['tap',[['handleGetMeasure',['$event']]]]]}}" class="Blue-btn data-v-2e16bdff" bindtap="__e">保存结果</view></view></view></block></view>
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.content.data-v-2e16bdff{background:#fff;width:100%;height:100vh;display:flex;flex-direction:column;justify-content:space-between}.btnClose.data-v-2e16bdff{color:#fff;background:linear-gradient(-90deg,#fccf4f,#fba418 80%)!important}.baocun.data-v-2e16bdff{color:#fff;background:linear-gradient(-90deg,#feaa50,#e96b13 80%)!important}.quan.data-v-2e16bdff{width:400rpx;height:400rpx;border:8px solid #feaa50;border-radius:50%;margin:15px auto;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 0 25px 10px #e96b13;-webkit-animation:pulse-data-v-2e16bdff 1s infinite;animation:pulse-data-v-2e16bdff 1s infinite}.quan .weight.data-v-2e16bdff{font-size:50px;color:#000;font-weight:700}.quan .typeInfo.data-v-2e16bdff{width:100%;text-align:center;font-size:16px;color:#f0ae43}@-webkit-keyframes pulse-data-v-2e16bdff{0%{box-shadow:0 0 25px 10px #e96b13}50%{box-shadow:0 0 25px 10px #fba418}100%{box-shadow:0 0 25px 10px #e96b13}}@keyframes pulse-data-v-2e16bdff{0%{box-shadow:0 0 25px 10px #e96b13}50%{box-shadow:0 0 25px 10px #fba418}100%{box-shadow:0 0 25px 10px #e96b13}}.status.data-v-2e16bdff{width:70%;font-size:16px;height:35px;line-height:35px;text-align:center;border-radius:15px;margin:15px auto;background-color:#ffdda6}.disabled.data-v-2e16bdff{width:150px;background-color:#dfdfdf;border:1px solid #f7f7f7;color:#fff;text-align:center;padding:7px;border-radius:10px;margin:15px auto}.tips.data-v-2e16bdff{font-size:14px!important;margin-bottom:20px}
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,5 +0,0 @@
|
||||||
{
|
|
||||||
"navigationBarTitleText": "测量",
|
|
||||||
"enablePullDownRefresh": false,
|
|
||||||
"usingComponents": {}
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
<view class="weightPages data-v-f038e658"><view class="content data-v-f038e658"><view class="status data-v-f038e658">{{textLink}}</view><view class="text data-v-f038e658">{{text}}</view><view class="image data-v-f038e658"><image class="image3 data-v-f038e658" src="/pageTwo/static/HC.png"></image></view><view class="tips data-v-f038e658"><view class="data-v-f038e658">提示:</view><text class="data-v-f038e658">1.请确定设备已开机</text><text class="data-v-f038e658">2.请确定手机蓝牙及位置信息已打开</text></view></view><block wx:if="{{isHeight}}"><view class="wrapper data-v-f038e658"><view class="bg data-v-f038e658"></view><view class="Blue data-v-f038e658"><view class="h4 data-v-f038e658">测量结果提示</view><view class="Blue-box data-v-f038e658">本次测量身高为:<text class="data-v-f038e658">{{height+unit}}</text></view><view class="Blue-box data-v-f038e658">上次测量体重为:<input type="digit" placeholder="请输入体重" data-event-opts="{{[['input',[['__set_model',['','weight','$event',[]]]]]]}}" value="{{weight}}" bindinput="__e" class="data-v-f038e658"/>kg</view><view data-event-opts="{{[['tap',[['handleHeight',['$event']]]]]}}" class="Blue-btn Blue-close data-v-f038e658" bindtap="__e">重新测量</view><view data-event-opts="{{[['tap',[['handleGetMeasure',['$event']]]]]}}" class="Blue-btn data-v-f038e658" bindtap="__e">保存测量结果</view></view></view></block></view>
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.image3.data-v-f038e658{width:200px!important;height:340px!important}.status.data-v-f038e658{width:70%;font-size:16px;height:35px;line-height:35px;text-align:center;border-radius:15px;margin:15px auto;background-color:#ffdda6}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/devices/PCL"],{"0b1e":function(e,t,o){"use strict";(function(e){var i=o("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=i(o("7ca3")),s=o("8f59");function c(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function u(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?c(Object(o),!0).forEach((function(t){(0,r.default)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):c(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var a={data:function(){return{text:"",imp:"",weight:"",height:"",deviceId:"",unit:"kg",Unload:!1,isHeight:!1,isConnection:0,isdevice:!1,stopblue:!0}},computed:u(u({},(0,s.mapState)(["user"])),{},{info:function(){return this.user}}),onUnload:function(){if(!this.Unload){clearTimeout(n),this.closeBluetoothAdapter(),this.stopBluetoothDevicesDiscovery();var e=getCurrentPages();e[e.length-2].$vm.getBlereload(),console.log("页面返回onUnload",e,e[e.length-2])}},onLoad:function(e){this.text="",this.stopblue=!0,this.deviceId=e.deviceId,this.height=this.user.height,this.onBluetoothDeviceFound()},watch:{stopblue:function(){this.stopblue||(clearTimeout(n),this.isHeight=!0)}},methods:{onBluetoothDeviceFound:function(){var t=this;e.onBluetoothDeviceFound((function(e){e.devices.forEach((function(e){if(e.advertisData=e.advertisData?e.advertisData:"",-1!==e.name.indexOf("PCL")&&-1!=e.deviceId.indexOf(t.deviceId)){clearTimeout(n);var o=t.$tools.ab2hex(e.advertisData,""),i=parseInt(o.substring(4,8),16),r=parseInt(o.substring(16,18),16).toString(2),s=r.substring(5,6),c=r.substring(3,5),u=r.substring(1,3);return"01"==u&&(t.unit="斤"),"10"==u&&(t.unit="lb"),"00"==c&&(i/=10),"10"==c&&("10"==u?(t.unit="lb",i/=10):i/=100),t.text="您的实时体重是:"+i+t.unit,"1"==s?(t.text="您的稳定体重是:"+i+t.unit,t.imp=parseInt(o.substring(8,12),16)/10,t.deviceId=e.deviceId,t.weight=i,void(t.stopblue=!1)):void 0}}))}))},handleMyTime:function(){var e=this;n=setTimeout((function(){e.macAddr||(clearTimeout(n),e.text="",e.Unload=!0,e.isHeight=!1,e.startBluetoothDeviceDiscovery(),e.closeBluetoothAdapter())}),3e4)},stopBluetoothDevicesDiscovery:function(){e.stopBluetoothDevicesDiscovery({success:function(e){console.log("停止搜索蓝牙设备",e)}})},handleGetMeasure:function(){var t=this;t.height?t.$model.getmeasurefunit({adc:t.imp,weight:t.weight+t.unit,height:t.height,aud_id:t.info.id}).then((function(o){t.isHeight=!1,console.log("res",o,t.imp),0==o.code?(t.$store.dispatch("getUserInfo",{aud_id:e.getStorageSync("userid")}),t.$store.dispatch("getResult",{aud_id:e.getStorageSync("userid")}),t.$tools.msg("测量成功")):t.$tools.msg("测量失败"),t.Unload=!0,setTimeout((function(){t.stopBluetoothDevicesDiscovery();var o=getCurrentPages();o[o.length-2].$vm.getBlereload(),e.switchTab({url:"/pages/home/home"})}),200)})):this.$tools.msg("请输入身高")},handleBack:function(){this.text="",this.Unload=!0,this.stopBluetoothDevicesDiscovery();var t=getCurrentPages();console.log("页面返回onUnload",t,t[t.length-2]),t[t.length-2].$vm.getBlereload(),e.switchTab({url:"/pages/home/home"})},closeBluetoothAdapter:function(){e.closeBluetoothAdapter({success:function(e){console.log("蓝牙模块关闭成功")}})}}};t.default=a}).call(this,o("df3c")["default"])},"3b6b":function(e,t,o){"use strict";(function(e,t){var i=o("47a9");o("30b7");i(o("3240"));var n=i(o("b27a"));e.__webpack_require_UNI_MP_PLUGIN__=o,t(n.default)}).call(this,o("3223")["default"],o("df3c")["createPage"])},7544:function(e,t,o){"use strict";o.d(t,"b",(function(){return i})),o.d(t,"c",(function(){return n})),o.d(t,"a",(function(){}));var i=function(){var e=this.$createElement;this._self._c},n=[]},"8a6a":function(e,t,o){},"8b3d":function(e,t,o){"use strict";o.r(t);var i=o("0b1e"),n=o.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){o.d(t,e,(function(){return i[e]}))}(r);t["default"]=n.a},b27a:function(e,t,o){"use strict";o.r(t);var i=o("7544"),n=o("8b3d");for(var r in n)["default"].indexOf(r)<0&&function(e){o.d(t,e,(function(){return n[e]}))}(r);o("ede7");var s=o("828b"),c=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"c6a7b0ba",null,!1,i["a"],void 0);t["default"]=c.exports},ede7:function(e,t,o){"use strict";var i=o("8a6a"),n=o.n(i);n.a}},[["3b6b","common/runtime","common/vendor"]]]);
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
{
|
|
||||||
"navigationBarTitleText": "测量",
|
|
||||||
"enablePullDownRefresh": false,
|
|
||||||
"usingComponents": {}
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
<view class="weightPages data-v-c6a7b0ba"><view class="content data-v-c6a7b0ba"><view class="title data-v-c6a7b0ba">连接成功,开始测量</view><view class="text data-v-c6a7b0ba">{{text}}</view><view class="image data-v-c6a7b0ba"><image class="image3 data-v-c6a7b0ba" src="/pageTwo/static/PCL.gif"></image></view><view class="tips data-v-c6a7b0ba"><view class="data-v-c6a7b0ba">提示:</view><text class="data-v-c6a7b0ba">1.请确定设备已开机</text><text class="data-v-c6a7b0ba">2.请确定手机蓝牙及位置信息已打开</text></view></view><block wx:if="{{isHeight}}"><view class="wrapper data-v-c6a7b0ba"><view class="bg data-v-c6a7b0ba"></view><view class="Blue data-v-c6a7b0ba"><view class="h4 data-v-c6a7b0ba">测量结果提示</view><view class="Blue-box data-v-c6a7b0ba">本次测量体重为:<text class="data-v-c6a7b0ba">{{weight+unit}}</text></view><view class="Blue-box data-v-c6a7b0ba">上次测量身高为:<input type="digit" placeholder="请输入身高" data-event-opts="{{[['input',[['__set_model',['','height','$event',[]]]]]]}}" value="{{height}}" bindinput="__e" class="data-v-c6a7b0ba"/>cm</view><view data-event-opts="{{[['tap',[['handleBack',['$event']]]]]}}" class="Blue-btn Blue-close data-v-c6a7b0ba" bindtap="__e">取消</view><view data-event-opts="{{[['tap',[['handleGetMeasure',['$event']]]]]}}" class="Blue-btn data-v-c6a7b0ba" bindtap="__e">保存测量结果</view></view></view></block></view>
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.image3.data-v-c6a7b0ba{width:200px!important;height:340px!important}
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,5 +0,0 @@
|
||||||
{
|
|
||||||
"navigationBarTitleText": "",
|
|
||||||
"enablePullDownRefresh": false,
|
|
||||||
"usingComponents": {}
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
<view class="content skipping data-v-a850cfc0"><view class="title data-v-a850cfc0">{{info.active==1?'自由跳':info.active==2?'倒计时':'倒计数'}}</view><view class="skiptop data-v-a850cfc0"><view class="item data-v-a850cfc0"><view class="item-ite data-v-a850cfc0">{{info.active==1?'自由次数':info.active==2?"个数":'目标次数'}}<text class="data-v-a850cfc0">{{weight}}</text></view><view class="item-ite data-v-a850cfc0">{{''+(info.active==2?'目标时长 分:秒':"分:秒")}}<text class="data-v-a850cfc0">{{(time_m?time_m:'00')+":"+(time_s?time_s:'00')}}</text></view><view class="item-ite data-v-a850cfc0">消耗/kcal<text class="data-v-a850cfc0">{{$root.g0}}</text></view></view></view><view class="image data-v-a850cfc0"><image src="/pageTwo/static/t01.gif" class="data-v-a850cfc0"></image></view><view data-event-opts="{{[['longpress',[['onlongpress',['$event']]]]]}}" class="end data-v-a850cfc0" bindlongpress="__e">长按结束</view><block wx:if="{{iswrapper}}"><view class="wrapper data-v-a850cfc0"><view class="bg data-v-a850cfc0"><view class="edit data-v-a850cfc0"><view class="editem data-v-a850cfc0"><view class="data-v-a850cfc0">平均速度:<text class="cyello Blue size20 mr-5 data-v-a850cfc0">{{$root.g1}}</text>bpm</view><view class="size12 c999 data-v-a850cfc0">(bpm=个/分钟)</view></view><view class="center data-v-a850cfc0"><view class="left data-v-a850cfc0"><image src="/pageTwo/static/duan.png" class="data-v-a850cfc0"></image><view class="name data-v-a850cfc0"><view class="data-v-a850cfc0">中断次数</view><view class="data-v-a850cfc0"><text class="cyello Blue size20 mr-5 data-v-a850cfc0">{{Bcount}}</text>次</view></view></view><view class="left data-v-a850cfc0"><image src="/pageTwo/static/xu.png" class="data-v-a850cfc0"></image><view class="name data-v-a850cfc0"><view class="data-v-a850cfc0">最长连续</view><view class="data-v-a850cfc0"><text class="cyello Blue size20 mr-5 data-v-a850cfc0">{{continuous}}</text>个</view></view></view></view><view class="item data-v-a850cfc0"><view class="item-ite data-v-a850cfc0"><text class="data-v-a850cfc0">{{weight}}</text>训练个数</view><view class="item-ite data-v-a850cfc0"><text class="data-v-a850cfc0">{{(time_m?time_m:'00')+":"+(time_s?time_s:'00')}}</text>分:秒</view><view class="item-ite data-v-a850cfc0"><text class="data-v-a850cfc0">{{$root.g2}}</text>消耗/kcal</view></view><view data-event-opts="{{[['tap',[['handleTarget',['$event']]]]]}}" class="btn data-v-a850cfc0" bindtap="__e">完成</view></view></view></view></block></view>
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.content.data-v-a850cfc0{width:100%;min-height:100vh;background-color:#fff}.item-ite.data-v-a850cfc0{line-height:20PX;margin-bottom:15px}.title.data-v-a850cfc0{height:50px;line-height:50px;text-align:center;font-weight:700}.image.data-v-a850cfc0{width:100%;text-align:center;margin-top:30px}.image image.data-v-a850cfc0{width:200px;height:252px;margin:auto}.end.data-v-a850cfc0{color:#fff;position:absolute;bottom:80px;width:70px;height:70px;line-height:70px;background:#fea606;margin-left:calc(50% - 35px);border-radius:50px;text-align:center;box-shadow:0 1px 5px 2px rgba(223,226,225,.9882352941176471)}.wrapper.data-v-a850cfc0{background-color:rgba(0,0,0,.6)}.wrapper .edit.data-v-a850cfc0{width:80%!important;background-color:#fff}.wrapper .editem.data-v-a850cfc0{height:auto;display:flex;align-items:center;flex-direction:column}.wrapper .editem view.data-v-a850cfc0{width:100%;text-align:center;margin-bottom:5px}.wrapper .center.data-v-a850cfc0{background-color:#eee;padding:0 10px;display:flex;margin:45px 0;font-size:32rpx;border-radius:5px;height:65px;align-items:center;justify-content:space-between}.wrapper .center image.data-v-a850cfc0{width:35px;height:35px;margin-right:10px;margin-top:15px}.wrapper .center .left.data-v-a850cfc0{display:flex;align-content:center}.wrapper .center .name.data-v-a850cfc0{margin-top:15px}.wrapper .item.data-v-a850cfc0{display:flex;justify-content:space-between}.wrapper .item .item-ite.data-v-a850cfc0{line-height:20px;font-size:28rpx;color:#999;text-align:center}.wrapper .item .item-ite text.data-v-a850cfc0{display:block;width:100%;font-size:36rpx;color:#333;text-align:center;margin-bottom:10px}.wrapper .btn.data-v-a850cfc0{margin-top:25px;height:45px;line-height:45px;background:#fea606;margin-bottom:25px}
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,5 +0,0 @@
|
||||||
{
|
|
||||||
"navigationBarTitleText": "",
|
|
||||||
"enablePullDownRefresh": false,
|
|
||||||
"usingComponents": {}
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
<view class="content data-v-dcbb8bce"><block wx:if="{{!isstart}}"><view class="tips data-v-dcbb8bce"><view class="top data-v-dcbb8bce"><view class="left cgreen f-l data-v-dcbb8bce">T</view><view class="right data-v-dcbb8bce"><text class="cgreen data-v-dcbb8bce">肺活量测试</text><text class="text data-v-dcbb8bce">肺活量测试能让我们更好的了解您,为您生成详细的健康报告。</text></view></view><view class="list data-v-dcbb8bce"><block wx:if="{{number1}}"><view class="item data-v-dcbb8bce"><text class="ml-10 mr-10 data-v-dcbb8bce">1</text><text class="data-v-dcbb8bce">吸气肺活量</text><text class="cgreen data-v-dcbb8bce">{{number1+"ml"}}</text><text class="data-v-dcbb8bce">吸气速度</text><text class="cgreen level data-v-dcbb8bce">{{level1}}</text></view></block><block wx:if="{{number2}}"><view class="item data-v-dcbb8bce"><text class="ml-10 mr-10 data-v-dcbb8bce">2</text><text class="data-v-dcbb8bce">吸气肺活量</text><text class="cgreen data-v-dcbb8bce">{{number2+"ml"}}</text><text class="data-v-dcbb8bce">吸气速度</text><text class="cgreen level data-v-dcbb8bce">{{level2}}</text></view></block><block wx:if="{{number3}}"><view class="item data-v-dcbb8bce"><text class="ml-10 mr-10 data-v-dcbb8bce">3</text><text class="data-v-dcbb8bce">吸气肺活量</text><text class="cgreen data-v-dcbb8bce">{{number3+"ml"}}</text><text class="data-v-dcbb8bce">吸气速度</text><text class="cgreen level data-v-dcbb8bce">{{level3}}</text></view></block></view><block wx:if="{{number3==''}}"><view class="title data-v-dcbb8bce"><view class="{{['data-v-dcbb8bce',second==5?'cgreen':'']}}">您好!第<text class="data-v-dcbb8bce">{{number1!=0?'二':number2!=''?'三':'一'}}</text>次测试开始</view><view class="{{['data-v-dcbb8bce',second==3?'cgreen':'']}}">放下呼吸训练器,缓慢呼气,尽可能排空肺部气体</view><view class="{{['data-v-dcbb8bce',second==1?'cgreen':'']}}">使用呼吸训练器,缓慢吸气,直至到达极限</view></view></block><block wx:if="{{number3}}"><view class="data data-v-dcbb8bce"><view class="val data-v-dcbb8bce"><text class="data-v-dcbb8bce">{{$root.g0+"ml"}}</text>平均吸气肺活量</view><view class="text data-v-dcbb8bce">{{'根据您的个人信息,您的达标吸气肺活量为'+standard+"ml。您本次测试吸气速度"+averageS+"L/min,肺活量测试结果"+$root.g1+'ml。结合您的身体状态和改善目标,我们将为您生成详细的健康报告。'}}</view></view></block><block wx:if="{{number3}}"><view data-event-opts="{{[['tap',[['handleGetMeasure',['$event']]]]]}}" class="btn data-v-dcbb8bce" bindtap="__e">查看本次报告</view></block><block wx:if="{{number3}}"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="btn close data-v-dcbb8bce" bindtap="__e">我想重新测试</view></block><block wx:if="{{number1==0||number2==0||number3==0}}"><view class="btn data-v-dcbb8bce">{{''+second+"S后开始第"}}<text class="data-v-dcbb8bce">{{number1!=0?'二':number2!=0?'三':'一'}}</text>次测试</view></block></view></block><block wx:else><view class="weight data-v-dcbb8bce"><view class="title cgreen data-v-dcbb8bce">使用呼吸训练器,缓慢吸气,直至到达极限</view><view class="box1 data-v-dcbb8bce"><view class="time data-v-dcbb8bce">吸气速度<text class="cgreen ml-5 data-v-dcbb8bce">{{LiuS+"L/min"}}</text></view><view class="item data-v-dcbb8bce"><view class="image data-v-dcbb8bce"></view><view class="center mt-15 data-v-dcbb8bce"><view class="level data-v-dcbb8bce"></view><view class="level level-bg data-v-dcbb8bce" style="{{'top:'+($root.m0+'%')+';'}}"></view><view class="level-item data-v-dcbb8bce"><block wx:for="{{list}}" wx:for-item="ite" wx:for-index="ind"><view class="ite data-v-dcbb8bce">{{ite.text}}</view></block></view></view></view><view class="val data-v-dcbb8bce"><text class="data-v-dcbb8bce">{{text+"ml"}}</text>吸气肺活量</view></view></view></block></view>
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.cgreen.data-v-dcbb8bce{color:#39d9c9}.tips.data-v-dcbb8bce{display:flex;flex-direction:column;justify-content:space-between}.tips .top.data-v-dcbb8bce{width:100%;display:flex;margin-top:20px;align-items:flex-start}.tips .top .left.data-v-dcbb8bce{font-size:64rpx;margin-right:10px}.tips .top .right .text.data-v-dcbb8bce{font-size:32rpx!important}.tips .top .right text.data-v-dcbb8bce{font-size:32rpx;display:block;width:100%;margin-bottom:5px}.tips .item.data-v-dcbb8bce{background-color:#272a2a;border-radius:10px;margin-top:8px;color:#fff;height:35px;line-height:35px;display:flex}.tips .item text.data-v-dcbb8bce{flex-grow:0;display:inline-block}.tips .item .cgreen.data-v-dcbb8bce{flex-grow:2;font-size:32rpx;text-align:center}.tips .item .level.data-v-dcbb8bce{color:#516752}.tips .title.data-v-dcbb8bce{font-size:32rpx;margin:20px}.tips .title view.data-v-dcbb8bce{width:100%;margin-top:40px;text-align:center}.tips .data.data-v-dcbb8bce{margin-top:20px}.tips .data .text.data-v-dcbb8bce{font-size:32rpx;color:#fff;line-height:20px}.tips .btn.data-v-dcbb8bce{width:70%;color:#fff;padding:5px 15px;border-radius:15px;text-align:center;background:#37cc92;margin:15px auto;position:absolute;bottom:80px;left:calc(15% - 15px)}.tips .close.data-v-dcbb8bce{background:#999;bottom:20px}.weight.data-v-dcbb8bce{padding-top:30px}.weight .title.data-v-dcbb8bce{width:80%;margin:auto;font-size:32rpx;text-align:center}.box1.data-v-dcbb8bce{color:#fff;margin:50px 15px 15px;width:calc(100%- 30px)}.box1 .time.data-v-dcbb8bce{width:60%;margin:auto;position:relative;text-align:center;border-radius:10px;background-color:#272a2a;height:30px;line-height:30px}.box1 .time.data-v-dcbb8bce:after{content:"";position:absolute;left:45%;bottom:-7px;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:8px solid #272a2a}.box1 .item.data-v-dcbb8bce{width:100%;font-size:28rpx;padding:10px 0;border-radius:15px;display:flex;align-items:center;justify-content:center;margin-bottom:15px;position:relative;margin-top:10px}.box1 .item .image.data-v-dcbb8bce{width:80%}.box1 .item .image image.data-v-dcbb8bce{width:100%;margin-top:10px}.box1 .item .center.data-v-dcbb8bce{top:0;bottom:-15px;position:absolute;width:55px;margin:auto;text-align:center;background-color:#333;border-radius:10px;z-index:9}.box1 .item .level-bg.data-v-dcbb8bce{position:absolute;width:55px;margin:auto;text-align:center;background-color:#4d6c7b;border-radius:0 0 10px 10px;bottom:0;z-index:19}.box1 .item .level-item.data-v-dcbb8bce{width:55px;height:100%;position:absolute;z-index:99}.box1 .item .level-item.data-v-dcbb8bce :last-child{border-bottom:none}.box1 .item .ite.data-v-dcbb8bce{margin:0 5px;width:calc(100% - 10px);height:40px;line-height:40px;font-size:32rpx;color:#fff;z-index:99;border-bottom:1px solid #999}.val.data-v-dcbb8bce{width:100%;text-align:center;margin:20px 0;color:#fff;font-size:28rpx}.val text.data-v-dcbb8bce{display:block;color:#39d9c9!important;font-size:64rpx;margin-bottom:10px}.content.data-v-dcbb8bce{width:calc(100% - 30px);padding:0 15px;min-height:100vh;color:#5d5651;background-color:#000}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/devices/search"],{"5c11":function(e,t,o){"use strict";o.r(t);var i=o("80c7"),n=o("8829");for(var c in n)["default"].indexOf(c)<0&&function(e){o.d(t,e,(function(){return n[e]}))}(c);o("c770");var r=o("828b"),s=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"6bfd374d",null,!1,i["a"],void 0);t["default"]=s.exports},"80c7":function(e,t,o){"use strict";o.d(t,"b",(function(){return i})),o.d(t,"c",(function(){return n})),o.d(t,"a",(function(){}));var i=function(){var e=this.$createElement;this._self._c},n=[]},8829:function(e,t,o){"use strict";o.r(t);var i=o("e0b8"),n=o.n(i);for(var c in i)["default"].indexOf(c)<0&&function(e){o.d(t,e,(function(){return i[e]}))}(c);t["default"]=n.a},9467:function(e,t,o){},b3dc:function(e,t,o){"use strict";(function(e,t){var i=o("47a9");o("30b7");i(o("3240"));var n=i(o("5c11"));e.__webpack_require_UNI_MP_PLUGIN__=o,t(n.default)}).call(this,o("3223")["default"],o("df3c")["createPage"])},c770:function(e,t,o){"use strict";var i=o("9467"),n=o.n(i);n.a},e0b8:function(e,t,o){"use strict";(function(e){var i=o("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,c,r=i(o("7ca3")),s=o("8f59");function a(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}var d={data:function(){return{Unload:!1,issearch:!1,isdevTip:!1,devicesList:[],devList:[],id:0,isdevice:!0}},computed:function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?a(Object(o),!0).forEach((function(t){(0,r.default)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({},(0,s.mapState)(["user","isConnected","isBluetoothTyle"])),onLoad:function(t){n=this,n.id=t?t.id:0,n.isdevice=t.device,n.openBluetoothAdapter(),n.$Bluetooth.onBLEConnectionStateChange(),e.onBluetoothAdapterStateChange((function(e){n.$store.commit("changeBluetooth",e.available)}))},onBackPress:function(){console.log("onUnload",this.Unload),this.Unload||(this.$Bluetooth.closeBluetoothAdapter(),this.$Bluetooth.stopBluetoothDevicesDiscovery())},watch:{isBluetoothTyle:function(){this.isBluetoothTyle||(this.issearch=!0,this.isdevTip=!0,this.devList=[],clearTimeout(c)),console.log("蓝牙是否打开",this.isBluetoothTyle)}},methods:{openBluetoothAdapter:function(){var t=this;e.openBluetoothAdapter({success:function(e){console.log("蓝牙初始化成功"),t.issearch=!1,t.isdevTip=!1,t.devList=[],t.startBluetoothDeviceDiscovery()},fail:function(e){t.$Bluetooth.getBluetoothAdapter(e)}})},startBluetoothDeviceDiscovery:function(){var t=this;e.startBluetoothDevicesDiscovery({allowDuplicatesKey:!0,success:function(e){t.onBluetoothDeviceFound()},fail:function(e){}})},onBluetoothDeviceFound:function(){var t=this;e.onBluetoothDeviceFound((function(e){e.devices.forEach((function(e){if(-1!=e.name.indexOf("G02")){console.log("G02",e),clearTimeout(c);var o=e.advertisData.slice(3,9);e.mac=new Uint8Array(o);var i=Array.from(e.mac);return i.reverse(),e.macAddr=t.$tools.ab2hex(i,":").toUpperCase(),t.deviceId=e.macAddr,void t.handleDevice(e)}if(-1!=e.name.indexOf("Yihejia_Lung"))return console.log("肺活量PCV02",e),clearTimeout(c),e.macAddr=e.deviceId,t.deviceId=e.deviceId,void t.handleDevice(e);if(-1!=e.name.indexOf("YPC")){console.log("跳绳PCT02",e.name,e),clearTimeout(c);var n=e.name.slice(7,19);return e.macAddr=t.$tools.str2Num(n),e.deviceId=t.$tools.str2Num(n),t.deviceId=t.$tools.str2Num(n),void(""!=e.macAddr&&t.handleDevice(e))}}))})),t.handleMyTime()},handleDevice:function(e){var t=this.devicesList,o=this.$tools.inArray(t,"deviceId",e.deviceId);console.log("device",e,o),-1===o&&(this.devicesList.push(e),""!=e.macAddr&&this.handleDevType(e.macAddr))},handleMyTime:function(){var e=this;c=setTimeout((function(){e.devList.length||(e.isdevTip=!0,e.devList=[]),e.issearch=!0,clearTimeout(c),e.$Bluetooth.stopBluetoothDevicesDiscovery()}),15e3)},handleDevType:function(e){n=this,n.$model.getdevdetail({mac:e,acd_id:n.id}).then((function(t){console.log("排查返回",t,e,n.id),0==t.code&&(t.data.deviceId=e,n.devList.push(t.data))}))},handleWeight:function(t){clearTimeout(c),this.Unload=!0,console.log("跳转测量",t),"透传"==t.bluetooth_type&&this.$Bluetooth.stopBluetoothDevicesDiscovery(),e.redirectTo({url:t.page_measure+"?deviceId="+this.deviceId+"&isdevice="+this.isdevice})}}};t.default=d}).call(this,o("df3c")["default"])}},[["b3dc","common/runtime","common/vendor"]]]);
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
{
|
|
||||||
"navigationBarTitleText": "蓝牙搜索",
|
|
||||||
"enablePullDownRefresh": false,
|
|
||||||
"usingComponents": {}
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
<view class="container data-v-6bfd374d"><block wx:if="{{issearch}}"><view data-event-opts="{{[['tap',[['openBluetoothAdapter',['$event']]]]]}}" class="text data-v-6bfd374d" bindtap="__e">没有搜到想要的?点击重新搜索</view></block><view class="point-area data-v-6bfd374d"><view class="point point-10 data-v-6bfd374d"></view><view class="point point-40 data-v-6bfd374d"></view><view class="point point-80 data-v-6bfd374d"></view><view class="point point-100 data-v-6bfd374d"></view><view class="point point-120 data-v-6bfd374d"></view></view><view class="list data-v-6bfd374d"><block wx:for="{{devList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['handleWeight',['$0'],[[['devList','',index]]]]]]]}}" class="item data-v-6bfd374d" bindtap="__e"><image src="{{item.pic}}" class="data-v-6bfd374d"></image><text class="data-v-6bfd374d">{{item.name}}</text></view></block></view><block wx:if="{{isdevTip}}"><view class="tips data-v-6bfd374d"><view class="data-v-6bfd374d">提示:</view><text class="data-v-6bfd374d">1.请确定设备已绑定</text><text class="data-v-6bfd374d">2.请确定设备已开机</text><text class="data-v-6bfd374d">3.请确定手机蓝牙及位置信息已打开</text></view></block></view>
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
.text.data-v-6bfd374d{position:absolute;top:0;width:100%;text-align:center;height:50px;line-height:50px;font-size:36rpx;color:#37cc92;font-weight:700}.tips.data-v-6bfd374d{position:absolute;width:100%;bottom:15px;line-height:24px}.tips view.data-v-6bfd374d{font-size:32rpx;color:#37cc92;font-weight:700;margin-left:15px}.tips text.data-v-6bfd374d{font-size:32rpx;width:100%;display:block;margin-left:20px;color:#999}.list.data-v-6bfd374d{position:absolute;width:100%;display:flex;align-items:center;flex-wrap:wrap}.list .item.data-v-6bfd374d{width:30%;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;position:absolute;left:55%;top:-10px}.list .item image.data-v-6bfd374d{width:45px;height:45px;border-radius:50%;background-color:#fff}.list .item text.data-v-6bfd374d{display:block;width:100%;font-size:32rpx;color:#666;margin-top:5px;text-align:center}.list .item.data-v-6bfd374d:nth-of-type(2){left:calc(55% - 60px);top:50px}.list .item.data-v-6bfd374d:nth-of-type(3){left:calc(50% - 140px);top:90px}.list .item.data-v-6bfd374d:nth-of-type(4){left:calc(61% + 20px);top:70px}.list .item.data-v-6bfd374d:nth-of-type(5){left:20%;top:-100px}.list .item.data-v-6bfd374d:nth-of-type(6){left:calc(20% - 16px);top:-38px}.list .item.data-v-6bfd374d:nth-of-type(7){left:0;top:15px}.list .item.data-v-6bfd374d:nth-of-type(8){left:calc(20% + 75px);top:-150px}.list .item.data-v-6bfd374d:nth-of-type(9){left:calc(20% + 96px);top:-80px}.list .item.data-v-6bfd374d:nth-of-type(10){left:37px;top:-170px}.list .item.data-v-6bfd374d:nth-of-type(11){left:calc(20% + 75px);top:130px}.list .item.data-v-6bfd374d:nth-of-type(12){left:-10px;top:-104px}.list .item.data-v-6bfd374d:nth-of-type(13){left:calc(47% + 75px);top:-150px}.list .item.data-v-6bfd374d:nth-of-type(14){left:calc(53% + 75px);top:-50px}.container.data-v-6bfd374d{width:100%;height:100vh;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.container.data-v-6bfd374d::after{content:"";width:20px;height:20px;border-radius:50%;background-color:#fbb780;position:absolute;z-index:9}.point-area.data-v-6bfd374d{text-align:center;position:relative;width:400rpx;height:400rpx;transition:opacity .5s ease-out}.point-10.data-v-6bfd374d,
|
|
||||||
.point-40.data-v-6bfd374d,
|
|
||||||
.point-80.data-v-6bfd374d,
|
|
||||||
.point-100.data-v-6bfd374d,
|
|
||||||
.point-120.data-v-6bfd374d{width:100%;height:100%}.point-10.data-v-6bfd374d:after,
|
|
||||||
.point-40.data-v-6bfd374d:after,
|
|
||||||
.point-80.data-v-6bfd374d:after,
|
|
||||||
.point-100.data-v-6bfd374d:after,
|
|
||||||
.point-120.data-v-6bfd374d:after{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;opacity:0;border:1px solid #f7cb6b;animation-play-state:paused;-webkit-animation-play-state:paused}.point-10.data-v-6bfd374d:after{content:"";-webkit-animation:ripple-data-v-6bfd374d 3s linear 0ms infinite;animation:ripple-data-v-6bfd374d 3s linear 0ms infinite}.point-40.data-v-6bfd374d:after{content:"";-webkit-animation:ripple-data-v-6bfd374d 3s linear .6s infinite;animation:ripple-data-v-6bfd374d 3s linear .6s infinite}.point-80.data-v-6bfd374d:after{content:"";-webkit-animation:ripple-data-v-6bfd374d 3s linear 1.2s infinite;animation:ripple-data-v-6bfd374d 3s linear 1.2s infinite}.point-100.data-v-6bfd374d:after{content:"";-webkit-animation:ripple-data-v-6bfd374d 3s linear 1.8s infinite;animation:ripple-data-v-6bfd374d 3s linear 1.8s infinite}.point-120.data-v-6bfd374d:after{content:"";-webkit-animation:ripple-data-v-6bfd374d 3s linear 2.4s infinite;animation:ripple-data-v-6bfd374d 3s linear 2.4s infinite}@-webkit-keyframes ripple-data-v-6bfd374d{0%{opacity:0;-webkit-transform:scale(.1);transform:scale(.1)}50%{opacity:.8;-webkit-transform:scale(1);transform:scale(1)}100%{opacity:.2;-webkit-transform:scale(2.2);transform:scale(2.2)}}@keyframes ripple-data-v-6bfd374d{0%{opacity:0;-webkit-transform:scale(.1);transform:scale(.1)}50%{opacity:.8;-webkit-transform:scale(1);transform:scale(1)}100%{opacity:.2;-webkit-transform:scale(2.2);transform:scale(2.2)}}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/history/history"],{"14ad":function(t,e,n){"use strict";n.r(e);var i=n("2de7"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},"2de7":function(t,e,n){"use strict";(function(t){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("7ca3")),a=n("8f59");function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var c={computed:r(r({},(0,a.mapState)(["user"])),{},{endDate:function(){return this.$tools.getDate("start")},startDate:function(){return this.$tools.GetDateStr(-90)}}),data:function(){return{ranklist:[],page:1,isDelete:!1,lastPage:"",isActive:null,acd_id:""}},onLoad:function(t){this.acd_id=t.acd_id,this.getList(),console.log("options",t)},onUnload:function(){console.log("关闭页面");var t=getCurrentPages(),e=(t[t.length-1],t[t.length-2]);this.isDelete&&e.$vm.reload()},onReachBottom:function(){console.log("onReachBottom",this.lastPage),!this.lastPage||this.page>=this.lastPage?t.showToast({title:"没有更多数据!",icon:"none"}):(this.page++,this.getList(this.page))},methods:{swipeClick:function(e,n){var i=this,o=i.ranklist[n].id;t.showModal({title:"友情提示",content:"是否删除当前测量记录?",success:function(e){e.confirm?i.$model.gethistorydelete({id:o,type:i.acd_id}).then((function(e){0==e.code?(i.ranklist.splice(n,1),"1"==i.user.measure_model&&i.$store.dispatch("getUserInfo",{aud_id:t.getStorageSync("userid")}),2==i.acd_id?i.$store.dispatch("getResult",{aud_id:t.getStorageSync("userid")}):i.isDelete=!0,i.$tools.msg("删除成功")):i.$tools.msg(e.msg)})):e.cancel&&i.$tools.msg("您已取消操作!")}})},clickItemMethod:function(e){"6"!=this.acd_id&&t.navigateTo({url:"/pageTwo/history/historyDetail?type="+this.acd_id+"&id="+e.id})},getList:function(e){var n=this;this.$model.gethistory({aud_id:t.getStorageSync("userid"),type:this.acd_id,page:this.page}).then((function(t){if(console.log("历史记录",t),0==t.code){var e=[{text:"删除",style:{backgroundColor:"#dd524d"}}];t.data.rows.forEach((function(t){t.options=e})),n.ranklist=n.ranklist.concat(t.data.rows),n.lastPage=t.data.totalpage}}))},handleEdit:function(t){this.isActive=this.isActive==t?null:t}}};e.default=c}).call(this,n("df3c")["default"])},3941:function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("30b7");i(n("3240"));var o=i(n("5079"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},5079:function(t,e,n){"use strict";n.r(e);var i=n("60fe"),o=n("14ad");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("8ea0");var s=n("828b"),r=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"0c3a20c5",null,!1,i["a"],void 0);e["default"]=r.exports},"60fe":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var i={uniSwipeAction:function(){return n.e("uni_modules/uni-swipe-action/components/uni-swipe-action/uni-swipe-action").then(n.bind(null,"7f50"))},uniSwipeActionItem:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item")]).then(n.bind(null,"0809"))},uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"bbd6"))}},o=function(){var t=this.$createElement,e=(this._self._c,this.ranklist.length),n=!this.ranklist.length||!this.lastPage;this.$mp.data=Object.assign({},{$root:{g0:e,g1:n}})},a=[]},"68e1":function(t,e,n){},"8ea0":function(t,e,n){"use strict";var i=n("68e1"),o=n.n(i);o.a}},[["3941","common/runtime","common/vendor"]]]);
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue