From cabbca85b518f561d0dc2b7a7ec11d6922785b86 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期三, 10 七月 2024 17:52:38 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/zbomyoujia

---
 wechat_jiaxuan/pages/calculator/index.wxml |  101 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 101 insertions(+), 0 deletions(-)

diff --git a/wechat_jiaxuan/pages/calculator/index.wxml b/wechat_jiaxuan/pages/calculator/index.wxml
new file mode 100644
index 0000000..88ace3a
--- /dev/null
+++ b/wechat_jiaxuan/pages/calculator/index.wxml
@@ -0,0 +1,101 @@
+<!--pages/calculator/index.wxml-->
+<view class="container" style="background-image: {{ 'url(' + background + ')' }};">
+  <view class="container-content" style="overflow-y: {{ containerContentStyle }};">
+    <van-nav-bar border="{{ false }}" custom-class="top-head-transparent" bind:click-left="navigateBack" fixed placeholder>
+      <van-icon name="arrow-left" class="top-head-icon" slot="left" />
+    </van-nav-bar>
+
+    <!-- 璁$畻鍣� -->
+    <view class="calculator">
+      <view class="title">瑁呬慨璁$畻鍣�</view>
+      <view class="tips">涓烘偍璁$畻鏈�浼樺瑁呭垎閰�</view>
+
+      <!-- 璁$畻鍣ㄨ緭鍏ュ唴瀹� -->
+      <view class="form">
+
+        <view class="form-item">
+          <view class="label">鎴垮眿绫诲瀷锛�</view>
+          <view class="input-box" data-index="type" bindtap="toSelectType">
+            <view class="select">
+              <view class="value" wx:if="{{ type !== '' }}">{{ typeArray[type] }}</view>
+              <view class="placeholder" wx:else>璇烽�夋嫨</view>
+            </view>
+            <van-icon class="icon" name="arrow-down" />
+          </view>
+        </view>
+
+        <view class="form-item">
+          <view class="label">鎴峰瀷淇℃伅锛�</view>
+          <view class="input-box" data-index="info" bindtap="toSelectType">
+            <view class="select">
+              <view class="value" wx:if="{{ info !== '' }}">{{ infoArray[info] }}</view>
+              <view class="placeholder" wx:else>璇烽�夋嫨</view>
+            </view>
+            <van-icon class="icon" name="arrow-down" />
+          </view>
+        </view>
+
+        <view class="form-item">
+          <view class="label">鎴垮眿闈㈢Н锛�</view>
+          <view class="input-box">
+            <input class="input" placeholder-class="placeholder" placeholder="0"
+              data-index="area" bindinput="inputTyping" value="{{ area }}"/>
+            <view class="icon">銕�</view>
+          </view>
+        </view>
+
+        <view class="form-item">
+          <view class="label">瑁呬慨棰勭畻锛�</view>
+          <view class="input-box">
+            <input class="input" placeholder-class="placeholder" placeholder="0"
+              data-index="money" bindinput="inputTyping" value="{{ money }}"/>
+            <view class="icon">涓囧厓</view>
+          </view>
+        </view>
+
+        <view class="form-item">
+          <view class="submit-btn" bindtap="submit" wx:if="{{ userPhone != null && userPhone != 'undefined' && userPhone.length === 11 }}">绔嬪嵆璁$畻</view>
+          <button class="submit-btn" wx:else
+            open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">绔嬪嵆璁$畻</button>
+        </view>
+      </view>
+    </view>
+    <!-- 璁$畻鍣� end -->
+
+    <!-- 璁$畻缁撴灉灞曠ず -->
+    <view class="results" style="opacity: {{ showResultMoney ? '1' : '0.2' }};">
+      <view class="results-title">鏈�浼樺瑁呭垎閰嶈〃</view>
+      <view class="flex thead">
+        <view class="td name">璇︽儏</view>
+        <view class="td rate">鍙傝�冩瘮渚�</view>
+        <view class="td money">鍙傝�冧环鏍�</view>
+      </view>
+      <view class="item" wx:for="{{ calculatorOptions }}" wx:key="index"
+        hidden="{{ type == item.info }}">
+        <view class="flex th">
+          <view class="td name">{{ item.name }}</view>
+          <view class="td rate">鍗犳瘮{{ item.rate }}%</view>
+          <view class="td money">鍚堣{{ item.money }}(涓囧厓)</view>
+        </view>
+        <view class="flex tr" wx:for="{{ item.childList }}" wx:for-item="ite" wx:for-index="idx" wx:key="idx">
+          <view class="td name">{{ ite.name }}</view>
+          <view class="td rate">{{ ite.rate }}%</view>
+          <view class="td money">{{ ite.money }}</view>
+        </view>
+      </view>
+    </view>
+
+  </view>
+</view>
+
+<!-- 閫夋嫨鍣� -->
+<van-popup round show="{{ showPopup }}" position="bottom" custom-style="height: auto;">
+  <view class="popup-content">
+    <view class="flex-cb buttons">
+      <view class="btn btn-cancel" bindtap="cancelPicker">鍙栨秷</view>
+      <view class="btn btn-confirm" bindtap="confirmPicker">纭畾</view>
+    </view>
+    <van-picker class="picker" columns="{{ typeArray }}" bind:change="onChange" default-index="{{ type }}" wx:if="{{ activePicker === 'type' }}" />
+    <van-picker class="picker" columns="{{ infoArray }}" bind:change="onChange" default-index="{{ info }}" wx:if="{{ activePicker === 'info' }}" />
+  </view>
+</van-popup>

--
Gitblit v1.9.3