Explorar o código

商家端静态页面

lmj %!s(int64=2) %!d(string=hai) anos
pai
achega
c3f308da59

+ 5 - 0
app.json

@@ -7,11 +7,16 @@
     "pages/shop/shop",
     "pages/message/message",
     "pages/total/total",
+<<<<<<< HEAD
     "pages/detail arrived/detail arrived",
     "pages/detail refund/detail refund",
     "pages/detail order/detail order",
     "pages/delails/details",
     "pages/management/management"
+=======
+    "pages/addProduct/addProduct",
+    "pages/revise/revise"
+>>>>>>> 697a3afe5b100889fee65ba54e01e026871db79d
   ],
   "window": {
     "backgroundTextStyle": "light",

+ 66 - 0
pages/addProduct/addProduct.js

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

+ 3 - 0
pages/addProduct/addProduct.json

@@ -0,0 +1,3 @@
+{
+  "usingComponents": {}
+}

+ 28 - 0
pages/addProduct/addProduct.wxml

@@ -0,0 +1,28 @@
+<!--pages/addProduct/addProduct.wxml-->
+<view class="product">
+  <text class="picture"> 商品图片</text>
+  <van-uploader file-list="{{ fileList }}" bind:after-read="afterRead" style="padding-left: 230px;" />
+</view>
+
+<view class="second-1">
+  <text class="second">商品名称</text>
+</view>
+<view class="second-1-2">
+  <view>
+    <input class="weui-input" maxlength="10" placeholder="请输入商品名称(1-10个字符)" />
+  </view>
+</view>
+
+<view class="second-1">
+  <text class="second-3">商品价格</text>
+  <input class="weui-input weui-input-1" maxlength="10" placeholder="输入商品价格" />
+</view>
+
+<view class="product">
+  <text>商品内容</text>
+  <textarea class="area" name="" id="" cols="30" rows="10" maxlength="15"></textarea>
+</view>
+<view class="but">
+  <button class="but-1" style="width:40vw">保存</button>
+  <button class="but-2" style="width:40vw" >提交</button>
+</view>

+ 86 - 0
pages/addProduct/addProduct.wxss

@@ -0,0 +1,86 @@
+/* pages/addProduct/addProduct.wxss */
+page {
+  background-color: rgba(223, 218, 218, 0.774);
+}
+
+.product {
+  background-color: white;
+  margin-top: 5%;
+  width: 100%;
+  height: 120px;
+}
+
+.picture {
+  padding-left: 13px;
+  font-size: 14px;
+  font-weight: 500;
+  color: rgba(34, 33, 32, 0.562);
+}
+
+.second {
+  font-size: 14px;
+  font-weight: 500;
+  color: rgba(34, 33, 32, 0.562);
+  border-inline: 1px;
+}
+
+.second-1 {
+  background-color: white;
+  margin-top: 5%;
+  width: 100%;
+  height: 45px;
+}
+
+.second-1-2 {
+  border-top: 1px solid black;
+  background-color: white;
+  width: 100%;
+  height: 45px;
+}
+
+.second-3 {
+  font-size: 14px;
+  font-weight: 500;
+  color: rgba(34, 33, 32, 0.562);
+  border-inline: 1px;
+  line-height: 45px;
+}
+
+.weui-input {
+  font-size: 14px;
+}
+
+.weui-input-1 {
+  float: right;
+  margin-top: 10px;
+}
+
+.zhx {
+  text-align: center;
+  line-height: 45px;
+}
+
+.area {
+  margin: 3% auto;
+  border: 1px solid rgb(211, 196, 196);
+  border-radius: 5px;
+  width: 75%;
+  height: 50%;
+}
+
+.but {
+  margin-top: 15%;
+  display: flex;
+}
+
+.but-1 {
+  color: aliceblue;
+  background-color: rgb(163, 157, 157);
+  border-radius: 30px;
+}
+
+.but-2 {
+  color: aliceblue;
+  background-color: darkorange;
+  border-radius: 30px;
+}

+ 66 - 0
pages/revise/revise.js

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

+ 3 - 0
pages/revise/revise.json

@@ -0,0 +1,3 @@
+{
+  "usingComponents": {}
+}

+ 28 - 0
pages/revise/revise.wxml

@@ -0,0 +1,28 @@
+<!--pages/revise/revise.wxml-->
+<view class="product">
+  <text class="picture"> 商品图片</text>
+  <van-uploader file-list="{{ fileList }}" bind:after-read="afterRead" style="padding-left: 230px;" />
+</view>
+
+<view class="second-1">
+  <text class="second">商品名称</text>
+</view>
+<view class="second-1-2">
+  <view>
+    <input class="weui-input" maxlength="10" placeholder="请输入商品名称(1-10个字符)" />
+  </view>
+</view>
+
+<view class="second-1">
+  <text class="second-3">商品价格</text>
+  <input class="weui-input weui-input-1" maxlength="10" placeholder="输入商品价格" />
+</view>
+
+<view class="product">
+  <text>商品内容</text>
+  <textarea class="area" name="" id="" cols="30" rows="10" maxlength="15"></textarea>
+</view>
+<view class="but">
+  <button class="but-1" style="width:40vw">保存</button>
+  <button class="but-2" style="width:40vw" >提交</button>
+</view>

+ 86 - 0
pages/revise/revise.wxss

@@ -0,0 +1,86 @@
+/* pages/revise/revise.wxss */
+page{
+  background-color: rgba(223, 218, 218, 0.774);
+}
+
+.product {
+  background-color: white;
+  margin-top: 5%;
+  width: 100%;
+  height: 120px;
+}
+
+.picture {
+  padding-left: 13px;
+  font-size: 14px;
+  font-weight: 500;
+  color: rgba(34, 33, 32, 0.562);
+}
+
+.second {
+  font-size: 14px;
+  font-weight: 500;
+  color: rgba(34, 33, 32, 0.562);
+  border-inline: 1px;
+}
+
+.second-1 {
+  background-color: white;
+  margin-top: 5%;
+  width: 100%;
+  height: 45px;
+}
+
+.second-1-2 {
+  border-top: 1px solid black;
+  background-color: white;
+  width: 100%;
+  height: 45px;
+}
+
+.second-3 {
+  font-size: 14px;
+  font-weight: 500;
+  color: rgba(34, 33, 32, 0.562);
+  border-inline: 1px;
+  line-height: 45px;
+}
+
+.weui-input {
+  font-size: 14px;
+}
+
+.weui-input-1 {
+  float: right;
+  margin-top: 10px;
+}
+
+.zhx {
+  text-align: center;
+  line-height: 45px;
+}
+
+.area {
+  margin: 3% auto;
+  border: 1px solid rgb(211, 196, 196);
+  border-radius: 5px;
+  width: 75%;
+  height: 50%;
+}
+
+.but {
+  margin-top: 15%;
+  display: flex;
+}
+
+.but-1 {
+  color: aliceblue;
+  background-color: rgb(163, 157, 157);
+  border-radius: 30px;
+}
+
+.but-2 {
+  color: aliceblue;
+  background-color: darkorange;
+  border-radius: 30px;
+}

+ 15 - 0
project.private.config.json

@@ -36,20 +36,31 @@
           "scene": null
         },
         {
+<<<<<<< HEAD
           "name": "订单详细",
           "pathName": "pages/detail order/detail order",
+=======
+          "name": "",
+          "pathName": "pages/addProduct/addProduct",
+>>>>>>> 697a3afe5b100889fee65ba54e01e026871db79d
           "query": "",
           "launchMode": "default",
           "scene": null
         },
         {
+<<<<<<< HEAD
           "name": "详细",
           "pathName": "pages/delails/details",
+=======
+          "name": "",
+          "pathName": "pages/revise",
+>>>>>>> 697a3afe5b100889fee65ba54e01e026871db79d
           "query": "",
           "launchMode": "default",
           "scene": null
         },
         {
+<<<<<<< HEAD
           "name": "订单送达",
           "pathName": "pages/detail arrived/detail arrived",
           "query": "",
@@ -66,6 +77,10 @@
         {
           "name": "商品管理",
           "pathName": "pages/management/management",
+=======
+          "name": "",
+          "pathName": "pages/revise/revise",
+>>>>>>> 697a3afe5b100889fee65ba54e01e026871db79d
           "query": "",
           "launchMode": "default",
           "scene": null