jiasiqi пре 2 година
родитељ
комит
c2053602f6

+ 23 - 0
.gitignore

@@ -0,0 +1,23 @@
+.DS_Store
+node_modules/
+dist/
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+**/*.log
+
+tests/**/coverage/
+tests/e2e/reports
+selenium-debug.log
+
+# Editor directories and files
+.idea
+.vscode
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.local
+
+package-lock.json
+yarn.lock

+ 25 - 0
pages/bill-time/bill-time.js

@@ -0,0 +1,25 @@
+// pages/bill/bill.js
+Page({
+  data: {
+    date: '',
+    show: false,
+  },
+
+  onDisplay() {
+    this.setData({ show: true });
+  },
+  onClose() {
+    this.setData({ show: false });
+  },
+  formatDate(date) {
+    date = new Date(date);
+    return `${date.getFullYear()}-${date.getMonth() + 1}-${date.getDate()}`;
+  },
+  onConfirm(event) {
+    const [start, end] = event.detail;
+    this.setData({
+      show: false,
+      date: `${this.formatDate(start)} 至 ${this.formatDate(end)}`,
+    });
+  },
+});

+ 14 - 0
pages/bill-time/bill-time.json

@@ -0,0 +1,14 @@
+{
+  "usingComponents": {
+
+    "van-cell": "@vant/weapp/cell/index",
+    "van-cell-group": "@vant/weapp/cell-group/index",
+    "van-row": "@vant/weapp/row/index",
+    "van-col": "@vant/weapp/col/index",
+    "van-icon": "@vant/weapp/icon/index",
+    "van-calendar": "@vant/weapp/calendar/index",
+    "van-grid": "@vant/weapp/grid/index",
+    "van-grid-item": "@vant/weapp/grid-item/index"
+
+  }
+}

+ 122 - 0
pages/bill-time/bill-time.wxml

@@ -0,0 +1,122 @@
+<!--pages/bill/bill.wxml-->
+<!--  -->
+<view class="page-up">  
+    <van-icon id="sign" name="arrow-left" size="30px" color="white"/>
+    <view class="title">账单统计</view>
+    <view class="content">
+      <view class="text1">今日账单</view>
+      <view class="text2">
+        <span id="t1">入账金额:</span>
+        <span id="t1">¥</span>
+        <span id="t2">9909.</span>
+        <span id="t1">98 元</span>
+      </view>
+    </view>
+    <view class="items">
+      <view class="item">
+        <van-row class="item">
+          <van-col span="8" class="item1">
+            <span id="i1">¥</span>
+            <span id="i2">340.</span>
+            <span id="i1">14 元</span>
+            <view class="divLine"></view>
+            <view id="ibottom">包装费</view>
+          </van-col>
+          <van-col span="8" class="item2">
+            <span id="i1">¥</span>
+            <span id="i2">298.</span>
+            <span id="i1">00 元</span>
+            <view class="divLine"></view>
+            <view id="ibottom">配送费</view>
+          </van-col>
+          <van-col span="8" class="item3">
+            <span id="i1">¥</span>
+            <span id="i2">50.</span>
+            <span id="i1">00 元</span>
+            <view id="ibottom">退款费</view>
+          </van-col>
+        </van-row>
+      </view>
+    </view>
+  </view>
+  <!-- 累计账单 -->
+<view class="page-middle">
+  <!-- <van-cell title="累计账单" value="{{ date }}" bind:click="onDisplay" /> -->
+  <!-- <span id="mid-text">累计账单</span> -->
+  <van-cell title="累计账单" value="{{ date }}" bind:click="onDisplay" />
+  <!-- <van-icon id="sign2" name="notes-o" size="25px" color="#FF8C00" value="{{ date }}" bind:click="onDisplay"/> -->
+  <van-calendar
+    show="{{ show }}"
+    color="#FF8C00"
+    type="range"
+    bind:close="onClose"
+    bind:confirm="onConfirm"
+  />
+  <view class="divLine4"></view>
+</view>
+
+<view class="page-bottom">
+  <view class="box1">
+    <view id="b1">   
+      <text class="iconfont icon-qian"></text>  </view>
+      <view id="b1-right">
+        <span id="atext1">¥</span>
+        <span id="atext2">1,9899.</span>
+        <span id="atext1">00 元</span>
+        <view id="atext3">
+          入账金额
+        </view>
+    </view>
+  </view>
+
+  <view class="box2">
+    <view id="b2">   
+      <text class="iconfont icon-baozhuang1"></text>
+      </view>
+      <view id="b2-right">
+        <span id="btext1">¥</span>
+        <span id="btext2">1,9899.</span>
+        <span id="btext1">00 元</span>
+        <view id="btext3">
+          包装费
+        </view>
+    </view>
+  </view>
+  <view class="divLine2"></view>
+ 
+  <view class="box3">
+      <view id="b3">  <text class="iconfont icon-navicon-chps"></text>   </view>
+      <view id="b3-right">
+        <span id="ctext1">¥</span>
+        <span id="ctext2">1,9899.</span>
+        <span id="ctext1">00 元</span>
+        <view id="ctext3">
+          配送费
+        </view>
+    </view>
+  </view>
+  
+
+  <view class="box4">
+    <view id="b4">   
+      <text class="iconfont icon-tuikuan"></text>
+     </view>
+      <view id="b4-right">
+        <span id="dtext1">¥</span>
+        <span id="dtext2">1,9899.</span>
+        <span id="dtext1">00 元</span>
+        <view id="dtext3">
+          退款费
+        </view>
+    </view>
+  </view>
+  <view class="divLine3"></view>
+</view>
+
+
+
+
+
+
+
+

