提交 c19246e0 编写于 作者: L lx164

Revert "修改目录结构,修复已知bug"

This reverts commit 051bc79f.
上级 051bc79f
// 云函数入口文件
const cloud = require('wx-server-sdk')
cloud.init({
// API 调用都保持和云函数当前所在环境一致
env: cloud.DYNAMIC_CURRENT_ENV,
traceUser: true,
})
cloud.init()
const db = cloud.database()
const _ = db.command
......
// 云函数入口文件
const cloud = require('wx-server-sdk')
cloud.init({
// API 调用都保持和云函数当前所在环境一致
env: cloud.DYNAMIC_CURRENT_ENV,
traceUser: true,
})
cloud.init()
const db = cloud.database()
const _ = db.command
......
// 云函数入口文件
const cloud = require('wx-server-sdk')
cloud.init({
// API 调用都保持和云函数当前所在环境一致
env: cloud.DYNAMIC_CURRENT_ENV,
traceUser: true,
})
cloud.init()
const db = cloud.database()
const _ = db.command
// 云函数入口函数
exports.main = async (event, context) => {
exports.main = async(event, context) => {
const id = event.id
const dbname = event.dbname
try {
......
......@@ -6,11 +6,7 @@ var request = require('request');
var url = require('url');
var crypto = require('crypto');
var date = new Date().toUTCString()
cloud.init({
// API 调用都保持和云函数当前所在环境一致
env: cloud.DYNAMIC_CURRENT_ENV,
traceUser: true,
})
cloud.init()
/////////////////////////////////配置信息// 填写AK和请求///////////////////////////////////////////////////////////////////////
// 请填写完整
......@@ -22,7 +18,7 @@ var ak_secret = '';
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// 云函数入口函数
exports.main = async (event, context) => {
exports.main = async(event, context) => {
var image1 = event.image1
var image2 = event.image2
......@@ -38,13 +34,13 @@ exports.main = async (event, context) => {
}
};
md5 = function (buffer) {
md5 = function(buffer) {
var hash;
hash = crypto.createHash('md5');
hash.update(buffer);
return hash.digest('base64');
};
sha1 = function (stringToSign, secret) {
sha1 = function(stringToSign, secret) {
var signature;
return signature = crypto.createHmac('sha1', secret).update(stringToSign).digest().toString('base64');
};
......@@ -64,7 +60,7 @@ exports.main = async (event, context) => {
options.headers.Authorization = authHeader;
// 封装函数
let promise = new Promise(function (resolve, reject) {
let promise = new Promise(function(resolve, reject) {
request(options, (error, response, body) => {
// 失败
if (error) {
......
// 云函数入口文件
const cloud = require('wx-server-sdk')
cloud.init({
// API 调用都保持和云函数当前所在环境一致
env: cloud.DYNAMIC_CURRENT_ENV,
traceUser: true,
})
cloud.init()
const db = cloud.database()
const _ = db.command
......
// 云函数入口文件
const cloud = require('wx-server-sdk')
cloud.init({
// API 调用都保持和云函数当前所在环境一致
env: cloud.DYNAMIC_CURRENT_ENV,
traceUser: true,
})
cloud.init()
const db = cloud.database()
const _ = db.command
......
// 云函数入口文件
const cloud = require('wx-server-sdk')
cloud.init({
// API 调用都保持和云函数当前所在环境一致
env: cloud.DYNAMIC_CURRENT_ENV,
traceUser: true,
})
cloud.init()
const db = cloud.database()
const _ = db.command
......
// 云函数入口文件
const cloud = require('wx-server-sdk')
cloud.init({
// API 调用都保持和云函数当前所在环境一致
env: cloud.DYNAMIC_CURRENT_ENV,
traceUser: true,
})
cloud.init()
const db = cloud.database()
const _ = db.command
......
// 云函数入口文件
const cloud = require('wx-server-sdk')
cloud.init({
// API 调用都保持和云函数当前所在环境一致
env: cloud.DYNAMIC_CURRENT_ENV,
traceUser: true,
})
cloud.init()
const db = cloud.database()
const _ = db.command
......
// 云函数入口文件
const cloud = require('wx-server-sdk')
cloud.init({
// API 调用都保持和云函数当前所在环境一致
env: cloud.DYNAMIC_CURRENT_ENV,
traceUser: true,
})
cloud.init()
const db = cloud.database()
const _ = db.command
......
......@@ -4,11 +4,7 @@
const cloud = require('wx-server-sdk')
// 初始化 cloud
cloud.init({
// API 调用都保持和云函数当前所在环境一致
env: cloud.DYNAMIC_CURRENT_ENV,
traceUser: true,
})
cloud.init()
/**
* 这个示例将经自动鉴权过的小程序用户 openid 返回给小程序端
......
{
"pages": [
"pages/home/home",
"pages/post/post",
"pages/postTopic/postTopic",
"pages/post_detail/post_detail",
"pages/topic_comment/topic_comment",
"pages/topic_detail/topic_detail",
"pages/sale/sale",
"pages/post_sale/post_sale",
"pages/comment_sale/comment_sale",
"pages/mime/mime",
"pages/letter/letter",
"pages/message/message",
"pages/suggestion/suggestion",
"pages/friends/friends",
"pages/post_list/post_list",
"pages/topic_list/topic_list",
"pages/sale_list/sale_list",
"pages/set_profile/set_profile",
"pages/compare_face/compare_face"
"pages/index/index",
"pages/home/index/index",
"pages/home/post/post",
"pages/home/postTopic/postTopic",
"pages/home/post_detail/post_detail",
"pages/home/topic_comment/topic_comment",
"pages/home/topic_detail/topic_detail",
"pages/sale/index/sale",
"pages/sale/post_sale/post_sale",
"pages/sale/comment_sale/comment_sale",
"pages/personal/index/personal",
"pages/personal/letter/letter",
"pages/personal/message/message",
"pages/personal/suggestion/suggestion",
"pages/personal/friends/friends",
"pages/personal/post_list/post_list",
"pages/personal/topic_list/topic_list",
"pages/personal/sale_list/sale_list",
"pages/personal/set_profile/set_profile",
"pages/compare_face/face"
],
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#F75282",
"navigationBarTitleText": "Say Love 表白墙",
"navigationBarBackgroundColor": "#66CDAA",
"navigationBarTitleText": "Say Love",
"navigationBarTextStyle": "white"
},
"permission": {},
"tabBar": {
"color": "#515151",
"selectedColor": "#F75282",
"selectedColor": "#66CDAA",
"borderStyle": "black",
"backgroundColor": "#ffffff",
"list": [
{
"pagePath": "pages/home/home",
"pagePath": "pages/home/index/index",
"iconPath": "image/saylove.png",
"selectedIconPath": "image/select-saylove.png",
"text": "表白墙"
},
{
"pagePath": "pages/sale/sale",
"pagePath": "pages/sale/index/sale",
"iconPath": "image/sale.png",
"selectedIconPath": "image/select-sale.png",
"text": "卖舍友"
},
{
"pagePath": "pages/compare_face/compare_face",
"pagePath": "pages/compare_face/face",
"iconPath": "image/fall-in-love.png",
"selectedIconPath": "image/select-fall-in-love.png",
"text": "情侣脸"
},
{
"pagePath": "pages/mime/mime",
"pagePath": "pages/personal/index/personal",
"iconPath": "image/iam.png",
"selectedIconPath": "image/select-iam.png",
"text": "我的"
......
......@@ -4,7 +4,8 @@
const APPID = 'wx2e8d6d4203c4e630'
// 小程序SECRET
const SECRET = "0bea222992c1f2c4b1c1ea8effb8fb28"
// 云开发环境ID
const CLOUNDID = 'glut-kkb-796896'
// 消息刷新时间,单位:毫秒
// 默认10秒刷新一次,即10000毫秒
// 根据实际需要进行调节
......@@ -13,5 +14,6 @@ const FLASHTIME = 10000000
module.exports = {
APPID,
SECRET,
CLOUNDID,
FLASHTIME
}
\ No newline at end of file
// pages/compare_face/face.js
const config = require("../../config.js");
const config = require("./../../config.js");
const app = getApp()
Page({
......@@ -18,7 +18,13 @@ Page({
postImageRight: '',
rate: 0,
face: '',
conclusion: ''
conclusion: '',
icon: {
width: "250rpx",
height: "250rpx",
path: "http://image.kucaroom.com/tmp/wx0f587d7c97a68e2b.o6zAJs3oh85Zb1lJE8oWix57vny0.LnBKkU9zx3EP4d2e331c723875767480754faf0248b7.png",
showImage: true
},
},
onLoad: function(option) {
this.hiddenSelect();
......@@ -26,6 +32,9 @@ Page({
// 人脸比对
compareface: function(image1, image2) {
var that = this
wx.cloud.init({
env: config.CLOUNDID
})
wx.cloud.callFunction({
// 云函数名称
name: 'FaceAPI',
......@@ -55,7 +64,6 @@ Page({
conclusion: data.message,
showReport: true,
bindReport: true,
tryAgant:true
});
} else {
wx.showToast({
......@@ -121,7 +129,6 @@ Page({
return data
},
// 上传图片
showSelect: function() {
this.setData({
......@@ -267,9 +274,9 @@ Page({
conclusion: '',
showReport: false,
bindReport: false,
showCancel: false,
showCancel: true,
tryAgant: false,
showBegin: true,
showBegin: false,
showSubmit: false,
postImageLeft: '',
PostImageRight: '',
......@@ -279,7 +286,17 @@ Page({
},
onShareAppMessage: function(res) {
return {
title: '喜欢ta,那就说出来吧',
path: '/pages/index/index',
imageUrl: 'http://image.kucaroom.com/compare_face.jpg',
success: function(res) {
// 转发成功
},
fail: function(res) {
// 转发失败
}
}
},
......
......@@ -9,7 +9,7 @@
<view class='image-left'>
<view class='image' wx:if="{{!imageLeft}}" bindtap='selectLeft'>
<image class="upload" src='./images/select-image.png'></image>
<image class="upload" src='{{icon.path}}'></image>
</view>
<view class='image' wx:else bindtap='selectLeft'>
......@@ -21,7 +21,7 @@
<!-- 右边图片 -->
<view class='image-left'>
<view class='image' wx:if="{{!imageRight}}" bindtap='selectRight'>
<image class="upload" src='./images/select-image.png'></image>
<image class="upload" src='{{icon.path}}'></image>
</view>
<view class='image' wx:else>
<image class="upload" src='{{imageRight}}' bindtap='selectRight'></image>
......@@ -34,7 +34,7 @@
<!-- 报告 -->
<view class='report' wx-if="{{showReport}}">
<view class='bind-report' wx-if="{{bindReport}}">
<image src='./images/bind-face-report.png'></image>
<image src='/image/bind-face-report.png'></image>
</view>
<view class='content'>
<view class='report-title'>
......@@ -48,7 +48,7 @@
<view class='description report-item'>结论:{{conclusion}}</view>
<view class='seal-world'>{{face}}</view>
<view class='seal'>
<image src='./images/seal.png'></image>
<image src='/image/seal.png'></image>
</view>
<view class='support'>阿里AI提供技术支持</view>
</view>
......@@ -56,21 +56,21 @@
</view>
<view class='ding-container'>
<image src='./images/ding.png'></image>
<image src='../../image/ding.png'></image>
</view>
<view class='beging' bindtap='showSelect' wx:if="{{showBegin}}">
<view class='beging-button'>开始测试</view>
<view class='beging' bindtap='showSelect' wx-if="{{showBegin}}">
<view class='beging-button'>开始</view>
</view>
<view class='beging' bindtap='cancelSelect' wx:if="{{showCancel}}">
<view class='beging' bindtap='cancelSelect' wx-if="{{showCancel}}">
<view class='beging-button'>取消</view>
</view>
<view class='beging' bindtap='submit' wx:if="{{showSubmit}}">
<view class='beging' bindtap='submit' wx-if="{{showSubmit}}">
<view class='beging-button'>提交</view>
</view>
<view class='beging' bindtap='tryAgant' wx:if="{{tryAgant}}">
<view class='beging' bindtap='tryAgant' wx-if="{{tryAgant}}">
<view class='beging-button'>再来一次</view>
</view>
\ No newline at end of file
......@@ -57,7 +57,7 @@ page{
}
.beging .beging-button{
background: #F75282;
background: #5A97B4;
color: white;
font-size: 35rpx;
padding-top: 10rpx;
......
// pages/home/index/index.js
const app = getApp()
const config = require("../../config.js");
const config = require("../../../config.js");
Page({
/**
......
......@@ -61,7 +61,7 @@
<view class="item-container">
<!-- 头像 -->
<view class="item-image">
<image bindtap='previewImage' id="{{item.poster.avatar}}" src="{{item.poster.avatar?item.poster.avatar:'/image/boy-icon.png'}}" wx:if="{{item.private == 0}}"></image>
<image bindtap='previewImage' id="{{item.poster.avatar}}" src="{{item.poster.avatar}}" wx:if="{{item.private == 0}}"></image>
<image bindtap='previewImage' src="/image/boy-icon.png" wx:elif="{{item.private == 1 && item.poster.gender == 1}}"></image>
<image bindtap='previewImage' src="/image/girl-icon.png" wx:else></image>
</view>
......@@ -303,7 +303,7 @@
<view class='post-container' wx:if='{{showpostbtn}}'>
<view class='wall'></view>
<view class='post'>
<image src='/image/post.png' data-page='/pages/post/post' bindtap='post'></image>
<image src='/image/post.png' data-page='/pages/home/post/post' bindtap='post'></image>
</view>
</view>
......@@ -311,7 +311,7 @@
<view class='post-container' wx:if='{{!showpostbtn}}'>
<view class='wall'></view>
<view class='post'>
<image src='/image/new-post.png' data-page='/pages/postTopic/postTopic' bindtap='post'></image>
<image src='/image/new-post.png' data-page='/pages/home/postTopic/postTopic' bindtap='post'></image>
</view>
</view>
......
......@@ -167,7 +167,7 @@ page{
.comment-container .comment-icon{
height: 75rpx;
background: #f0f0f0;
background: #424242;
display: flex;
flex-direction: row;
justify-content: space-around;
......@@ -186,7 +186,7 @@ page{
}
.item-content .comment{
background: #f0f0f0;
background: WhiteSmoke;
margin-bottom: 20rpx;
margin-top: -20rpx;
}
......@@ -209,7 +209,6 @@ page{
}
.praise-container{
font-size: 12px;
display: flex;
flex-direction: row;
}
......@@ -261,16 +260,16 @@ page{
}
.praise-item .praise-user-avatar{
width: 30rpx;
height: 30rpx;
width: 40rpx;
height: 40rpx;
margin-right: 5rpx;
border-radius:50%;
border-radius:20rpx;
}
.praise-container .praise-user{
width: 30rpx;
height: 30rpx;
width: 42rpx;
height: 42rpx;
margin-right: 10rpx;
}
......@@ -291,7 +290,6 @@ page{
.comment-user-wall{
width: 100%;
display: flex;
font-size: 12px;
flex-direction: column;
}
......@@ -395,7 +393,7 @@ page{
margin-left: 20rpx;
border-bottom-style:solid;
border-width:1rpx;
border-color: #F75282;
border-color: #0aecc3;
margin-right: 20rpx;
padding-bottom: 15rpx;
font: 30rpx;
......@@ -408,7 +406,7 @@ page{
width: 130rpx;
height: 70rpx;
font-size: 30rpx;
background: #F75282;
background: #0aecc3;
color: white;
margin-right: 20rpx;
display: flex;
......@@ -683,4 +681,4 @@ page{
.nickname{
color: #66CDAA;
font-weight: bold;
}
}
\ No newline at end of file
// pages/index/index.js
var app = getApp()
const config = require("../../config.js");
Page({
/**
* 页面的初始数据
*/
data: {
show_auth: true
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
let that = this;
wx.showLoading({
title: '加载中...',
});
wx.getSetting({
success(res) {
console.log(res)
if (!res.authSetting['scope.userInfo']) {
that.setData({
show_auth: true
});
wx.hideLoading()
} else {
//获取用户信息
that.getUserInfo()
// that.login()
}
}
})
},
// login
login: function() {
var that = this
wx.showLoading({
title: '登录中...',
});
// 调用云函数
wx.cloud.callFunction({
name: 'login',
data: {},
success: res => {
console.log('[云函数] [login] user openid: ', res.result.openid)
app.globalData.userId = res.result.openid
wx.setStorageSync('openid', res.result.openid)
wx.hideLoading()
wx.switchTab({
url: '/pages/home/index/index'
})
},
fail: err => {
wx.showModal({
title: '登录失败',
content: err,
})
}
})
},
/**
* 获取用户信息
*/
getUserInfo: function() {
wx.showLoading({
title: '加载中...',
});
// console.log('get user info');
let that = this;
wx.getSetting({
success: res => {
console.log('getuserinfo', res);
if (res.authSetting['scope.userInfo']) {
// 已经授权,可以直接调用 getUserInfo 获取头像昵称,不会弹框
wx.getUserInfo({
success: res => {
// 可以将 res 发送给后台解码出 unionId
app.globalData.userInfo = res.userInfo
// console.log('userinfo', app.globalData)
// 缓存
if (!wx.getStorageSync('userInfo')) {
console.log('22')
wx.setStorageSync('userInfo', res.userInfo)
}
wx.hideLoading()
wx.switchTab({
url: '/pages/home/index/index'
})
// 登录
that.login()
// wx.hideLoading()
}
})
} else {
console.log('未授权');
wx.navigateTo({
url: '/pages/index/index',
})
}
}
})
},
/**
* 监听用户点击授权按钮
*/
getAuthUserInfo: function(data) {
// console.log('data', data)
console.log('data', data.detail.errMsg)
if (data.detail.errMsg == "getUserInfo:ok") {
this.setData({
show_auth: false
});
// wx.showLoading({
// title: '登录中...',
// })
// 获取用户信息
this.getUserInfo()
// this.login()
} else {
this.setData({
show_auth: true
});
}
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function() {
}
})
\ No newline at end of file
{
"navigationBarTextStyle":"white",
"navigationBarBackgroundColor":"#43CD80",
"navigationBarTitleText": "欢迎来到SayLove~",
"usingComponents": {}
}
\ No newline at end of file
<view wx:if="{{show_auth}}" class='auth-container'>
<view class='auth-wall'>
<view class='auth-tips'>
<image src='/image/wechat-logo.png'></image>
<view>Hello , 欢迎使用 SayLove!</view>
</view>
<button open-type="getUserInfo" bindgetuserinfo="getAuthUserInfo" class='auth-button'>
<view>开始使用</view>
</button>
</view>
</view>
\ No newline at end of file
page{
background-color: #43CD80;
display: flex;
flex-direction: column;
}
/**FF7256**/
.container{
width: 100%;
display: flex;
flex-direction: column;
}
.container .container-wall{
width: 100%;
display: flex;
flex-direction: column;
justify-content:space-around;
background: white;
margin-top: 75rpx;
}
.container-wall .wall-item{
width: 100%;
display: flex;
flex-direction: row;
justify-content: space-around;
margin-top: 15rpx;
border-bottom-style:solid;
border-width:1rpx;
border-color: #F0F8FF;
}
.wall-item .item-container{
width: 95%;
display: flex;
flex-direction: row;
margin-bottom: 5rpx;
}
.item-container .item-image{
width: 13%;
}
.item-container .item-content{
width: 84%;
display: flex;
flex-direction: column;
}
.item-image image{
width:80rpx;
height:80rpx;
border-radius: 40rpx;
}
.item-content .user-name{
display: flex;
flex-direction: row;
justify-content: space-between;
font-size: 35rpx;
margin-bottom: 8rpx;
margin-top: -5rpx;
}
.user-name .follow-icon{
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
.follow-icon .follow-world{
font-size: 25rpx;
color: darkgray;
}
.user-name .had-follow{
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
.had-follow .had-follow-world{
font-size: 25rpx;
color: #FF7F00;
}
.for-user{
color: darkgray;
font-size: 35rpx;
}
.item-content .content{
font-size: 35rpx;
margin-bottom: 10rpx;
margin-top: 1rpx;
}
.item-content .post-time{
font-weight: 100;
font-size: 25rpx;
color: darkgray;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
height: 80rpx;
margin-bottom: 25rpx;
}
.post-time .time-and-delete{
display: flex;
flex-direction: row;
}
.time-and-delete .delete-post{
margin-left: 20rpx;
}
.user-college{
font-weight: 100;
font-size: 25rpx;
margin-bottom: -20rpx;
color: darkgray;
display: flex;
flex-direction: row;
}
.single-image image{
width: 400rpx;
}
.more-image{
display: flex;
flex-direction: row;
flex-wrap:wrap;
}
.more-image image{
width: 180rpx;
height: 180rpx;
margin-right: 10rpx;
margin-bottom: 10rpx;
}
.post-time .comment-image{
width: 40prx;
}
.post-time .comment-container{
display: flex;
flex-direction: row;
align-items: center;
margin-bottom: 20rpx;
height: 65rpx;
}
.comment-icon-container{
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
}
.comment-container .comment-icon{
height: 75rpx;
background: #424242;
display: flex;
flex-direction: row;
justify-content: space-around;
align-items: center;
margin-right: 13rpx;
border-radius:7rpx;
position: absolute;
z-index: 10;
right: 85rpx;
}
.comment-icon image{
width: 50rpx;
height: 50rpx;
padding: 15rpx 23rpx;
}
.item-content .comment{
background: WhiteSmoke;
margin-bottom: 20rpx;
margin-top: -20rpx;
}
.comment .qipao{
width: 0;
height: 0;
border-right: 20rpx solid white;
border-bottom: 20rpx solid WhiteSmoke;
border-left: 20rpx solid white;
margin-top: -18rpx;
margin-left: 20rpx;
}
.comment .comment-detail{
margin: 15rpx 15rpx;
font-size: 30rpx;
display: flex;
flex-direction: column;
}
.praise-container{
display: flex;
flex-direction: row;
}
.praise-container .praise-content{
display: flex;
flex-direction: row;
flex-wrap:wrap;
}
.praise-container .praise-item{
display: flex;
flex-direction: row;
}
.praise-item .praise-item-sub{
width: 100%;
display: flex;
flex-direction: row;
}
.praise-container-with-border{
display: flex;
flex-direction: row;
flex-wrap:wrap;
}
.line{
margin-top: 5rpx;
margin-bottom: 10rpx;
border-top-style:solid;
border-width:1rpx;
border-color: #E8E8E8;
}
.praise-container-border{
display: flex;
flex-direction: row;
flex-wrap:wrap;
margin-bottom: 10rpx;
padding-bottom: 10rpx;
}
.praise-container .praise-item{
display: flex;
flex-direction: row;
margin-right: 10rpx;
margin-top: 5rpx;
}
.praise-item .praise-user-avatar{
width: 40rpx;
height: 40rpx;
margin-right: 5rpx;
border-radius:20rpx;
}
.praise-container .praise-user{
width: 42rpx;
height: 42rpx;
margin-right: 10rpx;
}
.comment-detail .comment-user{
color: #66CDAA;
}
.comment-wall-item{
width: 100%;
display: flex;
flex-direction: column;
}
.inline-item{
display: inline;
}
.comment-user-wall{
width: 100%;
display: flex;
flex-direction: column;
}
.comment-wall-item .comment-user-container{
display: inline;
}
.comment-user-container image{
width: 40rpx;
height: 40rpx;
margin-right: 5rpx;
border-radius:20rpx;
}
.comment-wall-item .comment-ref-user-container{
display: inline;
}
.comment-ref-user-container image{
width: 40rpx;
height: 40rpx;
margin-right: 5rpx;
border-radius:20rpx;
}
/**post css**/
.post-container{
position:fixed;
right:18rpx;
bottom:20rpx;
z-index:100;
width: 120prx;
height: 120prx;
}
.post-container .wall{
position: absolute;
z-index: 105;
width: 90rpx;
height: 90rpx;
border-radius: 45rpx;
background: white;
right: 10rpx;
bottom: 30rpx;
}
.post image{
width: 120rpx;
height: 120rpx;
position: relative;
z-index: 110;
}
/** nav-bar **/
.nav-bar-container{
width: 100%;
height: 70rpx;
align-items: center;
display: flex;
flex-direction: row;
justify-content: space-around;
border-bottom-style:solid;
border-width:5rpx;
border-color: white;
background: white;
position: fixed;
}
.nav-bar-container .nav-bar{
display: flex;
flex-direction: row;
justify-content: space-between;
width: 95%;
font-weight: 200;
font-size: 35rpx;
margin-top: 5rpx;
margin-bottom: 5rpx;
}
.nav-bar .selected{
color: #FF4500;
}
.comment-input-container{
position:fixed;
bottom: 0rpx;
z-index:100;
width: 100%;
height: 200prx;
background: WhiteSmoke;
display: flex;
flex-direction: row;
align-items: center;
padding-top: 10rpx;
}
.comment-input-container textarea{
width: 100%;
margin-left: 20rpx;
border-bottom-style:solid;
border-width:1rpx;
border-color: #0aecc3;
margin-right: 20rpx;
padding-bottom: 15rpx;
font: 30rpx;
font-weight: 200;
margin-bottom: 20rpx;
padding-top: 17rpx;
}
.comment-input-container .send-button{
width: 130rpx;
height: 70rpx;
font-size: 30rpx;
background: #0aecc3;
color: white;
margin-right: 20rpx;
display: flex;
flex-direction: row;
justify-content: space-around;
align-items: center;
border-radius: 10rpx;
}
/** 授权按钮 **/
.auth-container{
position: fixed;
z-index: 300;
width: 100%;
height: 100%;
background: gray;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background:rgba(2,2,2,0.6);
}
.auth-container .auth-wall{
background: white;
width: 70%;
display: flex;
flex-direction: column;
align-items: center;
border-radius: 15rpx;
}
.auth-wall .auth-tips{
padding-top: 40rpx;
padding-bottom: 40rpx;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
color: gray;
font-size: 30rpx;
}
.auth-tips image{
width: 120rpx;
height: 120rpx;
margin-bottom: 10rpx;
}
.auth-button{
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
background: #43CD80;
width: 100%;
color: white;
font-size: 35rpx;
border-radius: 0rpx;
border-bottom-left-radius: 15rpx;
border-bottom-right-radius: 15rpx;
}
.auth-button .auth-image-container{
display: flex;
flex-direction: column;
}
.auth-button image{
width: 50rpx;
height: 50rpx;
margin-right: 10rpx;
}
.power_by{
color: #D3D3D3;
}
/** 话题样式 **/
.topic-container{
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
border-top-style:solid;
border-bottom-style:solid;
border-width:20rpx;
border-color: #F5F5F5;
}
.topic-single-image image{
width: 180rpx;
height: 180rpx;
}
.topic{
width: 95%;
display: flex;
flex-direction: column;
}
.topic .title{
width: 100%;
display: flex;
flex-direction: row;
justify-content: center;
}
.title .title-world{
padding-top: 10rpx;
padding-bottom: 10rpx;
padding-left: 35rpx;
padding-right: 35rpx;
margin-top: 20rpx;
font-size: 35rpx;
background-color: #F5F5F5;
color: #7A7A7A;
border-radius: 10rpx;
}
.attachments-single-image image{
width: 300rpx;
height: 200rpx;
}
.attachments .attachments-more-image{
display: flex;
flex-direction: row;
flex-wrap:wrap;
}
.attachments-more-image image{
width: 180rpx;
height: 180rpx;
margin-right: 10rpx;
margin-bottom: 10rpx;
}
.topic .content{
margin-bottom: 15rpx;
margin-top: 15rpx;
}
.topic .footer{
width: 100%;
display: flex;
flex-direction: row;
justify-content:space-between;
padding-top: 10rpx;
font-size: 30rpx;
padding-bottom: 10rpx;
}
.footer .footer-praise{
display: flex;
flex-direction: row;
align-items: center;
}
.footer .footer-visit{
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
.footer .footer-comment{
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
.footer-praise image{
width: 40rpx;
height: 40rpx;
padding-right: 5rpx;
}
.footer-visit image{
width: 50rpx;
height: 50rpx;
padding-right: 5rpx;
}
.footer-comment image{
width: 50rpx;
height: 50rpx;
padding-right: 5rpx;
}
/** 搜索样式 **/
.search-container{
width: 100%;
display: flex;
flex-direction: row;
justify-content: space-around;
align-items: center;
border-top-style:solid;
border-bottom-style:solid;
border-width:20rpx;
border-color: #F5F5F5;
}
.search-container .search{
width: 95%;
display: flex;
flex-direction: row;
margin-top: 15rpx;
margin-bottom: 15rpx;
}
.search .search-input{
background: #E6E6E6;
width:85%;
height: 75rpx;
font-weight: 200;
font-size: 30rpx;
text-align: center;
border-radius:15rpx 0 0 15rpx;
}
.search-image{
width: 15%;
background: #F5F5F5;
display: flex;
flex-direction: row;
justify-content: space-around;
align-items: center;
border-radius: 0 15rpx 15rpx 0;
}
.search-image image{
width: 40rpx;
height: 40rpx;
}
/** 消息盒子样式 **/
.message-tip{
width: 100%;
display: flex;
flex-direction: row;
justify-content: center;
height: 100rpx;
align-items: center;
background: white;
margin-top: 72rpx;
margin-bottom: -67rpx;
}
.message-tip .tip-content{
padding: 20rpx;
background: #575757;
color: white;
border-radius: 10rpx;
font-size: 30rpx;
display: flex;
flex-direction: row;
align-content: center;
justify-content: center;
}
.tip-content image{
width: 35rpx;
height: 35rpx;
}
.nickname{
color: #66CDAA;
font-weight: bold;
}
\ No newline at end of file
......@@ -3,7 +3,7 @@
<view class="bg-container">
<view class='bg-image'>
<!-- <image mode="aspectFill" src='http://image.kucaroom.com/tmp/wx0f587d7c97a68e2b.o6zAJs3oh85Zb1lJE8oWix57vny0.QEZuzGgsiSFtf6b9dd803a7fe4bf5f75b6afd5705a73.jpg'></image> -->
<image mode="aspectFill" src='./images/bgimg.jpg'></image>
<image mode="aspectFill" src='bgimg.jpg'></image>
</view>
<view>
<image class='user-image' src='{{avatar}}'></image>
......@@ -12,7 +12,7 @@
<view class='user-name'>{{nickname}}</view>
<view class='article'>
<view class="letter" >
<image src="./images/color-love.png"></image>
<image src="/image/color-love.png"></image>
</view>
<view>|</view>
......@@ -26,28 +26,28 @@
<view class='content-item sale' bindtap='openMessage'>
<view>
<image src='./images/my-message.png' class='item-image'></image>
<image src='/image/my-message.png' class='item-image'></image>
</view>
<view class='word'>消 息</view>
</view>
<view class='content-item say-love' bindtap="opendPostList">
<view>
<image src='./images/color-love.png' class='item-image'></image>
<image src='/image/color-love.png' class='item-image'></image>
</view>
<view class='word'>我的表白墙</view>
</view>
<view class='content-item say-love' bindtap="opendTopicList">
<view>
<image src='./images/topic.png' class='item-image'></image>
<image src='/image/topic.png' class='item-image'></image>
</view>
<view class='word'>我的话题</view>
</view>
<view class='content-item sale' bindtap="openSaleList">
<view>
<image src='./images/select-sale.png' class='item-image'></image>
<image src='/image/select-sale.png' class='item-image'></image>
</view>
<view class='word'>我的卖舍友</view>
</view>
......
// pages/personal/sale_list/sale_list.js
const app = getApp();
const util = require("../../utils/util.js");
const util = require("../../../utils/util.js");
let genderArray = ['', '', '人妖', '未知生物'];
......
const app = getApp();
const config = require("../../config.js");
const config = require("../../../config.js");
let genderArray = ['', '', '人妖', '未知生物'];
Page({
......@@ -437,7 +437,7 @@ Page({
*/
post: function() {
wx.navigateTo({
url: '/pages/post_sale/post_sale'
url: '/pages/sale/post_sale/post_sale'
})
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册