liiistem-miniapp/pages/takephoto/takephoto.wxml
2025-09-16 13:41:49 +08:00

35 lines
No EOL
2.1 KiB
Text

<view>
<image class="img" src="{{cdnHost + '/static/bg_take.jpeg?v=5'}}" />
<!-- <view class="img"> -->
<!-- <view>发布信息审核通过后获10元红包</view> -->
<!-- </view> -->
<view class="form">
<t-input label="标题" placeholder="请输入您的发现标题" model:value="{{title}}" align="right" />
<t-input label="手机" type="number" tips="{{phoneError ? '手机号输入不正确' : ''}}" bindchange="onPhoneInput" placeholder="请输入您的手机号码" model:value="{{tel}}" align="right" />
<t-cell title="现场图片" description="最多6张图片" hover></t-cell>
<t-cell class="photos">
<view class="wrapper" slot="description">
<t-upload max="{{6}}" size-limit="{{102400}}" media-type="{{['image']}}" files="{{ds.list}}" gridConfig="{{gridConfig}}" bind:success="imgHandleSuccess" bind:remove="imgHandleRemove" bind:click="imgHandleClick" request-method="{{httpRequest}}" bind:add="beforUpload" />
</view>
</t-cell>
<t-cell title="现场视频(可选)" description="最多一个视频(3分钟内)" hover>
<t-upload slot="note" mediaType="{{['video']}}" max="{{1}}" files="{{videoFileList}}" bind:add="handleVideoAdd" bind:remove="handleVideoRemove"></t-upload>
</t-cell>
<t-textarea t-class="external-class" label="" placeholder="请输入具体内容" value="" maxcharacter="5000" disableDefaultPadding="{{true}}" model:value="{{content}}" />
<view class="local_bar">
<view class="local">
<t-icon name="location-1" size="30rpx" color="green"></t-icon>
{{shortAddress}}
</view>
<view class="btn" bind:tap="choosePoi">
修正位置
<t-icon name="chevron-right" size="28rpx"></t-icon>
</view>
</view>
</view>
<t-notice-bar visible="{{true}}" theme="warning" content="请确保您发布的信息真实有效"></t-notice-bar>
<view class="btns">
<t-button theme="primary" size="large" block bind:tap="onSubmit">确认发布</t-button>
<t-button theme="primary" size="large" block variant="outline" bind:tap="goBack">取消</t-button>
</view>
</view>