3 Achegas 2a497b8143 ... 28cc13e564

Autor SHA1 Mensaxe Data
  liuxinyang 28cc13e564 zzh-codr2 hai 1 ano
  liuxinyang 36e2d56c7c zzh-code1 hai 1 ano
  liuxinyang 6c0e4ff6d1 zzh-code hai 1 ano

+ 6 - 1
app.json

@@ -6,6 +6,11 @@
     "pages/serch/serch",
     "pages/logs/logs",
     "pages/my/my",
+    "pages/Integral/my-Integral",
+    "pages/address/address",
+    "pages/change/change",
+    "pages/new/new",
+    "pages/success/success",
     "pages/Integral/Integral"
   ],
   "window": {
@@ -51,4 +56,4 @@
   },
   "sitemapLocation": "sitemap.json",
   "lazyCodeLoading": "requiredComponents"
-}
+}

BIN=BIN
images/a2760c548a496d0a9d46023d762d9475.jpeg


BIN=BIN
images/单选-选中 (1).png


BIN=BIN
images/单选-选中.png


+ 66 - 0
pages/Integral/my-Integral.js

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

+ 2 - 0
pages/Integral/my-Integral.wxml

@@ -0,0 +1,2 @@
+<!--pages/Integral/my-Integral.wxml-->
+<text>pages/Integral/my-Integral.wxml</text>

+ 90 - 0
pages/address/address.js

@@ -0,0 +1,90 @@
+// pages/address/address.js 
+Page({ 
+ 
+  /** 
+   * 页面的初始数据 
+   */ 
+  data: { 
+    name:'', 
+    phone:'', 
+    radio: true, 
+    checked: true, 
+    icon: { 
+      normal: '/images/单选-选中.png', 
+      active: '/../../images/单选-选中 (1).png', 
+    }, 
+  }, 
+  onChange(event) { 
+    this.setData({ 
+      radio: event.detail, 
+    }); 
+  }, 
+  // feild输入框 
+  onChange(event) { 
+    // event.detail 为当前输入的值 
+    console.log(event.detail); 
+    this.setData({ 
+      radio: event.detail, 
+    }); 
+}, 
+ 
+  onChange2({ detail }) { 
+  // 需要手动对 checked 状态进行更新 
+  this.setData({ checked: detail }); 
+}, 
+  /** 
+   * 生命周期函数--监听页面加载 
+   */ 
+  onLoad(options) { 
+ 
+  }, 
+ 
+  /** 
+   * 生命周期函数--监听页面初次渲染完成 
+   */ 
+  onReady() { 
+ 
+  }, 
+ 
+  /** 
+   * 生命周期函数--监听页面显示 
+   */ 
+  onShow() { 
+ 
+  }, 
+ 
+  /** 
+   * 生命周期函数--监听页面隐藏 
+   */ 
+  onHide() { 
+ 
+  }, 
+ 
+  /** 
+   * 生命周期函数--监听页面卸载 
+   */ 
+  onUnload() { 
+ 
+  }, 
+ 
+  /** 
+   * 页面相关事件处理函数--监听用户下拉动作 
+   */ 
+  onPullDownRefresh() { 
+ 
+  }, 
+ 
+  /** 
+   * 页面上拉触底事件的处理函数 
+   */ 
+  onReachBottom() { 
+ 
+  }, 
+ 
+  /** 
+   * 用户点击右上角分享 
+   */ 
+  onShareAppMessage() { 
+ 
+  } 
+})

+ 13 - 0
pages/address/address.json

@@ -0,0 +1,13 @@
+{ 
+  "navigationBarTitleText": "新增地址", 
+  "usingComponents": { 
+    "van-field":"@vant/weapp/field/index", 
+    "van-popup":"@vant/weapp/popup/index", 
+    "van-picker":"@vant/weapp/picker/index", 
+    "van-datetime-picker":"@vant/weapp/datetime-picker/index", 
+    "van-radio":"@vant/weapp/radio/index", 
+    "van-radio-group":"@vant/weapp/radio-group/index", 
+    "van-switch":"@vant/weapp/switch/index", 
+    "van-button":"@vant/weapp/button/index" 
+  } 
+}

+ 60 - 0
pages/address/address.wxml

