LiShiwei 2 жил өмнө
parent
commit
54ae4ecff8

+ 2 - 1
app.json

@@ -2,7 +2,8 @@
   "pages": [
     "pages/index/index",
     "pages/logs/logs",
-    "pages/billing_Statistics/index"
+    "pages/billing_Statistics/index",
+    "pages/store_Management/index"
   ],
   "window": {
     "backgroundTextStyle": "light",

+ 2 - 1
pages/billing_Statistics/index.json

@@ -6,6 +6,7 @@
     "van-datetime-picker": "@vant/weapp/datetime-picker",
     "van-popup": "@vant/weapp/popup",
     "van-calendar":"@vant/weapp/calendar",
-    "van-cell":"@vant/weapp/cell" 
+    "van-cell":"@vant/weapp/cell",
+    "van-button": "@vant/weapp/button"
   }
 }

+ 66 - 0
pages/store_Management/index.js

@@ -0,0 +1,66 @@
+// pages/store_Management/index.js
+Page({
+
+  /**
+   * 页面的初始数据
+   */
+  data: {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad(options) {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload() {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh() {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom() {
+
+  },
+
+  /**
+   * 用户点击右上角分享
+   */
+  onShareAppMessage() {
+
+  }
+})

+ 13 - 0
pages/store_Management/index.json

@@ -0,0 +1,13 @@
+{
+  "navigationBarTitleText": "店铺管理",
+  "usingComponents": {
+    "van-row": "@vant/weapp/row",
+    "van-icon": "@vant/weapp/icon",
+    "van-col": "@vant/weapp/col",
+    "van-datetime-picker": "@vant/weapp/datetime-picker",
+    "van-popup": "@vant/weapp/popup",
+    "van-calendar": "@vant/weapp/calendar",
+    "van-cell": "@vant/weapp/cell",
+    "van-nav-bar": "@vant/weapp/nav-bar"
+  }
+}

+ 39 - 0
pages/store_Management/index.wxml

@@ -0,0 +1,39 @@
+<view class="storeManage_container">
+    <view class="store_pic">
+        <text class="store_text">店铺图片</text>
+        <view class="store_upload">
+            <image src="{{imagePath}}"></image>
+            <text class="store_plus" bindtap="handleChooseAlbum">+</text>
+        </view>
+    </view>
+    <view class="store_name">
+        <view class="store_name_text">店铺名称</view>
+        <input type="text" placeholder="请输入店铺名称" />
+    </view>
+    <view class="dispatch_fee">
+        <text>配送费(¥)</text>
+        <span>5.00</span>
+    </view>
+    <view class="dispatch_time">
+        <text>配送时长</text>
+        <input type="text" placeholder="请输入时长" />
+    </view>
+    <view class="package_fee">
+        <text>包装费(¥)</text>
+        <input type="text" placeholder="请输入金额" />
+    </view>
+    <view class="open_time">
+        <text>营业时间</text>
+        <input type="text" placeholder="请输入营业时间" />
+    </view>
+    <view class="custom_service">
+        <view class="custom_service_text">客服电话</view>
+        <input type="text" placeholder="请输入客服电话" />
+    </view>
+    <view class="store_notify">
+        <text>公告</text>
+        <textarea name="" id="" cols="30" rows="10" placeholder="请提供更多参考信息帮助我们核实,如周边标志建筑、近邻商户等。">
+        </textarea>
+    </view>
+    <button>提交</button>
+</view>

+ 177 - 0
pages/store_Management/index.wxss

@@ -0,0 +1,177 @@
+page {
+    background-color: #EFF0F5;
+}
+
+.storeManage_container view {
+    background-color: white;
+    margin-top: 30rpx;
+}
+
+.storeManage_container .store_pic {
+    width: 100%;
+    height: 200rpx;
+    position: relative;
+}
+
+.store_pic {
+    position: relative;
+}
+
+.store_pic .store_text {
+    color: black;
+    position: absolute;
+    top: 14%;
+    left: 8%;
+}
+
+.store_upload {
+    width: 200rpx;
+    position: absolute;
+    height: 160rpx;
+    border: 1px dashed rgb(143, 142, 142);
+    right: 4%;
+    top: -5%;
+}
+
+.store_upload image {
+    width: 100%;
+    height: 100%;
+    /* background-color: blue; */
+}
+
+.store_upload .store_plus {
+    position: absolute;
+    font-size: 40rpx;
+    top: 30%;
+    left: 45%;
+}
+
+/* Ming */
+.store_name {
+    width: 100%;
+    height: 180rpx;
+    /* background-color: burlywood !important; */
+    text-align: left;
+}
+
+.store_name .store_name_text {
+    width: 100%;
+    border-bottom: 1px solid rgb(146, 146, 146);
+    padding: 40rpx;
+}
+
+.store_name input {
+    padding: 10rpx;
+    padding-left: 40rpx;
+}
+
+/* 配送 */
+.dispatch_fee {
+    display: flex;
+    align-items: center;
+    justify-content: space-between;
+}
+
+.dispatch_fee text {
+    padding: 30rpx;
+    padding-left: 40rpx;
+}
+
+.dispatch_fee span {
+    padding: 30rpx;
+    padding-right: 40rpx;
+    color: red;
+}
+
+/* 配送时长 */
+.dispatch_time {
+    display: flex;
+    align-items: center;
+    justify-content: space-between;
+}
+
+.dispatch_time text {
+    padding: 30rpx;
+    padding-left: 40rpx;
+}
+
+.dispatch_time input {
+    padding: 30rpx;
+    color: red;
+    padding-right: 0px;
+}
+
+/* 包装费 */
+.package_fee {
+    display: flex;
+    align-items: center;
+    justify-content: space-between;
+}
+
+.package_fee text {
+    padding: 30rpx;
+    padding-left: 40rpx;
+}
+
+.package_fee input {
+    padding: 30rpx;
+    color: red;
+    padding-right: 0px;
+}
+
+/* 营业时间 */
+.open_time {
+    display: flex;
+    align-items: center;
+    justify-content: space-between;
+}
+
+.open_time text {
+    padding: 30rpx;
+    padding-left: 40rpx;
+}
+
+.open_time input {
+    padding: 30rpx;
+    color: red;
+    padding-right: 0px;
+}
+
+/* 客服电话 */
+.custom_service .custom_service_text {
+    width: 100%;
+    border-bottom: 1px solid rgb(146, 146, 146);
+    padding: 40rpx;
+}
+
+.custom_service input {
+    padding: 10rpx;
+    padding-left: 40rpx;
+}
+
+/* 公告 */
+.store_notify {
+    width: 100%;
+    overflow: hidden;
+   
+}
+
+.store_notify text {
+    padding-top: 200rpx;
+    padding-left: 50rpx;
+    font-size: 40rpx;
+
+}
+
+.store_notify textarea {
+    margin-left: 80rpx;
+    margin-top: 40rpx;
+    border: 1px solid rgb(180, 180, 180);
+    border-radius: 5%;
+    text-indent: 1em;
+}
+button{
+    margin-top: 40rpx;
+    background-color: #55B3F4;
+    width: 600rpx;
+}

+ 14 - 1
project.private.config.json

@@ -22,7 +22,7 @@
           }
         },
         {
-          "name": "",
+          "name": "账单统计",
           "pathName": "pages/billing_Statistics/index",
           "query": "",
           "launchMode": "default",
@@ -33,6 +33,19 @@
               "pages/billing_Statistics/index"
             ]
           }
+        },
+        {
+          "name": "店铺管理",
+          "pathName": "pages/store_Management/index",
+          "query": "",
+          "launchMode": "default",
+          "scene": null,
+          "partialCompile": {
+            "enabled": false,
+            "pages": [
+              "pages/store_Management/index"
+            ]
+          }
         }
       ]
     }