+ 302 - 0
pages/bill-time/bill-time.wxss

@@ -0,0 +1,302 @@
+/* pages/bill/bill.wxss */
+/* page{
+  height: 100%;
+} */
+@import '/miniprogram_npm/@vant/weapp/common/index.wxss';
+@font-face {
+  font-family: "iconfont"; /* Project id 4039863 */
+  src: url('//at.alicdn.com/t/c/font_4039863_ttjwylqy4n.woff2?t=1682480340319') format('woff2'),
+       url('//at.alicdn.com/t/c/font_4039863_ttjwylqy4n.woff?t=1682480340319') format('woff'),
+       url('//at.alicdn.com/t/c/font_4039863_ttjwylqy4n.ttf?t=1682480340319') format('truetype');
+}
+
+.iconfont {
+  font-family: "iconfont" !important;
+  font-size: 16px;
+  font-style: normal;
+  -webkit-font-smoothing: antialiased;
+  -moz-osx-font-smoothing: grayscale;
+}
+
+.icon-tuikuan:before {
+  content: "\e8ab";
+  color: #FF8C00;
+  font-size: 35px;
+}
+
+.icon-qian:before {
+  content: "\e640";
+  color: #FF8C00;
+  font-size: 35px;
+}
+
+.icon-navicon-chps:before {
+  content: "\e64d";
+  color: #FF8C00;
+  font-size: 35px;
+}
+
+.icon-baozhuang1:before {
+  content: "\e61b";
+  color: #FF8C00;
+  font-size: 35px;
+}
+
+
+.page-up{
+  /* height: 30%; */
+  background: -webkit-linear-gradient(top,rgb(236, 107, 47),#f09b4c,rgb(252, 141, 67));
+  height:470rpx;
+}
+#sign{
+  margin-top: 5px;
+}
+.title{
+  float: right;
+  margin-top:5px;
+  text-align: center;
+  width: 100px;
+  height:30px;
+  margin-right: 159px;
+  font-size: 20px;
+  color:white;
+  /* background-color:#FF8C00; */
+}
+.content{
+  margin-top: 55px;
+  margin-left: 50px;
+}
+.text1{
+  font-size: 22px;
+  color:white;
+}
+.text2{
+  margin-top: 10px;
+  color:white;
+}
+#t1{
+  font-size:14px ;
+}
+#t2{
+  font-size: 22px;
+}
+.items{
+  background-color: rgb(252, 142, 67);
+  height: 150rpx;
+  margin-top: 30px;
+}
+.item{
+  color: white;
+  height: 100rpx;
+  margin-left: 36px; 
+}
+#i1{
+  font-size:14px ;
+}
+#i2{
+  font-size: 20px;
+}
+#ibottom{
+  font-size:14px ;
+  margin-left: 13px;
+}
+/*分割线样式*/
+.divLine{
+  background: #929291;
+  height: 90rpx;
+  width: 1rpx;
+  float:right;
+  margin-right: 16px;
+ }
+ /* 累计账单 */
+ .page-middle{
+   /* background-color: rgb(230, 240, 240); */
+   margin-top: 10px;
+   height: 40px;
+   line-height: 45px;
+
+   
+ }
+ #mid-text{
+   margin-left:20px;
+ }
+ #sign2{
+   font-size: 18px;
+   float:right;
+   margin: 10px;
+ }
+ .page-bottom{
+   border-top: rgb(10, 10, 10);
+ }
+ /* 入账金额 */
+.box1{
+  /* background-color: blue; */
+  width:49%;
+  height:120px;
+  /* margin-top: -50px; */
+  position: relative;
+}
+#b1{
+  /* background-color: tan; */
+  width: 30px;
+  height: 30px;
+  margin-left: 35px;
+  position: absolute;
+  top: 45px;
+  left: -10px;
+}
+#b1-right{
+  float:right;
+  margin-right: 10px ;
+  height: 30px;
+  position: absolute;
+  top: 50px;
+  left:65px;
+}
+#atext1{
+  font-size: 14px;
+}
+#atext2{
+  font-size: 22px;
+}
+#atext3{
+  font-size: 14px;
+  color: rgb(104, 106, 107);
+}
+
+
+
+ /* 包装费 */
+.box2{
+  float:right;
+  margin-top: -120px;
+  /* background-color: white; */
+  width:49%;
+  height:120px;
+  position: relative;
+}
+#b2{
+  /* background-color: tan; */
+  width: 30px;
+  height: 30px;
+  margin-left: 35px;
+  position: absolute;
+  top: 45px;
+  left: -10px;
+}
+#b2-right{
+  float:right;
+  margin-right: 10px ;
+  height: 30px;
+  position: absolute;
+  top: 50px;
+  left:65px;
+}
+#btext1{
+  font-size: 14px;
+}
+#btext2{
+  font-size: 22px;
+}
+#btext3{
+  font-size: 14px;
+  color: rgb(104, 106, 107);
+}
+/* 配送费 */
+.box3{
+  /* background-color:red; */
+  width:49%;
+  height:120px;
+  position:absolute;
+}
+#b3{
+  /* background-color: tan; */
+  width: 30px;
+  height: 30px;
+  margin-left: 35px;
+  position: absolute;
+  top: 30px;
+  left: -10px;
+}
+#b3-right{
+  float:right;
+  margin-right: 10px ;
+  height: 30px;
+  position: absolute;
+  top: 35px;
+  left:65px;
+}
+#ctext1{
+  font-size: 14px;
+}
+#ctext2{
+  font-size: 22px;
+}
+#ctext3{
+  font-size: 14px;
+  color: rgb(104, 106, 107);
+}
+
+ /* 退款费 */
+ .box4{
+  float:right;
+  /* margin-top: -150px; */
+  /* background-color: blue; */
+  width:49%;
+  height:120px;
+  position: relative;
+}
+#b4{
+  /* background-color: tan; */
+  width: 30px;
+  height: 30px;
+  margin-left: 35px;
+  position: absolute;
+  top: 30px;
+  left: -10px;
+}
+#b4-right{
+  float:right;
+  margin-right: 10px ;
+  height: 30px;
+  position: absolute;
+  top: 35px;
+  left:65px;
+}
+#dtext1{
+  font-size: 14px;
+}
+#dtext2{
+  font-size: 22px;
+}
+#dtext3{
+  font-size: 14px;
+  color: rgb(104, 106, 107);
+}
+/* 分割线 */
+.divLine2{
+  background: #dad9d7;
+  height: 220px;
+  width: 1px;
+  margin-left: 50%;
+  margin-top: -105px;
+  float: left;
+ }
+.divLine3{
+  background: #dad9d7;
+  height: 1px;
+  width: 80%;
+  margin-left: 40px;
+  /* margin-top: -150px; */
+ }
+ .divLine4{
+  background: #dad9d7;
+  height: 1px;
+  width: 100%;
+  /* margin-left: 40px; */
+  /* margin-top: 10px; */
+ }
+ 
+
+
+

