This commit is contained in:
英树 2019-07-24 15:52:07 +08:00
parent 602bacdc60
commit 33dcd6eb9c
16 changed files with 1529 additions and 1529 deletions

View File

@ -1,7 +1,7 @@
{
"permissions": {
"openapi": [
"templateMessage.send"
]
}
{
"permissions": {
"openapi": [
"templateMessage.send"
]
}
}

View File

@ -1,175 +1,175 @@
//拓展Format函数以获取时间
Date.prototype.Format = function(fmt) { //author: meizz
var o = {
"M+": this.getMonth() + 1, //月份
"d+": this.getDate(), //日
"h+": this.getHours(), //小时
"m+": this.getMinutes(), //分
"s+": this.getSeconds(), //秒
"S": this.getMilliseconds() //毫秒
};
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
for (var k in o)
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
return fmt;
}
// 云函数入口文件
const cloud = require('wx-server-sdk')
cloud.init()
const db = cloud.database();
//修改商品信息
var rewriteProduct = async (event) => {
//取出来
var oldPInfo = await db.collection('sM_productInfo').doc(event.productId).get();
//改信息
if(event.isSall) {
//卖出
var stats = 2;
oldPInfo.data.isSall = true;
} else {
//价格修改
var stats = 1;
if(event.newisFree) {
oldPInfo.data.price = "免费";
oldPInfo.data.isfree = true ;
}else {
oldPInfo.data.price = event.newPrice;
oldPInfo.data.isfree = false;
}
}
delete oldPInfo.data._id;
//放回去
var res = await db.collection('sM_productInfo').doc(event.productId).set({
data: oldPInfo.data
}).then(res => {
if(res.stats.updated === 0) {
return {
errCode: 201,
errMsg: '重写商品信息失败(id错误)',
id: event.productId
}
} else return {
errCode: 200,
errMsg: 'ok'
};
}).catch(err => {
return {
errCode: 202,
errMsg: '重写商品信息失败',
err: err,
}
})
if(res.errCode !== 200) return res;
else return {
errCode: 200,
errMsg:{
productInfo: oldPInfo.data,
stats: stats,
}
}
}
//给想要的人发通知
var sendMsg = async (event,productInfo,stats) => {
var wantList = productInfo.wantUser;
var length = wantList.length;
for (var i = 0; i < length; i++) {
await db.collection('sM_userInfo').doc(wantList[i]).update({
data: {
unreadMsg: db.command.push({
stats: stats,
productName: productInfo.title,
productId: event.productId,
time: (new Date(new Date().getTime() + 1000 * 60 * 60 * 8)).Format("yyyy-MM-dd hh:mm:ss"), //+8时差,
isWant: true,
})
}
})
}
}
//删掉本人的issue
var deleteIssue = async (userId,productId) => {
var userInfo = await db.collection('sM_userInfo').doc(userId).get();
userInfo = userInfo.data;
for(var i in userInfo.issue) {
if(userInfo.issue[i].id = productId) userInfo.issue.splice(i, 1);
}
delete userInfo._id;
var res = await db.collection('sM_userInfo').doc(userId).set({
data: userInfo
}).then(res => {
if(res.stats.updated === 0) {
return {
errCode: 203,
errMsg: '重写用户issue失败(id错误)',
id: userId
}
} else return {
errCode: 200,
errMsg: 'ok'
};
}).catch(err => {
return {
errCode: 204,
errMsg: '重写用户issue失败',
err: err,
}
})
return res;
}
// 云函数入口函数
exports.main = async (event, context) => {
var rewRes = await rewriteProduct(event);
if(rewRes.errCode !== 200) return rewRes;
if(rewRes.errMsg.stats==2) {
var delRes = await deleteIssue(event.userId,event.productId);
if(delRes.errCode !==200) return delRes;
}
await sendMsg(event,rewRes.errMsg.productInfo,rewRes.errMsg.stats);
return rewRes;
}
/*
api说明
功能用户可以在发布完商品的时候修改商品信息仅限于价格和是否售出
参数
productId:修改的产品id
newPrice:新价格
newisFree:是否免费
isSall:是否已经卖出
userId:用户id
备注isSall,userId newPrice,newisFree 二选一传参就行
作者RainSun
时间2019/05/01
*/
/*
错误报告
err表示catch函数返回的错误msg就是问题描述
正常
code:200
msg:正常的返回值或者'ok'
创建新商品失败(id错误)
code:201
msg:
id:
创建新商品失败
code: 202
msg:
err:
重写用户issue失败(id错误):
code: 203
msg:
id:
重写用户issue失败:
code:204
msg:
err:
*/
//拓展Format函数以获取时间
Date.prototype.Format = function(fmt) { //author: meizz
var o = {
"M+": this.getMonth() + 1, //月份
"d+": this.getDate(), //日
"h+": this.getHours(), //小时
"m+": this.getMinutes(), //分
"s+": this.getSeconds(), //秒
"S": this.getMilliseconds() //毫秒
};
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
for (var k in o)
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
return fmt;
}
// 云函数入口文件
const cloud = require('wx-server-sdk')
cloud.init()
const db = cloud.database();
//修改商品信息
var rewriteProduct = async (event) => {
//取出来
var oldPInfo = await db.collection('sM_productInfo').doc(event.productId).get();
//改信息
if(event.isSall) {
//卖出
var stats = 2;
oldPInfo.data.isSall = true;
} else {
//价格修改
var stats = 1;
if(event.newisFree) {
oldPInfo.data.price = "免费";
oldPInfo.data.isfree = true ;
}else {
oldPInfo.data.price = event.newPrice;
oldPInfo.data.isfree = false;
}
}
delete oldPInfo.data._id;
//放回去
var res = await db.collection('sM_productInfo').doc(event.productId).set({
data: oldPInfo.data
}).then(res => {
if(res.stats.updated === 0) {
return {
errCode: 201,
errMsg: '重写商品信息失败(id错误)',
id: event.productId
}
} else return {
errCode: 200,
errMsg: 'ok'
};
}).catch(err => {
return {
errCode: 202,
errMsg: '重写商品信息失败',
err: err,
}
})
if(res.errCode !== 200) return res;
else return {
errCode: 200,
errMsg:{
productInfo: oldPInfo.data,
stats: stats,
}
}
}
//给想要的人发通知
var sendMsg = async (event,productInfo,stats) => {
var wantList = productInfo.wantUser;
var length = wantList.length;
for (var i = 0; i < length; i++) {
await db.collection('sM_userInfo').doc(wantList[i]).update({
data: {
unreadMsg: db.command.push({
stats: stats,
productName: productInfo.title,
productId: event.productId,
time: (new Date(new Date().getTime() + 1000 * 60 * 60 * 8)).Format("yyyy-MM-dd hh:mm:ss"), //+8时差,
isWant: true,
})
}
})
}
}
//删掉本人的issue
var deleteIssue = async (userId,productId) => {
var userInfo = await db.collection('sM_userInfo').doc(userId).get();
userInfo = userInfo.data;
for(var i in userInfo.issue) {
if(userInfo.issue[i].id = productId) userInfo.issue.splice(i, 1);
}
delete userInfo._id;
var res = await db.collection('sM_userInfo').doc(userId).set({
data: userInfo
}).then(res => {
if(res.stats.updated === 0) {
return {
errCode: 203,
errMsg: '重写用户issue失败(id错误)',
id: userId
}
} else return {
errCode: 200,
errMsg: 'ok'
};
}).catch(err => {
return {
errCode: 204,
errMsg: '重写用户issue失败',
err: err,
}
})
return res;
}
// 云函数入口函数
exports.main = async (event, context) => {
var rewRes = await rewriteProduct(event);
if(rewRes.errCode !== 200) return rewRes;
if(rewRes.errMsg.stats==2) {
var delRes = await deleteIssue(event.userId,event.productId);
if(delRes.errCode !==200) return delRes;
}
await sendMsg(event,rewRes.errMsg.productInfo,rewRes.errMsg.stats);
return rewRes;
}
/*
api说明
功能用户可以在发布完商品的时候修改商品信息仅限于价格和是否售出
参数
productId:修改的产品id
newPrice:新价格
newisFree:是否免费
isSall:是否已经卖出
userId:用户id
备注isSall,userId newPrice,newisFree 二选一传参就行
作者RainSun
时间2019/05/01
*/
/*
错误报告
err表示catch函数返回的错误msg就是问题描述
正常
code:200
msg:正常的返回值或者'ok'
创建新商品失败(id错误)
code:201
msg:
id:
创建新商品失败
code: 202
msg:
err:
重写用户issue失败(id错误):
code: 203
msg:
id:
重写用户issue失败:
code:204
msg:
err:
*/

View File

@ -1,7 +1,7 @@
{
"permissions": {
"openapi": [
"templateMessage.send"
]
}
{
"permissions": {
"openapi": [
"templateMessage.send"
]
}
}

View File

@ -1,10 +1,10 @@
{
"userInfo":{"_id":"1669ff94-8f22-420e-8a88-28cceaaee0fa","userName":"英树君","userAvatarUrl":"https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTI6MHJogb2JUAgbJtnTpPB6WAs0e0sVcfAGx3DJE7B9krHLLwpMQSgoOLMhdbYkIlZznAnNXffELA/132","userId":"ee3099285cc0247005d90def39a28f1b","viewNum":83.0,"price":35.0,"isfree":false,"isSall":false,"adds":"长理南区","title":"小台灯","details":"毕业了,用不到了故转出","tag":"生活","photos":["cloud://cloud-83621f.636c-cloud-83621f/cherryStore/宣传.PNG","cloud://cloud-83621f.636c-cloud-83621f/styleDay/question3.jpg"],"sorttime":1.557808392e+09,"time":"20180102 11:32","comment":[{"name":"英树","avatar":"https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTI6MHJogb2JUAgbJtnTpPB6WAs0e0sVcfAGx3DJE7B9krHLLwpMQSgoOLMhdbYkIlZznAnNXffELA/132","userid":"ee3099285cc0247005d90def39a28f1b","time":"2019-05-17 18:23:25","msg":"好厉害啊"}],"wantUser":[]},
"title":"小台灯",
"details":"毕业了,用不到了故转出",
"adds":"长理南区",
"tag":"生活",
"price":35.0,
"isfree":false,
"photos":["cloud://cloud-83621f.636c-cloud-83621f/cherryStore/宣传.PNG"]
{
"userInfo":{"_id":"1669ff94-8f22-420e-8a88-28cceaaee0fa","userName":"英树君","userAvatarUrl":"https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTI6MHJogb2JUAgbJtnTpPB6WAs0e0sVcfAGx3DJE7B9krHLLwpMQSgoOLMhdbYkIlZznAnNXffELA/132","userId":"ee3099285cc0247005d90def39a28f1b","viewNum":83.0,"price":35.0,"isfree":false,"isSall":false,"adds":"长理南区","title":"小台灯","details":"毕业了,用不到了故转出","tag":"生活","photos":["cloud://cloud-83621f.636c-cloud-83621f/cherryStore/宣传.PNG","cloud://cloud-83621f.636c-cloud-83621f/styleDay/question3.jpg"],"sorttime":1.557808392e+09,"time":"20180102 11:32","comment":[{"name":"英树","avatar":"https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTI6MHJogb2JUAgbJtnTpPB6WAs0e0sVcfAGx3DJE7B9krHLLwpMQSgoOLMhdbYkIlZznAnNXffELA/132","userid":"ee3099285cc0247005d90def39a28f1b","time":"2019-05-17 18:23:25","msg":"好厉害啊"}],"wantUser":[]},
"title":"小台灯",
"details":"毕业了,用不到了故转出",
"adds":"长理南区",
"tag":"生活",
"price":35.0,
"isfree":false,
"photos":["cloud://cloud-83621f.636c-cloud-83621f/cherryStore/宣传.PNG"]
}

View File

@ -1,31 +1,31 @@
.UCenter-bg {
background-image: url(https://image.weilanwl.com/color2.0/index.jpg);
background-size: cover;
height: 700rpx;
display: flex;
justify-content: center;
padding-top: 40rpx;
overflow: hidden;
position: relative;
flex-direction: column;
align-items: center;
color: #fff;
font-weight: 300;
text-shadow: 0 0 3px rgba(0,0,0,0.3);
}
.UCenter-bg text{
opacity: 0.8;
}
.UCenter-bg image {
width: 250rpx;
height: 250rpx;
}
.UCenter-bg .animation-wave {
position: absolute;
bottom: 0;
}
Page {
background: #f1f1f1;
.UCenter-bg {
background-image: url(https://image.weilanwl.com/color2.0/index.jpg);
background-size: cover;
height: 700rpx;
display: flex;
justify-content: center;
padding-top: 40rpx;
overflow: hidden;
position: relative;
flex-direction: column;
align-items: center;
color: #fff;
font-weight: 300;
text-shadow: 0 0 3px rgba(0,0,0,0.3);
}
.UCenter-bg text{
opacity: 0.8;
}
.UCenter-bg image {
width: 250rpx;
height: 250rpx;
}
.UCenter-bg .animation-wave {
position: absolute;
bottom: 0;
}
Page {
background: #f1f1f1;
}

View File

@ -1,219 +1,219 @@
/* components/createProj/createProj.wxss */
.bg {
position: fixed;
top:0;
left:0;
z-index: -100;
background: linear-gradient(#449ffc, #72cfff); /*标准的语法*/
/* background: linear-gradient(#fa4639, #ff7a70); 标准的语法 */
height:100%;
width:100%;
}
.titleBg {
background: #449ffc;
/* background: #fa4639; */
position: fixed;
top:0;
left:0;
z-index:19;
}
.card {
height: auto;
padding-bottom:70rpx;
width:90%;
margin: 0 auto;
margin-top:30rpx;
box-shadow: #fff 0 0 20rpx;
background:#fff;
border-radius: 15rpx;
}
.card-icon-1 {
color:#449ffc;
/* color:#fc4d44; */
text-align:center;
padding-top:30rpx;
}
.card-title {
color:#449ffc;
/* color:#fc4d44; */
font-size: 35rpx;
letter-spacing: 3rpx;
margin-top:15rpx;
text-align: center;
}
.card form input, .card form textarea {
background: #f4f9ff;
/* background: #fff5f5; */
border: 1px #e1effd solid;
/* border: 1px #fae2e1 solid; */
width:90%;
margin: 0 auto;
border-radius: 5rpx;
height:80rpx;
margin-top: 30rpx;
padding: 0 15rpx;
color: #449ffc;
/* color: #fc4d44; */
font-size:30rpx;
position: relative;
}
.placeholder {
color:#a4c5ed;
/* color:#eda7a4; */
height: 30rpx;
font-size: 30rpx;
position: absolute;
top:10rpx;
left:15rpx;
}
.card form textarea {
height: 150rpx;
padding: 15rpx !important;
}
.link-box {
height:120rpx;
width:75%;
margin: 0 auto;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
margin-top:-40rpx;
margin-bottom:-70rpx;
}
.link-item {
height:120rpx;
width:40rpx;
position: relative;
}
.link-dote-top {
height:20rpx;
width:20rpx;
background: #b9d4f7;
/* background: #f7bdba; */
border-radius: 50%;
position: absolute;
top:0;
left:10rpx;
z-index:10;
}
.link-dote-bottom {
height:20rpx;
width:20rpx;
background: #b9d4f7;
/* background: #f7bdba; */
border-radius: 50%;
position: absolute;
bottom:0;
left:10rpx;
z-index:10;
}
.link-line {
height:100rpx;
width:10rpx;
position: absolute;
top:10rpx;
left:15rpx;
background: #e5eef9;
/* background: #fae7e6; */
z-index:11;
border-radius: 5rpx;
}
.labal {
/* color: #fc4d44; */
color: #449ffc;
width: 90%;
margin: 0 auto;
padding-top: 40rpx;
font-size: 30rpx;
}
.tag-box {
width:90%;
margin: 0 auto;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding-top:20rpx;
}
.tag-box .tag {
height: 50rpx;
width: 100rpx;
border: 1px #e1effd solid;
color:#a4c5ed;
background: #f4f9ff;
/* border: 1px #fae5e3 solid; */
/* color:#eba8a4; */
/* background: #fff5f5; */
line-height: 50rpx;
text-align: center;
}
.tag-box .cur {
background: #cce6ff !important;
color: #0081ff;
/* background: #ffcfcc !important;
color: #ff0f03; */
border: none;
}
.submit {
width:90%;
height: 90rpx;
box-shadow: #fff 0 0 20rpx;
background:#fff;
border-radius: 15rpx;
color: #449ffc;
/* color: #fa4639; */
margin-top:30rpx;
margin-bottom:50rpx;
}
.cancel-button {
border: 1px #449ffc solid;
color: #449ffc;
/* border: 1px #fa4639 solid; */
/* color: #fa4639; */
background-color: transparent !important;
}
.confirm-button {
background: #449ffc !important;
/* background: #fa4639 !important; */
color:#fff;
}
.card .cu-bar {
width: 90%;
margin: 0 auto;
}
.card .cu-bar .action:first-child {
margin-left:0;
}
.card .cu-bar .action:last-child {
margin-right:0;
}
.card .cu-form-group {
width:90%;
margin:0 auto;
padding:0;
/* components/createProj/createProj.wxss */
.bg {
position: fixed;
top:0;
left:0;
z-index: -100;
background: linear-gradient(#449ffc, #72cfff); /*标准的语法*/
/* background: linear-gradient(#fa4639, #ff7a70); 标准的语法 */
height:100%;
width:100%;
}
.titleBg {
background: #449ffc;
/* background: #fa4639; */
position: fixed;
top:0;
left:0;
z-index:19;
}
.card {
height: auto;
padding-bottom:70rpx;
width:90%;
margin: 0 auto;
margin-top:30rpx;
box-shadow: #fff 0 0 20rpx;
background:#fff;
border-radius: 15rpx;
}
.card-icon-1 {
color:#449ffc;
/* color:#fc4d44; */
text-align:center;
padding-top:30rpx;
}
.card-title {
color:#449ffc;
/* color:#fc4d44; */
font-size: 35rpx;
letter-spacing: 3rpx;
margin-top:15rpx;
text-align: center;
}
.card form input, .card form textarea {
background: #f4f9ff;
/* background: #fff5f5; */
border: 1px #e1effd solid;
/* border: 1px #fae2e1 solid; */
width:90%;
margin: 0 auto;
border-radius: 5rpx;
height:80rpx;
margin-top: 30rpx;
padding: 0 15rpx;
color: #449ffc;
/* color: #fc4d44; */
font-size:30rpx;
position: relative;
}
.placeholder {
color:#a4c5ed;
/* color:#eda7a4; */
height: 30rpx;
font-size: 30rpx;
position: absolute;
top:10rpx;
left:15rpx;
}
.card form textarea {
height: 150rpx;
padding: 15rpx !important;
}
.link-box {
height:120rpx;
width:75%;
margin: 0 auto;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
margin-top:-40rpx;
margin-bottom:-70rpx;
}
.link-item {
height:120rpx;
width:40rpx;
position: relative;
}
.link-dote-top {
height:20rpx;
width:20rpx;
background: #b9d4f7;
/* background: #f7bdba; */
border-radius: 50%;
position: absolute;
top:0;
left:10rpx;
z-index:10;
}
.link-dote-bottom {
height:20rpx;
width:20rpx;
background: #b9d4f7;
/* background: #f7bdba; */
border-radius: 50%;
position: absolute;
bottom:0;
left:10rpx;
z-index:10;
}
.link-line {
height:100rpx;
width:10rpx;
position: absolute;
top:10rpx;
left:15rpx;
background: #e5eef9;
/* background: #fae7e6; */
z-index:11;
border-radius: 5rpx;
}
.labal {
/* color: #fc4d44; */
color: #449ffc;
width: 90%;
margin: 0 auto;
padding-top: 40rpx;
font-size: 30rpx;
}
.tag-box {
width:90%;
margin: 0 auto;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding-top:20rpx;
}
.tag-box .tag {
height: 50rpx;
width: 100rpx;
border: 1px #e1effd solid;
color:#a4c5ed;
background: #f4f9ff;
/* border: 1px #fae5e3 solid; */
/* color:#eba8a4; */
/* background: #fff5f5; */
line-height: 50rpx;
text-align: center;
}
.tag-box .cur {
background: #cce6ff !important;
color: #0081ff;
/* background: #ffcfcc !important;
color: #ff0f03; */
border: none;
}
.submit {
width:90%;
height: 90rpx;
box-shadow: #fff 0 0 20rpx;
background:#fff;
border-radius: 15rpx;
color: #449ffc;
/* color: #fa4639; */
margin-top:30rpx;
margin-bottom:50rpx;
}
.cancel-button {
border: 1px #449ffc solid;
color: #449ffc;
/* border: 1px #fa4639 solid; */
/* color: #fa4639; */
background-color: transparent !important;
}
.confirm-button {
background: #449ffc !important;
/* background: #fa4639 !important; */
color:#fff;
}
.card .cu-bar {
width: 90%;
margin: 0 auto;
}
.card .cu-bar .action:first-child {
margin-left:0;
}
.card .cu-bar .action:last-child {
margin-right:0;
}
.card .cu-form-group {
width:90%;
margin:0 auto;
padding:0;
}

View File

@ -1,35 +1,35 @@
/* components/examine/examine.wxss */
@import "../details/details.wxss";
.examine-box {
position: fixed;
bottom:0;
width:100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding: 30rpx 20rpx;
height: 140rpx;
}
.examine-box .pass , .examine-box .fail{
color:#fff;
width: 45%;
height:100%;
border-radius: 50rpx;
line-height:80rpx;
text-align: center;
font-size: 35rpx;
letter-spacing: 4rpx;
}
.examine-box .pass {
background:#f37b1d;
box-shadow: #f37b1d 0 0 15rpx;
}
.examine-box .fail {
background:#e54d42;
box-shadow: #e54d42 0 0 15rpx;
/* components/examine/examine.wxss */
@import "../details/details.wxss";
.examine-box {
position: fixed;
bottom:0;
width:100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding: 30rpx 20rpx;
height: 140rpx;
}
.examine-box .pass , .examine-box .fail{
color:#fff;
width: 45%;
height:100%;
border-radius: 50rpx;
line-height:80rpx;
text-align: center;
font-size: 35rpx;
letter-spacing: 4rpx;
}
.examine-box .pass {
background:#f37b1d;
box-shadow: #f37b1d 0 0 15rpx;
}
.examine-box .fail {
background:#e54d42;
box-shadow: #e54d42 0 0 15rpx;
}

View File

@ -1,50 +1,50 @@
/* components/fuzzySearch/fuzzySearch.wxss */
@import '../homePage/homePage.wxss';
.histroy-box {
margin:20rpx;
}
.histroy-title-box {
width:100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
margin-bottom: 20rpx;
}
.histroy-title-box .title {
font-weight: 600;
color: #000;
font-size: 25rpx;
}
.histroy-title-box text {
font-size: 40rpx;
color:#989898;
}
.histroy-empty {
color: #989898;
}
.histroy-item {
width:100%;
display: flex;
flex-direction: row;
height: auto;
justify-content: flex-start;
flex-wrap: wrap;
}
.histroy-info {
height:50rpx;
line-height: 50rpx;
font-size: 25rpx;
background: #f5f5f5;
border-radius: 30rpx;
width:auto;
padding: 0 30rpx;
margin: 0 20rpx 20rpx 0;
/* components/fuzzySearch/fuzzySearch.wxss */
@import '../homePage/homePage.wxss';
.histroy-box {
margin:20rpx;
}
.histroy-title-box {
width:100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
margin-bottom: 20rpx;
}
.histroy-title-box .title {
font-weight: 600;
color: #000;
font-size: 25rpx;
}
.histroy-title-box text {
font-size: 40rpx;
color:#989898;
}
.histroy-empty {
color: #989898;
}
.histroy-item {
width:100%;
display: flex;
flex-direction: row;
height: auto;
justify-content: flex-start;
flex-wrap: wrap;
}
.histroy-info {
height:50rpx;
line-height: 50rpx;
font-size: 25rpx;
background: #f5f5f5;
border-radius: 30rpx;
width:auto;
padding: 0 30rpx;
margin: 0 20rpx 20rpx 0;
}

View File

@ -1,359 +1,359 @@
// components/inform/inform.js
Page({
/**
* 页面的初始数据
*/
data: {
pageName:'',
pagetype:1,
userInfoDetail:null,
inputList:{},
list:null,
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
wx.cloud.init();
this.processMsg(options.pagetype);
wx.hideShareMenu();
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
if(this.data.pagetype == 4) this.getExamineList();
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
},
processMsg(pagetype) {
var pageName = "";
if(pagetype == 1 ) pageName = "我的发布";
if(pagetype == 2 ) pageName = "我的收藏";
if(pagetype == 3 ) pageName = "我的消息";
if(pagetype == 4 ) pageName = "待审核";
var userInfoDetail = wx.getStorageSync('userInfoDetail')
userInfoDetail.unreadMsg.reverse();
this.setData({
pageName:pageName,
pagetype:pagetype,
userInfoDetail:userInfoDetail,
})
wx.hideLoading();
if(pagetype == 4) this.getExamineList();
},
input(e) {
if(e.detail.value) {
this.data.inputList[e.target.dataset.inputnum] = e.detail.value;
} else {
this.data.inputList[e.target.dataset.inputnum] = null;
}
},
//修改价格
changePrice(e) {
var index = e.target.dataset.index;
if(this.data.inputList[index]==0) {
var newisFree = true
} else if(this.data.inputList[index]){
var newisFree = false
} else { //没填钱数
wx.showToast({
title: '请输入内容',
image:'../../images/info.png',
duration: 2000
})
return
}
wx.showLoading({
title:'操作中',
mask:true,
})
var data = {
productId:this.data.userInfoDetail.issue[index].id,
newPrice: this.data.inputList[index],
newisFree:newisFree,
}
wx.cloud.callFunction({
name: 'sM_rewriteProduct',
data: data
}).then(res => {
wx.hideLoading();
if(res.result.errCode !== 200) {
wx.showToast({
title:'错误码:'+res.result.errCode,
image:'../../images/info.png',
duration: 2000
})
} else {
wx.showToast({
title: '操作成功',
duration: 1000,
})
wx.setStorageSync('refreshMain',true)
}
}).catch(err => {
wx.hideLoading();
wx.showToast({
title:'操作失败,请重试',
image:'../../images/info.png',
duration: 2000
})
console.log(err)
})
},
//点击卖出
bindtapSale(e) {
//由于只是改了一下isSall的参数所以理论上是可以复原的以后作为更新再写吧
var that = this;
wx.showModal({
title: '警告',
content: '此操作不可恢复,是否继续',
confirmText:'继续',
success (res) {
if (res.confirm) {//确定
wx.showLoading({
title:'操作中',
mask:true,
})
that.hasSale(e.target.dataset.index);
} else if (res.cancel) { //取消
return
}
}
})
},
//卖出操作
hasSale(index) {
var that = this;
var data = {
productId : this.data.userInfoDetail.issue[index].id,
isSall:true,
userId : this.data.userInfoDetail._id
}
wx.cloud.callFunction({
name: 'sM_rewriteProduct',
data: data
}).then(res => {
console.log(res.result)
wx.hideLoading();
if(res.result.errCode !== 200) {
wx.showToast({
title:'错误码:'+res.result.errCode,
image:'../../images/info.png',
duration: 2000
})
} else {
wx.showToast({
title: '操作成功',
duration: 1000,
})
wx.setStorageSync('refreshMain',true)
wx.setStorageSync('refreshMine',true)
wx.navigateBack({
delta: 1
});
}
}).catch(err => {
wx.hideLoading();
wx.showToast({
title:'操作失败,请重试',
image:'../../images/info.png',
duration: 2000
})
console.log(err)
})
},
//点击取消收藏
bindCancalWant(e) {
var that = this;
wx.showModal({
title: '警告',
content: '您确定要继续操作吗?',
confirmText:'继续',
success (res) {
if (res.confirm) {//确定
wx.showLoading({
title:'操作中',
mask:true,
})
that.cancalWant(e.target.dataset.productid);
} else if (res.cancel) { //取消
return
}
}
})
},
//取消收藏
//因为就算商品卖出了也只是改了一个参数,所以用户取消收藏也可以正常进行,否则卖出商品的时候一个一个人的删除收藏开销太大;
cancalWant(productId) {
wx.cloud.callFunction({
name: 'sM_want',
data: {
isWant:false,
productId:productId,
userInfos:this.data.userInfoDetail,
}
}).then(res => {
console.log(res.result)
if(res.result.errCode!== 200) { //报错
wx.hideLoading();
wx.showToast({
title: '错误码:'+ res.result.errCode,
image:'../../images/info.png',
duration: 2000
})
} else { //正常
wx.hideLoading();
wx.showToast({
title: '操作成功',
icon: 'success',
duration: 2000
})
wx.setStorageSync('refreshMain',true)
wx.setStorageSync('refreshMine',true)
wx.navigateBack({
delta: 1
});
}
}).catch(err => {
console.log(err);
wx.hideLoading();
wx.showToast({
title: '操作失败',
image:'../../images/info.png',
duration: 2000
})
})
},
//点击商品跳转详情
jumpToDetail(event) {
var url = '../details/details?productId='+event.currentTarget.dataset.productid;
wx.navigateTo({
url: url
})
},
//点击清空消息
bindclearMsg() {
var that = this;
wx.showModal({
title: '警告',
content: '您确定要继续操作吗?',
confirmText:'继续',
success (res) {
if (res.confirm) {//确定
wx.showLoading({
title:'操作中',
mask:true,
})
that.clearMsg();
} else if (res.cancel) { //取消
return
}
}
})
},
clearMsg() {
const db = wx.cloud.database();
db.collection('sM_userInfo').doc(this.data.userInfoDetail._id).update({
data:{
unreadMsg:db.command.set(new Array())
}
}).then(res=> {
if(res.stats.updated == 1) {
//成功
wx.showToast({
title: '操作成功',
icon: 'success',
duration: 2000
})
wx.setStorageSync('refreshMain',true)
wx.setStorageSync('refreshMine',true)
wx.navigateBack({
delta: 1
});
} else {
wx.hideLoading();
wx.showToast({
title: '操作失败',
image:'../../images/info.png',
duration: 2000
})
}
}).catch(err=> {
wx.hideLoading();
wx.showToast({
title: '操作失败',
image:'../../images/info.png',
duration: 2000
})
})
},
getExamineList() {
const db = wx.cloud.database();
db.collection('sM_examine').get().then(res => {
this.setData({
list:res.data
})
})
},
jumpToExamine(event) {
var url = '../examine/examine?id='+event.currentTarget.dataset.productid+'&fromapp=true';
wx.navigateTo({
url: url
})
}
// components/inform/inform.js
Page({
/**
* 页面的初始数据
*/
data: {
pageName:'',
pagetype:1,
userInfoDetail:null,
inputList:{},
list:null,
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
wx.cloud.init();
this.processMsg(options.pagetype);
wx.hideShareMenu();
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
if(this.data.pagetype == 4) this.getExamineList();
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
},
processMsg(pagetype) {
var pageName = "";
if(pagetype == 1 ) pageName = "我的发布";
if(pagetype == 2 ) pageName = "我的收藏";
if(pagetype == 3 ) pageName = "我的消息";
if(pagetype == 4 ) pageName = "待审核";
var userInfoDetail = wx.getStorageSync('userInfoDetail')
userInfoDetail.unreadMsg.reverse();
this.setData({
pageName:pageName,
pagetype:pagetype,
userInfoDetail:userInfoDetail,
})
wx.hideLoading();
if(pagetype == 4) this.getExamineList();
},
input(e) {
if(e.detail.value) {
this.data.inputList[e.target.dataset.inputnum] = e.detail.value;
} else {
this.data.inputList[e.target.dataset.inputnum] = null;
}
},
//修改价格
changePrice(e) {
var index = e.target.dataset.index;
if(this.data.inputList[index]==0) {
var newisFree = true
} else if(this.data.inputList[index]){
var newisFree = false
} else { //没填钱数
wx.showToast({
title: '请输入内容',
image:'../../images/info.png',
duration: 2000
})
return
}
wx.showLoading({
title:'操作中',
mask:true,
})
var data = {
productId:this.data.userInfoDetail.issue[index].id,
newPrice: this.data.inputList[index],
newisFree:newisFree,
}
wx.cloud.callFunction({
name: 'sM_rewriteProduct',
data: data
}).then(res => {
wx.hideLoading();
if(res.result.errCode !== 200) {
wx.showToast({
title:'错误码:'+res.result.errCode,
image:'../../images/info.png',
duration: 2000
})
} else {
wx.showToast({
title: '操作成功',
duration: 1000,
})
wx.setStorageSync('refreshMain',true)
}
}).catch(err => {
wx.hideLoading();
wx.showToast({
title:'操作失败,请重试',
image:'../../images/info.png',
duration: 2000
})
console.log(err)
})
},
//点击卖出
bindtapSale(e) {
//由于只是改了一下isSall的参数所以理论上是可以复原的以后作为更新再写吧
var that = this;
wx.showModal({
title: '警告',
content: '此操作不可恢复,是否继续',
confirmText:'继续',
success (res) {
if (res.confirm) {//确定
wx.showLoading({
title:'操作中',
mask:true,
})
that.hasSale(e.target.dataset.index);
} else if (res.cancel) { //取消
return
}
}
})
},
//卖出操作
hasSale(index) {
var that = this;
var data = {
productId : this.data.userInfoDetail.issue[index].id,
isSall:true,
userId : this.data.userInfoDetail._id
}
wx.cloud.callFunction({
name: 'sM_rewriteProduct',
data: data
}).then(res => {
console.log(res.result)
wx.hideLoading();
if(res.result.errCode !== 200) {
wx.showToast({
title:'错误码:'+res.result.errCode,
image:'../../images/info.png',
duration: 2000
})
} else {
wx.showToast({
title: '操作成功',
duration: 1000,
})
wx.setStorageSync('refreshMain',true)
wx.setStorageSync('refreshMine',true)
wx.navigateBack({
delta: 1
});
}
}).catch(err => {
wx.hideLoading();
wx.showToast({
title:'操作失败,请重试',
image:'../../images/info.png',
duration: 2000
})
console.log(err)
})
},
//点击取消收藏
bindCancalWant(e) {
var that = this;
wx.showModal({
title: '警告',
content: '您确定要继续操作吗?',
confirmText:'继续',
success (res) {
if (res.confirm) {//确定
wx.showLoading({
title:'操作中',
mask:true,
})
that.cancalWant(e.target.dataset.productid);
} else if (res.cancel) { //取消
return
}
}
})
},
//取消收藏
//因为就算商品卖出了也只是改了一个参数,所以用户取消收藏也可以正常进行,否则卖出商品的时候一个一个人的删除收藏开销太大;
cancalWant(productId) {
wx.cloud.callFunction({
name: 'sM_want',
data: {
isWant:false,
productId:productId,
userInfos:this.data.userInfoDetail,
}
}).then(res => {
console.log(res.result)
if(res.result.errCode!== 200) { //报错
wx.hideLoading();
wx.showToast({
title: '错误码:'+ res.result.errCode,
image:'../../images/info.png',
duration: 2000
})
} else { //正常
wx.hideLoading();
wx.showToast({
title: '操作成功',
icon: 'success',
duration: 2000
})
wx.setStorageSync('refreshMain',true)
wx.setStorageSync('refreshMine',true)
wx.navigateBack({
delta: 1
});
}
}).catch(err => {
console.log(err);
wx.hideLoading();
wx.showToast({
title: '操作失败',
image:'../../images/info.png',
duration: 2000
})
})
},
//点击商品跳转详情
jumpToDetail(event) {
var url = '../details/details?productId='+event.currentTarget.dataset.productid;
wx.navigateTo({
url: url
})
},
//点击清空消息
bindclearMsg() {
var that = this;
wx.showModal({
title: '警告',
content: '您确定要继续操作吗?',
confirmText:'继续',
success (res) {
if (res.confirm) {//确定
wx.showLoading({
title:'操作中',
mask:true,
})
that.clearMsg();
} else if (res.cancel) { //取消
return
}
}
})
},
clearMsg() {
const db = wx.cloud.database();
db.collection('sM_userInfo').doc(this.data.userInfoDetail._id).update({
data:{
unreadMsg:db.command.set(new Array())
}
}).then(res=> {
if(res.stats.updated == 1) {
//成功
wx.showToast({
title: '操作成功',
icon: 'success',
duration: 2000
})
wx.setStorageSync('refreshMain',true)
wx.setStorageSync('refreshMine',true)
wx.navigateBack({
delta: 1
});
} else {
wx.hideLoading();
wx.showToast({
title: '操作失败',
image:'../../images/info.png',
duration: 2000
})
}
}).catch(err=> {
wx.hideLoading();
wx.showToast({
title: '操作失败',
image:'../../images/info.png',
duration: 2000
})
})
},
getExamineList() {
const db = wx.cloud.database();
db.collection('sM_examine').get().then(res => {
this.setData({
list:res.data
})
})
},
jumpToExamine(event) {
var url = '../examine/examine?id='+event.currentTarget.dataset.productid+'&fromapp=true';
wx.navigateTo({
url: url
})
}
})

View File

@ -1,148 +1,148 @@
<!--components/inform/inform.wxml-->
<cu-custom bgColor="bg-gradual-green" isBack="{{true}}"><view slot="backText">返回</view><view slot="content">{{pageName}}</view></cu-custom>
<view class="issue-box" wx:if="{{pagetype==1}}">
<view class="issue-list">
<view class="issue-item" wx:for="{{userInfoDetail.issue}}" wx:key>
<view class="issue-top" data-productid="{{item.id}}" bindtap="jumpToDetail">
<view class="issue-num">{{index+1}}</view>
<view class="issue-main">
<view class="issue-title">{{item.title}}</view>
<view class="issue-detail">{{item.details}}</view>
</view>
</view>
<view class="issue-changePrice">
<input class="issue-input" placeholder="修改价格,填0免费" type="number" data-inputNum="{{index}}" bindinput="input"/>
<view class="issue-submit" data-index="{{index}}" catchtap="changePrice">修改价格</view>
<view class="issue-hassale"data-index="{{index}}" catchtap="bindtapSale">卖出</view>
</view>
</view>
</view>
</view>
<view class="want-box" wx:if="{{pagetype==2}}">
<view class="want-list">
<view class="want-item" wx:for="{{userInfoDetail.want}}" wx:key data-productid="{{item.productId}}" bindtap="jumpToDetail">
<view class="want-main">
<view class="want-num">{{index+1}}</view>
<view class="want-title">{{item.productName}}</view>
</view>
<view class="want-cancal" data-productid="{{item.productId}}" catchtap="bindCancalWant">取消收藏</view>
</view>
</view>
</view>
<view class="msg-box" wx:if="{{pagetype==3}}">
<view class="unreadMsg-list">
<view class="unreadMsg-item" wx:for="{{userInfoDetail.unreadMsg}}" wx:key="{{index}}" data-productid="{{item.productId}}" bindtap="jumpToDetail">
<view class="unreadMsg-top">
<view class="unreadMsg-title">
<view style="font-size: 50rpx;" class="unreadMsg-icon {{msgProcess.style(item)}}" ></view>
<view class="unreadMsg-titleWord">{{msgProcess.titleWord(item)}}</view>
</view>
<view class="unreadMsg-time">{{item.ago}}</view>
</view>
<view class="unreadMsg-main">{{msgProcess.mainWord(item)}}</view>
</view>
</view>
</view>
<!-- 清除消息 -->
<view class="clearMsg-button" bindtap="bindclearMsg" wx:if="{{pagetype==3}}">
<view class="icon-delete" style="font-size:50rpx;"></view>
</view>
<!-- 商品列表 -->
<view class="product-list" wx:if="{{pagetype==4}}">
<view class="product-item" wx:for="{{list}}" wx:key data-productId="{{item._id}}" bindtap="jumpToExamine">
<view class="user-box">
<image src="{{item.userInfo.avatarUrl}}" />
<view class="user-info">
<view class="user-name">{{item.userInfo.userName}}</view>
<view class="user-time">{{item.time}}</view>
</view>
<view class="pro-price">
¥{{item.price}}
</view>
</view>
<view class="pro-title">#{{item.title}}#</view>
<view class="pro-detail">{{item.details}}</view>
<image mode='widthFix' class="pro-img" src="{{item.photos[0]}}" />
<view class='pro-footer'>
<view class="pro-tag">
<view class="padding-xs">
<view class="cu-tag {{tagColor.style(item.tag)}} light">{{item.tag}}</view>
<view class="cu-tag {{tagColor.style(item.adds)}} light">{{item.adds}}</view>
</view>
</view>
<view class="text-gray text-sm">
</view>
</view>
</view>
</view>
<wxs module="msgProcess">
var titleWord = function(item){
if(item.isWant) {
if(item.stats == 1) return '价格变动';
else if(item.stats == 2) return '已卖出';
} else {
if(item.iscomment) return '有新评论';
else return '有新回复';
}
};
var mainWord = function(item) {
var title = titleWord(item);
var main = '商品"' + item.productName +'"'+ title;
return main;
}
var style = function(item){
if(item.isWant) {
if(item.stats == 1) return 'icon-refund text-yellow';
else if(item.stats == 2) return 'icon-delete text-red';
} else {
if(item.iscomment) return 'icon-message text-green';
else return 'icon-mark text-blue';
}
};
module.exports.titleWord = titleWord;
module.exports.mainWord = mainWord;
module.exports.style = style;
</wxs>
<wxs module="tagColor">
var colorClass = function(item){
switch(item){
case "图书":
return 'bg-cyan';
break;
case "电子":
return 'bg-orange';
break;
case "体育":
return 'bg-yellow';
break;
case "乐器":
return 'bg-green';
break;
case "生活":
return 'bg-red';
break;
case "长理南区":
return 'bg-blue';
break;
case "长理东区":
return 'bg-brown';
break;
case "长理西区":
return 'bg-pink';
break;
}
};
module.exports.style = colorClass;
<!--components/inform/inform.wxml-->
<cu-custom bgColor="bg-gradual-green" isBack="{{true}}"><view slot="backText">返回</view><view slot="content">{{pageName}}</view></cu-custom>
<view class="issue-box" wx:if="{{pagetype==1}}">
<view class="issue-list">
<view class="issue-item" wx:for="{{userInfoDetail.issue}}" wx:key>
<view class="issue-top" data-productid="{{item.id}}" bindtap="jumpToDetail">
<view class="issue-num">{{index+1}}</view>
<view class="issue-main">
<view class="issue-title">{{item.title}}</view>
<view class="issue-detail">{{item.details}}</view>
</view>
</view>
<view class="issue-changePrice">
<input class="issue-input" placeholder="修改价格,填0免费" type="number" data-inputNum="{{index}}" bindinput="input"/>
<view class="issue-submit" data-index="{{index}}" catchtap="changePrice">修改价格</view>
<view class="issue-hassale"data-index="{{index}}" catchtap="bindtapSale">卖出</view>
</view>
</view>
</view>
</view>
<view class="want-box" wx:if="{{pagetype==2}}">
<view class="want-list">
<view class="want-item" wx:for="{{userInfoDetail.want}}" wx:key data-productid="{{item.productId}}" bindtap="jumpToDetail">
<view class="want-main">
<view class="want-num">{{index+1}}</view>
<view class="want-title">{{item.productName}}</view>
</view>
<view class="want-cancal" data-productid="{{item.productId}}" catchtap="bindCancalWant">取消收藏</view>
</view>
</view>
</view>
<view class="msg-box" wx:if="{{pagetype==3}}">
<view class="unreadMsg-list">
<view class="unreadMsg-item" wx:for="{{userInfoDetail.unreadMsg}}" wx:key="{{index}}" data-productid="{{item.productId}}" bindtap="jumpToDetail">
<view class="unreadMsg-top">
<view class="unreadMsg-title">
<view style="font-size: 50rpx;" class="unreadMsg-icon {{msgProcess.style(item)}}" ></view>
<view class="unreadMsg-titleWord">{{msgProcess.titleWord(item)}}</view>
</view>
<view class="unreadMsg-time">{{item.ago}}</view>
</view>
<view class="unreadMsg-main">{{msgProcess.mainWord(item)}}</view>
</view>
</view>
</view>
<!-- 清除消息 -->
<view class="clearMsg-button" bindtap="bindclearMsg" wx:if="{{pagetype==3}}">
<view class="icon-delete" style="font-size:50rpx;"></view>
</view>
<!-- 商品列表 -->
<view class="product-list" wx:if="{{pagetype==4}}">
<view class="product-item" wx:for="{{list}}" wx:key data-productId="{{item._id}}" bindtap="jumpToExamine">
<view class="user-box">
<image src="{{item.userInfo.avatarUrl}}" />
<view class="user-info">
<view class="user-name">{{item.userInfo.userName}}</view>
<view class="user-time">{{item.time}}</view>
</view>
<view class="pro-price">
¥{{item.price}}
</view>
</view>
<view class="pro-title">#{{item.title}}#</view>
<view class="pro-detail">{{item.details}}</view>
<image mode='widthFix' class="pro-img" src="{{item.photos[0]}}" />
<view class='pro-footer'>
<view class="pro-tag">
<view class="padding-xs">
<view class="cu-tag {{tagColor.style(item.tag)}} light">{{item.tag}}</view>
<view class="cu-tag {{tagColor.style(item.adds)}} light">{{item.adds}}</view>
</view>
</view>
<view class="text-gray text-sm">
</view>
</view>
</view>
</view>
<wxs module="msgProcess">
var titleWord = function(item){
if(item.isWant) {
if(item.stats == 1) return '价格变动';
else if(item.stats == 2) return '已卖出';
} else {
if(item.iscomment) return '有新评论';
else return '有新回复';
}
};
var mainWord = function(item) {
var title = titleWord(item);
var main = '商品"' + item.productName +'"'+ title;
return main;
}
var style = function(item){
if(item.isWant) {
if(item.stats == 1) return 'icon-refund text-yellow';
else if(item.stats == 2) return 'icon-delete text-red';
} else {
if(item.iscomment) return 'icon-message text-green';
else return 'icon-mark text-blue';
}
};
module.exports.titleWord = titleWord;
module.exports.mainWord = mainWord;
module.exports.style = style;
</wxs>
<wxs module="tagColor">
var colorClass = function(item){
switch(item){
case "图书":
return 'bg-cyan';
break;
case "电子":
return 'bg-orange';
break;
case "体育":
return 'bg-yellow';
break;
case "乐器":
return 'bg-green';
break;
case "生活":
return 'bg-red';
break;
case "长理南区":
return 'bg-blue';
break;
case "长理东区":
return 'bg-brown';
break;
case "长理西区":
return 'bg-pink';
break;
}
};
module.exports.style = colorClass;
</wxs>

View File

@ -1,219 +1,219 @@
/* components/inform/inform.wxss */
@import'../homePage/homePage.wxss';
page {
background: #f1f1f1;
}
.issue-box, .want-box, .msg-box{
width:100%;
height: auto;
}
.issue-list, .want-list, .unreadMsg-list {
padding-left:20rpx;
padding-right:20rpx;
width:100%;
display: flex;
flex-direction: column;
}
.issue-item {
height: auto;
margin-top:50rpx;
box-shadow: #eee 0 0 20rpx;
background:#fff;
border-radius: 15rpx;
border: 1px #eee solid;
display: flex;
flex-direction: column;
overflow: hidden;
}
.issue-top {
min-height: 150rpx;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
border-bottom:1px #eee solid;
}
.issue-num {
width:20%;
height: 80%;
text-align: center;
font-size: 50rpx;
font-weight: 100;
border-right: 1px #eee solid;
}
.issue-main {
width:75%;
padding-right:20rpx;
}
.issue-title {
font-size: 35rpx;
font-weight: 600;
margin-bottom:5rpx;
}
.issue-changePrice {
height:80rpx;
width:100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding-right:20rpx;
}
.issue-changePrice>input {
height:80rpx;
width:50%;
line-height: 80rpx;
font-size: 25rpx;
padding-left:20rpx;
}
.issue-submit {
width:20%;
height: 50rpx;
background: #39b54a;
border-radius: 10rpx;
box-shadow: 6rpx 6rpx 8rpx rgba(48, 156, 63, 0.2);
line-height: 50rpx;
text-align: center;
color: #fff;
}
.issue-hassale {
width:20%;
height:50rpx;
background: #fa4639;
border-radius: 10rpx;
box-shadow: 6rpx 6rpx 8rpx rgba(204, 69, 59, 0.2);
line-height: 50rpx;
text-align: center;
color: #fff;
}
.want-item {
height:auto;
margin-top: 50rpx;
box-shadow: #eee 0 0 20rpx;
background:#fff;
border-radius: 15rpx;
border: 1px #eee solid;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding:20rpx;
}
.want-num {
width:80rpx;
text-align: center;
font-size: 50rpx;
font-weight: 100;
border-right: 1px #eee solid;
padding-right:20rpx;
}
.want-main {
width: 100%;
display: flex;
flex-direction:row;
align-items: center;
justify-content: flex-start;
}
.want-title {
padding:0 20rpx 0 20rpx;
font-size:35rpx;
}
.want-cancal {
width:200rpx;
height:50rpx;
background: #fa4639;
border-radius: 10rpx;
box-shadow: 6rpx 6rpx 8rpx rgba(204, 69, 59, 0.2);
line-height: 50rpx;
text-align: center;
color: #fff;
}
.unreadMsg-item {
height:auto;
margin-top: 30rpx;
box-shadow: #eee 0 0 20rpx;
background:#fff;
border-radius: 15rpx;
border: 1px #eee solid;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: space-between;
padding:30rpx;
}
.unreadMsg-top {
width:100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
margin-bottom: 20rpx;
}
.unreadMsg-icon {
display: inline;
margin-right: 30rpx;
}
.unreadMsg-title {
height:50rpx;
line-height: 50rpx;
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
}
.unreadMsg-titleWord {
font-size: 33rpx;
}
.unreadMsg-main {
color: #989898;
}
.clearMsg-button {
position: fixed;
bottom: 70rpx;
right: 20rpx;
height:100rpx;
width:100rpx;
background: #fff;
border:1px #eee solid;
box-shadow: 0 0 15rpx #fefefe ;
border-radius: 50%;
}
.clearMsg-button > view {
height:50rpx;
width:50rpx;
margin:0 auto;
margin-top:20rpx;
}
.product-item {
background: #fff;
padding:20rpx;
border-radius: 10rpx;
/* components/inform/inform.wxss */
@import'../homePage/homePage.wxss';
page {
background: #f1f1f1;
}
.issue-box, .want-box, .msg-box{
width:100%;
height: auto;
}
.issue-list, .want-list, .unreadMsg-list {
padding-left:20rpx;
padding-right:20rpx;
width:100%;
display: flex;
flex-direction: column;
}
.issue-item {
height: auto;
margin-top:50rpx;
box-shadow: #eee 0 0 20rpx;
background:#fff;
border-radius: 15rpx;
border: 1px #eee solid;
display: flex;
flex-direction: column;
overflow: hidden;
}
.issue-top {
min-height: 150rpx;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
border-bottom:1px #eee solid;
}
.issue-num {
width:20%;
height: 80%;
text-align: center;
font-size: 50rpx;
font-weight: 100;
border-right: 1px #eee solid;
}
.issue-main {
width:75%;
padding-right:20rpx;
}
.issue-title {
font-size: 35rpx;
font-weight: 600;
margin-bottom:5rpx;
}
.issue-changePrice {
height:80rpx;
width:100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding-right:20rpx;
}
.issue-changePrice>input {
height:80rpx;
width:50%;
line-height: 80rpx;
font-size: 25rpx;
padding-left:20rpx;
}
.issue-submit {
width:20%;
height: 50rpx;
background: #39b54a;
border-radius: 10rpx;
box-shadow: 6rpx 6rpx 8rpx rgba(48, 156, 63, 0.2);
line-height: 50rpx;
text-align: center;
color: #fff;
}
.issue-hassale {
width:20%;
height:50rpx;
background: #fa4639;
border-radius: 10rpx;
box-shadow: 6rpx 6rpx 8rpx rgba(204, 69, 59, 0.2);
line-height: 50rpx;
text-align: center;
color: #fff;
}
.want-item {
height:auto;
margin-top: 50rpx;
box-shadow: #eee 0 0 20rpx;
background:#fff;
border-radius: 15rpx;
border: 1px #eee solid;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding:20rpx;
}
.want-num {
width:80rpx;
text-align: center;
font-size: 50rpx;
font-weight: 100;
border-right: 1px #eee solid;
padding-right:20rpx;
}
.want-main {
width: 100%;
display: flex;
flex-direction:row;
align-items: center;
justify-content: flex-start;
}
.want-title {
padding:0 20rpx 0 20rpx;
font-size:35rpx;
}
.want-cancal {
width:200rpx;
height:50rpx;
background: #fa4639;
border-radius: 10rpx;
box-shadow: 6rpx 6rpx 8rpx rgba(204, 69, 59, 0.2);
line-height: 50rpx;
text-align: center;
color: #fff;
}
.unreadMsg-item {
height:auto;
margin-top: 30rpx;
box-shadow: #eee 0 0 20rpx;
background:#fff;
border-radius: 15rpx;
border: 1px #eee solid;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: space-between;
padding:30rpx;
}
.unreadMsg-top {
width:100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
margin-bottom: 20rpx;
}
.unreadMsg-icon {
display: inline;
margin-right: 30rpx;
}
.unreadMsg-title {
height:50rpx;
line-height: 50rpx;
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
}
.unreadMsg-titleWord {
font-size: 33rpx;
}
.unreadMsg-main {
color: #989898;
}
.clearMsg-button {
position: fixed;
bottom: 70rpx;
right: 20rpx;
height:100rpx;
width:100rpx;
background: #fff;
border:1px #eee solid;
box-shadow: 0 0 15rpx #fefefe ;
border-radius: 50%;
}
.clearMsg-button > view {
height:50rpx;
width:50rpx;
margin:0 auto;
margin-top:20rpx;
}
.product-item {
background: #fff;
padding:20rpx;
border-radius: 10rpx;
}

View File

@ -1,56 +1,56 @@
.UCenter-bg {
background-image: url(https://image.weilanwl.com/color2.0/index.jpg);
background-size: cover;
height: 550rpx;
display: flex;
justify-content: center;
padding-top: 40rpx;
overflow: hidden;
position: relative;
flex-direction: column;
align-items: center;
color: #fff;
font-weight: 300;
text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}
.UCenter-bg text {
opacity: 0.8;
}
.UCenter-bg .gif-wave{
position: absolute;
width: 100%;
bottom: 0;
left: 0;
z-index: 99;
mix-blend-mode: screen;
height: 100rpx;
}
map,.mapBox{
left: 0;
z-index: 99;
mix-blend-mode: screen;
height: 100rpx;
}
map,.mapBox{
width: 750rpx;
height: 300rpx;
}
.userAvatar-box {
height:200rpx;
width:200rpx;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
overflow: hidden;
}
.userName-box {
padding-top:40rpx;
}
.UCenter-bg {
background-image: url(https://image.weilanwl.com/color2.0/index.jpg);
background-size: cover;
height: 550rpx;
display: flex;
justify-content: center;
padding-top: 40rpx;
overflow: hidden;
position: relative;
flex-direction: column;
align-items: center;
color: #fff;
font-weight: 300;
text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}
.UCenter-bg text {
opacity: 0.8;
}
.UCenter-bg .gif-wave{
position: absolute;
width: 100%;
bottom: 0;
left: 0;
z-index: 99;
mix-blend-mode: screen;
height: 100rpx;
}
map,.mapBox{
left: 0;
z-index: 99;
mix-blend-mode: screen;
height: 100rpx;
}
map,.mapBox{
width: 750rpx;
height: 300rpx;
}
.userAvatar-box {
height:200rpx;
width:200rpx;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
overflow: hidden;
}
.userName-box {
padding-top:40rpx;
}

View File

@ -1,75 +1,75 @@
/* components/sellerInfo/sellerInfo.wxss */
page {
background: #f1f1f1;
}
.introduce {
width:100%;
height:100%;
}
.introduce-img {
display: block;
width: 95%;
margin: 20rpx auto;
}
.introduce-button {
height: 80rpx;
font-size: 40rpx;
width:60%;
letter-spacing: 4rpx;
margin: 50rpx auto;
}
.detail-info {
width:90%;
height:auto;
background: #fff;
border-radius: 20rpx;
border:2rpx #eee solid;
margin:60rpx auto;
box-shadow: 0 1rpx 6rpx rgba(0, 0, 0, 0.1);
}
.user-avatar {
display: block;
width:200rpx;
margin: 0 auto;
border-radius: 50%;
margin-top: 50rpx;
}
.user-name {
width:100%;
text-align: center;
font-size: 40rpx;
letter-spacing: 4rpx;
margin-top:20rpx;
font-weight: 600;
margin-bottom:60rpx;
}
.info-box {
width:80%;
margin: 30rpx auto;
height:100rpx;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.user-labal {
font-size: 35rpx;
font-weight: 600;
}
.tip {
margin: 20rpx auto ;
text-align: center;
color: #e54d42;
font-size: 35rpx;
letter-spacing: 4rpx;
margin-top:40rpx;
/* components/sellerInfo/sellerInfo.wxss */
page {
background: #f1f1f1;
}
.introduce {
width:100%;
height:100%;
}
.introduce-img {
display: block;
width: 95%;
margin: 20rpx auto;
}
.introduce-button {
height: 80rpx;
font-size: 40rpx;
width:60%;
letter-spacing: 4rpx;
margin: 50rpx auto;
}
.detail-info {
width:90%;
height:auto;
background: #fff;
border-radius: 20rpx;
border:2rpx #eee solid;
margin:60rpx auto;
box-shadow: 0 1rpx 6rpx rgba(0, 0, 0, 0.1);
}
.user-avatar {
display: block;
width:200rpx;
margin: 0 auto;
border-radius: 50%;
margin-top: 50rpx;
}
.user-name {
width:100%;
text-align: center;
font-size: 40rpx;
letter-spacing: 4rpx;
margin-top:20rpx;
font-weight: 600;
margin-bottom:60rpx;
}
.info-box {
width:80%;
margin: 30rpx auto;
height:100rpx;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.user-labal {
font-size: 35rpx;
font-weight: 600;
}
.tip {
margin: 20rpx auto ;
text-align: center;
color: #e54d42;
font-size: 35rpx;
letter-spacing: 4rpx;
margin-top:40rpx;
}

View File

@ -1,71 +1,71 @@
/* components/signin/signin.wxss */
page {
background: #001739;
}
.bg {
position: fixed;
top:0;
left:0;
z-index: -100;
height:100%;
width:100%;
}
.main-page {
width:100%;
height:auto;
padding-left:20rpx;
padding-right:20rpx;
padding-top: 100rpx;
color:#fff;
position: relative;
}
.welcome {
font-size: 80rpx;
margin-top:20rpx;
}
.userAvatar-box {
position: absolute;
right:20rpx;
top:120rpx;
height:200rpx;
width:200rpx;
border-radius: 50%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
overflow: hidden;
}
input {
height:70rpx;
line-height: 80rpx;
font-size: 30rpx;
width:100%;
border:1px #989898 solid;
border-radius:10rpx;
padding-right:10rpx;
padding-left:10rpx;
}
.submit {
background: #ff2e55;
height:80rpx;
font-size:35rpx;
text-align: center;
line-height: 80rpx;
margin-top:150rpx;
border-radius: 10rpx;
}
.error {
color:#ff2e55;
font-size: 25rpx;
height:50rpx;
line-height: 50rpx;
/* components/signin/signin.wxss */
page {
background: #001739;
}
.bg {
position: fixed;
top:0;
left:0;
z-index: -100;
height:100%;
width:100%;
}
.main-page {
width:100%;
height:auto;
padding-left:20rpx;
padding-right:20rpx;
padding-top: 100rpx;
color:#fff;
position: relative;
}
.welcome {
font-size: 80rpx;
margin-top:20rpx;
}
.userAvatar-box {
position: absolute;
right:20rpx;
top:120rpx;
height:200rpx;
width:200rpx;
border-radius: 50%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
overflow: hidden;
}
input {
height:70rpx;
line-height: 80rpx;
font-size: 30rpx;
width:100%;
border:1px #989898 solid;
border-radius:10rpx;
padding-right:10rpx;
padding-left:10rpx;
}
.submit {
background: #ff2e55;
height:80rpx;
font-size:35rpx;
text-align: center;
line-height: 80rpx;
margin-top:150rpx;
border-radius: 10rpx;
}
.error {
color:#ff2e55;
font-size: 25rpx;
height:50rpx;
line-height: 50rpx;
}

View File

@ -1,2 +1,2 @@
/* components/tagSearch/tagSearch.wxss */
/* components/tagSearch/tagSearch.wxss */
@import '../homePage/homePage.wxss'

View File

@ -1,79 +1,79 @@
/* components/welcome/welcome.wxss */
page {
background: #001739;
position: relative;
height:100%;
}
.bg {
position: fixed;
top:0;
left:0;
z-index: -100;
height:100%;
width:100%;
}
.main-page {
width:100%;
height:auto;
padding-left:20rpx;
padding-right:20rpx;
padding-top: 400rpx;
color:#fff;
position: absolute;
bottom:80rpx;
left:70rpx;
}
.welcome {
font-size: 80rpx;
margin-top:20rpx;
position: relative;
height: 100rpx;
}
.userAvatar-box {
height:200rpx;
width:200rpx;
border-radius: 50%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
overflow: hidden;
}
.loading {
position: absolute;
bottom: 20rpx;
right:100rpx;
display: inline-block;
width: 150rpx;
height: 150rpx;
background-image: url("data:image/svg+xml, %3Csvg class='lds-gooeyring' width='80' height='80' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='xMidYMid' style='animation-play-state:running;animation-delay:0s;background:0 0'%3E%3Cdefs style='animation-play-state:running;animation-delay:0s'%3E%3Cfilter id='a' x='-100%25' y='-100%25' width='300%25' height='300%25' color-interpolation-filters='sRGB' style='animation-play-state:running;animation-delay:0s'%3E%3CfeGaussianBlur in='SourceGraphic' stdDeviation='4' style='animation-play-state:running;animation-delay:0s'/%3E%3CfeComponentTransfer result='cutoff' style='animation-play-state:running;animation-delay:0s'%3E%3CfeFuncA type='linear' slope='10' intercept='-5'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23a)' style='animation-play-state:running;animation-delay:0s' transform='translate(50 50)'%3E%3Cg transform='rotate(258)' style='animation-play-state:running;animation-delay:0s'%3E%3Ccircle cx='25' r='10.533' fill='%23fcb711' style='animation-play-state:running;animation-delay:0s'%3E%3Canimate attributeName='r' keyTimes='0;0.5;1' values='6;14;6' dur='4s' repeatCount='indefinite' begin='-4s'/%3E%3C/circle%3E%3CanimateTransform attributeName='transform' type='rotate' keyTimes='0;1' values='0;360' dur='4s' repeatCount='indefinite' begin='0s'/%3E%3C/g%3E%3Cg transform='rotate(276)' style='animation-play-state:running;animation-delay:0s'%3E%3Ccircle cx='25' r='7.6' fill='%23f37021' style='animation-play-state:running;animation-delay:0s'%3E%3Canimate attributeName='r' keyTimes='0;0.5;1' values='6;14;6' dur='2s' repeatCount='indefinite' begin='-3.3333333333333335s'/%3E%3C/circle%3E%3CanimateTransform attributeName='transform' type='rotate' keyTimes='0;1' values='0;360' dur='2s' repeatCount='indefinite' begin='-0.6666666666666666s'/%3E%3C/g%3E%3Cg transform='rotate(54)' style='animation-play-state:running;animation-delay:0s'%3E%3Ccircle cx='25' r='8.4' fill='%23cc004c' style='animation-play-state:running;animation-delay:0s'%3E%3Canimate attributeName='r' keyTimes='0;0.5;1' values='6;14;6' dur='1.3333333333333333s' repeatCount='indefinite' begin='-2.6666666666666665s'/%3E%3C/circle%3E%3CanimateTransform attributeName='transform' type='rotate' keyTimes='0;1' values='0;360' dur='1.3333333333333333s' repeatCount='indefinite' begin='-1.3333333333333333s'/%3E%3C/g%3E%3Cg transform='rotate(312)' style='animation-play-state:running;animation-delay:0s'%3E%3Ccircle cx='25' r='8.133' fill='%236460aa' style='animation-play-state:running;animation-delay:0s'%3E%3Canimate attributeName='r' keyTimes='0;0.5;1' values='6;14;6' dur='1s' repeatCount='indefinite' begin='-2s'/%3E%3C/circle%3E%3CanimateTransform attributeName='transform' type='rotate' keyTimes='0;1' values='0;360' dur='1s' repeatCount='indefinite' begin='-2s'/%3E%3C/g%3E%3Cg transform='rotate(330)' style='animation-play-state:running;animation-delay:0s'%3E%3Ccircle cx='25' r='10' fill='%230089d0' style='animation-play-state:running;animation-delay:0s'%3E%3Canimate attributeName='r' keyTimes='0;0.5;1' values='6;14;6' dur='0.8s' repeatCount='indefinite' begin='-1.3333333333333333s'/%3E%3C/circle%3E%3CanimateTransform attributeName='transform' type='rotate' keyTimes='0;1' values='0;360' dur='0.8s' repeatCount='indefinite' begin='-2.6666666666666665s'/%3E%3C/g%3E%3Cg transform='rotate(108)' style='animation-play-state:running;animation-delay:0s'%3E%3Ccircle cx='25' r='10.8' fill='%230db14b' style='animation-play-state:running;animation-delay:0s'%3E%3Canimate attributeName='r' keyTimes='0;0.5;1' values='6;14;6' dur='0.6666666666666666s' repeatCount='indefinite' begin='-0.6666666666666666s'/%3E%3C/circle%3E%3CanimateTransform attributeName='transform' type='rotate' keyTimes='0;1' values='0;360' dur='0.6666666666666666s' repeatCount='indefinite' begin='-3.3333333333333335s'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
background-size: 100% 100%;
}
.get-info {
position: absolute;
bottom: 20rpx;
right:100rpx;
display: inline-block;
width: 150rpx;
height: 150rpx;
color: #fff;
background: #ff365f;
border-radius: 50%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.get-info text {
font-size: 70rpx;
transform-origin:50% 50%;
transform: rotate(180deg);
/* components/welcome/welcome.wxss */
page {
background: #001739;
position: relative;
height:100%;
}
.bg {
position: fixed;
top:0;
left:0;
z-index: -100;
height:100%;
width:100%;
}
.main-page {
width:100%;
height:auto;
padding-left:20rpx;
padding-right:20rpx;
padding-top: 400rpx;
color:#fff;
position: absolute;
bottom:80rpx;
left:70rpx;
}
.welcome {
font-size: 80rpx;
margin-top:20rpx;
position: relative;
height: 100rpx;
}
.userAvatar-box {
height:200rpx;
width:200rpx;
border-radius: 50%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
overflow: hidden;
}
.loading {
position: absolute;
bottom: 20rpx;
right:100rpx;
display: inline-block;
width: 150rpx;
height: 150rpx;
background-image: url("data:image/svg+xml, %3Csvg class='lds-gooeyring' width='80' height='80' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='xMidYMid' style='animation-play-state:running;animation-delay:0s;background:0 0'%3E%3Cdefs style='animation-play-state:running;animation-delay:0s'%3E%3Cfilter id='a' x='-100%25' y='-100%25' width='300%25' height='300%25' color-interpolation-filters='sRGB' style='animation-play-state:running;animation-delay:0s'%3E%3CfeGaussianBlur in='SourceGraphic' stdDeviation='4' style='animation-play-state:running;animation-delay:0s'/%3E%3CfeComponentTransfer result='cutoff' style='animation-play-state:running;animation-delay:0s'%3E%3CfeFuncA type='linear' slope='10' intercept='-5'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23a)' style='animation-play-state:running;animation-delay:0s' transform='translate(50 50)'%3E%3Cg transform='rotate(258)' style='animation-play-state:running;animation-delay:0s'%3E%3Ccircle cx='25' r='10.533' fill='%23fcb711' style='animation-play-state:running;animation-delay:0s'%3E%3Canimate attributeName='r' keyTimes='0;0.5;1' values='6;14;6' dur='4s' repeatCount='indefinite' begin='-4s'/%3E%3C/circle%3E%3CanimateTransform attributeName='transform' type='rotate' keyTimes='0;1' values='0;360' dur='4s' repeatCount='indefinite' begin='0s'/%3E%3C/g%3E%3Cg transform='rotate(276)' style='animation-play-state:running;animation-delay:0s'%3E%3Ccircle cx='25' r='7.6' fill='%23f37021' style='animation-play-state:running;animation-delay:0s'%3E%3Canimate attributeName='r' keyTimes='0;0.5;1' values='6;14;6' dur='2s' repeatCount='indefinite' begin='-3.3333333333333335s'/%3E%3C/circle%3E%3CanimateTransform attributeName='transform' type='rotate' keyTimes='0;1' values='0;360' dur='2s' repeatCount='indefinite' begin='-0.6666666666666666s'/%3E%3C/g%3E%3Cg transform='rotate(54)' style='animation-play-state:running;animation-delay:0s'%3E%3Ccircle cx='25' r='8.4' fill='%23cc004c' style='animation-play-state:running;animation-delay:0s'%3E%3Canimate attributeName='r' keyTimes='0;0.5;1' values='6;14;6' dur='1.3333333333333333s' repeatCount='indefinite' begin='-2.6666666666666665s'/%3E%3C/circle%3E%3CanimateTransform attributeName='transform' type='rotate' keyTimes='0;1' values='0;360' dur='1.3333333333333333s' repeatCount='indefinite' begin='-1.3333333333333333s'/%3E%3C/g%3E%3Cg transform='rotate(312)' style='animation-play-state:running;animation-delay:0s'%3E%3Ccircle cx='25' r='8.133' fill='%236460aa' style='animation-play-state:running;animation-delay:0s'%3E%3Canimate attributeName='r' keyTimes='0;0.5;1' values='6;14;6' dur='1s' repeatCount='indefinite' begin='-2s'/%3E%3C/circle%3E%3CanimateTransform attributeName='transform' type='rotate' keyTimes='0;1' values='0;360' dur='1s' repeatCount='indefinite' begin='-2s'/%3E%3C/g%3E%3Cg transform='rotate(330)' style='animation-play-state:running;animation-delay:0s'%3E%3Ccircle cx='25' r='10' fill='%230089d0' style='animation-play-state:running;animation-delay:0s'%3E%3Canimate attributeName='r' keyTimes='0;0.5;1' values='6;14;6' dur='0.8s' repeatCount='indefinite' begin='-1.3333333333333333s'/%3E%3C/circle%3E%3CanimateTransform attributeName='transform' type='rotate' keyTimes='0;1' values='0;360' dur='0.8s' repeatCount='indefinite' begin='-2.6666666666666665s'/%3E%3C/g%3E%3Cg transform='rotate(108)' style='animation-play-state:running;animation-delay:0s'%3E%3Ccircle cx='25' r='10.8' fill='%230db14b' style='animation-play-state:running;animation-delay:0s'%3E%3Canimate attributeName='r' keyTimes='0;0.5;1' values='6;14;6' dur='0.6666666666666666s' repeatCount='indefinite' begin='-0.6666666666666666s'/%3E%3C/circle%3E%3CanimateTransform attributeName='transform' type='rotate' keyTimes='0;1' values='0;360' dur='0.6666666666666666s' repeatCount='indefinite' begin='-3.3333333333333335s'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
background-size: 100% 100%;
}
.get-info {
position: absolute;
bottom: 20rpx;
right:100rpx;
display: inline-block;
width: 150rpx;
height: 150rpx;
color: #fff;
background: #ff365f;
border-radius: 50%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.get-info text {
font-size: 70rpx;
transform-origin:50% 50%;
transform: rotate(180deg);
}