master
chen 2021-09-06 11:39:01 +08:00
parent 5a02eb1f4f
commit f18d09fdb6
2 changed files with 14 additions and 6 deletions

View File

@ -9,6 +9,7 @@ Page({
data: { data: {
host: urlPath.host, host: urlPath.host,
list: {}, list: {},
flag:false,
isXiangm: false, isXiangm: false,
newDo_type: '', newDo_type: '',
threeList: [], threeList: [],
@ -44,6 +45,7 @@ Page({
priceList: {}, priceList: {},
curThreeCode: [], curThreeCode: [],
tree_num: {}, tree_num: {},
flag:true,
}) })
if (event.detail.value == 1) { if (event.detail.value == 1) {
this.setData({ this.setData({
@ -76,6 +78,7 @@ Page({
curThreeCode: [], curThreeCode: [],
tree_num: {}, tree_num: {},
paid_money: 0, paid_money: 0,
flag:true,
carbon_neutralization: 0, carbon_neutralization: 0,
carbon_efficiency: "0.00", carbon_efficiency: "0.00",
}) })
@ -104,6 +107,7 @@ Page({
priceList: {}, priceList: {},
curThreeCode: [], curThreeCode: [],
tree_num: {}, tree_num: {},
flag:true,
}) })
}, },
numChange(event) { numChange(event) {

View File

@ -16,33 +16,37 @@
<view class="address"> <view class="address">
<view> <view>
<image style="width:38rpx;height:35rpx" src="/img/nav/didian.png"></image> <image style="width:38rpx;height:35rpx" src="/img/nav/didian.png"></image>
<view class="title">碳中和项目</view> <view class="title">碳中和项目选择</view>
<view class="info"> <view class="info">
<picker bindchange="casesChange" value="{{curCaseIndex}}" range-key="name" range="{{threeList}}"> <picker bindchange="casesChange" value="{{curCaseIndex}}" range-key="name" range="{{threeList}}">
<view class="picker">{{threeList[curCaseIndex].name}}</view> <view class="picker">{{flag?threeList[curCaseIndex].name:"默认选项"}}</view>
</picker> </picker>
</view> </view>
</view> </view>
</view> </view>
<!-- 项目选择 --> <!-- 项目选择 -->
<view class="address" wx:if="{{isXiangm}}"> <view class="address" wx:if="{{isXiangm}}">
<view class="title">森林经营项目</view> <!-- <view class="title">森林经营项目</view> -->
<image style="width:38rpx;height:35rpx" src="/img/nav/case.png"></image>
<view class="title">碳中和项目类型选择</view>
<view class="info"> <view class="info">
<picker bindchange="senChange" value="{{senIndex}}" range-key="name" range="{{senList}}"> <picker bindchange="senChange" value="{{senIndex}}" range-key="name" range="{{senList}}">
<view class="picker"> <view class="picker">
{{senList[senIndex].name}} {{flag?senList[senIndex].name:"默认选项"}}
</view> </view>
</picker> </picker>
</view> </view>
</view> </view>
<!-- 地址选择 --> <!-- 地址选择 -->
<view class="address"> <view class="address">
<view class="title">地址选择</view> <!-- <view class="title">地址选择</view> -->
<image style="width:38rpx;height:35rpx" src="/img/nav/address.png"></image>
<view class="title">碳中和项目地点选择</view>
<view class="info"> <view class="info">
<picker bindchange="addrressChange" value="{{addressIndex}}" range-key="info" range="{{threeList[curCaseIndex].address}}"> <picker bindchange="addrressChange" value="{{addressIndex}}" range-key="info" range="{{threeList[curCaseIndex].address}}">
<view class="picker"> <view class="picker">
<!-- address --> <!-- address -->
{{threeList[curCaseIndex].address[addressIndex].info}} {{flag?threeList[curCaseIndex].address[addressIndex].info:"默认选项"}}
</view> </view>
</picker> </picker>
</view> </view>