39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
<!--pages/main/travel/luggage/index.wxml-->
|
|
<wxs module="_"> module.exports.contain = function(arr, key) { return arr.indexOf(key) > -1 } </wxs>
|
|
|
|
<view class="custom-navbar">
|
|
<t-navbar title="{{name}}的旅行装备" bind:go-back="doBack" delta="0" left-arrow />
|
|
</view>
|
|
<view class="luggage">
|
|
<view class="tips">tips: 勾选表示已携带,返回自动保存</view>
|
|
<t-checkbox-group class="items">
|
|
<view
|
|
class="item {{item.isTaken ? 'active' : ''}}"
|
|
wx:for="{{value}}"
|
|
wx:key="index"
|
|
data-index="{{index}}"
|
|
bindtap="onTapItem"
|
|
bindlongpress="showMenu"
|
|
>
|
|
<t-icon wx:if="{{item.isTaken}}" name="check" class="icon" ariaHidden="{{true}}" />
|
|
<t-checkbox
|
|
class="checkbox"
|
|
value="{{item.isTaken}}"
|
|
label="{{item.name}}"
|
|
icon="none"
|
|
borderless
|
|
/>
|
|
</view>
|
|
</t-checkbox-group>
|
|
</view>
|
|
<view class="add-container" style="transform: translateY(-{{keyboardHeight}}px)">
|
|
<t-input
|
|
class="input"
|
|
placeholder="请输入新的物品"
|
|
cursor-spacing="20"
|
|
adjust-position="{{false}}"
|
|
model:value="{{addValue}}"
|
|
borderless
|
|
/>
|
|
<t-button size="small" theme="primary" bindtap="add" disabled="{{!addValue}}">添加</t-button>
|
|
</view> |