25 lines
1.1 KiB
Plaintext
25 lines
1.1 KiB
Plaintext
<!--mycomponent/yz_homeButton.wxml-->
|
|
<wxs module="util">
|
|
var inOf = function (val, str) { if (val) { return val.indexOf(str) } };
|
|
module.exports.inOf = inOf;
|
|
</wxs>
|
|
<view class="releaseBox" wx:if="{{util.inOf(datas,'storeAlone') > -1}}" style="bottom: 230rpx;" catchtap="gotoAlone" data-name="release">发布</view>
|
|
<block wx:elif="{{store_id}}">
|
|
<view class="releaseBox" style="bottom: 230rpx;" catchtap="gotoAlone" data-name="home">首页</view>
|
|
<view class="releaseBox" style="bottom: 150rpx;" catchtap="gotoAlone" data-name="my">我的</view>
|
|
</block>
|
|
<view class="y5" catchtap="showToolbar" style="bottom: 230rpx;" wx:else>
|
|
<view class="y6" wx:if="{{toolbar}}">
|
|
<view class="a y8" catchtap="gohome" wx:if="{{util.inOf(datas,'home') > -1}}">
|
|
{{title[0] || '首页'}}
|
|
</view>
|
|
<view class="a yb" catchtap="goorderlist" data-status="0" wx:if="{{util.inOf(datas,'orderlist') > -1}}">
|
|
{{title[1] || '订单'}}
|
|
</view>
|
|
<view class="a yc" catchtap="gomember" wx:if="{{util.inOf(datas,'member') > -1}}">
|
|
{{title[2] || '我的'}}
|
|
</view>
|
|
<icon class="yd"></icon>
|
|
</view>
|
|
</view>
|