@@ -0,0 +1,60 @@
+<!--pages/address/address.wxml--> 
+<view class="all"> 
+<!-- 内容 --> 
+  <view class="content"> 
+  <!-- 姓名 --> 
+    <view class="name"> 
+    <van-field 
+    value="{{ name }}" 
+    label="姓名" 
+    placeholder="请填写姓名" 
+    /> 
+  </view> 
+  <!-- 手机号 --> 
+  <view class="name"> 
+    <van-field 
+    value="{{ phone }}" 
+    label="手机号" 
+    placeholder="请填写手机号" 
+    /> 
+  </view> 
+  <!-- 性别 --> 
+  <view class="gender"> 
+   <view style="float: left; margin: 0.8rem 1rem; color: rgb(117, 117, 117);">性别</view> 
+    <van-radio-group value="{{ radio }}" bind:change="onChange" direction="horizontal"> 
+  <van-radio use-icon-slot value="{{ radio }}" name="1"> 
+    <view style="float: left;  margin-top: 0.5rem;">男</view> 
+    <image slot="icon" src="{{ radio === '1' ? icon.active : icon.normal }}"  style="width: 1rem;height: 1rem; margin-top: 1rem; margin-left: 3rem;"/> 
+  </van-radio> 
+  <van-radio use-icon-slot value="{{ radio }}" name="2" > 
+    <view style="float: left; margin-top: 0.5rem;">女</view> 
+    <image slot="icon" src="{{ radio === '2' ? icon.active : icon.normal }}" style="width: 1rem;height: 1rem; margin-top: 1rem;" /> 
+  </van-radio> 
+</van-radio-group> 
+  </view> 
+  <!-- 选择地址 --> 
+  <view class="name"> 
+    <van-cell title="收货地址" is-link value="请点击选择地址" center="true"/> 
+  </view> 
+  <!-- 门牌号 --> 
+  <view class="name"> 
+    <van-field 
+    value="{{ housu }}" 
+    label="姓名" 
+    placeholder="例:1号公寓2门312" 
+    /> 
+  </view> 
+  <!-- 默认 --> 
+  <view class="gender"> 
+    <view style="float: left; margin: 0.8rem 1rem; color: rgb(117, 117, 117);">设置默认</view> 
+    <van-switch checked="{{ checked }}"  
+    bind:change="onChange2" 
+    active-color="#07c160" 
+    inactive-color="#C0C0C0" style="position:relative;left: 13rem; top: 0.7rem;"size="20px"/> 
+  </view> 
+</view> 
+  <!-- 按钮 --> 
+<view class="box"> 
+  <van-button round type="info" color="#FF7F00" block>提交</van-button> 
+</view> 
+</view>

+ 21 - 0
pages/address/address.wxss

@@ -0,0 +1,21 @@
+/* pages/address/address.wxss */ 
+page { 
+  background-color: rgb(242, 242, 242); 
+} 
+.content{ 
+margin-top: 0.5rem 
+} 
+.name{ 
+  margin-bottom: 0.1rem; 
+} 
+.gender{ 
+  height: 3rem; 
+  background: white; 
+  margin-bottom: 0.1rem; 
+} 
+.box{ 
+  margin-left: 1rem; 
+  margin-right: 1rem; 
+  position: relative; 
+  top: 15rem; 
+}

+ 98 - 0
pages/change/change.js

@@ -0,0 +1,98 @@
+// pages/address/address.js 
+Page({ 
+ 
+  /** 
+   * 页面的初始数据 
+   */ 
+  data: { 
+    name:'', 
+    phone:'', 
+    radio: true, 
+    checked: true, 
+    show: false, 
+    icon: { 
+      normal: '/images/单选-选中.png', 
+      active: '/images/单选-选中 (1).png', 
+    }, 
+  }, 
+  onChange(event) { 
+    this.setData({ 
+      radio: event.detail, 
+    }); 
+  }, 
+  // 遮罩层 
+  onClickShow() { 
+    this.setData({ show: true }); 
+  }, 
+ 
+  onClickHide() { 
+    this.setData({ show: false }); 
+  }, 
+  // feild输入框 
+  onChange(event) { 
+    // event.detail 为当前输入的值 
+    console.log(event.detail); 
+    this.setData({ 
+      radio: event.detail, 
+    }); 
+}, 
+  onChange2({ detail }) { 
+  // 需要手动对 checked 状态进行更新 
+  this.setData({ checked: detail }); 
+}, 
+  /** 
+   * 生命周期函数--监听页面加载 
+   */ 
+  onLoad(options) { 
+ 
+  }, 
+ 
+  /** 
+   * 生命周期函数--监听页面初次渲染完成 
+   */ 
+  onReady() { 
+ 
+  }, 
+ 
+  /** 
+   * 生命周期函数--监听页面显示 
+   */ 
+  onShow() { 
+ 
+  }, 
+ 
+  /** 
+   * 生命周期函数--监听页面隐藏 
+   */ 
+  onHide() { 
+ 
+  }, 
+ 
+  /** 
+   * 生命周期函数--监听页面卸载 
+   */ 
+  onUnload() { 
+ 
+  }, 
+ 
+  /** 
+   * 页面相关事件处理函数--监听用户下拉动作 
+   */ 
+  onPullDownRefresh() { 
+ 
+  }, 
+ 
+  /** 
+   * 页面上拉触底事件的处理函数 
+   */ 
+  onReachBottom() { 
+ 
+  }, 
+ 
+  /** 
+   * 用户点击右上角分享 
+   */ 
+  onShareAppMessage() { 
+ 
+  } 
+})

