收藏
回答

微信小程序ios下弹窗内容真机调试下弹窗内容显示,发布上线后打开弹窗就是空白,内容都没了

框架类型 问题类型 终端类型 微信版本 基础库版本
小程序 Bug 微信iOS客户端 7.0.15 2.9.4
getTimeAreaList: function (effectTime) {
    const self = this;
    const orderInfo = app.globalData.orderInfo;
    const orderType = app.globalData.orderType;
    wx.request({
      url: app.globalData.url + "getTimeAreaList",
      method: 'GET',
      data: {
        deptId: orderInfo.deptId,
        vaccineType: orderInfo.vaccineType,
        effectTime: effectTime,
        orderType: orderType
      },
      header: {
        'Content-Type': 'application/json'
      },
      success: function (res) {
        if (res.data.success) {
          let am_time_area = [];
          let pm_time_area = [];
          const list = res.data.data;
          for (var i in list) {
            list[i].startTime = util.getHHMM(list[i].startTime);
            list[i].endTime = util.getHHMM(list[i].endTime);
            if (list[i].timeAreaType === "0") {
              am_time_area.push(list[i]);
            } else {
              pm_time_area.push(list[i]);
            }
          }
          self.setData({
            am_time_area: am_time_area,
            pm_time_area: pm_time_area
          })
        }
      }
    });
  },



<view class="commodity_screen" bindtap="hideModal" wx:if="{{showModalStatus}}">view>
<view animation="{{animationData}}" class="commodity_attr_box" wx:if="{{showModalStatus}}">
  <view class='nav'>
    <view class='default' bindtap='selectAm'>view>
    <view class='{{showAmList?"active":"default"}}' bindtap='selectAm'>上午view>
    <view class='default' bindtap='selectAm'>view>
    <view class='default' bindtap='selectPm'>view>
    <view class='{{!showAmList?"active":"default"}}' bindtap='selectPm'>下午view>
    <view class='default' bindtap='selectPm'>view>
  view>
  <view class='time-area-list' hidden='{{!showAmList}}'>
    <view class='time-area {{item.quantity>item.occupyQuantity?"":"time-area-full"}} {{item.appointConfigId === activeTimeArea.appointConfigId?"time-area-active":""}}' wx:for="{{am_time_area}}" wx:for-item="item" bindtap='selectTimeArea' data-time-area="{{item}}">
      <view class='order-time'>{{item.startTime+"-"+item.endTime}}view>
      <view class='order-num'>剩余
        <text class='order-count'>{{item.quantity-item.occupyQuantity>=0?item.quantity-item.occupyQuantity:0}}text> 人view>
    view>
  view>
  
  <view class='time-area-list' hidden='{{showAmList}}'>
    <view class='time-area {{item.quantity>item.occupyQuantity?"":"time-area-full"}} {{item.appointConfigId === activeTimeArea.appointConfigId?"time-area-active":""}}' wx:for="{{pm_time_area}}" wx:for-item="item" bindtap='selectTimeArea' data-time-area="{{item}}">
      <view class='order-time'>{{item.startTime+"-"+item.endTime}}view>
      <view class='order-num'>剩余
        <text class='order-count'>{{item.quantity-item.occupyQuantity>=0?item.quantity-item.occupyQuantity:0}}text> 人view>
    view>
  view>


  <view class='confirm' bindtap='confirm'>确认view>
view>
回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容
问题标签