Browse Source

上传文件至 ''

renlian 4 years ago
parent
commit
837e04278e
5 changed files with 878 additions and 0 deletions
  1. 21 0
      app.config.js
  2. 379 0
      app.css
  3. 20 0
      app.js
  4. 439 0
      app.less
  5. 19 0
      index.html

+ 21 - 0
app.config.js

@@ -0,0 +1,21 @@
+export default {
+  pages: [
+    'pages/enter/index',
+    'pages/message/index',
+
+    'pages/login/index',
+
+    'pages/index/index',
+    'pages/commodity/index',
+    'pages/details/index',
+    'pages/cantfind/index',
+    'pages/complaint/index',
+    'pages/subsuccess/index',
+  ],
+  window: {
+    backgroundTextStyle: 'light',
+    navigationBarBackgroundColor: '#fff',
+    navigationBarTitleText: 'WeChat',
+    navigationBarTextStyle: 'black'
+  }
+}

+ 379 - 0
app.css

@@ -0,0 +1,379 @@
+view {
+  box-sizing: border-box;
+}
+.tab {
+  display: flex;
+  flex: 1;
+  background-color: #FFFFFF;
+  position: relative;
+  transform: all 1.1s ease;
+}
+.tab .tablist {
+  width: 50%;
+  height: 84px;
+  font-size: 34px;
+  font-family: PingFangSC-Semibold, PingFang SC;
+  font-weight: 400;
+  color: #E03326;
+  line-height: 84px;
+  text-align: center;
+}
+.tab .tablistfan {
+  width: 50%;
+  height: 84px;
+  font-size: 34px;
+  font-family: PingFangSC-Semibold, PingFang SC;
+  font-weight: 400;
+  color: #333333;
+  line-height: 84px;
+  text-align: center;
+}
+.tab .tabhua1 {
+  width: 136px;
+  height: 4px;
+  position: absolute;
+  top: 80px;
+  left: 118px;
+  background-color: #E03326;
+}
+.tab .tabhua2 {
+  width: 136px;
+  height: 4px;
+  position: absolute;
+  top: 80px;
+  left: 500px;
+  background-color: #E03326;
+}
+.recall {
+  background-color: #FFF4EF;
+  height: 72px;
+  padding-top: 20px;
+}
+.recall View {
+  height: 32px;
+  font-size: 28px;
+  font-family: PingFangSC-Regular, PingFang SC;
+  font-weight: 400;
+  color: #111111;
+  display: flex;
+}
+.recall View::before {
+  content: '';
+  display: inline-block;
+  height: 32px;
+  width: 32px;
+  margin-left: 24px;
+  margin-right: 32px;
+  background: url(assets/img/recall.png) no-repeat;
+  background-size: 100% auto;
+}
+.promessage {
+  width: 100%;
+  border-radius: 16px;
+  margin-top: 24px;
+  background-color: #FFFFFF;
+}
+.promessage .messtitle {
+  margin-left: 24px;
+  display: inline-block;
+  width: 156px;
+  padding-top: 24px;
+  font-size: 36px;
+  font-weight: 600;
+  color: #333333;
+}
+.promessage .small1 {
+  display: inline-block;
+  margin-left: 8px;
+  font-size: 26px;
+  font-weight: 400;
+  color: #999999;
+}
+.promessage .small2 {
+  display: inline-block;
+  font-size: 26px;
+  font-weight: 400;
+  color: #F24724;
+}
+.promessage .messdiv {
+  height: 95px;
+  border-bottom: solid 1px #ececec;
+  padding-left: 0;
+  position: relative;
+}
+.promessage .messdiv .mess1 {
+  padding-left: 24px;
+  padding-top: 28px;
+  font-size: 30px;
+  font-weight: 400;
+  color: #333333;
+}
+.promessage .messdiv .mess2 {
+  font-size: 30px;
+  font-weight: 400;
+  color: #999999;
+  position: absolute;
+  top: 28px;
+  right: 22px;
+}
+.promessage .messdiv .iconpic {
+  width: 112px;
+  height: 96px;
+  position: absolute;
+  top: 0px;
+  right: 22px;
+  background: url(assets/img/iconlogo.png) no-repeat;
+  background-size: 100% auto;
+}
+.promessage .messdiv .icon2 {
+  width: 50px;
+  height: 50px;
+  position: absolute;
+  top: 20px;
+  right: 20px;
+  background: url(assets/img/right.png) no-repeat;
+  background-size: 100% auto;
+}
+.videodiv {
+  border-radius: 16px;
+  background-color: #FFFFFF;
+  margin-top: 28px;
+  padding: 28px 24px 32px 24px;
+}
+.videodiv .title {
+  font-size: 36px;
+  font-weight: 600;
+  color: #333333;
+}
+.videodiv .video {
+  height: 368px;
+  background-color: #333333;
+  margin-top: 24px;
+}
+.but {
+  height: 98px;
+  width: 702px;
+  text-align: center;
+  line-height: 98px;
+  background: #E03326;
+  border-radius: 12px;
+  margin: 40px 24px 432px 24px;
+  font-size: 36px;
+  font-weight: 400;
+  color: #FFFFFF;
+}
+.advicetitle {
+  font-size: 36px;
+  font-weight: 500;
+  color: #333333;
+  padding: 24px 0 32px 20px;
+}
+.thingdiv {
+  width: 343px;
+  background: #FFFFFF;
+  border-radius: 16px;
+  display: inline-block;
+  margin-bottom: 24px;
+}
+.thingdiv .pic {
+  height: 240px;
+  background-color: #ececec;
+  border-radius: 16px 16px 0 0;
+}
+.thingdiv .title {
+  margin: 16px 24px 14px 24px;
+  width: 295px;
+  height: 84px;
+  font-size: 30px;
+  font-weight: 500;
+  color: #333333;
+  text-overflow: -o-ellipsis-lastline;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  display: -webkit-box;
+  -webkit-line-clamp: 2;
+  -webkit-box-orient: vertical;
+}
+.thingdiv .has {
+  font-size: 24px;
+  font-weight: 400;
+  color: #999999;
+  display: inline-block;
+}
+.thingdiv .has::before {
+  content: '';
+  display: inline-block;
+  width: 22.32px;
+  height: 23.26px;
+  background: url(assets/img/renzheng.png) no-repeat;
+  background-size: 100% auto;
+  margin-left: 24px;
+  margin-right: 10px;
+}
+.thingdiv .has::after {
+  content: '';
+  display: inline-block;
+  width: 1px;
+  height: 24px;
+  background: #E5E5E5;
+  margin-left: 12px;
+  margin-right: 12px;
+}
+.thingdiv .address {
+  display: inline-block;
+  font-size: 24px;
+  font-weight: 400;
+  color: #999999;
+}
+.thingdiv .price {
+  font-size: 30px;
+  font-weight: 600;
+  color: #F65200;
+  margin: 28px 0 22px 24px;
+}
+.weather {
+  margin-top: 24px;
+  padding: 24px 0 32px 0;
+  background-color: #FFF;
+  border-radius: 16px;
+}
+.weather .dev {
+  display: flex;
+}
+.weather .dev .title {
+  display: inline-block;
+  font-size: 36px;
+  font-weight: 600;
+  color: #0B0D0E;
+  margin: 0 400px 28px 22px;
+}
+.weather .dev .address {
+  display: flex;
+  font-size: 24px;
+  font-weight: 500;
+  color: #999999;
+}
+.weather .dev .address::before {
+  content: '';
+  display: inline-block;
+  width: 32px;
+  height: 32px;
+  background: url(assets/img/address.png) no-repeat;
+  background-size: 100% auto;
+}
+.weather .today {
+  padding: 40px 0 38px 40px;
+  border-top: 1px solid #EEEEEE;
+  border-bottom: 1px solid #EEEEEE;
+  display: flex;
+  font-family: PingFangSC-Medium, PingFang SC;
+}
+.weather .today .temp_curr {
+  display: inline-block;
+  font-size: 120px;
+  font-family: AvenirNext-DemiBold, AvenirNext;
+  font-weight: 600;
+  color: #333333;
+}
+.weather .today .todaydate {
+  display: flex;
+  flex-wrap: wrap;
+}
+.weather .today .todaydate .du {
+  width: 100%;
+  margin-left: 20px;
+  margin-top: 20px;
+  font-size: 48px;
+  font-family: AvenirNext-Medium, AvenirNext;
+  font-weight: 500;
+  color: #333333;
+}
+.weather .today .todaydate .sun {
+  margin-left: 35px;
+  font-size: 36px;
+  font-weight: 500;
+  color: #333333;
+}
+.weather .today .todaydate .date {
+  margin-top: 8px;
+  margin-left: 22px;
+  font-size: 28px;
+  font-weight: 500;
+  color: #333333;
+}
+.weather .today .todaydate .temparea {
+  margin-top: 8px;
+  margin-left: 12px;
+  font-size: 28px;
+  font-weight: 500;
+  color: #333333;
+  line-height: 40px;
+}
+.weather .futuretitle {
+  width: 526px;
+  height: 60px;
+  background: #F0F1F2;
+  border-radius: 30px;
+  margin: 30px 0 16px 88px;
+  text-align: center;
+  font-size: 26px;
+  font-weight: 600;
+  color: #6C6D71;
+  line-height: 60px;
+}
+.weather .futurediv {
+  padding: 40px 54px 0 40px;
+  display: flex;
+  position: relative;
+}
+.weather .futurediv .data {
+  font-size: 26px;
+  font-weight: 500;
+  color: #333333;
+  margin-right: 136px;
+}
+.weather .futurediv .wea {
+  font-size: 26px;
+  font-weight: 500;
+  color: #333333;
+}
+.weather .futurediv .weabefore {
+  content: '';
+  display: inline-block;
+  width: 36px;
+  height: 36px;
+  margin-right: 20px;
+  background-size: 100% auto;
+}
+.weather .futurediv .temp {
+  font-size: 26px;
+  font-weight: 500;
+  color: #333333;
+  position: absolute;
+  top: 40px;
+  right: 54px;
+}
+.qing {
+  background: url(assets/img/weather/qing.png) no-repeat;
+}
+.duoyun {
+  background: url(assets/img/weather/duoyun.png) no-repeat;
+}
+.yin {
+  background: url(assets/img/weather/yin.png) no-repeat;
+}
+.yu {
+  background: url(assets/img/weather/yu.png) no-repeat;
+}
+.leizhenyu {
+  background: url(assets/img/weather/leizhenyu.png) no-repeat;
+}
+.xue {
+  background: url(assets/img/weather/xue.png) no-repeat;
+}
+.wu {
+  background: url(assets/img/weather/wu.png) no-repeat;
+}
+.shachenbao {
+  background: url(assets/img/weather/shachenbao.png) no-repeat;
+}