+ 14 - 0
pages/change/change.json

@@ -0,0 +1,14 @@
+{ 
+  "navigationBarTitleText": "修改地址", 
+  "usingComponents": { 
+    "van-field":"@vant/weapp/field/index", 
+    "van-popup":"@vant/weapp/popup/index", 
+    "van-picker":"@vant/weapp/picker/index", 
+    "van-datetime-picker":"@vant/weapp/datetime-picker/index", 
+    "van-radio":"@vant/weapp/radio/index", 
+    "van-radio-group":"@vant/weapp/radio-group/index", 
+    "van-switch":"@vant/weapp/switch/index", 
+    "van-button":"@vant/weapp/button/index", 
+    "van-overlay":"@vant/weapp/overlay/index" 
+  } 
+}

+ 66 - 0
pages/change/change.wxml

@@ -0,0 +1,66 @@
+<!--pages/address/address.wxml--> 
+<view class="all"> 
+<!-- 内容 --> 
+  <view class="content"> 
+  <!-- 姓名 --> 
+    <view class="name"> 
+    <van-field 
+    value="{{ name }}" 
+    label="姓名" 
+    placeholder="请填写姓名" 
+    /> 
+  </view> 
+  <!-- 手机号 --> 
+  <view class="name"> 
+    <van-field 
+    value="{{ phone }}" 
+    label="手机号" 
+    placeholder="请填写手机号" 
+    /> 
+  </view> 
+  <!-- 性别 --> 
+  <view class="gender"> 
+   <view style="float: left; margin: 0.8rem 1rem; color: rgb(117, 117, 117);">性别</view> 
+    <van-radio-group value="{{ radio }}" bind:change="onChange" direction="horizontal"> 
+  <van-radio use-icon-slot value="{{ radio }}" name="1"> 
+    <view style="float: left;  margin-top: 0.5rem;">男</view> 
+    <image slot="icon" src="{{ radio === '1' ? icon.active : icon.normal }}"  style="width: 1rem;height: 1rem; margin-top: 1rem; margin-left: 3rem;"/> 
+  </van-radio> 
+  <van-radio use-icon-slot value="{{ radio }}" name="2" > 
+    <view style="float: left; margin-top: 0.5rem;">女</view> 
+    <image slot="icon" src="{{ radio === '2' ? icon.active : icon.normal }}" style="width: 1rem;height: 1rem; margin-top: 1rem;" /> 
+  </van-radio> 
+</van-radio-group> 
+  </view> 
+  <!-- 选择地址 --> 
+  <view class="name"> 
+    <van-cell title="收货地址" is-link value="请点击选择地址" center="true" bind:click="onClickShow"/> 
+    <van-overlay show="{{ show }}" bind:click="onClickHide" z-index="100"> 
+    <view class="wrapper"> 
+    <view class="block" catch:tap="noop" /> 
+  </view> 
+</van-overlay> 
+  </view> 
+  <!-- 门牌号 --> 
+  <view class="name"> 
+    <van-field 
+    value="{{ housu }}" 
+    label="姓名" 
+    placeholder="例:1号公寓2门312" 
+    /> 
+  </view> 
+  <!-- 默认 --> 
+  <view class="gender"> 
+    <view style="float: left; margin: 0.8rem 1rem; color: rgb(117, 117, 117);">设置默认</view> 
+    <van-switch checked="{{ checked }}"  
+    bind:change="onChange2" 
+    active-color="#07c160" 
+    inactive-color="#C0C0C0" style="position:relative;left: 13rem; top: 0.7rem;"size="20px"/> 
+  </view> 
+</view> 
+  <!-- 按钮 --> 
+<view class="box"> 
+  <van-button round type="info" color="#C0C0C0" style="position: relative;left: 4rem;">删除</van-button> 
+  <van-button round type="info" color="#FF7F00" style="position: relative;left: 9rem;">提交</van-button> 
+</view> 
+</view>

+ 32 - 0
pages/change/change.wxss

