From f18d09fdb673cb3bbf35f882119e62673542f96a Mon Sep 17 00:00:00 2001
From: chen <2659004835@qq.com>
Date: Mon, 6 Sep 2021 11:39:01 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/gproduct/gproduct.js | 4 ++++
pages/gproduct/gproduct.wxml | 16 ++++++++++------
2 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/pages/gproduct/gproduct.js b/pages/gproduct/gproduct.js
index d501eea..f46de60 100644
--- a/pages/gproduct/gproduct.js
+++ b/pages/gproduct/gproduct.js
@@ -9,6 +9,7 @@ Page({
data: {
host: urlPath.host,
list: {},
+ flag:false,
isXiangm: false,
newDo_type: '',
threeList: [],
@@ -44,6 +45,7 @@ Page({
priceList: {},
curThreeCode: [],
tree_num: {},
+ flag:true,
})
if (event.detail.value == 1) {
this.setData({
@@ -76,6 +78,7 @@ Page({
curThreeCode: [],
tree_num: {},
paid_money: 0,
+ flag:true,
carbon_neutralization: 0,
carbon_efficiency: "0.00",
})
@@ -104,6 +107,7 @@ Page({
priceList: {},
curThreeCode: [],
tree_num: {},
+ flag:true,
})
},
numChange(event) {
diff --git a/pages/gproduct/gproduct.wxml b/pages/gproduct/gproduct.wxml
index feaa3f1..e76459f 100644
--- a/pages/gproduct/gproduct.wxml
+++ b/pages/gproduct/gproduct.wxml
@@ -16,33 +16,37 @@
- 碳中和项目
+ 碳中和项目选择
- {{threeList[curCaseIndex].name}}
+ {{flag?threeList[curCaseIndex].name:"默认选项"}}
- 森林经营项目
+
+
+ 碳中和项目类型选择
- {{senList[senIndex].name}}
+ {{flag?senList[senIndex].name:"默认选项"}}
- 地址选择
+
+
+ 碳中和项目地点选择
- {{threeList[curCaseIndex].address[addressIndex].info}}
+ {{flag?threeList[curCaseIndex].address[addressIndex].info:"默认选项"}}