作者 lihongjuan

云产

正在显示 66 个修改的文件 包含 4709 行增加0 行删除

要显示太多修改。

为保证性能只显示 66 of 66+ 个文件。

  1 +/.idea
  1 +App({
  2 + onLaunch: function() {
  3 + // 展示本地存储能力
  4 + var logs = wx.getStorageSync('logs') || []
  5 + },
  6 + post: function(url, data) {
  7 + /**
  8 + * 自定义post函数,返回Promise
  9 + * +-------------------
  10 + * @param {String} url 接口网址
  11 + * @param {arrayObject} data 要传的数组对象 like: {name: 'name', age: 32}
  12 + * +-------------------
  13 + * @return {Promise} promise 返回promise供后续操作
  14 + */
  15 + // wx.showLoading({
  16 + // title: '加载中',
  17 + // })
  18 + wx.showNavigationBarLoading()
  19 + // wx.showLoading({
  20 + // title: '加载中',
  21 + // })
  22 + var promise = new Promise((resolve, reject) => {
  23 + //init
  24 + let that = this;
  25 + let postData = data;
  26 + //let baseUrl = 'http://192.168.1.7/maternity/public';
  27 + //let baseUrl ='http://maternity.w.bronet.cn';
  28 + let baseUrl = 'https://ibaby88.cn/';
  29 + // postData.signature = that.makeSign(postData);
  30 + //网络请求
  31 + wx.request({
  32 + url: baseUrl + url,
  33 + data: postData,
  34 + method: 'POST',
  35 + header: {
  36 + 'content-type': 'application/x-www-form-urlencoded'
  37 + },
  38 + success: function(res) { //返回取得的数据
  39 + if (res.data.code == '1') {
  40 + resolve(res.data.data);
  41 + } else if (res.data.code == '20001') { //返回错误提示信息
  42 + wx.showModal({
  43 + title: '提示',
  44 + content: res.data.msg,
  45 + success: function(res) {
  46 + if (res.confirm) {
  47 + wx.removeStorageSync('token');
  48 + wx.navigateTo({
  49 + // url: '/pages/startRecord/startRecord',
  50 + })
  51 + }
  52 + }
  53 + })
  54 + } else if (res.data.code == '40001') { //返回错误提示信息
  55 + wx.showModal({
  56 + title: '提示',
  57 + content: '登录已过期请重新登录!',
  58 + showCancel: false,
  59 + success: function(res) {
  60 + if (res.confirm) {
  61 + wx.removeStorageSync('token');
  62 + wx.navigateTo({
  63 + // url: '/pages/startRecord/startRecord',
  64 + })
  65 + }
  66 + }
  67 + })
  68 + } else if (res.data.code == '40000') {
  69 + wx.showModal({
  70 + title: '提示',
  71 + content: res.data.msg,
  72 + showCancel: false,
  73 + success: function(res) {}
  74 + })
  75 + } else if (res.data.code == '44002') {
  76 + // 初始化用户信息判断
  77 + let usetrInfoType = {
  78 + hasUserInfo: false
  79 + }
  80 + resolve(usetrInfoType);
  81 + // wx.showModal({
  82 + // title: '提示',
  83 + // content: res.data.msg,
  84 + // showCancel: false
  85 + // })
  86 + } else if (res.data.code == '0') {
  87 + console.log(888)
  88 + // wx.showModal({
  89 + // title: '提示',
  90 + // content: res.data.msg,
  91 + // showCancel: false
  92 + // })
  93 + // reject(res.data)
  94 + wx.showToast({
  95 + title: res.data.message,
  96 + icon: 'none'
  97 + })
  98 +
  99 + wx.showToast({
  100 + title: res.data.msg,
  101 + icon: 'none'
  102 + })
  103 + } else {
  104 + reject(res)
  105 + }
  106 + setTimeout(function() {
  107 + wx.hideLoading()
  108 + wx.hideNavigationBarLoading()
  109 + }, 600)
  110 + },
  111 + fail: function(e) {
  112 + reject('网络出错');
  113 + // wx.hideLoading()
  114 + wx.hideNavigationBarLoading()
  115 + }
  116 + })
  117 + });
  118 + return promise;
  119 + },
  120 + formCollect(id) {
  121 + let url = '/sign/formid'
  122 + let params = {
  123 + formid: id,
  124 + openid: wx.getStorageSync('openId')
  125 + }
  126 + this.post(url, params).then((res) => {
  127 + console.log(res)
  128 + }).catch((errMsg) => {
  129 +
  130 + })
  131 + },
  132 + nowDate() {
  133 + let date = new Date();
  134 + let month = date.getMonth() + 1;
  135 + let day = date.getDate();
  136 + return date.getFullYear() + '年' + (month > 9 ? month : ('0' + month)) + '月' + (day > 9 ? day : ('0' + day)) + '日';
  137 + },
  138 + initDate(a) {
  139 + let date1 = new Date();
  140 + let time1 = date1.getFullYear() + "年" + (date1.getMonth() + 1) + "月" + date1.getDate() + '日';
  141 + let date2 = new Date(date1);
  142 + date2.setDate(date1.getDate() + a);
  143 + let time2 = date2.getFullYear() + "年" + (date2.getMonth() + 1) + "月" + date2.getDate() + '日';
  144 + return time2;
  145 + },
  146 + // 数组移除指定元素
  147 + arryRemove(arr, item) {
  148 + return arr.filter(function(ele) {
  149 + return ele != item;
  150 + })
  151 + },
  152 + strTime(strtime) {
  153 + let str = 'bronet' + strtime + 'beijing'
  154 + return md5(md5(str))
  155 + },
  156 + globalData: {
  157 + userInfo: null,
  158 + baseUrl: 'http://beijing.w.bronet.cn'
  159 + },
  160 +
  161 +
  162 +
  163 + // getPermission: function (obj) {
  164 + // wx.chooseLocation({
  165 + // success: function (res) {
  166 + // obj.setData({
  167 + // addr: res.address //调用成功直接设置地址
  168 + // })
  169 + // },
  170 + // fail: function () {
  171 + // wx.getSetting({
  172 + // success: function (res) {
  173 + // var statu = res.authSetting;
  174 + // if (!statu['scope.userLocation']) {
  175 + // wx.showModal({
  176 + // title: '是否授权当前位置',
  177 + // content: '需要获取您的地理位置,请确认授权,否则地图功能将无法使用',
  178 + // success: function (tip) {
  179 + // if (tip.confirm) {
  180 + // wx.openSetting({
  181 + // success: function (data) {
  182 + // if (data.authSetting["scope.userLocation"] === true) {
  183 + // wx.showToast({
  184 + // title: '授权成功',
  185 + // icon: 'success',
  186 + // duration: 1000
  187 + // })
  188 + // //授权成功之后,再调用chooseLocation选择地方
  189 + // wx.getLocation({
  190 +
  191 + // type: 'wgs84',
  192 + // success: function (res) {
  193 + // console.log(res)
  194 + // var latitude = res.latitude
  195 + // var longitude = res.longitude
  196 + // that.setData({
  197 + // wd: latitude,
  198 + // jd: longitude
  199 + // })
  200 +
  201 + // that.gethostipallist()
  202 + // }
  203 + // })
  204 + // } else {
  205 + // wx.showToast({
  206 + // title: '授权失败',
  207 + // icon: 'success',
  208 + // duration: 1000
  209 + // })
  210 + // }
  211 + // }
  212 + // })
  213 + // }
  214 + // }
  215 + // })
  216 + // }
  217 + // },
  218 + // fail: function (res) {
  219 + // wx.showToast({
  220 + // title: '调用授权窗口失败',
  221 + // icon: 'success',
  222 + // duration: 1000
  223 + // })
  224 + // }
  225 + // })
  226 + // }
  227 + // })
  228 +
  229 +
  230 +
  231 +
  232 +
  233 +
  234 + // },
  235 +
  236 +
  237 +})
  1 +{
  2 + "pages": [
  3 + "pages/homepage/homepage",
  4 + "pages/index/index",
  5 +
  6 +
  7 + "pages/home/stageofpregnancy/stageofpregnancy",
  8 +
  9 +
  10 +
  11 + "pages/home/searchpage/searchpage",
  12 + "pages/person/faveritehospital/faveritehostipal",
  13 + "pages/processQuery/processQuery",
  14 + "pages/person/myCourseDetail/myCourseDetail",
  15 + "pages/home/sweepcoupon/sweepcoupon",
  16 + "pages/home/coupon/coupon",
  17 + "pages/person/myCoupon/myCoupon",
  18 + "pages/home/commentdoctor/commentdoctor",
  19 + "pages/home/communithostipal/communithostipal",
  20 + "pages/home/buildtextdetail/buildtextdetail",
  21 + "pages/active/active",
  22 + "pages/logs/logs",
  23 + "pages/home/commentdoctordetail/commentdoctordetail",
  24 + "pages/home/commenthospitaldetail/commenthospitaldetail",
  25 + "pages/home/mouthreview/mouthreview",
  26 + "pages/home/attentionpublic/attentionpublic",
  27 + "pages/home/mecomment/mecomment",
  28 +
  29 + "pages/home/used/used",
  30 + "pages/home/mypublish/mypublish",
  31 + "pages/home/sellidel/sellidel",
  32 + "pages/partneritem/afterchildbirthrecover/afterchildbirthrecover",
  33 + "pages/partneritem/afterchildbirth/afterchildbirth",
  34 + "pages/partneritem/sureorder/sureorder",
  35 + "pages/partner/partner",
  36 + "pages/home/goodtail/goodtail",
  37 + "pages/home/hometail/hometail",
  38 + "pages/home/usedkind/usedkind",
  39 + "pages/home/havechildren/havechildren",
  40 + "pages/home/nochildren/nochildren",
  41 + "pages/home/buildtext/buildtext",
  42 + "pages/home/childbirthnotedetail/childbirthnotedetail",
  43 + "pages/home/childbirthnote/childbirthnote",
  44 + "pages/home/melist/melist",
  45 + "pages/home/meshare/meshare",
  46 + "pages/home/doctortail/doctortail",
  47 + "pages/knowledge/knowledge",
  48 + "pages/knowDetail/knowDetail",
  49 + "pages/personcenter/personcenter",
  50 + "pages/person/myCourse/myCourse",
  51 + "pages/person/myOrder/myOrder",
  52 + "pages/person/myOrderDetail/myOrderDetail",
  53 + "pages/person/myReport/myReport",
  54 + "pages/person/myNotes/myNotes",
  55 + "pages/person/myComment/myComment",
  56 + "pages/cityWide/monthClub/monthClub",
  57 + "pages/cityWide/monthDetail/monthDetail",
  58 + "pages/cityWide/activityName/activityName",
  59 + "pages/cityWide/remark/remark",
  60 + "pages/cityWide/nameList/nameList",
  61 + "pages/cityWide/matronPrepon/matronPrepon",
  62 + "pages/cityWide/keyFind/keyFind",
  63 + "pages/cityWide/matronDetail/matronDetail",
  64 + "pages/cityWide/diatelyMake/diatelyMake",
  65 + "pages/cityWide/matronStrategy/matronStrategy",
  66 + "pages/cityWide/WeChatCulum/WeChatCulum",
  67 + "pages/sharepage/sharepage"
  68 + ],
  69 + "permission": {
  70 + "scope.userLocation": {
  71 + "desc": "你的位置信息将用于小程序位置接口的效果展示"
  72 + }
  73 + },
  74 + "window": {
  75 + "backgroundTextStyle": "dark",
  76 + "navigationBarBackgroundColor": "#FD8779",
  77 + "navigationBarTitleText": "附近产科医院",
  78 + "navigationBarTextStyle": "white"
  79 + },
  80 + "tabBar": {
  81 + "selectedColor": "#FC7E65",
  82 + "list": [
  83 + {
  84 + "pagePath": "pages/homepage/homepage",
  85 + "text": "附近医院",
  86 + "selectedColor": "#FC7E65",
  87 + "iconPath": "img/nav01@2x.png",
  88 + "selectedIconPath": "img/nav02@2x.png"
  89 + },
  90 + {
  91 + "pagePath": "pages/partner/partner",
  92 + "text": "微商城",
  93 + "selectedColor": "#FC7E65",
  94 + "iconPath": "img/nav03@2x.png",
  95 + "selectedIconPath": "img/nav04@2x.png"
  96 + },
  97 + {
  98 + "pagePath": "pages/knowledge/knowledge",
  99 + "text": "知识库",
  100 + "selectedColor": "#FC7E65",
  101 + "iconPath": "img/nav05@2x.png",
  102 + "selectedIconPath": "img/nav06@2x.png"
  103 + },
  104 + {
  105 + "pagePath": "pages/active/active",
  106 + "text": "同域活动",
  107 + "selectedColor": "#FC7E65",
  108 + "iconPath": "img/nav07@2x.png",
  109 + "selectedIconPath": "img/nav08@2x.png"
  110 + },
  111 + {
  112 + "pagePath": "pages/personcenter/personcenter",
  113 + "text": "个人中心",
  114 + "selectedColor": "#FC7E65",
  115 + "iconPath": "img/nav09@2x.png",
  116 + "selectedIconPath": "img/nav10@2x.png"
  117 + }
  118 + ]
  119 + },
  120 + "sitemapLocation": "sitemap.json"
  121 +}
  1 +/* 首页的下三角 */
  2 +.place_img{
  3 + width:10rpx;
  4 + height:10rpx;
  5 + font-size: 0;
  6 + margin-left: 10rpx;
  7 + margin-top: 13rpx;
  8 +}
  9 +.place_img image{
  10 + width:100%;
  11 + height:100%;
  12 +}
  13 +.lj_row{
  14 + width:40rpx;
  15 + height:40rpx;
  16 + font-size: 0
  17 +}
  18 +.lj_row image{
  19 + width:100%;
  20 + height:100%;
  21 +}
  22 +/* 首页进详情里的按钮 */
  23 +.lj_comment{
  24 + width:310rpx;
  25 + height:80rpx;
  26 + border-radius: 40rpx;
  27 + background: #FD8779;
  28 + color:#fff;
  29 + font-size: 30rpx;
  30 + margin: 17rpx auto;
  31 + border:none;
  32 + outline:none;
  33 +
  34 +}
  35 +.footbtn{
  36 + width:750rpx;
  37 + background: #fff;
  38 + height:110rpx;
  39 + position:fixed;
  40 + bottom:0rpx;
  41 +}
  42 +.lj_mecomment{
  43 + width:686rpx;
  44 + height:80rpx;
  45 + border-radius:40rpx;
  46 + color:#fff;
  47 + font-size: 30rpx;
  48 + text-align: center;
  49 + line-height: 80rpx;
  50 +
  51 + background: #FD8779;
  52 + position:fixed;
  53 + bottom:31rpx;
  54 + left:0;
  55 + right:0;
  56 + margin: 0 auto;
  57 +}
  58 +/* 口碑详情提交 */
  59 +.lj_sub{
  60 + width:686rpx;
  61 + height:80rpx;
  62 + border-radius: 40rpx;
  63 + background: #FD8779;
  64 + color:#fff;
  65 + font-size: 30rpx;
  66 + text-align: center;
  67 + position:fixed;
  68 + bottom:31rpx;
  69 + left:0;
  70 + right:0;
  71 + margin: 0 auto;
  72 +}
  73 +.nodata{
  74 + color:#999;
  75 + font-size: 30rpx;
  76 + text-align: center;
  77 + margin-top: 32rpx;
  78 +}
  79 +.searchfuwu{
  80 + width:310rpx;
  81 + height:80rpx;
  82 + background:rgba(253,135,121,1);
  83 + border-radius:40rpx;
  84 + color:#fff;
  85 + text-align: center;
  86 + line-height: 80rpx;
  87 + position: absolute;
  88 + bottom:32rpx;
  89 + left:0;
  90 + right:0;
  91 + margin:0 auto
  92 +}
  1 +/* 公共表单 */
  2 +.commentlist-doctor{
  3 + display:flex;
  4 + height:100rpx;
  5 + justify-content: space-between;
  6 + align-items: center;
  7 + padding:0 32rpx;
  8 + border-bottom:16rpx solid #FCF8F7;
  9 +
  10 +}
  11 +.commentlist{
  12 + border-bottom:16rpx solid #FCF8F7;
  13 +}
  14 +.commentlist_item{
  15 + display:flex;
  16 + height:100rpx;
  17 + justify-content: space-between;
  18 + align-items: center;
  19 + padding:0 32rpx;
  20 + border-bottom:1rpx solid #f5f5f5;
  21 +}
  22 +.commentlist_name{
  23 + color:#000000;
  24 + font-size: 30rpx;
  25 +}
  26 +.commentlist_right{
  27 + display:flex;
  28 +
  29 +}
  30 +.commentlsit_date{
  31 + color:#666666;
  32 + font-size: 26rpx;
  33 +}
  34 +.row{
  35 + width:40rpx;
  36 + height:40rpx;
  37 + font-size: 0;
  38 + margin-left: 5rpx;
  39 +}
  40 +.row image{
  41 + width:100%;
  42 + height:100%;
  43 +}
  44 +
  45 +.doctor_review{
  46 + display:flex;
  47 + justify-content: space-between;
  48 + align-items: center;
  49 + height:80rpx;
  50 + border-bottom:1rpx solid #f5f5f5;
  51 + padding: 0 40rpx 0 32rpx;
  52 +}
  53 +.doctor_review_name{
  54 + color:#292525;
  55 + font-size: 26rpx;
  56 + font-weight: bold;
  57 +}
  58 +.sub_review{
  59 + color:#5C5453;
  60 + font-size:26rpx;
  61 +}
  62 +/* 输入评论*/
  63 +.entercomment{
  64 + width:682rpx;
  65 + height:300rpx;
  66 + margin: 0 auto;
  67 + color:#CCBAB8;
  68 + font-size: 28rpx;
  69 + padding: 28rpx 0;
  70 +
  71 +}
  72 +.entertext{
  73 + width:682rpx;
  74 + height:300rpx;
  75 + line-height: 1.5;
  76 +}
  77 +.choseimg{
  78 + overflow: hidden;
  79 + padding: 0 20rpx 130rpx 12rpx;
  80 +}
  81 +.selectpic{
  82 + float:left;
  83 + width:160rpx;
  84 + height:160rpx;
  85 + font-size: 0;
  86 + margin-left:20rpx;
  87 + margin-top: 20rpx;
  88 + position: relative;
  89 +}
  90 +.del{
  91 + position:absolute;
  92 + top:5rpx;
  93 + right:0rpx;
  94 + color:#999;
  95 + font-size: 40rpx
  96 +}
  97 +.selectpic image{
  98 + width:100%;
  99 + height:100%;
  100 +}
  101 +/* 随堂笔记 */
  102 +.user_essays_content{
  103 + border-bottom:1rpx solid #f5f5f5;
  104 +}
  105 +.essays_content {
  106 + display:flex;
  107 + padding:31rpx 33rpx;
  108 +
  109 +}
  110 +.essays_content_img {
  111 + width:80rpx;
  112 + height:80rpx;
  113 + font-size:0;
  114 + border-radius:50%;
  115 +
  116 +}
  117 +
  118 +.essays_content_img image{
  119 + width:100%;
  120 + height:100%;
  121 + border-radius:50%;
  122 +
  123 +}
  124 +.essays_content_text {
  125 + width:587rpx;
  126 + margin-left:17rpx;
  127 +
  128 +}
  129 +.user_comment_name {
  130 + display:flex;
  131 +justify-content:space-between;
  132 +align-items:center;
  133 +
  134 +}
  135 +.essays_name {
  136 + color:#000000;
  137 +font-size:30rpx;
  138 +font-weight:bold;
  139 +
  140 +}
  141 +.user_comment_hostpital {
  142 + padding:5rpx 22rpx;
  143 +border-radius:22rpx;
  144 +color:#FD8779;
  145 +font-size:26rpx;
  146 +border:1rpx solid #FD8779;
  147 +
  148 +}
  149 +.essays_text{
  150 + color:#292525;
  151 +font-size:28rpx;
  152 +margin-top:30rpx;
  153 +
  154 +}
  155 +.user_bottom{
  156 + display:flex;
  157 +justify-content:space-between;
  158 +align-items:center;
  159 +margin-top:43rpx;
  160 +
  161 +}
  162 +.user_date,.thumb_num {
  163 + color:#999999;
  164 +font-size:24rpx;
  165 +height:30rpx;
  166 +line-height:30rpx;
  167 +
  168 +}
  169 +.user_lsit_img,.thumb{
  170 + display:flex;
  171 +}
  172 +
  173 +.user_img image {
  174 +width:100%;
  175 +height:100%;
  176 +
  177 +}
  178 +.user_img {
  179 +width:32rpx;
  180 +height:30rpx;
  181 +font-size:0;
  182 +margin-right:15rpx;
  183 +
  184 +}
  185 +.user_img image {
  186 +width:100%;
  187 +height:100%;
  188 +
  189 +}
  190 +.thumb_star{
  191 + margin-right:40rpx;
  192 +
  193 +}
  194 +.essays_date {
  195 +color:#999999;
  196 +font-size:26rpx;
  197 +margin-top:18rpx;
  198 +
  199 +}
  200 +.suinotes {
  201 +border-bottom:1px solid #f5f5f5;
  202 +
  203 +}
  204 +.use_comment {
  205 +justify-content:space-between;
  206 +
  207 +}
  208 +.new_left,.mew_right {
  209 +display:flex;
  210 +
  211 +}
  212 +.new new_active{
  213 + color:#FD8779;
  214 +
  215 +}
  216 +.new{
  217 + width:68rpx;
  218 + text-align: center;
  219 + color:#A89997;
  220 + font-size: 24rpx;
  221 +}
  222 +.new:first-child{
  223 + border-right:1px solid #f5f5f5;
  224 +}
  225 +.new_active{
  226 + color:#FD8779;
  227 +}
  228 +.use{
  229 + display:flex;
  230 +}
  231 +
  232 +
  233 +/* 图文编辑图片 */
  234 +.edit_img{
  235 + /*margin-top:36rpx;*/
  236 +}
  237 +.editword{
  238 + /*margin-bottom: 36rpx;*/
  239 +}
  240 +.edit_big_img{
  241 + width:400rpx;
  242 + height:400rpx;
  243 + font-size: 0
  244 +}
  245 +.edit_small_img{
  246 + width:187rpx;
  247 + height:187rpx;
  248 + font-size: 0;
  249 + margin-left: 8rpx;
  250 + margin-top: 30rpx;
  251 + }
  252 + .edit_small_img:first-child{
  253 + margin-left:0;
  254 + }
  255 + .edit_big_img image,.edit_small_img image{
  256 + width:100%;
  257 + height:100%;
  258 + }
  259 + .small_img{
  260 + display:flex;
  261 + flex-wrap: wrap;
  262 + align-items: center;
  263 + }
  264 + /* 分享按钮 */
  265 + .lj_share{
  266 + width:310rpx;
  267 + height:80rpx;
  268 + border-radius:40rpx;
  269 + background: #FD8779;
  270 + color:#fff;
  271 + font-size: 30rpx;
  272 + text-align: center;
  273 + line-height: 80rpx;
  274 + position:fixed;
  275 + bottom:31rpx;
  276 + left:0;
  277 + right:0;
  278 + margin: 0 auto;
  279 +
  280 + }
  281 +.nextstep{
  282 + width:310rpx;
  283 + height:80rpx;
  284 + border-radius:40rpx;
  285 + background: #FD8779;
  286 + color:#fff;
  287 + font-size: 30rpx;
  288 + text-align: center;
  289 + line-height: 80rpx;
  290 + position:fixed;
  291 + bottom:29rpx;
  292 + left:0;
  293 + right:0;
  294 + margin: 0 auto;
  295 +}
  296 +
  297 + /* 二手置换底部导航 */
  298 +.mypublish_img{
  299 + width:64rpx;
  300 + height:64rpx;
  301 + font-size: 0;
  302 + margin: 0 auto;
  303 +
  304 +}
  305 +
  306 +.sell_mypublish_img{
  307 + width:80rpx;
  308 + height:80rpx;
  309 + font-size: 0;
  310 + margin: 0 auto 8rpx;
  311 + position:relative;
  312 +}
  313 +.mypublish_img image,.sell_mypublish_img image{
  314 + width:100%;
  315 + height:100%;
  316 +}
  317 +/* .sell_mypublish_img image{ */
  318 + /* position: absolute;
  319 + bottom:30rpx;
  320 + left:0;
  321 + right:0; */
  322 +/* } */
  323 +/* .sellname{ */
  324 + /* position: absolute;
  325 + bottom:0;
  326 + left:0;
  327 + right:0; */
  328 +
  329 +/* } */
  330 +.mypublish_foot{
  331 + display:flex;
  332 + justify-content: space-around;
  333 + align-items: center;
  334 + /* padding: 0 40rpx; */
  335 + box-sizing: border-box;
  336 + position:fixed;
  337 + bottom:0;
  338 + left:0;
  339 + right:0;
  340 + height: 108rpx;
  341 + border-top:1rpx solid #f5f5f5;
  342 + background: #fff;
  343 +
  344 +}
  345 +.center_box{
  346 + /* position: absolute; */
  347 + /* left: 50%; */
  348 + /* margin-left: -40rpx; */
  349 + /* top: -40rpx; */
  350 + width: 80px;
  351 + margin: 0 auto;
  352 + position: relative;
  353 + top: -5px;
  354 +}
  355 +.mypublish_name{
  356 + text-align: center;
  357 + color:#666;
  358 + font-size: 24rpx;
  359 +}
  360 +.mypublish_item{
  361 + /* width:33.33%; */
  362 + position: relative;
  363 +}
  364 +
  365 +/*点赞和收藏*/
  366 +
  367 +.iscllect{
  368 + display:flex;
  369 +}
  370 +.startouch{
  371 + display:flex;
  372 +}
  373 +
  374 +/* 暂无数据 */
  375 +
  376 +.nodata{
  377 + color:#A89997;
  378 + font-size: 26rpx;
  379 + text-align: center;
  380 + padding: 36rpx;
  381 +}
  382 +.editword{
  383 + width:520rpx;
  384 +}
  385 +.publishdot{
  386 + width:20rpx;
  387 + height:20rpx;
  388 + border-radius:50%;
  389 + background: #FF4D4D;
  390 + position: absolute;
  391 + top:10rpx;
  392 + right:15rpx;
  393 +}
  1 +@font-face {font-family: "iconfont";
  2 + src: url('//at.alicdn.com/t/font_917618_k7suf0xgjkc.eot?t=1548414831956'); /* IE9 */
  3 + src: url('//at.alicdn.com/t/font_917618_k7suf0xgjkc.eot?t=1548414831956#iefix') format('embedded-opentype'), /* IE6-IE8 */
  4 + url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAj0AAsAAAAAEBwAAAinAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCEIAqRbI4IATYCJAMoCxYABCAFhG0HgQsbWQ0jkg9WlOw/HNBjPANypK/qUi3G9RqWbkdBRBouEc1DE3WGZPO5aHU/1RjqiNfx8M+9ev8a+DlACVgwsTFBZjeVC94ClXq8VrTX1QABECz/hzb1H3fEFI8JARp1IrbFmpxU1NlboWLpHImYVJTUhKSGTdJVhZoSAA0QMJa4zf/PBy5uitp5QkconsTu+euzkrZpgXB+DxDc6GQwBhOnvbhM/VoBeyF7o9vr+5/aOkUTCnCASiuUpzQKYAENWIAoEwCMPf42biO034jsP+VqErRGrtljcWAlR7EEPZ749sgqkikvMCbqlDLjyFzyBnR1epoGwKvz9ck/RGRFqsjQnpub+YU4sIecSc3SKZYA6O7yoa5HhjFyNfkjs/Ad9XDsxNus/phnYDCelof4Djz54EuUrMD6cypjYkRPDPRS/8FLZQqlSq4hKVG8h/SlqSEww0tCeHqpCR8vKcH3khGJXgoi2UtJFHipiPVecr45mRqI2+0HTEi/ALJPSTptTjUyIUxD58TF3j87A3FGmOvbsxAXCyc7O7a9PeLkEDxuQ/d3drG15TiwWRg2U68nDQZKpyO0Wny6SsZKUe5h4KTpkiSXMgncJVlRxqYITM17DnJ5q154RJ/CUutDOvWedafZqmF+m0DRwezgVlQwpP5yf4acoajo6ek4fLiFqWKzq0SjbVlLQEvxw6D8GEOuiUJmHdfpLpYdFbWxVYiyM6EzUKmUM3Cuchsb+YGEVrXQplLN661FZHwVWzqfTMmqFPb2suSMZk57t3RAp0tmUskDRqPkSqWKfVDnoZAzbNTq3tFz/sgaOamV7WE16imeibTzOsR8gJKlwoJh2bD4fhPnyJUsUimbX7syJkGpFDN+UgUDkSAW0g5b57IuxFLWaeO0px0Wkvjc9eSmuhuxzvuveVhUX41yOnDdc/Lm5ev1krbYdjtMktmwlM1r2b61vZxJKFrmsXSyqnK751lOIQ/Z6GC186U3GSjHMb4tVq/dtO8YB6s4Hu14cNiNXqmOkWjv4br7hOEhpX8whcRLKLKUoMbjhIRUHvDf0FzNJRT7+RJVXdyG2eSr2JJlJIRQyJdxRbFCL3+hRxDF40QJ3EUBnqK5QggK4IqihW44Lyip4AvKca4bv4ogsG6eABEFZu0VI+DgegNlMBCiS9l6LdXh9YREZ/XTasmgi1k6Q3o/qsl32ZWcxANaX/fEobmazLj9Bv4+vOL6Z+FpCjalUoXwe8oZeLuQ5AuodJxHFVFcXHA+B/ZEEf4kTvG5iSdr/OUMIVtVKQwaGBfYFxLEExEUj88tVb8/h6NNkM9WLw487YVTFIFnhMQFm9PU2LdvmMmrFcDYYJ2RzHnO88YIF0JGHec6zx0jnckH2DgWTpNtEZCDYyX+ZJkMlFGmPK/rC4pTMs2ZqcXrgr3ygOagrn6+xfvYyJRN05+2zMWYhY8szs6KwA61vX+xbNNesWvMlOLa+0w6MVl979BZzSVXwU3j06vhYK2JyE/KCz4YcGPl9P/VGMPMHtz7UOuUnTd5+uIbLkiYTU6BDBATV7v1D9Q1+fz9M9vWoAVLL4hWmtLCntq/s0wOkIzLS8r3+/6wrF5YUMoo3u42sfhcXthG+sJilPTv500x+xy9l9EuK8v+/MIS7S60VTa2ImlMCRk3xzW3WOm2oLhyOWtGatJkFd0vp4HXmw1q8/UrehxVW6hWCADnj2Ov45kKQkIiT+BVVZkOWZlGH3zRoi9foq5mBh+yywRA/3IET46ZgzUKYkyviorFae7ufLto8SJHs8nTZHYcOe2lbsaOf/naMj0U1X2aGkukRYst554HD7rRHhTMtj0P7vdg3Rgepb4IQeDCyc6xD0u2dN1ReFbvbqq6c8nH5RO72g6+fz/66hUKfh/S9ifKTK+wfTbB9tlP1IgajGgD2mgwNMJoNKBpRqO3NkBkWP48MUKUeqzwMBeJkfd2wtVF3v86rnD813ue0xe8UamR7u1NZ7xRAXBBPufTMC1gZgdD6hanynd9sw6b+dRm9e+Vb/36lU8/r95q9csY9K96GyBMR4LTB/wr30UJ61WjdrT5K54PhMvv499G6TvC+m8WU7aPmn0bPv92EPaV/TZqh0zIvYC34kHJt5tv14VdGZsx3/Jps8+g9BPz+ojtyOJZwzNSZiYaLKeH3vntOeXS46GaPuc3V+oFJo42CdS7RP4QnuOCvywS94nvPr832bU4Mi736zN9/EbxjbBwkiE+99kvUpT969S6ny6s/rGkaG7bz3l/by45FVy4flrqhoLY8tna3pUwukM3MzWZvO0hLi3dPHXdPjL2nWbq4ItliHvpVqcHbRGpv68O/pPFuX79ra9kYnz9tPrJCadzQjZ+88ij3xFlThVlWCwtG78pJ9hrpDAiprQg8vB/sRqYxAAAZrVTaDoAAFpI0yiNJwyjaQ4hUAzTdd2oaPt9NGi++bv5YDQ070q2FRj5rlOnOya9s7L9d6sxrnRazqCaUBqX/oYzaEBFCMB1Kx2DAsF37s3yLBvsOR0j2/z98lhs4vKzJSMrbADgalXqAje7TmIOTFloFaFVGw0swQPRLKk/YpCOs9HBFqLQAtJUmw2IIOd4W3CFVYACglkDgBC2w4aAE/TZaOAAw4hCOoIYpGM2OrDgOW8BLYLabIBEXM8YZSswPlxbwp5y+C/ASiqt5/QHt+eLzFBgy1h5px+1HUsFSRh/W55UUdvFPt1o0r7XoFsp4SHtQUUhULfiSPWhRXOdRZG+7RsqKYODjJawt1xz8F8iWUmll+8Pic9/kRkKbAsmfEX+qO149SARiisIn/Gq0oRT6d+NJtWzfA3G8FZK8GD5VIhGAXX2Zo5UH7IN6utMxBbSVePh8Mnl2Wb/CyehO7Sl0sayHdfzw2IWxVqyzRkrO+B2NpqqlZKLg96qNlaGNE26mXss2GvbWayUHXYLz4xOzwgC') format('woff2'),
  5 + url('//at.alicdn.com/t/font_917618_k7suf0xgjkc.woff?t=1548414831956') format('woff'),
  6 + url('//at.alicdn.com/t/font_917618_k7suf0xgjkc.ttf?t=1548414831956') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
  7 + url('//at.alicdn.com/t/font_917618_k7suf0xgjkc.svg?t=1548414831956#iconfont') format('svg'); /* iOS 4.1- */
  8 +}
  9 +
  10 +.iconfont {
  11 + font-family: "iconfont" !important;
  12 + font-size: 16px;
  13 + font-style: normal;
  14 + -webkit-font-smoothing: antialiased;
  15 + -moz-osx-font-smoothing: grayscale;
  16 +}
  17 +
  18 +.icon-chahao:before {
  19 + content: "\e604";
  20 +}
  21 +
  22 +.icon-dianhua:before {
  23 + content: "\e621";
  24 +}
  25 +
  26 +.icon-xuanze1:before {
  27 + content: "\e627";
  28 +}
  29 +
  30 +.icon-xuanzekuanghou:before {
  31 + content: "\e677";
  32 +}
  33 +
  34 +.icon-xuanze2:before {
  35 + content: "\e63b";
  36 +}
  37 +
  38 +.icon-xuanze:before {
  39 + content: "\e63d";
  40 +}
  41 +
  42 +.icon-xuanzekuang:before {
  43 + content: "\e64d";
  44 +}
  45 +
  46 +.icon-shanchu:before {
  47 + content: "\e61e";
  48 +}
  49 +
  50 +.icon-yixiajia:before {
  51 + content: "\e718";
  52 +}
  1 +// pages/active/active.js
  2 +const app = getApp();
  3 +
  4 +Page({
  5 +
  6 + /**
  7 + * 页面的初始数据
  8 + */
  9 + data: {
  10 + page_Con: [],
  11 + monIndex: 0,
  12 + monthIndex: '',
  13 + cityshowIndex: '',
  14 + cityIndex: 0,
  15 + topcityId: 0,
  16 + dateIndex: 0,
  17 + allIndex: 0,
  18 + seachid: '',
  19 + topCity: [],
  20 + conCity: [],
  21 + conMonth: [],
  22 + conDate: ['全时段', '今天', '明天', '本周', '本月'],
  23 + conWarp: ['全价格', '免费', '0-100', '100-300', '300-500', '500以上'],
  24 + reveal: false,
  25 + wxtary: ''
  26 + },
  27 + /**
  28 + * 生命周期函数--监听页面加载
  29 + */
  30 + onLoad: function(options) {
  31 +
  32 + },
  33 + //交流专区
  34 + communitclub() {
  35 + this.setData({
  36 + reveal: true
  37 + })
  38 +
  39 + let that = this;
  40 + that.setData({
  41 + reveal: true
  42 + })
  43 +
  44 + var url = '/api/portal/Strategy/call';
  45 + var params = {
  46 + // token: wx.getStorageSync('token'),
  47 +
  48 + }
  49 + app.post(url, params).then((res) => {
  50 + console.log(res);
  51 + that.setData({
  52 + wxtary: res.secretary
  53 +
  54 + })
  55 +
  56 +
  57 +
  58 + }).catch((err) => {
  59 +
  60 + })
  61 +
  62 + },
  63 + // 一键复制
  64 + bindCopy: function() {
  65 + let that = this;
  66 + wx.setClipboardData({
  67 + data: that.data.wxtary,
  68 + success: function(res) {
  69 + console.log("复制成功")
  70 +
  71 + setTimeout(function() {
  72 + that.setData({
  73 + reveal: false
  74 + })
  75 + }, 1500)
  76 + }
  77 + })
  78 + },
  79 +
  80 + tapHide() {
  81 + this.setData({
  82 + reveal: false
  83 + })
  84 + },
  85 +
  86 +
  87 +
  88 + // 获取活动列表
  89 + getActive: function() {
  90 + let that = this;
  91 + let url = "/api/portal/Activity/index";
  92 + let params = {
  93 + first: that.data.monthIndex,
  94 + second: that.data.cityshowIndex,
  95 + third: that.data.dateIndex,
  96 + fourth: that.data.allIndex,
  97 + keyword: that.data.seachid
  98 + }
  99 + app.post(url, params).then((res) => {
  100 + console.log(res)
  101 + // let stime = res.list;
  102 + // for(var i=0; i<stime.length; i++){
  103 + // stime[i].start_time = that.toDate(stime[i].start_time);
  104 + // stime[i].end_time = that.toDate(stime[i].end_time);
  105 + // }
  106 + let newconMonth = res.score
  107 + let newscore = {
  108 + id: '',
  109 + title: '全部'
  110 + }
  111 + newconMonth.unshift(newscore)
  112 + that.setData({
  113 + topCity: res.city,
  114 + conMonth: newconMonth,
  115 + page_Con: res.list
  116 + })
  117 +
  118 + let kage = that.data.topCity[that.data.topcityId].son;
  119 + let kagename = {
  120 + id: "",
  121 + name: '全部'
  122 + }
  123 + kage.unshift(kagename)
  124 + that.setData({
  125 + conCity: kage
  126 + })
  127 + }).catch((errMsg) => {})
  128 + },
  129 + // 幸福准妈下拉
  130 + monthTap: function(e) {
  131 + let that = this;
  132 + that.setData({
  133 + monIndex: e.detail.value,
  134 + monthIndex: that.data.conMonth[e.detail.value].id,
  135 + page_Con: []
  136 + })
  137 + that.getActive()
  138 + },
  139 + // 全城下拉
  140 + cityTap: function(e) {
  141 + let that = this;
  142 + that.setData({
  143 + cityIndex: e.detail.value,
  144 + cityshowIndex: that.data.conCity[e.detail.value].id,
  145 + page_Con: []
  146 + })
  147 + that.getActive()
  148 + },
  149 + // 全时段下拉
  150 + dateTap: function(e) {
  151 + this.setData({
  152 + dateIndex: e.detail.value,
  153 + page_Con: []
  154 + })
  155 + this.getActive()
  156 + },
  157 + // 全价格下拉
  158 + allTap: function(e) {
  159 + this.setData({
  160 + allIndex: e.detail.value,
  161 + page_Con: []
  162 + })
  163 + this.getActive()
  164 + },
  165 + // 获取搜索条件
  166 + getSearch: function(e) {
  167 + this.setData({
  168 + seachid: e.detail.value,
  169 +
  170 + })
  171 + if (e.detail.value == "" || e.detail.value == null) {
  172 + this.getActive()
  173 + }
  174 +
  175 + },
  176 + // 点击搜索
  177 + bindSearch: function(e) {
  178 + this.setData({
  179 + page_Con: []
  180 + })
  181 + this.getActive()
  182 + },
  183 + // 城市头部下拉切换
  184 + bindPicker: function(e) {
  185 + let that = this;
  186 + this.setData({
  187 + topcityId: e.detail.value
  188 + })
  189 +
  190 + let cityname = that.data.topCity[e.detail.value].name;
  191 + if (cityname == '北京市') {
  192 +
  193 + let newconCity = that.data.topCity[e.detail.value].son
  194 +
  195 + let kagename = {
  196 + id: "",
  197 + name: '全部'
  198 + }
  199 + newconCity.unshift(kagename)
  200 + that.setData({
  201 + conCity: newconCity
  202 + })
  203 +
  204 +
  205 + } else if (cityname == '上海市') {
  206 +
  207 + let newconCity = that.data.topCity[e.detail.value].son
  208 +
  209 + let kagename = {
  210 + id: "",
  211 + name: '全部'
  212 + }
  213 + newconCity.unshift(kagename)
  214 + that.setData({
  215 + conCity: newconCity
  216 + })
  217 + that.setData({
  218 + conCity: newconCity
  219 + })
  220 + }
  221 + },
  222 + //时间戳转换时间
  223 + toDate: function(number) {
  224 + let n = number * 1000;
  225 + let date = new Date(n);
  226 + // let Y = date.getFullYear() + '年';
  227 + let month = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '月';
  228 + let day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate() + '日 ';
  229 + let hour = date.getHours() < 10 ? '0' + date.getHours() + ':' : date.getHours() + ':';
  230 + let minute = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
  231 +
  232 + return (month + day + hour + minute)
  233 + },
  234 +
  235 + // 跳转到 月嫂攻略
  236 + strateTap: function() {
  237 + let token = wx.getStorageSync("token");
  238 + if (token == '') {
  239 + wx.showToast({
  240 + title: '请先登录',
  241 + icon: 'none'
  242 + })
  243 + setTimeout(function() {
  244 + wx.navigateTo({
  245 + url: '/pages/index/index',
  246 + })
  247 + }, 1000)
  248 + } else {
  249 + wx.navigateTo({
  250 + url: '../cityWide/matronStrategy/matronStrategy',
  251 + })
  252 + }
  253 +
  254 + },
  255 + // 跳转到 优选月嫂
  256 + preponTap: function() {
  257 + let token = wx.getStorageSync("token");
  258 + if (token == '') {
  259 + wx.showToast({
  260 + title: '请先登录',
  261 + icon: 'none'
  262 + })
  263 + setTimeout(function() {
  264 + wx.navigateTo({
  265 + url: '/pages/index/index',
  266 + })
  267 + }, 1000)
  268 + } else {
  269 + wx.navigateTo({
  270 + url: '../cityWide/matronPrepon/matronPrepon',
  271 + })
  272 + }
  273 +
  274 + },
  275 + // 跳转到 月子会所
  276 + clubTap: function() {
  277 + let token = wx.getStorageSync("token");
  278 + if (token == '') {
  279 + wx.showToast({
  280 + title: '请先登录',
  281 + icon: 'none'
  282 + })
  283 + setTimeout(function() {
  284 + wx.navigateTo({
  285 + url: '/pages/index/index',
  286 + })
  287 + }, 1000)
  288 + } else {
  289 + wx.navigateTo({
  290 + url: '../cityWide/monthClub/monthClub',
  291 + })
  292 + }
  293 +
  294 + },
  295 + // 跳转到 活动详情页
  296 + bindDetail: function(e) {
  297 + let token = wx.getStorageSync("token");
  298 + if (token == '') {
  299 + wx.showToast({
  300 + title: '请先登录',
  301 + icon: 'none'
  302 + })
  303 + setTimeout(function() {
  304 + wx.navigateTo({
  305 + url: '/pages/index/index',
  306 + })
  307 + }, 1000)
  308 + } else {
  309 + let activeid = e.currentTarget.dataset.activeid;
  310 + wx.navigateTo({
  311 + url: '../cityWide/monthDetail/monthDetail?activeid=' + activeid,
  312 + })
  313 + }
  314 +
  315 + },
  316 +
  317 + /**
  318 + * 生命周期函数--监听页面初次渲染完成
  319 + */
  320 + onReady: function() {
  321 +
  322 + },
  323 +
  324 + /**
  325 + * 生命周期函数--监听页面显示
  326 + */
  327 + onShow: function() {
  328 + let that = this;
  329 + that.getActive()
  330 + },
  331 +
  332 + /**
  333 + * 生命周期函数--监听页面隐藏
  334 + */
  335 + onHide: function() {
  336 +
  337 + },
  338 +
  339 + /**
  340 + * 生命周期函数--监听页面卸载
  341 + */
  342 + onUnload: function() {
  343 +
  344 + },
  345 +
  346 + /**
  347 + * 页面相关事件处理函数--监听用户下拉动作
  348 + */
  349 + onPullDownRefresh: function() {
  350 +
  351 + },
  352 +
  353 + /**
  354 + * 页面上拉触底事件的处理函数
  355 + */
  356 + onReachBottom: function() {
  357 +
  358 + },
  359 +
  360 + /**
  361 + * 用户点击右上角分享
  362 + */
  363 + onShareAppMessage: function() {
  364 +
  365 + }
  366 +})
  1 +{
  2 + "navigationBarTitleText": "同城活动",
  3 + "navigationBarTextStyle": "white"
  4 +}
  1 +<!-- begin小秘书弹层 -->
  2 +<view class='clerk_fn' wx:if="{{reveal}}" bindtap='tapHide' catchtouchmove='true'>
  3 + <view class='clerk_box'>
  4 + <!-- -->
  5 + <view class='clerk_name'>小秘书微信号:{{wxtary}}</view>
  6 + <view class='clerk_con'>点击一键复制微信号,添加小秘书为好友</view>
  7 +<view class='clerk_con'>拉你进“找月嫂&育儿嫂群”,免费领取面</view>
  8 +<view class='clerk_con'>试秘籍</view>
  9 +
  10 + <view class='clerk_btn' catchtap='bindCopy'>一键复制</view>
  11 + </view>
  12 +</view>
  13 +
  14 +<!-- 同城活动页面 -->
  15 +<view class='city_head'>
  16 + <view class='city_left'>
  17 + <picker bindchange="bindPicker" value="{{topcityId}}" range="{{topCity}}" range-key='name'>
  18 + <text>{{topCity[topcityId].name}}</text>
  19 + <image class='city_arr' src='http://bronet.ibaby88.cn/aicon01@2x.png'></image>
  20 + </picker>
  21 + </view>
  22 + <view class='city_serch'>
  23 + <input class='city_char' type='text' placeholder='搜索活动' bindinput='getSearch'></input>
  24 + <image class='serch_img' src='http://bronet.ibaby88.cn/aicon02@2x.png' bindtap='bindSearch'></image>
  25 + </view>
  26 +</view>
  27 +<!-- begin:月嫂攻略列表 -->
  28 +<view class='city_menu'>
  29 + <view class='city_list' bindtap='strateTap'>
  30 + <view class='city_img'><image src='http://bronet.ibaby88.cn/aicon03@2x.png'></image></view>
  31 + <view class='city_info'>
  32 + <view class='city_name'>月嫂攻略</view>
  33 + <view class='city_txt'>找月嫂前必看</view>
  34 + </view>
  35 + </view>
  36 + <view class='city_list' bindtap='preponTap'>
  37 + <view class='city_img'><image src='http://bronet.ibaby88.cn/aicon04@2x.png'></image></view>
  38 + <view class='city_info'>
  39 + <view class='city_name'>优选月嫂&育儿嫂</view>
  40 + <view class='city_txt'>可预约的优质月嫂</view>
  41 + </view>
  42 + </view>
  43 +</view>
  44 +<view class='city_menu city_bom'>
  45 + <view class='city_list' bindtap='clubTap'>
  46 + <view class='city_img'><image src='http://bronet.ibaby88.cn/aicon05@2x.png'></image></view>
  47 + <view class='city_info'>
  48 + <view class='city_name'>月子会所</view>
  49 + <view class='city_txt'>必做功课</view>
  50 + </view>
  51 + </view>
  52 + <view class='city_list' bindtap='communitclub'>
  53 + <view class='city_img'><image src='http://bronet.ibaby88.cn/aicon06@2x.png'></image></view>
  54 + <view class='city_info'>
  55 + <view class='city_name'>交流专区</view>
  56 + <view class='city_txt'>组团找月嫂微信群</view>
  57 + </view>
  58 + </view>
  59 +</view>
  60 +<!-- begin:选择框下拉 -->
  61 +<view class='matron_menu'>
  62 + <view class="matron_list">
  63 + <picker bindchange="monthTap" value="{{monIndex}}" range="{{conMonth}}" range-key='title'>
  64 + <view class="picker">
  65 + {{conMonth[monIndex].title}}<image class='matron_img' src='http://bronet.ibaby88.cn/aicon01@2x.png'></image>
  66 + </view>
  67 + </picker>
  68 + </view>
  69 + <view class="matron_list">
  70 + <picker bindchange="cityTap" value="{{cityIndex}}" range="{{conCity}}" range-key='name'>
  71 + <view class="picker">
  72 + {{conCity[cityIndex].name}}<image class='matron_img' src='http://bronet.ibaby88.cn/aicon01@2x.png'></image>
  73 + </view>
  74 + </picker>
  75 + </view>
  76 + <view class="matron_list">
  77 + <picker bindchange="dateTap" value="{{dateIndex}}" range="{{conDate}}">
  78 + <view class="picker">
  79 + {{conDate[dateIndex]}}<image class='matron_img' src='http://bronet.ibaby88.cn/aicon01@2x.png'></image>
  80 + </view>
  81 + </picker>
  82 + </view>
  83 + <view class="matron_list">
  84 + <picker bindchange="allTap" value="{{allIndex}}" range="{{conWarp}}">
  85 + <view class="picker">
  86 + {{conWarp[allIndex]}}<image class='matron_img' src='http://bronet.ibaby88.cn/aicon01@2x.png'></image>
  87 + </view>
  88 + </picker>
  89 + </view>
  90 +</view>
  91 +<!-- begin:页面信息 -->
  92 +<view wx:if="{{page_Con.length == 0}}" class='page_none'>暂无数据</view>
  93 +<block wx:else>
  94 + <view class='page_info' wx:for="{{page_Con}}" wx:key="" bindtap='bindDetail' data-activeid='{{item.id}}'>
  95 + <view class='page_img'><image src='{{item.list_pic}}'></image></view>
  96 + <view class='page_title'>{{item.title}}</view>
  97 + <view class='page_txt'>
  98 + <text wx:if='{{item.cityName}}'>{{item.cityName[0]}} {{item.cityName[1]}}</text>
  99 + <text class='page_date'>
  100 + {{item.start_time}} <text wx:if="{{item.end_time!=''}}">-</text> {{item.end_time}}
  101 + </text>
  102 + </view>
  103 + <view class='page_menu'>
  104 + <view class='page_labelo' wx:if="{{item.status==1}}">报名中</view>
  105 + <view class='page_labelo' wx:if="{{item.status==2}}">报名未开始</view>
  106 + <view class='page_labelo' wx:if="{{item.status==3}}">报名结束,活动开始</view>
  107 + <view class='page_labelo' wx:if="{{item.status==4}}">活动结束</view>
  108 + <view class='page_labelo page_labelt'wx:if="{{item.money==0}}">免费</view>
  109 + <view class='page_labelo page_labelt' wx:else>{{item.money}}</view>
  110 + </view>
  111 + </view>
  112 +</block>
  113 +
  1 +/* pages/cityWide/cityActivety/cityActivety.wxss */
  2 +@import '../cityWide/matronStrategy/matronStrategy.wxss';
  3 +.city_head{
  4 + display: flex;
  5 + align-items: center;
  6 + justify-content: flex-start;
  7 + height: 88rpx;
  8 + border-bottom: solid 1rpx #EBEBEB;
  9 +}
  10 +.city_left{
  11 + padding-left: 33rpx;
  12 +}
  13 +.city_left text{
  14 + color: #292625;
  15 + font-size: 26rpx;
  16 +}
  17 +.city_arr{
  18 + width: 10rpx;
  19 + height: 10rpx;
  20 + margin-left: 10rpx;
  21 +}
  22 +.city_serch{
  23 + display: flex;
  24 + align-items: center;
  25 + position: relative;
  26 + width: 582rpx;
  27 + height: 64rpx;
  28 + margin-left: 32rpx;
  29 + border-radius: 32rpx;
  30 + background: #FAFAFA;
  31 +}
  32 +.serch_img{
  33 + position: absolute;
  34 + top: 15rpx;
  35 + right: 28rpx;
  36 + width: 33rpx;
  37 + height: 33rpx;
  38 +}
  39 +.city_char{
  40 + width: 510rpx;
  41 + padding-left: 30rpx;
  42 + color: #B2B2B2;
  43 + font-size: 26rpx;
  44 + box-sizing: border-box;
  45 +}
  46 +.city_menu{
  47 + display: flex;
  48 + align-items: center;
  49 + justify-content: space-between;
  50 +}
  51 +.city_bom{
  52 + border-top: solid 1rpx #EBEBEB;
  53 + border-bottom: solid 16rpx #FCF8F7;
  54 +}
  55 +.city_list{
  56 + display: flex;
  57 + align-items: center;
  58 + justify-content: flex-start;
  59 + width: 375rpx;
  60 + height: 140rpx;
  61 + padding-left: 32rpx;
  62 + box-sizing: border-box;
  63 + border-right: solid 1rpx #EBEBEB;
  64 +}
  65 +.city_menu .city_list:last-child{
  66 + border-right: none;
  67 +}
  68 +.city_img{
  69 + width: 80rpx;
  70 + height: 80rpx;
  71 +}
  72 +.city_img image{
  73 + width: 100%;
  74 + height: 100%;
  75 +}
  76 +.city_info{
  77 + padding-left: 22rpx;
  78 +}
  79 +.city_name{
  80 + color: #292625;
  81 + font-size: 30rpx;
  82 + font-weight: bold;
  83 +}
  84 +.city_txt{
  85 + color: #5C5453;
  86 + font-size: 26rpx;
  87 +}
  88 +.matron_menu{
  89 + display: flex;
  90 + align-items: center;
  91 + justify-content: space-between;
  92 + height: 88rpx;
  93 + padding: 0 54rpx;
  94 + border-bottom: solid 1rpx #EBEBEB;
  95 +}
  96 +.matron_list{
  97 + display: flex;
  98 + align-items: center;
  99 + height: 25rpx;
  100 +}
  101 +.matron_list text,.picker{
  102 + color: #292525;
  103 + font-size: 30rpx;
  104 +}
  105 +.matron_img{
  106 + width: 10rpx;
  107 + height: 10rpx;
  108 + margin-left: 10rpx;
  109 +}
  110 +.page_info{
  111 + width: 686rpx;
  112 + margin: 0 auto;
  113 + padding: 36rpx 0;
  114 + border-bottom: solid 1rpx #EBEBEB;
  115 +}
  116 +.page_img{
  117 + width: 686rpx;
  118 + height: 272rpx;
  119 + border-radius: 16rpx;
  120 +}
  121 +.page_img image{
  122 + width: 100%;
  123 + height: 100%;
  124 + border-radius: 16rpx;
  125 +}
  126 +.page_title{
  127 + padding-top: 36rpx;
  128 + /* color: #292525; */
  129 + color:#292625;
  130 +
  131 +
  132 + font-size: 34rpx;
  133 + font-weight: bold;
  134 +
  135 +}
  136 +.page_txt{
  137 + padding-top: 15rpx;
  138 + color: #969799;
  139 + font-size: 26rpx;
  140 +}
  141 +.page_date{
  142 + padding-left: 38rpx;
  143 +}
  144 +.page_menu{
  145 + display: flex;
  146 + align-items: center;
  147 + justify-content: flex-start;
  148 + padding-top: 15rpx;
  149 +}
  150 +.page_labelo{
  151 + padding: 4rpx 12rpx;
  152 + margin-right: 20rpx;
  153 + color: #fff;
  154 + font-size: 24rpx;
  155 + background: #FD8779;
  156 + border-radius: 3rpx;
  157 +}
  158 +.page_labelt{
  159 + background: #FFC299;
  160 +}
  161 +.page_none{
  162 + padding: 36rpx;
  163 + font-size: 26rpx;
  164 +}
  165 +.clerk_box {
  166 + bottom:0rpx;
  167 + height:500rpx;
  168 +}
  1 +// pages/cityWide/WeChatCulum/WeChatCulum.js
  2 +const app=getApp();
  3 +Page({
  4 +
  5 + /**
  6 + * 页面的初始数据
  7 + */
  8 + data: {
  9 + activityId:'',
  10 + joincoursecontent:''
  11 +
  12 + },
  13 +
  14 + /**
  15 + * 生命周期函数--监听页面加载
  16 + */
  17 + onLoad: function (options) {
  18 + let that=this;
  19 +
  20 + that.setData({
  21 + activityId: options.activeid
  22 + })
  23 + that.getwtask();
  24 + },
  25 +
  26 + getwtask(){
  27 + let that=this;
  28 + let url ='/api/portal/Activity/pic'
  29 + var params = {
  30 + token: wx.getStorageSync('token'),
  31 + activityId: that.data.activityId,
  32 +
  33 + }
  34 + app.post(url, params).then((res) => {
  35 + console.log(res);
  36 + that.setData({
  37 + joincoursecontent:res
  38 + })
  39 +
  40 +
  41 +
  42 + }).catch((err) => {
  43 +
  44 + })
  45 + },
  46 +
  47 +//一键复制
  48 + bindCopy: function () {
  49 + let that = this;
  50 +
  51 + wx.setClipboardData({
  52 + data: that.data.joincoursecontent.code,
  53 + success: function (res) {
  54 + console.log("复制成功")
  55 + }
  56 + })
  57 + },
  58 + /**
  59 + * 生命周期函数--监听页面初次渲染完成
  60 + */
  61 + onReady: function () {
  62 +
  63 + },
  64 +
  65 + /**
  66 + * 生命周期函数--监听页面显示
  67 + */
  68 + onShow: function () {
  69 +
  70 + },
  71 +
  72 + /**
  73 + * 生命周期函数--监听页面隐藏
  74 + */
  75 + onHide: function () {
  76 +
  77 + },
  78 +
  79 + /**
  80 + * 生命周期函数--监听页面卸载
  81 + */
  82 + onUnload: function () {
  83 +
  84 + },
  85 +
  86 + /**
  87 + * 页面相关事件处理函数--监听用户下拉动作
  88 + */
  89 + onPullDownRefresh: function () {
  90 +
  91 + },
  92 +
  93 + /**
  94 + * 页面上拉触底事件的处理函数
  95 + */
  96 + onReachBottom: function () {
  97 +
  98 + },
  99 +
  100 + /**
  101 + * 用户点击右上角分享
  102 + */
  103 + onShareAppMessage: function () {
  104 +
  105 + }
  106 +})
  1 +{
  2 + "navigationBarTitleText": "微信直播课程",
  3 + "navigationBarTextStyle": "white"
  4 +}
  1 +<!-- 微信直播课程 -->
  2 +<view class='culum_menu'>
  3 + <view class='culum_img'><image src='http://bronet.ibaby88.cn/bicon43@2x.png'></image></view>
  4 + <view class='culum_box'>
  5 + <view class='culum_pic'><image src='http://bronet.ibaby88.cn/dicon09@2x.png'></image></view>
  6 + <view class='culum_txt'>发送课程代码至小秘书微信</view>
  7 + <view class='culum_num'>{{joincoursecontent.code}}</view>
  8 + <view class='culum_word'>课程代码</view>
  9 + <view class='culum_btn' catchtap="bindCopy">一键复制</view>
  10 + </view>
  11 +</view>
  12 +<view class='culum_code'><image src='{{joincoursecontent.url}}'></image></view>
  13 +<view class='culum_con'>复制上面的课程代码,发送给小秘书,即可通过验证 </view>
  14 +<view class='culum_con addtype'>添加小秘书为好友的方式:</view>
  15 +<view class='culum_con'>截图整个页面,打开微信,选择“扫一扫”右上角“相册“,选择截图页面,识别二维码,添加好友</view>
  1 +/* pages/cityWide/WeChatCulum/WeChatCulum.wxss */
  2 +page{
  3 + background: #FD8779;
  4 +}
  5 +.culum_menu{
  6 + position: relative;
  7 +}
  8 +.culum_img{
  9 + position: absolute;
  10 + top: 0;
  11 + left: 0;
  12 + right: 0;
  13 + width: 686rpx;
  14 + height: 555rpx;
  15 + margin: 0 auto;
  16 + z-index: 5;
  17 +}
  18 +.culum_img image{
  19 + width: 100%;
  20 + height: 100%;
  21 +}
  22 +.culum_box{
  23 + position: relative;
  24 + padding-top: 16rpx;
  25 + z-index: 10;
  26 +}
  27 +.culum_txt{
  28 + padding-top: 22rpx;
  29 + padding-bottom: 62rpx;
  30 + color: #292525;
  31 + font-size: 30rpx;
  32 + text-align: center;
  33 +}
  34 +.culum_num{
  35 + padding-bottom: 20rpx;
  36 + color: #FD8779;
  37 + font-size: 64rpx;
  38 + font-weight: bold;
  39 + text-align: center;
  40 +}
  41 +.culum_word{
  42 + padding-bottom: 52rpx;
  43 + color: #292525;
  44 + font-size: 24rpx;
  45 + text-align: center;
  46 +}
  47 +.culum_btn{
  48 + display: flex;
  49 + align-items: center;
  50 + justify-content: center;
  51 + width: 300rpx;
  52 + height: 80rpx;
  53 + margin: 0 auto;
  54 + color: #fff;
  55 + font-size: 32rpx;
  56 + border-radius: 40rpx;
  57 + background:linear-gradient(0deg,rgba(255,135,177,1),rgba(255,171,200,1));
  58 + box-shadow:0rpx 8rpx 16rpx 0rpx rgba(255,168,198,1);
  59 +}
  60 +.culum_pic{
  61 + width: 80rpx;
  62 + height: 80rpx;
  63 + margin: 0 auto;
  64 + border-radius: 50%;
  65 +}
  66 +.culum_pic image{
  67 + width: 100%;
  68 + height: 100%;
  69 + border-radius: 50%;
  70 +}
  71 +.culum_code{
  72 + width: 280rpx;
  73 + height: 280rpx;
  74 + margin: 132rpx auto 26rpx;
  75 +}
  76 +.culum_code image{
  77 + width: 100%;
  78 + height: 100%;
  79 +}
  80 +.culum_con{
  81 + width:656rpx;
  82 + margin:0 auto;
  83 + color: #fff;
  84 + font-size: 28rpx;
  85 + line-height: 44rpx;
  86 + text-align: center;
  87 +}
  88 +/* .addtype{
  89 + text-align: left
  90 +} */
  1 +const app = getApp();
  2 +let interval = null;
  3 +
  4 +
  5 +Page({
  6 +
  7 + /**
  8 + * 页面的初始数据
  9 + */
  10 + data: {
  11 + activeid: '',
  12 + name: '',
  13 + phone: '',
  14 + activeCon: '',
  15 + codenum:'',
  16 + //获取验证码
  17 + disable: false,
  18 + time: '获取验证码', //倒计时
  19 + currentTime: 60,
  20 + },
  21 +
  22 + /**
  23 + * 生命周期函数--监听页面加载
  24 + */
  25 + onLoad: function (options) {
  26 + let that = this;
  27 + that.setData({
  28 + activeid: options.activeid
  29 + })
  30 + that.getActiveName()
  31 + },
  32 +
  33 + // 获取活动报名信息
  34 + getActiveName: function(){
  35 + let that = this;
  36 + let url = "/api/portal/Activity/join";
  37 + let params = {
  38 + token: wx.getStorageSync('token'),
  39 + activityId: that.data.activeid
  40 + }
  41 + app.post(url, params).then((res) => {
  42 + that.setData({
  43 + activeCon: res.list
  44 + })
  45 + }).catch((errMsg) => {})
  46 + },
  47 + // 获取姓名
  48 + getName: function(e){
  49 + this.setData({
  50 + name: e.detail.value
  51 + })
  52 + },
  53 + // 获取手机号
  54 + getPhone: function(e){
  55 + this.setData({
  56 + phone: e.detail.value
  57 + })
  58 + },
  59 +
  60 +
  61 + getcode: function (options) {
  62 + let that = this;
  63 +
  64 + //判断手机验证码
  65 + let reg = /^[1][3,4,5,6,7,8][0-9]{9}$/;
  66 + let phone = that.data.phone;
  67 + if (!reg.test(phone)) {
  68 + wx.showToast({
  69 + title: '请填写正确的手机号',
  70 + icon: 'none'
  71 + })
  72 +
  73 +
  74 + return false;
  75 + } else {
  76 +
  77 + let that = this;
  78 + let currentTime = that.data.currentTime;
  79 + that.setData({
  80 + disable: true
  81 + })
  82 + interval = setInterval(function () {
  83 + currentTime--;
  84 + that.setData({
  85 + time: currentTime + '秒',
  86 +
  87 + })
  88 + if (currentTime <= 0) {
  89 + clearInterval(interval)
  90 + that.setData({
  91 + time: '重新发送',
  92 + currentTime: 61,
  93 + disable: false
  94 + })
  95 + }
  96 + }, 1000)
  97 + }
  98 +
  99 +
  100 + var url = '/api/portal/Msg/getMes';
  101 +
  102 + let token = wx.getStorageSync('token');
  103 + console.log(token)
  104 + var params = {
  105 + tel: that.data.phone
  106 + }
  107 +
  108 + app.post(url, params).then((res) => {
  109 + console.log(res);
  110 +
  111 + }).catch((err) => {
  112 +
  113 + })
  114 +
  115 + },
  116 +
  117 + //获取验证码
  118 + getVerificationCode() {
  119 + this.getcode();
  120 +
  121 +
  122 + },
  123 +
  124 + //输入验证码
  125 + entercode(e){
  126 +
  127 + this.setData({
  128 + codenum:e.detail.value
  129 + })
  130 +
  131 + },
  132 +
  133 + activitysub(){
  134 + let that=this;
  135 +
  136 + if(that.data.name==''){
  137 + wx.showToast({
  138 + title: '姓名不能为空',
  139 + icon:'none'
  140 + })
  141 +
  142 + return false
  143 + }
  144 +
  145 + if(that.data.phone==''){
  146 + wx.showToast({
  147 + title: '手机号不能为空',
  148 + icon: 'none'
  149 + })
  150 +
  151 + return false
  152 + }
  153 + let reg = /^[1][3,4,5,6,7,8][0-9]{9}$/;
  154 + let phone = that.data.phone;
  155 + if (!reg.test(phone)) {
  156 + wx.showToast({
  157 + title: '请填写正确的手机号',
  158 + icon: 'none'
  159 + })
  160 +
  161 + return false;
  162 + }
  163 +
  164 + let url ='/api/portal/Activity/toJoin';
  165 + let params = {
  166 + token: wx.getStorageSync('token'),
  167 + activityId: that.data.activeid,
  168 + name:that.data.name,
  169 + tel:that.data.phone,
  170 + code:that.data.codenum,
  171 + }
  172 + app.post(url, params).then((res) => {
  173 + console.log(res)
  174 + console.log(res.activityId)
  175 + if (res.activityId){
  176 + wx.setStorageSync('activityId', res.activityId)
  177 + wx.showToast({
  178 + title: '报名成功,等待工作人员联系',
  179 + icon:'none'
  180 + })
  181 +
  182 + setTimeout(function () {
  183 + wx.navigateBack({ changed: true })
  184 + // wx.switchTab({
  185 + // url: '../../active/active',
  186 + // })
  187 + }, 1500) //
  188 + }else{
  189 + wx.showToast({
  190 + title: '报名失败',
  191 + icon: 'none'
  192 + })
  193 + }
  194 + }).catch((errMsg) => { })
  195 + },
  196 +
  197 + /**
  198 + * 生命周期函数--监听页面初次渲染完成
  199 + */
  200 + onReady: function () {
  201 +
  202 + },
  203 +
  204 + /**
  205 + * 生命周期函数--监听页面显示
  206 + */
  207 + onShow: function () {
  208 +
  209 + },
  210 +
  211 + /**
  212 + * 生命周期函数--监听页面隐藏
  213 + */
  214 + onHide: function () {
  215 +
  216 + },
  217 +
  218 + /**
  219 + * 生命周期函数--监听页面卸载
  220 + */
  221 + onUnload: function () {
  222 +
  223 + },
  224 +
  225 + /**
  226 + * 页面相关事件处理函数--监听用户下拉动作
  227 + */
  228 + onPullDownRefresh: function () {
  229 +
  230 + },
  231 +
  232 + /**
  233 + * 页面上拉触底事件的处理函数
  234 + */
  235 + onReachBottom: function () {
  236 +
  237 + },
  238 +
  239 + /**
  240 + * 用户点击右上角分享
  241 + */
  242 + onShareAppMessage: function () {
  243 +
  244 + }
  245 +})
  1 +{
  2 + "navigationBarTitleText": "活动报名",
  3 + "navigationBarTextStyle": "white"
  4 +}
  1 +<!-- 活动报名页面 -->
  2 +<view class='activity_box'>
  3 + <view class='activity_img'><image src='{{activeCon.list_pic}}'></image></view>
  4 + <view class='activity_menu'>
  5 + <view class='activity_name'>{{activeCon.title}}</view>
  6 + <view class='activity_date'>{{activeCon.start_time}}-{{activeCon.end_time}}</view>
  7 + <view class='activity_txt'>{{activeCon.money}}</view>
  8 + </view>
  9 +</view>
  10 +<view class='activity_tab'>
  11 + <view class='activity_list'>
  12 + <view class='activity_title'>姓名</view>
  13 + <view class='activity_char'><input type='text' placeholder='请输入姓名' bindinput='getName'></input></view>
  14 + </view>
  15 + <view class='activity_list'>
  16 + <view class='activity_title'>手机号</view>
  17 + <view class='activity_char'><input type='text' placeholder='请输入手机号' bindinput='getPhone'></input></view>
  18 + </view>
  19 + <view class='activity_list'>
  20 + <view class='activity_title'>验证码</view>
  21 + <view class='activity_char'><input type='text' placeholder='请输入验证码' bindinput='entercode'></input></view>
  22 + <!-- <view class='activity_code'>获取验证码</view> -->
  23 + <button class="activity_char getcode" bindtap="getVerificationCode" disabled="{{disable}}">{{time}} </button>
  24 + </view>
  25 +</view>
  26 +<view class='warp_btn' bindtap="activitysub">提交</view>
  1 +/* pages/cityWide/activityName/activityName.wxss */
  2 +@import '../../../style/base.wxss';
  3 +
  4 +.activity_box{
  5 + display: flex;
  6 + align-items: center;
  7 + justify-content: flex-start;
  8 + padding: 16rpx 32rpx;
  9 + border-bottom: solid 16rpx #FCF8F7;
  10 +}
  11 +.activity_img{
  12 + width: 160rpx;
  13 + height: 160rpx;
  14 + border-radius: 10rpx;
  15 +}
  16 +.activity_img image{
  17 + width: 100%;
  18 + height: 100%;
  19 + border-radius: 10rpx;
  20 +}
  21 +.activity_menu{
  22 + padding-left: 28rpx;
  23 +}
  24 +.activity_name{
  25 + color: #252729;
  26 + font-size: 30rpx;
  27 + font-weight: bold;
  28 +}
  29 +.activity_date{
  30 + padding: 12rpx 0;
  31 + color: #333333;
  32 + font-size: 24rpx;
  33 +}
  34 +.activity_txt{
  35 + color: #FD8779;
  36 + font-size: 24rpx;
  37 +}
  38 +.activity_tab{
  39 + padding: 0 32rpx;
  40 +}
  41 +.activity_list{
  42 + position: relative;
  43 + display: flex;
  44 + align-items: center;
  45 + justify-content: flex-start;
  46 + height: 100rpx;
  47 + padding: 0 12rpx;
  48 + border-bottom: solid 1rpx #EBEBEB;
  49 +}
  50 +.activity_title{
  51 + width: 160rpx;
  52 + color: #000000;
  53 + font-size: 30rpx;
  54 +}
  55 +.activity_char{
  56 + color: #666666;
  57 + font-size: 26rpx;
  58 + width:228rpx;
  59 +}
  60 +.activity_char input{
  61 + width: 100%;
  62 +}
  63 +.activity_code{
  64 + width: 198rpx;
  65 + color: #FD8779;
  66 + font-size: 30rpx;
  67 + text-align: center;
  68 + border-left: solid 1rpx #FD8779;
  69 +}
  70 +.warp_btn{
  71 + position: fixed;
  72 + bottom: 36rpx;
  73 + left: 0;
  74 + right: 0;
  75 +}
  76 +.getcode{
  77 + color:#FD8779;
  78 + background: transparent
  79 +}
  80 +button::after {
  81 + border: none;
  82 + outline: none;
  83 + background: transparent;
  84 +}
  1 +// pages/cityWide/diatelyMake/diatelyMake.js
  2 +const app = getApp();
  3 +
  4 +Page({
  5 +
  6 + /**
  7 + * 页面的初始数据
  8 + */
  9 + data: {
  10 + typeOf: 0,
  11 + maternityid: '',
  12 + date: '',
  13 + name: '',
  14 + phone: '',
  15 + brith:'',
  16 + childbirth: '',
  17 + commet: '',
  18 + infoCon: ''
  19 + },
  20 + /**
  21 + * 生命周期函数--监听页面加载
  22 + */
  23 + onLoad: function (options) {
  24 + let that = this;
  25 + that.setData({
  26 + maternityid: options.maternityid,
  27 + date: app.nowDate()
  28 + })
  29 + that.getInfo();
  30 + that.getlastdate();
  31 + },
  32 +
  33 + //获取上次的预产期
  34 + getlastdate(){
  35 + let that = this;
  36 +
  37 + var url = '/api/portal/childbirth/getLastChildbirthDate';
  38 + var params = {
  39 + token: wx.getStorageSync('token'),
  40 +
  41 + }
  42 + app.post(url, params).then((res) => {
  43 + console.log(res);
  44 + that.setData({
  45 + date: res.childbirth_date
  46 + })
  47 + console.log(that.data.date)
  48 +
  49 +
  50 + }).catch((err) => {
  51 +
  52 + })
  53 + },
  54 +
  55 + // 判断是否为空
  56 + judgeTap: function(){
  57 + let that = this;
  58 + var myreg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1})|(17[0-9]{1}))+\d{8})$/;
  59 + if (that.data.name == ''){
  60 + wx.showToast({
  61 + title: "请输入姓名",
  62 + icon: 'none',
  63 + duration: 1500
  64 + });
  65 + return false;
  66 + } else if (that.data.phone == ''){
  67 + wx.showToast({
  68 + title: "请输入手机号",
  69 + icon: 'none',
  70 + duration: 1500
  71 + });
  72 + return false;
  73 + } else if (!myreg.test(that.data.phone)){
  74 + wx.showToast({
  75 + title: "手机号输入有误",
  76 + icon: 'none',
  77 + duration: 1500
  78 + });
  79 + return false;
  80 + }else if (that.data.typeOf==0){
  81 + wx.showToast({
  82 + title: '请选择类型',
  83 + icon:'none'
  84 + })
  85 +
  86 + return false;
  87 +
  88 + } else if (that.data.childbirth == "") {
  89 + wx.showToast({
  90 + title: '请输入宝宝年龄',
  91 + icon: 'none'
  92 + })
  93 +
  94 + return false;
  95 +
  96 + }else if (that.data.commet == ''){
  97 + wx.showToast({
  98 + title: "请输入特殊说明",
  99 + icon: 'none',
  100 + });
  101 + return false;
  102 + }else{
  103 + that.commitMake()
  104 + }
  105 + },
  106 + // 提交立即预约
  107 + commitMake: function(){
  108 + let that = this;
  109 +
  110 + let url = "/api/portal/Maternity/toAdmin";
  111 + let params = {
  112 + token: wx.getStorageSync('token'),
  113 + maternityId: that.data.maternityid,
  114 + name: that.data.name,
  115 + tel: that.data.phone,
  116 + childbirth: that.data.childbirth,
  117 + type: that.data.typeOf,
  118 + else: that.data.commet,
  119 + find_type: 2
  120 + }
  121 + app.post(url, params).then((res) => {
  122 + console.log(res)
  123 + if(res.length==0){
  124 + wx.showToast({
  125 + title: '提交成功,等待后台工作人员联系',
  126 + icon:'none'
  127 + })
  128 + }
  129 +
  130 + setTimeout(function(){
  131 + wx.navigateTo({
  132 + url: '../matronPrepon/matronPrepon',
  133 + })
  134 + },1500)
  135 +
  136 +
  137 + }).catch((errMsg) => {})
  138 + },
  139 + // 获取详情信息
  140 + getInfo: function(){
  141 + let that = this;
  142 + let url = "/api/portal/Maternity/detail";
  143 + let params = {
  144 + maternityId: that.data.maternityid
  145 + }
  146 + app.post(url, params).then((res) => {
  147 + console.log(res)
  148 + that.setData({
  149 + infoCon: res.list
  150 + })
  151 + }).catch((errMsg) => {})
  152 + },
  153 + // 获取姓名
  154 + getName: function(e){
  155 + this.setData({
  156 + name: e.detail.value
  157 + })
  158 + },
  159 + // 获取手机号
  160 + getPhone: function(e){
  161 + this.setData({
  162 + phone: e.detail.value
  163 + })
  164 + },
  165 + // 获取特殊说明
  166 + getCommit: function(e){
  167 + this.setData({
  168 + commet: e.detail.value
  169 + })
  170 + },
  171 + // 获取预产期
  172 + bindDateChange: function(e){
  173 + this.setData({
  174 + date: e.detail.value,
  175 + childbirth: e.detail.value
  176 + })
  177 + },
  178 + // 获取宝宝年龄
  179 + getBrith: function(e){
  180 + this.setData({
  181 + brith: e.detail.value,
  182 + childbirth: e.detail.value
  183 + })
  184 + },
  185 + //点击切换
  186 + clickTab: function (e) {
  187 + var that = this;
  188 + if (this.data.typeOf === e.target.dataset.current) {
  189 + return false;
  190 + } else {
  191 + that.setData({
  192 + typeOf: e.target.dataset.current
  193 + })
  194 +
  195 + if (that.data.typeOf == 1) {
  196 + that.setData({
  197 + childbirth: that.data.date
  198 + })
  199 + } else if (that.data.typeOf == 2) {
  200 + that.setData({
  201 + childbirth: that.data.brith
  202 + })
  203 + }
  204 +
  205 + }
  206 + },
  207 +
  208 + /**
  209 + * 生命周期函数--监听页面初次渲染完成
  210 + */
  211 + onReady: function () {
  212 +
  213 + },
  214 +
  215 + /**
  216 + * 生命周期函数--监听页面显示
  217 + */
  218 + onShow: function () {
  219 +
  220 + },
  221 +
  222 + /**
  223 + * 生命周期函数--监听页面隐藏
  224 + */
  225 + onHide: function () {
  226 +
  227 + },
  228 +
  229 + /**
  230 + * 生命周期函数--监听页面卸载
  231 + */
  232 + onUnload: function () {
  233 +
  234 + },
  235 +
  236 + /**
  237 + * 页面相关事件处理函数--监听用户下拉动作
  238 + */
  239 + onPullDownRefresh: function () {
  240 +
  241 + },
  242 +
  243 + /**
  244 + * 页面上拉触底事件的处理函数
  245 + */
  246 + onReachBottom: function () {
  247 +
  248 + },
  249 +
  250 + /**
  251 + * 用户点击右上角分享
  252 + */
  253 + onShareAppMessage: function () {
  254 +
  255 + }
  256 +})
  1 +{
  2 + "navigationBarTitleText": "立即预约",
  3 + "navigationBarTextStyle": "white"
  4 +}
  1 +<!-- 立即预约页面 -->
  2 +<view class='make_box'>
  3 + <view class='make_img'><image src='{{infoCon.pic}}'></image></view>
  4 + <view class='make_menu'>
  5 + <view class='make_name'>{{infoCon.name}}</view>
  6 + <view class='make_day'>¥<text>{{infoCon.money}}</text>/天</view>
  7 + </view>
  8 +</view>
  9 +<!-- begin:信息 -->
  10 +<view class='find_box'>
  11 + <view class='find_list'>
  12 + <view class='find_name'>姓名</view>
  13 + <view class='find_left'>
  14 + <input class='make_mname' type='text' placeholder='请输入姓名' bindinput='getName'></input>
  15 + </view>
  16 + </view>
  17 + <view class='find_list'>
  18 + <view class='find_name'>手机号</view>
  19 + <view class='find_left'>
  20 + <input class='make_mname' type='text' placeholder='请输入手机号' bindinput='getPhone'></input>
  21 + </view>
  22 + </view>
  23 + <!-- begin:类型切换 -->
  24 + <view class='find_list'>
  25 + <view class='find_name'>类型</view>
  26 + <view class='find_choice'>
  27 + <view class="find_radio {{typeOf==1?'active':''}}" data-current="1" bindtap='clickTab'>月嫂</view>
  28 + <view class="find_radio {{typeOf==2?'active':''}}" data-current="2" bindtap='clickTab'>育儿嫂</view>
  29 + </view>
  30 + </view>
  31 + <!-- begin:预产期 -->
  32 + <view wx:if="{{typeOf==1}}" class='find_list'>
  33 + <view class='find_name'>预产期</view>
  34 + <view class='find_left pick'>
  35 + <picker mode="date" value="{{date}}" bindchange="bindDateChange">
  36 + <text>{{date}}</text>
  37 + </picker>
  38 + <image class='find_img' src='http://bronet.ibaby88.cn/bicon08@2x.png'></image>
  39 + </view>
  40 + </view>
  41 + <!-- begin:宝宝年龄 -->
  42 + <view wx:if="{{typeOf==2}}" class='find_list'>
  43 + <view class='find_name'>宝宝多大</view>
  44 + <view class='find_left'>
  45 + <input type='text' class='make_mname' placeholder='请输入宝宝年龄' bindinput='getBrith'></input>
  46 + </view>
  47 + </view>
  48 +</view>
  49 +<!-- begin:特殊说明 -->
  50 +<view class='find_menu'>特殊说明</view>
  51 +<view class='find_txt'><textarea placeholder='如有特别说明,请在此处留言' bindinput='getCommit'></textarea></view>
  52 +<!-- begin:按钮 -->
  53 +<view class="footbtn">
  54 +<view class='warp_btn' bindtap='judgeTap'>提交</view>
  55 +
  56 +</view>
  1 +/* pages/cityWide/diatelyMake/diatelyMake.wxss */
  2 +@import '../../../style/base.wxss';
  3 +
  4 +.find_box{
  5 + padding: 0 32rpx;
  6 + border-bottom: solid 16rpx #FCF8F7;
  7 +}
  8 +.find_list{
  9 + display: flex;
  10 + align-items: center;
  11 + justify-content: space-between;
  12 + height: 100rpx;
  13 + padding: 0 10rpx;
  14 + border-bottom: solid 1rpx #EBEBEB;
  15 +}
  16 +.find_box .find_list:last-child{
  17 + border-bottom: none;
  18 +}
  19 +.find_name{
  20 + color: #000000;
  21 + font-size: 30rpx;
  22 +}
  23 +.find_left{
  24 + display: flex;
  25 + align-items: center;
  26 +}
  27 +.find_left text{
  28 + padding-right: 5rpx;
  29 + color: #666666;
  30 + font-size: 26rpx;
  31 +}
  32 +.find_img{
  33 + width: 40rpx;
  34 + height: 40rpx;
  35 +}
  36 +.find_choice{
  37 + display: flex;
  38 + align-items: center;
  39 + justify-content: flex-start;
  40 +}
  41 +.find_radio{
  42 + display: flex;
  43 + align-items: center;
  44 + justify-content: center;
  45 + width: 136rpx;
  46 + height: 60rpx;
  47 + margin-left: 36rpx;
  48 + color: #999999;
  49 + font-size: 26rpx;
  50 + border-radius: 30rpx;
  51 + border: solid 1rpx #EBEBEB;
  52 +}
  53 +.active{
  54 + color: #fff;
  55 + background: #FD8779;
  56 + border: none;
  57 +}
  58 +.find_menu{
  59 + display: flex;
  60 + align-items: center;
  61 + justify-content: space-between;
  62 + height: 80rpx;
  63 + padding-left: 35rpx;
  64 + color: #292525;
  65 + font-size: 26rpx;
  66 + font-weight: bold;
  67 + border-bottom: solid 1rpx #EBEBEB;
  68 +}
  69 +.find_txt{
  70 + padding: 32rpx;
  71 +}
  72 +.find_txt textarea{
  73 + width: 686rpx;
  74 + color: #CCBAB8;
  75 + font-size: 28rpx;
  76 +}
  77 +.warp_btn{
  78 + position: fixed;
  79 + bottom: 36rpx;
  80 + left: 0;
  81 + right: 0;
  82 +}
  83 +.make_box{
  84 + display: flex;
  85 + align-items: center;
  86 + justify-content: flex-start;
  87 + padding: 16rpx 32rpx;
  88 + border-bottom: solid 16rpx #FCF8F7;
  89 +}
  90 +.make_img{
  91 + width: 160rpx;
  92 + height: 160rpx;
  93 + border-radius: 10rpx;
  94 +}
  95 +.make_img image{
  96 + width: 100%;
  97 + height: 100%;
  98 + border-radius: 10rpx;
  99 +}
  100 +.make_menu{
  101 + padding-left: 32rpx;
  102 +}
  103 +.make_name{
  104 + padding-bottom: 38rpx;
  105 + color: #252729;
  106 + font-size: 30rpx;
  107 + font-weight: bold;
  108 +}
  109 +.make_day{
  110 + color: #FD8779;
  111 + font-size: 24rpx;
  112 +}
  113 +.make_day text{
  114 + font-size: 30rpx;
  115 + font-weight: 500;
  116 +}
  117 +.make_mname{
  118 + color: #666666;
  119 + font-size: 26rpx;
  120 + text-align: right;
  121 +}
  122 +.pick picker{
  123 + margin-top: -10rpx;
  124 +}
  1 +// pages/cityWide/keyFind/keyFind.js
  2 +const app = getApp();
  3 +
  4 +Page({
  5 +
  6 + /**
  7 + * 页面的初始数据
  8 + */
  9 + data: {
  10 + typeOf: 0,
  11 + brith: '',
  12 + date: '',
  13 + childbirth: '',
  14 + name: '',
  15 + phone: '',
  16 + comment: ''
  17 + },
  18 + /**
  19 + * 生命周期函数--监听页面加载
  20 + */
  21 + onLoad: function (options) {
  22 +
  23 + this.setData({
  24 + date: app.nowDate(),
  25 + })
  26 + this.getlastdate()
  27 + },
  28 +
  29 + //获取上次的预产期
  30 + getlastdate() {
  31 + let that = this;
  32 +
  33 + var url = '/api/portal/childbirth/getLastChildbirthDate';
  34 + var params = {
  35 + token: wx.getStorageSync('token'),
  36 +
  37 + }
  38 + app.post(url, params).then((res) => {
  39 + console.log(res);
  40 + that.setData({
  41 + date: res.childbirth_date
  42 + })
  43 + console.log(that.data.date)
  44 +
  45 +
  46 + }).catch((err) => {
  47 +
  48 + })
  49 + },
  50 +
  51 + bindDateChange: function (e) {
  52 + console.log(e)
  53 + var val = e.detail.value;
  54 + console.log(val)
  55 + var sval = val.split("-")
  56 + console.log(sval)
  57 + sval = sval[0] + "年" + sval[1] + "月" + sval[2] + "日"
  58 + console.log(sval)
  59 +
  60 + this.setData({
  61 + childbirth: sval
  62 + })
  63 + },
  64 +
  65 +
  66 + // 判断是否为空
  67 + judgEmpty: function(){
  68 + let that = this;
  69 + var myreg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1})|(17[0-9]{1}))+\d{8})$/;
  70 + if (that.data.name == ''){
  71 + wx.showToast({
  72 + title: "请输入姓名",
  73 + icon: 'none',
  74 + duration: 1500
  75 + });
  76 + return false;
  77 + }else if(that.data.phone == ''){
  78 + wx.showToast({
  79 + title: "请输入手机号",
  80 + icon: 'none',
  81 + duration: 1500
  82 + });
  83 + return false;
  84 + } else if (!myreg.test(that.data.phone)){
  85 + wx.showToast({
  86 + title: "手机号输入有误",
  87 + icon: 'none',
  88 + duration: 1500
  89 + });
  90 + return false;
  91 + }
  92 + else if (that.data.typeOf==0){
  93 + wx.showToast({
  94 + title: '请选择类型',
  95 + icon:'none'
  96 + })
  97 + return false;
  98 +
  99 + } else if (that.data.childbirth==""){
  100 + wx.showToast({
  101 + title: '请输入宝宝年龄',
  102 + icon:'none'
  103 + })
  104 + return false
  105 +
  106 + }else if(that.data.comment == ''){
  107 + wx.showToast({
  108 + title: "请输入特殊说明",
  109 + icon: 'none',
  110 + duration: 1500
  111 + });
  112 + return false;
  113 + }else{
  114 + that.commitInfo()
  115 + }
  116 + },
  117 + // 提交一键找月嫂信息
  118 + commitInfo: function(){
  119 + let that = this;
  120 + let url = "/api/portal/Maternity/toAdmin";
  121 + let params = {
  122 + token: wx.getStorageSync('token'),
  123 + name: that.data.name,
  124 + tel: that.data.phone,
  125 + childbirth: that.data.childbirth,
  126 + type: that.data.typeOf,
  127 + else: that.data.comment,
  128 + find_type: 1
  129 + }
  130 + app.post(url, params).then((res) => {
  131 + console.log(res.length)
  132 + if(res.length==0){
  133 + console.log(999)
  134 + wx.showToast({
  135 + title: '提交成功,等待后台工作人员联系',
  136 + icon: 'none',
  137 + })
  138 +
  139 + setTimeout(function () {
  140 + // wx.navigateTo({
  141 + // url: '../matronPrepon/matronPrepon',
  142 + // })
  143 +
  144 + wx.navigateBack({
  145 + checked:true
  146 + })
  147 + },1500)
  148 + }
  149 +
  150 +
  151 +
  152 +
  153 + }).catch((errMsg) => {})
  154 + },
  155 + // 获取姓名
  156 + getName: function(e){
  157 + this.setData({
  158 + name: e.detail.value
  159 + })
  160 + },
  161 + // 获取手机号
  162 + getPhone: function(e){
  163 + this.setData({
  164 + phone: e.detail.value
  165 + })
  166 + },
  167 + // 获取宝宝年龄
  168 + getBrith: function(e){
  169 + this.setData({
  170 + brith: e.detail.value,
  171 + childbirth: e.detail.value
  172 + })
  173 + },
  174 + // 获取特殊说明
  175 + getElse: function(e){
  176 + this.setData({
  177 + comment: e.detail.value
  178 + })
  179 + },
  180 + // 选择预产期
  181 + // bindDateChange: function (e) {
  182 + // this.setData({
  183 + // date: e.detail.value,
  184 + // childbirth: e.detail.value
  185 + // })
  186 + // },
  187 + // 点击切换
  188 + clickTab: function (e) {
  189 + var that = this;
  190 + if (this.data.typeOf === e.target.dataset.current) {
  191 + return false;
  192 + } else {
  193 + that.setData({
  194 + typeOf: e.target.dataset.current
  195 + })
  196 +
  197 + if(that.data.typeOf == 1){
  198 + that.setData({
  199 + childbirth: that.data.date
  200 + })
  201 + } else if (that.data.typeOf == 2){
  202 + that.setData({
  203 + childbirth: that.data.brith
  204 + })
  205 + }
  206 + }
  207 + },
  208 +
  209 + /**
  210 + * 生命周期函数--监听页面初次渲染完成
  211 + */
  212 + onReady: function () {
  213 +
  214 + },
  215 +
  216 + /**
  217 + * 生命周期函数--监听页面显示
  218 + */
  219 + onShow: function () {
  220 +
  221 + },
  222 +
  223 + /**
  224 + * 生命周期函数--监听页面隐藏
  225 + */
  226 + onHide: function () {
  227 +
  228 + },
  229 +
  230 + /**
  231 + * 生命周期函数--监听页面卸载
  232 + */
  233 + onUnload: function () {
  234 +
  235 + },
  236 +
  237 + /**
  238 + * 页面相关事件处理函数--监听用户下拉动作
  239 + */
  240 + onPullDownRefresh: function () {
  241 +
  242 + },
  243 +
  244 + /**
  245 + * 页面上拉触底事件的处理函数
  246 + */
  247 + onReachBottom: function () {
  248 +
  249 + },
  250 +
  251 + /**
  252 + * 用户点击右上角分享
  253 + */
  254 + onShareAppMessage: function () {
  255 +
  256 + }
  257 +})
  1 +{
  2 + "navigationBarTitleText": "一键找月嫂",
  3 + "navigationBarTextStyle": "white"
  4 +}
  1 +<!-- 一键找月嫂页面 -->
  2 +<view class='find_box'>
  3 + <view class='find_list'>
  4 + <view class='find_name'>姓名</view>
  5 + <view class='find_left'>
  6 + <input type='text' placeholder='请输入姓名' bindinput='getName'></input>
  7 + </view>
  8 + </view>
  9 + <view class='find_list'>
  10 + <view class='find_name'>手机号</view>
  11 + <view class='find_left'>
  12 + <input type='number' placeholder='请输入手机号' bindinput='getPhone'></input>
  13 + </view>
  14 + </view>
  15 +</view>
  16 +<!-- begin:类型 -->
  17 +<view class='find_box'>
  18 + <view class='find_list'>
  19 + <view class='find_name'>类型</view>
  20 + <view class='find_choice'>
  21 + <view class="find_radio {{typeOf==1?'active':''}}" data-current="1" bindtap='clickTab'>月嫂</view>
  22 + <view class="find_radio {{typeOf==2?'active':''}}" data-current="2" bindtap='clickTab'>育儿嫂</view>
  23 + </view>
  24 + </view>
  25 + <view wx:if="{{typeOf==1}}" class='find_list'>
  26 + <view class='find_name'>预产期</view>
  27 + <view class='find_left'>
  28 + <picker mode="date" value="{{childbirth}}" bindchange="bindDateChange">
  29 + <view class="picker find_date">{{childbirth}}</view>
  30 + </picker>
  31 + <image class='find_img' src='http://bronet.ibaby88.cn/bicon08@2x.png'></image>
  32 + </view>
  33 + </view>
  34 + <view wx:if="{{typeOf==2}}" class='find_list'>
  35 + <view class='find_name'>宝宝多大</view>
  36 + <view class='find_left'>
  37 + <input type='text' placeholder='请输入宝宝年龄' bindinput='getBrith'></input>
  38 + </view>
  39 + </view>
  40 +</view>
  41 +<!-- begin:特殊说明 -->
  42 +<view class='find_menu'>特殊说明</view>
  43 +<view class='find_txt'><textarea placeholder='如有特别说明,请在此处留言' bindinput='getElse'></textarea></view>
  44 +<!-- begin:按钮 -->
  45 +
  46 +<view class="footbtn">
  47 + <view class='warp_btn' bindtap='judgEmpty'>提交</view>
  48 +
  49 +</view>
  1 +/* pages/cityWide/keyFind/keyFind.wxss */
  2 +@import '../../../style/base.wxss';
  3 +
  4 +.find_box{
  5 + padding: 0 32rpx;
  6 + border-bottom: solid 16rpx #FCF8F7;
  7 +}
  8 +.find_list{
  9 + display: flex;
  10 + align-items: center;
  11 + justify-content: space-between;
  12 + height: 100rpx;
  13 + padding: 0 10rpx;
  14 + border-bottom: solid 1rpx #EBEBEB;
  15 +}
  16 +.find_box .find_list:last-child{
  17 + border-bottom: none;
  18 +}
  19 +.find_name{
  20 + color: #000000;
  21 + font-size: 30rpx;
  22 +}
  23 +.find_left{
  24 + display: flex;
  25 + align-items: center;
  26 +}
  27 +.find_left input, .find_date{
  28 + padding-right: 5rpx;
  29 + color: #666666;
  30 + font-size: 26rpx;
  31 + text-align: right;
  32 +}
  33 +.find_left picker{
  34 + height: 38rpx;
  35 +}
  36 +.find_img{
  37 + width: 40rpx;
  38 + height: 40rpx;
  39 +}
  40 +.find_choice{
  41 + display: flex;
  42 + align-items: center;
  43 + justify-content: flex-start;
  44 +}
  45 +.find_radio{
  46 + display: flex;
  47 + align-items: center;
  48 + justify-content: center;
  49 + width: 136rpx;
  50 + height: 60rpx;
  51 + margin-left: 36rpx;
  52 + color: #999999;
  53 + font-size: 26rpx;
  54 + border-radius: 30rpx;
  55 + border: solid 1rpx #EBEBEB;
  56 +}
  57 +.active{
  58 + color: #fff;
  59 + background: #FD8779;
  60 + border: none;
  61 +}
  62 +.find_menu{
  63 + display: flex;
  64 + align-items: center;
  65 + justify-content: space-between;
  66 + height: 80rpx;
  67 + padding-left: 35rpx;
  68 + color: #292525;
  69 + font-size: 26rpx;
  70 + font-weight: bold;
  71 + border-bottom: solid 1rpx #EBEBEB;
  72 +}
  73 +.find_txt{
  74 + padding: 32rpx;
  75 +}
  76 +.find_txt textarea{
  77 + width: 686rpx;
  78 + color: #CCBAB8;
  79 + font-size: 28rpx;
  80 +}
  81 +.warp_btn{
  82 + position: fixed;
  83 + bottom: 36rpx;
  84 + left: 0;
  85 + right: 0;
  86 +}
  1 +// pages/cityWide/matronDetail/matronDetail.js
  2 +const app = getApp();
  3 +
  4 +Page({
  5 +
  6 + /**
  7 + * 页面的初始数据
  8 + */
  9 + data: {
  10 + maternityid: '',
  11 + detailCon: ''
  12 + },
  13 + /**
  14 + * 生命周期函数--监听页面加载
  15 + */
  16 + onLoad: function (options) {
  17 + let that = this;
  18 + that.setData({
  19 + maternityid: options.maternityId
  20 + })
  21 + that.getDetail()
  22 + },
  23 +
  24 + // 获取月嫂详情
  25 + getDetail: function(){
  26 + let that = this;
  27 + let url = "/api/portal/Maternity/detail";
  28 + let params = {
  29 + maternityId: that.data.maternityid
  30 + }
  31 + app.post(url, params).then((res) => {
  32 + console.log(res)
  33 + that.setData({
  34 + detailCon: res.list
  35 + })
  36 + }).catch((errMsg) => {})
  37 + },
  38 + // 跳转到 立即预约
  39 + makeTap:function(){
  40 + wx.navigateTo({
  41 + url: '../diatelyMake/diatelyMake?maternityid=' + this.data.maternityid,
  42 + })
  43 + },
  44 +
  45 + /**
  46 + * 生命周期函数--监听页面初次渲染完成
  47 + */
  48 + onReady: function () {
  49 +
  50 + },
  51 +
  52 + /**
  53 + * 生命周期函数--监听页面显示
  54 + */
  55 + onShow: function () {
  56 +
  57 + },
  58 +
  59 + /**
  60 + * 生命周期函数--监听页面隐藏
  61 + */
  62 + onHide: function () {
  63 +
  64 + },
  65 +
  66 + /**
  67 + * 生命周期函数--监听页面卸载
  68 + */
  69 + onUnload: function () {
  70 +
  71 + },
  72 +
  73 + /**
  74 + * 页面相关事件处理函数--监听用户下拉动作
  75 + */
  76 + onPullDownRefresh: function () {
  77 +
  78 + },
  79 +
  80 + /**
  81 + * 页面上拉触底事件的处理函数
  82 + */
  83 + onReachBottom: function () {
  84 +
  85 + },
  86 +
  87 + /**
  88 + * 用户点击右上角分享
  89 + */
  90 + onShareAppMessage: function () {
  91 +
  92 + }
  93 +})
  1 +{
  2 + "navigationBarTitleText": "月嫂详情",
  3 + "navigationBarTextStyle": "white"
  4 +}
  1 +<!-- 月嫂详情页面 -->
  2 +<view class='detail_head'>
  3 + <view class='detail_img'><image src='{{detailCon.pic}}'></image></view>
  4 + <view class='detail_name'>{{detailCon.name}}</view>
  5 + <view class='detail_day'>¥{{detailCon.money}}/天</view>
  6 + <view class='detail_btn' bindtap='makeTap'>预约面试</view>
  7 +</view>
  8 +<!-- begin:信息 -->
  9 +<view class='detail_menu'>
  10 + <view class='detail_txt'>公司:{{detailCon.company}}</view>
  11 + <view class='detail_txt'>
  12 + <text>年龄:{{detailCon.age}}</text>
  13 + <text class='detail_num'>经验:</text>
  14 + <text wx:if="{{detailCon.experience==1}}">初级</text>
  15 + <text wx:if="{{detailCon.experience==2}}">中级</text>
  16 + <text wx:if="{{detailCon.experience==3}}">高级</text>
  17 + <text wx:if="{{detailCon.experience==4}}">金牌</text>
  18 + <text wx:if="{{detailCon.experience==5}}">首席</text>
  19 +
  20 +
  21 + </view>
  22 + <view class='detail_txt'>籍贯:{{detailCon.native}}</view>
  23 + <view class='detail_txt'>特长:{{detailCon.speciality}}</view>
  24 + <view class='detail_txt'>证书:{{detailCon.certificate}}</view>
  25 +</view>
  26 +<!-- begin:个人简介 -->
  27 +<view class='detail_per'>
  28 + <view class='detail_tab'>
  29 + <image class='detail_pic' src='http://bronet.ibaby88.cn/bicon11@2x.png'></image>
  30 + <text>个人简介</text>
  31 + </view>
  32 + <view class='detail_info'>{{detailCon.introduction}}</view>
  33 +</view>
  34 +<!-- begin:预约时间段 -->
  35 +<view class='detail_tab'>
  36 + <image class='detail_pic' src='http://bronet.ibaby88.cn/bicon38@2x.png'></image>
  37 + <text>可预约时段</text>
  38 +</view>
  39 +<view class='detail_date'>{{detailCon.free_time}}</view>
  1 +/* pages/cityWide/matronDetail/matronDetail.wxss */
  2 +.detail_head{
  3 + padding-top: 60rpx;
  4 + padding-bottom: 32rpx;
  5 + border-bottom: solid 16rpx #FCF8F7;
  6 +}
  7 +.detail_img{
  8 + width: 125rpx;
  9 + height: 125rpx;
  10 + margin: 0 auto;
  11 + border: solid 1rpx #FD8779;
  12 + border-radius: 50%;
  13 +}
  14 +.detail_img image{
  15 + width: 100%;
  16 + height: 100%;
  17 + border-radius: 50%;
  18 +}
  19 +.detail_name{
  20 + padding: 30rpx 0;
  21 + color: #292525;
  22 + font-size: 28rpx;
  23 + text-align: center;
  24 + font-weight: bold;
  25 +}
  26 +.detail_day{
  27 + padding-bottom: 35rpx;
  28 + color: #292525;
  29 + font-size: 26rpx;
  30 + text-align: center;
  31 +}
  32 +.detail_btn{
  33 + display: flex;
  34 + align-items: center;
  35 + justify-content: center;
  36 + width: 310rpx;
  37 + height: 80rpx;
  38 + margin: 0 auto;
  39 + color: #fff;
  40 + font-size: 30rpx;
  41 + border-radius: 40rpx;
  42 + background: #FD8779;
  43 +}
  44 +.detail_menu{
  45 + padding: 30rpx 30rpx 0;
  46 + border-bottom: solid 16rpx #FCF8F7;
  47 +}
  48 +.detail_txt{
  49 + padding-bottom: 28rpx;
  50 + color: #292525;
  51 + font-size: 28rpx;
  52 +}
  53 +.detail_num{
  54 + padding-left: 118rpx;
  55 +}
  56 +.detail_per{
  57 + border-bottom: solid 16rpx #FCF8F7;
  58 +}
  59 +.detail_tab{
  60 + display: flex;
  61 + align-items: center;
  62 + height: 80rpx;
  63 + padding-left: 36rpx;
  64 + border-bottom: solid 1rpx #EBEBEB;
  65 +}
  66 +.detail_tab text{
  67 + padding-left: 14rpx;
  68 + color: #292525;
  69 + font-size: 26rpx;
  70 + font-weight: bold;
  71 +}
  72 +.detail_pic{
  73 + width: 40rpx;
  74 + height: 40rpx;
  75 +}
  76 +.detail_info{
  77 + padding: 28rpx 34rpx 22rpx;
  78 + color: #292525;
  79 + font-size: 28rpx;
  80 + line-height: 50rpx;
  81 +}
  82 +.detail_date{
  83 + display: flex;
  84 + align-items: center;
  85 + height: 82rpx;
  86 + padding-left: 34rpx;
  87 + color: #292525;
  88 + font-size: 28rpx;
  89 +}
  1 +// pages/cityWide/matronPrepon/matronPrepon.js
  2 +const app = getApp();
  3 +
  4 +Page({
  5 +
  6 + /**
  7 + * 页面的初始数据
  8 + */
  9 + data: {
  10 + page: 1,
  11 + matronCon:[],
  12 + priIndex: 0,
  13 + ageIndex: 0,
  14 + studyIndex: 0,
  15 + orgIndex: 0,
  16 + fourthid: '',
  17 + conPrice: ['工种', '月嫂', '育儿嫂'],
  18 + conAge: ['年龄', '35岁以下', '35~45岁', '45岁以上'],
  19 + conStudy: ['经验', '初级', '中级', '高级', '金牌', '首席'],
  20 + conOrgan: []
  21 + },
  22 +
  23 + /**
  24 + * 生命周期函数--监听页面加载
  25 + */
  26 + onLoad: function (options) {
  27 + this.getMatronlist()
  28 + },
  29 +
  30 + // 获取优选月嫂列表
  31 + getMatronlist: function(){
  32 + let that = this;
  33 + let url = "/api/portal/Maternity/index";
  34 + let params = {
  35 + first: that.data.priIndex,
  36 + second: that.data.ageIndex,
  37 + third: that.data.studyIndex,
  38 + fourth: that.data.fourthid,
  39 + page: that.data.page
  40 + }
  41 + app.post(url, params).then((res) => {
  42 + that.setData({
  43 + matronCon: res.list,
  44 + conOrgan: res.score
  45 + })
  46 + }).catch((errMsg) => {})
  47 + },
  48 + //工种下拉
  49 + priceTap: function (e) {
  50 + let that = this;
  51 + that.setData({
  52 + priIndex: e.detail.value
  53 + })
  54 + that.getMatronlist()
  55 + },
  56 + //年龄下拉
  57 + ageTap: function (e) {
  58 + let that = this;
  59 + that.setData({
  60 + ageIndex: e.detail.value
  61 + })
  62 + that.getMatronlist()
  63 + },
  64 + //经验下拉
  65 + studyTap: function (e) {
  66 + let that = this;
  67 + that.setData({
  68 + studyIndex: e.detail.value
  69 + })
  70 + that.getMatronlist()
  71 + },
  72 + //机构下拉
  73 + organTap: function (e) {
  74 + let that = this;
  75 + that.setData({
  76 + orgIndex: e.detail.value,
  77 + fourthid: that.data.conOrgan[e.detail.value].id
  78 + })
  79 + that.getMatronlist()
  80 + },
  81 +
  82 + //跳转到 月嫂详情
  83 + detailTap: function (e) {
  84 + let maternityId = e.currentTarget.dataset.maternityid;
  85 + wx.navigateTo({
  86 + url: '../matronDetail/matronDetail?maternityId=' + maternityId,
  87 + })
  88 + },
  89 + //跳转到 一键找月嫂
  90 + findTap: function (e) {
  91 + wx.navigateTo({
  92 + url: '../keyFind/keyFind',
  93 + })
  94 + },
  95 +
  96 + /**
  97 + * 生命周期函数--监听页面初次渲染完成
  98 + */
  99 + onReady: function () {
  100 +
  101 + },
  102 +
  103 + /**
  104 + * 生命周期函数--监听页面显示
  105 + */
  106 + onShow: function () {
  107 +
  108 + },
  109 +
  110 + /**
  111 + * 生命周期函数--监听页面隐藏
  112 + */
  113 + onHide: function () {
  114 +
  115 + },
  116 +
  117 + /**
  118 + * 生命周期函数--监听页面卸载
  119 + */
  120 + onUnload: function () {
  121 +
  122 + },
  123 +
  124 + /**
  125 + * 页面相关事件处理函数--监听用户下拉动作
  126 + */
  127 + onPullDownRefresh: function () {
  128 +
  129 + },
  130 +
  131 + /**
  132 + * 页面上拉触底事件的处理函数
  133 + */
  134 + onReachBottom: function () {
  135 +
  136 + },
  137 +
  138 + /**
  139 + * 用户点击右上角分享
  140 + */
  141 + onShareAppMessage: function () {
  142 +
  143 + }
  144 +})
  1 +{
  2 + "navigationBarTitleText": "优选月嫂",
  3 + "navigationBarTextStyle": "white"
  4 +}
  1 +<!-- 优选月嫂页面 -->
  2 +<view class='matron_head'>
  3 + <view class='matron_txt'>一键免费定制,找到满意的月嫂</view>
  4 + <view class='matron_btn' bindtap='findTap'>立即定制</view>
  5 +</view>
  6 +<!-- begin:选择框下拉 -->
  7 +<view class='matron_menu'>
  8 + <!-- begin:工种下拉 -->
  9 + <view class='matron_list'>
  10 + <picker bindchange="priceTap" value="{{priIndex}}" range="{{conPrice}}">
  11 + <view class="picker">
  12 + {{conPrice[priIndex]}}<image class='matron_img' src='http://bronet.ibaby88.cn/aicon01@2x.png'></image>
  13 + </view>
  14 + </picker>
  15 + </view>
  16 + <!-- begin:年龄下拉 -->
  17 + <view class='matron_list'>
  18 + <picker bindchange="ageTap" value="{{ageIndex}}" range="{{conAge}}">
  19 + <view class="picker">
  20 + {{conAge[ageIndex]}}<image class='matron_img' src='http://bronet.ibaby88.cn/aicon01@2x.png'></image>
  21 + </view>
  22 + </picker>
  23 + </view>
  24 + <!-- begin:经验下拉 -->
  25 + <view class='matron_list'>
  26 + <picker bindchange="studyTap" value="{{studyIndex}}" range="{{conStudy}}">
  27 + <view class="picker">
  28 + {{conStudy[studyIndex]}}<image class='matron_img' src='http://bronet.ibaby88.cn/aicon01@2x.png'></image>
  29 + </view>
  30 + </picker>
  31 + </view>
  32 + <!-- begin:机构下拉 -->
  33 + <view class='matron_list'>
  34 + <picker bindchange="organTap" value="{{orgIndex}}" range="{{conOrgan}}" range-key='title'>
  35 + <view class="picker">
  36 + {{conOrgan[orgIndex].title}}<image class='matron_img' src='http://bronet.ibaby88.cn/aicon01@2x.png'></image>
  37 + </view>
  38 + </picker>
  39 + </view>
  40 +</view>
  41 +<!-- begin:列表信息 -->
  42 +<view class="nodata" wx:if="{{matronCon.length==0}}">暂无数据</view>
  43 +<view wx:else>
  44 +
  45 +<view class='matron_tab' wx:for="{{matronCon}}" bindtap='detailTap' wx:key="name" data-maternityId="{{item.id}}">
  46 + <view class='matron_pic'><image src='{{item.pic}}'></image></view>
  47 + <view class='matron_info'>
  48 + <view class='matron_name'>{{item.name}}</view>
  49 + <view class='matron_detail'>
  50 + <text>{{item.age}}岁</text>
  51 + <text>{{item.expName}}</text>
  52 + <text wx:if="{{item.type==1}}">月嫂</text>
  53 + <text wx:if="{{item.type==2}}">育儿嫂</text>
  54 +
  55 + <text>{{item.native}}</text>
  56 +
  57 +
  58 + </view>
  59 + <view class='matron_day'>¥<text class='matron_money'>{{item.money}}</text>/26天</view>
  60 + </view>
  61 +</view>
  62 +
  63 +
  64 +</view>
  1 +/* pages/cityWide/matronPrepon/matronPrepon.wxss */
  2 +.matron_head{
  3 + display: flex;
  4 + align-items: center;
  5 + justify-content: space-between;
  6 + width: 100%;
  7 + height: 70rpx;
  8 + padding: 0 32rpx;
  9 + background: #FD8779;
  10 + box-sizing: border-box;
  11 +}
  12 +.matron_txt{
  13 + color: #fff;
  14 + font-size: 26rpx;
  15 +}
  16 +.matron_btn{
  17 + display: flex;
  18 + align-items: center;
  19 + justify-content: center;
  20 + width: 137rpx;
  21 + height: 46rpx;
  22 + color: #fff;
  23 + font-size: 24rpx;
  24 + border: solid 1rpx #fff;
  25 + border-radius: 23rpx;
  26 +}
  27 +.matron_menu{
  28 + display: flex;
  29 + align-items: center;
  30 + justify-content: space-between;
  31 + height: 88rpx;
  32 + padding: 0 54rpx;
  33 + border-bottom: solid 1rpx #EBEBEB;
  34 +}
  35 +.matron_list{
  36 + display: flex;
  37 + align-items: center;
  38 + height: 25rpx;
  39 +}
  40 +.matron_list text,.picker{
  41 + color: #292525;
  42 + font-size: 30rpx;
  43 +}
  44 +.matron_img{
  45 + width: 10rpx;
  46 + height: 10rpx;
  47 + margin-left: 10rpx;
  48 +}
  49 +.matron_tab{
  50 + display: flex;
  51 + align-items: center;
  52 + justify-content: flex-start;
  53 + padding: 16rpx 32rpx;
  54 +}
  55 +.matron_pic{
  56 + width: 160rpx;
  57 + height: 160rpx;
  58 +}
  59 +.matron_pic image{
  60 + width: 100%;
  61 + height: 100%;
  62 +}
  63 +.matron_info{
  64 + padding-left: 32rpx;
  65 +}
  66 +.matron_name{
  67 + color: #252729;
  68 + font-size: 30rpx;
  69 + font-weight: bold;
  70 +}
  71 +.matron_detail{
  72 + padding: 10rpx 0;
  73 + color: #53575C;
  74 + font-size: 26rpx;
  75 +}
  76 +.matron_detail text{
  77 + margin-left:10rpx;
  78 +}
  79 +.matron_detail text:first-child{
  80 + margin-left:0;
  81 +}
  82 +.matron_day{
  83 + color: #FD8779;
  84 + font-size: 24rpx;
  85 +}
  86 +.matron_money{
  87 + font-size: 30rpx;
  88 + font-weight: 500;
  89 +}
  1 +// pages/cityWide/matronStrategy/matronStrategy.js
  2 +const app=getApp();
  3 +var WxParse = require('../../../wxParse/wxParse.js');
  4 +Page({
  5 +
  6 + /**
  7 + * 页面的初始数据
  8 + */
  9 + data: {
  10 + wxtary: 'honey588',
  11 + reveal: false,
  12 + monthCon: [{
  13 + id: "01",
  14 + mtitle: "找月嫂全攻略",
  15 + content: "你满意的月嫂,得这样找",
  16 + imagesUrl: "http://pi4orwnti.bkt.clouddn.com/bicon34@2x.png"
  17 + }, {
  18 + id: "02",
  19 + mtitle: "图说月嫂",
  20 + content: "三张图告诉你月嫂都干了些什么?",
  21 + imagesUrl: "http://pi4orwnti.bkt.clouddn.com/bicon34@2x.png"
  22 + }, {
  23 + id: "03",
  24 + mtitle: "教你如何面试月嫂",
  25 + content: "面试月嫂需要注意啥?最全参考在这里",
  26 + imagesUrl: "http://pi4orwnti.bkt.clouddn.com/bicon34@2x.png"
  27 + }],
  28 + strateCon: [{
  29 + id: "01",
  30 + ntitle: "随心退",
  31 + contents: "定金可退,上户后不满意可随时更换同等级月嫂,或按剩余天数退款"
  32 + }, {
  33 + id: "02",
  34 + ntitle: "监督服务",
  35 + contents: "如遇到问题,可联系您的小秘书,如确认是机构方的错误,ibaby8会扣除机构的保障金来补偿您..."
  36 + }, {
  37 + id: "03",
  38 + ntitle: "会员福利",
  39 + contents: "赠送价值1000元的产后代金券。"
  40 + }],
  41 +
  42 + content:'',
  43 + secretary:''
  44 + },
  45 +
  46 + /**
  47 + * 生命周期函数--监听页面加载
  48 + */
  49 + onLoad: function (options) {
  50 + this.yuesao()
  51 +
  52 + },
  53 + yuesao(){
  54 + let that = this;
  55 + var url = '/api/portal/Strategy/index';
  56 + var params = {
  57 + // token: wx.getStorageSync('token'),
  58 +
  59 + }
  60 + app.post(url, params).then((res) => {
  61 + console.log(res);
  62 + that.setData({
  63 + content:res,
  64 + monthCon: res.strategy
  65 + })
  66 + WxParse.wxParse('article', 'html', res.buttom, that, 5)
  67 +
  68 +
  69 + }).catch((err) => {
  70 +
  71 + })
  72 +
  73 + },
  74 +
  75 +
  76 + // 点击领取福利
  77 + tapDraw: function(){
  78 + let that = this;
  79 + that.setData({
  80 + reveal: true
  81 + })
  82 +
  83 + var url = '/api/portal/Strategy/call';
  84 + var params = {
  85 + // token: wx.getStorageSync('token'),
  86 +
  87 + }
  88 + app.post(url, params).then((res) => {
  89 + console.log(res);
  90 + that.setData({
  91 + wxtary: res.secretary
  92 + })
  93 +
  94 +
  95 +
  96 + }).catch((err) => {
  97 +
  98 + })
  99 +
  100 +
  101 + },
  102 + // 隐藏小秘书弹层
  103 + tapHide: function(){
  104 + let that = this;
  105 + that.setData({
  106 + reveal: false
  107 + })
  108 + },
  109 + // 一键复制
  110 + bindCopy: function () {
  111 + let that = this;
  112 + wx.setClipboardData({
  113 + data: that.data.wxtary,
  114 + success: function (res) {
  115 + console.log("复制成功")
  116 + }
  117 + })
  118 + },
  119 +
  120 + //跳转
  121 + jumpmonth_list(e) {
  122 + let that = this;
  123 + let url = e.currentTarget.dataset.link;
  124 + wx.navigateTo({
  125 + url: '../../sharepage/sharepage?url=' + url,
  126 + })
  127 +
  128 +
  129 + },
  130 +
  131 + /**
  132 + * 生命周期函数--监听页面初次渲染完成
  133 + */
  134 + onReady: function () {
  135 +
  136 + },
  137 +
  138 + /**
  139 + * 生命周期函数--监听页面显示
  140 + */
  141 + onShow: function () {
  142 +
  143 + },
  144 +
  145 + /**
  146 + * 生命周期函数--监听页面隐藏
  147 + */
  148 + onHide: function () {
  149 +
  150 + },
  151 +
  152 + /**
  153 + * 生命周期函数--监听页面卸载
  154 + */
  155 + onUnload: function () {
  156 +
  157 + },
  158 +
  159 + /**
  160 + * 页面相关事件处理函数--监听用户下拉动作
  161 + */
  162 + onPullDownRefresh: function () {
  163 +
  164 + },
  165 +
  166 + /**
  167 + * 页面上拉触底事件的处理函数
  168 + */
  169 + onReachBottom: function () {
  170 +
  171 + },
  172 +
  173 + /**
  174 + * 用户点击右上角分享
  175 + */
  176 + onShareAppMessage: function () {
  177 +
  178 + }
  179 +})
  1 +{
  2 + "navigationBarTitleText": "月嫂攻略",
  3 + "navigationBarTextStyle": "white"
  4 +}
  1 +<import src="../../../wxParse/wxParse.wxml"/>
  2 +
  3 +<!-- 月嫂攻略页面 -->
  4 +<view class='month_img'><image src='{{content.banner[0].image}}'></image></view>
  5 +<!-- being:列表信息 -->
  6 +<view class='month_box'>
  7 + <view class='month_list' wx:for="{{monthCon}}" wx:key="" bindtap="jumpmonth_list" data-link="{{item.link}}">
  8 + <view class='month_info'>
  9 + <view class='month_title'>{{item.title}}</view>
  10 + <view class='month_con'>{{item.description}}</view>
  11 + </view>
  12 + <view class='month_pic'><image src='{{item.pic}}'></image></view>
  13 + </view>
  14 +</view>
  15 +<!-- begin:特殊保障 -->
  16 +<view class='strate_box'>
  17 + <!-- <view class='strate_menu'>特殊保障&福利</view>
  18 + <view class='strate_info' wx:for="{{strateCon}}" wx:key="">
  19 + <view class='strate_title'>{{item.ntitle}}</view>
  20 + <view class='strate_txt'>{{item.contents}}</view>
  21 + </view> -->
  22 +
  23 + <template is="wxParse" data="{{wxParseData:article.nodes}}"/>
  24 +</view>
  25 +<!-- begin:按钮 -->
  26 +<view class='month_btn' bindtap='tapDraw'>领取福利</view>
  27 +<!-- begin小秘书弹层 -->
  28 +<view class='clerk_fn' wx:if="{{reveal}}" bindtap='tapHide'>
  29 + <view class='clerk_box'>
  30 + <view class='clerk_name'>小秘书微信号:{{wxtary}}</view>
  31 + <view class='clerk_con'>点击一键复制微信号,添加小秘书为好友</view>
  32 + <view class='clerk_con'>拉你进“找月嫂&育儿嫂群”,免费领取面试秘籍</view>
  33 +
  34 + <view class='clerk_con'>也可联系小秘书,个性化定制最符合您要求的月嫂</view>
  35 +
  36 +
  37 + <view class='clerk_btn' catchtap='bindCopy'>一键复制</view>
  38 + </view>
  39 +</view>
  40 +
  1 +/* pages/cityWide/matronStrategy/matronStrategy.wxss */
  2 +@import '../../../style/base.wxss';
  3 +
  4 +.month_img{
  5 + width: 750rpx;
  6 + height: 360rpx;
  7 +}
  8 +.month_img image{
  9 + width: 100%;
  10 + height: 100%;
  11 +}
  12 +.month_box{
  13 + padding: 0 32rpx;
  14 +}
  15 +.month_list{
  16 + display: flex;
  17 + align-items: center;
  18 + justify-content: space-between;
  19 + padding: 16rpx 10rpx;
  20 + border-bottom: solid 1rpx #EBEBEB;
  21 +}
  22 +.month_title{
  23 + padding-bottom: 20rpx;
  24 + color: #252729;
  25 + font-size: 30rpx;
  26 + font-weight: bold;
  27 +}
  28 +.month_con{
  29 + color: #53575C;
  30 + font-size: 26rpx;
  31 +}
  32 +.month_pic{
  33 + width: 160rpx;
  34 + height: 160rpx;
  35 +}
  36 +.month_pic image{
  37 + width: 100%;
  38 + height: 100%;
  39 +}
  40 +.month_btn{
  41 + display: flex;
  42 + align-items: center;
  43 + justify-content: center;
  44 + width: 686rpx;
  45 + height: 80rpx;
  46 + margin: 32rpx auto;
  47 + color: #fff;
  48 + font-size: 30rpx;
  49 + border-radius: 40rpx;
  50 + background: #FD8779;
  51 +}
  52 +.strate_box{
  53 + border-top: solid 16rpx #FCF8F7;
  54 +}
  55 +.strate_menu{
  56 + display: flex;
  57 + align-items: center;
  58 + height: 80rpx;
  59 + padding-left: 36rpx;
  60 + color: #292525;
  61 + font-size: 26rpx;
  62 + font-weight: bold;
  63 + border-bottom: solid 1rpx #EBEBEB;
  64 +}
  65 +.strate_info{
  66 + padding: 36rpx 32rpx 0;
  67 +}
  68 +.strate_title{
  69 + padding-bottom: 10rpx;
  70 + color: #252729;
  71 + font-size: 28rpx;
  72 +}
  73 +.strate_txt{
  74 + color: #53575C;
  75 + font-size: 26rpx;
  76 + line-height: 40rpx;
  77 +}
  78 +.strate_box{
  79 + padding: 36rpx 32rpx;
  80 +}
  81 +.wxParse-p{
  82 + color:#53575C;
  83 + font-size: 26rpx;
  84 + padding: 21rpx 0 0;
  85 + line-height: 1.5;
  86 +}
  87 +.WxEmojiView wxParse-inline{
  88 + color:#252729;
  89 + font-size: 28rpx;
  90 +}
  91 +.clerk_box{
  92 + height:600rpx;
  93 +}
  1 +// pages/cityWide/monthClub/monthClub.js
  2 +const app=getApp();
  3 +var WxParse = require('../../../wxParse/wxParse.js');
  4 +Page({
  5 +
  6 + /**
  7 + * 页面的初始数据
  8 + */
  9 + data: {
  10 + monthCon:[{
  11 + id: "01",
  12 + mtitle: "找月嫂全攻略",
  13 + content: "你满意的月嫂,得这样找",
  14 + imagesUrl: "http://pi4orwnti.bkt.clouddn.com/bicon34@2x.png"
  15 + }, {
  16 + id: "02",
  17 + mtitle: "图说月嫂",
  18 + content: "三张图告诉你月嫂都干了些什么?",
  19 + imagesUrl: "http://pi4orwnti.bkt.clouddn.com/bicon34@2x.png"
  20 + }, {
  21 + id: "03",
  22 + mtitle: "教你如何面试月嫂",
  23 + content: "面试月嫂需要注意啥?最全参考在这里",
  24 + imagesUrl: "http://pi4orwnti.bkt.clouddn.com/bicon34@2x.png"
  25 + }],
  26 +
  27 + freegetwrap:false,
  28 + secretary:''
  29 + },
  30 +
  31 + /**
  32 + * 生命周期函数--监听页面加载
  33 + */
  34 + onLoad: function (options) {
  35 + this.yuesisuo()
  36 + },
  37 + yuesisuo(){
  38 + let that = this;
  39 + var url = '/api/portal/Club/index';
  40 + var params = {
  41 + // token: wx.getStorageSync('token'),
  42 +
  43 + }
  44 + app.post(url, params).then((res) => {
  45 + console.log(res);
  46 +
  47 + that.setData({
  48 + content:res,
  49 + monthCon: res.strategy,
  50 +
  51 +
  52 + })
  53 +
  54 + WxParse.wxParse('article', 'html', res.buttom, that, 5)
  55 +
  56 + }).catch((err) => {
  57 +
  58 + })
  59 +
  60 + },
  61 + freeget(){
  62 + let that=this;
  63 + that.setData({
  64 + freegetwrap:true
  65 + })
  66 +
  67 + var url = '/api/portal/Club/call';
  68 + var params = {
  69 + // token: wx.getStorageSync('token'),
  70 +
  71 + }
  72 + app.post(url, params).then((res) => {
  73 + console.log(res);
  74 + that.setData({
  75 + secretary: res.secretary
  76 + })
  77 +
  78 +
  79 +
  80 + }).catch((err) => {
  81 +
  82 + })
  83 + },
  84 + hidefreeget(){
  85 + this.setData({
  86 + freegetwrap: false
  87 + })
  88 + },
  89 +
  90 +
  91 +
  92 + //复制
  93 +
  94 + copycode: function () {
  95 + console.log(666)
  96 + let that = this;
  97 + wx.setClipboardData({
  98 + data: that.data.secretary,
  99 + success: function (res) {
  100 + // console.log("复制成功")
  101 + }
  102 + })
  103 + },
  104 +
  105 + //跳转
  106 + jumpmonth_list(e) {
  107 + let that = this;
  108 + let url = e.currentTarget.dataset.link;
  109 + wx.navigateTo({
  110 + url: '../../sharepage/sharepage?url=' + url,
  111 + })
  112 +
  113 +
  114 + },
  115 + /**
  116 + * 生命周期函数--监听页面初次渲染完成
  117 + */
  118 + onReady: function () {
  119 +
  120 + },
  121 +
  122 + /**
  123 + * 生命周期函数--监听页面显示
  124 + */
  125 + onShow: function () {
  126 +
  127 + },
  128 +
  129 + /**
  130 + * 生命周期函数--监听页面隐藏
  131 + */
  132 + onHide: function () {
  133 +
  134 + },
  135 +
  136 + /**
  137 + * 生命周期函数--监听页面卸载
  138 + */
  139 + onUnload: function () {
  140 +
  141 + },
  142 +
  143 + /**
  144 + * 页面相关事件处理函数--监听用户下拉动作
  145 + */
  146 + onPullDownRefresh: function () {
  147 +
  148 + },
  149 +
  150 + /**
  151 + * 页面上拉触底事件的处理函数
  152 + */
  153 + onReachBottom: function () {
  154 +
  155 + },
  156 +
  157 + /**
  158 + * 用户点击右上角分享
  159 + */
  160 + onShareAppMessage: function () {
  161 +
  162 + }
  163 +})
  1 +{
  2 + "navigationBarTitleText": "月子会所",
  3 + "navigationBarTextStyle": "white"
  4 +}
  1 +<import src="../../../wxParse/wxParse.wxml"/>
  2 +
  3 +
  4 +<!-- 月子会所页面 -->
  5 +<view class='month_img'><image src='{{content.banner[0].image}}'></image></view>
  6 +<!-- begin:获取探店手册 -->
  7 +<view class='month_menu'>
  8 + <view class='month_peo'><image src='http://bronet.ibaby88.cn/dicon09@2x.png'></image></view>
  9 + <view class='month_left'>
  10 + <!-- <view class='book_title'>获取免费探店手册</view>
  11 + <view class='book_con'>知晓最新价格优惠/梳理月子会所考察点/体验会所相关服务</view> -->
  12 + <template is="wxParse" data="{{wxParseData:article.nodes}}"/>
  13 + </view>
  14 + <view class='book_btn' bindtap="freeget">了解一下</view>
  15 +</view>
  16 +<!-- being:列表信息 -->
  17 +<view class='month_box'>
  18 + <view class='month_list' wx:for="{{monthCon}}" wx:key="" bindtap="jumpmonth_list" data-link="{{item.link}}">
  19 + <view class='month_info'>
  20 + <view class='month_title'>{{item.title}}</view>
  21 + <view class='month_con'>{{item.description}}</view>
  22 + </view>
  23 + <view class='month_pic'><image src='{{item.pic}}'></image></view>
  24 + </view>
  25 +</view>
  26 +<!-- begin:按钮 -->
  27 +<view class='month_btn' bindtap="freeget">免费领取探店手册</view>
  28 +<!-- begin:小秘书弹层 -->
  29 +<view class='manual_fn' wx:if="{{freegetwrap}}" bindtap="hidefreeget">
  30 + <view class='manual_box'>
  31 + <view class='manual_head'>
  32 + <view class='manual_txt'>添加小顾问为好友</view>
  33 + <view class='manual_txt'>免费获取月子会所探店手册及优惠信息</view>
  34 + </view>
  35 + <view class='manual_title'>月子会所小顾问</view>
  36 + <view class='manaul_con'>复制小顾问微信号:{{secretary}}并添加好友</view>
  37 + <view class='manaul_btn' catchtap='copycode'>复制微信号</view>
  38 + </view>
  39 +</view>
  1 +/* pages/cityWide/monthClub/monthClub.wxss */
  2 +.month_img{
  3 + width: 750rpx;
  4 + height: 360rpx;
  5 +}
  6 +.month_img image{
  7 + width: 100%;
  8 + height: 100%;
  9 +}
  10 +.month_menu{
  11 + display: flex;
  12 + align-items: center;
  13 + justify-content: flex-start;
  14 + padding: 22rpx 32rpx;
  15 + border-bottom: solid 1rpx #EBEBEB;
  16 +}
  17 +.month_peo{
  18 + width: 109rpx;
  19 + height: 124rpx;
  20 +}
  21 +.month_peo image{
  22 + width: 100%;
  23 + height: 100%;
  24 +}
  25 +.month_left{
  26 + padding-left: 18rpx;
  27 +}
  28 +.book_title{
  29 + padding-bottom: 20rpx;
  30 + color: #FD8779;
  31 + font-size: 32rpx;
  32 + font-weight: bold;
  33 +}
  34 +.book_con{
  35 + width: 346rpx;
  36 + line-height: 40rpx;
  37 + color: #5C5453;
  38 + font-size: 24rpx;
  39 +}
  40 +.WxEmojiView{
  41 + color: #5C5453;
  42 + font-size: 24rpx;
  43 +}
  44 +.book_btn{
  45 + display: flex;
  46 + align-items: center;
  47 + justify-content: center;
  48 + width: 164rpx;
  49 + height: 60rpx;
  50 + margin-left: 32rpx;
  51 + color: #FD8779;
  52 + font-size: 26rpx;
  53 + border: solid 1rpx #FD8779;
  54 + border-radius: 30rpx;
  55 +}
  56 +.month_box{
  57 + padding: 0 32rpx;
  58 +}
  59 +.month_list{
  60 + display: flex;
  61 + align-items: center;
  62 + justify-content: space-between;
  63 + padding: 16rpx 10rpx;
  64 + border-bottom: solid 1rpx #EBEBEB;
  65 +}
  66 +.month_title{
  67 + padding-bottom: 20rpx;
  68 + color: #252729;
  69 + font-size: 30rpx;
  70 + font-weight: bold;
  71 +}
  72 +.month_con{
  73 + color: #53575C;
  74 + font-size: 26rpx;
  75 +}
  76 +.month_pic{
  77 + width: 160rpx;
  78 + height: 160rpx;
  79 +}
  80 +.month_pic image{
  81 + width: 100%;
  82 + height: 100%;
  83 +}
  84 +.month_btn{
  85 + display: flex;
  86 + align-items: center;
  87 + justify-content: center;
  88 + width: 686rpx;
  89 + height: 80rpx;
  90 + margin: 32rpx auto;
  91 + color: #fff;
  92 + font-size: 30rpx;
  93 + border-radius: 40rpx;
  94 + background: #FD8779;
  95 +}
  96 +/* 小秘书弹层 */
  97 +.manual_fn{
  98 + position: fixed;
  99 + top: 0;
  100 + left: 0;
  101 + right: 0;
  102 + width: 100%;
  103 + height: 100%;
  104 + background: rgba(0, 0, 0, 0.4);
  105 + z-index: 10;
  106 +}
  107 +.manual_box{
  108 + position: absolute;
  109 + bottom: 18rpx;
  110 + left: 0;
  111 + right: 0;
  112 + width: 718rpx;
  113 + margin: 0 auto;
  114 + padding-bottom: 33rpx;
  115 + border-radius: 36rpx;
  116 + background: #fff;
  117 +}
  118 +.manual_head{
  119 + width: 718rpx;
  120 + padding: 35rpx 0;
  121 + background: #FD8779;
  122 + border-radius: 36rpx 36rpx 0 0;
  123 +}
  124 +.manual_txt{
  125 + padding-bottom: 5rpx;
  126 + color: #fff;
  127 + font-size: 28rpx;
  128 + text-align: center;
  129 +}
  130 +.manual_title{
  131 + padding: 162rpx 0 28rpx;
  132 + color: #FD8779;
  133 + font-size: 30rpx;
  134 + font-weight: bold;
  135 + text-align: center;
  136 +}
  137 +.manaul_con{
  138 + padding-bottom: 195rpx;
  139 + color: #FD8779;
  140 + font-size: 28rpx;
  141 + text-align: center;
  142 +}
  143 +.manaul_btn{
  144 + display: flex;
  145 + align-items: center;
  146 + justify-content: center;
  147 + width: 652rpx;
  148 + height: 82rpx;
  149 + margin: 0 auto;
  150 + color: #FD8779;
  151 + font-size: 30rpx;
  152 + background: #F7F7F7;
  153 + border: solid 1rpx #E2E2E2;
  154 + border-radius: 40rpx;
  155 +}
  1 +
  2 +// pages/cityWide/monthDetail/monthDetail.js
  3 +const app = getApp();
  4 +var WxParse = require('../../../wxParse/wxParse.js');
  5 +
  6 +Page({
  7 +
  8 + /**
  9 + * 页面的初始数据
  10 + */
  11 + data: {
  12 + activeid: '',
  13 + currTab: 0,
  14 + // monthStatr: true,
  15 + detailCon: '',
  16 + detailAddr: '',
  17 + imgCourse: [],
  18 + isFocus: false,
  19 + monthCon: '',
  20 + activeStau: 1,
  21 + addrestatus:'',
  22 + talkpeople: '',
  23 + lng:'',
  24 + lat:'',
  25 + code:false,
  26 + codeimg:''
  27 + },
  28 +
  29 + /**
  30 + * 生命周期函数--监听页面加载
  31 + */
  32 + onLoad: function (options) {
  33 + console.log(options)
  34 + let that = this;
  35 + let activeid = options.activeid;
  36 + that.setData({
  37 + activeid: activeid
  38 + })
  39 + // that.getDetail()
  40 + },
  41 +
  42 +
  43 + // 活动详情接口
  44 + getDetail: function(e){
  45 + let that = this;
  46 + let url = "/api/portal/Activity/detail";
  47 + let params = {
  48 + token: wx.getStorageSync('token'),
  49 + activityId: that.data.activeid
  50 + }
  51 +
  52 + var header={
  53 + 'token': wx.getStorageSync('token'),
  54 + }
  55 + app.post(url, params,header).then((res) => {
  56 + console.log(res)
  57 +
  58 + WxParse.wxParse('article', 'html', res.activity.content, that, 5)
  59 + let statu = res.activity.is_save;
  60 + let activeType = res.activity.activity_type;
  61 + let isJoin = res.activity.is_join;
  62 + if (statu == 1){
  63 + that.setData({
  64 + isFocus: true
  65 + })
  66 + } else if (statu == 2){
  67 + that.setData({
  68 + isFocus: false
  69 + })
  70 + }
  71 +
  72 + //报名人数
  73 + console.log(typeof(res.activity.sign))
  74 + if (res.activity.sign==null){
  75 + res.activity.sign=0
  76 + }
  77 +
  78 + // 1是活动 2是微课 1是已报名 2是未报名
  79 + if (activeType == 1 && isJoin ==2) {
  80 + that.setData({
  81 + activeStau:1,
  82 + addrestatus:true,
  83 + talkpeople:false,
  84 + iconshow:true
  85 + })
  86 + wx.setNavigationBarTitle({
  87 + title: '活动详情' //页面切换,更换页面标题
  88 + })
  89 + } else if (activeType == 2 && isJoin ==2){
  90 + that.setData({
  91 + activeStau:2,
  92 + addrestatus: false,
  93 + talkpeople: true,
  94 + iconshow:false
  95 + })
  96 + wx.setNavigationBarTitle({
  97 + title: '微课详情' //页面切换,更换页面标题
  98 + })
  99 + } else if (activeType == 1 && isJoin == 1) {
  100 + that.setData({
  101 + activeStau: 3,
  102 + addrestatus: true,
  103 + talkpeople: false,
  104 + iconshow: true
  105 + })
  106 + wx.setNavigationBarTitle({
  107 + title: '活动详情' //页面切换,更换页面标题
  108 + })
  109 + } else if (activeType == 2 && isJoin == 1) {
  110 + that.setData({
  111 + activeStau: 4,
  112 + addrestatus: false,
  113 + talkpeople: true,
  114 + iconshow: false
  115 + })
  116 + wx.setNavigationBarTitle({
  117 + title: '微课详情' //页面切换,更换页面标题
  118 + })
  119 + }
  120 +
  121 + that.setData({
  122 + detailCon: res.activity,
  123 + detailAddr: res.activity.addr,
  124 + imgCourse: res.sign,
  125 + monthCon: res.mes,
  126 + lng: res.activity.latng[0],
  127 + lat: res.activity.latng[1],
  128 + is_write:res.is_write
  129 +
  130 + })
  131 +
  132 + console.log(that.data.detailCon)
  133 + }).catch((errMsg) => {})
  134 + },
  135 +
  136 +
  137 + //链接去地图
  138 + gomap() {
  139 + console.log(88)
  140 + let that = this;
  141 + console.log(that.data.lat)
  142 + console.log(that.data.lng)
  143 + wx.getLocation({//获取当前经纬度
  144 + type: 'wgs84', //返回可以用于wx.openLocation的经纬度,官方提示bug: iOS 6.3.30 type 参数不生效,只会返回 wgs84 类型的坐标信息
  145 + success: function (res) {
  146 + wx.openLocation({//​使用微信内置地图查看位置。
  147 + latitude: Number(that.data.lat),//要去的纬度-地址
  148 + longitude: Number(that.data.lng),//要去的经度-地址
  149 + name: that.data.detailCon.addr.addr,
  150 + address: that.data.detailCon.addr.addr,
  151 + })
  152 + }
  153 + })
  154 +
  155 + console.log(that.data.lng)
  156 +
  157 + },
  158 + // 点击切换
  159 + clickTab: function (e) {
  160 + var that = this;
  161 + if (that.data.currTab === e.target.dataset.current) {
  162 + return false;
  163 + } else {
  164 + that.setData({
  165 + currTab: e.target.dataset.current
  166 + })
  167 + }
  168 + },
  169 + // 跳转到 活动报名
  170 + activityTap:function(){
  171 + wx.navigateTo({
  172 + url: '../activityName/activityName?activeid=' + this.data.activeid,
  173 + })
  174 + },
  175 + //微课报名
  176 + listenlesson(){
  177 + let is_write = this.data.is_write;
  178 + if(is_write==1){
  179 + wx.navigateTo({
  180 + url: '../WeChatCulum/WeChatCulum?activeid=' + this.data.activeid,
  181 + })
  182 + }else{
  183 + wx.navigateTo({
  184 + url: '../../home/stageofpregnancy/stageofpregnancy',
  185 + })
  186 + }
  187 +
  188 + },
  189 +
  190 +
  191 + submit: function (e) {
  192 + console.log(e)
  193 + console.log(typeof(e.detail.formId));
  194 + let that=this;
  195 + // let formId = e.detail.formId;
  196 +
  197 + let is_write = that.data.is_write;
  198 + if (is_write == 1) {
  199 + var url = '/api/portal/Activity/joinCourse';
  200 + var params = {
  201 + token: wx.getStorageSync('token'),
  202 + activityId: this.data.activeid,
  203 + formId: e.detail.formId
  204 + }
  205 + app.post(url, params).then((res) => {
  206 + console.log(res);
  207 +
  208 + wx.navigateTo({
  209 + url: '../WeChatCulum/WeChatCulum?activeid=' + this.data.activeid,
  210 + })
  211 +
  212 + }).catch((err) => {
  213 +
  214 + })
  215 +
  216 +
  217 + } else {
  218 + wx.navigateTo({
  219 + url: '../../home/stageofpregnancy/stageofpregnancy',
  220 + })
  221 + }
  222 +
  223 +
  224 +
  225 + },
  226 + // 跳转到 报名名单
  227 + listTap:function(){
  228 + wx.navigateTo({
  229 + url: '../nameList/nameList?activeid=' + this.data.activeid,
  230 + })
  231 + },
  232 + // 跳转到 发表点评
  233 + markTap:function(){
  234 + wx.navigateTo({
  235 + url: '../remark/remark?activeid=' + this.data.activeid,
  236 + })
  237 + },
  238 + // 跳转到 微信直播课程
  239 + lectureTap: function(){
  240 + wx.navigateTo({
  241 + url: '../WeChatCulum/WeChatCulum?activeid=' + this.data.activeid,
  242 + })
  243 + },
  244 + // 点击收藏成功
  245 + favoriteTab: function (e) {
  246 + let that = this;
  247 + let isFocus = that.data.isFocus;
  248 + let url = "/api/portal/Activity/save";
  249 + let params = {
  250 + token: wx.getStorageSync('token'),
  251 + activityId: that.data.activeid
  252 + }
  253 + app.post(url, params).then((res) => {
  254 + wx.showToast({
  255 + title: "收藏成功",
  256 + icon: 'success',
  257 + duration: 1000
  258 + });
  259 + that.setData({
  260 + isFocus: true
  261 + })
  262 + }).catch((errMsg) => {})
  263 + },
  264 + // 取消收藏
  265 + cancelCollect: function(e){
  266 + let that = this;
  267 + let isFocus = that.data.isFocus;
  268 +
  269 + let url = "/api/portal/Activity/saveDel";
  270 + let params = {
  271 + token: wx.getStorageSync('token'),
  272 + activityId: that.data.activeid
  273 + }
  274 + app.post(url, params).then((res) => {
  275 + wx.showToast({
  276 + title: "取消收藏",
  277 + icon: 'success',
  278 + duration: 1000
  279 + });
  280 + that.setData({
  281 + isFocus: false
  282 + })
  283 + }).catch((errMsg) => { })
  284 + },
  285 +
  286 + //微课二维码
  287 +
  288 + seecode(){
  289 + let that = this;
  290 +
  291 + that.setData({
  292 + code:true
  293 + })
  294 + var url = '/api/portal/Activity/pic';
  295 + var params = {
  296 + token: wx.getStorageSync('token'),
  297 + activityId: that.data.activeid
  298 +
  299 + }
  300 + app.post(url, params).then((res) => {
  301 + console.log(res);
  302 + that.setData({
  303 + codeimg:res.url
  304 + })
  305 +
  306 +
  307 +
  308 + }).catch((err) => {
  309 +
  310 + })
  311 + },
  312 +
  313 + hidecode(){
  314 + this.setData({
  315 + code:false
  316 + })
  317 + },
  318 + /**
  319 + * 生命周期函数--监听页面初次渲染完成
  320 + */
  321 + onReady: function () {
  322 +
  323 + },
  324 +
  325 + /**
  326 + * 生命周期函数--监听页面显示
  327 + */
  328 + onShow: function () {
  329 + this.getDetail()
  330 + },
  331 +
  332 + /**
  333 + * 生命周期函数--监听页面隐藏
  334 + */
  335 + onHide: function () {
  336 +
  337 + },
  338 +
  339 + /**
  340 + * 生命周期函数--监听页面卸载
  341 + */
  342 + onUnload: function () {
  343 +
  344 + },
  345 +
  346 + /**
  347 + * 页面相关事件处理函数--监听用户下拉动作
  348 + */
  349 + onPullDownRefresh: function () {
  350 +
  351 + },
  352 +
  353 + /**
  354 + * 页面上拉触底事件的处理函数
  355 + */
  356 + onReachBottom: function () {
  357 +
  358 + },
  359 +
  360 + /**
  361 + * 用户点击右上角分享
  362 + */
  363 + onShareAppMessage: function () {
  364 + let that = this;
  365 + let activeid = that.data.activeid;
  366 + console.log(activeid)
  367 + return {
  368 + title: '活动详情分享', // 转发后 所显示的title
  369 + // path: '/pages/home/buildtextdetail/buildtextdetail?buildid='+buildid+'&gettoken='+newtoken, // 相对的路径
  370 + path:'/pages/index/index?activeid='+activeid +'&status='+5,//微课详情
  371 + // path: '/pages/index/index?childrenid',
  372 +
  373 + success: (res) =>{ // 成功后要做的事情
  374 + console.log(res)
  375 + // console.log(res.shareTickets[0])
  376 + // console.log
  377 +
  378 + // wx.getShareInfo({
  379 + // shareTicket: res.shareTickets[0],
  380 + // success: (res)=> {
  381 + // that.setData({
  382 + // isShow:true
  383 + // })
  384 + // console.log(that.setData.isShow)
  385 + // },
  386 + // fail: function (res) { console.log(res) },
  387 + // complete: function (res) { console.log(res) }
  388 + // })
  389 + },
  390 + fail: function (res) {
  391 + // 分享失败
  392 + console.log(res)
  393 + }
  394 + }
  395 + }
  396 +})
  1 +{
  2 + "navigationBarTitleText": "活动详情",
  3 + "navigationBarTextStyle": "white"
  4 +}
  1 +<view class="register" wx:if="{{code}}" bindtap="hidecode">
  2 + <view class="registerwrap">
  3 + <image src="{{codeimg}}"></image>
  4 + </view>
  5 +</view>
  6 +
  7 +<!-- 月子会所活动详情页面 -->
  8 +<import src="../../../wxParse/wxParse.wxml"/>
  9 +
  10 +<view class='detail_head'>
  11 + <image class='detail_img' src='{{detailCon.pic}}'></image>
  12 + <view class='detail_witer'>
  13 + <view class='detail_title'>{{detailCon.title}}</view>
  14 + <view class='detail_free' wx:if="{{detailCon.money==0}}">免费</view>
  15 + <view class='detail_free' wx:else>{{detailCon.money}}</view>
  16 + <!-- begin:判断是否显示日期 -->
  17 + <view class='detail_flex' wx:if="{{talkpeople}}">
  18 + <view class='detail_date'>
  19 + <image class='date_img' src='http://bronet.ibaby88.cn/dicon12@2x.png'></image>
  20 + {{detailCon.start_time}}
  21 + </view>
  22 + <view class='detail_name' >主讲人:{{detailCon.talking}}</view>
  23 + </view>
  24 + <view class='detail_flex' wx:else>
  25 + <view class='detail_date'>
  26 + <image class='date_img' src='http://bronet.ibaby88.cn/dicon12@2x.png'></image>
  27 + {{detailCon.start_time}} - {{detailCon.end_time}}
  28 + </view>
  29 +
  30 + </view>
  31 +
  32 +
  33 + </view>
  34 +</view>
  35 +<!-- begin:判断是活动或者微课 是否显示地址 -->
  36 +<view class='month_addres' wx:if="{{addrestatus}}" bindtap="gomap">
  37 + <view class='addres_img'><image src='http://bronet.ibaby88.cn/dicon10@2x.png'></image></view>
  38 + <view class='addres_box'>
  39 + <text class='addres_txt'>{{detailAddr.addr}}</text>
  40 + <image class='interest_arrow' src='http://bronet.ibaby88.cn/bicon08@2x.png'></image>
  41 + </view>
  42 +</view>
  43 +<view wx:else></view>
  44 +
  45 +<view class='interest_box' bindtap='listTap'>
  46 + <view class='interest_right'>
  47 + <image class='interest_img' src='http://bronet.ibaby88.cn/dicon11@2x.png'></image>
  48 + <text class='interest_txt'>{{detailCon.interest}}兴趣 . {{detailCon.sign}}报名</text>
  49 + </view>
  50 + <!-- begin:判断条件,如果头像大于3 -->
  51 + <view class='interest_left' wx:if='{{imgCourse.length>=3}}'>
  52 + <view class='interest_menu'>
  53 + <view class='interest_pic' wx:for='{{imgCourse}}' wx:key="name">
  54 + <image src='{{item.pic}}'></image>
  55 + </view>
  56 + </view>
  57 + <view>...</view>
  58 + <image class='interest_arrow' src='http://bronet.ibaby88.cn/bicon08@2x.png'></image>
  59 + </view>
  60 + <!-- begin:否则 -->
  61 + <view class="intreimg" wx:else>
  62 + <view class='interest_menu interest_wid'>
  63 + <view class='interest_pic' wx:for='{{imgCourse}}' wx:key="name">
  64 + <image src='{{item.pic}}'></image>
  65 + </view>
  66 + </view>
  67 + <image class='interest_arrow' src='http://bronet.ibaby88.cn/bicon08@2x.png'></image>
  68 + </view>
  69 +</view>
  70 +<!-- begin:切换头部 -->
  71 +<view class='nav_head'>
  72 + <view class="nav_item {{currTab==0?'active':''}}" data-current="0" bindtap='clickTab'>
  73 + <text class="iconfont intro {{iconshow==true?'icon-qiqiu':''}}" data-current="0" bindtap='clickTab' wx:if="{{iconshow}}">活动介绍</text>
  74 + <text class="iconfont intro{{iconshow==true?'icon-qiqiu':''}}" data-current="0" bindtap='clickTab' wx:else>详情</text>
  75 +
  76 +
  77 + <!--<text wx:else>详情</text>-->
  78 + </view>
  79 + <view class="nav_item {{currTab==1?'active':''}}" data-current="1" bindtap='clickTab'>
  80 + <text class="iconfont {{iconshow==true?'icon-liaotian':''}}" data-current="1" bindtap='clickTab'></text>交流
  81 + </view>
  82 +
  83 +</view>
  84 +<!-- begin:切换内容 -->
  85 +<view class='month_info' wx:if="{{currTab==0}}">
  86 + <template is="wxParse" data="{{wxParseData:article.nodes}}"/>
  87 + <!-- <image class='test_img' src='http://bronet.ibaby88.cn/cpic03@2x.png'></image> -->
  88 + <!-- begin:活动介绍底部 -->
  89 + <view class='foot_page'>
  90 + <view class='foot_info'>
  91 +
  92 + <view class='foot_list' bindtap='cancelCollect' wx:if="{{isFocus}}">
  93 + <image class='coll_img' src='http://bronet.ibaby88.cn/bicon29@2x.png'></image>
  94 + <view class='foot_text'>收藏</view>
  95 + </view>
  96 + <view class='foot_list' bindtap='favoriteTab' wx:else>
  97 + <image class='coll_img' src='http://bronet.ibaby88.cn/bicon28@2x.png'></image>
  98 + <view class='foot_text'>收藏</view>
  99 + </view>
  100 +
  101 + <view class='foot_list' >
  102 + <view class="meshare">
  103 + <image class='collect' src='http://bronet.ibaby88.cn/share.png' ></image>
  104 + <view class='foot_text sharetext' >分享</view>
  105 + </view>
  106 + <button class="sharebtn" open-type="share"></button>
  107 + </view>
  108 + </view>
  109 +
  110 + <block wx:if="{{activeStau==1}}"><view class='foot_btn' bindtap='activityTap'>我要报名</view></block>
  111 + <block wx:if="{{activeStau==2}}">
  112 + <!-- <view class='foot_btn' bindtap='listenlesson'>我要听课</view> -->
  113 +
  114 + <form bindsubmit="submit" report-submit='true' >
  115 + <view class='foot_btn'>
  116 + 我要听课
  117 + <button form-type="submit" type="default" class="want"></button>
  118 + </view>
  119 +
  120 +</form>
  121 + </block>
  122 +
  123 + <block wx:if="{{activeStau==3}}"><view class='foot_btn'>已报名</view></block>
  124 + <block wx:if="{{activeStau==4}}"><view class='foot_btn' bindtap='lectureTap'>已报名,查看二维码</view></block>
  125 +
  126 + </view>
  127 +</view>
  128 +<!-- begin:交流 -->
  129 +<view class='month_foot' wx:if="{{currTab==1}}">
  130 + <block wx:if="{{monthCon.length == 0}}">
  131 + <view class='month_pic'><image src='http://bronet.ibaby88.cn/nopic.png'></image></view>
  132 + <view class='month_txt'>暂无交流,来做第一个吧</view>
  133 + </block>
  134 + <view class='month_tab' wx:else>
  135 + <view class='month_box' wx:for="{{monthCon}}" wx:key="">
  136 + <view class='month_img'><image src='{{item.user_pic}}'></image></view>
  137 + <view class='month_menu'>
  138 + <view class='month_name'>{{item.user_name}}</view>
  139 + <view class='month_date'>{{item.create_time}}</view>
  140 + <view class='month_con'>{{item.content}}</view>
  141 +
  142 + <view wx:if="{{item.is_commoned==2}}"></view>
  143 + <view wx:else class='comm_box'>平台回复:{{item.commoned}}</view>
  144 + </view>
  145 + </view>
  146 + </view>
  147 + <view class='warp_btn' bindtap='markTap'>发表点评</view>
  148 +</view>
  149 +