@@ -0,0 +1,32 @@
+/* pages/address/address.wxss */ 
+page { 
+  background-color: rgb(242, 242, 242); 
+} 
+.content{ 
+margin-top: 0.5rem 
+} 
+.name{ 
+  margin-bottom: 0.1rem; 
+} 
+.gender{ 
+  height: 3rem; 
+  background: white; 
+  margin-bottom: 0.1rem; 
+} 
+.box{ 
+  margin-left: 1rem; 
+  margin-right: 1rem; 
+  position: relative; 
+  top: 15rem; 
+} 
+.wrapper { 
+  display: flex; 
+  align-items: center; 
+  justify-content: center; 
+  height: 100%; 
+} 
+.block { 
+  width: 100%; 
+  height: 35rem; 
+  background-color: #fff; 
+}

+ 69 - 0
pages/new/new.js

@@ -0,0 +1,69 @@
+import Toast from '@vant/weapp/toast/toast'; 
+// pages/register/index.js 
+Page({ 
+ 
+  /** 
+   * 页面的初始数据 
+   */ 
+  data: { 
+    username:'', 
+    phone:'', 
+    id:'', 
+    school:'', 
+    showUnit: false, //单位弹层控制 
+    date: '请选择日期', 
+    array: ['学生', '教师'], 
+    array2: ['计算机科学与技术', '软件工程', '物联网工程', '艺术'], 
+    array3: ['清汤', '酸甜', '微麻微辣', '重辣'], 
+    index: 0, 
+    index2:0, 
+    index3:0, 
+  },  
+  // feild输入框 
+   onChange(event) { 
+    // event.detail 为当前输入的值 
+    console.log(event.detail); 
+  }, 
+  // 获取事件 
+  bindPickerChange: function (e) { 
+    console.log('picker发送选择改变,携带值为', e.detail.value) 
+    this.setData({ 
+      index: e.detail.value 
+    }) 
+  }, 
+  
+  bindPicker2Change: function (e) { 
+    console.log('picker发送选择改变,携带值为', e.detail.value) 
+    this.setData({ 
+      index2: e.detail.value 
+    }) 
+  }, 
+  bindPicker3Change: function (e) { 
+    console.log('picker发送选择改变,携带值为', e.detail.value) 
+    this.setData({ 
+      index3: e.detail.value 
+    }) 
+  }, 
+  /** 
+   * 生命周期函数--监听页面加载 
+   */ 
+  onLoad(options) { 
+ 
+  }, 
+  //  点击日期组件确定事件 
+  bindDateChange: function (e) { 
+    this.setData({ 
+      date: e.detail.value 
+    }) 
+  }, 
+  /** 
+   * 生命周期函数--监听页面显示 
+   */ 
+  onShow() { 
+ 
+  }, 
+ 
+ 
+ 
+   
+}) 

+ 9 - 0
pages/new/new.json

@@ -0,0 +1,9 @@
+{ 
+  "navigationBarTitleText": "新用户认证", 
+  "usingComponents": { 
+    "van-field":"@vant/weapp/field/index", 
+    "van-popup":"@vant/weapp/popup/index", 
+    "van-picker":"@vant/weapp/picker/index", 
+    "van-datetime-picker":"@vant/weapp/datetime-picker/index" 
+  } 
+}

+ 75 - 0
pages/new/new.wxml

