add upload permission
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
<!--pages/main/travel/detail/index.wxml-->
|
||||
<view class="custom-navbar">
|
||||
<t-navbar title="出行详情" leftArrow placeholder bind:go-back="goBack">
|
||||
<view slot="right" class="edit-btn" bind:tap="toEdit">
|
||||
<view wx:if="{{canUpload}}" slot="right" class="edit-btn" bind:tap="toEdit">
|
||||
<t-icon name="edit" size="24px" />
|
||||
</view>
|
||||
</t-navbar>
|
||||
@ -61,7 +61,14 @@
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
<t-icon slot="right-icon" name="add" size="20px" color="var(--theme-wx)" bind:tap="toAddLocation" />
|
||||
<t-icon
|
||||
wx:if="{{canUpload}}"
|
||||
slot="right-icon"
|
||||
name="add"
|
||||
size="20px"
|
||||
color="var(--theme-wx)"
|
||||
bind:tap="toAddLocation"
|
||||
/>
|
||||
</t-cell>
|
||||
<t-cell wx:if="{{isLoadingLocations}}" class="loading">
|
||||
<t-loading slot="title" theme="dots" size="40rpx" />
|
||||
@ -117,6 +124,7 @@
|
||||
<!-- 操作按钮 -->
|
||||
<view class="section action">
|
||||
<t-button
|
||||
wx:if="{{canUpload}}"
|
||||
theme="danger"
|
||||
variant="outline"
|
||||
size="large"
|
||||
@ -127,6 +135,7 @@
|
||||
删除
|
||||
</t-button>
|
||||
<t-button
|
||||
wx:if="{{canUpload}}"
|
||||
theme="primary"
|
||||
size="large"
|
||||
icon="edit"
|
||||
|
||||
Reference in New Issue
Block a user