幼儿园小程序端代码(修改)
This commit is contained in:
parent
3edb324946
commit
173be2e785
@ -1,4 +1,4 @@
|
|||||||
var baseurl = "http://192.168.16.62:8080";
|
var baseurl = "http://192.168.16.81:8080";
|
||||||
|
|
||||||
|
|
||||||
export default baseurl
|
export default baseurl
|
||||||
@ -1,8 +1,8 @@
|
|||||||
import request from "../request.js"
|
import request from "../request.js"
|
||||||
|
|
||||||
export function getPreOrderById(data) {
|
export function getPreOrderById(data,data2) {
|
||||||
return request({
|
return request({
|
||||||
url: `/kindergarten/applet/appletLogin?code=${data}`,
|
url: `/kindergarten/applet/appletLogin?loginCode=${data}&phoneCode=${data2}`,
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -21,6 +21,17 @@ export function bindParent(data) {
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export function getInfoByPhone(data) {
|
||||||
|
return request({
|
||||||
|
url: `/kindergarten/applet/getInfoByPhone?phone=${data}`,
|
||||||
|
method: 'GET'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// export function addConfirmOrder(data) {
|
// export function addConfirmOrder(data) {
|
||||||
// return request({
|
// return request({
|
||||||
// url: ``,
|
// url: ``,
|
||||||
|
|||||||
@ -50,13 +50,19 @@
|
|||||||
"quickapp" : {},
|
"quickapp" : {},
|
||||||
/* 小程序特有相关 */
|
/* 小程序特有相关 */
|
||||||
"mp-weixin" : {
|
"mp-weixin" : {
|
||||||
"appid" : "wxe56d6caefbdda1d3",
|
"appid" : "wxdec3416aa3d60cab",
|
||||||
"setting" : {
|
"setting" : {
|
||||||
"urlCheck" : false,
|
"urlCheck" : false,
|
||||||
"postcss" : true,
|
"postcss" : true,
|
||||||
"minified" : true
|
"minified" : true
|
||||||
},
|
},
|
||||||
"usingComponents" : true
|
"usingComponents" : true,
|
||||||
|
"unipush" : {
|
||||||
|
"enable" : true
|
||||||
|
},
|
||||||
|
"uniStatistics" : {
|
||||||
|
"enable" : false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"mp-alipay" : {
|
"mp-alipay" : {
|
||||||
"usingComponents" : true
|
"usingComponents" : true
|
||||||
@ -68,7 +74,8 @@
|
|||||||
"usingComponents" : true
|
"usingComponents" : true
|
||||||
},
|
},
|
||||||
"uniStatistics" : {
|
"uniStatistics" : {
|
||||||
"enable" : false
|
"enable" : false,
|
||||||
|
"version" : "2"
|
||||||
},
|
},
|
||||||
"vueVersion" : "2"
|
"vueVersion" : "2"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -127,6 +127,7 @@
|
|||||||
border-bottom: lightsteelblue 2rpx solid;
|
border-bottom: lightsteelblue 2rpx solid;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding-left: 40rpx;
|
padding-left: 40rpx;
|
||||||
|
|
||||||
}
|
}
|
||||||
.time {
|
.time {
|
||||||
height: 100rpx;
|
height: 100rpx;
|
||||||
|
|||||||
@ -1,231 +0,0 @@
|
|||||||
<template>
|
|
||||||
<view class="content">
|
|
||||||
<view class="top">
|
|
||||||
<view class="info">
|
|
||||||
学生成绩
|
|
||||||
</view>
|
|
||||||
<view class="nicheng">
|
|
||||||
<view class="tx-w">
|
|
||||||
<view class="tx">
|
|
||||||
<image class="tx-img" :src="yonghuwx.avatarUrl"></image>
|
|
||||||
<view class="zx"></view>
|
|
||||||
</view>
|
|
||||||
<view class="studentName">姓名:张三</view>
|
|
||||||
<view class="name">昵称:{{yonghuwx.nickName}} </view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="test">幼儿体质检测记录</view>
|
|
||||||
<view class="score">
|
|
||||||
|
|
||||||
|
|
||||||
<view class="itemName">弹跳</view>
|
|
||||||
<view class="time">2022/8/16</view>
|
|
||||||
<view class="overallScore">综合得分:89</view>
|
|
||||||
<view class="report">查看报告</view>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- <view class="th">项目名称</view>
|
|
||||||
<view class="th">个人成绩</view>
|
|
||||||
<view class="th">查看报告</view> -->
|
|
||||||
</view>
|
|
||||||
<view class="score1">
|
|
||||||
|
|
||||||
<view class="itemName">奔跑</view>
|
|
||||||
<view class="time">2022/8/16</view>
|
|
||||||
<view class="overallScore">综合得分:99</view>
|
|
||||||
<view class="report">查看报告</view>
|
|
||||||
<!-- <view class="th">项目名称</view>
|
|
||||||
<view class="th">个人成绩</view>
|
|
||||||
<view class="th">查看报告</view> -->
|
|
||||||
</view>
|
|
||||||
|
|
||||||
</view>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
yonghuwx: []
|
|
||||||
}
|
|
||||||
},
|
|
||||||
onLoad() {
|
|
||||||
let that = this;
|
|
||||||
uni.login({
|
|
||||||
provider: 'weixin',
|
|
||||||
success: function(loginRes) {
|
|
||||||
// 获取用户信息
|
|
||||||
uni.getUserInfo({
|
|
||||||
provider: 'weixin',
|
|
||||||
success: function(infoRes) {
|
|
||||||
that.yonghuwx = infoRes.userInfo
|
|
||||||
console.log(that.yonghuwx)
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
.content {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
background-color: #ebeef6;
|
|
||||||
height: 700px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.top {
|
|
||||||
width: 100%;
|
|
||||||
height: 150px;
|
|
||||||
background-color: #4486e8;
|
|
||||||
}
|
|
||||||
|
|
||||||
.info {
|
|
||||||
color: #ffffff;
|
|
||||||
text-align: center;
|
|
||||||
margin-top: 20px;
|
|
||||||
font-size: 18px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nicheng {
|
|
||||||
width: 350px;
|
|
||||||
height: 120px;
|
|
||||||
background-color: #ffffff;
|
|
||||||
position: absolute;
|
|
||||||
margin-top: 10px;
|
|
||||||
margin-left: 13px;
|
|
||||||
box-shadow: 0px 1px 0px 0px #a9caf5;
|
|
||||||
border-radius: 10px;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.tx-w {
|
|
||||||
margin-top: 25px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tx {
|
|
||||||
margin-left: 45px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tx image {
|
|
||||||
width: 140upx;
|
|
||||||
height: 140upx;
|
|
||||||
border-radius: 50%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.studentName {
|
|
||||||
margin-top: -60px;
|
|
||||||
margin-left: 140px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.name {
|
|
||||||
text-align: center;
|
|
||||||
margin-left: 7px;
|
|
||||||
margin-top: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.name-qm {
|
|
||||||
margin-left: ;
|
|
||||||
text-align: center;
|
|
||||||
margin-top: 20upx;
|
|
||||||
font-size: 30upx;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 测试成绩 */
|
|
||||||
.test{
|
|
||||||
width: 150px;
|
|
||||||
height: 52px;
|
|
||||||
line-height: 52px;
|
|
||||||
background-color: #ffffff;
|
|
||||||
color: #4486e8;
|
|
||||||
border-radius: 30%;
|
|
||||||
margin-top: 40px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
.score {
|
|
||||||
position: absolute;
|
|
||||||
width: 350px;
|
|
||||||
height: 100px;
|
|
||||||
background-color: #ffffff;
|
|
||||||
margin-top: 250px;
|
|
||||||
border-radius: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.score1 {
|
|
||||||
position: absolute;
|
|
||||||
width: 350px;
|
|
||||||
height: 100px;
|
|
||||||
background-color: #ffffff;
|
|
||||||
margin-top: 360px;
|
|
||||||
border-radius: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*.th1 {
|
|
||||||
text-align: center;
|
|
||||||
height: 30px;
|
|
||||||
line-height: 50px;
|
|
||||||
padding-bottom: 15px;
|
|
||||||
border-bottom: #eeecec 1px solid;
|
|
||||||
padding-left: 30px;
|
|
||||||
}*/
|
|
||||||
|
|
||||||
.itemName {
|
|
||||||
height: 50px;
|
|
||||||
width: 50%;
|
|
||||||
border-right: #eeecec 1px solid;
|
|
||||||
line-height: 50px;
|
|
||||||
/* padding-bottom: 15px; */
|
|
||||||
border-bottom: #eeecec 1px solid;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.time {
|
|
||||||
height: 50px;
|
|
||||||
width: 50%;
|
|
||||||
line-height: 50px;
|
|
||||||
/* padding-bottom: 15px; */
|
|
||||||
border-bottom: #eeecec 1px solid;
|
|
||||||
margin-top: -51px;
|
|
||||||
margin-left: 172px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.overallScore {
|
|
||||||
height: 50px;
|
|
||||||
width: 50%;
|
|
||||||
border-right: #eeecec 1px solid;
|
|
||||||
line-height: 50px;
|
|
||||||
/* padding-bottom: 15px; */
|
|
||||||
/* border-bottom: #eeecec 1px solid; */
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.report {
|
|
||||||
height: 50px;
|
|
||||||
width: 50%;
|
|
||||||
line-height: 50px;
|
|
||||||
/* padding-bottom: 15px; */
|
|
||||||
/* border-bottom: #eeecec 1px solid; */
|
|
||||||
margin-top: -50px;
|
|
||||||
margin-left: 172px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.th {
|
|
||||||
height: 30px;
|
|
||||||
line-height: 50px;
|
|
||||||
padding-bottom: 15px;
|
|
||||||
border-bottom: #eeecec 1px solid;
|
|
||||||
padding-left: 30px;
|
|
||||||
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@ -1,68 +0,0 @@
|
|||||||
<template>
|
|
||||||
<view>
|
|
||||||
<view class="tx-w">
|
|
||||||
<view class="tx">
|
|
||||||
<image class="tx-img" :src="yonghuwx.avatarUrl"></image>
|
|
||||||
<view class="zx"></view>
|
|
||||||
</view>
|
|
||||||
<view class="name">{{yonghuwx.nickName}} </view>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
</view>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
yonghuwx: []
|
|
||||||
}
|
|
||||||
},
|
|
||||||
onLoad(){
|
|
||||||
let that = this;
|
|
||||||
uni.login({
|
|
||||||
provider: 'weixin',
|
|
||||||
success: function(loginRes) {
|
|
||||||
// 获取用户信息
|
|
||||||
uni.getUserInfo({
|
|
||||||
provider: 'weixin',
|
|
||||||
success: function(infoRes) {
|
|
||||||
that.yonghuwx = infoRes.userInfo
|
|
||||||
console.log(that.yonghuwx)
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
.tx-w{
|
|
||||||
margin-top:200upx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tx{
|
|
||||||
text-align:center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tx image{
|
|
||||||
width:140upx;
|
|
||||||
height:140upx;
|
|
||||||
border-radius: 50%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.name{
|
|
||||||
text-align:center;
|
|
||||||
margin-top:20upx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.name-qm{
|
|
||||||
text-align:center;
|
|
||||||
margin-top:20upx;
|
|
||||||
font-size:30upx;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<uni-section class="card">
|
<uni-section class="card">
|
||||||
<view class="test">信息绑定</view>
|
<view class="test">家长信息绑定</view>
|
||||||
<uni-card>
|
<uni-card>
|
||||||
<view class="bind">
|
<view class="bind">
|
||||||
<view class="name">
|
<view class="name">
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
9
unpackage/dist/dev/mp-weixin/app.json
vendored
9
unpackage/dist/dev/mp-weixin/app.json
vendored
@ -11,5 +11,12 @@
|
|||||||
"navigationBarBackgroundColor": "#F8F8F8",
|
"navigationBarBackgroundColor": "#F8F8F8",
|
||||||
"backgroundColor": "#F8F8F8"
|
"backgroundColor": "#F8F8F8"
|
||||||
},
|
},
|
||||||
"usingComponents": {}
|
"unipush": {
|
||||||
|
"enable": true
|
||||||
|
},
|
||||||
|
"uniStatistics": {
|
||||||
|
"enable": false
|
||||||
|
},
|
||||||
|
"usingComponents": {},
|
||||||
|
"sitemapLocation": "sitemap.json"
|
||||||
}
|
}
|
||||||
2
unpackage/dist/dev/mp-weixin/common/main.js
vendored
2
unpackage/dist/dev/mp-weixin/common/main.js
vendored
@ -1,2 +1,2 @@
|
|||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/main"],[function(e,t,n){"use strict";(function(e){n(5);var t=u(n(6)),r=u(n(4)),o=u(n(12));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}wx.__webpack_require_UNI_MP_PLUGIN__=n,r.default.use(o.default),r.default.config.productionTip=!1,t.default.mpType="app";var a=new r.default(i({},t.default));e(a).$mount()}).call(this,n(1)["createApp"])},,,,,,function(e,t,n){"use strict";n.r(t);var r=n(7);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);n(9);var u,c,i,f,a=n(11),l=Object(a["default"])(r["default"],u,c,!1,null,null,null,!1,i,f);l.options.__file="App.vue",t["default"]=l.exports},function(e,t,n){"use strict";n.r(t);var r=n(8),o=n.n(r);for(var u in r)"default"!==u&&function(e){n.d(t,e,(function(){return r[e]}))}(u);t["default"]=o.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={onLaunch:function(){console.log("App Launch")},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")}};t.default=r},function(e,t,n){"use strict";n.r(t);var r=n(10),o=n.n(r);for(var u in r)"default"!==u&&function(e){n.d(t,e,(function(){return r[e]}))}(u);t["default"]=o.a},function(e,t,n){}],[[0,"common/runtime","common/vendor"]]]);
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/main"],[function(e,t,n){"use strict";(function(e){n(5),n(6);var t=u(n(7)),r=u(n(4)),o=u(n(13));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}wx.__webpack_require_UNI_MP_PLUGIN__=n,r.default.use(o.default),r.default.config.productionTip=!1,t.default.mpType="app";var a=new r.default(i({},t.default));e(a).$mount()}).call(this,n(1)["createApp"])},,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(8);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);n(10);var u,c,i,f,a=n(12),l=Object(a["default"])(r["default"],u,c,!1,null,null,null,!1,i,f);l.options.__file="App.vue",t["default"]=l.exports},function(e,t,n){"use strict";n.r(t);var r=n(9),o=n.n(r);for(var u in r)"default"!==u&&function(e){n.d(t,e,(function(){return r[e]}))}(u);t["default"]=o.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={onLaunch:function(){console.log("App Launch")},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")}};t.default=r},function(e,t,n){"use strict";n.r(t);var r=n(11),o=n.n(r);for(var u in r)"default"!==u&&function(e){n.d(t,e,(function(){return r[e]}))}(u);t["default"]=o.a},function(e,t,n){}],[[0,"common/runtime","common/vendor"]]]);
|
||||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/common/main.js.map
|
//# sourceMappingURL=../../.sourcemap/mp-weixin/common/main.js.map
|
||||||
File diff suppressed because one or more lines are too long
@ -1,2 +1,2 @@
|
|||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/home/home"],{155:function(n,e,t){"use strict";(function(n){t(5);r(t(4));var e=r(t(156));function r(n){return n&&n.__esModule?n:{default:n}}wx.__webpack_require_UNI_MP_PLUGIN__=t,n(e.default)}).call(this,t(1)["createPage"])},156:function(n,e,t){"use strict";t.r(e);var r=t(157),o=t(159);for(var u in o)"default"!==u&&function(n){t.d(e,n,(function(){return o[n]}))}(u);t(161);var c,i=t(11),s=Object(i["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],c);s.options.__file="pages/home/home.vue",e["default"]=s.exports},157:function(n,e,t){"use strict";t.r(e);var r=t(158);t.d(e,"render",(function(){return r["render"]})),t.d(e,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(e,"components",(function(){return r["components"]}))},158:function(n,e,t){"use strict";var r;t.r(e),t.d(e,"render",(function(){return o})),t.d(e,"staticRenderFns",(function(){return c})),t.d(e,"recyclableRender",(function(){return u})),t.d(e,"components",(function(){return r}));var o=function(){var n=this,e=n.$createElement;n._self._c},u=!1,c=[];o._withStripped=!0},159:function(n,e,t){"use strict";t.r(e);var r=t(160),o=t.n(r);for(var u in r)"default"!==u&&function(n){t.d(e,n,(function(){return r[n]}))}(u);e["default"]=o.a},160:function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(142),o={data:function(){return{yonghuwx:[],studentId:"",StudentScore:[]}},onLoad:function(n){console.log(n),this.studentId=n.studentId,this.getStudentScore()},methods:{getStudentScore:function(){var n=this;(0,r.getStudentScore)(this.studentId).then((function(e){console.log(e),n.StudentScore=e.data}))},getPhoneNumberp:function(n){wx.login({provider:"weixin",success:function(n){console.log(n)}})},wxGetUserInfo:function(){var e=this;n.getUserProfile({desc:"获取用户信息",lang:"zh_CN",success:function(n){console.log(n),e.yonghuwx=n.userInfo},fail:function(n){}})}}};e.default=o}).call(this,t(1)["default"])},161:function(n,e,t){"use strict";t.r(e);var r=t(162),o=t.n(r);for(var u in r)"default"!==u&&function(n){t.d(e,n,(function(){return r[n]}))}(u);e["default"]=o.a},162:function(n,e,t){}},[[155,"common/runtime","common/vendor"]]]);
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/home/home"],{156:function(n,e,t){"use strict";(function(n){t(5),t(6);r(t(4));var e=r(t(157));function r(n){return n&&n.__esModule?n:{default:n}}wx.__webpack_require_UNI_MP_PLUGIN__=t,n(e.default)}).call(this,t(1)["createPage"])},157:function(n,e,t){"use strict";t.r(e);var r=t(158),o=t(160);for(var u in o)"default"!==u&&function(n){t.d(e,n,(function(){return o[n]}))}(u);t(162);var c,i=t(12),s=Object(i["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],c);s.options.__file="pages/home/home.vue",e["default"]=s.exports},158:function(n,e,t){"use strict";t.r(e);var r=t(159);t.d(e,"render",(function(){return r["render"]})),t.d(e,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(e,"components",(function(){return r["components"]}))},159:function(n,e,t){"use strict";var r;t.r(e),t.d(e,"render",(function(){return o})),t.d(e,"staticRenderFns",(function(){return c})),t.d(e,"recyclableRender",(function(){return u})),t.d(e,"components",(function(){return r}));var o=function(){var n=this,e=n.$createElement;n._self._c},u=!1,c=[];o._withStripped=!0},160:function(n,e,t){"use strict";t.r(e);var r=t(161),o=t.n(r);for(var u in r)"default"!==u&&function(n){t.d(e,n,(function(){return r[n]}))}(u);e["default"]=o.a},161:function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(143),o={data:function(){return{yonghuwx:[],studentId:"",StudentScore:[]}},onLoad:function(n){console.log(n),this.studentId=n.studentId,this.getStudentScore()},methods:{getStudentScore:function(){var n=this;(0,r.getStudentScore)(this.studentId).then((function(e){console.log(e),n.StudentScore=e.data}))},getPhoneNumberp:function(n){wx.login({provider:"weixin",success:function(n){console.log(n)}})},wxGetUserInfo:function(){var e=this;n.getUserProfile({desc:"获取用户信息",lang:"zh_CN",success:function(n){console.log(n),e.yonghuwx=n.userInfo},fail:function(n){}})}}};e.default=o}).call(this,t(1)["default"])},162:function(n,e,t){"use strict";t.r(e);var r=t(163),o=t.n(r);for(var u in r)"default"!==u&&function(n){t.d(e,n,(function(){return r[n]}))}(u);e["default"]=o.a},163:function(n,e,t){}},[[156,"common/runtime","common/vendor"]]]);
|
||||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/home/home.js.map
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/home/home.js.map
|
||||||
@ -1 +1 @@
|
|||||||
<view class="content"><view class="test">幼儿体质检测记录</view><block wx:for="{{StudentScore}}" wx:for-item="item" wx:for-index="__i0__"><view class="score"><view class="th"><view class="itemName">{{item.batchName}}</view><view class="time">{{item.createTime}}</view></view><view class="th"><view class="overallScore">{{"综合得分:"+item.totalFraction}}</view><view class="report">查看报告</view></view></view></block></view>
|
<view class="content"><view class="test">幼儿体质检测记录</view><block wx:for="{{StudentScore}}" wx:for-item="item" wx:for-index="__i0__"><view class="score"><view><view class="itemName">{{"批次名称:"+item.batchName}}</view></view><view class="th"><view class="overallScore">{{"综合得分:"+item.totalFraction}}</view><view class="time">{{"时间:"+item.createTime}}</view></view><view class="report">查看报告</view></view></block></view>
|
||||||
@ -5,7 +5,7 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
background-image: linear-gradient(#55C5E3,#fff);
|
background-image: linear-gradient(#55C5E3, #fff);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 测试成绩 */
|
/* 测试成绩 */
|
||||||
@ -24,30 +24,23 @@
|
|||||||
.score {
|
.score {
|
||||||
/* position: absolute; */
|
/* position: absolute; */
|
||||||
width: 700rpx;
|
width: 700rpx;
|
||||||
height: 205rpx;
|
height: 306rpx;
|
||||||
background-color: #eef9fc;
|
background-color: #eef9fc;
|
||||||
|
/* background-color: red; */
|
||||||
color: #707374;
|
color: #707374;
|
||||||
margin-bottom: 40rpx;
|
margin-bottom: 70rpx;
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
|
font-size: 33rpx;
|
||||||
}
|
}
|
||||||
.itemName {
|
.itemName {
|
||||||
height: 100rpx;
|
height: 100rpx;
|
||||||
width: 50%;
|
/* width: 50%; */
|
||||||
border-right: lightsteelblue 2rpx solid;
|
/* border-right: lightsteelblue 2rpx solid; */
|
||||||
line-height: 50px;
|
line-height: 55px;
|
||||||
/* padding-bottom: 15px; */
|
/* padding-bottom: 15px; */
|
||||||
border-bottom: lightsteelblue 2rpx solid;
|
border-bottom: lightsteelblue 2rpx solid;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
/* padding-left: 40rpx; */
|
||||||
.time {
|
|
||||||
height: 100rpx;
|
|
||||||
width: 50%;
|
|
||||||
line-height: 100rpx;
|
|
||||||
/* padding-bottom: 15px; */
|
|
||||||
border-bottom: lightsteelblue 2rpx solid;
|
|
||||||
/* margin-top: -51px; */
|
|
||||||
/* margin-left: 158px; */
|
|
||||||
text-align: center;
|
|
||||||
}
|
}
|
||||||
.overallScore {
|
.overallScore {
|
||||||
height: 100rpx;
|
height: 100rpx;
|
||||||
@ -55,14 +48,27 @@
|
|||||||
border-right: lightsteelblue 2rpx solid;
|
border-right: lightsteelblue 2rpx solid;
|
||||||
line-height: 100rpx;
|
line-height: 100rpx;
|
||||||
/* padding-bottom: 15px; */
|
/* padding-bottom: 15px; */
|
||||||
/* border-bottom: #eeecec 1px solid; */
|
border-bottom: lightsteelblue 2rpx solid;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
padding-left: 40rpx;
|
||||||
}
|
}
|
||||||
.report {
|
.time {
|
||||||
height: 100rpx;
|
height: 100rpx;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
line-height: 100rpx;
|
line-height: 100rpx;
|
||||||
|
border-bottom: lightsteelblue 2rpx solid;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
/* border-right: lightsteelblue 2rpx solid; */
|
||||||
|
/* background-color: #4486e8; */
|
||||||
|
/* float: left; */
|
||||||
|
}
|
||||||
|
.report {
|
||||||
|
height: 100rpx;
|
||||||
|
/* width: 50%; */
|
||||||
|
line-height: 100rpx;
|
||||||
|
text-align: center;
|
||||||
|
/* border-bottom: lightsteelblue 2rpx solid; */
|
||||||
|
/* margin-top: 100rpx; */
|
||||||
}
|
}
|
||||||
.th {
|
.th {
|
||||||
/* background-color: orange; */
|
/* background-color: orange; */
|
||||||
|
|||||||
@ -1,2 +1,2 @@
|
|||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{136:function(n,t,e){"use strict";(function(n){e(5);o(e(4));var t=o(e(137));function o(n){return n&&n.__esModule?n:{default:n}}wx.__webpack_require_UNI_MP_PLUGIN__=e,n(t.default)}).call(this,e(1)["createPage"])},137:function(n,t,e){"use strict";e.r(t);var o=e(138),r=e(140);for(var u in r)"default"!==u&&function(n){e.d(t,n,(function(){return r[n]}))}(u);e(145);var i,s=e(11),c=Object(s["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],i);c.options.__file="pages/index/index.vue",t["default"]=c.exports},138:function(n,t,e){"use strict";e.r(t);var o=e(139);e.d(t,"render",(function(){return o["render"]})),e.d(t,"staticRenderFns",(function(){return o["staticRenderFns"]})),e.d(t,"recyclableRender",(function(){return o["recyclableRender"]})),e.d(t,"components",(function(){return o["components"]}))},139:function(n,t,e){"use strict";var o;e.r(t),e.d(t,"render",(function(){return r})),e.d(t,"staticRenderFns",(function(){return i})),e.d(t,"recyclableRender",(function(){return u})),e.d(t,"components",(function(){return o}));var r=function(){var n=this,t=n.$createElement,e=(n._self._c,n.__map(n.studentList,(function(t,e){var o=n.__get_orig(t),r=n._f("formatSex")(t.studentSex);return{$orig:o,f0:r}})));n._isMounted||(n.e0=function(t){n.mask=!1}),n.$mp.data=Object.assign({},{$root:{l0:e}})},u=!1,i=[];r._withStripped=!0},140:function(n,t,e){"use strict";e.r(t);var o=e(141),r=e.n(o);for(var u in o)"default"!==u&&function(n){e.d(t,n,(function(){return o[n]}))}(u);t["default"]=r.a},141:function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=e(142),r={components:{},data:function(){return{top:!0,top2:!1,login:!1,mask:!1,before:!1,stuinfos:!1,tip:!0,yonghuwx:[],code:11,studentList:[],classList:[],parentList:[],msg:""}},methods:{setitem:function(){var t=this;n.getStorage({key:"user",success:function(n){t.yonghuwx=n.data,console.log(t.yonghuwx),t.login=!0,t.stuinfos=!0,t.tip=!1,t.top2=!0,t.top=!1,t.getPreOrderById()}})},gophone:function(){n.navigateTo({url:"/pages/phone/phone"})},getPreOrderById:function(){var n=this;(0,o.getPreOrderById)(this.code).then((function(t){console.log(t),200==t.code?(n.studentList=t.data.studentInfoList,n.classList=t.data.classInfoList,n.parentList=t.data):500==t.code&&"EMPTY"==t.msg&&(n.mask=!0)}))},getPhoneNumberp:function(n){wx.login({provider:"weixin",success:function(n){console.log(n)}})},wxGetUserInfo:function(){var t=this;n.getUserProfile({desc:"获取用户信息",lang:"zh_CN",success:function(e){console.log(e),t.yonghuwx=e.userInfo,n.setStorage({key:"user",data:e.userInfo}),t.getPreOrderById(),t.getPhoneNumberp(),t.login=!0,t.stuinfos=!0,t.tip=!1,t.top2=!0,t.top=!1},fail:function(n){}})}},filters:{formatSex:function(n){var t={FAMELE:"女",MALE:"男"};return t[n]}},onLoad:function(n){this.setitem()}};t.default=r}).call(this,e(1)["default"])},145:function(n,t,e){"use strict";e.r(t);var o=e(146),r=e.n(o);for(var u in o)"default"!==u&&function(n){e.d(t,n,(function(){return o[n]}))}(u);t["default"]=r.a},146:function(n,t,e){}},[[136,"common/runtime","common/vendor"]]]);
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{137:function(n,e,t){"use strict";(function(n){t(5),t(6);o(t(4));var e=o(t(138));function o(n){return n&&n.__esModule?n:{default:n}}wx.__webpack_require_UNI_MP_PLUGIN__=t,n(e.default)}).call(this,t(1)["createPage"])},138:function(n,e,t){"use strict";t.r(e);var o=t(139),r=t(141);for(var i in r)"default"!==i&&function(n){t.d(e,n,(function(){return r[n]}))}(i);t(146);var s,u=t(12),a=Object(u["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],s);a.options.__file="pages/index/index.vue",e["default"]=a.exports},139:function(n,e,t){"use strict";t.r(e);var o=t(140);t.d(e,"render",(function(){return o["render"]})),t.d(e,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(e,"components",(function(){return o["components"]}))},140:function(n,e,t){"use strict";var o;t.r(e),t.d(e,"render",(function(){return r})),t.d(e,"staticRenderFns",(function(){return s})),t.d(e,"recyclableRender",(function(){return i})),t.d(e,"components",(function(){return o}));var r=function(){var n=this,e=n.$createElement,t=(n._self._c,n.__map(n.studentList,(function(e,t){var o=n.__get_orig(e),r=n._f("formatSex")(e.studentSex);return{$orig:o,f0:r}})));n._isMounted||(n.e0=function(e){n.mask=!1},n.e1=function(e){n.mask2=!1}),n.$mp.data=Object.assign({},{$root:{l0:t}})},i=!1,s=[];r._withStripped=!0},141:function(n,e,t){"use strict";t.r(e);var o=t(142),r=t.n(o);for(var i in o)"default"!==i&&function(n){t.d(e,n,(function(){return o[n]}))}(i);e["default"]=r.a},142:function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(143),r={components:{},data:function(){return{top:!0,top2:!1,login:!1,mask:!1,mask2:!1,before:!1,stuinfos:!1,tip:!0,yonghuwx:[],logincode:"",phonecode:"",phone:"",studentList:[],classList:[],parentList:[],msg:"",openId:""}},methods:{setitem:function(){var e=this;n.getStorage({key:"user",success:function(n){e.yonghuwx=n.data,console.log(e.yonghuwx),e.login=!0,e.stuinfos=!0,e.tip=!1,e.top2=!0,e.top=!1,e.getPreOrderById()}})},gophone:function(){var e=this.openId;n.navigateTo({url:"/pages/phone/phone?openId=".concat(e)}),this.mask=!1},getPreOrderById:function(){var e=this;(0,o.getPreOrderById)(this.logincode,this.phonecode).then((function(t){console.log(t),200==t.code&&("EMPTY"==t.data.flag?(e.mask=!0,e.openId=t.data.openId):(e.phone=t.data.phone,n.setStorage({key:"phone",data:t.data.phone}),""!=e.phone&&e.getInfoByPhoneinfo(),e.login=!0,e.stuinfos=!0,e.tip=!1,e.top2=!0,e.top=!1,e.mask2=!1))}))},getPhoneNumberp:function(n){this.phonecode=n.detail.code,console.log(n);var e=this;wx.login({provider:"weixin",success:function(n){console.log(n),e.logincode=n.code,console.log(e.logincode),e.getPreOrderById(),e.mask2=!1}})},wxGetUserInfo:function(){var e=this;n.getUserProfile({desc:"获取用户信息",lang:"zh_CN",success:function(t){console.log(t),e.yonghuwx=t.userInfo,n.setStorage({key:"user",data:t.userInfo}),e.mask2=!0},fail:function(n){}})},getInfoByPhoneinfo:function(){var n=this;(0,o.getInfoByPhone)(this.phone).then((function(e){200==e.code&&(console.log(e),n.studentList=e.data.studentInfoList,n.classList=e.data.classInfoList,n.parentList=e.data)}))}},filters:{formatSex:function(n){var e={FAMELE:"女",MALE:"男"};return e[n]}},onShow:function(){},onLoad:function(e){var t=this;n.getStorage({key:"phone",success:function(n){t.phone=n.data,t.getInfoByPhoneinfo()}}),n.getStorage({key:"user",success:function(n){t.yonghuwx=n.data,console.log(t.yonghuwx),t.login=!0,t.stuinfos=!0,t.tip=!1,t.top2=!0,t.top=!1}})}};e.default=r}).call(this,t(1)["default"])},146:function(n,e,t){"use strict";t.r(e);var o=t(147),r=t.n(o);for(var i in o)"default"!==i&&function(n){t.d(e,n,(function(){return o[n]}))}(i);e["default"]=r.a},147:function(n,e,t){}},[[137,"common/runtime","common/vendor"]]]);
|
||||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map
|
||||||
@ -1 +1 @@
|
|||||||
<view class="content"><view style="width:100%;"><view hidden="{{!(top)}}" class="top"></view><block wx:if="{{login}}"><view class="nicheng"><view class="tx-w"><view class="tx"><image class="tx-img" src="{{yonghuwx.avatarUrl}}"></image><view class="zx"></view></view><view class="infos"><view class="studentName">{{"姓名:"+parentList.parentName}}</view><view class="name">{{"昵称:"+yonghuwx.nickName+''}}</view></view></view></view></block><block wx:else><view class="nicheng2"><view class="tx-w"><view class="tx" style="margin-left:130rpx;"><image class="tx-img" src="/static/登陆头像.png"></image><view class="zx"></view></view><view class="login" style="margin-left:45%;"><view src="{{yonghuwx.avatarUrl}}">暂未登录</view></view></view></view></block><view hidden="{{!(top2)}}" class="top2"></view><view hidden="{{!(tip)}}" class="tip"><button data-event-opts="{{[['tap',[['wxGetUserInfo',['$event']]]]]}}" bindtap="__e">授权登录</button></view><view hidden="{{!(stuinfos)}}" class="stuinfos"><view class="student"><view class="stinfo"><image src="/static/student.png" alt sizes srcset class="_img"></image><view class="st">学生信息</view></view><view class="th"><view class="stname">姓名</view><view class="sex">性别</view><view class="age">年龄</view><view class="class">班级</view><view class="score">成绩</view></view><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="__i0__"><view class="tr"><view class="stname">{{item.$orig.studentName}}</view><view class="sex">{{item.f0+''}}</view><view class="age">{{item.$orig.studentAge}}</view><view class="class">{{item.$orig.className}}</view><view class="read"><navigator url="{{'/pages/home/home?studentId='+item.$orig.studentId}}">查看</navigator></view></view></block></view><view class="kindergarten"><view class="stinfo"><image src="/static/children.png" alt sizes srcset class="_img"></image><text>幼儿园信息</text></view><view class="th"><view class="kinderclass">幼儿园</view><view class="teacher">班主任</view></view><block wx:for="{{classList}}" wx:for-item="item" wx:for-index="__i1__"><view class="tr"><view class="kinderclass">{{item.kindergartenName}}</view><view class="teacher">{{item.classTeacher}}</view></view></block></view><view class="parentinfo"><view class="stinfo"><image src="/static/parent.png" alt sizes srcset class="_img"></image><text>家长信息</text></view><view class="th"><view class="parent">家长</view><view class="phone">电话</view></view><view class="tr"><view class="parent">{{parentList.parentName}}</view><view class="phone">{{parentList.phone}}</view></view></view></view><block wx:if="{{mask}}"><view class="masks"><view class="mask"><view class="title">提示</view><view class="text">您的手机号不符合,请更改信息</view><view class="btns"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="btn1" bindtap="__e">取消</view><view data-event-opts="{{[['tap',[['gophone']]]]}}" class="btn2" bindtap="__e">确定</view></view></view></view></block></view></view>
|
<view class="content"><view style="width:100%;"><view hidden="{{!(top)}}" class="top"></view><block wx:if="{{login}}"><view class="nicheng"><view class="tx-w"><view class="tx"><image class="tx-img" src="{{yonghuwx.avatarUrl}}"></image><view class="zx"></view></view><view class="infos"><view class="studentName">{{"姓名:"+parentList.parentName}}</view><view class="name">{{"昵称:"+yonghuwx.nickName+''}}</view></view></view></view></block><block wx:else><view class="nicheng2"><view data-event-opts="{{[['tap',[['wxGetUserInfo',['$event']]]]]}}" class="tx-w" bindtap="__e"><view class="tx" style="margin-left:130rpx;"><image class="tx-img" src="/static/dl.png"></image><view class="zx"></view></view><view class="login" style="margin-left:45%;"><view src="{{yonghuwx.avatarUrl}}">暂未登录</view></view></view></view></block><view hidden="{{!(top2)}}" class="top2"></view><view hidden="{{!(tip)}}" class="tip"><button data-event-opts="{{[['tap',[['wxGetUserInfo',['$event']]]]]}}" bindtap="__e">授权登录</button></view><view hidden="{{!(stuinfos)}}" class="stuinfos"><view class="student"><view class="stinfo"><image src="/static/student.png" alt sizes srcset class="_img"></image><view class="st">学生信息</view></view><view class="th"><view class="stname">姓名</view><view class="sex">性别</view><view class="age">年龄</view><view class="class">班级</view><view class="score">成绩</view></view><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="__i0__"><view class="tr"><view class="stname">{{item.$orig.studentName}}</view><view class="sex">{{item.f0+''}}</view><view class="age">{{item.$orig.studentAge}}</view><view class="class">{{item.$orig.className}}</view><view class="read"><navigator url="{{'/pages/home/home?studentId='+item.$orig.studentId}}">查看</navigator></view></view></block></view><view class="kindergarten"><view class="stinfo"><image src="/static/children.png" alt sizes srcset class="_img"></image><text>幼儿园信息</text></view><view class="th"><view class="kinderclass">幼儿园</view><view class="teacher">班主任</view></view><block wx:for="{{classList}}" wx:for-item="item" wx:for-index="__i1__"><view class="tr"><view class="kinderclass">{{item.kindergartenName}}</view><view class="teacher">{{item.classTeacher}}</view></view></block></view><view class="parentinfo"><view class="stinfo"><image src="/static/parent.png" alt sizes srcset class="_img"></image><text>家长信息</text></view><view class="th"><view class="parent">家长</view><view class="phone">电话</view></view><view class="tr"><view class="parent">{{parentList.parentName}}</view><view class="phone">{{parentList.phone}}</view></view></view></view><block wx:if="{{mask}}"><view class="masks"><view class="mask"><view class="title">提示</view><view class="text">您的手机号不符合,请更改信息</view><view class="btns"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="btn1" bindtap="__e">取消</view><view data-event-opts="{{[['tap',[['gophone']]]]}}" class="btn2" bindtap="__e">确定</view></view></view></view></block><block wx:if="{{mask2}}"><view class="masks"><view class="mask2"><view class="title">微信授权</view><view class="sq"><image src="/static/sq1.png" alt sizes srcset class="_img"></image></view><view class="text">授权绑定您的手机号码</view><view class="btns"><button data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="btn1" bindtap="__e">拒绝</button><button class="btn2" open-type="getPhoneNumber" data-event-opts="{{[['getphonenumber',[['getPhoneNumberp',['$event']]]]]}}" bindgetphonenumber="__e">允许</button></view></view></view></block></view></view>
|
||||||
@ -11,38 +11,62 @@
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
.btn2 {
|
.btn2 {
|
||||||
border-top: 1px solid #4486e8;
|
border-top: 1px solid #eeeeee;
|
||||||
|
/* background-color: #4486e8; */
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
.btn1 {
|
.btn1 {
|
||||||
border-top: 1px solid #4486e8;
|
border-top: 1px solid #eeeeee;
|
||||||
border-right: 1px solid #4486e8;
|
border-right: 1px solid #eeeeee;
|
||||||
background-color: #4486e8;
|
background-color: #4486e8;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
left: 0;
|
left: 0;
|
||||||
}
|
}
|
||||||
.masks {
|
.masks {
|
||||||
background-color: #f0f0f0;
|
background-color: #f0f0f0;
|
||||||
height: 2000rpx;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
opacity: 0.9;
|
opacity: 0.9;
|
||||||
top: 0;
|
top: 0;
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
}
|
}
|
||||||
|
.mask2 {
|
||||||
|
width: 70%;
|
||||||
|
height: 400rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
margin: 200rpx auto;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.sq {
|
||||||
|
width: 90rpx;
|
||||||
|
height: 90rpx;
|
||||||
|
/* background-color: red; */
|
||||||
|
margin: 0 auto;
|
||||||
|
padding-top: 25rpx;
|
||||||
|
padding-bottom: 40rpx;
|
||||||
|
}
|
||||||
|
.masks ._img {
|
||||||
|
width: 90rpx;
|
||||||
|
height: 90rpx;
|
||||||
|
}
|
||||||
.text {
|
.text {
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
padding-top: 40rpx;
|
/* padding-top: 40rpx; */
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
.title {
|
.title {
|
||||||
font-size: 40rpx;
|
height: 100rpx;
|
||||||
margin: 0 auto;
|
line-height: 100rpx;
|
||||||
width: 20%;
|
border-bottom: 1px solid #eeeeee;
|
||||||
|
/* background-color: red; */
|
||||||
|
font-size: 36rpx;
|
||||||
|
margin: 0px auto;
|
||||||
|
width: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 80rpx;
|
/* line-height: 80rpx; */
|
||||||
}
|
}
|
||||||
.mask {
|
.mask {
|
||||||
width: 70%;
|
width: 70%;
|
||||||
@ -103,10 +127,7 @@
|
|||||||
color: #707374;
|
color: #707374;
|
||||||
}
|
}
|
||||||
.name {
|
.name {
|
||||||
text-align: center;
|
margin-left: 280rpx;
|
||||||
margin-top: -120rpx;
|
|
||||||
/* margin-left: 10rpx; */
|
|
||||||
margin-top: 10rpx;
|
|
||||||
}
|
}
|
||||||
.name-qm {
|
.name-qm {
|
||||||
margin-left: ;
|
margin-left: ;
|
||||||
|
|||||||
@ -1,2 +1,2 @@
|
|||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/phone/phone"],{147:function(n,e,t){"use strict";(function(n){t(5);r(t(4));var e=r(t(148));function r(n){return n&&n.__esModule?n:{default:n}}wx.__webpack_require_UNI_MP_PLUGIN__=t,n(e.default)}).call(this,t(1)["createPage"])},148:function(n,e,t){"use strict";t.r(e);var r=t(149),o=t(151);for(var u in o)"default"!==u&&function(n){t.d(e,n,(function(){return o[n]}))}(u);t(153);var c,a=t(11),i=Object(a["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],c);i.options.__file="pages/phone/phone.vue",e["default"]=i.exports},149:function(n,e,t){"use strict";t.r(e);var r=t(150);t.d(e,"render",(function(){return r["render"]})),t.d(e,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(e,"components",(function(){return r["components"]}))},150:function(n,e,t){"use strict";var r;t.r(e),t.d(e,"render",(function(){return o})),t.d(e,"staticRenderFns",(function(){return c})),t.d(e,"recyclableRender",(function(){return u})),t.d(e,"components",(function(){return r}));var o=function(){var n=this,e=n.$createElement;n._self._c},u=!1,c=[];o._withStripped=!0},151:function(n,e,t){"use strict";t.r(e);var r=t(152),o=t.n(r);for(var u in r)"default"!==u&&function(n){t.d(e,n,(function(){return r[n]}))}(u);e["default"]=o.a},152:function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(142),o={data:function(){return{data:{cardNo:"",parentName:"",phone:""}}},methods:{bindParent:function(){(0,r.bindParent)(this.data).then((function(e){console.log(e),200==e.code?n.navigateTo({url:"/pages/index/index"}):500==e.code&&n.showToast({title:e.msg,icon:"none",duration:2e3})}))},cancel:function(){n.removeStorageSync("user"),n.navigateTo({url:"/pages/index/index"})}}};e.default=o}).call(this,t(1)["default"])},153:function(n,e,t){"use strict";t.r(e);var r=t(154),o=t.n(r);for(var u in r)"default"!==u&&function(n){t.d(e,n,(function(){return r[n]}))}(u);e["default"]=o.a},154:function(n,e,t){}},[[147,"common/runtime","common/vendor"]]]);
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/phone/phone"],{148:function(n,e,t){"use strict";(function(n){t(5),t(6);o(t(4));var e=o(t(149));function o(n){return n&&n.__esModule?n:{default:n}}wx.__webpack_require_UNI_MP_PLUGIN__=t,n(e.default)}).call(this,t(1)["createPage"])},149:function(n,e,t){"use strict";t.r(e);var o=t(150),r=t(152);for(var u in r)"default"!==u&&function(n){t.d(e,n,(function(){return r[n]}))}(u);t(154);var a,c=t(12),i=Object(c["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],a);i.options.__file="pages/phone/phone.vue",e["default"]=i.exports},150:function(n,e,t){"use strict";t.r(e);var o=t(151);t.d(e,"render",(function(){return o["render"]})),t.d(e,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(e,"components",(function(){return o["components"]}))},151:function(n,e,t){"use strict";var o;t.r(e),t.d(e,"render",(function(){return r})),t.d(e,"staticRenderFns",(function(){return a})),t.d(e,"recyclableRender",(function(){return u})),t.d(e,"components",(function(){return o}));var r=function(){var n=this,e=n.$createElement;n._self._c},u=!1,a=[];r._withStripped=!0},152:function(n,e,t){"use strict";t.r(e);var o=t(153),r=t.n(o);for(var u in o)"default"!==u&&function(n){t.d(e,n,(function(){return o[n]}))}(u);e["default"]=r.a},153:function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(143),r={data:function(){return{data:{cardNo:"",parentName:"",phone:"",openId:""}}},methods:{bindParent:function(){n.removeStorage({key:"phone",success:function(n){console.log(n)}}),(0,o.bindParent)(this.data).then((function(e){console.log(e),200==e.code?(n.setStorage({key:"phone",data:e.msg}),n.navigateTo({url:"/pages/index/index"}),n.showToast({title:"添加成功",icon:"none",duration:2e3})):500==e.code&&n.showToast({title:e.msg,icon:"none",duration:2e3})}))},cancel:function(){n.removeStorageSync("user"),n.navigateTo({url:"/pages/index/index"})}},onLoad:function(n){console.log(n),this.data.openId=n.openId,console.log(this.data.openId)}};e.default=r}).call(this,t(1)["default"])},154:function(n,e,t){"use strict";t.r(e);var o=t(155),r=t.n(o);for(var u in o)"default"!==u&&function(n){t.d(e,n,(function(){return o[n]}))}(u);e["default"]=r.a},155:function(n,e,t){}},[[148,"common/runtime","common/vendor"]]]);
|
||||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/phone/phone.js.map
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/phone/phone.js.map
|
||||||
@ -1 +1 @@
|
|||||||
<view class="content"><uni-section class="card" vue-id="96be033c-1" bind:__l="__l" vue-slots="{{['default']}}"><view class="test">信息绑定</view><uni-card vue-id="{{('96be033c-2')+','+('96be033c-1')}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="bind"><view class="name">家长姓名:<input type="text" data-event-opts="{{[['input',[['__set_model',['$0','parentName','$event',[]],['data']]]]]}}" value="{{data.parentName}}" bindinput="__e"/></view><view class="id">学生身份证:<input type="text" maxlength="18" data-event-opts="{{[['input',[['__set_model',['$0','cardNo','$event',[]],['data']]]]]}}" value="{{data.cardNo}}" bindinput="__e"/></view><view class="phone">家长电话:<input type="text" maxlength="11" data-event-opts="{{[['input',[['__set_model',['$0','phone','$event',[]],['data']]]]]}}" value="{{data.phone}}" bindinput="__e"/></view><view class="btn"><button data-event-opts="{{[['tap',[['cancel']]]]}}" bindtap="__e">取消</button><button data-event-opts="{{[['tap',[['bindParent']]]]}}" bindtap="__e">确定</button></view></view></uni-card></uni-section></view>
|
<view class="content"><uni-section class="card" vue-id="96be033c-1" bind:__l="__l" vue-slots="{{['default']}}"><view class="test">家长信息绑定</view><uni-card vue-id="{{('96be033c-2')+','+('96be033c-1')}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="bind"><view class="name">家长姓名:<input type="text" data-event-opts="{{[['input',[['__set_model',['$0','parentName','$event',[]],['data']]]]]}}" value="{{data.parentName}}" bindinput="__e"/></view><view class="id">学生身份证:<input type="text" maxlength="18" data-event-opts="{{[['input',[['__set_model',['$0','cardNo','$event',[]],['data']]]]]}}" value="{{data.cardNo}}" bindinput="__e"/></view><view class="phone">家长电话:<input type="text" maxlength="11" data-event-opts="{{[['input',[['__set_model',['$0','phone','$event',[]],['data']]]]]}}" value="{{data.phone}}" bindinput="__e"/></view><view class="btn"><button data-event-opts="{{[['tap',[['cancel']]]]}}" bindtap="__e">取消</button><button data-event-opts="{{[['tap',[['bindParent']]]]}}" bindtap="__e">确定</button></view></view></uni-card></uni-section></view>
|
||||||
@ -16,7 +16,7 @@
|
|||||||
},
|
},
|
||||||
"compileType": "miniprogram",
|
"compileType": "miniprogram",
|
||||||
"libVersion": "2.25.3",
|
"libVersion": "2.25.3",
|
||||||
"appid": "wxe56d6caefbdda1d3",
|
"appid": "wxdec3416aa3d60cab",
|
||||||
"projectname": "yer",
|
"projectname": "yer",
|
||||||
"condition": {},
|
"condition": {},
|
||||||
"editorSetting": {
|
"editorSetting": {
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
|
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
|
||||||
"projectname": "yer",
|
"projectname": "yer",
|
||||||
"setting": {
|
"setting": {
|
||||||
"compileHotReLoad": true
|
"compileHotReLoad": true,
|
||||||
|
"urlCheck": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user