关祥喆 %!s(int64=2) %!d(string=hai) anos
pai
achega
697a3afe5b

+ 3 - 1
app.json

@@ -6,7 +6,9 @@
     "pages/me/me",
     "pages/shop/shop",
     "pages/message/message",
-    "pages/total/total"
+    "pages/total/total",
+    "pages/addProduct/addProduct",
+    "pages/revise/revise"
   ],
   "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;
+}

+ 21 - 0
project.private.config.json

@@ -34,6 +34,27 @@
           "query": "",
           "launchMode": "default",
           "scene": null
+        },
+        {
+          "name": "",
+          "pathName": "pages/addProduct/addProduct",
+          "query": "",
+          "launchMode": "default",
+          "scene": null
+        },
+        {
+          "name": "",
+          "pathName": "pages/revise",
+          "query": "",
+          "launchMode": "default",
+          "scene": null
+        },
+        {
+          "name": "",
+          "pathName": "pages/revise/revise",
+          "query": "",
+          "launchMode": "default",
+          "scene": null
         }
       ]
     }