Closed myfengstyle closed 5 years ago
原版是 <view class="cu-custom" style="height:{{CustomBar}}px"> <view class="cu-bar fixed {{bgImage!=''?'none-bg text-white bg-img':''}} {{bgColor}}" style="height:{{CustomBar}}px;padding-top:{{StatusBar}}px;{{bgImage?'background-image:url('+bgImage+')':''}};{{backgroundColor?'background:'+backgroundColor+'':''}};{{fontColor?'color:'+fontColor+'':''}}"> <view bindtap="BackPage" class="action" wx:if="{{isBack}}"> <slot name="backText"></slot> </view> <view class="around center top_nav_box" style="margin-left:40rpx;" wx:if="{{isCustom}}"> <view bindtap="BackPage" class="center" hover="true" hoverClass="click_bg" style="width: 50rpx;height: 100%;"> <image class="top_nav_ileft" src="/image/order_status_r.png" style="transform:rotate(180deg);"></image> </view> <view style="height:30rpx;width:1rpx;background:#f1f1f1"></view> <view bindtap="toHome" class="center" style="width:70rpx;"> <image src="/image/home.png" style="width:50rpx;height:50rpx;"></image> </view> </view> <view class="content" style="top:{{StatusBar}}px"> <slot name="content"></slot> </view> <slot name="right"></slot> </view> </view> 转化后是 <view class="cu-custom" :style="'height:' + CustomBar + 'px'"> <view :class="'cu-bar fixed ' + (bgImage!=''?'none-bg text-white bg-img':'') + ' ' + bgColor" :style="'height:' + CustomBar + 'px;padding-top:' + StatusBar + 'px;' + (bgImage?'background-image:url(' + $1) + ')':'' + ';' + (backgroundColor?'background:'+backgroundColor+'':'') + ';' + (fontColor?'color:'+fontColor+'':'')"> <view @tap="BackPage" class="action" v-if="isBack"> <slot name="backText"></slot> </view> <view class="around center top_nav_box" style="margin-left:40rpx;" v-if="isCustom"> <view @tap="BackPage" class="center" hover="true" hoverClass="click_bg" style="width: 50rpx;height: 100%;"> <image class="top_nav_ileft" src="../../static/image/order_status_r.png" style="transform:rotate(180deg);"></image> </view> <view style="height:30rpx;width:1rpx;background:#f1f1f1"></view> <view @tap="toHome" class="center" style="width:70rpx;"> <image src="../../static/image/home.png" style="width:50rpx;height:50rpx;"></image> </view> </view> <view class="content" :style="'top:' + StatusBar + 'px'"> <slot name="content"></slot> </view> <slot name="right"></slot> </view> </view> 提示错误 'height:' + CustomBar + 'px;padding-top:' + StatusBar + 'px;' + (bgImage?'background-image:url(' + $1) + ')':'' + ';' + (backgroundColor?'background:'+backgroundColor+'':'') + ';' + (fontColor?'color:'+fontColor+'':'') 23:32:38.859 Raw expression: :style="'height:' + CustomBar + 'px;padding-top:' + StatusBar + 'px;' + (bgImage?'background-image:url(' + $1) + ')':'' + ';' + (backgroundColor?'background:'+backgroundColor+'':'') + ';' + (fontColor?'color:'+fontColor+'':'')"
这是用最新v1.0.25(20190928)转化的有错误
已确认哈~ v1.0.26已修复。