赞
踩
html
- <!--表格-->
- <view class="table" bindtap="Opendetails" data-item="{{item}}" >
- <view class="table-wrap">
- <view class="tr">
- <view class="td1">id</view>
- <view class="td2">{{item.id}}</view>
- </view>
- <view class="tr">
- <view class="td1">创建时间</view>
- <view class="td2">2022-02-12 16:00:00</view>
- </view>
- <view class="tr">
- <view class="td1">缴费详情</view>
- <view class="td2">{{item.name}}</view>
- </view>
- <view class="tr">
- <view class="td1">金额/元</view>
- <view class="td2">{{item.price}}元</view>
- </view>
- </view>
- </view>
js
- Opendetails(value){
- // let item=value.currentTarget.dataset.item
- let item=JSON.stringify(value.currentTarget.dataset.item);
- wx.navigateTo({
- url:"/pages/logs/logdetails/logdetails?item="+item,
- })
-
- },
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。