diff --git a/1.txt b/1.txt deleted file mode 100644 index 0cee270..0000000 --- a/1.txt +++ /dev/null @@ -1 +0,0 @@ -3213 \ No newline at end of file diff --git a/src/wechat_app/pages/set/set.js b/src/wechat_app/pages/set/set.js new file mode 100644 index 0000000..62f1e96 --- /dev/null +++ b/src/wechat_app/pages/set/set.js @@ -0,0 +1,66 @@ +// pages/set/set.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/src/wechat_app/pages/set/set.json b/src/wechat_app/pages/set/set.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/src/wechat_app/pages/set/set.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/src/wechat_app/pages/set/set.wxml b/src/wechat_app/pages/set/set.wxml new file mode 100644 index 0000000..00e17d6 --- /dev/null +++ b/src/wechat_app/pages/set/set.wxml @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/wechat_app/pages/set/set.wxss b/src/wechat_app/pages/set/set.wxss new file mode 100644 index 0000000..a939f70 --- /dev/null +++ b/src/wechat_app/pages/set/set.wxss @@ -0,0 +1,31 @@ +.banner{ + + width: 100%; + height: 550rpx; +} +.banner swiper{ + + height: 100%; + width: 100%; +} +.banner image{ + + width: 100%; + height: 550rpx; +} + +.header { + position: relative; + height:300rpx; + background: linear-gradient(to bottom, #56ccf2, #2f80ed); +} + +.bg_ware { + position: absolute; + left: 0; + bottom: -2rpx; + width: 100%; + mix-blend-mode: screen; + height: 120rpx; +} + diff --git a/src/wechat_app/pages/user/user.js b/src/wechat_app/pages/user/user.js new file mode 100644 index 0000000..ed56496 --- /dev/null +++ b/src/wechat_app/pages/user/user.js @@ -0,0 +1,160 @@ +// pages/user/user.js +var app = getApp() +Page({ + + /** + * 页面的初始数据 + */ + data: { + cc:"sdasdasd", + + swiperList: [ + { + type: 'video', + url: 'https://static.51dh.com.cn/dbp/12/98/4494bd8a6e0fcd4a992f25a42bea28f8d1fb.mp4' + }, { + type: 'image', + url: 'https://bj.bcebos.com/shitu-query-bj/2022-11-25/12/65c8785efdf614c0?authorization=bce-auth-v1%2F7e22d8caf5af46cc9310f1e3021709f3%2F2022-11-25T04%3A21%3A48Z%2F300%2F%2Fcba06b77ff3338331ba50868a058fa1e01045adb673ced5692d04f84009ca4aa' + }, { + + type: 'image', + url: 'https://bj.bcebos.com/shitu-query-bj/2022-11-25/12/a12f2c0208db3f56?authorization=bce-auth-v1%2F7e22d8caf5af46cc9310f1e3021709f3%2F2022-11-25T04%3A20%3A16Z%2F300%2F%2F2d395d19e9b327015c749f3e9edfa863b1d73c8da8d935a87f8f00d34b482ba4', + }, { + + type: 'image', + url: 'https://i.postimg.cc/pXDp6RXq/susu3.jpg' + }, { + + type: 'image', + url: 'https://i.postimg.cc/XJmpTvCD/susu2.jpg' + }, { + + type: 'image', + url: 'https://i.postimg.cc/76br1jzJ/susu1.jpg' + }, { + + type: 'image', + url: 'https://i.postimg.cc/pXDp6RXq/susu3.jpg' + }, + { + + type: 'image', + url: 'https://i.postimg.cc/XJmpTvCD/susu2.jpg' + }, + ], + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + this.tauchSwiper('swiperList'); + }, + // 初始化tauchSwiper + tauchSwiper(name) { + let list = this.data[name]; + for (let i = 0; i < list.length; i++) { + // Math.abs(x) 函数返回指定数字 “x“ 的绝对值 + list[i].zIndex = parseInt(list.length / 2) + 1 - Math.abs(i - parseInt(list.length / 2)) + list[i].mLeft = i - parseInt(list.length / 2) + } + this.setData({ + swiperList: list + }) + }, + // tauchSwiper触摸开始 + tauchStart(e) { + this.setData({ + tauchStart: e.touches[0].pageX + }) + }, + // tauchSwiper计算方向 + tauchMove(e) { + this.setData({ + direction: e.touches[0].pageX - this.data.tauchStart > 0 ? 'right' : 'left' + }) + }, + // tauchSwiper计算滚动 + tauchEnd(e) { + let direction = this.data.direction; + let list = this.data.swiperList; + if (direction == 'right') { + let mLeft = list[0].mLeft; + let zIndex = list[0].zIndex; + for (let i = 1; i < list.length; i++) { + list[i - 1].mLeft = list[i].mLeft + list[i - 1].zIndex = list[i].zIndex + } + list[list.length - 1].mLeft = mLeft; + list[list.length - 1].zIndex = zIndex; + this.setData({ + swiperList: list + }) + } else { + let mLeft = list[list.length - 1].mLeft; + let zIndex = list[list.length - 1].zIndex; + for (let i = list.length - 1; i > 0; i--) { + list[i].mLeft = list[i - 1].mLeft + list[i].zIndex = list[i - 1].zIndex + } + list[0].mLeft = mLeft; + list[0].zIndex = zIndex; + this.setData({ + swiperList: list + }) + } + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + // 修改全局变量值的时候再用 =,其他时候用setData + this.setData({ + cc:app.globalData.globalsno + }) + console.log(app.globalData.globalsno) + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/src/wechat_app/pages/user/user.json b/src/wechat_app/pages/user/user.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/src/wechat_app/pages/user/user.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/src/wechat_app/pages/user/user.wxml b/src/wechat_app/pages/user/user.wxml new file mode 100644 index 0000000..8fb553c --- /dev/null +++ b/src/wechat_app/pages/user/user.wxml @@ -0,0 +1,56 @@ + + + + + + + + + + + 出校 + + + + + 入校 + + + + + 疫情信息 + + + + + + + + + 申请状态 + + + + + + 扫码 + + + + + + + + + + + + + + + + + + + + diff --git a/src/wechat_app/pages/user/user.wxss b/src/wechat_app/pages/user/user.wxss new file mode 100644 index 0000000..520a8d4 --- /dev/null +++ b/src/wechat_app/pages/user/user.wxss @@ -0,0 +1,122 @@ +/* pages/index/index.wxss */ +.c1{ + color: red; +} +.image1{ + width: 200rpx; + height: 200rpx; + /* 如果要设置圆角的话 */ + border-radius: 100rpx; +} + +.menu{ + display: flex; + /* 规定主轴的方向 */ + flex-direction: row; + /* 元素在主轴方向的排列方式 我用的是平均排列*/ + justify-content: space-between; + /* 元素在负轴方向如何展示 */ + /* align-items: center; */ + +} + +.menu1{ + display: flex; + /* 规定主轴的方向 */ + flex-direction: row; + /* 元素在主轴方向的排列方式 我用的是平均排列*/ + justify-content: space-around; + /* 元素在负轴方向如何展示 */ + /* align-items: center; */ + +} +/* 缺个空格差点g。 */ +.menu .item{ + display: flex; + flex-direction: column; + /* 元素在负轴方向如何展示 */ + align-items: center; +} + +.menu1 .item{ + display: flex; + flex-direction: column; + /* 元素在负轴方向如何展示 */ + align-items: center; +} + +/* 做波浪 */ +.header { + position: relative; + height:600rpx; + background: linear-gradient(to bottom, #56ccf2, #2f80ed); +} + +.bg_ware { + position: absolute; + left: 0; + bottom: -2rpx; + width: 100%; + mix-blend-mode: screen; + height: 120rpx; +} + +/* 轮播图 */ +.swiper-item image, +.swiper-item video { + width: 100%; + display: block; + height: 100%; + margin: 0; + pointer-events: none; +} + +image { + max-width: 100%; + display: inline-block; + position: relative; + z-index: 0; +} + +.swiper-box { + height: 420rpx; + position: relative; + max-width: 750rpx; + overflow: hidden; + box-sizing: border-box; + margin-top: 90rpx; +} + +.swiper-box .item-box { + position: absolute; + width: 300rpx; + height: 380rpx; + top: 0; + bottom: 0; + left: 50%; + margin: auto; + transition: all 0.2s ease-in 0s; + opacity: 1; + box-shadow: 0px 13rpx 12rpx rgba(0, 0, 0, .5); + border-radius: 15rpx; + overflow: hidden; +} + +.swiper-box .item-box.none { + opacity: 0; +} + +.swiper-box .item-box .swiper-item { + width: 100%; + height: 100%; + border-radius: 6rpx; + overflow: hidden; +} + + +.swiper-box .item-box { + transform: scale(calc(0.5 + var(--index) / 10)); + margin-left: calc(var(--left) * 100rpx - 150rpx); + z-index: var(--index); +} + diff --git a/src/wechat_app/pages/v13_look_info/v13_look_info.js b/src/wechat_app/pages/v13_look_info/v13_look_info.js new file mode 100644 index 0000000..1c18152 --- /dev/null +++ b/src/wechat_app/pages/v13_look_info/v13_look_info.js @@ -0,0 +1,93 @@ +Page({ + + /** + * 页面的初始数据 + */ + data: { + select: false, + area: "全部", + tempgao:'', + tempzhong:'', + tempdi:'', + gao:'', + zhong:'', + di:'', + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + bindShowMsg() { + // console.log(!this.data.select) + this.setData({ + select:!this.data.select + // 选中为true + }) + }, + mySelect:function(e) { + var name = e.currentTarget.dataset.name + this.setData({ + area: name, + select: false, + gao:'', + zhong:'', + di:'' + + }) + + var that =this + wx.request({ + url: 'http://127.0.0.1:2020/look_info', + data: {name:this.data.area + }, + dataType:JSON , + method: 'POST', + timeout: 0, + success: (result) => { + var p =JSON.parse(result.data) + that.setData({ + tempgao:p.height, + tempzhong:p.middle, + tempdi:p.low + }) + // console.log(that.data.tempgao) + }, + }) + + }, + +// 高风险区触发函数 +gao_info:function(){ +this.setData({ + gao:this.data.tempgao, + zhong:'', + di:'' +}) +}, +//中风险区触发函数 +zhong_info:function(){ + this.setData({ + gao:'', + zhong:this.data.tempzhong, + di:'' + }) +}, +//低风险区触发函数 +di_info:function(){ + this.setData({ + gao:'', + zhong:'', + di:this.data.tempdi + }) +}, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) diff --git a/src/wechat_app/pages/v13_look_info/v13_look_info.json b/src/wechat_app/pages/v13_look_info/v13_look_info.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/src/wechat_app/pages/v13_look_info/v13_look_info.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/src/wechat_app/pages/v13_look_info/v13_look_info.wxml b/src/wechat_app/pages/v13_look_info/v13_look_info.wxml new file mode 100644 index 0000000..a391271 --- /dev/null +++ b/src/wechat_app/pages/v13_look_info/v13_look_info.wxml @@ -0,0 +1,55 @@ + + + 区域选择 + + + + + {{area}} + + + + + + + + + + + + + 全部 + 和平区 + 河东区 + 河西区 + 南开区 + 河北区 + 红桥区 + 塘沽区 + 汉沽区 + 大港区 + 东丽区 + 西青区 + 津南区 + 北辰区 + 武清区 + 宝坻区 + 宁河区 + 静海区 + 蓟州区 + 滨海新区 + + + + +{{item}} +---------------------------------------------- + + + {{item}} +---------------------------------------------- + + + {{item}} +---------------------------------------------- + diff --git a/src/wechat_app/pages/v13_look_info/v13_look_info.wxss b/src/wechat_app/pages/v13_look_info/v13_look_info.wxss new file mode 100644 index 0000000..974f328 --- /dev/null +++ b/src/wechat_app/pages/v13_look_info/v13_look_info.wxss @@ -0,0 +1,48 @@ +.list-msg { + padding: 0 20rpx; + background-color: #fff; + position: relative; +} + +.list-msg1 { + height: 60rpx; + display: flex; + align-items: center; + justify-content: space-between; +} + +.list-msg .list-msg2 { + height: 60rpx; + display: flex; + align-items: center; + justify-content: space-between; + border: 1px solid #ccc; + padding: 0 10rpx; +} + +.select_box { + background-color: #eee; + padding: 0 10rpx; + width: 93%; + position: absolute; + top: 130rpx; + z-index: 1; + overflow: hidden; + animation: myfirst 0.5s; +} + +@keyframes myfirst { + from { + height: 0rpx; + } + + to { + height: 210rpx; + } +} + +.select_one { + height: 60rpx; + line-height: 60rpx; + border-bottom: 1px solid #ccc; +} diff --git a/src/wechat_app/pages/v15_scan_the_code/v15_scan_the_code.js b/src/wechat_app/pages/v15_scan_the_code/v15_scan_the_code.js new file mode 100644 index 0000000..7439a3a --- /dev/null +++ b/src/wechat_app/pages/v15_scan_the_code/v15_scan_the_code.js @@ -0,0 +1,74 @@ +// pages/v15_scan_the_code/v15_scan_the_code.js +const app = getApp() + +Page({ + data: { + scan: '', + sno:'' + + }, + getScancode: function() { + // var _this = this; + // 允许从相机和相册扫码 + wx.scanCode({ + success: (res) => { + var jieguo = res.result; + console.log(jieguo) + + this.setData({ + scan: jieguo, + sno:app.globalData.globalsno + + }) + // console.log(result) + // console.log(this.data.result) + wx.request({ + url: 'http://127.0.0.1:2020/scan_the_code', + data: {shuju:this.data.scan, + sno:this.data.sno + }, + method:"POST", + dataType: JSON, + enableCache: true, + enableHttp2: true, + enableQuic: true, + timeout: 0, + success: (result) => { + var p =JSON.parse(result.data) + wx.showModal({ + showCancel:false, + title: p.result[0], + success: function (res) { + if (res.confirm) { + console.log('用户点击确定') + wx.navigateBack({ + delta: 0, + }) + } + } + }) + console.log(p.result[0]) + // if(result.data=='1'){ + // console.log("成功") + // } + + }, + fail: (result) => { + console.log("失败") + }, + + }) + + + } + }) + + }, + onLoad: function() { + this.getScancode(); + }, + + onShow() { + }, + +}) \ No newline at end of file diff --git a/src/wechat_app/pages/v15_scan_the_code/v15_scan_the_code.json b/src/wechat_app/pages/v15_scan_the_code/v15_scan_the_code.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/src/wechat_app/pages/v15_scan_the_code/v15_scan_the_code.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/src/wechat_app/pages/v15_scan_the_code/v15_scan_the_code.wxml b/src/wechat_app/pages/v15_scan_the_code/v15_scan_the_code.wxml new file mode 100644 index 0000000..0f8639b --- /dev/null +++ b/src/wechat_app/pages/v15_scan_the_code/v15_scan_the_code.wxml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/src/wechat_app/pages/v15_scan_the_code/v15_scan_the_code.wxss b/src/wechat_app/pages/v15_scan_the_code/v15_scan_the_code.wxss new file mode 100644 index 0000000..f886a8e --- /dev/null +++ b/src/wechat_app/pages/v15_scan_the_code/v15_scan_the_code.wxss @@ -0,0 +1,5 @@ +/* pages/v15_scan_the_code/v15_scan_the_code.wxss */ +.intro{ + margin:30px; + text-align:center; +} \ No newline at end of file diff --git a/src/wechat_app/pages/v16_user_state/v16_user_state.js b/src/wechat_app/pages/v16_user_state/v16_user_state.js new file mode 100644 index 0000000..e9596b4 --- /dev/null +++ b/src/wechat_app/pages/v16_user_state/v16_user_state.js @@ -0,0 +1,92 @@ +// pages/v16_user_state/v16_user_state.js +var app = getApp() +Page({ + + /** + * 页面的初始数据 + */ + data: { + sno:'' + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow(){ + this.setData({ + sno:app.globalData.globalsno + }) + wx.request({ + url: 'http://127.0.0.1:2020/state', + data: {sno:this.data.sno + }, + dataType:JSON , + method: 'POST', + timeout: 0, + success: (result) => { + wx.showModal({ + showCancel:false, + title: result.data, + success: function (res) { + if (res.confirm) { + console.log('用户点击确定') + wx.navigateBack({ + delta: 0, + }) + } + } + }) + }, + }) + + } , + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/src/wechat_app/pages/v16_user_state/v16_user_state.json b/src/wechat_app/pages/v16_user_state/v16_user_state.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/src/wechat_app/pages/v16_user_state/v16_user_state.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/src/wechat_app/pages/v16_user_state/v16_user_state.wxml b/src/wechat_app/pages/v16_user_state/v16_user_state.wxml new file mode 100644 index 0000000..a5ec630 --- /dev/null +++ b/src/wechat_app/pages/v16_user_state/v16_user_state.wxml @@ -0,0 +1,2 @@ + + diff --git a/src/wechat_app/pages/v16_user_state/v16_user_state.wxss b/src/wechat_app/pages/v16_user_state/v16_user_state.wxss new file mode 100644 index 0000000..9a7d77e --- /dev/null +++ b/src/wechat_app/pages/v16_user_state/v16_user_state.wxss @@ -0,0 +1 @@ +/* pages/v16_user_state/v16_user_state.wxss */ diff --git a/src/wechat_app/pages/v19_test/v19_test.js b/src/wechat_app/pages/v19_test/v19_test.js new file mode 100644 index 0000000..bb17243 --- /dev/null +++ b/src/wechat_app/pages/v19_test/v19_test.js @@ -0,0 +1,22 @@ +// pages/fengguang/fengguang.js +Page({ + data:{ + + "items": [1,2,3,4], + number:[1,2,3,4,5,6] + + }, + + onReady:function(){ + // 页面渲染完成 + }, + onShow:function(){ + // 页面显示 + }, + onHide:function(){ + // 页面隐藏 + }, + onUnload:function(){ + // 页面关闭 + } +}) diff --git a/src/wechat_app/pages/v19_test/v19_test.json b/src/wechat_app/pages/v19_test/v19_test.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/src/wechat_app/pages/v19_test/v19_test.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/src/wechat_app/pages/v19_test/v19_test.wxml b/src/wechat_app/pages/v19_test/v19_test.wxml new file mode 100644 index 0000000..efd438b --- /dev/null +++ b/src/wechat_app/pages/v19_test/v19_test.wxml @@ -0,0 +1,4 @@ + + + + diff --git a/src/wechat_app/pages/v19_test/v19_test.wxss b/src/wechat_app/pages/v19_test/v19_test.wxss new file mode 100644 index 0000000..034dd74 --- /dev/null +++ b/src/wechat_app/pages/v19_test/v19_test.wxss @@ -0,0 +1,15 @@ +.header { + position: relative; + height:300rpx; + background: linear-gradient(to bottom, #56ccf2, #2f80ed); +} + +.bg_ware { + position: absolute; + left: 0; + bottom: -2rpx; + width: 100%; + mix-blend-mode: screen; + height: 120rpx; +} +