Commit a94ef64ba6563a79a2a5cd27527a748ca2c83611

Authored by 王润寒
1 parent aa32aa7cb5
Exists in dev_wjl and in 1 other branch dev-wrh

fix:小程序编译

Showing 9 changed files with 94 additions and 7 deletions

littleApp_child/app.json View file @ a94ef64
... ... @@ -55,7 +55,8 @@
55 55 "pages/articleList/articleList",
56 56 "pages/article/article",
57 57 "pages/preDocumented/preDocumented",
58   - "pages/serviceNotice/serviceNotice"
  58 + "pages/serviceNotice/serviceNotice",
  59 + "pages/eatAddress/eatAddress"
59 60 ]
60 61 }
61 62 ],
littleApp_child/packageA/pages/eatAddress/eatAddress.js View file @ a94ef64
  1 +// packageA/pages/eatAddress/eatAddress.js
  2 +Page({
  3 +
  4 + /**
  5 + * 页面的初始数据
  6 + */
  7 + data: {
  8 +
  9 + },
  10 +
  11 + /**
  12 + * 生命周期函数--监听页面加载
  13 + */
  14 + onLoad(options) {
  15 +
  16 + },
  17 +
  18 + /**
  19 + * 生命周期函数--监听页面初次渲染完成
  20 + */
  21 + onReady() {
  22 +
  23 + },
  24 +
  25 + /**
  26 + * 生命周期函数--监听页面显示
  27 + */
  28 + onShow() {
  29 +
  30 + },
  31 +
  32 + /**
  33 + * 生命周期函数--监听页面隐藏
  34 + */
  35 + onHide() {
  36 +
  37 + },
  38 +
  39 + /**
  40 + * 生命周期函数--监听页面卸载
  41 + */
  42 + onUnload() {
  43 +
  44 + },
  45 +
  46 + /**
  47 + * 页面相关事件处理函数--监听用户下拉动作
  48 + */
  49 + onPullDownRefresh() {
  50 +
  51 + },
  52 +
  53 + /**
  54 + * 页面上拉触底事件的处理函数
  55 + */
  56 + onReachBottom() {
  57 +
  58 + },
  59 +
  60 + /**
  61 + * 用户点击右上角分享
  62 + */
  63 + onShareAppMessage() {
  64 +
  65 + }
  66 +})
littleApp_child/packageA/pages/eatAddress/eatAddress.json View file @ a94ef64
  1 +{
  2 + "navigationBarTitleText": "膳食通知",
  3 + "navigationBarBackgroundColor": "#48C17B",
  4 + "navigationBarTextStyle": "white",
  5 + "backgroundColor": "#d8dbd4",
  6 + "pageOrientation": "auto",
  7 + "usingComponents": {}
  8 +}
littleApp_child/packageA/pages/eatAddress/eatAddress.wxml View file @ a94ef64
  1 +<!--packageA/pages/eatAddress/eatAddress.wxml-->
  2 +<text>packageA/pages/eatAddress/eatAddress.wxml</text>
littleApp_child/packageA/pages/eatAddress/eatAddress.wxss View file @ a94ef64
  1 +/* packageA/pages/eatAddress/eatAddress.wxss */
littleApp_child/pages/home/home.js View file @ a94ef64
... ... @@ -83,13 +83,17 @@
83 83 riskGuide: false,
84 84 riskBase: false,
85 85 //是否开通疾病指导
86   - riskDise:false
  86 + riskDise:false,
  87 + hospitalId1:null
87 88 },
88 89 /*---------生命周期--------*/
89 90 onLoad: function(options) {
  91 + console.log(options,'options1121');
90 92 hospitalId = options.hospitalId;
91 93 this.calculatePageSize()
92   -
  94 + this.setData({
  95 + hospitalId1:options.hospitalId
  96 + })
93 97 // 网络监听
94 98 this.networkStatusChange()
95 99 var that = this
littleApp_child/pages/home/home.wxml View file @ a94ef64
1 1 <!--首页-->
2 2 <!--主机类型-->
3 3 <!-- <view class="promptText" wx:if="{{HOSTType != 1 && HOSTType != 3}}">--{{HOSTTypeText}}--</view> -->
  4 +
4 5 <view class="backgroundView" style="background: #48C17B" wx:if="{{pageType == 0}}">
5 6 </view>
  7 +
  8 +
6 9 <!--首页模块-->
7 10 <view class="backgroundView" wx:if="{{pageType == 2}}">
8 11 <!-- <image class="TopBgImage" src=""></image> -->
9 12 <!--顶部红色有头像等信息的栏目-->
  13 +
10 14 <view class="TopBar" style='height:{{tourist == false ? 212 : 152}}px'>
11 15 <!--头像-->
  16 +
12 17 <image class="avatar" bindtap="tapAvatar" src="{{userData.avatar.medium ? userData.avatar.medium : ''}}" background-size="cover"></image>
13 18 <!--用户名-->
14 19 <!-- <view class="top_name" wx:if="{{babys.length > 1}}">
... ... @@ -120,7 +125,7 @@
120 125 <navigator class="foundation_item_small" bind:tap="goServiceNotice">
121 126 <image src="../../source/jianchajilu.png" style="{{item_small}}" class="foundation_item_small_image"></image>
122 127 <view class="foundation_item_small_text">服务名目通知</view>
123   - </navigator>
  128 + </navigator>
124 129 </view>
125 130  
126 131 <!--文章列表-->
littleApp_child/utils/WebIMConfig.js View file @ a94ef64
... ... @@ -27,8 +27,8 @@
27 27 /*
28 28 * Application AppKey
29 29 */
30   - // appkey: '1123170414115195#mommybaby',//测试版
31   - appkey: '1123170414115195#mommybabyfinalversion',//正式版
  30 + appkey: '1123170414115195#mommybaby',//测试版
  31 + // appkey: '1123170414115195#mommybabyfinalversion',//正式版
32 32 // appkey: "easemob-demo#chatdemoui",
33 33 /*
34 34 * Whether to use HTTPS '1177161227178308#xcx'
littleApp_child/utils/network_util.js View file @ a94ef64
... ... @@ -4,7 +4,7 @@
4 4 // 18382670036 多层次
5 5 // 18328537371 陈云 666666
6 6 // 0测试环境 1正式环境 2演示环境 3衡水
7   -var Builing_Release_AppStore = 1;
  7 +var Builing_Release_AppStore = 0;
8 8 // 获取服务器地址
9 9 function kServerBaseUrl() {
10 10 switch (Builing_Release_AppStore) {