+ 25 - 0
pages/bill/bill.js

@@ -0,0 +1,25 @@
+// pages/bill/bill.js
+Page({
+  data: {
+    date: '',
+    show: false,
+  },
+
+  onDisplay() {
+    this.setData({ show: true });
+  },
+  onClose() {
+    this.setData({ show: false });
+  },
+  formatDate(date) {
+    date = new Date(date);
+    return `${date.getMonth() + 1}/${date.getDate()}`;
+  },
+  onConfirm(event) {
+    const [start, end] = event.detail;
+    this.setData({
+      show: false,
+      date: `${this.formatDate(start)} - ${this.formatDate(end)}`,
+    });
+  },
+});

+ 14 - 0
pages/bill/bill.json

@@ -0,0 +1,14 @@
+{
+  "usingComponents": {
+
+    "van-cell": "@vant/weapp/cell/index",
+    "van-cell-group": "@vant/weapp/cell-group/index",
+    "van-row": "@vant/weapp/row/index",
+    "van-col": "@vant/weapp/col/index",
+    "van-icon": "@vant/weapp/icon/index",
+    "van-calendar": "@vant/weapp/calendar/index",
+    "van-grid": "@vant/weapp/grid/index",
+    "van-grid-item": "@vant/weapp/grid-item/index"
+
+  }
+}

