这是自定义组件
<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+’)’:’’}}”>
<view class=“action” bindtap=“BackPage” wx:if="{{isBack}}">
<text class=“cuIcon-back”></text>
<slot name=“backText”></slot>
</view>
<view class=“action border-custom” wx:if="{{isCustom}}" style=“width:{{Custom.width}}px;height:{{Custom.height}}px;margin-left:calc(750rpx - {{Custom.right}}px)”>
<text class=“cuIcon-back” bindtap=“BackPage”></text>
<text class=“cuIcon-homefill” bindtap=“toHome”></text>
</view>
<view class=“content” style=“top:{{StatusBar}}px”>
<slot name=“content”></slot>
</view>
<slot name=“right”></slot>
</view>
</view>
这个是这个
BackPage(e) {
console.log(“返回事件1”,e);
var url=e.currentTarget.dataset.url;
console.log(url);
if(url==null){
wx.navigateBack({
delta: 1
});
}else{
wx.navigateBack({
url: url
});
}
},
<cu-custom bgColor=“bg-gradual-blue” data-url=’…/list/list’ isBack="{{true}}">
<view slot=“backText” data-url=’…/list/list’>返回</view>
<view slot=“content”>工单处理</view>
</cu-custom>
这个data-url 怎么没有传过去 ,该怎么传呢