@@ -0,0 +1,75 @@
+<!--pages/new/new.wxml--> 
+<view class="all"> 
+<!-- 大标题 --> 
+  <view class="top"> 
+    <view class="title">完善信息</view> 
+    <view class="small">请填写以下个人信息</view> 
+  </view> 
+  <!-- 内容 --> 
+  <view class="content"> 
+  <view class="name"> 
+    <van-field 
+    value="{{ username }}" 
+    label="用户名" 
+    required="true" 
+    placeholder="请输入用户名" 
+    /> 
+  </view> 
+  <view class="name"> 
+    <van-field 
+    value="{{ phone }}" 
+    label="手机号" 
+    placeholder="请输入手机号" 
+    required="true" 
+  /> 
+  </view> 
+  <view class="name"> 
+    <van-field 
+    value="{{ id }}" 
+    label="身份号" 
+    placeholder="请输入身份证号" 
+    required="true" 
+  /> 
+</view> 
+<!-- 请选择身份 --> 
+<view class="name"> 
+  <view class="section"> 
+  <picker bindchange="bindPickerChange" value="{{index}}" range="{{array}}"> 
+    <van-cell title="请选择身份" is-link value="{{array[index]}}" required="true"/> 
+  </picker> 
+</view>         
+</view> 
+<!-- 学校 --> 
+  <view class="name"> 
+    <van-field 
+    value="{{ school }}" 
+    label="学校" 
+    placeholder="请输入学校全称" 
+  /> 
+</view> 
+<!-- 入学时间 时间选择器 --> 
+  <view class="name" > 
+  <picker class="in-name" mode="date" value="{{date}}" bindchange="bindDateChange" label="请选择身份"> 
+    <view class="picker"> 
+     <text class="xing">*</text>入学时间:<text class="picker-conter">{{date}}</text> 
+    </view> 
+  </picker> 
+</view> 
+<!-- 专业 --> 
+  <view class="name"> 
+  <picker bindchange="bindPicker2Change" value="{{index2}}" range="{{array2}}" > 
+    <van-cell title="专业" is-link value="{{array2[index2]}}" required="true" placeholder="请输入"/> 
+  </picker> 
+</view> 
+<!-- 美食偏好 --> 
+<view class="name"> 
+  <picker bindchange="bindPicker3Change" value="{{index3}}" range="{{array3}}"> 
+    <van-cell title="美食偏好" is-link value="{{array3[index3]}}" placeholder="请输入"/> 
+  </picker> 
+</view> 
+</view> 
+<!-- 按钮 --> 
+<view class="box"> 
+  <van-button round type="info" color="red" block>提交</van-button> 
+</view> 
+</view>

+ 43 - 0
pages/new/new.wxss

@@ -0,0 +1,43 @@
+/* pages/new/new.wxss */ 
+.top{ 
+  margin: 0rem 1rem ; 
+} 
+.title{ 
+  font-size: 1.5rem; 
+  font-weight:500; 
+} 
+.small{ 
+  margin-top: 0.2rem; 
+  color: rgba(73, 73, 73, 0.712); 
+  font-size: 0.8rem; 
+} 
+.content{ 
+  margin-left: 0.5rem; 
+  margin-top: 1.5rem; 
+} 
+.name{ 
+  border-bottom: 0.04rem solid #bbbbbb; 
+} 
+.in-name { 
+  height: 2.9rem; 
+} 
+.picker{ 
+  padding: 0.8rem 0.3rem; 
+  font-size: 0.9rem; 
+  color: #555454; 
+} 
+.picker-conter{ 
+  padding-left: 11.5rem ; 
+} 
+.xing{ 
+  color: red; 
+} 
+.van-cell__value{ 
+  color: rgba(19, 18, 18, 0.884) !important ; 
+} 
+.box{ 
+  margin-left: 1rem; 
+  margin-right: 1rem; 
+  position: relative; 
+  top: 6rem; 
+} 

+ 65 - 0
pages/success/success.js

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

+ 4 - 0
pages/success/success.json

@@ -0,0 +1,4 @@
+{
+  "usingComponents": {},
+  "navigationBarTitleText": "支付成功"
+}

+ 14 - 0
pages/success/success.wxml

@@ -0,0 +1,14 @@
+<!--pages/success/success.wxml--> 
+<image src="/images/a2760c548a496d0a9d46023d762d9475.jpeg" alt="" style="height: 15rem; width: 17rem; position: relative; left: 3rem;"/> 
+<view> 
+  <view class="btn1"> 
+  <view class="btn1-back"> 
+    返回首页 
+  </view> 
+  </view> 
+  <view class="btn2"> 
+  <view class="btn2-back"> 
+    查看订单 
+  </view> 
+  </view> 
+</view>

+ 30 - 0
pages/success/success.wxss

@@ -0,0 +1,30 @@
+/* pages/success/success.wxss */ 
+.btn1{ 
+  width: 8rem; 
+  height: 2.5rem; 
+  background-color: #929292; 
+  border-radius: 3rem; 
+  position: relative; 
+  left: 2rem; 
+} 
+.btn1-back{ 
+  position:relative; 
+  left: 2rem; 
+  top: 0.5rem; 
+  color: aliceblue; 
+} 
+.btn2{ 
+  width: 8rem; 
+  height: 2.5rem; 
+  background-color:  #FF7F00; 
+  border-radius: 3rem; 
+  position: relative; 
+  left: 12rem; 
+  top: -2.3rem; 
+} 
+.btn2-back{ 
+  position:relative; 
+  left: 2rem; 
+  top: 0.5rem; 
+  color: aliceblue; 
+}

+ 1 - 1
project.private.config.json

@@ -17,7 +17,7 @@
         },
         {
           "name": "",
-          "pathName": "pages/Businesses/Businesses",
+          "pathName": "pages/address/address",
           "query": "",
           "launchMode": "default",
           "scene": null