+ 121 - 0
pages/bill/bill.wxml

@@ -0,0 +1,121 @@
+<!--pages/bill/bill.wxml-->
+<!--  -->
+  <view class="page-up">  
+    <van-icon id="sign" name="arrow-left" size="30px" color="white"/>
+    <view class="title">账单统计</view>
+    <view class="content">
+      <view class="text1">今日账单</view>
+      <view class="text2">
+        <span id="t1">入账金额:</span>
+        <span id="t1">¥</span>
+        <span id="t2">9909.</span>
+        <span id="t1">98 元</span>
+      </view>
+    </view>
+    <view class="items">
+      <view class="item">
+        <van-row class="item">
+          <van-col span="8" class="item1">
+            <span id="i1">¥</span>
+            <span id="i2">340.</span>
+            <span id="i1">14 元</span>
+            <view class="divLine"></view>
+            <view id="ibottom">包装费</view>
+          </van-col>
+          <van-col span="8" class="item2">
+            <span id="i1">¥</span>
+            <span id="i2">298.</span>
+            <span id="i1">00 元</span>
+            <view class="divLine"></view>
+            <view id="ibottom">配送费</view>
+          </van-col>
+          <van-col span="8" class="item3">
+            <span id="i1">¥</span>
+            <span id="i2">50.</span>
+            <span id="i1">00 元</span>
+            <view id="ibottom">退款费</view>
+          </van-col>
+        </van-row>
+      </view>
+    </view>
+  </view>
+  <!-- 累计账单 -->
+<view class="page-middle">
+  <!-- <van-cell title="累计账单" value="{{ date }}" bind:click="onDisplay" /> -->
+  <span id="mid-text">累计账单</span>
+  <van-icon id="sign2" name="notes-o" size="25px" color="#FF8C00" value="{{ date }}" bind:click="onDisplay"/>
+  <van-calendar
+    show="{{ show }}"
+    color="#FF8C00"
+    type="range"
+    bind:close="onClose"
+    bind:confirm="onConfirm"
+  />
+  <view class="divLine4"></view>
+</view>
+
+<view class="page-bottom">
+  <view class="box1">
+    <view id="b1">   
+      <text class="iconfont icon-qian"></text>  </view>
+      <view id="b1-right">
+        <span id="atext1">¥</span>
+        <span id="atext2">1,9899.</span>
+        <span id="atext1">00 元</span>
+        <view id="atext3">
+          入账金额
+        </view>
+    </view>
+  </view>
+
+  <view class="box2">
+    <view id="b2">   
+      <text class="iconfont icon-baozhuang1"></text>
+      </view>
+      <view id="b2-right">
+        <span id="btext1">¥</span>
+        <span id="btext2">1,9899.</span>
+        <span id="btext1">00 元</span>
+        <view id="btext3">
+          包装费
+        </view>
+    </view>
+  </view>
+  <view class="divLine2"></view>
+ 
+  <view class="box3">
+      <view id="b3">  <text class="iconfont icon-navicon-chps"></text>   </view>
+      <view id="b3-right">
+        <span id="ctext1">¥</span>
+        <span id="ctext2">1,9899.</span>
+        <span id="ctext1">00 元</span>
+        <view id="ctext3">
+          配送费
+        </view>
+    </view>
+  </view>
+  
+
+  <view class="box4">
+    <view id="b4">   
+      <text class="iconfont icon-tuikuan"></text>
+     </view>
+      <view id="b4-right">
+        <span id="dtext1">¥</span>
+        <span id="dtext2">1,9899.</span>
+        <span id="dtext1">00 元</span>
+        <view id="dtext3">
+          退款费
+        </view>
+    </view>
+  </view>
+  <view class="divLine3"></view>
+</view>
+
+
+
+
+
+
+
+

