html52.com
我爱小程序-开发者交流社区

Mac,Windows下编译手机预览效果不同

问题模块 框架类型 问题类型 操作系统 工具版本
开发者工具 小程序 Bug Windows v1.02.1812271

所有编译预览都为同样代码,同一部手机预览,编译开发为Mac版与Windows版

<navigator url="/pages/welfareMall/goodsDetail/goodsDetail?spCode={{item.spCode}}" hover-class="navigator-hover" class="raffle-navigator raffle-item {{(!cutThree && index === 0) || (cutThree && index === 3) ? 'raffle-item-first' : ''}} {{hideTitle&&index===0 ? 'hide-title' : ''}}" wx:for="{{raffleData}}" wx:key="index" wx:if="{{index > 2 || !cutThree}}" >
  <view class="sp-list-box">
    <image class="sp-list-img" src="{{item.spPic}}" lazy-load="true" />
    <view class="sp-info-box">
      <view class="sp-name">{{item.spName}}</view>

      <view class="sp-money">

       <!-- 此处换行符Mac,windows编译完,同手机预览表现不一致 -->

        {{item.discountPoint}}积分+<text class="money">{{item.minPrice}}元</text>
      </view>
      <view class="sp-price">原价{{item.sellingPrice}}元</view>
      <view class="sp-bottom-box">
        <view class="sp-buy-num-box">
          已兑换<text class="sp-buy-num">{{item.hasSaleValue}}</text>人
        </view>
        <button class="sp-buy-btn" data-spcode="{{item.spCode}}" catchtap="goToDetails">
          马上兑
        </button>
      </view>
    </view>
  </view>
</navigator>


以下为Windows下编译,bug表现;

原价109明显挤出;对应代码处有换行

明显挤出;对应代码处有换行以下为Mac下编译,正常预期表现;


以下为Mac下编译,正常预期表现;

与上述编译为同一套代码

与上述编译为同一套代码



网友回复

卢霄霄:

为了防止世界被破坏,文本部分,我标签和内容都放在同一行。。

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付