tanzhongheY/pages/product/product.wxml

92 lines
3.0 KiB
Plaintext
Raw Normal View History

2021-09-01 07:52:30 +00:00
<!--pages/product/produst.wxml-->
<view class="centent">
<view class="title-top">
<view>
<image style="width:38rpx;height:35rpx" src="{{icon}}"></image>
<view class="title-info">
我的{{list.template_name}}
</view>
<view class="num">
<view class="other">碳足迹数量为</view>
<view class="danwei">千克</view>
<view class="size">{{carbon}}</view>
</view>
</view>
</view>
<view class="address">
<view>
<image style="width:38rpx;height:35rpx" src="/img/nav/didian.png"></image>
<view class="title">碳中和项目</view>
<view class="info">
<picker bindchange="casesChange" value="{{curCaseIndex}}" range-key="address"
range="{{threeList.cases}}">
<view class="picker">
{{threeList.cases[curCaseIndex].name}}
</view>
</picker>
</view>
</view>
</view>
<view class="address">
<view>
<image style="width:38rpx;height:35rpx" src="/img/nav/shumu.png"></image>
<view class="title">可选树种</view>
</view>
</view>
<scroll-view scroll-x scroll-with-animation class="shuList" >
<!-- <view > -->
<view wx:for="{{threeList.cases[curCaseIndex].trees}}" wx:key="index" wx:for-index="unique" class="item" data-num="2">
<view bindtap="setMoney" data-carbon_base="{{item.carbon_base}}" data-money="{{item.price}}"
data-code="{{item.coding}}"
data-key="{{unique}}"
data-name="{{item.name}}"
data-carbon="{{item.carbon_base}}">
<image mode="aspectFit" src="{{host}}{{item.img}}"></image>
<view class="title">{{item.name}}</view>
<view class="money1" >碳汇能力:<view class="red">{{item.carbon_base}}</view>Kg/棵</view>
<view class="money1">造林费用: <view class="red">{{item.price}}</view> 元/棵</view>
</view>
<view style="font-size:24rpx" class="num_input">
<view class="shuzhi">
栽植数量:
</view>
<num-controller mark:carbon_base="{{item.carbon_base}}" mark:name="{{item.name}}" mark:price="{{item.price}}" nameId="{{item.coding}}" num="{{tree_num[item.coding]}}" bindnumChange="numChange" ></num-controller>
</view>
<view wx:for="{{curThreeCode}}" wx:key="i" wx:for-index="i" wx:for-item="e" wx:if="{{e == item.coding}}">
<image class="icon" mode="aspectFit" src="/img/xuanz.png"></image>
</view>
</view>
<!-- </view> -->
</scroll-view>
<view class="money">
<view class="tips" >碳中和</view>
<view class="all_num ">
<view class="green">{{carbon_neutralization}}Kg</view>
<view class="efficiency">碳中和率:{{carbon_efficiency}}%</view>
</view>
</view>
<view class="money">
<!-- <image src="/img/money.png"></image> -->
<view class="tips" >支付</view>
<view class="all_num">
<view wx:for="{{priceList}}" wx:key="index" >
{{item.name}}{{item.num}}*{{item.price}}={{item.all}}
</view>
</view>
</view>
<view class="bottom-nav">
合计支付:¥{{paid_money}}
<button class="xiadan" bindtap="toPay">
立即支付
</button>
</view>
</view>