+ 302 - 0
pages/bill/bill.wxss

@@ -0,0 +1,302 @@
+/* pages/bill/bill.wxss */
+/* page{
+  height: 100%;
+} */
+@import '/miniprogram_npm/@vant/weapp/common/index.wxss';
+@font-face {
+  font-family: "iconfont"; /* Project id 4039863 */
+  src: url('//at.alicdn.com/t/c/font_4039863_ttjwylqy4n.woff2?t=1682480340319') format('woff2'),
+       url('//at.alicdn.com/t/c/font_4039863_ttjwylqy4n.woff?t=1682480340319') format('woff'),
+       url('//at.alicdn.com/t/c/font_4039863_ttjwylqy4n.ttf?t=1682480340319') format('truetype');
+}
+
+.iconfont {
+  font-family: "iconfont" !important;
+  font-size: 16px;
+  font-style: normal;
+  -webkit-font-smoothing: antialiased;
+  -moz-osx-font-smoothing: grayscale;
+}
+
+.icon-tuikuan:before {
+  content: "\e8ab";
+  color: #FF8C00;
+  font-size: 35px;
+}
+
+.icon-qian:before {
+  content: "\e640";
+  color: #FF8C00;
+  font-size: 35px;
+}
+
+.icon-navicon-chps:before {
+  content: "\e64d";
+  color: #FF8C00;
+  font-size: 35px;
+}
+
+.icon-baozhuang1:before {
+  content: "\e61b";
+  color: #FF8C00;
+  font-size: 35px;
+}
+
+
+.page-up{
+  /* height: 30%; */
+  background: -webkit-linear-gradient(top,rgb(236, 107, 47),#f09b4c,rgb(252, 141, 67));
+  height:470rpx;
+}
+#sign{
+  margin-top: 5px;
+}
+.title{
+  float: right;
+  margin-top:5px;
+  text-align: center;
+  width: 100px;
+  height:30px;
+  margin-right: 159px;
+  font-size: 20px;
+  color:white;
+  /* background-color:#FF8C00; */
+}
+.content{
+  margin-top: 55px;
+  margin-left: 50px;
+}
+.text1{
+  font-size: 22px;
+  color:white;
+}
+.text2{
+  margin-top: 10px;
+  color:white;
+}
+#t1{
+  font-size:14px ;
+}
+#t2{
+  font-size: 22px;
+}
+.items{
+  background-color: rgb(252, 142, 67);
+  height: 150rpx;
+  margin-top: 30px;
+}
+.item{
+  color: white;
+  height: 100rpx;
+  margin-left: 36px; 
+}
+#i1{
+  font-size:14px ;
+}
+#i2{
+  font-size: 20px;
+}
+#ibottom{
+  font-size:14px ;
+  margin-left: 13px;
+}
+/*分割线样式*/
+.divLine{
+  background: #929291;
+  height: 90rpx;
+  width: 1rpx;
+  float:right;
+  margin-right: 16px;
+ }
+ /* 累计账单 */
+ .page-middle{
+   /* background-color: rgb(230, 240, 240); */
+   margin-top: 10px;
+   height: 40px;
+   line-height: 45px;
+
+   
+ }
+ #mid-text{
+   margin-left:20px;
+ }
+ #sign2{
+   font-size: 18px;
+   float:right;
+   margin: 10px;
+ }
+ .page-bottom{
+   border-top: rgb(10, 10, 10);
+ }
+ /* 入账金额 */
+.box1{
+  /* background-color: blue; */
+  width:49%;
+  height:120px;
+  /* margin-top: -50px; */
+  position: relative;
+}
+#b1{
+  /* background-color: tan; */
+  width: 30px;
+  height: 30px;
+  margin-left: 35px;
+  position: absolute;
+  top: 45px;
+  left: -10px;
+}
+#b1-right{
+  float:right;
+  margin-right: 10px ;
+  height: 30px;
+  position: absolute;
+  top: 50px;
+  left:65px;
+}
+#atext1{
+  font-size: 14px;
+}
+#atext2{
+  font-size: 22px;
+}
+#atext3{
+  font-size: 14px;
+  color: rgb(104, 106, 107);
+}
+
+
+
+ /* 包装费 */
+.box2{
+  float:right;
+  margin-top: -120px;
+  /* background-color: white; */
+  width:49%;
+  height:120px;
+  position: relative;
+}
+#b2{
+  /* background-color: tan; */
+  width: 30px;
+  height: 30px;
+  margin-left: 35px;
+  position: absolute;
+  top: 45px;
+  left: -10px;
+}
+#b2-right{
+  float:right;
+  margin-right: 10px ;
+  height: 30px;
+  position: absolute;
+  top: 50px;
+  left:65px;
+}
+#btext1{
+  font-size: 14px;
+}
+#btext2{
+  font-size: 22px;
+}
+#btext3{
+  font-size: 14px;
+  color: rgb(104, 106, 107);
+}
+/* 配送费 */
+.box3{
+  /* background-color:red; */
+  width:49%;
+  height:120px;
+  position:absolute;
+}
+#b3{
+  /* background-color: tan; */
+  width: 30px;
+  height: 30px;
+  margin-left: 35px;
+  position: absolute;
+  top: 30px;
+  left: -10px;
+}
+#b3-right{
+  float:right;
+  margin-right: 10px ;
+  height: 30px;
+  position: absolute;
+  top: 35px;
+  left:65px;
+}
+#ctext1{
+  font-size: 14px;
+}
+#ctext2{
+  font-size: 22px;
+}
+#ctext3{
+  font-size: 14px;
+  color: rgb(104, 106, 107);
+}
+
+ /* 退款费 */
+ .box4{
+  float:right;
+  /* margin-top: -150px; */
+  /* background-color: blue; */
+  width:49%;
+  height:120px;
+  position: relative;
+}
+#b4{
+  /* background-color: tan; */
+  width: 30px;
+  height: 30px;
+  margin-left: 35px;
+  position: absolute;
+  top: 30px;
+  left: -10px;
+}
+#b4-right{
+  float:right;
+  margin-right: 10px ;
+  height: 30px;
+  position: absolute;
+  top: 35px;
+  left:65px;
+}
+#dtext1{
+  font-size: 14px;
+}
+#dtext2{
+  font-size: 22px;
+}
+#dtext3{
+  font-size: 14px;
+  color: rgb(104, 106, 107);
+}
+/* 分割线 */
+.divLine2{
+  background: #dad9d7;
+  height: 220px;
+  width: 1px;
+  margin-left: 50%;
+  margin-top: -105px;
+  float: left;
+ }
+.divLine3{
+  background: #dad9d7;
+  height: 1px;
+  width: 80%;
+  margin-left: 40px;
+  /* margin-top: -150px; */
+ }
+ .divLine4{
+  background: #dad9d7;
+  height: 1px;
+  width: 100%;
+  /* margin-left: 40px; */
+  /* margin-top: 10px; */
+ }
+ 
+
+
+

+ 1 - 0
pages/delivery-business

@@ -0,0 +1 @@
+Subproject commit 52cd358619425e798fadf841a571a4ae6276f925