118 lines
5.7 KiB
Plaintext
118 lines
5.7 KiB
Plaintext
<!--pages/new-page/index.wxml-->
|
|
<view class="content" style="padding-bottom: 150rpx;">
|
|
|
|
<!-- <view class="title"
|
|
style="padding-top:{{capsuleParam.navBarHeight-capsuleParam.menuHeight}}px;line-height:{{capsuleParam.menuHeight}}px;font-size:{{capsuleParam.navFontSize}}px">
|
|
<view class="back" style="margin-left:{{capsuleParam.menuRight}}px" bindtap="goIndex">
|
|
<image src="/img/nav/left.png"></image>
|
|
</view>
|
|
<text>碳中和</text>
|
|
</view>-->
|
|
<scroll-view scroll-x scroll-with-animation class="tab-tit" scroll-into-view="{{id}}" bindtap="titleClick">
|
|
<view wx:for="{{newList}}" wx:key="unique" wx:for-index="unique" id="{{'m'+ unique}}"
|
|
class="{{currentIndex==unique?'active':''}} tit-item" mark:index="{{unique}}" mark:id="{{item.id}}">
|
|
<image wx:if="{{currentIndex == unique}}" src="{{host}}{{item.subicon_img}}"
|
|
style="width:34rpx;height:31rpx"></image>
|
|
|
|
<image wx:else src="{{host}}{{item.icon_img}}"
|
|
style="width:34rpx;height:31rpx"></image>
|
|
<text>{{item.name}}</text>
|
|
</view>
|
|
</scroll-view>
|
|
<view>
|
|
<view class="content-item"></view>
|
|
</view>
|
|
<!-- 内容一样-->
|
|
<view class="time-list">
|
|
<view class="activeName">
|
|
<image src="/img/nav/time.png"></image>
|
|
{{newList[currentIndex].name}}时间
|
|
</view>
|
|
<view class="picker-box">
|
|
<picker mode="date" value="{{start_date}}" class="time-picker" start="2015-09-01" end="2050-09-01" mark:type="start" bindchange="bindDateChange">
|
|
<view class="picker">
|
|
{{start_date?start_date:'请选择开始时间'}}
|
|
</view>
|
|
</picker>
|
|
—
|
|
<picker mode="date" value="{{end_date}}" class="time-picker" start="2015-09-01" end="2050-09-01" mark:type="end" bindchange="bindDateChange">
|
|
<view class="picker">
|
|
{{end_date?end_date:'请选择结束时间'}}
|
|
</view>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 内容不一样-->
|
|
<form bindsubmit="formSubmit">
|
|
<view>
|
|
<view wx:if="{{currentIndex==index}}" wx:for="{{newList}}" wx:key="id">
|
|
<view class="form-list" wx:for="{{newList[index].activity_list}}" wx:for-item="item" wx:for-index="cidx" wx:key="id">
|
|
<view class="form-item {{item.isOpen?'active':''}}" bindtap="getStatus" mark:cindex="{{cidx}}">
|
|
<view class="form-title">{{item.name}}</view>
|
|
<image src="{{item.isOpen?'/img/nav/down.png':'/img/nav/arrow.png'}}"
|
|
class="{{item.isOpen?'imgaeIcon':'imgaeIconActive'}}"></image>
|
|
</view>
|
|
<view wx:if="{{item.isOpen}}">
|
|
<view class="item-list" wx:key="index2" wx:for="{{item.factor_list}}" wx:for-index="factor_list_key" wx:for-item="itemName">
|
|
<view class="item-name">
|
|
{{itemName.factor_name}}
|
|
</view>
|
|
<view class="item-content">
|
|
<view class="list">
|
|
原计划数量
|
|
<input type="number" bindblur="setPrimarynNmber" type="digit"
|
|
|
|
data-activity_list_key="{{cidx}}"
|
|
data-factor_list_key="{{factor_list_key}}"
|
|
class="weui-input" name="{{itemName.id}}_planned" value="{{itemName.primaryn?itemName.primaryn:''}}" placeholder="" />
|
|
<view class="danwei">{{itemName.factor_unit}}</view>
|
|
</view>
|
|
<view class="list">
|
|
实际数量
|
|
<input type="number" bindblur="setActualNmber" type="digit"
|
|
|
|
data-activity_list_key="{{cidx}}"
|
|
data-factor_list_key="{{factor_list_key}}"
|
|
class="weui-input" name="{{itemName.id}}_actual" value="{{itemName.actual?itemName.actual:''}}" placeholder="" />
|
|
<view class="danwei">{{itemName.factor_unit}}</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
</view>
|
|
<!-- <view wx:if="{{currentIndex==1}}">内容2</view>
|
|
<view wx:if="{{currentIndex==2}}">内容3</view>
|
|
<view wx:if="{{currentIndex==3}}">内容4</view> -->
|
|
</view>
|
|
|
|
<view class="info">
|
|
<view class="grey">经过我的精心策划,我的{{activeName}}</view>
|
|
<view class="green">减少碳排放{{difference_carbon}}千克</view>
|
|
<view class="orange">还有{{actual_total_carbon}}千克的碳排放需要中和掉!</view>
|
|
<view>保护人类家园应对气候变化是我们共同的责任和义务</view>
|
|
</view>
|
|
<view class="bottom-nav">
|
|
<!-- <button class="share" open-type="share">
|
|
<image src="/img/share.jpg"></image>
|
|
</button> -->
|
|
|
|
<button class="xiadan" formType="submit" data-type="2">
|
|
<image src="/img/nav/xiadan.png"></image>
|
|
我要碳中和
|
|
</button>
|
|
<button class="save" formType="submit" data-type="1" >
|
|
<image src="/img/nav/save.png"></image>
|
|
保存
|
|
</button>
|
|
</view>
|
|
</form>
|
|
|
|
</view>
|
|
|