diff --git a/src/cloudfunctions/getOpenId/config.json b/src/cloudfunctions/getOpenId/config.json deleted file mode 100644 index 5ecc33e..0000000 --- a/src/cloudfunctions/getOpenId/config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "permissions": { - "openapi": [ - ] - } -} \ No newline at end of file diff --git a/src/cloudfunctions/getOpenId/index.js b/src/cloudfunctions/getOpenId/index.js deleted file mode 100644 index d7a26e8..0000000 --- a/src/cloudfunctions/getOpenId/index.js +++ /dev/null @@ -1,17 +0,0 @@ -const cloud = require('wx-server-sdk'); - -cloud.init({ - env: cloud.DYNAMIC_CURRENT_ENV -}); - -// 获取openId云函数入口函数 -exports.main = async (event, context) => { - // 获取基础信息 - const wxContext = cloud.getWXContext(); - - return { - openid: wxContext.OPENID, - appid: wxContext.APPID, - unionid: wxContext.UNIONID, - }; -}; \ No newline at end of file diff --git a/src/cloudfunctions/getOpenId/package.json b/src/cloudfunctions/getOpenId/package.json deleted file mode 100644 index dbbb212..0000000 --- a/src/cloudfunctions/getOpenId/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "getOpenId", - "version": "1.0.0", - "description": "", - "main": "index.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "author": "", - "license": "ISC", - "dependencies": { - "wx-server-sdk": "~2.6.3" - } -} \ No newline at end of file diff --git a/src/cloudfunctions/sendComment/config.json b/src/cloudfunctions/sendComment/config.json deleted file mode 100644 index 5ecc33e..0000000 --- a/src/cloudfunctions/sendComment/config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "permissions": { - "openapi": [ - ] - } -} \ No newline at end of file diff --git a/src/cloudfunctions/sendComment/index.js b/src/cloudfunctions/sendComment/index.js deleted file mode 100644 index da00f04..0000000 --- a/src/cloudfunctions/sendComment/index.js +++ /dev/null @@ -1,25 +0,0 @@ -// 云函数入口文件 -const cloud = require('wx-server-sdk'); - -cloud.init({ - env: cloud.DYNAMIC_CURRENT_ENV -}); -//const db = cloud.database(); - -// 云函数入口函数 -exports.main = async (val, comment) => { -  return await cloud.database().collection("comment").doc(event.id) -  .update({ -      data:{   - comment: comment_text       -      } -  })  -  .then(res =>{ -      console.log("改变评论状态成功1",res) -      return res -  }) -  .catch(res =>{ -      console.log("改变评论状态失败",res) -      return res -  }) -} diff --git a/src/cloudfunctions/sendComment/package.json b/src/cloudfunctions/sendComment/package.json deleted file mode 100644 index eed1f51..0000000 --- a/src/cloudfunctions/sendComment/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "sendComment", - "version": "1.0.0", - "description": "", - "main": "index.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "author": "", - "license": "ISC", - "dependencies": { - "wx-server-sdk": "~2.6.3" - } -} \ No newline at end of file diff --git a/src/miniprogram/images/arrow.svg b/src/miniprogram/images/arrow.svg deleted file mode 100644 index cd32a7d..0000000 --- a/src/miniprogram/images/arrow.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - ☀ iOS/☀ 图标/线型/icons_outlined_arrow@3x - - - - - - - - \ No newline at end of file diff --git a/src/miniprogram/pages/Details/details.js b/src/miniprogram/pages/Details/details.js deleted file mode 100644 index b34285c..0000000 --- a/src/miniprogram/pages/Details/details.js +++ /dev/null @@ -1,70 +0,0 @@ -// pages/Detailed/detailed.js -const defaultAvatarUrl = 'https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0' - -Page({ - - /** - * 页面的初始数据 - */ - data:{ - avatarUrl: defaultAvatarUrl, - }, - - /** - * 生命周期函数--监听页面加载 - */ - onLoad(options) { - var index = options.index; // 第一个页面传递过来的教师索引 - var teacherInfo = this.data.teacher[index]; - // 使用索引在教师数组中获取对应的教师信息 - // var teacherInfo = this.data.teacher[index]; - // 继续处理教师信息 - // 调用云函数获取教师信息 - wx.cloud.callFunction({ - name: "detailed", - success: (res) => { - this.setData({ - teacher: res.result.data - }) - // console.log(this.data.teacher[1]); - } - }) - }, - - changeTab(e) { - const index = e.currentTarget.dataset.index; - this.setData({ - currentTab: parseInt(index) - }); - }, - onAddButtonTap: function() { - this.setData({ - showPopup: true - }); - }, - onBackButtonTap: function() { - this.setData({ - showPopup: false - }); - }, - - handleSubmit: function() { - // 处理.... - // 提交成功后隐藏弹窗 - this.setData({ - showPopup: false - }); - }, - - navToComments: () => { - wx.navigateTo({ - url: '/pages/Comments/Comments', - }) - }, - inputChange(e) { - this.setData({ - inputValue: e.detail.value - }); - }, - -}) \ No newline at end of file diff --git a/src/miniprogram/pages/Details/details.json b/src/miniprogram/pages/Details/details.json deleted file mode 100644 index 8835af0..0000000 --- a/src/miniprogram/pages/Details/details.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "usingComponents": {} -} \ No newline at end of file diff --git a/src/miniprogram/pages/Details/details.wxml b/src/miniprogram/pages/Details/details.wxml deleted file mode 100644 index 4363841..0000000 --- a/src/miniprogram/pages/Details/details.wxml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - 姓名: 老师 - 科目: NULL - 空闲时间: NULL - 学历: NULL - 时薪: NULL - - - - 综合评分: 10.0 - diff --git a/src/miniprogram/pages/Details/details.wxss b/src/miniprogram/pages/Details/details.wxss deleted file mode 100644 index c421cb8..0000000 --- a/src/miniprogram/pages/Details/details.wxss +++ /dev/null @@ -1,15 +0,0 @@ -/* pages/Detailed/detailed.wxss */ -.avatar-wrapper { - display: flex; - justify-content: left; -} - -/* 子元素选择器 */ -.avatar-wrapper > image { - height: 100px; - width: 100px; - border-style: solid; - border-color: #000; - border-width: 1px; - margin: 20px; -} \ No newline at end of file diff --git a/src/project.config.json b/src/project.config.json index 0364c0f..899bca8 100644 --- a/src/project.config.json +++ b/src/project.config.json @@ -68,10 +68,10 @@ "tabIndent": "insertSpaces", "tabSize": 2 }, - "appid": "wxa443f40488e954d4", "libVersion": "2.14.1", "packOptions": { "ignore": [], "include": [] - } + }, + "appid": "wxa443f40488e954d4" } \ No newline at end of file