├── pages ├── detail │ ├── detail.json │ ├── addrRemake │ │ ├── addrRemake.json │ │ ├── addrRemake.wxss │ │ ├── addrRemake.wxml │ │ └── addrRemake.js │ ├── selectAddress │ │ ├── selectAddress.json │ │ ├── selectAddress.wxss │ │ ├── selectAddress.wxml │ │ └── selectAddress.js │ ├── confirmOrder │ │ ├── confirmOrder.json │ │ ├── confirmOrder.wxml │ │ ├── confirmOrder.wxss │ │ └── confirmOrder.js │ ├── solitaireStatistics │ │ ├── solitaireStatistics.json │ │ ├── Goodsstatistics │ │ │ ├── Goodsstatistics.json │ │ │ ├── Goodsstatistics.wxss │ │ │ ├── Goodsstatistics.wxml │ │ │ └── Goodsstatistics.js │ │ ├── solitaireStatistics.wxss │ │ ├── solitaireStatistics.wxml │ │ └── solitaireStatistics.js │ ├── detail.wxml │ └── detail.wxss ├── personal │ ├── helpCenter │ │ ├── answerPage │ │ │ ├── answerPage.json │ │ │ ├── answerPage.wxss │ │ │ ├── answerPage.js │ │ │ └── answerPage.wxml │ │ ├── helpCenter.json │ │ ├── helpCenter.wxss │ │ ├── helpCenter.wxml │ │ └── helpCenter.js │ ├── personal.json │ ├── mineJieLong │ │ ├── mineJieLong.json │ │ ├── mineJieLong.wxml │ │ ├── mineJieLong.wxss │ │ └── mineJieLong.js │ ├── address │ │ ├── address.json │ │ ├── addAddress │ │ │ ├── addAddress.json │ │ │ ├── addAddress.wxss │ │ │ ├── addAddress.wxml │ │ │ └── addAddress.js │ │ ├── address.wxml │ │ ├── address.wxss │ │ └── address.js │ ├── joinJieLong │ │ ├── joinJieLong.json │ │ ├── joinMessage │ │ │ ├── joinMessage.json │ │ │ ├── joinMessage.wxss │ │ │ ├── joinMessage.wxml │ │ │ └── joinMessage.js │ │ ├── joinJieLong.wxss │ │ ├── joinJieLong.wxml │ │ └── joinJieLong.js │ ├── userInfo │ │ ├── userInfo.json │ │ ├── userInfo.wxml │ │ ├── userInfo.wxss │ │ └── userInfo.js │ ├── mineProgramYard │ │ ├── mineProgramYard.json │ │ ├── mineProgramYard.wxml │ │ ├── mineProgramYard.wxss │ │ └── mineProgramYard.js │ ├── personal.wxml │ ├── personal.wxss │ └── personal.js ├── add │ ├── add.json │ ├── add.wxml │ ├── add.wxss │ └── add.js ├── release │ ├── release.json │ ├── copySolitaire │ │ ├── copySolitaire.json │ │ ├── copySolitaire.wxml │ │ ├── copySolitaire.js │ │ └── copySolitaire.wxss │ ├── selectAddress │ │ ├── selectAddress.json │ │ ├── selectAddress.wxml │ │ └── selectAddress.wxss │ ├── bindingPhone │ │ ├── bindingPhone.json │ │ ├── bindingPhone.wxml │ │ ├── bindingPhone.wxss │ │ └── bindingPhone.js │ ├── release.wxss │ └── release.wxml ├── logs │ ├── logs.json │ ├── logs.wxss │ ├── logs.wxml │ └── logs.js ├── comments │ ├── comments.json │ ├── systemNotice │ │ ├── systemNotice.json │ │ ├── noticeContent │ │ │ ├── noticeContent.json │ │ │ ├── noticeContent.wxml │ │ │ ├── noticeContent.wxss │ │ │ └── noticeContent.js │ │ ├── systemNotice.wxml │ │ ├── systemNotice.wxss │ │ └── systemNotice.js │ ├── comments.wxml │ ├── comments.wxss │ └── comments.js └── index │ ├── index.json │ ├── index.wxml │ ├── index.wxss │ └── index.js ├── images ├── add.png ├── home.png ├── time.png ├── addnum.png ├── delete.png ├── notice.png ├── phone.png ├── arrowdown.png ├── arrowup.png ├── delete1.png ├── deleteImg.png ├── loading.gif ├── location.png ├── mine │ ├── map.png │ ├── yard.png │ ├── concat.png │ ├── plaint.png │ ├── Category.png │ ├── comments.png │ ├── phone_bo.png │ ├── phone_zan.png │ ├── training.png │ ├── unlogin.png │ ├── contact_service.png │ ├── personal-center.png │ └── supplier-features.png ├── minusnum.png ├── norecord.png ├── position.png ├── rightShot.png ├── w-notice.png ├── navIcon │ ├── add.png │ ├── add1.png │ ├── home.png │ ├── home1.png │ ├── message.png │ ├── message1.png │ ├── personal.png │ └── personal1.png ├── downloadOrder.png └── home │ ├── qr_code.png │ └── transpond.png ├── utils ├── util.js └── dateTimePicker.js ├── app.wxss ├── project.config.json ├── app.json └── app.js /pages/detail/detail.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /pages/personal/helpCenter/answerPage/answerPage.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /pages/add/add.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText":"发布Mart" 3 | } -------------------------------------------------------------------------------- /pages/release/release.json: -------------------------------------------------------------------------------- 1 | {"navigationBarTitleText": "发布Mart"} -------------------------------------------------------------------------------- /pages/logs/logs.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "查看启动日志" 3 | } -------------------------------------------------------------------------------- /pages/comments/comments.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "消息" 3 | } -------------------------------------------------------------------------------- /pages/detail/addrRemake/addrRemake.json: -------------------------------------------------------------------------------- 1 | {"navigationBarTitleText": "取货标记"} -------------------------------------------------------------------------------- /pages/personal/personal.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "个人中心" 3 | } -------------------------------------------------------------------------------- /images/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/add.png -------------------------------------------------------------------------------- /images/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/home.png -------------------------------------------------------------------------------- /images/time.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/time.png -------------------------------------------------------------------------------- /pages/detail/selectAddress/selectAddress.json: -------------------------------------------------------------------------------- 1 | {"navigationBarTitleText": "选择取货点及时间"} -------------------------------------------------------------------------------- /pages/personal/mineJieLong/mineJieLong.json: -------------------------------------------------------------------------------- 1 | {"navigationBarTitleText": "发起的Mart"} -------------------------------------------------------------------------------- /pages/release/copySolitaire/copySolitaire.json: -------------------------------------------------------------------------------- 1 | {"navigationBarTitleText": "复制mart"} -------------------------------------------------------------------------------- /images/addnum.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/addnum.png -------------------------------------------------------------------------------- /images/delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/delete.png -------------------------------------------------------------------------------- /images/notice.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/notice.png -------------------------------------------------------------------------------- /images/phone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/phone.png -------------------------------------------------------------------------------- /pages/personal/address/address.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "取货点及时间管理" 3 | 4 | } -------------------------------------------------------------------------------- /pages/personal/helpCenter/helpCenter.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "帮助中心" 3 | } -------------------------------------------------------------------------------- /pages/release/selectAddress/selectAddress.json: -------------------------------------------------------------------------------- 1 | {"navigationBarTitleText": "选择取货地址及时间"} -------------------------------------------------------------------------------- /images/arrowdown.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/arrowdown.png -------------------------------------------------------------------------------- /images/arrowup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/arrowup.png -------------------------------------------------------------------------------- /images/delete1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/delete1.png -------------------------------------------------------------------------------- /images/deleteImg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/deleteImg.png -------------------------------------------------------------------------------- /images/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/loading.gif -------------------------------------------------------------------------------- /images/location.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/location.png -------------------------------------------------------------------------------- /images/mine/map.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/mine/map.png -------------------------------------------------------------------------------- /images/mine/yard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/mine/yard.png -------------------------------------------------------------------------------- /images/minusnum.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/minusnum.png -------------------------------------------------------------------------------- /images/norecord.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/norecord.png -------------------------------------------------------------------------------- /images/position.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/position.png -------------------------------------------------------------------------------- /images/rightShot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/rightShot.png -------------------------------------------------------------------------------- /images/w-notice.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/w-notice.png -------------------------------------------------------------------------------- /pages/comments/systemNotice/systemNotice.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "系统通知" 3 | } -------------------------------------------------------------------------------- /pages/detail/confirmOrder/confirmOrder.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "确认订单" 3 | } -------------------------------------------------------------------------------- /pages/detail/solitaireStatistics/solitaireStatistics.json: -------------------------------------------------------------------------------- 1 | {"navigationBarTitleText": "Mart统计"} -------------------------------------------------------------------------------- /pages/personal/joinJieLong/joinJieLong.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "参与的Mart" 3 | } -------------------------------------------------------------------------------- /pages/personal/userInfo/userInfo.json: -------------------------------------------------------------------------------- 1 | { 2 | 3 | "navigationBarTitleText": "个人资料管理" 4 | } -------------------------------------------------------------------------------- /pages/release/bindingPhone/bindingPhone.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "绑定手机" 3 | } -------------------------------------------------------------------------------- /images/mine/concat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/mine/concat.png -------------------------------------------------------------------------------- /images/mine/plaint.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/mine/plaint.png -------------------------------------------------------------------------------- /images/navIcon/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/navIcon/add.png -------------------------------------------------------------------------------- /images/downloadOrder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/downloadOrder.png -------------------------------------------------------------------------------- /images/home/qr_code.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/home/qr_code.png -------------------------------------------------------------------------------- /images/home/transpond.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/home/transpond.png -------------------------------------------------------------------------------- /images/mine/Category.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/mine/Category.png -------------------------------------------------------------------------------- /images/mine/comments.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/mine/comments.png -------------------------------------------------------------------------------- /images/mine/phone_bo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/mine/phone_bo.png -------------------------------------------------------------------------------- /images/mine/phone_zan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/mine/phone_zan.png -------------------------------------------------------------------------------- /images/mine/training.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/mine/training.png -------------------------------------------------------------------------------- /images/mine/unlogin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/mine/unlogin.png -------------------------------------------------------------------------------- /images/navIcon/add1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/navIcon/add1.png -------------------------------------------------------------------------------- /images/navIcon/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/navIcon/home.png -------------------------------------------------------------------------------- /images/navIcon/home1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/navIcon/home1.png -------------------------------------------------------------------------------- /pages/personal/address/addAddress/addAddress.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "新建取货点及时间" 3 | } -------------------------------------------------------------------------------- /images/navIcon/message.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/navIcon/message.png -------------------------------------------------------------------------------- /images/navIcon/message1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/navIcon/message1.png -------------------------------------------------------------------------------- /images/navIcon/personal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/navIcon/personal.png -------------------------------------------------------------------------------- /pages/comments/systemNotice/noticeContent/noticeContent.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "信息内容" 3 | } -------------------------------------------------------------------------------- /pages/detail/solitaireStatistics/Goodsstatistics/Goodsstatistics.json: -------------------------------------------------------------------------------- 1 | {"navigationBarTitleText": "mart统计"} -------------------------------------------------------------------------------- /images/navIcon/personal1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/navIcon/personal1.png -------------------------------------------------------------------------------- /images/mine/contact_service.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/mine/contact_service.png -------------------------------------------------------------------------------- /images/mine/personal-center.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/mine/personal-center.png -------------------------------------------------------------------------------- /images/mine/supplier-features.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohai-dev/Jielong/HEAD/images/mine/supplier-features.png -------------------------------------------------------------------------------- /pages/personal/joinJieLong/joinMessage/joinMessage.json: -------------------------------------------------------------------------------- 1 | {"navigationBarTitleText": "参与信息", 2 | "backgroundColor": "#EEE"} -------------------------------------------------------------------------------- /pages/personal/mineProgramYard/mineProgramYard.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "扫码分销", 3 | "backgroundColor": "#EEEEEE" 4 | } -------------------------------------------------------------------------------- /pages/index/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "enablePullDownRefresh": true, 3 | "backgroundColor": "#fff", 4 | "backgroundTextStyle": "dark" 5 | } -------------------------------------------------------------------------------- /pages/logs/logs.wxss: -------------------------------------------------------------------------------- 1 | .log-list { 2 | display: flex; 3 | flex-direction: column; 4 | padding: 40rpx; 5 | } 6 | .log-item { 7 | margin: 10rpx; 8 | } 9 | -------------------------------------------------------------------------------- /pages/logs/logs.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {{index + 1}}. {{log}} 5 | 6 | 7 | -------------------------------------------------------------------------------- /pages/personal/joinJieLong/joinJieLong.wxss: -------------------------------------------------------------------------------- 1 | /* pages/personal/joinJieLong/joinJieLong.wxss */ 2 | @import "../mineJieLong/mineJieLong.wxss"; 3 | 4 | 5 | .midCont{ 6 | margin: 25rpx 0; 7 | } 8 | .left text{ 9 | max-width: 550rpx; 10 | display: inline-block; 11 | } -------------------------------------------------------------------------------- /pages/add/add.wxml: -------------------------------------------------------------------------------- 1 | 2 | 9 | -------------------------------------------------------------------------------- /pages/logs/logs.js: -------------------------------------------------------------------------------- 1 | //logs.js 2 | const util = require('../../utils/util.js') 3 | 4 | Page({ 5 | data: { 6 | logs: [] 7 | }, 8 | onLoad: function () { 9 | this.setData({ 10 | logs: (wx.getStorageSync('logs') || []).map(log => { 11 | return util.formatTime(new Date(log)) 12 | }) 13 | }) 14 | } 15 | }) 16 | -------------------------------------------------------------------------------- /utils/util.js: -------------------------------------------------------------------------------- 1 | const formatTime = date => { 2 | const year = date.getFullYear() 3 | const month = date.getMonth() + 1 4 | const day = date.getDate() 5 | const hour = date.getHours() 6 | const minute = date.getMinutes() 7 | const second = date.getSeconds() 8 | 9 | return [year, month, day].map(formatNumber).join('/') + ' ' + [hour, minute, second].map(formatNumber).join(':') 10 | } 11 | 12 | const formatNumber = n => { 13 | n = n.toString() 14 | return n[1] ? n : '0' + n 15 | } 16 | 17 | module.exports = { 18 | formatTime: formatTime 19 | } 20 | -------------------------------------------------------------------------------- /pages/personal/address/address.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {{item.detail}} 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /pages/detail/selectAddress/selectAddress.wxss: -------------------------------------------------------------------------------- 1 | /* pages/detail/selectAddress/selectAddress.wxss */ 2 | @import "../../release/selectAddress/selectAddress.wxss"; 3 | 4 | radio-group{ 5 | padding-bottom: 90rpx; 6 | } 7 | .pos_bottom{ 8 | position: fixed; 9 | height: 90rpx; 10 | bottom: 0; 11 | width: 100%; 12 | } 13 | .pos_bottom button{ 14 | display: inline-block; 15 | background-color: rgb(44, 187, 107); 16 | color: white; 17 | border-radius: 0; 18 | width: 100%; 19 | } 20 | .section{ 21 | min-height: 80rpx; 22 | height: auto; 23 | } 24 | .claimTime{ 25 | display: block; 26 | width: 100%; 27 | font-size: 26rpx; 28 | } -------------------------------------------------------------------------------- /pages/comments/systemNotice/systemNotice.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | {{item.title}} 7 | {{item.createTimeStr}} 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /pages/comments/comments.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 12 | 13 | -------------------------------------------------------------------------------- /pages/personal/mineProgramYard/mineProgramYard.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 我的专属二维码 5 | 6 | 7 | 8 | 9 | 1.长按保存二维码到相册; 10 | 2.点击预览二维码,长按即可分享; 11 | 3.长按识别或者微信扫一扫二维码进入小程序; 12 | 13 | 14 | 15 | 其他用户通过自己分享的二维码注册小程序后下单,自己都会得到提成; 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /pages/detail/selectAddress/selectAddress.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /app.wxss: -------------------------------------------------------------------------------- 1 | 2 | /* 基础样式 */ 3 | view,scroll-view,swiper,swiper-item,icon,text,progress,button,checkbox-group,checkbox,form,input,label,picker,radio-group,radio,slider,switch,action-sheet,action-sheet-item,action-sheet-cancel,modal,toast,loading,navigator,audio,image,video,map,canvas { 4 | -webkit-box-sizing: border-box; 5 | -moz-box-sizing: border-box; 6 | box-sizing: border-box; 7 | } 8 | page { 9 | height: 100%; 10 | font-family: "微软雅黑",-apple-system-font,Helvetica Neue,Helvetica,sans-serif; 11 | } 12 | checkbox-group,radio-group{ 13 | display:block; 14 | } 15 | :before,:after,::before,::after{ 16 | -webkit-box-sizing: border-box; 17 | -moz-box-sizing: border-box; 18 | box-sizing: border-box; 19 | } -------------------------------------------------------------------------------- /pages/comments/systemNotice/noticeContent/noticeContent.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | {{contentList.title}} 4 | 5 | {{contentList.message}} 6 | 7 | 8 | {{contentList.createTimeStr}} 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /pages/personal/helpCenter/helpCenter.wxss: -------------------------------------------------------------------------------- 1 | /* pages/personal/helpCenter/helpCenter.wxss */ 2 | page{ 3 | width: 100%; 4 | height: 100%; 5 | background-color: #EEEEEE; /*灰色背景*/ 6 | font:30rpx "微软雅黑"; 7 | } 8 | .content{ 9 | width: 100%; 10 | background-color: white; 11 | border-top:1rpx solid gainsboro; 12 | height: 90rpx; 13 | } 14 | .mineNavTo{ 15 | height: 100%; 16 | width: 100%; 17 | display: flex; 18 | align-items: center; 19 | justify-content:space-between; 20 | padding:0 30rpx; 21 | } 22 | .mineNavTohover{ 23 | background: rgba(238 , 238, 238, 0.4); 24 | } 25 | .font-style{ 26 | display: flex; 27 | font-size: 30rpx; 28 | color: #666; 29 | } 30 | .rightShotImg{ 31 | width: 12rpx; 32 | height: 24rpx; 33 | } -------------------------------------------------------------------------------- /project.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "项目配置文件。", 3 | "setting": { 4 | "urlCheck": true, 5 | "es6": false, 6 | "postcss": true, 7 | "minified": true, 8 | "newFeature": true 9 | }, 10 | "compileType": "miniprogram", 11 | "libVersion": "1.9.94", 12 | "appid": "wx902b90dd5d20c4e0", 13 | "projectname": "%E5%85%B1%E4%BA%AB%E6%8E%A5%E9%BE%99final", 14 | "isGameTourist": false, 15 | "condition": { 16 | "search": { 17 | "current": -1, 18 | "list": [] 19 | }, 20 | "conversation": { 21 | "current": -1, 22 | "list": [] 23 | }, 24 | "plugin": { 25 | "current": -1, 26 | "list": [] 27 | }, 28 | "game": { 29 | "currentL": -1, 30 | "list": [] 31 | }, 32 | "miniprogram": { 33 | "current": -1, 34 | "list": [] 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /pages/release/bindingPhone/bindingPhone.wxml: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 | 5 | 6 | *初次发布mart活动,需要绑定手机 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
-------------------------------------------------------------------------------- /pages/comments/comments.wxss: -------------------------------------------------------------------------------- 1 | /* pages/comments/comments.wxss */ 2 | .listitem01{ 3 | background-color: rgb(255, 255, 255); 4 | margin-bottom: 37.5rpx; 5 | } 6 | button::after{ 7 | border: none; 8 | border-radius:0px!important; 9 | } 10 | .listitem-navigator{ 11 | display: flex; 12 | align-items: center; 13 | flex-direction: row; 14 | justify-content: flex-start; 15 | padding: 2% 0rpx 2% 40rpx; 16 | border-top: 1px solid rgb(237, 237, 237); 17 | border-bottom: 1px solid rgb(237, 237, 237); 18 | } 19 | .cont_btn{ 20 | text-align: left; 21 | height: auto; 22 | background-color:#fff; 23 | border-radius:0px!important; 24 | position: static; 25 | } 26 | .navigator-hover{ 27 | background: #eee; 28 | } 29 | .list-image{ 30 | width: 90rpx; 31 | height: 90rpx; 32 | } 33 | .text_note{ 34 | margin-left: 15rpx; 35 | font-size: 28rpx; 36 | color: #333; 37 | } -------------------------------------------------------------------------------- /pages/personal/mineProgramYard/mineProgramYard.wxss: -------------------------------------------------------------------------------- 1 | /* pages/personal/mineProgramYard/miniProgramYard.wxss */ 2 | .yardPage{ 3 | height: 100%; 4 | background-color: #EEE; 5 | padding: 50rpx; 6 | } 7 | .yardPage>.cont{ 8 | height: 80%; 9 | width: 650rpx; 10 | background-color: #fff; 11 | display: flex; 12 | flex-direction: column; 13 | justify-content: space-around; 14 | align-content: space-around; 15 | text-align: center; 16 | 17 | } 18 | .yard_title{ 19 | font-size: 34rpx; 20 | color: #333; 21 | text-shadow: #ccc 10rpx 10rpx 4rpx; 22 | } 23 | .yard_img{ 24 | width: 400rpx; 25 | height: 400rpx; 26 | margin: 0 auto; 27 | } 28 | .yard_footer{ 29 | display: flex; 30 | flex-direction: column; 31 | justify-content: center; 32 | font-size: 28rpx; 33 | color: #666; 34 | text-align: left; 35 | padding: 0 50rpx; 36 | } 37 | .yard_notice{ 38 | 39 | color: red; 40 | } -------------------------------------------------------------------------------- /pages/detail/solitaireStatistics/Goodsstatistics/Goodsstatistics.wxss: -------------------------------------------------------------------------------- 1 | /* pages/detail/solitaireStatistics/Goodsstatixtics/Goodsstatistics.wxss */ 2 | @import "../../../personal/joinJieLong/joinMessage/joinMessage"; 3 | 4 | .headContTop{ 5 | display: inline-block; 6 | } 7 | .goodsCont{ 8 | align-items: center; 9 | } 10 | .goodsCont_left text{ 11 | display: block; 12 | } 13 | .goodsCl_title{ 14 | font-size: 34rpx; 15 | color: #333; 16 | } 17 | .allPirce{ 18 | justify-content: flex-start; 19 | border-bottom:1rpx solid #ECECEC; 20 | } 21 | .allPe{ 22 | margin-right: 20rpx; 23 | line-height: 40rpx; 24 | } 25 | .headImg{ 26 | width:40rpx; 27 | height:40rpx; 28 | border-radius: 50%; 29 | margin-right: 10rpx; 30 | } 31 | .footAll{ 32 | margin-top:30rpx; 33 | background-color: #fff; 34 | padding:20rpx 30rpx; 35 | display: flex; 36 | justify-content: flex-end; 37 | color: #666; 38 | } -------------------------------------------------------------------------------- /pages/personal/helpCenter/helpCenter.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {{item.staticTitle}} 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | {{item.title}} 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /pages/release/bindingPhone/bindingPhone.wxss: -------------------------------------------------------------------------------- 1 | /* pages/release/bindingPhone/bindingPhone.wxss */ 2 | .container{ 3 | width:100%; 4 | height:100%; 5 | background:#F0EFF5; 6 | } 7 | .columnView{ 8 | width: 100%; 9 | margin-bottom: 3rpx; 10 | } 11 | .promptView{ 12 | height:60rpx; 13 | display:flex; 14 | align-items:center; 15 | padding-left:30rpx; 16 | } 17 | .block{ 18 | height: 85rpx; 19 | background-color: #FFFFFF; 20 | display: flex; 21 | flex-direction: row; 22 | align-items:center; 23 | padding-left:85rpx; 24 | } 25 | label{ 26 | font-size: 25rpx; 27 | color: #666; 28 | } 29 | input{ 30 | color: #666; 31 | font-size: 25rpx; 32 | margin-left: 20rpx; 33 | width: 80%; 34 | } 35 | .prompt{ 36 | color: #1AAD19; 37 | font-size: 25rpx 38 | } 39 | button{ 40 | font-size: 35rpx; 41 | width: 95%; 42 | margin-top: 50rpx; 43 | } 44 | .opacity{ 45 | opacity: 0.8; 46 | } -------------------------------------------------------------------------------- /pages/personal/helpCenter/answerPage/answerPage.wxss: -------------------------------------------------------------------------------- 1 | /* pages/personal/helpCenter/answerPage/answerPage.wxss */ 2 | page{ 3 | width: 100%; 4 | height: 100%; 5 | /* background-color: #EEEEEE;灰色背景 */ 6 | font: 26rpx; 7 | } 8 | .content{ 9 | width:100%; 10 | background-color: white; 11 | border-top: 1rpx solid gainsboro; 12 | display: flex; 13 | flex-direction: column; 14 | padding:0 30rpx; 15 | } 16 | /* .line{ 17 | border-bottom: 1rpx solid gainsboro; 18 | } */ 19 | .ques-style{ 20 | min-height: 60rpx; 21 | font-size: 35rpx; 22 | font-weight: bold; 23 | padding:20rpx 0; 24 | border-bottom: 1rpx solid gainsboro; 25 | color:#666; 26 | } 27 | .answer-style{ 28 | padding:20rpx 0; 29 | font-size:30rpx; 30 | color:#999; 31 | } 32 | .palintImg{ 33 | width: 30rpx; 34 | height: 28rpx 35 | } 36 | .contact_service{ 37 | width: 300rpx; 38 | height: 300rpx; 39 | } 40 | .fontSize-b{ 41 | color: #333; 42 | font-weight: 600; 43 | } -------------------------------------------------------------------------------- /pages/personal/userInfo/userInfo.wxml: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | -------------------------------------------------------------------------------- /pages/comments/systemNotice/noticeContent/noticeContent.wxss: -------------------------------------------------------------------------------- 1 | /* pages/comments/systemNotice/noticeContent/noticeContent.wxss */ 2 | page{ 3 | /* background-color: #EEEEEE; */ 4 | background-color: white; 5 | font:33rpx "微软雅黑"; 6 | } 7 | .content{ 8 | border-top: 1rpx solid gainsboro; 9 | padding:20rpx 30rpx; 10 | } 11 | .header-style{ 12 | font-size: 40rpx; 13 | color: #333; 14 | font-weight: bold; 15 | } 16 | .content-header{ 17 | display: flex; 18 | flex-direction: column; 19 | } 20 | .time-style{ 21 | color:#999; 22 | margin:10rpx 0; 23 | font:30rpx "微软雅黑"; 24 | text-align: right; 25 | } 26 | .concrete{ 27 | display: flex; 28 | flex-direction: column; 29 | align-items:center; 30 | } 31 | .concrete-style{ 32 | color: #666; 33 | padding-bottom: 1rpx; 34 | margin: 20rpx 0; 35 | } 36 | contentBold{ 37 | font: 600; 38 | } 39 | .isIndent{ 40 | text-indent: 2em; 41 | } 42 | .image-style{ 43 | width: 100%; 44 | margin:-12rpx auto; 45 | margin-bottom:1rpx; 46 | } 47 | .noImage{ 48 | display: none; 49 | } 50 | -------------------------------------------------------------------------------- /pages/comments/systemNotice/systemNotice.wxss: -------------------------------------------------------------------------------- 1 | /* pages/comments/systemNotice/systemNotice.wxss */ 2 | page{ 3 | background:#F0EFF5; 4 | } 5 | .body{ 6 | width: 100%; 7 | padding: 0 20rpx 20rpx; 8 | display:flex; 9 | flex-direction:column-reverse; 10 | } 11 | .noticelist{ 12 | width:100%; 13 | display:flex; 14 | flex-direction:column; 15 | margin-top: 15rpx; 16 | background:white; 17 | border:1px solid #ddd; 18 | border-radius:10rpx; 19 | padding:20rpx; 20 | position:relative; 21 | } 22 | .mineNavTohover{ 23 | background: rgba(238 , 238, 238, 0.1); 24 | } 25 | .time{ 26 | color:#ddd; 27 | font-size:22rpx; 28 | display:flex; 29 | justify-content:flex-end; 30 | align-items:center; 31 | } 32 | .isShow{ 33 | position:absolute; 34 | top: 0; 35 | right: 8rpx; 36 | color:red; 37 | font-size:24rpx 38 | } 39 | .title{ 40 | color:#666; 41 | font-size:30rpx; 42 | } 43 | .description{ 44 | color:#999; 45 | font-size:25rpx; 46 | margin:15rpx 0; 47 | } 48 | .img{ 49 | width: 100%; 50 | height: 240rpx; 51 | } -------------------------------------------------------------------------------- /pages/personal/address/address.wxss: -------------------------------------------------------------------------------- 1 | /* pages/personal/address/address.wxss */ 2 | page{ 3 | width: 100%; 4 | height: 100%; 5 | background-color: #EEEEEE; /*灰色背景*/ 6 | font:30rpx "微软雅黑"; 7 | } 8 | .section{ 9 | width: 100%; 10 | background-color: white; 11 | height: 80rpx; 12 | border-top:1rpx solid gainsboro; 13 | display: flex; 14 | align-items: center; 15 | } 16 | .section:nth-of-type(1){ 17 | border-top: 0; 18 | margin-top: 30rpx; 19 | } 20 | .section:nth-last-of-type(1){ 21 | margin-bottom: 90rpx; 22 | } 23 | .addrDetail{ 24 | width: 680rpx; 25 | margin-left: 30rpx; 26 | } 27 | .showOL{ 28 | text-overflow: ellipsis; 29 | display: -webkit-box; 30 | -webkit-line-clamp:1; 31 | -webkit-box-orient: vertical; 32 | overflow: hidden; 33 | } 34 | .rightShotImg{ 35 | width: 12rpx; 36 | height: 24rpx; 37 | } 38 | 39 | .pos_bot{ 40 | position: fixed; 41 | bottom: 0; 42 | width: 100%; 43 | } 44 | .pos_bot button{ 45 | height: 90rpx; 46 | background-color: rgb(44, 187, 107); 47 | color: white; 48 | border-radius: 0; 49 | } 50 | -------------------------------------------------------------------------------- /pages/detail/solitaireStatistics/solitaireStatistics.wxss: -------------------------------------------------------------------------------- 1 | /* pages/detail/solitaireStatistics/solitaireStatistics.wxss */ 2 | @import "../../personal/joinJieLong/joinMessage/joinMessage"; 3 | 4 | .headContTop{ 5 | justify-content: space-between; 6 | } 7 | .showStartDate,.showEndDate{ 8 | display: inline-block; 9 | width: 250rpx; 10 | height: 50rpx; 11 | border: 1rpx solid #999; 12 | border-radius: 10rpx; 13 | line-height: 50rpx; 14 | padding-left: 10rpx; 15 | } 16 | .ts_text{ 17 | line-height: 50rpx; 18 | vertical-align: top; 19 | } 20 | .ts_search{ 21 | color: #2ABB6D; 22 | } 23 | .goodsCont{ 24 | align-items: center; 25 | } 26 | .goodsCont_left text{ 27 | display: block; 28 | } 29 | .goodsCl_title{ 30 | font-size: 34rpx; 31 | color: #333; 32 | } 33 | .rightShotImg{ 34 | width:24rpx; 35 | height:48rpx; 36 | } 37 | .allPirce{ 38 | justify-content: flex-start; 39 | } 40 | .allPe{ 41 | margin-right: 30rpx; 42 | line-height: 40rpx; 43 | } 44 | .textCen{ 45 | width: 100%; 46 | text-align: center; 47 | margin-bottom: 90rpx; 48 | margin-top: 40rpx; 49 | color: #333; 50 | background-color: #eee; 51 | } -------------------------------------------------------------------------------- /pages/personal/mineJieLong/mineJieLong.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | {{item.topic}} 4 | 5 | 6 | Mart状态: {{item.status == 1 ? "进行中" : item.status == 2 ? "Mart结束" : item.status == 3 ? "活动提前终止" : "已被删除"}} 7 | 8 | 9 | Mart类型:自发Mart 10 | 11 | 12 | 13 | 14 | 是否自提: 15 | 16 | 17 | 创建时间:{{item.createTimeStr}} 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | {{remind}} 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /pages/personal/userInfo/userInfo.wxss: -------------------------------------------------------------------------------- 1 | /* pages/personal/userInfo/userInfo.wxss */ 2 | .body{ 3 | width: 100%; 4 | height: 100%; 5 | display: flex; 6 | flex-direction: column; 7 | background-color: #EEEEEE; /*灰色背景*/ 8 | } 9 | .block{ 10 | background-color: #FFFFFF; 11 | margin-top: 15rpx; 12 | display: flex; 13 | flex-direction: row; 14 | align-items:center; 15 | padding-left: 30rpx; 16 | padding-top: 15rpx; 17 | padding-bottom: 15rpx; 18 | } 19 | label{ 20 | font-size: 30rpx; 21 | color: #666; 22 | } 23 | input{ 24 | font-size: 25rpx; 25 | margin-left: 20rpx; 26 | width: 80%; 27 | } 28 | 29 | .address{ 30 | background-color: #FFFFFF; 31 | margin-top: 15rpx; 32 | display: flex; 33 | flex-direction: column; 34 | padding-left: 30rpx; 35 | padding-top: 15rpx; 36 | padding-bottom: 15rpx; 37 | } 38 | textarea{ 39 | font-size: 25rpx; 40 | margin-top: 35rpx; 41 | width: 90%; 42 | height: 100rpx; 43 | padding-left:10rpx; 44 | } 45 | button{ 46 | font-size: 35rpx; 47 | width: 90%; 48 | margin-top: 50rpx; 49 | background-color:rgb(44, 187, 107); 50 | color: white; 51 | } 52 | .opacity{ 53 | opacity: 0.8; 54 | } -------------------------------------------------------------------------------- /pages/add/add.wxss: -------------------------------------------------------------------------------- 1 | /* pages/add/add.wxss */ 2 | button::after{ 3 | border: none; 4 | border-radius:0px!important; 5 | } 6 | .cont_btn{ 7 | padding: 0; 8 | text-align: left; 9 | line-height: 1.4; 10 | height: auto; 11 | background-color:#eee; 12 | border: 0; 13 | } 14 | .release{ 15 | width: 100%; 16 | height: 100%; 17 | background: #eee; 18 | position:fixed; 19 | } 20 | .from-jl{ 21 | background:linear-gradient(to right, #03F1FE, #1CDAFE , #25D2FD , #42B8FE); 22 | width:90%; 23 | height:260rpx; 24 | margin:100rpx auto 0; 25 | border-radius:10rpx; 26 | display:flex; 27 | flex-direction:column; 28 | justify-content: center; 29 | align-items: center; 30 | padding-top: 20rpx; 31 | } 32 | .title{ 33 | color: white; 34 | font-size: 35rpx; 35 | display: block; 36 | letter-spacing:5rpx; 37 | } 38 | .describe{ 39 | color: white; 40 | font-size: 28rpx; 41 | display: block; 42 | margin:25rpx 0 0; 43 | } 44 | .btn{ 45 | color: #33CCFF; 46 | display: block; 47 | font-size: 30rpx; 48 | width: 400rpx; 49 | height: 80rpx; 50 | background: white; 51 | text-align:center; 52 | line-height:80rpx; 53 | border-radius:40rpx; 54 | } -------------------------------------------------------------------------------- /pages/detail/confirmOrder/confirmOrder.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {{item.goodsname}} 6 | +{{item.sum}} 7 | ${{item.money}} 8 | 9 | 10 | 合计:${{total}} 11 | 12 | 姓名 13 | 14 | 15 | 16 | 手机 17 | 18 | 19 | 20 | 取货点及时间: 21 | {{addressName}} 22 | 23 | 24 | 备注: 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /pages/personal/joinJieLong/joinJieLong.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | {{item.jielongTopic}} 7 | 8 | 9 | {{item.orderGoods[0].goods.isSetGroup == 1 ? "限制Mart" : "普通Mart" }} 10 | 11 | 12 | 13 | 14 | 参与时间:{{item.createdAt}} 15 | 16 | 17 | {{item.state == 0 && item.orderGoods[0].groupFlg == 1 ? "成团成功" : item.state == 0 && item.orderGoods[0].groupFlg == 2 ? "成团失败" : item.state == 0 ? "待成团成功" : item.state == 1 ? "待支付" : item.state == 2 ? "待提货" : item.state == 3 ? "提货成功" : item.state == 4 ? "mart取消" : "其他"}} 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | {{remind}} 29 | 30 | 31 | -------------------------------------------------------------------------------- /pages/personal/mineJieLong/mineJieLong.wxss: -------------------------------------------------------------------------------- 1 | /* pages/personal/mineJieLong/mineJieLong.wxss */ 2 | page{ 3 | background-color: #EEE; 4 | } 5 | .JLPage{ 6 | font-family: '微软雅黑','PingFang SC', 'Helvetica Neue', Helvetica, 'Droid Sans Fallback', 'Microsoft Yahei', sans-serif; 7 | background: #fff; 8 | overflow: hidden; 9 | color:#506070; 10 | } 11 | .content{ 12 | min-height: 180rpx; 13 | border-top: 1px solid #ECECEC; 14 | padding: 20rpx 30rpx; 15 | } 16 | .headCont{ 17 | color: #203040; 18 | font-size: 32rpx; 19 | margin-bottom: 10rpx; 20 | } 21 | .midCont{ 22 | line-height: 26rpx; 23 | margin-bottom: 15rpx; 24 | } 25 | .midCont view{ 26 | display: inline-block; 27 | font-size: 26rpx; 28 | } 29 | .midCont .right{ 30 | float: right; 31 | } 32 | .blue{ 33 | color: #6495ED; 34 | } 35 | .red{ 36 | color: red; 37 | } 38 | .green{ 39 | color: #2CBB6B; 40 | } 41 | .yellow{ 42 | color: #FCA81C; 43 | } 44 | .Sienna{ 45 | color: #008080; 46 | } 47 | .body{ 48 | width: 100%; 49 | height: 100%; 50 | background-color: #EEEEEE; /*灰色背景*/ 51 | } 52 | .no-record{ 53 | height:40%; 54 | display:flex; 55 | justify-content:center; 56 | align-items:center; 57 | flex-direction:column; 58 | } 59 | .recordimg{ 60 | width:120rpx; 61 | height:120rpx; 62 | } 63 | .news{ 64 | color:#bfbfbf; 65 | font:25rpx "微软雅黑"; 66 | margin-top:15rpx; 67 | } -------------------------------------------------------------------------------- /pages/detail/addrRemake/addrRemake.wxss: -------------------------------------------------------------------------------- 1 | /* pages/detail/addrRemake/addrRemake.wxss */ 2 | @import "../../personal/joinJieLong/joinMessage/joinMessage"; 3 | .allHead{ 4 | justify-content: flex-start; 5 | border-bottom:1rpx solid #ECECEC; 6 | } 7 | .fStart{ 8 | justify-content: flex-start; 9 | } 10 | .fEnd{ 11 | justify-content: flex-end; 12 | } 13 | .avatarUrl{ 14 | height: 40rpx; 15 | width: 40rpx; 16 | margin-left: 30rpx; 17 | } 18 | .ib{ 19 | display: inline-block; 20 | } 21 | .navTGCont{ 22 | display: flex; 23 | align-items: center; 24 | width: 540rpx; 25 | } 26 | .oneGoods_hr{ 27 | padding: 20rpx 0; 28 | margin: 0 30rpx; 29 | } 30 | .m_right{ 31 | margin-right: 30rpx; 32 | } 33 | .textCen{ 34 | width: 100%; 35 | text-align: center; 36 | margin-bottom: 130rpx; 37 | margin-top: 40rpx; 38 | color: #333; 39 | } 40 | .pos_bot{ 41 | position: fixed; 42 | bottom: 0; 43 | width: 100%; 44 | } 45 | .pos_bot button{ 46 | height: 90rpx; 47 | background-color: rgb(44, 187, 107); 48 | color: white; 49 | border-radius: 0; 50 | } 51 | 52 | .downloadOrder{ 53 | width: 570rpx; 54 | display: flex; 55 | justify-content: flex-end; 56 | color: #0d9c19; 57 | } 58 | .downloadOrderImg{ 59 | width: 48rpx; 60 | height: 46rpx; 61 | } 62 | .downloadOrder text{ 63 | line-height: 48rpx; 64 | } 65 | .addrAndTime{ 66 | color: #111; 67 | font: 32rpx; 68 | } -------------------------------------------------------------------------------- /pages/personal/address/addAddress/addAddress.wxss: -------------------------------------------------------------------------------- 1 | /* pages/personal/address/addAddress/addAddress.wxss */ 2 | page{ 3 | width: 100%; 4 | height: 100%; 5 | background-color: #EEEEEE; /*灰色背景*/ 6 | font:30rpx "微软雅黑"; 7 | } 8 | .section{ 9 | width: 100%; 10 | background-color: white; 11 | border-bottom:1rpx solid gainsboro; 12 | } 13 | textarea{ 14 | box-sizing: content-box; 15 | padding: 30rpx 60rpx 0 60rpx; 16 | margin-top: 30rpx; 17 | } 18 | .getAddress{ 19 | border-top:1rpx solid gainsboro; 20 | height: 100rpx; 21 | display: flex; 22 | align-items: center; 23 | margin-bottom: 20rpx; 24 | } 25 | .addrIcon{ 26 | height: 32rpx; 27 | width: 32rpx; 28 | margin-left: 30rpx; 29 | } 30 | .addrName{ 31 | width: calc(100% - 130rpx); 32 | margin: 0 10rpx; 33 | text-overflow: ellipsis; 34 | display: -webkit-box; 35 | -webkit-box-orient: vertical; 36 | -webkit-line-clamp: 1; 37 | overflow: hidden; 38 | } 39 | .subBtn,.botBtn{ 40 | background-color: rgb(44, 187, 107); 41 | color: white; 42 | width: calc(100% - 60rpx); 43 | margin-left: 30rpx; 44 | } 45 | .botBtn{ 46 | margin-top: 20rpx; 47 | background-color: rgb(241, 97, 118); 48 | } 49 | .rightShotImg{ 50 | width: 12rpx; 51 | height: 24rpx; 52 | } 53 | .btnCont{ 54 | padding-top: 20rpx; 55 | } 56 | 57 | .timeCon{ 58 | height: 100rpx; 59 | display: flex; 60 | justify-content: flex-start; 61 | align-items: center; 62 | padding-left: 30rpx; 63 | } 64 | .claimTime{ 65 | width: 400rpx; 66 | } -------------------------------------------------------------------------------- /pages/detail/confirmOrder/confirmOrder.wxss: -------------------------------------------------------------------------------- 1 | /* pages/detail/confirmOrder/confirmOrder.wxss */ 2 | .body{ 3 | width: 100%; 4 | min-height: 100%; 5 | background: #F0EFF5; 6 | } 7 | .goodslist,.goodssum,.userinfo,.address,.memobox{ 8 | background:white; 9 | border-top:1px solid #F0EFF5; 10 | min-height: 80rpx; 11 | display:flex; 12 | align-items:center; 13 | padding:0 30rpx; 14 | } 15 | .goodsname,.goodsnum,.goodsprice{ 16 | font:25rpx "微软雅黑"; 17 | color:#666; 18 | } 19 | .goodsname{ 20 | flex: 2.5; 21 | } 22 | .goodsnum{ 23 | flex: 1 24 | } 25 | .goodsprice{ 26 | flex: 1; 27 | text-align: right; 28 | } 29 | .goodssum{ 30 | font:28rpx "微软雅黑"; 31 | color:#666; 32 | justify-content:flex-end; 33 | margin-bottom:20rpx; 34 | } 35 | .redfont{ 36 | color: red; 37 | } 38 | .userinfo,.address,.memobox{ 39 | min-height: 100rpx; 40 | font:28rpx "微软雅黑"; 41 | color:#333; 42 | } 43 | .addtitle{ 44 | flex: 2.5; 45 | } 46 | .addtext{ 47 | flex: 6; 48 | padding:10rpx 0; 49 | } 50 | input{ 51 | margin-left: 30rpx; 52 | width:500rpx; 53 | } 54 | .marbottom{ 55 | margin-bottom:20rpx; 56 | } 57 | .memobox{ 58 | height: 150rpx; 59 | align-items:flex-start; 60 | padding:30rpx; 61 | } 62 | .memotitle{ 63 | flex:1 64 | } 65 | .memo{ 66 | height: 100%; 67 | flex: 7 68 | } 69 | button{ 70 | width:95%; 71 | margin-top:20rpx; 72 | font-size:35rpx; 73 | border: none; 74 | background-color:rgb(44, 187, 107); 75 | color: white; 76 | } 77 | .opacity{ 78 | opacity: 0.8; 79 | } -------------------------------------------------------------------------------- /pages/detail/solitaireStatistics/Goodsstatistics/Goodsstatistics.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 统计时间:{{data.startTime}} 至 {{data.endTime}} 7 | 8 | 9 | 商品名字:{{data.goods.name}} 10 | 11 | 12 | 13 | 14 | 15 | 16 | NO.{{index + 1}} 17 | 18 | {{item.userInfo.nickName}} 19 | 20 | 21 | 22 | 23 | {{item.userInfo.name +" "+ item.userInfo.phoneNumber}} 24 | 取货点:{{item.userAddress.detail}} 25 | 取货时间:{{item.userAddress.claimTime}} 26 | 购买数量:{{item.goodsSum}} 27 | 备注:{{item.remark}} 28 | 29 | 30 | 31 | 32 | 33 | 合计:{{data.sellSum}}个 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /pages/release/copySolitaire/copySolitaire.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | {{item.topic}} 10 | 11 | 12 | 13 | {{item.createTimeStr}} 14 | 15 | {{item.browseSum}}人浏览 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | {{item.addressName}} 26 | 27 | 28 | 29 | 30 | 31 | 32 | 已无更多了... 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /pages/personal/address/addAddress/addAddress.wxml: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 | 40 | 41 | 46 | 47 | -------------------------------------------------------------------------------- /pages/comments/systemNotice/systemNotice.js: -------------------------------------------------------------------------------- 1 | // pages/comments/systemNotice/systemNotice.js 2 | Page({ 3 | 4 | /** 5 | * 页面的初始数据 6 | */ 7 | data: { 8 | noticeList:[] 9 | }, 10 | 11 | /** 12 | * 生命周期函数--监听页面加载 13 | */ 14 | onLoad: function (options) { 15 | 16 | }, 17 | 18 | /** 19 | * 生命周期函数--监听页面初次渲染完成 20 | */ 21 | onReady: function () { 22 | 23 | }, 24 | 25 | /** 26 | * 生命周期函数--监听页面显示 27 | */ 28 | onShow: function () { 29 | //显示系统通知 30 | var app = getApp(); 31 | var _this = this; 32 | var userId = wx.getStorageSync("userId"); 33 | wx.request({ 34 | url: app.globalData.domain + '/userMessage/selectByUserId', 35 | data: { 36 | userId: userId 37 | }, 38 | header: { 39 | 'content-type': 'application/json' 40 | }, 41 | success: function (res) { 42 | console.log(res.data.data) 43 | _this.setData({ 44 | noticeList: res.data.data 45 | }) 46 | } 47 | }) 48 | }, 49 | 50 | /** 51 | * 生命周期函数--监听页面隐藏 52 | */ 53 | onHide: function () { 54 | 55 | }, 56 | 57 | /** 58 | * 生命周期函数--监听页面卸载 59 | */ 60 | onUnload: function () { 61 | //console.log(this.data.noticeList) 62 | //用户已读消息 63 | var _this = this; 64 | var show = false; 65 | for (var i = 0; i < this.data.noticeList.length; i++) { 66 | if (this.data.noticeList[i].isRead == 0) { 67 | show = false; 68 | break; 69 | }else{ 70 | show = true; 71 | } 72 | } 73 | if (show) { 74 | wx.hideTabBarRedDot({ 75 | index: 2 76 | }) 77 | } 78 | }, 79 | 80 | /** 81 | * 页面相关事件处理函数--监听用户下拉动作 82 | */ 83 | onPullDownRefresh: function () { 84 | 85 | }, 86 | 87 | /** 88 | * 页面上拉触底事件的处理函数 89 | */ 90 | onReachBottom: function () { 91 | 92 | }, 93 | 94 | /** 95 | * 用户点击右上角分享 96 | */ 97 | onShareAppMessage: function () { 98 | 99 | }, 100 | //自定义函数 101 | searchAddress: function (e) { 102 | var index = e.currentTarget.dataset.index; 103 | //console.log(this.data.noticeList[index]); 104 | var jsonStr = JSON.stringify(this.data.noticeList[index]); 105 | wx.navigateTo({ 106 | url: './noticeContent/noticeContent?jsonStr=' + jsonStr, 107 | }) 108 | }, 109 | }) -------------------------------------------------------------------------------- /pages/release/selectAddress/selectAddress.wxss: -------------------------------------------------------------------------------- 1 | /* pages/personal/address/address.wxss */ 2 | page{ 3 | width: 100%; 4 | height: 100%; 5 | background-color: #EEEEEE; /*灰色背景*/ 6 | font:30rpx "微软雅黑"; 7 | padding-bottom: 90rpx; 8 | } 9 | .section{ 10 | width: 100%; 11 | background-color: white; 12 | height: 80rpx; 13 | border-top:1rpx solid gainsboro; 14 | display: flex; 15 | align-items: center; 16 | padding-left: 20rpx; 17 | } 18 | .section:nth-of-type(1){ 19 | border-top: 0; 20 | margin-top: 30rpx; 21 | } 22 | .addrDetail{ 23 | width: 680rpx; 24 | margin-left: 10rpx; 25 | } 26 | .showOL{ 27 | text-overflow: ellipsis; 28 | display: -webkit-box; 29 | -webkit-line-clamp:1; 30 | -webkit-box-orient: vertical; 31 | overflow: hidden; 32 | } 33 | .rightShotImg{ 34 | width: 12rpx; 35 | height: 24rpx; 36 | } 37 | 38 | .pos_bot{ 39 | position: fixed; 40 | display: flex; 41 | justify-content: space-around; 42 | bottom: 0; 43 | height: 90rpx; 44 | width: 750rpx; 45 | } 46 | .pos_bot text{ 47 | display: block; 48 | background-color: rgb(44, 187, 107); 49 | color: white; 50 | width: 50%; 51 | font-size:18px; 52 | text-align:center; 53 | text-decoration:none; 54 | line-height:90rpx; 55 | 56 | } 57 | .pos_bot text:nth-of-type(1){ 58 | color: rgb(44, 187, 107); 59 | background-color: white; 60 | } 61 | 62 | /*模态框start */ 63 | .modal{ 64 | width: 650rpx; 65 | } 66 | .modalTitle{ 67 | font: 36rpx "微软雅黑"; 68 | display: flex; 69 | justify-content: center; 70 | color: gray; 71 | } 72 | .modalContent{ 73 | width: 100%; 74 | height: 100rpx; 75 | display: flex; 76 | align-items: center; 77 | } 78 | .modal .modalTextarea{ 79 | width: 96%; 80 | height: 240rpx; 81 | margin-top: 10rpx; 82 | background-color: #fff; 83 | } 84 | .addrIcon{ 85 | height: 32rpx; 86 | width: 32rpx; 87 | } 88 | .addrName{ 89 | width: 480rpx; 90 | padding-left: 10rpx; 91 | } 92 | .rightShotImg{ 93 | width: 12rpx; 94 | height: 24rpx; 95 | } 96 | .timeCon{ 97 | height: 100rpx; 98 | display: flex; 99 | justify-content: flex-start; 100 | align-items: center; 101 | border-top:1rpx solid gainsboro; 102 | border-bottom:1rpx solid gainsboro; 103 | padding-left: 30rpx; 104 | margin-top: 5rpx; 105 | } 106 | .claimTime{ 107 | width: 300rpx; 108 | } 109 | /*模态框end */ -------------------------------------------------------------------------------- /pages/detail/addrRemake/addrRemake.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 全选 9 | 10 | 11 | 导出订单 12 | 13 | 14 | 15 | 16 | 17 | {{abcSort[item.addrAndTimeIndex]}}.{{item.addrAndTime}} 18 | 19 | 20 | 21 | 22 | 23 | 24 | NO.{{index + 1}} 25 | 26 | {{item.userInfo.nickName}} 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | {{item.userInfo.name}} 35 | {{item.userInfo.phoneNumber}} 36 | 37 | 38 | 备注:{{item.remark}} 39 | 40 | 41 | {{goodsItem.goods.name}} 42 | +{{goodsItem.sum}} 43 | ${{goodsItem.money}} 44 | 45 | 46 | 合计:${{item.sumMoney}} 47 | 48 | 49 | 50 | 51 | 52 | 53 | 没有更多了 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /utils/dateTimePicker.js: -------------------------------------------------------------------------------- 1 | function withData(param) { 2 | return param < 10 ? '0' + param : '' + param; 3 | } 4 | function getLoopArray(start, end) { 5 | var start = start || 0; 6 | var end = end || 1; 7 | var array = []; 8 | for (var i = start; i <= end; i++) { 9 | array.push(withData(i)); 10 | } 11 | return array; 12 | } 13 | function getMonthDay(year, month) { 14 | var flag = year % 400 == 0 || (year % 4 == 0 && year % 100 != 0), array = null; 15 | 16 | switch (month) { 17 | case '01': 18 | case '03': 19 | case '05': 20 | case '07': 21 | case '08': 22 | case '10': 23 | case '12': 24 | array = getLoopArray(1, 31) 25 | break; 26 | case '04': 27 | case '06': 28 | case '09': 29 | case '11': 30 | array = getLoopArray(1, 30) 31 | break; 32 | case '02': 33 | array = flag ? getLoopArray(1, 29) : getLoopArray(1, 28) 34 | break; 35 | default: 36 | array = '月份格式不正确,请重新输入!' 37 | } 38 | return array; 39 | } 40 | function getNewDateArry() { 41 | // 当前时间的处理 42 | var newDate = new Date(); 43 | var year = withData(newDate.getFullYear()), 44 | mont = withData(newDate.getMonth() + 1), 45 | date = withData(newDate.getDate()), 46 | hour = withData(newDate.getHours()), 47 | minu = withData(newDate.getMinutes()), 48 | seco = withData(newDate.getSeconds()); 49 | 50 | return [year, mont, date, hour, minu, seco]; 51 | } 52 | function dateTimePicker(startYear, endYear, date) { 53 | // 返回默认显示的数组和联动数组的声明 54 | var dateTime = [], dateTimeArray = [[], [], [], [], [], []]; 55 | var start = startYear || 1978; 56 | var end = endYear || 2100; 57 | // 默认开始显示数据 58 | var defaultDate = date ? [...date.split(' ')[0].split('-'), ...date.split(' ')[1].split(':')] : getNewDateArry(); 59 | // 处理联动列表数据 60 | /*年月日 时分秒*/ 61 | dateTimeArray[0] = getLoopArray(start, end); 62 | dateTimeArray[1] = getLoopArray(1, 12); 63 | dateTimeArray[2] = getMonthDay(defaultDate[0], defaultDate[1]); 64 | dateTimeArray[3] = getLoopArray(0, 23); 65 | dateTimeArray[4] = getLoopArray(0, 59); 66 | dateTimeArray[5] = getLoopArray(0, 59); 67 | 68 | dateTimeArray.forEach((current, index) => { 69 | dateTime.push(current.indexOf(defaultDate[index])); 70 | }); 71 | 72 | return { 73 | dateTimeArray: dateTimeArray, 74 | dateTime: dateTime 75 | } 76 | } 77 | module.exports = { 78 | dateTimePicker: dateTimePicker, 79 | getMonthDay: getMonthDay, 80 | withData: withData 81 | } -------------------------------------------------------------------------------- /pages/personal/mineJieLong/mineJieLong.js: -------------------------------------------------------------------------------- 1 | // pages/personal/mineJieLong/mineJieLong.js 2 | var app = getApp(); 3 | 4 | Page({ 5 | 6 | /** 7 | * 页面的初始数据 8 | */ 9 | data: { 10 | data:{}, 11 | isShow:false, 12 | remind:"加载中,请稍后..." 13 | }, 14 | 15 | /** 16 | * 生命周期函数--监听页面加载 17 | */ 18 | onLoad: function (options) { 19 | 20 | }, 21 | 22 | /** 23 | * 生命周期函数--监听页面初次渲染完成 24 | */ 25 | onReady: function () { 26 | 27 | }, 28 | 29 | /** 30 | * 生命周期函数--监听页面显示 31 | */ 32 | onShow: function () { 33 | this.initData(); 34 | }, 35 | 36 | /** 37 | * 生命周期函数--监听页面隐藏 38 | */ 39 | onHide: function () { 40 | 41 | }, 42 | 43 | /** 44 | * 生命周期函数--监听页面卸载 45 | */ 46 | onUnload: function () { 47 | 48 | }, 49 | 50 | /** 51 | * 页面相关事件处理函数--监听用户下拉动作 52 | */ 53 | onPullDownRefresh: function () { 54 | 55 | }, 56 | 57 | /** 58 | * 页面上拉触底事件的处理函数 59 | */ 60 | onReachBottom: function () { 61 | 62 | }, 63 | 64 | /** 65 | * 用户点击右上角分享 66 | */ 67 | onShareAppMessage: function () { 68 | 69 | }, 70 | 71 | //自定义方法 72 | initData:function(){ 73 | var _this = this; 74 | // wx.showLoading({ 75 | // title: '数据搜索中...', 76 | // }) 77 | wx.request({ 78 | url: app.globalData.domain + '/jielong/selectByUserId', 79 | method: "GET", 80 | data: { userId: wx.getStorageSync("userId") }, 81 | success: function (res) { 82 | console.log(res) 83 | _this.remind = res.data.data.length ? "加载中,请稍后..." : "您还没有发起过Mart" 84 | //console.log(_this.remind) 85 | if (res.statusCode == 200 && res.data.data.length) { 86 | _this.setData({ 87 | data: res.data.data, 88 | isShow: true, 89 | }) 90 | } else { 91 | _this.setData({ 92 | isShow: false, 93 | remind: _this.remind 94 | }) 95 | } 96 | }, 97 | fail: function (err) { 98 | _this.setData({ 99 | isShow: false 100 | }) 101 | }, 102 | complete: function () { 103 | wx.hideLoading(); 104 | } 105 | }) 106 | }, 107 | // 108 | navToDetail:function(e){ 109 | console.log(e); 110 | wx.navigateTo({ 111 | url: '../../detail/detail?id='+e.currentTarget.dataset.id +"&fromMine=1", 112 | }) 113 | 114 | 115 | } 116 | 117 | 118 | }) -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "pages": [ 3 | "pages/index/index", 4 | "pages/add/add", 5 | "pages/comments/comments", 6 | "pages/logs/logs", 7 | "pages/personal/personal", 8 | "pages/release/release", 9 | "pages/detail/detail", 10 | "pages/personal/address/address", 11 | "pages/personal/userInfo/userInfo", 12 | "pages/personal/address/addAddress/addAddress", 13 | "pages/release/selectAddress/selectAddress", 14 | "pages/release/bindingPhone/bindingPhone", 15 | "pages/detail/selectAddress/selectAddress", 16 | "pages/personal/joinJieLong/joinJieLong", 17 | "pages/personal/mineJieLong/mineJieLong", 18 | "pages/comments/systemNotice/systemNotice", 19 | "pages/personal/helpCenter/helpCenter", 20 | "pages/detail/confirmOrder/confirmOrder", 21 | "pages/personal/helpCenter/answerPage/answerPage", 22 | "pages/comments/systemNotice/noticeContent/noticeContent", 23 | "pages/personal/joinJieLong/joinMessage/joinMessage", 24 | "pages/detail/solitaireStatistics/solitaireStatistics", 25 | "pages/detail/solitaireStatistics/Goodsstatistics/Goodsstatistics", 26 | "pages/detail/addrRemake/addrRemake", 27 | "pages/release/copySolitaire/copySolitaire", 28 | "pages/personal/mineProgramYard/mineProgramYard" 29 | ], 30 | "window": { 31 | "backgroundTextStyle": "light", 32 | "navigationBarBackgroundColor": "#fff", 33 | "navigationBarTitleText": "VanMart", 34 | "navigationBarTextStyle": "black" 35 | }, 36 | "tabBar": { 37 | "backgroundColor": "#fff", 38 | "borderStyle": "black", 39 | "color": "#c8c8c8", 40 | "selectedColor": "#fd5f6a", 41 | "list": [ 42 | { 43 | "pagePath": "pages/index/index", 44 | "iconPath": "./images/navIcon/home1.png", 45 | "selectedIconPath": "./images/navIcon/home.png", 46 | "text": "首页" 47 | }, 48 | { 49 | "pagePath": "pages/add/add", 50 | "iconPath": "./images/navIcon/add1.png", 51 | "selectedIconPath": "./images/navIcon/add.png", 52 | "text": "发布" 53 | }, 54 | { 55 | "pagePath": "pages/comments/comments", 56 | "iconPath": "./images/navIcon/message1.png", 57 | "selectedIconPath": "./images/navIcon/message.png", 58 | "text": "消息" 59 | }, 60 | { 61 | "pagePath": "pages/personal/personal", 62 | "iconPath": "./images/navIcon/personal1.png", 63 | "selectedIconPath": "./images/navIcon/personal.png", 64 | "text": "我的" 65 | } 66 | ] 67 | } 68 | } -------------------------------------------------------------------------------- /pages/personal/joinJieLong/joinJieLong.js: -------------------------------------------------------------------------------- 1 | // pages/personal/joinJieLong/joinJieLong.js 2 | var app = getApp(); 3 | 4 | Page({ 5 | 6 | /** 7 | * 页面的初始数据 8 | */ 9 | data: { 10 | isShow:false, 11 | data:[], 12 | remind: "加载中,请稍后..." 13 | }, 14 | 15 | /** 16 | * 生命周期函数--监听页面加载 17 | */ 18 | onLoad: function (options) { 19 | 20 | }, 21 | 22 | /** 23 | * 生命周期函数--监听页面初次渲染完成 24 | */ 25 | onReady: function () { 26 | 27 | }, 28 | 29 | /** 30 | * 生命周期函数--监听页面显示 31 | */ 32 | onShow: function () { 33 | //加载数据 34 | this.initData(); 35 | }, 36 | 37 | /** 38 | * 生命周期函数--监听页面隐藏 39 | */ 40 | onHide: function () { 41 | 42 | }, 43 | 44 | /** 45 | * 生命周期函数--监听页面卸载 46 | */ 47 | onUnload: function () { 48 | 49 | }, 50 | 51 | /** 52 | * 页面相关事件处理函数--监听用户下拉动作 53 | */ 54 | onPullDownRefresh: function () { 55 | 56 | }, 57 | 58 | /** 59 | * 页面上拉触底事件的处理函数 60 | */ 61 | onReachBottom: function () { 62 | 63 | }, 64 | 65 | /** 66 | * 用户点击右上角分享 67 | */ 68 | onShareAppMessage: function () { 69 | 70 | }, 71 | 72 | // 自定义事件 73 | initData:function(e){ 74 | var _this = this; 75 | // wx.showLoading({ 76 | // title: '数据搜索中...', 77 | // }) 78 | wx.request({ 79 | url: app.globalData.domain +'/order/selectByCustomerId', 80 | data:{ 81 | customerId:wx.getStorageSync("userId") 82 | }, 83 | success: function (res) { 84 | console.log(res) 85 | _this.remind = res.data.data.length ? "加载中,请稍后..." : "您还没有参与过Mart" 86 | // console.log(_this.remind) 87 | if (res.statusCode == 200 && res.data.data.length) { 88 | _this.setData({ 89 | data: res.data.data, 90 | isShow: true, 91 | }) 92 | } else { 93 | _this.setData({ 94 | isShow: false, 95 | remind: _this.remind 96 | }) 97 | } 98 | }, 99 | fail: function (err) { 100 | _this.setData({ 101 | isShow: false 102 | }) 103 | }, 104 | complete: function () { 105 | wx.hideLoading(); 106 | } 107 | }) 108 | }, 109 | //跳转到参与mart明细 110 | navToDetail:function(e){ 111 | var _this = this; 112 | var jsonStr = _this.data.data[e.currentTarget.dataset.index]; 113 | jsonStr = JSON.stringify(jsonStr); 114 | //console.log(jsonStr) 115 | wx.navigateTo({ 116 | url: './joinMessage/joinMessage?jsonStr=' + encodeURIComponent(jsonStr), 117 | }) 118 | } 119 | }) -------------------------------------------------------------------------------- /pages/comments/comments.js: -------------------------------------------------------------------------------- 1 | // 获取全局应用程序实例对象 2 | var app = getApp(); 3 | 4 | // 创建页面实例对象 5 | Page({ 6 | /** 7 | * 页面名称 8 | */ 9 | name: "comments", 10 | /** 11 | * 页面的初始数据 12 | */ 13 | 14 | data: { 15 | photo: '../../images/notice.png' 16 | }, 17 | 18 | /** 19 | * 生命周期函数--监听页面加载 20 | */ 21 | onLoad() { 22 | 23 | }, 24 | 25 | /** 26 | * 生命周期函数--监听页面初次渲染完成 27 | */ 28 | onReady() { 29 | 30 | }, 31 | 32 | /** 33 | * 生命周期函数--监听页面显示 34 | */ 35 | onShow() { 36 | var app = getApp(); 37 | var _this=this; 38 | var userId = wx.getStorageSync("userId"); 39 | wx.request({ 40 | url: app.globalData.domain + '/userMessage/selectByUserId', 41 | data: { 42 | userId: userId 43 | }, 44 | header: { 45 | 'content-type': 'application/json' 46 | }, 47 | success: function (res) { 48 | for (var i = 0; i < res.data.data.length; i++) { 49 | if (res.data.data[i].isRead == 0) { 50 | var photo = '../../images/w-notice.png'; 51 | break; 52 | } else { 53 | var photo = '../../images/notice.png'; 54 | } 55 | } 56 | _this.setData({ 57 | photo: photo 58 | }) 59 | } 60 | }) 61 | }, 62 | 63 | /** 64 | * 生命周期函数--监听页面隐藏 65 | */ 66 | onHide() { 67 | 68 | }, 69 | 70 | /** 71 | * 生命周期函数--监听页面卸载 72 | */ 73 | onUnload() { 74 | 75 | }, 76 | 77 | /** 78 | * 页面相关事件处理函数--监听用户下拉动作 79 | */ 80 | onPullDownRefresh() { 81 | 82 | }, 83 | 84 | onShareAppMessage: function (res) { 85 | }, 86 | 87 | //以下为自定义点击事件 88 | //获取登陆用户信息 89 | getUserInfo: function (res) { 90 | if (res.detail.rawData) { 91 | wx.showLoading({ 92 | title: "数据加载中...", 93 | mask: true 94 | }) 95 | if (!app.globalData.userInfo) { 96 | app.globalData.userInfo = JSON.parse(res.detail.rawData); 97 | app.login(); 98 | setTimeout(function () { 99 | wx.hideLoading(); 100 | wx.navigateTo({ 101 | url: './systemNotice/systemNotice', 102 | complete: function () { 103 | wx.hideLoading(); 104 | } 105 | }) 106 | }, 2000) 107 | } else { 108 | wx.hideLoading(); 109 | wx.navigateTo({ 110 | url: './systemNotice/systemNotice', 111 | complete: function () { 112 | wx.hideLoading(); 113 | } 114 | }) 115 | } 116 | } else { 117 | 118 | } 119 | 120 | } 121 | }) 122 | 123 | -------------------------------------------------------------------------------- /pages/detail/solitaireStatistics/Goodsstatistics/Goodsstatistics.js: -------------------------------------------------------------------------------- 1 | // pages/detail/solitaireStatistics/Goodsstatixtics/Goodsstatistics.js 2 | Page({ 3 | 4 | /** 5 | * 页面的初始数据 6 | */ 7 | data: { 8 | data:{ 9 | pickBeans:[] 10 | }, 11 | isShow:false, 12 | startTime:'', 13 | endTime:'', 14 | }, 15 | 16 | /** 17 | * 生命周期函数--监听页面加载 18 | */ 19 | onLoad: function (options) { 20 | console.log(JSON.parse(decodeURIComponent(options.item))) 21 | this.initData(JSON.parse(decodeURIComponent(options.item))); 22 | }, 23 | 24 | /** 25 | * 生命周期函数--监听页面初次渲染完成 26 | */ 27 | onReady: function () { 28 | 29 | }, 30 | 31 | /** 32 | * 生命周期函数--监听页面显示 33 | */ 34 | onShow: function () { 35 | 36 | }, 37 | 38 | /** 39 | * 生命周期函数--监听页面隐藏 40 | */ 41 | onHide: function () { 42 | 43 | }, 44 | 45 | /** 46 | * 生命周期函数--监听页面卸载 47 | */ 48 | onUnload: function () { 49 | 50 | }, 51 | 52 | /** 53 | * 页面相关事件处理函数--监听用户下拉动作 54 | */ 55 | onPullDownRefresh: function () { 56 | 57 | }, 58 | 59 | /** 60 | * 页面上拉触底事件的处理函数 61 | */ 62 | onReachBottom: function () { 63 | 64 | }, 65 | 66 | /** 67 | * 用户点击右上角分享 68 | */ 69 | onShareAppMessage: function () { 70 | 71 | }, 72 | 73 | //初始化数据 74 | initData:function(datas){ 75 | console.log(datas) 76 | var _this = this; 77 | if(datas.pickBeans){ 78 | datas.pickBeans.map(function(res,index){ 79 | res.isShow = false; 80 | return res; 81 | }) 82 | _this.formatData(datas.pickBeans); 83 | _this.setData({ 84 | data:datas 85 | }) 86 | } 87 | 88 | }, 89 | 90 | //显示详细 91 | showDetail:function(e){ 92 | var _this = this; 93 | var index = e.currentTarget.dataset.index; 94 | _this.data.data.pickBeans.map(function(res,resIndex){ 95 | if (index == resIndex){ 96 | res.isShow = !res.isShow; 97 | } 98 | return res; 99 | }) 100 | 101 | this.setData({ 102 | data: _this.data.data 103 | 104 | }) 105 | }, 106 | 107 | //格式化数据 108 | formatData: function (res) { 109 | console.log(res) 110 | res.map(function (item, index) { 111 | var detailTime = item.userAddress.detail.split("***"); 112 | if (detailTime.length == 2) { 113 | item.userAddress.detail = detailTime[0]; 114 | item.userAddress.claimTime = detailTime[1]; 115 | } else { 116 | item.userAddress.detail = detailTime[0]; 117 | item.userAddress.claimTime = ""; 118 | } 119 | return item; 120 | }) 121 | return res; 122 | } 123 | }) -------------------------------------------------------------------------------- /pages/detail/selectAddress/selectAddress.js: -------------------------------------------------------------------------------- 1 | // pages/detail/selectAddress/selectAddress.js 2 | Page({ 3 | 4 | /** 5 | * 页面的初始数据 6 | */ 7 | data: { 8 | addressList:[], 9 | selectId: "" //选中的自提点 10 | 11 | }, 12 | 13 | /** 14 | * 生命周期函数--监听页面加载 15 | */ 16 | onLoad: function (options) { 17 | var data = JSON.parse(options.jsonStr); 18 | data.forEach(function(e){ 19 | if(!e.selectVal){ 20 | e.selectVal = false; 21 | } 22 | }) 23 | this.formatData(data); 24 | this.setData({ 25 | addressList:data 26 | }) 27 | }, 28 | 29 | /** 30 | * 生命周期函数--监听页面初次渲染完成 31 | */ 32 | onReady: function () { 33 | 34 | }, 35 | 36 | /** 37 | * 生命周期函数--监听页面显示 38 | */ 39 | onShow: function () { 40 | 41 | }, 42 | 43 | /** 44 | * 生命周期函数--监听页面隐藏 45 | */ 46 | onHide: function () { 47 | 48 | }, 49 | 50 | /** 51 | * 生命周期函数--监听页面卸载 52 | */ 53 | onUnload: function () { 54 | 55 | }, 56 | 57 | /** 58 | * 页面相关事件处理函数--监听用户下拉动作 59 | */ 60 | onPullDownRefresh: function () { 61 | 62 | }, 63 | 64 | /** 65 | * 页面上拉触底事件的处理函数 66 | */ 67 | onReachBottom: function () { 68 | 69 | }, 70 | 71 | /** 72 | * 用户点击右上角分享 73 | */ 74 | onShareAppMessage: function () { 75 | 76 | }, 77 | 78 | //确认自提点 79 | sureAddr:function(){ 80 | var _this = this; 81 | var page = getCurrentPages(); 82 | var prePage = page[page.length - 2]; 83 | if (prePage.data.selectAddresses != "查看并选择取货点及时间" || _this.data.selectId){ 84 | this.data.addressList.forEach(function(e){ 85 | if (e.id == _this.data.selectId){ 86 | prePage.data.selectAddresses = "取货点:" + e.detail; 87 | prePage.setData({ 88 | selectAddrId: _this.data.selectId, 89 | selectAddresses: prePage.data.selectAddresses, 90 | selectAddrDetail:e.detail 91 | }) 92 | } 93 | }) 94 | wx.navigateBack({ 95 | delta: 1 96 | }) 97 | } 98 | }, 99 | 100 | //切换自提点 101 | radioChange:function(e){ 102 | this.data.selectId = e.detail.value; 103 | }, 104 | 105 | //格式化数据 106 | formatData: function (res) { 107 | res.map(function (item, index) { 108 | var detailTime = item.detail.split("***"); 109 | if (detailTime.length == 2) { 110 | item.detail = detailTime[0] + "(取货时间:" + detailTime[1]+")"; 111 | item.claimTime = detailTime[1]; 112 | } else { 113 | item.detail = detailTime[0]; 114 | item.claimTime = ""; 115 | } 116 | return item; 117 | }) 118 | return res; 119 | } 120 | 121 | }) -------------------------------------------------------------------------------- /pages/personal/personal.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {{userInfo.nickName}} 5 | 6 | 10 | 11 | 12 | 13 | 14 | 15 | 21 | 22 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 40 | 41 | 42 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 客服热线 54 | 55 | 56 | -------------------------------------------------------------------------------- /pages/release/copySolitaire/copySolitaire.js: -------------------------------------------------------------------------------- 1 | // pages/release/copySolitaire/copySolitaire.js 2 | var app = getApp(); 3 | 4 | Page({ 5 | 6 | /** 7 | * 页面的初始数据 8 | */ 9 | data: { 10 | appGlobalHost: app.globalData.domainUpload, 11 | xOssProcess: app.globalData.xOssProcess, 12 | data: {}, 13 | isShow: false, 14 | copyData:false 15 | }, 16 | 17 | /** 18 | * 生命周期函数--监听页面加载 19 | */ 20 | onLoad: function (options) { 21 | 22 | }, 23 | 24 | /** 25 | * 生命周期函数--监听页面初次渲染完成 26 | */ 27 | onReady: function () { 28 | 29 | }, 30 | 31 | /** 32 | * 生命周期函数--监听页面显示 33 | */ 34 | onShow: function () { 35 | this.initData(); 36 | }, 37 | 38 | /** 39 | * 生命周期函数--监听页面隐藏 40 | */ 41 | onHide: function () { 42 | 43 | }, 44 | 45 | /** 46 | * 生命周期函数--监听页面卸载 47 | */ 48 | onUnload: function () { 49 | 50 | }, 51 | 52 | /** 53 | * 页面相关事件处理函数--监听用户下拉动作 54 | */ 55 | onPullDownRefresh: function () { 56 | 57 | }, 58 | 59 | /** 60 | * 页面上拉触底事件的处理函数 61 | */ 62 | onReachBottom: function () { 63 | 64 | }, 65 | 66 | /** 67 | * 用户点击右上角分享 68 | */ 69 | onShareAppMessage: function () { 70 | 71 | }, 72 | 73 | //自定义方法 74 | initData: function () { 75 | var _this = this; 76 | wx.request({ 77 | url: app.globalData.domain + '/jielong/selectByUserId', 78 | method: "GET", 79 | data: { userId: wx.getStorageSync("userId") }, 80 | success: function (res) { 81 | if (res.statusCode == 200 && res.data.data.length) { 82 | res.data.data.map(function(item,index){ 83 | item.jsonItem = JSON.stringify(item); 84 | }) 85 | _this.setData({ 86 | data: res.data.data, 87 | isShow: true 88 | }) 89 | } else { 90 | _this.setData({ 91 | isShow: false 92 | }) 93 | } 94 | }, 95 | fail: function (err) { 96 | _this.setData({ 97 | isShow: false 98 | }) 99 | } 100 | }) 101 | }, 102 | //选择mart 103 | selectCpy:function (e) { 104 | this.setData({ 105 | copyData:e.detail.value 106 | }) 107 | 108 | }, 109 | //确认选择 110 | sureCopy:function(e){ 111 | var _this = this; 112 | if (!e.currentTarget.dataset.loadtap){ 113 | return; 114 | }else{ 115 | var Page = getCurrentPages(); 116 | var prePage = Page[Page.length - 2]; 117 | prePage.data.copySolitaireData = _this.data.copyData; 118 | wx.removeStorage({ 119 | key: 'seleAddrKey' 120 | }) 121 | wx.navigateBack({ 122 | delta:1 123 | }) 124 | } 125 | 126 | 127 | 128 | } 129 | 130 | 131 | }) -------------------------------------------------------------------------------- /pages/personal/personal.wxss: -------------------------------------------------------------------------------- 1 | /* pages/personal/personal.wxss */ 2 | page{ 3 | width: 100%; 4 | height: 100%; 5 | background-color: #EEEEEE; /*灰色背景*/ 6 | font:30rpx "微软雅黑"; 7 | } 8 | /*模板start */ 9 | .cont_btns::after{ 10 | border: none; 11 | border-radius:0px!important; 12 | } 13 | .cont_btns{ 14 | padding: 0; 15 | text-align: left; 16 | line-height: 1.4; 17 | height: auto; 18 | border: 0; 19 | background-color: #eee; 20 | font:30rpx "微软雅黑"; 21 | } 22 | .c-minheight { 23 | min-height: 80px; 24 | } 25 | .user_image{ 26 | width: 60px; 27 | height: 60px; 28 | border-radius: 30px; 29 | margin-top: 5%; 30 | margin-left: 42%; 31 | margin-right: 40%; 32 | display: inline-block; 33 | justify-content: center; 34 | } 35 | .text_username{ 36 | display: flex; 37 | justify-content: center; 38 | margin-bottom: 5%; 39 | } 40 | .section{ 41 | width: 100%; 42 | background-color: white; 43 | margin-top: 20rpx; 44 | } 45 | .getTemp{ 46 | border-top:1rpx solid gainsboro; 47 | height: 100rpx; 48 | } 49 | .mineMarginTop{ 50 | margin-top: 0; 51 | } 52 | button::after{ 53 | border: none; 54 | border-radius:0px!important; 55 | } 56 | .cont_btn{ 57 | padding: 0; 58 | text-align: left; 59 | line-height: 1.4; 60 | height: auto; 61 | border: 0; 62 | font-size: 30rpx; 63 | } 64 | .mineNavTo{ 65 | height: 100%; 66 | width: 100%; 67 | display: flex; 68 | align-items: center; 69 | } 70 | .mineNavTohover{ 71 | background: rgba(238 , 238, 238, 0.4); 72 | } 73 | .tempIcon{ 74 | height: 32rpx; 75 | width: 32rpx; 76 | margin-left: 30rpx; 77 | } 78 | .tempName{ 79 | width: calc(100% - 330rpx); 80 | margin: 0 10rpx; 81 | text-overflow: ellipsis; 82 | display: -webkit-box; 83 | -webkit-box-orient: vertical; 84 | -webkit-line-clamp: 1; 85 | overflow: hidden; 86 | } 87 | .tempRlCont{ 88 | width: 200rpx; 89 | text-align: right; 90 | padding-right: 10rpx; 91 | } 92 | .rightShotImg{ 93 | width: 12rpx; 94 | height: 24rpx; 95 | } 96 | /*模板end */ 97 | /*联系电话 */ 98 | .bo_zan{ 99 | width: 180rpx; 100 | height: 80rpx; 101 | position: fixed; 102 | bottom: 40rpx; 103 | right: 0; 104 | display: flex; 105 | } 106 | .bo_zan>view{ 107 | width: 80rpx; 108 | height: 80rpx; 109 | border-top-left-radius:50%; 110 | border-bottom-left-radius: 50%; 111 | padding: 20rpx; 112 | padding-right: 0; 113 | } 114 | .bo_zan>view>image{ 115 | width: 40rpx; 116 | height: 40rpx; 117 | border-radius: 50%; 118 | z-index: 999; 119 | 120 | } 121 | .bo_zan>text{ 122 | display: block; 123 | width: 120rpx; 124 | font-size: 26rpx; 125 | color: #fff; 126 | line-height: 80rpx; 127 | } 128 | .disabledImg{ 129 | background-color: #bfbfbf; 130 | } 131 | .showImg{ 132 | background-color: #0a9c23; 133 | } 134 | /*联系电话 */ -------------------------------------------------------------------------------- /pages/personal/joinJieLong/joinMessage/joinMessage.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | {{data.userInfo.nickName}} 7 | 8 | {{data.jielongTopic}} 9 | 10 | 11 | 12 | 13 | 14 | 15 | 商品信息 16 | 17 | 18 | 19 | {{goodsItem.goods.name}} 20 | {{goodsItem.sum + goodsItem.goods.specification}} 21 | ${{goodsItem.goods.price}} 22 | 23 | 24 | 25 | 合计:${{data.sumMoney}} 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 订单信息 35 | 36 | 37 | 38 | 成团状态:{{data.orderGoods[0].goods.isSetGroup == 1 ? "限制Mart" : "普通Mart" }} 39 | 订单状态:{{data.state == 0 && data.orderGoods[0].groupFlg == 1 ? "拼团成功" : data.state == 0 && data.orderGoods[0].groupFlg == 2 ? "拼团失败" : data.state == 0 ? "待拼团成功" : data.state == 1 ? "待支付" : data.state == 2 ? "待提货" : data.state == 3 ? "提货成功" : data.state == 4 ? "mart已取消" : "其他"}}(该mart已结束)(还差{{data.orderGoods[0].joinGroupNum}}件成团) 40 | 41 | 取货详细地址:{{data.userAddress.detail}} 42 | 取货时间:{{data.userAddress.claimTime}} 43 | 备注:{{data.remark}} 44 | 45 | 46 | 47 | 48 | 49 | 取消参团 50 | 取消订单 51 | 52 | -------------------------------------------------------------------------------- /pages/release/copySolitaire/copySolitaire.wxss: -------------------------------------------------------------------------------- 1 | /* pages/release/copySolitaire/copySolitaire.wxss */ 2 | .userinfo { 3 | display: flex; 4 | flex-direction: column; 5 | align-items: center; 6 | } 7 | 8 | .userinfo-avatar { 9 | width: 128rpx; 10 | height: 128rpx; 11 | margin: 20rpx; 12 | border-radius: 50%; 13 | } 14 | 15 | .userinfo-nickname { 16 | color: #aaa; 17 | } 18 | 19 | .usermotto { 20 | margin-top: 200px; 21 | } 22 | 23 | .swiper{ 24 | height: 320rpx; 25 | } 26 | .slideImage{ 27 | width: 100%; 28 | height: 100%; 29 | } 30 | .listContent{ 31 | border-top: 1px solid gainsboro; 32 | padding: 30rpx 20rpx; 33 | background-color: #fff; 34 | font-family: "微软雅黑",-apple-system-font,Helvetica Neue,Helvetica,sans-serif; 35 | } 36 | .listContent>view{ 37 | margin:0 0 10rpx 10rpx; 38 | } 39 | .descText{ 40 | font-size: 34rpx; 41 | } 42 | .conTime{ 43 | display: flex; 44 | align-items: center; 45 | font-size: 28rpx; 46 | color: grey; 47 | padding-left: 60rpx; 48 | } 49 | .conTime text{ 50 | padding:0 20rpx; 51 | } 52 | .conTime text:nth-of-type(1){ 53 | padding-left: 0; 54 | } 55 | .conTime text:nth-of-type(2){ 56 | width: 1rpx; 57 | height: 26rpx; 58 | padding: 0; 59 | background-color: grey; 60 | border-right: 1rpx solid grey; 61 | } 62 | .conImg{ 63 | padding-left: 60rpx; 64 | } 65 | .conImgDetail{ 66 | height: 190rpx; 67 | width:190rpx; 68 | margin-right: 20rpx; 69 | 70 | } 71 | .conAddr{ 72 | display: flex; 73 | align-items: center; 74 | padding-left: 60rpx; 75 | } 76 | .conAddrText{ 77 | font-size: 26rpx; 78 | color: grey; 79 | } 80 | 81 | .loadCon{ 82 | height: 80rpx; 83 | display: flex; 84 | align-items: center; 85 | justify-content: center; 86 | margin-bottom: 100rpx; 87 | } 88 | .loadGif{ 89 | width: 60rpx; 90 | height:60rpx; 91 | } 92 | .loadCon text{ 93 | font-size: 30rpx; 94 | } 95 | .allLine{ 96 | width: 28%; 97 | border-top: 1rpx solid gainsboro; 98 | } 99 | .allText{ 100 | padding: 0 24rpx; 101 | color: grey; 102 | } 103 | 104 | .no-record{ 105 | height:40%; 106 | display:flex; 107 | justify-content:center; 108 | align-items:center; 109 | flex-direction:column; 110 | } 111 | .recordimg{ 112 | width:120rpx; 113 | height:120rpx; 114 | } 115 | .news{ 116 | color:#bfbfbf; 117 | font:25rpx "微软雅黑"; 118 | margin-top:15rpx; 119 | } 120 | 121 | .foot_nav{ 122 | width:100%; 123 | height:100rpx; 124 | display: flex; 125 | justify-content: center; 126 | align-items: center; 127 | position: fixed; 128 | bottom:0%; 129 | left:0%; 130 | box-shadow: 1rpx -2rpx 5rpx #e6e6e6; 131 | z-index:10; 132 | } 133 | .foot_btn{ 134 | width:100%; 135 | text-align: center; 136 | color:#fff; 137 | background:#ccc; 138 | font:40rpx/100rpx "微软雅黑"; 139 | border-radius: 0; 140 | } 141 | .grayColor{ 142 | background-color: rgb(44, 187, 107); 143 | } -------------------------------------------------------------------------------- /pages/personal/helpCenter/answerPage/answerPage.js: -------------------------------------------------------------------------------- 1 | // pages/personal/helpCenter/answerPage/answerPage.js 2 | Page({ 3 | 4 | /** 5 | * 页面的初始数据 6 | */ 7 | data: { 8 | // answerList: [] 9 | isStatic:false, 10 | decode:true, 11 | static1: false, 12 | static2: false, 13 | static3: false, 14 | static4: false 15 | }, 16 | 17 | /** 18 | * 生命周期函数--监听页面加载 19 | */ 20 | onLoad: function (options) { 21 | console.log(options) 22 | if(options.index == "static-1"){ 23 | wx.setNavigationBarTitle({ 24 | title: "如何发布Mart?" 25 | }) 26 | this.setData({ 27 | isStatic:true, 28 | static1:1 29 | }) 30 | } else if (options.index == "static-2") { 31 | wx.setNavigationBarTitle({ 32 | title: "如何参与Mart?" 33 | }) 34 | this.setData({ 35 | isStatic: true, 36 | static2: 1 37 | }) 38 | } else if (options.index == "static-3") { 39 | wx.setNavigationBarTitle({ 40 | title: "联系客服" 41 | }) 42 | this.setData({ 43 | isStatic: true, 44 | static3: 1 45 | }) 46 | } else if (options.index == "static-4") { 47 | wx.setNavigationBarTitle({ 48 | title: "我需要开发小程序" 49 | }) 50 | this.setData({ 51 | isStatic: true, 52 | static4: 1 53 | }) 54 | }else{ 55 | var _this = this; 56 | var app = getApp(); 57 | var index = options.index; 58 | console.log(index) 59 | wx.request({ 60 | url: app.globalData.domain + '/helpMessage/selectAll', 61 | header: { 62 | 'content-type': 'application/json' 63 | }, 64 | success: function (res) { 65 | console.log(res) 66 | _this.setData({ 67 | answerList:res.data.data[index], 68 | }) 69 | 70 | wx.setNavigationBarTitle({ 71 | title: res.data.data[index].title 72 | }) 73 | 74 | } 75 | }) 76 | } 77 | }, 78 | 79 | /** 80 | * 生命周期函数--监听页面初次渲染完成 81 | */ 82 | onReady: function () { 83 | 84 | }, 85 | 86 | /** 87 | * 生命周期函数--监听页面显示 88 | */ 89 | onShow: function () { 90 | 91 | }, 92 | 93 | /** 94 | * 生命周期函数--监听页面隐藏 95 | */ 96 | onHide: function () { 97 | 98 | }, 99 | 100 | /** 101 | * 生命周期函数--监听页面卸载 102 | */ 103 | onUnload: function () { 104 | 105 | }, 106 | 107 | /** 108 | * 页面相关事件处理函数--监听用户下拉动作 109 | */ 110 | onPullDownRefresh: function () { 111 | 112 | }, 113 | 114 | /** 115 | * 页面上拉触底事件的处理函数 116 | */ 117 | onReachBottom: function () { 118 | 119 | }, 120 | 121 | /** 122 | * 用户点击右上角分享 123 | */ 124 | onShareAppMessage: function () { 125 | 126 | }, 127 | 128 | //预览 129 | showImg:function(){ 130 | wx.previewImage({ 131 | current:"https://qswebsite.oss-cn-beijing.aliyuncs.com/concat_service/contact_service.png", 132 | urls: ["https://qswebsite.oss-cn-beijing.aliyuncs.com/concat_service/contact_service.png"] 133 | }) 134 | } 135 | }) -------------------------------------------------------------------------------- /pages/index/index.wxss: -------------------------------------------------------------------------------- 1 | /**index.wxss**/ 2 | button::after{ 3 | border: none; 4 | border-radius:0px!important; 5 | } 6 | .cont_btn{ 7 | padding: 0; 8 | text-align: left; 9 | line-height: 1.4; 10 | height: auto; 11 | border: 0; 12 | } 13 | .userinfo { 14 | display: flex; 15 | flex-direction: column; 16 | align-items: center; 17 | } 18 | 19 | .userinfo-avatar { 20 | width: 128rpx; 21 | height: 128rpx; 22 | margin: 20rpx; 23 | border-radius: 50%; 24 | } 25 | 26 | .userinfo-nickname { 27 | color: #aaa; 28 | } 29 | 30 | .usermotto { 31 | margin-top: 200px; 32 | } 33 | 34 | .swiper{ 35 | height: 320rpx; 36 | } 37 | .slideImage{ 38 | width: 100%; 39 | height: 100%; 40 | } 41 | .listContent{ 42 | border-top: 1px solid gainsboro; 43 | padding: 30rpx 20rpx; 44 | background-color: #fff; 45 | font-family: "微软雅黑",-apple-system-font,Helvetica Neue,Helvetica,sans-serif; 46 | } 47 | .listContent>view{ 48 | margin:0 0 10rpx 10rpx; 49 | } 50 | .listHead{ 51 | display: flex; 52 | align-items: center; 53 | } 54 | .conHeadImg{ 55 | height: 50rpx; 56 | width: 50rpx; 57 | border-radius: 50%; 58 | } 59 | .conHeadTitle{ 60 | font-size: 32rpx; 61 | color: #2db9ca; 62 | margin-left:10rpx; 63 | } 64 | .descText{ 65 | font-size: 34rpx; 66 | } 67 | .conTime{ 68 | display: flex; 69 | align-items: center; 70 | font-size: 28rpx; 71 | color: grey; 72 | } 73 | .conTime text{ 74 | padding:0 20rpx; 75 | } 76 | .conTime text:nth-of-type(1){ 77 | padding-left: 0; 78 | } 79 | .conTime text:nth-of-type(2){ 80 | width: 1rpx; 81 | height: 26rpx; 82 | padding: 0; 83 | background-color: grey; 84 | border-right: 1rpx solid grey; 85 | } 86 | .conImgDetail{ 87 | height: 210rpx; 88 | width:210rpx; 89 | margin-right: 20rpx; 90 | } 91 | .conAddr{ 92 | display: flex; 93 | align-items: center; 94 | } 95 | .conAddrText{ 96 | font-size: 26rpx; 97 | color: grey; 98 | } 99 | 100 | .loadCon{ 101 | height: 80rpx; 102 | display: flex; 103 | align-items: center; 104 | justify-content: center; 105 | } 106 | .loadGif{ 107 | width: 60rpx; 108 | height:60rpx; 109 | } 110 | .loadCon text{ 111 | font-size: 30rpx; 112 | } 113 | .allLine{ 114 | width: 28%; 115 | border-top: 1rpx solid gainsboro; 116 | } 117 | .allText{ 118 | padding: 0 24rpx; 119 | color: grey; 120 | } 121 | 122 | /* 弹出层 */ 123 | /* .modal-box{ 124 | position:fixed; 125 | width:100%; 126 | height:100%; 127 | top:0px; 128 | background:rgba(0,0,0,0.4); 129 | overflow: hidden; 130 | } 131 | 132 | .modal-body{ 133 | position:relative; 134 | } 135 | 136 | .modal-content{ 137 | width: 80%; 138 | height:400rpx; 139 | margin:50% 10% 0 10%; 140 | overflow: hidden; 141 | border-radius: 10rpx; 142 | } 143 | .contView{ 144 | background-color: #fff; 145 | } 146 | .permissionTitle{ 147 | display: inline-block; 148 | width: 100%; 149 | text-align: center; 150 | padding-top: 30rpx; 151 | } 152 | .modal-text{ 153 | display: inline-block; 154 | padding: 30rpx; 155 | font-size: 30rpx; 156 | color: #999; 157 | min-height: 220rpx; 158 | } 159 | .knowBtn{ 160 | color: green; 161 | } */ 162 | -------------------------------------------------------------------------------- /pages/personal/helpCenter/answerPage/answerPage.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {{answerList.title}} 5 | 6 | {{answerList.message}} 7 | 8 | 9 | 10 | 11 | 12 | 13 | 如何发布Mart? 14 | 15 | 1.第一次发布Mart或发布一个内容不同的Mart 16 | 第一步:点击最下方导航按钮 “发布” 17 | 第二步:在发布页面,填写相关的内容 18 | 1.Mart的主题 19 | 2.介绍Mart的整体情况 20 | 3.上传整体说明图,最多9张(这些图片会在首页的列表中展示)。 21 | 4.描述您的Mart覆盖的地区:例如温哥华,高贵林,东京,台湾,上海等。 22 | 5.设置取货点及时间\n 23 | 24 | 注意:请您一定要详细描述取货地址和取货时间。 25 | 6.设置Mart的截止时间,截止时间一到,Mart会自动从首页下线。 26 | 7.添加多个商品,若您只有一个商品,则无需打开。 27 | 8.设置最小成团数量,若您1件商品起卖,则不需要设置。\n 28 | 您第一次发布Mart时,系统会要求您填写:电话、姓名等信息,一定要如实填写,便于买家找到您。 29 | 30 | 第三步:添加商品 31 | 1.商品名称 32 | 2.上传商品图片,最多9张。 33 | 3.填写规格:单位名称,或对商品的形容描述。 34 | 4.价格:单位不需要填写,系统只支持 $。 35 | 5.Mart总量,填写可以购买的最大数量。 36 | 6.若您有多个商品,重复以上步骤即可。 37 | 第四步,完成以上三步,点击下方红色发布按钮,即可完成发布。 38 | 2.已发布过Mart且想要发布一个相同或类似的Mart 39 | 第一步:请您在:“我的”-“我发起的Mart”中找到您想要模仿的Mart\n 40 | 41 | 注意:Mart结束后,才能复制本条Mart哦! 42 | 第二步:点击右下角的复制本条Mart,开启新的Mart 43 | 第三步:按照正常的发布流程,进行填写。\n 44 | 45 | 注意: 46 | 1.Mart城市需要重新填写 47 | 2.取货点及时间需要更新,特别是取货地点不变时,请别忘了更新时间 48 | 3.更新截止时间 49 | 4.检查商品内容是否需要更新 50 | 第四步:完成以上三步,点击下方的红色发布按钮,即可完成发布。 51 | 52 | 53 | 54 | 55 | 如何参与Mart? 56 | 57 | 第一步:在首页可以浏览所有正在进行的Mart,下拉页面,即可找到您想要参加的Mart。 58 | 第二步:点击Mart,既可以进入详情页,请仔细阅读Mart的介绍和说明,如有需要明确的信息,可以直接打电话给发布人进行核实。确认好信息后,按照要求:填写您的购买数量,选择取货地点和取货时间。即可完成购买。\n 59 | 如果您第一次购买,系统会要求您填写个人信息,请一定要如实填写,便于发布人与您沟通联系。\n 60 | 请您注意:发布人与参与人之间的Mart交易是自由自愿发生的。95创享科技公司不为任何一方进行担保,为保证您的切身利益,请一定要谨慎发起,谨慎参与,谢谢! 61 | 62 | 63 | 64 | 65 | 66 | 联系客服 67 | 68 | 您好,在您使用小程序的过程中,如有任何问题,都可以与我们联系。 69 | 70 | 电话:604-370-5100 71 | 邮件:customerservice@95cfun.com 72 | 客服微信:\n 73 | 74 | 75 | 76 | 77 | 78 | 79 | 我需要开发小程序 80 | 81 | 95创享科技承接各类软件开发:APP、小程序、网站、微信商城、公众号代运营等工作。 82 | 详情请垂询:604-370-5100 83 | 邮件:customerservice@95cfun.com 84 | 客服微信:\n 85 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /pages/personal/mineProgramYard/mineProgramYard.js: -------------------------------------------------------------------------------- 1 | // pages/personal/mineProgramYard/miniProgramYard.js 2 | var app = getApp(); 3 | var _this = null; 4 | Page({ 5 | 6 | /** 7 | * 页面的初始数据 8 | */ 9 | data: { 10 | yardImgSrc:null, //小程序码路径 11 | // hasAuthAlbum:false 12 | }, 13 | 14 | /** 15 | * 生命周期函数--监听页面加载 16 | */ 17 | onLoad: function (options) { 18 | console.log(app.globalData.userInfo) 19 | console.log(wx.getStorageSync("userId")) 20 | _this = this; 21 | _this.getProgramYard(wx.getStorageSync("userId")); 22 | 23 | }, 24 | 25 | /** 26 | * 生命周期函数--监听页面初次渲染完成 27 | */ 28 | onReady: function () { 29 | 30 | }, 31 | 32 | /** 33 | * 生命周期函数--监听页面显示 34 | */ 35 | onShow: function () { 36 | 37 | }, 38 | 39 | /** 40 | * 生命周期函数--监听页面隐藏 41 | */ 42 | onHide: function () { 43 | 44 | }, 45 | 46 | /** 47 | * 生命周期函数--监听页面卸载 48 | */ 49 | onUnload: function () { 50 | 51 | }, 52 | 53 | /** 54 | * 页面相关事件处理函数--监听用户下拉动作 55 | */ 56 | onPullDownRefresh: function () { 57 | 58 | }, 59 | 60 | /** 61 | * 页面上拉触底事件的处理函数 62 | */ 63 | onReachBottom: function () { 64 | 65 | }, 66 | 67 | /** 68 | * 用户点击右上角分享 69 | */ 70 | onShareAppMessage: function () { 71 | 72 | }, 73 | 74 | /* 自定义事件 */ 75 | //获取小程序码 76 | getProgramYard:function(userId){ 77 | console.log(userId); 78 | wx.request({ 79 | url: app.globalData.domain +'/userInfo/selectQRcode?userId='+userId, 80 | success:function(res){ 81 | console.log(res) 82 | if(res.statusCode == 200 && res.data.errorCode == 0){ 83 | _this.setData({ 84 | yardImgSrc:res.data.data 85 | }) 86 | } 87 | } 88 | }) 89 | }, 90 | 91 | //点击保存 92 | previewYard:function(){ 93 | wx.previewImage({ 94 | urls: [_this.data.yardImgSrc], 95 | }) 96 | 97 | }, 98 | 99 | //长按保存图片 100 | saveToAlbum:function(){ 101 | _this.getAuthorizeAlbum(); 102 | 103 | }, 104 | 105 | 106 | //是否授权访问相册 107 | getAuthorizeAlbum:function(){ 108 | wx.showLoading({ 109 | title: '保存中...', 110 | }) 111 | wx.getSetting({ 112 | success:function(res){ 113 | console.log(res) 114 | console.log(res.authSetting["scope.writePhotosAlbum"]) 115 | if (!res.authSetting["scope.writePhotosAlbum"]){ 116 | wx.authorize({ 117 | scope: 'scope.writePhotosAlbum', 118 | success:function(res){ 119 | // console.log("允许访问相册成功!"); 120 | _this.downloadSaveAlbum(); 121 | }, 122 | fail:function(res){ 123 | // console.log("不允许访问相册!"); 124 | wx.hideLoading(); 125 | _this.getOpenSettingAlbum(); 126 | } 127 | }) 128 | 129 | }else{ 130 | _this.downloadSaveAlbum(); 131 | } 132 | }, 133 | fail:function(){ 134 | wx.hideLoading(); 135 | // console.log("setFailOFail"); 136 | } 137 | }) 138 | }, 139 | 140 | //打开设置界面授权 141 | getOpenSettingAlbum:function(){ 142 | wx.openSetting({ 143 | success:function(res){ 144 | // console.log("成功打开授权设置!"); 145 | }, 146 | }) 147 | }, 148 | 149 | //保存到相册 150 | downloadSaveAlbum:function(){ 151 | wx.downloadFile({ 152 | url:_this.data.yardImgSrc, 153 | success:function(res){ 154 | console.log(res.tempFilePath) 155 | var downloadPath = res.tempFilePath; 156 | wx.saveImageToPhotosAlbum({ 157 | filePath: downloadPath, 158 | success: function () { 159 | wx.showModal({ 160 | content: '成功保存二维码到相册!', 161 | }) 162 | }, 163 | complete: function (res) { 164 | wx.hideLoading(); 165 | } 166 | }) 167 | 168 | },complete: function (res) { 169 | wx.hideLoading(); 170 | } 171 | }) 172 | 173 | 174 | } 175 | }) -------------------------------------------------------------------------------- /pages/release/release.wxss: -------------------------------------------------------------------------------- 1 | /* pages/release/release.wxss */ 2 | .container{ 3 | height: 100%; 4 | } 5 | .body{ 6 | background-color: #eee; /*灰色背景*/ 7 | font-size: 30rpx; 8 | overflow: auto; 9 | padding-bottom: 100rpx; 10 | } 11 | .containerView{ 12 | background-color: #FFFFFF; /*白色*/ 13 | margin-top: 3rpx; 14 | padding-left: 4%; 15 | padding-right: 4%; 16 | padding-top:4%; 17 | padding-bottom: 4%; 18 | font-size:30rpx; 19 | font-family: "微软雅黑"; 20 | } 21 | .topicInp{ 22 | width: 80%; 23 | display: inline-block; 24 | } 25 | .copySolitaire{ 26 | vertical-align: middle; 27 | padding-top: 2rpx; 28 | color:#2CBB6B; 29 | font-size: 28rpx; 30 | float: right; 31 | } 32 | .multiCont{ 33 | padding-left: 2.5%; 34 | display: none!important; 35 | } 36 | .describe{ 37 | height: 300rpx; 38 | position:relative; 39 | width:100%; 40 | } 41 | .number-limit{ 42 | width:100%; 43 | font-size:20rpx; 44 | text-align:right; 45 | } 46 | .greenfont{ 47 | color: #2CBB6B; 48 | } 49 | .phcolor,.phcolorhighlight{ 50 | color: #ddd; 51 | font-size: 30rpx; 52 | letter-spacing: 2rpx; 53 | font-family: "微软雅黑"; 54 | } 55 | .phcolorhighlight{ 56 | color: #ff6969; 57 | } 58 | .rowIconView{ 59 | display: flex; 60 | flex-direction: row; 61 | justify-content: space-between; 62 | align-items: center; 63 | } 64 | .rightShotImg{ 65 | width: 12rpx; 66 | height: 24rpx; 67 | } 68 | .input{ 69 | flex: 4; 70 | } 71 | .img-show{ 72 | position: relative; 73 | margin-right: 10rpx; 74 | margin-bottom:10rpx; 75 | z-index: 5; 76 | display: flex; 77 | flex-direction: column; 78 | } 79 | .upload_progress,.upload_fail{ 80 | /* background:#eee; */ 81 | height:30rpx; 82 | display:flex; 83 | justify-content:center; 84 | align-items:center; 85 | color:#2cbb6b; 86 | font-size:20rpx; 87 | } 88 | .upload_fail{ 89 | color:#ff6969; 90 | } 91 | .introImage{ 92 | height: 100rpx; 93 | width: 100rpx; 94 | z-index: 1 95 | } 96 | .delete-btn{ 97 | width: 30rpx; 98 | height: 30rpx; 99 | position: absolute; 100 | top:-5rpx; 101 | left:-5rpx; 102 | z-index: 10; 103 | } 104 | .del-icon{ 105 | width:100%; 106 | height:100%; 107 | } 108 | .center{ 109 | flex: 1; 110 | } 111 | .icon{ 112 | width: 40rpx; 113 | height: 40rpx; 114 | margin-right:10rpx; 115 | } 116 | picker{ 117 | width: 100%; 118 | } 119 | .elasticbox{ 120 | display:flex; 121 | justify-content:space-between; 122 | align-items:center; 123 | width: 100%; 124 | } 125 | .rightgreen,.rightred{ 126 | font-size:25rpx; 127 | color:#2CBB6B; 128 | margin-right:15rpx; 129 | text-align:right; 130 | } 131 | .rightred{ 132 | color:#ff6969; 133 | } 134 | .goodspicker{ 135 | display:flex; 136 | justify-content:row; 137 | align-items:center; 138 | } 139 | .goodsclass{ 140 | margin-left:120rpx; 141 | } 142 | .goodsMark{ 143 | width: 10rpx; 144 | height: 40rpx; 145 | background-color: #2CBB6B; /*绿色*/ 146 | } 147 | .imageIntroView{ 148 | display: flex; 149 | flex-direction: row; 150 | flex-wrap: wrap; 151 | height: auto; 152 | position:relative; 153 | } 154 | .uploadView,.uploadViewHighlight{ 155 | height: 100rpx; 156 | width: 100rpx; 157 | border-radius: 10rpx; 158 | background-color: #ddd; 159 | font-size: 25rpx; 160 | display: flex; 161 | flex-direction: column; 162 | flex-wrap: wrap; 163 | justify-content:center; 164 | align-items: center; 165 | color:#666; 166 | z-index: 5; 167 | } 168 | .uploadViewHighlight{ 169 | box-shadow:0 0 5px #ff6969; 170 | border:1px solid #ff6969; 171 | } 172 | .imgtip{ 173 | color:#ddd; 174 | position:absolute; 175 | width:73%; 176 | height:100rpx; 177 | right:4%; 178 | top:30rpx; 179 | z-index:1; 180 | display:flex; 181 | align-items:center; 182 | } 183 | .goodsListView{ 184 | display: flex; 185 | flex-direction: column; 186 | } 187 | 188 | .addGood{ 189 | display: flex; 190 | justify-content: center; 191 | 192 | } 193 | 194 | .foot_nav{ 195 | width:100%; 196 | height:100rpx; 197 | display: flex; 198 | justify-content: center; 199 | align-items: center; 200 | position: fixed; 201 | bottom:0%; 202 | left:0%; 203 | box-shadow: 1rpx -2rpx 5rpx #e6e6e6; 204 | z-index:10; 205 | } 206 | .foot_btn{ 207 | width:100%; 208 | text-align: center; 209 | color:#fff; 210 | /* background:linear-gradient(to top right, #EF1A79, 10rpx,#F96F89,#F67B74,#F7A07F); */ 211 | background:linear-gradient(40deg, #EF1A79, 5%,#FA7683,#F67B74,#F7A07F); 212 | font:40rpx/100rpx "微软雅黑"; 213 | border-radius: 0; 214 | } -------------------------------------------------------------------------------- /pages/detail/solitaireStatistics/solitaireStatistics.js: -------------------------------------------------------------------------------- 1 | // pages/detail/solitaireStatistics/solitaireStatistics.js 2 | var app = getApp(); 3 | 4 | Page({ 5 | 6 | /** 7 | * 页面的初始数据 8 | */ 9 | data: { 10 | pickerData:{ 11 | s_startDate: "", 12 | s_endDate: "", 13 | e_startDate: "", 14 | e_endDate:"", 15 | }, 16 | goodsList:[], 17 | jieLongId:"", 18 | allPeople:null, 19 | allPrice:null, 20 | startGsTime:null, 21 | endGsTime:null 22 | 23 | }, 24 | 25 | /** 26 | * 生命周期函数--监听页面加载 27 | */ 28 | onLoad: function (options) { 29 | //初始化时间 30 | console.log(options) 31 | this.data.jieLongId = options.jieLongId; 32 | this.initTime(); 33 | //初始化数据 34 | this.initData({ jielongId: this.data.jieLongId}); 35 | 36 | }, 37 | 38 | /** 39 | * 生命周期函数--监听页面初次渲染完成 40 | */ 41 | onReady: function () { 42 | 43 | }, 44 | 45 | /** 46 | * 生命周期函数--监听页面显示 47 | */ 48 | onShow: function () { 49 | 50 | }, 51 | 52 | /** 53 | * 生命周期函数--监听页面隐藏 54 | */ 55 | onHide: function () { 56 | 57 | }, 58 | 59 | /** 60 | * 生命周期函数--监听页面卸载 61 | */ 62 | onUnload: function () { 63 | 64 | }, 65 | 66 | /** 67 | * 页面相关事件处理函数--监听用户下拉动作 68 | */ 69 | onPullDownRefresh: function () { 70 | 71 | }, 72 | 73 | /** 74 | * 页面上拉触底事件的处理函数 75 | */ 76 | onReachBottom: function () { 77 | 78 | }, 79 | 80 | /** 81 | * 用户点击右上角分享 82 | */ 83 | onShareAppMessage: function () { 84 | 85 | }, 86 | 87 | //自定义事件 88 | //初始化时间 89 | initData: function (e){ 90 | var _this = this; 91 | wx.showLoading({ 92 | title: '数据搜索中...', 93 | }) 94 | console.log(e) 95 | wx.request({ 96 | url: app.globalData.domain + '/order/pickCount', 97 | method:"get", 98 | data:e, 99 | success:function(res){ 100 | console.log(res) 101 | if(res.statusCode == 200 && res.data.data.length){ 102 | _this.data.allPeople = null; 103 | _this.data.allPrice = null; 104 | res.data.data.forEach(function(ref){ 105 | _this.data.allPeople += ref.joinPeopleSum; 106 | _this.data.allPrice += ref.moneySum; 107 | }) 108 | _this.setData({ 109 | goodsList:res.data.data, 110 | allPeople: _this.data.allPeople, 111 | allPrice: _this.data.allPrice 112 | }) 113 | } 114 | }, 115 | complete:function(){ 116 | wx.hideLoading(); 117 | } 118 | }) 119 | 120 | }, 121 | 122 | initTime:function(){ 123 | var oneYearTime = new Date(new Date().getTime() - 365*24*60*60*1000); 124 | oneYearTime = oneYearTime.getFullYear() + "-" +(oneYearTime.getMonth()+1)+"-"+oneYearTime.getDate(); 125 | var todayTime = new Date(); 126 | todayTime = todayTime.getFullYear() + "-" + (todayTime.getMonth() + 1) + "-" + todayTime.getDate(); 127 | this.setData({ 128 | pickerData:{ 129 | s_startDate: oneYearTime, 130 | s_endDate: todayTime, 131 | e_endDate: todayTime 132 | } 133 | }) 134 | 135 | }, 136 | //开始时间选择 137 | s_picker:function(e){ 138 | var _this = this; 139 | this.setData({ 140 | showStartDate: e.detail.value, 141 | pickerData: { 142 | s_startDate: _this.data.pickerData.s_startDate, 143 | s_endDate: _this.data.pickerData.s_endDate, 144 | e_endDate: _this.data.pickerData.e_endDate, 145 | e_startDate: e.detail.value, 146 | 147 | } 148 | }) 149 | }, 150 | //结束时间选择 151 | e_picker: function (e) { 152 | console.log(e) 153 | this.setData({ 154 | showEndDate: e.detail.value 155 | }) 156 | }, 157 | //搜索 158 | searchByTime:function(e){ 159 | console.log(this) 160 | var _this = this; 161 | if(!_this.data.showStartDate){ 162 | wx.showToast({ 163 | title: '请输入开始时间!', 164 | duration: 2000, 165 | icon: "none" 166 | }) 167 | } else if(!_this.data.showEndDate) { 168 | wx.showToast({ 169 | title: '请输入结束时间!', 170 | duration: 2000, 171 | icon: "none" 172 | }) 173 | }else{ 174 | _this.data.startGsTime = _this.data.showStartDate; 175 | _this.data.endGsTime = _this.data.showEndDate; 176 | var data = { 177 | jielongId: _this.data.jieLongId, 178 | startTime: _this.data.showStartDate, 179 | endTime: _this.data.showEndDate 180 | } 181 | _this.initData(data); 182 | } 183 | 184 | }, 185 | //查看具体的某个商品 186 | navToGoods:function(e){ 187 | var item = e.currentTarget.dataset.item; 188 | item.startTime = this.data.startGsTime; 189 | item.endTime = this.data.endGsTime; 190 | wx.navigateTo({ 191 | url: './Goodsstatistics/Goodsstatistics?item=' + encodeURIComponent(JSON.stringify(e.currentTarget.dataset.item)), 192 | }) 193 | } 194 | 195 | 196 | }) -------------------------------------------------------------------------------- /pages/release/bindingPhone/bindingPhone.js: -------------------------------------------------------------------------------- 1 | // pages/release/bindingPhone/bindingPhone.js 2 | Page({ 3 | 4 | /** 5 | * 页面的初始数据 6 | */ 7 | data: { 8 | name: '', 9 | phone: '', 10 | id: '' 11 | }, 12 | 13 | /** 14 | * 生命周期函数--监听页面加载 15 | */ 16 | onLoad: function (options) { 17 | var that = this; 18 | var userid = wx.getStorageSync("userId") 19 | var app = getApp(); 20 | wx.showLoading({ 21 | title: 'loading', 22 | }) 23 | setTimeout(function () { 24 | wx.hideLoading(); //关闭模态框 25 | }, 60000) 26 | wx.request({ 27 | url: app.globalData.domain + '/userInfo/selectByUserId', 28 | data: { 29 | userId: userid 30 | }, 31 | header: { 32 | 'content-type': 'application/json' 33 | }, 34 | success: function (res) { 35 | if (res.data.data) { 36 | wx.hideLoading(); //关闭模态框 37 | console.log("success") 38 | var id = res.data.data.id; 39 | that.setData({ 40 | id: id 41 | }) 42 | } 43 | } 44 | }) 45 | }, 46 | 47 | /** 48 | * 生命周期函数--监听页面初次渲染完成 49 | */ 50 | onReady: function () { 51 | 52 | }, 53 | 54 | /** 55 | * 生命周期函数--监听页面显示 56 | */ 57 | onShow: function () { 58 | 59 | }, 60 | 61 | /** 62 | * 生命周期函数--监听页面隐藏 63 | */ 64 | onHide: function () { 65 | 66 | }, 67 | 68 | /** 69 | * 生命周期函数--监听页面卸载 70 | */ 71 | onUnload: function () { 72 | 73 | }, 74 | 75 | /** 76 | * 页面相关事件处理函数--监听用户下拉动作 77 | */ 78 | onPullDownRefresh: function () { 79 | 80 | }, 81 | 82 | /** 83 | * 页面上拉触底事件的处理函数 84 | */ 85 | onReachBottom: function () { 86 | 87 | }, 88 | 89 | /** 90 | * 用户点击右上角分享 91 | */ 92 | onShareAppMessage: function () { 93 | 94 | }, 95 | //检查手机号 96 | telCheck: function (e) { 97 | console.log(e.detail.value) 98 | var phone = e.detail.value; 99 | if (!(/^\d{10}$/.test(phone))) { 100 | wx.showModal({ 101 | title: '提示', 102 | content: '请输入正确号码', 103 | confirmColor: "#2CBB6B", 104 | showCancel: false, 105 | success: function (res) { 106 | if (res.confirm) { 107 | console.log('用户点击确定') 108 | } 109 | } 110 | }) 111 | return false; 112 | } 113 | }, 114 | //提交信息 115 | formSubmit: function (e) { 116 | var page = this; 117 | var app = getApp(); 118 | wx.showLoading({ 119 | title: 'loading', 120 | mask: true 121 | }) 122 | setTimeout(function () { 123 | wx.hideLoading(); //关闭模态框 124 | }, 60000) 125 | var name = e.detail.value.name; 126 | var phone = e.detail.value.phone; 127 | var userId = wx.getStorageSync('userId'); 128 | var id = page.data.id; 129 | console.log('用户信息为:', name + phone + id + userId) 130 | if (!e.detail.value.name) { 131 | wx.hideLoading(); //关闭模态框 132 | wx.showModal({ 133 | title: '提示', 134 | content: '请输入姓名', 135 | confirmColor: "#2CBB6B", 136 | showCancel: false, 137 | success: function (res) { 138 | if (res.confirm) { 139 | console.log('用户点击确定') 140 | } 141 | } 142 | }) 143 | } else if (!(/^\d{10}$/.test(phone))) { 144 | wx.hideLoading(); //关闭模态框 145 | wx.showModal({ 146 | title: '提示', 147 | content: '请输入正确手机号码(提示:手机号码10位)', 148 | confirmColor: "#2CBB6B", 149 | showCancel: false, 150 | success: function (res) { 151 | console.log(res) 152 | if (res.confirm) { 153 | console.log('用户点击确定') 154 | } 155 | } 156 | }) 157 | } else { 158 | wx.request({ 159 | url: app.globalData.domain + '/userInfo/update', 160 | method: 'POST', 161 | data: { 162 | name: name, 163 | phoneNumber: phone, 164 | userId: userId, 165 | id: id 166 | }, 167 | header: { 168 | 'content-type': 'application/json' 169 | }, 170 | success: function (res) { 171 | if (res.statusCode == 200 && res.data.data == 1) { 172 | wx.hideLoading(); //关闭模态框 173 | wx.showToast({ 174 | title: '保存成功!', 175 | icon: 'success', 176 | mask: true, 177 | duration: 2000 178 | }) 179 | setTimeout(function () { 180 | wx.hideToast() 181 | wx.navigateBack({ 182 | delta: 1 183 | }) 184 | }, 1500) 185 | } else { 186 | wx.hideLoading(); //关闭模态框 187 | wx.showModal({ 188 | title: '提示', 189 | content: '保存失败!请重试', 190 | confirmColor: "#2CBB6B", 191 | showCancel: false, 192 | success: function (res) { 193 | if (res.confirm) { 194 | console.log('用户点击确定') 195 | } 196 | } 197 | }) 198 | } 199 | console.log("绑定手机成功") 200 | } 201 | }) 202 | } 203 | } 204 | }) -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- 1 | App({ 2 | 3 | onLaunch: function () { 4 | 5 | // this.getPermissions() //获取权限 6 | this.getUserInfo(); 7 | 8 | 9 | }, 10 | 11 | checkLogin:function(){ 12 | var self = this 13 | var session = wx.getStorageSync("session"); 14 | if (session) { 15 | wx.checkSession({ 16 | success: function () { 17 | //session 未过期,并且在本生命周期一直有效 18 | console.log("用户id:" + wx.getStorageSync("userId")); 19 | }, 20 | fail: function () { 21 | //登录态过期 22 | self.login() //重新登录 23 | } 24 | 25 | }) 26 | } else { 27 | console.log('登录') 28 | self.login() 29 | } 30 | 31 | } , 32 | 33 | //登录方法 34 | login: function () { 35 | var self = this; 36 | wx.login({ 37 | success: function (res) { 38 | 39 | var code = res.code 40 | if (code) { 41 | console.log('获取用户登录凭证:' + code); 42 | // console.log(self.globalData) 43 | var loginParams = {code:code}; 44 | if (self.globalData.parentUserId){ 45 | loginParams.parentUserId = self.globalData.parentUserId; 46 | } 47 | // console.log(loginParams); 48 | // 发送 res.code 到后台登录 49 | wx.request({ 50 | url: self.globalData.domain + '/user/login', 51 | data:loginParams, 52 | success: function (res) { 53 | console.log(res.data) 54 | var response = res.data; 55 | if (response.errorCode == 0) { //登录成功 56 | var userId = response.data.userId; 57 | console.log(userId) 58 | wx.setStorageSync("session", response.data.sessionId) 59 | wx.setStorageSync("userId", userId) 60 | 61 | //插入用户信息 62 | console.log('插入用户信息') 63 | self.insertUserInfo(); 64 | 65 | } 66 | 67 | }, 68 | fail: function (error) { 69 | console.log(error) 70 | } 71 | }) 72 | 73 | } else { 74 | console.log('获取用户登录态失败:' + res.errMsg); 75 | } 76 | } 77 | }) 78 | }, 79 | 80 | insertUserInfo:function(){ 81 | var self = this; 82 | var data={ 83 | userId: wx.getStorageSync("userId"), 84 | nickName: this.globalData.userInfo.nickName, 85 | avatarUrl: this.globalData.userInfo.avatarUrl 86 | } 87 | console.log(data) 88 | wx.request({ 89 | url: this.globalData.domain + '/userInfo/insert', 90 | method:'POST', 91 | data:data, 92 | success:function(res){ 93 | var response = res.data; 94 | if(response.errorCode==0){ 95 | console.log('插入信息成功'); 96 | // this.login(); 97 | } 98 | }, 99 | fail:function(err){ 100 | } 101 | 102 | }) 103 | }, 104 | showAutoModal: function (perssionName) { 105 | console.log('强行获取权限') 106 | var self=this 107 | wx.showModal({ 108 | title: '微信授权', 109 | content: '允许获取你的公开信息(昵称、头像等)和位置', 110 | confirmText:'去授权', 111 | showCancel: false, 112 | success: function (res) { 113 | if (res.confirm) { 114 | wx.openSetting({ 115 | success: function (res) { 116 | console.log(res); 117 | if (!res.authSetting[perssionName] ) { // 118 | console.log('授权未成功') 119 | //递归获取权限,直到授权成功 120 | //self.showAutoModal(perssionName) 121 | if (perssionName == 'scope.userLocation') { 122 | //获取用户信息 123 | self.showAutoModal(perssionName) 124 | } 125 | }else{ 126 | if (perssionName == 'scope.userInfo'){ 127 | //获取用户信息 128 | self.getUserInfo() 129 | } 130 | } 131 | } 132 | }) 133 | } 134 | } 135 | }) 136 | }, 137 | //授权 138 | getPermissions:function(){ 139 | 140 | var self = this 141 | wx.getSetting({ 142 | success(res){ 143 | if (!res.authSetting['scope.userInfo']){ 144 | console.log('没有授权个人信息') 145 | //获取个人信息 146 | wx.authorize({ 147 | scope: 'scope.userInfo', 148 | success() { 149 | console.log('授权成功') 150 | //获取用户信息 151 | self.getUserInfo() 152 | }, 153 | fail() { //授权失败 154 | console.log('授权失败') 155 | // self.showAutoModal('scope.userInfo') 156 | } 157 | }) 158 | }else{ 159 | //获取用户信息 160 | self.getUserInfo() 161 | } 162 | if (!res.authSetting['scope.userLocation']) { 163 | //获取位置权限 164 | wx.authorize({ 165 | scope: 'scope.userLocation', 166 | fail() { //授权失败,重新获取所有权限 167 | self.showAutoModal('scope.userLocation') 168 | } 169 | }) 170 | } 171 | 172 | } 173 | }) 174 | 175 | 176 | } , 177 | getUserInfo: function () { 178 | var self = this 179 | wx.getUserInfo({ 180 | success:function(res){ 181 | console.log(res) 182 | self.globalData.userInfo = res.userInfo; 183 | self.checkLogin(); 184 | }, 185 | fail:function(res){ 186 | console.log(res) 187 | } 188 | }) 189 | 190 | }, 191 | 192 | 193 | 194 | //全局数据 195 | globalData: { 196 | userInfo: null, 197 | parentUserId:null, 198 | domain: "https://www.95cfuns.com", 199 | domainUpload: "https://upload.95cfuns.com/", 200 | //大小:宽度110px,高度110px,质量80% 201 | xOssProcess: "?x-oss-process=image/resize,w_350,h_350", 202 | swiperXOssProcess:"?x-oss-process=image/resize,w_750,h_320", 203 | // domain: "http://47.100.12.188:8081", 204 | // domain: "http://192.168.1.108:8081", 205 | classifyData:[], 206 | firstClassify:[], //分类一级数据 207 | secondClassify:[], //分类二级数据 208 | initClassify:[] 209 | } 210 | 211 | }) 212 | -------------------------------------------------------------------------------- /pages/personal/personal.js: -------------------------------------------------------------------------------- 1 | // 获取全局应用程序实例对象 2 | var app = getApp(); 3 | 4 | // 创建页面实例对象 5 | Page({ 6 | /** 7 | * 页面名称 8 | */ 9 | name: "personal", 10 | /** 11 | * 页面的初始数据 12 | */ 13 | 14 | data: { 15 | userDetialList: [{ 16 | mineIcon: "../../images/mine/training.png", 17 | mineName: "我发起的Mart", 18 | rlCont: "0个", 19 | navUrl: "./mineJieLong/mineJieLong" 20 | }, { 21 | mineIcon: "../../images/mine/supplier-features.png", 22 | mineName: "我参与的Mart", 23 | mineMarginTop: "mineMarginTop", 24 | rlCont: "0次", 25 | navUrl: "./joinJieLong/joinJieLong" 26 | }, { 27 | mineIcon: "../../images/mine/personal-center.png", 28 | mineName: "个人资料", 29 | navUrl: "./userInfo/userInfo" 30 | }, { 31 | mineIcon: "../../images/mine/yard.png", 32 | mineName: "我的专属二维码", 33 | mineMarginTop: "mineMarginTop", 34 | navUrl: "./mineProgramYard/mineProgramYard" 35 | }, { 36 | mineIcon: "../../images/mine/map.png", 37 | mineName: "取货点及时间管理", 38 | navUrl: "./address/address", 39 | mineMarginTop: "mineMarginTop" 40 | }, { 41 | mineIcon: "../../images/mine/comments.png", 42 | mineName: "帮助中心", 43 | navUrl: "./helpCenter/helpCenter" 44 | }], 45 | userInfo: {}, 46 | initUserInfo: false, 47 | phoneNumber: "6043705100",//电话客服联系电话 48 | bo_zan: 0,//电话客服在线时间判断 49 | startPhoneTime: "9:30",//电话客服在线时间 50 | endPhoneTime: "18:00",//电话客服在线时间 51 | 52 | 53 | }, 54 | 55 | /** 56 | * 生命周期函数--监听页面加载 57 | */ 58 | onLoad() { 59 | 60 | }, 61 | 62 | /** 63 | * 生命周期函数--监听页面初次渲染完成 64 | */ 65 | onReady() { 66 | 67 | }, 68 | 69 | /** 70 | * 生命周期函数--监听页面显示 71 | */ 72 | onShow() { 73 | if (app.globalData.userInfo) { 74 | this.setData({ 75 | initUserInfo: true, 76 | userInfo: app.globalData.userInfo 77 | }) 78 | } 79 | //初始化mart数据 80 | this.initData(); 81 | this.formatTime(); 82 | }, 83 | 84 | /** 85 | * 生命周期函数--监听页面隐藏 86 | */ 87 | onHide() { 88 | 89 | }, 90 | 91 | /** 92 | * 生命周期函数--监听页面卸载 93 | */ 94 | onUnload() { 95 | 96 | }, 97 | 98 | /** 99 | * 页面相关事件处理函数--监听用户下拉动作 100 | */ 101 | onPullDownRefresh() { 102 | 103 | }, 104 | 105 | onShareAppMessage: function (res) { 106 | }, 107 | 108 | 109 | //以下为自定义点击事件 110 | // 自定义事件 111 | //获取发起/参与mart数 112 | initData: function (e) { 113 | var _this = this; 114 | wx.request({ 115 | url: app.globalData.domain + '/jielong/selectByUserId', 116 | method: "GET", 117 | data: { userId: wx.getStorageSync("userId") }, 118 | success: function (res) { 119 | console.log(res) 120 | if (res.statusCode == 200 && res.data.data.length) { 121 | _this.data.userDetialList[0].rlCont = res.data.data.length + "个"; 122 | _this.setData({ 123 | userDetialList: _this.data.userDetialList 124 | }) 125 | } 126 | } 127 | }); 128 | 129 | wx.request({ 130 | url: app.globalData.domain + '/order/selectByCustomerId', 131 | data: { 132 | customerId: wx.getStorageSync("userId") 133 | }, 134 | success: function (res) { 135 | if (res.statusCode == 200 && res.data.data.length) { 136 | _this.data.userDetialList[1].rlCont = res.data.data.length + "个"; 137 | _this.setData({ 138 | userDetialList: _this.data.userDetialList 139 | }) 140 | } 141 | } 142 | }) 143 | }, 144 | userInfoHandler: function (e) { 145 | console.log(e) 146 | }, 147 | //获取登陆用户信息 148 | getUserInfo: function (res) { 149 | var _this = this; 150 | var navUrl = res.currentTarget.dataset.navurl; 151 | if (res.detail.rawData) { 152 | if (!app.globalData.userInfo) { 153 | wx.showLoading({ 154 | title: "数据加载中...", 155 | mask: true 156 | }) 157 | app.globalData.userInfo = JSON.parse(res.detail.rawData); 158 | app.login(); 159 | _this.initData(); 160 | setTimeout(function () { 161 | wx.navigateTo({ 162 | url: navUrl, 163 | complete: function () { 164 | wx.hideLoading(); 165 | } 166 | }) 167 | }, 2000) 168 | } else { 169 | wx.navigateTo({ 170 | url: res.currentTarget.dataset.navurl 171 | }) 172 | } 173 | } else { 174 | 175 | } 176 | }, 177 | getUserInfo2: function (res) { 178 | var _this = this; 179 | var navUrl = res.currentTarget.dataset.navurl; 180 | if (res.detail.rawData) { 181 | if (!app.globalData.userInfo) { 182 | wx.showLoading({ 183 | title: "数据加载中...", 184 | mask: true 185 | }) 186 | app.globalData.userInfo = JSON.parse(res.detail.rawData); 187 | app.login(); 188 | _this.initData(); 189 | _this.setData({ 190 | initUserInfo: true, 191 | userInfo: app.globalData.userInfo 192 | }) 193 | setTimeout(function () { 194 | _this.initData(); 195 | wx.hideLoading(); 196 | }, 2000) 197 | } 198 | } else { 199 | 200 | } 201 | }, 202 | phone_bozan: function (e) { 203 | // console.log(this.data.bo_zan); 204 | var _this = this; 205 | if (!_this.data.bo_zan) { 206 | wx.makePhoneCall({ 207 | phoneNumber: _this.data.phoneNumber 208 | }) 209 | } else { 210 | wx.showModal({ 211 | title: '提示', 212 | content: '客服热线工作时间是9:30-18:00,非工作时间请使用联系客服功能!', 213 | }) 214 | } 215 | 216 | }, 217 | formatTime: function () { 218 | var st_arr = this.data.startPhoneTime.split(":"); 219 | var end_arr = this.data.endPhoneTime.split(":"); 220 | var s_date = new Date(); 221 | var e_date = new Date(); 222 | var n_date = new Date(); 223 | 224 | s_date.setHours(st_arr[0]); 225 | s_date.setMinutes(st_arr[1]); 226 | e_date.setHours(end_arr[0]); 227 | e_date.setMinutes(end_arr[1]); 228 | 229 | if (n_date.getTime() > s_date.getTime() && n_date.getTime() < e_date.getTime()) { 230 | this.setData({ bo_zan: 0 }) 231 | } else { 232 | this.setData({ bo_zan: 1 }) 233 | } 234 | }, 235 | 236 | 237 | 238 | 239 | }) 240 | 241 | -------------------------------------------------------------------------------- /pages/personal/userInfo/userInfo.js: -------------------------------------------------------------------------------- 1 | // pages/personal/userInfo/userInfo.js 2 | Page({ 3 | 4 | /** 5 | * 页面的初始数据 6 | */ 7 | data: { 8 | name: '', 9 | phone: '', 10 | email: '', 11 | detail: '', 12 | id: '' 13 | }, 14 | 15 | /** 16 | * 生命周期函数--监听页面加载 17 | */ 18 | onLoad: function (options) { 19 | var page = this; 20 | var userid = wx.getStorageSync("userId") 21 | var app = getApp(); 22 | wx.showLoading({ 23 | title: 'loading', 24 | mask: true 25 | }) 26 | setTimeout(function () { 27 | wx.hideLoading(); //关闭模态框 28 | }, 60000) 29 | wx.request({ 30 | url: app.globalData.domain + '/userInfo/selectByUserId', 31 | data: { 32 | userId: userid 33 | }, 34 | header: { 35 | 'content-type': 'application/json' 36 | }, 37 | success: function (res) { 38 | console.log(res.data) 39 | console.log(res.data.data) 40 | if (res.data.data) { 41 | wx.hideLoading(); //关闭模态框 42 | console.log("success") 43 | var name = res.data.data.name; 44 | var phone = res.data.data.phoneNumber; 45 | var email = res.data.data.email; 46 | var detail = res.data.data.deliveryAddress; 47 | var id = res.data.data.id; 48 | page.setData({ 49 | name: name, 50 | phone: phone, 51 | email: email, 52 | detail: detail, 53 | id: id, 54 | oldname: name, 55 | oldphone: phone, 56 | oldemail: email, 57 | olddetail: detail 58 | }) 59 | } 60 | //console.log(info+"222"+"id:"+id) 61 | } 62 | }) 63 | }, 64 | 65 | /** 66 | * 生命周期函数--监听页面初次渲染完成 67 | */ 68 | onReady: function () { 69 | 70 | }, 71 | 72 | /** 73 | * 生命周期函数--监听页面显示 74 | */ 75 | onShow: function () { 76 | 77 | }, 78 | 79 | /** 80 | * 生命周期函数--监听页面隐藏 81 | */ 82 | onHide: function () { 83 | 84 | }, 85 | 86 | /** 87 | * 生命周期函数--监听页面卸载 88 | */ 89 | onUnload: function () { 90 | 91 | }, 92 | 93 | /** 94 | * 页面相关事件处理函数--监听用户下拉动作 95 | */ 96 | onPullDownRefresh: function () { 97 | 98 | }, 99 | 100 | /** 101 | * 页面上拉触底事件的处理函数 102 | */ 103 | onReachBottom: function () { 104 | 105 | }, 106 | 107 | /** 108 | * 用户点击右上角分享 109 | */ 110 | onShareAppMessage: function () { 111 | 112 | }, 113 | //检查手机号 114 | telCheck: function (e) { 115 | console.log(e.detail.value) 116 | var phone = e.detail.value; 117 | if (!(/^\d{10}$/.test(phone))) { 118 | wx.showModal({ 119 | title: '提示', 120 | content: '请输入正确号码', 121 | confirmColor: "#2CBB6B", 122 | showCancel: false, 123 | success: function (res) { 124 | if (res.confirm) { 125 | console.log('用户点击确定') 126 | } 127 | } 128 | }) 129 | return false; 130 | } 131 | }, 132 | //提交信息 133 | formSubmit: function (e) { 134 | var page = this; 135 | var app = getApp(); 136 | wx.showLoading({ 137 | title: 'loading', 138 | mask: true 139 | }) 140 | setTimeout(function () { 141 | wx.hideLoading(); //关闭模态框 142 | }, 60000) 143 | console.log('form发生了submit事件,携带数据为:', e.detail.value) 144 | var name = e.detail.value.name; 145 | var phone = e.detail.value.phone; 146 | var email = e.detail.value.email; 147 | var detail = e.detail.value.detail; 148 | var userId = wx.getStorageSync('userId'); 149 | var oldname = this.data.oldname; 150 | var oldphone = this.data.oldphone; 151 | var oldemail = this.data.oldemail; 152 | var olddetail = this.data.olddetail; 153 | var id = page.data.id; 154 | console.log('用户信息为:', name + phone + email + detail + userId) 155 | console.log('旧信息为:', oldname + oldphone + oldemail + olddetail) 156 | if (!e.detail.value.name) { 157 | wx.hideLoading(); //关闭模态框 158 | wx.showModal({ 159 | title: '提示', 160 | content: '请输入姓名', 161 | confirmColor: "#2CBB6B", 162 | showCancel: false, 163 | success: function (res) { 164 | if (res.confirm) { 165 | console.log('用户点击确定') 166 | } 167 | } 168 | }) 169 | } else if (!(/^\d{10}$/.test(phone))) { 170 | wx.hideLoading(); //关闭模态框 171 | wx.showModal({ 172 | title: '提示', 173 | content: '请输入你的手机号(提示:手机号码10位)', 174 | confirmColor: "#2CBB6B", 175 | showCancel: false, 176 | success: function (res) { 177 | console.log(res) 178 | if (res.confirm) { 179 | console.log('用户点击确定') 180 | } 181 | } 182 | }) 183 | } else { 184 | if (name == oldname && phone == oldphone && email == oldemail && detail == olddetail){ 185 | wx.hideLoading(); //关闭模态框 186 | wx.navigateBack({ 187 | delta: 1 188 | }) 189 | }else{ 190 | wx.request({ 191 | url: app.globalData.domain + '/userInfo/update', 192 | method: 'POST', 193 | data: { 194 | name: name, 195 | phoneNumber: phone, 196 | email: email, 197 | deliveryAddress: detail, 198 | //userId: userId, 199 | id: id 200 | }, 201 | header: { 202 | 'content-type': 'application/json' 203 | }, 204 | success: function (res) { 205 | console.log(res) 206 | if (res.statusCode == 200 && res.data.data == 1) { 207 | wx.hideLoading(); //关闭模态框 208 | wx.showToast({ 209 | title: '保存成功!', 210 | icon: 'success', 211 | mask: true, 212 | duration: 2000 213 | }) 214 | setTimeout(function () { 215 | wx.hideToast() 216 | page.onLoad() 217 | // wx.navigateBack({ 218 | // delta: 1 219 | // }) 220 | }, 1500) 221 | } else { 222 | wx.hideLoading(); //关闭模态框 223 | wx.showModal({ 224 | title: '提示', 225 | content: '保存失败!请重试', 226 | confirmColor: "#2CBB6B", 227 | showCancel: false, 228 | success: function (res) { 229 | if (res.confirm) { 230 | console.log('用户点击确定') 231 | } 232 | } 233 | }) 234 | } 235 | } 236 | }) 237 | } 238 | } 239 | } 240 | }) -------------------------------------------------------------------------------- /pages/index/index.js: -------------------------------------------------------------------------------- 1 | // 获取全局应用程序实例对象 2 | var app = getApp(); 3 | var pageNum = 1; //页数 4 | 5 | // 创建页面实例对象 6 | Page({ 7 | /** 8 | * 页面名称 9 | */ 10 | name: "index", 11 | /** 12 | * 页面的初始数据 13 | */ 14 | 15 | data: { 16 | appGlobalUrl: app.globalData.domain, 17 | appGlobalHost: app.globalData.domainUpload, 18 | xOssProcess: app.globalData.xOssProcess, 19 | swiperXOssProcess: app.globalData.swiperXOssProcess, 20 | swiperList: [], //轮播图片数据 21 | containerList: [], //首页内容数据 22 | showLoading: false, 23 | pageSize: 10, //每页加载的数据量 24 | jielongAllCount:0, //总的页数 25 | showAllData:false, //是否加载完所有的数据 26 | 27 | }, 28 | 29 | /** 30 | * 生命周期函数--监听页面加载 31 | */ 32 | onLoad(e) { 33 | // console.log(e) 34 | console.log(app.globalData.userInfo) 35 | if (e.parentUserId){ 36 | //上级分销者 37 | app.globalData.parentUserId = e.parentUserId 38 | } 39 | 40 | // mart首页所有的数据量 41 | this.selectAllCount(); 42 | // 加载首页轮播图片 43 | this.loadSwiperImg(); 44 | //加载内容 45 | this.loadContainer(pageNum); 46 | 47 | }, 48 | 49 | /** 50 | * 生命周期函数--监听页面初次渲染完成 51 | */ 52 | onReady() { 53 | 54 | }, 55 | 56 | /** 57 | * 生命周期函数--监听页面显示 58 | */ 59 | onShow() { 60 | //消息接口 61 | var app = getApp(); 62 | var _this = this; 63 | var userId = wx.getStorageSync("userId"); 64 | wx.request({ 65 | url: app.globalData.domain + '/userMessage/selectByUserId', 66 | data: { 67 | userId: userId 68 | }, 69 | header: { 70 | 'content-type': 'application/json' 71 | }, 72 | success: function (res) { 73 | for(var i=0;i 2 | 3 | 4 | 5 | 6 | 7 | 8 | {{goodstopic}} 9 | 10 | {{goodsdata}}  |  {{person}}人浏览 11 | 12 | {{goodsdescribe}} 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | {{item.mineName}} 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | {{item.serverPaths.length}}张 41 | 42 | 43 | {{item.name}} 44 | ${{item.price}}/{{item.specification}} 45 | Mart剩余{{item.repertory}} 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 您已参与{{item.sum}}份 57 | 58 | 59 | 60 | 61 | 62 | 63 | {{selectAddresses}} 64 | 65 | 66 | 67 | 68 | 69 | 70 | 还差{{Group-joingoodsnum}}件商品拼成 71 | 拼团成功(已有{{joingoodsnum}}件商品参团),可直接下单 72 | 最小成团数量:{{Group}} 73 | 74 | 75 | 76 | 77 | 78 | 79 | {{item.recordNumber}} 80 | {{item.recordText}} 81 | 82 | 83 | 84 | 85 | 86 | 87 | NO.{{index+1}} 88 | 89 | 90 | {{item.username}} 91 | 92 | +{{item.joinnumber}} 93 | {{item.partakedate}} 94 | 95 | 96 | 参与记录 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | {{item.navText}} 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 取货标记 114 | Mart统计 115 | 结束Mart 116 | 117 | 复制本条Mart 118 | 开启新的Mart 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 132 | 133 | 134 | 135 | 137 | 138 | 139 | 140 | 144 | 点击小程序码-长按保存图片 145 | 可转发到朋友圈 146 | 147 | 148 | -------------------------------------------------------------------------------- /pages/detail/addrRemake/addrRemake.js: -------------------------------------------------------------------------------- 1 | // pages/detail/addrRemake/addrRemake.js 2 | var app = getApp(); 3 | 4 | Page({ 5 | 6 | /** 7 | * 页面的初始数据 8 | */ 9 | data: { 10 | items:[], 11 | isShow:false, 12 | jieLongId:"", 13 | pickNum:false, 14 | abcSort: ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "N", "M", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"] 15 | 16 | }, 17 | 18 | /** 19 | * 生命周期函数--监听页面加载 20 | */ 21 | onLoad: function (options) { 22 | //初始化页面数据 23 | this.initData(options.jieLongId); 24 | 25 | }, 26 | 27 | /** 28 | * 生命周期函数--监听页面初次渲染完成 29 | */ 30 | onReady: function () { 31 | 32 | }, 33 | 34 | /** 35 | * 生命周期函数--监听页面显示 36 | */ 37 | onShow: function () { 38 | 39 | }, 40 | 41 | /** 42 | * 生命周期函数--监听页面隐藏 43 | */ 44 | onHide: function () { 45 | 46 | }, 47 | 48 | /** 49 | * 生命周期函数--监听页面卸载 50 | */ 51 | onUnload: function () { 52 | 53 | }, 54 | 55 | /** 56 | * 页面相关事件处理函数--监听用户下拉动作 57 | */ 58 | onPullDownRefresh: function () { 59 | 60 | }, 61 | 62 | /** 63 | * 页面上拉触底事件的处理函数 64 | */ 65 | onReachBottom: function () { 66 | 67 | }, 68 | 69 | /** 70 | * 用户点击右上角分享 71 | */ 72 | onShareAppMessage: function () { 73 | 74 | }, 75 | 76 | //公共事件 77 | //多选框按钮 78 | initData: function (jieLongId){ 79 | var _this = this; 80 | _this.data.jieLongId = jieLongId; 81 | wx.request({ 82 | url: app.globalData.domain + '/order/selectPickOrder', 83 | method: "GET", 84 | data: { 85 | jielongId: jieLongId 86 | }, 87 | success: function (res) { 88 | console.log(res) 89 | if (res.statusCode == 200) { 90 | //初始化自提 91 | // _this.formatData(res.data.data); 92 | _this.initAddr(_this.formatData(res.data.data),jieLongId); 93 | } 94 | } 95 | }) 96 | }, 97 | 98 | //格式化数据 99 | formatData:function(data){ 100 | var arr = []; 101 | if(data.length){ 102 | data.forEach(function(item,index){ 103 | item[1][0].addrAndTime = item[0]; 104 | item[1][0].addrAndTimeIndex = index; 105 | arr = arr.concat(item[1]); 106 | }) 107 | } 108 | // console.log(arr) 109 | return arr; 110 | }, 111 | 112 | //初始化自提 113 | initAddr: function (data, jieLongId){ 114 | console.log(data); 115 | var _this = this; 116 | var checkLength = 0; 117 | if(data.length){ 118 | data.forEach(function(item,index,datas){ 119 | if(item.state == 3){ 120 | item.checked = true; 121 | checkLength++; 122 | } 123 | }) 124 | if (checkLength == data.length){ 125 | _this.data.isShow = true; 126 | } 127 | } 128 | _this.setData({ 129 | items: data, 130 | jieLongId: jieLongId, 131 | pickNum: data.length, 132 | isShow: _this.data.isShow 133 | }) 134 | }, 135 | 136 | checkboxChange:function(e){ 137 | var _this = this; 138 | // console.log(e.detail.value) 139 | // console.log(e.detail.value.length) 140 | // console.log(_this.data.items.length) 141 | if (e.detail.value.length == _this.data.items.length) { 142 | _this.setData({ 143 | isShow: true 144 | }) 145 | } else { 146 | _this.setData({ 147 | isShow: false 148 | }) 149 | } 150 | _this.data.items.forEach(function (res) { 151 | if (res.checked) { 152 | delete res.checked; 153 | } 154 | }) 155 | if (e.detail.value.length){ 156 | e.detail.value.forEach(function(res,index){ 157 | _this.data.items = _this.data.items.map(function (resItem) { 158 | if (resItem.orderNum == res) { 159 | resItem.checked = "true"; 160 | } 161 | return resItem; 162 | }) 163 | }) 164 | // console.log(_this.data.items) 165 | } 166 | }, 167 | //全选 168 | checkAll:function(e){ 169 | var _this = this; 170 | _this.data.isShow = !_this.data.isShow; 171 | if (_this.data.isShow) { 172 | _this.data.items.forEach(function (e) { 173 | if (!e.checked) { 174 | e.checked = "true" 175 | } 176 | }) 177 | console.log(_this.data.items) 178 | _this.setData({ 179 | items: _this.data.items, 180 | isShow: !e.currentTarget.dataset.show 181 | }) 182 | } else { 183 | _this.data.items.forEach(function (e) { 184 | if (e.checked) { 185 | delete e.checked 186 | } 187 | }) 188 | console.log(_this.data.items) 189 | _this.setData({ 190 | items: _this.data.items, 191 | isShow: !e.currentTarget.dataset.show 192 | }) 193 | } 194 | }, 195 | 196 | //确认提货 197 | saveRemake:function(e){ 198 | var _this = this; 199 | var jsonStr = []; 200 | _this.data.items.forEach(function (item) { 201 | var obj = {}; 202 | if (item.checked) { 203 | obj.orderNum = item.orderNum; 204 | obj.state = 3; 205 | }else{ 206 | obj.orderNum = item.orderNum; 207 | obj.state = 2; 208 | } 209 | jsonStr.push(obj); 210 | }) 211 | if(jsonStr.length){ 212 | console.log(jsonStr) 213 | var orderNumList = jsonStr 214 | wx.request({ 215 | url: app.globalData.domain + '/order/signPick', 216 | method:"POST", 217 | data:{ 218 | orderNumList 219 | }, 220 | success:function(res){ 221 | if(res.statusCode == 200){ 222 | wx.showToast({ 223 | title: '操作成功!', 224 | duration: 2000 225 | }) 226 | // _this.initData(_this.data.jieLongId); 227 | }else{ 228 | wx.showToast({ 229 | title: res.data.errorMessage || '操作失败!', 230 | duration: 2000, 231 | icon:"none" 232 | }) 233 | } 234 | 235 | } 236 | }) 237 | }else{ 238 | wx.showToast({ 239 | title: '请选择订单!', 240 | duration: 2000, 241 | icon: "none" 242 | }) 243 | 244 | } 245 | }, 246 | // 导出订单 247 | downloadOrder:function(){ 248 | var _this = this; 249 | wx.showLoading({ 250 | title: '数据加载中...', 251 | mask:true 252 | }) 253 | console.log(_this.data.jieLongId); 254 | wx.request({ 255 | url: app.globalData.domain + '/downloadOrder?jielongId=' + _this.data.jieLongId, 256 | success:function(res){ 257 | console.log(res) 258 | var domainUploadData = res.data; 259 | console.log(app.globalData.domainUpload + "/" + domainUploadData) 260 | wx.downloadFile({ 261 | url: app.globalData.domainUpload + "/" + domainUploadData, 262 | success: function (res) { 263 | console.log(res) 264 | var filePath = res.tempFilePath 265 | // wx.saveFile({ 266 | // tempFilePath: filePath, 267 | // success: function (res) { 268 | // console.log(res) 269 | // var savedFilePath = res.savedFilePath 270 | wx.openDocument({ 271 | filePath: filePath, 272 | success: function (res) { 273 | console.log('打开文档成功'); 274 | }, 275 | complete: function (res) { 276 | console.log(res) 277 | wx.hideLoading(); 278 | } 279 | }) 280 | // } 281 | // }) 282 | }, 283 | complete: function (res) { 284 | console.log(res) 285 | setTimeout(function () { 286 | wx.hideLoading(); 287 | }, 10000) 288 | } 289 | }) 290 | }, 291 | complete:function(res){ 292 | console.log(res) 293 | setTimeout(function(){ 294 | wx.hideLoading(); 295 | },10000) 296 | } 297 | }) 298 | } 299 | 300 | 301 | 302 | }) -------------------------------------------------------------------------------- /pages/detail/confirmOrder/confirmOrder.js: -------------------------------------------------------------------------------- 1 | // pages/detail/confirmOrder/confirmOrder.js 2 | Page({ 3 | 4 | /** 5 | * 页面的初始数据 6 | */ 7 | data: { 8 | orderGoods:[], 9 | total:0, 10 | userName:"", 11 | userPhone:"", 12 | userEmail:"", 13 | userDetail:"", 14 | addressName: "", 15 | addressId:0, 16 | remark:"", 17 | }, 18 | 19 | /** 20 | * 生命周期函数--监听页面加载 21 | */ 22 | onLoad: function (options) { 23 | var _this = this; 24 | var data = JSON.parse(options.jsonStr); 25 | console.log(data) 26 | var userId = wx.getStorageSync("userId"); 27 | var total = 0; 28 | for (var i=0;i res.data.data.goodsList[i].repertory) { 220 | repertorychange = false; 221 | break; 222 | } 223 | } 224 | } 225 | } 226 | if (repertorychange == true){ 227 | if (res.data.data.status == 1){ 228 | var data = _this.data; 229 | wx.request({ 230 | url: app.globalData.domain + '/order/insert', 231 | method: 'POST', 232 | data: data, 233 | header: { 234 | 'content-type': 'application/json' 235 | }, 236 | success: function (res) { 237 | console.log(res) 238 | if (res.statusCode == 200 && res.data.data == 1) { 239 | console.log("下单成功") 240 | wx.hideLoading(); //关闭模态框 241 | wx.showToast({ 242 | title: '成功', 243 | icon: 'success', 244 | mask: true, 245 | duration: 2000 246 | }) 247 | setTimeout(function () { 248 | wx.hideToast() 249 | wx.navigateBack({ 250 | delta: 2 251 | }) 252 | }, 1500) 253 | } else { 254 | console.log("下单失败") 255 | wx.hideLoading(); //关闭模态框 256 | wx.showModal({ 257 | title: '提示', 258 | content: '下单失败!请重试', 259 | confirmColor: "#2CBB6B", 260 | showCancel: false, 261 | success: function (res) { 262 | if (res.confirm) { 263 | console.log('用户点击确定') 264 | } 265 | } 266 | }) 267 | } 268 | } 269 | }) 270 | }else{ 271 | wx.hideLoading(); //关闭模态框 272 | wx.showModal({ 273 | title: '提示', 274 | content: '该Mart已结束!', 275 | confirmColor: "#2CBB6B", 276 | showCancel: false, 277 | success: function (res) { 278 | if (res.confirm) { 279 | console.log('用户点击确定') 280 | } 281 | } 282 | }) 283 | } 284 | }else{ 285 | wx.hideLoading(); //关闭模态框 286 | wx.showModal({ 287 | title: '提示', 288 | content: '商品Mart剩余发生变化,请刷新后重新选择商品!', 289 | confirmColor: "#2CBB6B", 290 | showCancel: false, 291 | success: function (res) { 292 | if (res.confirm) { 293 | console.log('用户点击确定') 294 | } 295 | } 296 | }) 297 | } 298 | } 299 | }) 300 | } 301 | } 302 | }) -------------------------------------------------------------------------------- /pages/detail/detail.wxss: -------------------------------------------------------------------------------- 1 | /* pages/detail/detail.wxss */ 2 | button::after{ 3 | border: none; 4 | border-radius:0px!important; 5 | } 6 | .cont_btn{ 7 | padding: 0; 8 | height: auto; 9 | background-color:#eee; 10 | border: 0; 11 | border-radius:0px!important; 12 | } 13 | .goodsshow{ 14 | width: 100%; 15 | background-color: rgb(255, 255, 255); 16 | border-top: 2rpx solid #F0EFF5; 17 | } 18 | .goodsdes{ 19 | padding:0 30rpx 50rpx; 20 | border-bottom: 2rpx solid #F0EFF5; 21 | } 22 | .userimgbox{ 23 | height: 100rpx; 24 | display: flex; 25 | align-items: center; 26 | } 27 | .userimg{ 28 | width: 50rpx; 29 | height: 50rpx; 30 | border-radius: 25rpx; 31 | } 32 | .goodstitle{ 33 | font: bold 37rpx "微软雅黑"; 34 | color: #333; 35 | } 36 | .goodsdatabox{ 37 | height: 70rpx; 38 | display: flex; 39 | align-items: center; 40 | } 41 | .goodsdata{ 42 | font-size: 25rpx; 43 | color: #8c8080; 44 | } 45 | .gray{ 46 | color: #ccc; 47 | } 48 | .goodsdescribe,.goodsdescribemini{ 49 | font: 30rpx "微软雅黑"; 50 | color: #666; 51 | position: relative; 52 | padding-top: 20rpx; 53 | } 54 | .goodsdescribemini{ 55 | height: 300rpx ; 56 | overflow: hidden; 57 | } 58 | .describemask,.describemaskbottom{ 59 | width: 100%; 60 | height: 50rpx; 61 | background: linear-gradient(rgba(255, 255, 255, 0.5), white); 62 | position:absolute; 63 | bottom:0rpx; 64 | left:0; 65 | display: flex; 66 | justify-content: center; 67 | align-items: center; 68 | } 69 | .describemaskbottom{ 70 | bottom:-50rpx; 71 | } 72 | .maskarrow{ 73 | height:45rpx; 74 | width:56rpx; 75 | } 76 | .goodsimgbox{ 77 | display:flex; 78 | flex-flow:row wrap; 79 | justify-content:flex-start; 80 | padding:3% 0 0 3%; 81 | border-bottom: 2rpx solid #F0EFF5; 82 | } 83 | .goodsimg{ 84 | width:220rpx; 85 | height:220rpx; 86 | margin:0 3% 3% 0; 87 | } 88 | .section{ 89 | width: 100%; 90 | min-height: 100rpx; 91 | padding:0 30rpx; 92 | border-bottom: 2rpx solid #F0EFF5; 93 | display: flex; 94 | justify-content: space-between; 95 | align-items: center; 96 | } 97 | .selectadd{ 98 | background: white; 99 | margin-bottom:20rpx; 100 | padding: 10rpx 30rpx; 101 | } 102 | .columnCenter{ 103 | display: flex; 104 | align-items: center; 105 | } 106 | .tempIcon{ 107 | height: 40rpx; 108 | width: 40rpx; 109 | } 110 | .tempName{ 111 | font: 25rpx "微软雅黑"; 112 | margin-left: 10rpx; 113 | width: 620rpx; 114 | } 115 | .rightShotImg{ 116 | width: 12rpx; 117 | height: 24rpx; 118 | } 119 | .dn{ 120 | display: none; 121 | } 122 | .container{ 123 | background: #F0EFF5; 124 | padding:20rpx 0 80rpx; 125 | } 126 | /* .overSoCont{ 127 | padding-bottom: 0; 128 | } */ 129 | .goodsbuy{ 130 | /* height: 210rpx; */ 131 | display: flex; 132 | flex-flow: row nowrap; 133 | align-items:center; 134 | padding:15rpx 30rpx; 135 | background: white; 136 | border-bottom: 2rpx solid #F0EFF5; 137 | position: relative; 138 | } 139 | .marbottom{ 140 | margin-bottom:20rpx; 141 | } 142 | .goodsbuyimg{ 143 | width: 180rpx; 144 | height: 180rpx; 145 | border-radius: 20rpx; 146 | } 147 | .imgNum{ 148 | height: 30rpx; 149 | width: 170rpx; 150 | font-size: 26rpx; 151 | color: white; 152 | text-align: right; 153 | position: relative; 154 | bottom: 40rpx; 155 | 156 | } 157 | .goodsinfo{ 158 | height: 100%; 159 | display: flex; 160 | flex-direction:column; 161 | margin-left: 30rpx 162 | } 163 | .goodsname{ 164 | font: 37rpx "微软雅黑"; 165 | color: #333; 166 | /* white-space:nowrap; */ 167 | /* text-overflow:ellipsis; */ 168 | width:480rpx; 169 | /* overflow:hidden; */ 170 | } 171 | .goodsprice{ 172 | font-size: 30rpx; 173 | color: rgb(245, 10, 24); 174 | margin-top:20rpx; 175 | white-space:nowrap; 176 | text-overflow:ellipsis; 177 | width:480rpx; 178 | overflow:hidden; 179 | } 180 | .blod{ 181 | font-weight: bold; 182 | font-size: 40rpx; 183 | } 184 | .goodsrepertory{ 185 | font-size: 30rpx; 186 | color: #ababab; 187 | margin-top: 15rpx; 188 | width:300rpx; 189 | white-space:nowrap; 190 | text-overflow:ellipsis; 191 | overflow:hidden; 192 | } 193 | .goodsnumber{ 194 | display: flex; 195 | flex-direction: row; 196 | align-self:flex-end; 197 | position:absolute; 198 | right:30rpx; 199 | bottom: 15rpx; 200 | } 201 | .goodsnum{ 202 | width: 80rpx; 203 | height: 50rpx; 204 | text-align:center; 205 | font: 30rpx "微软雅黑"; 206 | color: #ababab; 207 | } 208 | .btnnum{ 209 | width:50rpx; 210 | height:50rpx; 211 | } 212 | .numimg{ 213 | width: 100%; 214 | height: 100%; 215 | border-radius: 5rpx; 216 | } 217 | .minusbtnnum{ 218 | background: rgba(44, 187, 107, 0.1); 219 | } 220 | .addbtnnum{ 221 | opacity: 0.7; 222 | } 223 | .partake{ 224 | background:white; 225 | margin-bottom:20rpx; 226 | display:flex; 227 | flex-direction:column-reverse; 228 | } 229 | .joinfont{ 230 | width: 100%; 231 | height:80rpx; 232 | padding:0 30rpx; 233 | color: #AAAAAA; 234 | font-size: 25rpx; 235 | display: flex; 236 | flex-direction: row; 237 | align-items: center; 238 | border-bottom: 2rpx solid #F0EFF5; 239 | } 240 | .joinperson{ 241 | height:120rpx; 242 | background: white; 243 | margin-bottom: 20rpx; 244 | } 245 | .jointitle{ 246 | width:100%; 247 | height:50rpx; 248 | padding:0 30rpx; 249 | border-bottom:2rpx solid #F0EFF5; 250 | font:25rpx "微软雅黑"; 251 | display:flex; 252 | align-items:center; 253 | color:#666; 254 | } 255 | .joincontainer{ 256 | width:100%; 257 | height:100%; 258 | padding:20rpx 30rpx; 259 | display:flex; 260 | justify-content:space-between; 261 | flex-direction: column; 262 | } 263 | .joinnum{ 264 | display:flex; 265 | align-items:center; 266 | font: 25rpx "微软雅黑"; 267 | color: #333; 268 | margin-top: 20rpx; 269 | } 270 | .jointext{ 271 | color:#333; 272 | font:25rpx "微软雅黑"; 273 | align-self: flex-end; 274 | } 275 | .greenfont{ 276 | color: #2CBB6B; 277 | margin-left:5rpx; 278 | } 279 | .record{ 280 | height:120rpx; 281 | padding:20rpx 0; 282 | background: white; 283 | display:flex; 284 | flex-direction:row; 285 | border-bottom: 2rpx solid #F0EFF5; 286 | } 287 | .joinRecord{ 288 | flex:1; 289 | display:flex; 290 | flex-direction:column; 291 | align-items:center; 292 | height:100%; 293 | justify-content:center; 294 | } 295 | .rightborder{ 296 | border-right:1px solid #eee; 297 | } 298 | .recordnum{ 299 | color: #2CBB6B; 300 | font-size: 35rpx; 301 | } 302 | .recordtext{ 303 | color: #ABABAB; 304 | font-size: 25rpx; 305 | } 306 | .joinNO{ 307 | flex:1; 308 | } 309 | .userinfo{ 310 | width: 200rpx; 311 | height: 100%; 312 | flex:2; 313 | display:flex; 314 | align-items:center; 315 | overflow: hidden; 316 | white-space: nowrap; 317 | text-overflow: ellipsis; 318 | } 319 | .userinfoimg{ 320 | width: 50rpx; 321 | height: 50rpx; 322 | border-radius: 25rpx; 323 | margin-right: 10rpx; 324 | } 325 | .userinfoname{ 326 | width:140rpx; 327 | overflow:hidden; 328 | white-space:nowrap; 329 | text-overflow:ellipsis; 330 | } 331 | .joinnumber{ 332 | flex:0.5; 333 | } 334 | .partakedate{ 335 | flex:2.5; 336 | text-align: right; 337 | } 338 | .foot_nav{ 339 | width:100%; 340 | height:100rpx; 341 | display: flex; 342 | flex-direction: row; 343 | position: fixed; 344 | bottom:0%; 345 | left:0%; 346 | box-shadow: 1rpx -2rpx 5rpx #e6e6e6; 347 | background: white; 348 | } 349 | .foot_left{ 350 | flex: 1; 351 | display: flex; 352 | flex-direction: row; 353 | } 354 | .footNavTo{ 355 | width: 50%; 356 | display:flex; 357 | flex-direction:column; 358 | align-items:center; 359 | height:100%; 360 | justify-content:center; 361 | } 362 | .footNavrightborder{ 363 | border-right: 1px solid #F0EFF5; 364 | } 365 | .navimg{ 366 | width: 45rpx; 367 | height: 45rpx; 368 | } 369 | .navtext{ 370 | font: 22rpx "微软雅黑"; 371 | color: #707070; 372 | } 373 | .foot_right,.foot_right_green{ 374 | flex: 1; 375 | font: 35rpx/100rpx "微软雅黑"; 376 | color: white; 377 | text-align: center; 378 | } 379 | .foot_right{ 380 | background: #ccc; 381 | } 382 | .foot_right_green{ 383 | background: rgb(44, 187, 107); 384 | } 385 | .foot_btn{ 386 | flex:1; 387 | font: 35rpx/100rpx "微软雅黑"; 388 | color: #2ABB6D; 389 | text-align: center; 390 | } 391 | .copyBtn{ 392 | display: block; 393 | font: 28rpx/50rpx "微软雅黑"; 394 | } 395 | /* .overSoCont{ 396 | width: 100%; 397 | } */ 398 | .foot_nav .foot_btn:nth-of-type(2){ 399 | border-left:2rpx solid #F0EFF5; 400 | border-right:2rpx solid #F0EFF5; 401 | } 402 | /* 403 | 二维码 404 | */ 405 | .qr_tran{ 406 | position: fixed; 407 | top: 10rpx; 408 | right: 0; 409 | width: 250rpx; 410 | height: 100rpx; 411 | padding: 20rpx; 412 | display: flex; 413 | justify-content: space-around; 414 | } 415 | .qt_cont{ 416 | width: 70rpx; 417 | height: 70rpx; 418 | border-radius: 50%; 419 | background-color: #2ABB6D; 420 | display: flex; 421 | justify-content: center; 422 | align-items: center; 423 | margin:0; 424 | padding: 0; 425 | } 426 | .qt_cont image{ 427 | width: 50rpx; 428 | height: 50rpx; 429 | } 430 | 431 | /*模态框start */ 432 | .modal{ 433 | width: 650rpx; 434 | height: 650rpx; 435 | } 436 | .modalContent{ 437 | width: 100%; 438 | height: 100%; 439 | text-align: center; 440 | } 441 | .modalContent image{ 442 | flex:1; 443 | display: inline-block; 444 | width: 250rpx; 445 | height: 250rpx; 446 | } 447 | .modalContent view{ 448 | margin:10rpx 0; 449 | } 450 | /*模态框end */ -------------------------------------------------------------------------------- /pages/release/release.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 复制Mart 10 | 11 | 12 | 13 |