Merge branch 'kongweiyu_branch' of https://bdgit.educoder.net/mvpola2e5/gitProject1 into dev

kongweiyu_branch
温雍敬 1 year ago
commit 9265819916

@ -1,6 +0,0 @@
{
"permissions": {
"openapi": [
]
}
}

@ -1,9 +0,0 @@
const saveProfile = require('./saveProfile/index')
// 云函数入口函数
exports.main = async (event, context) => {
switch (event.type) {
case 'saveProfile':
return await saveProfile.main(event, context);
}
};

File diff suppressed because it is too large Load Diff

@ -1,14 +0,0 @@
{
"name": "db",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"wx-server-sdk": "latest"
}
}

@ -1,26 +0,0 @@
// cloud.init({
// env: cloud.DYNAMIC_CURRENT_ENV
// });
const db = wx.cloud.database();
// 保存个人信息云函数入口函数
exports.main = async (event, context) => {
// 返回数据库结果
return db.collection('user_Data').add({
// data 字段表示需新增的 JSON 数据
data: {
// _id: 'todo-identifiant-aleatoire', // 可选自定义 _id在此处场景下用数据库自动分配的就可以了
user_Name: "1",
user_Sex: null,
user_Age: null,
user_Phone: null,
user_Addr: null,
isTeacher: false
},
success: function(res) {
// res 是一个对象,其中有 _id 字段标记刚创建的记录的 id
console.log(res)
}
})
};

@ -20,80 +20,28 @@
<input class="search-input" type="text" placeholder="请输入搜索内容"></input>
<button class="search-button">搜索</button>
</view>
</view>
</view>
<view class="show_information">
<!-- //当每通过一个教员上传的简历信息则创建一个 -->
<view class="content-container">
<image class="image" src="图片地址"></image>
<view class="text-container">
<text class="title">标题</text>
<view>
<text class="description">描述信息</text>
</view>
</view>
</view>
<view class="show_information" wx:for="{{[1,2,3,4,5]}}">
<!-- //当每通过一个教员上传的简历信息则创建一个 -->
<view class="content-container">
<image class="image" src="图片地址"></image>
<view class="text-container">
<text class="title">标题</text>
<view>
<text class="description">描述信息</text>
</view>
</view>
</view>
<view class="button-container">
<button class="button">按钮一</button>
<button class="button">按钮二</button>
</view>
<view class="button-container">
<button class="button">按钮一</button>
<button class="button">按钮二</button>
</view>
</view>
<view class="show_information">
<!-- //当每通过一个教员上传的简历信息则创建一个 -->
<view class="content-container">
<image class="image" src="图片地址"></image>
<view class="text-container">
<text class="title">标题</text>
<view>
<text class="description">描述信息</text>
</view>
</view>
</view>
<view class="button-container">
<button class="button">按钮一</button>
<button class="button">按钮二</button>
</view>
</view>
<view class="show_information">
<!-- //当每通过一个教员上传的简历信息则创建一个 -->
<view class="content-container">
<image class="image" src="图片地址"></image>
<view class="text-container">
<text class="title">标题</text>
<view>
<text class="description">描述信息</text>
</view>
</view>
</view>
<view class="button-container">
<button class="button">按钮一</button>
<button class="button">按钮二</button>
</view>
</view>
<view class="show_information">
<!-- //当每通过一个教员上传的简历信息则创建一个 -->
<view class="content-container">
<image class="image" src="图片地址"></image>
<view class="text-container">
<text class="title">标题</text>
<view>
<text class="description">描述信息</text>
</view>
</view>
</view>
<view class="button-container">
<button class="button">按钮一</button>
<button class="button">按钮二</button>
</view>
</view>
<view class="title" bind:tap="change">{{hello}}</view>
<view class="desc">这里是家教帮平台,再也不用担心孩子的学习了</view>
</view>
Loading…
Cancel
Save