+ 20 - 0
app.js

@@ -0,0 +1,20 @@
+import { Component } from 'react'
+import './app.less'
+import 'taro-ui/dist/style/index.scss'
+class App extends Component {
+
+  componentDidMount() { }
+
+  componentDidShow() { }
+
+  componentDidHide() { }
+
+  componentDidCatchError() { }
+
+  // this.props.children 是将要会渲染的页面
+  render() {
+    return this.props.children
+  }
+}
+
+export default App

+ 439 - 0
app.less

@@ -0,0 +1,439 @@
+// @import '~taro-ui/dist/style/index.less';
+
+view {
+  box-sizing: border-box;
+}
+
+.tab {
+  display: flex;
+  flex: 1;
+  background-color: #FFFFFF;
+  position: relative;
+  transform: all 1.1s ease;
+
+  .tablist {
+    width: 50%;
+    height: 84px;
+    font-size: 34px;
+    font-family: PingFangSC-Semibold, PingFang SC;
+    font-weight: 400;
+    color: #E03326;
+    line-height: 84px;
+    text-align: center;
+  }
+
+  .tablistfan {
+    width: 50%;
+    height: 84px;
+    font-size: 34px;
+    font-family: PingFangSC-Semibold, PingFang SC;
+    font-weight: 400;
+    color: #333333;
+    line-height: 84px;
+    text-align: center;
+  }
+
+  .tabhua1 {
+    width: 136px;
+    height: 4px;
+    position: absolute;
+    top: 80px;
+    left: 118px;
+    background-color: #E03326;
+  }
+
+  .tabhua2 {
+    width: 136px;
+    height: 4px;
+    position: absolute;
+    top: 80px;
+    left: 500px;
+    background-color: #E03326;
+  }
+}
+
+.recall {
+  background-color: #FFF4EF;
+  height: 72px;
+  padding-top: 20px;
+
+  View {
+    height: 32px;
+    font-size: 28px;
+    font-family: PingFangSC-Regular, PingFang SC;
+    font-weight: 400;
+    color: #111111;
+    display: flex;
+
+    &::before {
+      content: '';
+      display: inline-block;
+      height: 32px;
+      width: 32px;
+      margin-left: 24px;
+      margin-right: 32px;
+      background: url(assets/img/recall.png) no-repeat;
+      background-size: 100% auto;
+    }
+  }
+}
+
+.promessage {
+  width: 100%;
+  border-radius: 16px;
+  margin-top: 24px;
+  background-color: #FFFFFF;
+
+
+  .messtitle {
+    margin-left: 24px;
+    display: inline-block;
+    width: 156px;
+    padding-top: 24px;
+    font-size: 36px;
+    font-weight: 600;
+    color: #333333;
+  }
+
+  .small1 {
+    display: inline-block;
+    margin-left: 8px;
+    font-size: 26px;
+    font-weight: 400;
+    color: #999999;
+  }
+
+  .small2 {
+    display: inline-block;
+    font-size: 26px;
+    font-weight: 400;
+    color: #F24724;
+  }
+
+  .messdiv {
+    height: 95px;
+    border-bottom: solid 1px #ececec;
+    padding-left: 0;
+    position: relative;
+
+    .mess1 {
+      padding-left: 24px;
+      padding-top: 28px;
+      font-size: 30px;
+      font-weight: 400;
+      color: #333333;
+    }
+
+    .mess2 {
+
+      font-size: 30px;
+      font-weight: 400;
+      color: #999999;
+      position: absolute;
+      top: 28px;
+      right: 22px;
+    }
+
+    .iconpic {
+      width: 112px;
+      height: 96px;
+      position: absolute;
+      top: 0px;
+      right: 22px;
+      background: url(./assets/img/iconlogo.png) no-repeat;
+      background-size: 100% auto;
+    }
+
+    .icon2 {
+      width: 50px;
+      height: 50px;
+      position: absolute;
+      top: 20px;
+      right: 20px;
+      background: url(assets/img/right.png) no-repeat;
+      background-size: 100% auto;
+    }
+  }
+}
+
+.videodiv {
+  border-radius: 16px;
+  background-color: #FFFFFF;
+  margin-top: 28px;
+  padding: 28px 24px 32px 24px;
+
+  .title {
+    font-size: 36px;
+    font-weight: 600;
+    color: #333333;
+  }
+
+  .video {
+    height: 368px;
+    background-color: #333333;
+    margin-top: 24px;
+  }
+}
+
+.but {
+  height: 98px;
+  width: 702px;
+  text-align: center;
+  line-height: 98px;
+  background: #E03326;
+  border-radius: 12px;
+  margin: 40px 24px 432px 24px;
+  font-size: 36px;
+  font-weight: 400;
+  color: #FFFFFF;
+}
+
+.advicetitle {
+  font-size: 36px;
+  font-weight: 500;
+  color: #333333;
+  padding: 24px 0 32px 20px;
+}
+
+.thingdiv {
+  width: 343px;
+  background: #FFFFFF;
+  border-radius: 16px;
+  display: inline-block;
+  margin-bottom: 24px;
+
+  .pic {
+    height: 240px;
+    background-color: #ececec;
+    border-radius: 16px 16px 0 0;
+  }
+
+  .title {
+    margin: 16px 24px 14px 24px;
+    width: 295px;
+    height: 84px;
+    font-size: 30px;
+    font-weight: 500;
+    color: #333333;
+    text-overflow: -o-ellipsis-lastline;
+    overflow: hidden;
+    text-overflow: ellipsis;
+    display: -webkit-box;
+    -webkit-line-clamp: 2;
+    -webkit-box-orient: vertical;
+  }
+
+  .has {
+    font-size: 24px;
+    font-weight: 400;
+    color: #999999;
+    display: inline-block;
+
+    &::before {
+      content: '';
+      display: inline-block;
+      width: 22.32px;
+      height: 23.26px;
+      background: url(./assets/img/renzheng.png) no-repeat;
+      background-size: 100% auto;
+      margin-left: 24px;
+      margin-right: 10px;
+    }
+
+    &::after {
+      content: '';
+      display: inline-block;
+      width: 1px;
+      height: 24px;
+      background: #E5E5E5;
+      margin-left: 12px;
+      margin-right: 12px;
+    }
+  }
+
+  .address {
+    display: inline-block;
+    font-size: 24px;
+    font-weight: 400;
+    color: #999999;
+  }
+
+  .price {
+    font-size: 30px;
+    font-weight: 600;
+    color: #F65200;
+    margin: 28px 0 22px 24px;
+  }
+}
+
+.weather {
+  margin-top: 24px;
+  padding: 24px 0 32px 0;
+  background-color: #FFF;
+  border-radius: 16px;
+
+  .dev {
+    display: flex;
+
+    .title {
+      display: inline-block;
+      font-size: 36px;
+      font-weight: 600;
+      color: #0B0D0E;
+      margin: 0 400px 28px 22px;
+    }
+
+    .address {
+      display: flex;
+      font-size: 24px;
+      font-weight: 500;
+      color: #999999;
+
+      &::before {
+        content: '';
+        display: inline-block;
+        width: 32px;
+        height: 32px;
+        background: url(./assets/img/address.png) no-repeat;
+        background-size: 100% auto;
+      }
+    }
+  }
+
+  .today {
+    padding: 40px 0 38px 40px;
+    border-top: 1px solid #EEEEEE;
+    border-bottom: 1px solid #EEEEEE;
+    display: flex;
+    font-family: PingFangSC-Medium, PingFang SC;
+
+    .temp_curr {
+      display: inline-block;
+      font-size: 120px;
+      font-family: AvenirNext-DemiBold, AvenirNext;
+      font-weight: 600;
+      color: #333333;
+    }
+
+    .todaydate {
+      display: flex;
+      flex-wrap: wrap;
+
+      .du {
+        width: 100%;
+        margin-left: 20px;
+        margin-top: 20px;
+        font-size: 48px;
+        font-family: AvenirNext-Medium, AvenirNext;
+        font-weight: 500;
+        color: #333333;
+      }
+
+      .sun {
+        margin-left: 35px;
+        font-size: 36px;
+        font-weight: 500;
+        color: #333333;
+      }
+
+      .date {
+        margin-top: 8px;
+        margin-left: 22px;
+        font-size: 28px;
+        font-weight: 500;
+        color: #333333;
+      }
+
+      .temparea {
+        margin-top: 8px;
+        margin-left: 12px;
+        font-size: 28px;
+        font-weight: 500;
+        color: #333333;
+        line-height: 40px;
+      }
+    }
+  }
+
+  .futuretitle {
+    width: 526px;
+    height: 60px;
+    background: #F0F1F2;
+    border-radius: 30px;
+    margin: 30px 0 16px 88px;
+    text-align: center;
+    font-size: 26px;
+    font-weight: 600;
+    color: #6C6D71;
+    line-height: 60px;
+  }
+
+  .futurediv {
+    padding: 40px 54px 0 40px;
+    display: flex;
+    position: relative;
+
+    .data {
+      font-size: 26px;
+      font-weight: 500;
+      color: #333333;
+      margin-right: 136px;
+    }
+
+    .wea {
+      font-size: 26px;
+      font-weight: 500;
+      color: #333333;
+    }
+
+    .weabefore {
+      content: '';
+      display: inline-block;
+      width: 36px;
+      height: 36px;
+      margin-right: 20px;
+      background-size: 100% auto;
+    }
+
+    .temp {
+      font-size: 26px;
+      font-weight: 500;
+      color: #333333;
+      position: absolute;
+      top: 40px;
+      right: 54px;
+    }
+  }
+}
+
+.qing {
+  background: url(./assets/img/weather/qing.png) no-repeat;
+}
+
+.duoyun {
+  background: url(./assets/img/weather/duoyun.png) no-repeat;
+}
+
+.yin {
+  background: url(./assets/img/weather/yin.png) no-repeat;
+}
+
+.yu {
+  background: url(./assets/img/weather/yu.png) no-repeat;
+}
+
+.leizhenyu {
+  background: url(./assets/img/weather/leizhenyu.png) no-repeat;
+}
+
+.xue {
+  background: url(./assets/img/weather/xue.png) no-repeat;
+}
+
+.wu {
+  background: url(./assets/img/weather/wu.png) no-repeat;
+}
+
+.shachenbao {
+  background: url(./assets/img/weather/shachenbao.png) no-repeat;
+}

+ 19 - 0
index.html

@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
+  <meta content="width=device-width,initial-scale=1,user-scalable=no" name="viewport">
+  <meta name="apple-mobile-web-app-capable" content="yes">
+  <meta name="apple-touch-fullscreen" content="yes">
+  <meta name="format-detection" content="telephone=no,address=no">
+  <meta name="apple-mobile-web-app-status-bar-style" content="white">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" >
+  <title></title>
+  <script>
+    !function(n){function e(){var e=n.document.documentElement,t=e.getBoundingClientRect().width;e.style.fontSize=t>=640?"40px":t<=320?"20px":t/320*20+"px"}n.addEventListener("resize",(function(){e()})),e()}(window);
+  </script>
+</head>
+<body>
+  <div id="app"></div>
+</body>
+</html>