Commit 34242bb1 authored by wangxuelai's avatar wangxuelai

''

parent 5550378d
......@@ -414,6 +414,27 @@
"index"
]
},
{
"root": "src/pages/userinfoupdate",
"name": "userinfoupdate",
"pages": [
"index"
]
},
{
"root": "src/pages/mall",
"name": "mall",
"pages": [
"index"
]
},
{
"root": "src/pages/myscoreindex",
"name": "myscoreindex",
"pages": [
"index"
]
},
{
"root": "src/pages/schoolclasslist",
"name": "schoolclasslist",
......
......@@ -9,6 +9,9 @@ import {
import {
unlockSubjectRelease
} from '../../../service/business/themeeditor.js';
import {
audioorigin
} from '../../../utilities/index.js';
var app = getApp();
Page({
data: {
......
// src/pages/activityindex/index.js
import {
wxChooseImage,
wxUploadFile
} from '../../../utilities/wxApi.js';
import {
cOssAccess,
} from '../../../service/common.js';
import {
getRandomFilename,
LocalStorage
} from '../../../utilities/index.js';
import {
userShow,
} from '../../../service/customer/themeindex.js';
var app = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
imageRoot: app.globalData.imageRoot,
imageVersion: app.globalData.imageVersion,
localImageRoot: "../../../images/",
submiting: false,
sid: 0,
userInfo: {}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
const {
sid,
} = options;
this.setData({
sid,
})
wx.hideShareMenu()
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
this.userShow();
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
},
userShow () {
const visitor = LocalStorage.getItem('visitor');
userShow({
school_id: this.data.sid,
consumer_id: visitor && visitor.id || 0
}).then((res) => {
const {data, code} = res;
if (code == 30005) {
this.setData({
noUserinfo: true
})
}
if (code == 200) {
if (data) {
this.setData({
userInfo: data,
noUserinfo: false,
})
} else {
this.setData({
noUserinfo: true
})
}
}
}).then(() => {
})
},
chooseImg() {
let access = {};
let filename = '';
cOssAccess().then((acc) => {
access = acc.data;
return wxChooseImage({})
}).then((res) => {
const {
tempFiles
} = res;
filename = `${access.dir}${getRandomFilename(tempFiles[0].path)}`;
wx.showLoading({
title: '图片上传中'
})
return wxUploadFile({
url: access.host,
formData: {
key: filename,
policy: access.policy,
OSSAccessKeyId: access.accessid,
signature: access.signature,
callback: access.callback,
success_action_status: '200'
},
filePath: tempFiles[0].path,
name: 'file',
})
}).then((res) => {
const {
data
} = res;
if (data == '{"status":"ok"}') {
wx.showToast({
title: '上传成功'
})
this.setData({
img: filename
})
} else {
wx.hideLoading();
wx.showModal({
title: '提示',
content: '上传失败',
showCancel: false
})
}
}).catch((err) => {
});
}
})
\ No newline at end of file
{
"usingComponents": {},
"navigationBarTitleText": "积分商城"
}
\ No newline at end of file
This diff is collapsed.
@font-face {
font-family:'hyxl';
src:url('https://wxloss.oss-cn-hangzhou.aliyuncs.com/font/hyxl.ttf') format('truetype');
}
.container {
background-color: #fff;
padding-bottom: 50rpx;
}
.header-box {
padding: 46rpx 24rpx 0 24rpx;
margin-bottom: 90rpx;
}
.amountcard {
height: 296rpx;
background:linear-gradient(0deg,rgba(65,195,255,1) 0%,rgba(2,137,255,1) 100%);
border-radius: 26rpx;
padding: 46rpx 65rpx 0;
}
.avatarbox {
display: flex;
align-items: center;
padding-bottom: 44rpx;
border-bottom: 2rpx solid rgba(255, 255, 255, 0.3);
}
.avatarbox .avatar {
width: 90rpx;
height: 90rpx;
border-radius: 50%;
display: block;
margin-right: 30rpx;
}
.avatarbox .star {
width: 28rpx;
height: 28rpx;
display: block;
margin-left: 20rpx;
margin-top: 10rpx;
}
.avatarbox .scorestatic {
color: #FFFFFF;
font-size: 70rpx;
font-family:hyxl;
line-height: 1;
}
.btnbox {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 28rpx;
}
.btn {
width: 170rpx;
height: 56rpx;
background-color: rgba(255,255,255,0.3);
border-radius: 28rpx;
display: flex;
align-items: center;
justify-content: center;
}
.btn .btnicon {
width: 32rpx;
height: 32rpx;
display: block;
}
.btn.btna .btnicon {
margin-right: 28rpx;
}
.btn.btnb .btnicon {
margin-right: 14rpx;
}
.btn .btnname {
color: #FFFFFF;
font-size: 24rpx;
line-height: 1;
}
.areatitle {
padding-left: 24rpx;
display: flex;
align-items: center;
margin-bottom: 36rpx;
}
.areatitle .areaicon {
display: block;
}
.areatitle.prizearea .areaicon {
width: 36rpx;
height: 35rpx;
margin-right: 23rpx;
}
.areatitle.cardarea .areaicon {
width: 36rpx;
height: 28rpx;
margin-right: 23rpx;
}
.areatitle .areaname {
font-size: 32rpx;
color: #000000;
font-weight: 700;
}
.prizecontent {
display: flex;
/* justify-content: center; */
flex-wrap: wrap;
}
.prizecardbox {
width: 50%;
/* padding: 0 5%; */
margin-bottom: 24rpx;
display: flex;
}
.prizecardbox.odd{
justify-content: flex-end;
}
.prizecardbox.odd .prizecard {
margin-right: 25rpx;
}
.prizecardbox.even{
justify-content: flex-start;
}
.prizecardbox.even .prizecard {
margin-left: 25rpx;
}
.prizecontent .prizecard {
border-radius: 20rpx;
overflow: hidden;
width: 310rpx;
/* margin: 0 auto; */
height: 364rpx;
box-shadow: 0px 0px 10rpx 0px rgba(0, 0, 0, 0.1);
}
.prizecontent .prizecard .prizeimage{
display: block;
height: 270rpx;
width: 100%;
margin-bottom: 16rpx;
}
.prizecontent .prizecard .prizename {
color: #000;
font-size: 24rpx;
width: 100;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
padding: 0 20rpx;
margin-bottom: 18rpx;
line-height: 1;
}
.prizestatic {
padding: 0 20rpx;
display: flex;
align-items: center;
justify-content: space-between;
}
.prizestatic .scoreneed{
font-size: 22rpx;
color: #FF5E15;
line-height: 1;
}
.prizestatic .prizeleft{
font-size: 22rpx;
color: #878787;
line-height: 1;
}
.couponcontent {
display: flex;
/* justify-content: center; */
flex-wrap: wrap;
}
.couponcardbox {
width: 50%;
border-bottom: 2rpx solid rgba(0,0,0,0.05);
display: flex;
}
.couponcardbox.odd {
border-right: 2rpx solid rgba(0,0,0,0.05);
justify-content: flex-end;
}
.couponcardbox.odd .couponcard {
margin-right: 24rpx;
}
.couponcardbox.even .couponcard {
margin-left: 24rpx;
}
.couponcardbox.even {
justify-content: flex-start;
}
.couponcard {
width: 312rpx;
padding: 30rpx 0;
}
.couponitem {
width: 100%;
height: 184rpx;
position: relative;
margin-bottom: 25rpx;
display: flex;
}
.couponitem .couponimgbox {
width: 43%;
position: relative;
z-index: 2;
display: flex;
align-items: center;
justify-content: center;
}
.couponitem .couponimgbox .couponimg {
display: block;
width: 98rpx;
height: 98rpx;
border-radius: 50%;
box-shadow: 0px 4rpx 8rpx 0px rgba(255,71,111,0.4);
}
.couponitem .couponinfobox {
width: 57%;
position: relative;
z-index: 2;
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
color: #fff;
}
.couponitem .couponinfobox .top {
font-size: 30rpx;
font-weight: 700;
line-height: 1;
margin-bottom: 16rpx;
}
.couponitem .couponinfobox .middle {
font-size: 44rpx;
font-weight: 700;
line-height: 1;
margin-bottom: 18rpx;
}
.couponitem .couponinfobox .bottom {
font-size: 24rpx;
line-height: 1;
}
.couponitem .couponbg {
position: absolute;
z-index: 0;
width: 100%;
height: 100%;
left: 0;
top: 0;
}
.couponcard .couponcardname {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #000000;
font-size: 24rpx;
line-height: 1;
}
.empty-content {
padding-top: 152rpx;
}
.empty-content .empty-img-box {
width: 263rpx;
height: 219rpx;
margin: 0 auto;
}
.empty-content .empty-img-box .empty-icon {
width: 263rpx;
height: 219rpx;
}
.empty-content .empty-text {
padding-top: 47rpx;
text-align: center;
font-size: 26rpx;
color: rgba(0, 0, 0, 0.5);
padding-bottom: 217rpx;
}
\ No newline at end of file
......@@ -132,6 +132,6 @@
padding-top: 47rpx;
text-align: center;
font-size: 26rpx;
color: rgba(0, 0, 0, 0.5);
color: #A7A7A7;
padding-bottom: 217rpx;
}
var app = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
imageRoot: app.globalData.imageRoot,
imageVersion: app.globalData.imageVersion,
localImageRoot: "../../../images/",
sid: 0,
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
const {
sid,
} = options;
this.setData({
sid,
})
wx.hideShareMenu()
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
},
})
\ No newline at end of file
{
"navigationBarBackgroundColor": "#FFE344",
"navigationBarTitleText": "积分",
"usingComponents": {}
}
\ No newline at end of file
This diff is collapsed.
@font-face {
font-family:'hyxl';
src:url('https://wxloss.oss-cn-hangzhou.aliyuncs.com/font/hyxl.ttf') format('truetype');
}
.container {
min-height: 100vh;
background-color: #fff;
padding-bottom: 100rpx;
}
.headerbox {
height: 314rpx;
background:linear-gradient(0deg,rgba(255,208,117,1) 0%,rgba(255,227,68,1) 100%);
position: relative;
overflow: hidden;
}
.headerboxbg {
position: absolute;
width: 687rpx;
height: 215rpx;
left: 0;
top: 40rpx;
z-index: 1;
}
.scorerule {
position: relative;
z-index: 2;
display: flex;
align-items: center;
justify-content: flex-end;
padding-right: 24rpx;
padding-top: 36rpx;
}
.scorerule text {
color: #000000;
font-size: 24rpx;
padding-right: 16rpx;
}
.scorerule .circleright {
display: block;
width: 24rpx;
height: 24rpx;
}
.circlebar {
position: absolute;
left: 0;
bottom: -70rpx;
width: 100%;
z-index: 1;
height: 106rpx;
}
.scorebox {
position: relative;
bottom: -38rpx;
margin: 0 auto;
width: 648rpx;
height: 210rpx;
background: linear-gradient(140deg,rgba(255,242,223,1) 0%,rgba(255,225,183,1) 100%);
box-shadow: 0px -8rpx 13rpx 0px rgba(255,162,0,0.15);
border-radius: 20rpx;
display: flex;
align-items: center;
justify-content: center;
}
.scorebox text {
position: relative;
z-index: 2;
}
.scoreboxbg {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
z-index: 1;
}
.scorestatic {
color: #FF7000;
font-size: 66rpx;
font-family:hyxl;
line-height: 1;
}
.detail {
color: #FF923C;
font-size: 24rpx;
padding: 0 14rpx 0 24rpx;
}
.arrowright {
width: 10rpx;
height: 18rpx;
display: block;
}
.btnbox {
padding: 0 24rpx;
display: flex;
justify-content: space-between;
margin: 70rpx 0;
}
.btnbox .btn {
width: 340rpx;
height: 126rpx;
position: relative;
}
.btnbox .btnimg {
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
}
.scoretaskbox {
padding: 0 24rpx;
}
.scoretaskbox .title {
font-size: 32rpx;
color: #000;
font-weight: 700;
line-height: 1;
margin-bottom: 35rpx;
}
.taskcontent {
background:rgba(255,255,255,1);
box-shadow: 0px 0px 15rpx 0px rgba(0, 0, 0, 0.06);
border-radius: 20rpx;
padding: 0 30rpx;
}
.taskitem {
display: flex;
align-items: center;
justify-content: space-between;
padding: 30rpx 0;
border-bottom: 2rpx solid rgba(0,0,0,0.05)
}
.taskitem:last-child {
border: none;
}
.taskitem .left {
}
.taskitem .left .taskname {
font-size: 26rpx;
color: #000000;
line-height: 1;
}
.taskitem .left .taskscore {
display: flex;
align-items: center;
padding-top: 18rpx;
}
.taskitem .left .taskscore .scoreicon{
display: block;
width: 21rpx;
height: 22rpx;
margin-right: 12rpx
}
.taskitem .left .taskscore .scorecount{
font-size: 22rpx;
color: #FF7000;
line-height: 1;
}
.taskitem .left .taskdesc{
color: #7F7F7F;
font-size: 22rpx;
line-height: 1;
padding-top: 12rpx;
}
.taskitem .right {
width: 88rpx;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
.taskitem .right .completeimg {
display: block;
width: 88rpx;
height: 80rpx;
}
.taskitem .right .progress {
margin-top: 24rpx;
line-height: 1;
color: #7F7F7F;
font-size: 22rpx;
}
.taskitem .right .taskbtn {
width: 52px;
height: 22px;
line-height: 22rpx;
color: #fff;
text-align: center;
font-size: 12px;
background-color: #fff;
background: linear-gradient(90deg,rgba(255,226,92,1),rgba(255,195,79,1));
box-shadow: 0px 2px 5px 0px rgba(255,187,0,0.5);
border-radius: 11px;
line-height: 22px;
}
\ No newline at end of file
// src/pages/activityindex/index.js
import {
wxChooseImage,
wxUploadFile
} from '../../../utilities/wxApi.js';
import {
cOssAccess,
} from '../../../service/common.js';
import {
getRandomFilename,
LocalStorage
} from '../../../utilities/index.js';
import {
userShow,
} from '../../../service/customer/themeindex.js';
var app = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
imageRoot: app.globalData.imageRoot,
imageVersion: app.globalData.imageVersion,
localImageRoot: "../../../images",
submiting: false,
sid: 0,
userInfo: {}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
const {
sid,
} = options;
this.setData({
sid,
})
wx.hideShareMenu()
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
this.userShow();
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
},
userShow () {
const visitor = LocalStorage.getItem('visitor');
userShow({
school_id: this.data.sid,
consumer_id: visitor && visitor.id || 0
}).then((res) => {
const {data, code} = res;
if (code == 30005) {
this.setData({
noUserinfo: true
})
}
if (code == 200) {
if (data) {
this.setData({
userInfo: data,
noUserinfo: false,
})
} else {
this.setData({
noUserinfo: true
})
}
}
}).then(() => {
})
},
chooseImg() {
let access = {};
let filename = '';
cOssAccess().then((acc) => {
access = acc.data;
return wxChooseImage({})
}).then((res) => {
const {
tempFiles
} = res;
filename = `${access.dir}${getRandomFilename(tempFiles[0].path)}`;
wx.showLoading({
title: '图片上传中'
})
return wxUploadFile({
url: access.host,
formData: {
key: filename,
policy: access.policy,
OSSAccessKeyId: access.accessid,
signature: access.signature,
callback: access.callback,
success_action_status: '200'
},
filePath: tempFiles[0].path,
name: 'file',
})
}).then((res) => {
const {
data
} = res;
if (data == '{"status":"ok"}') {
wx.showToast({
title: '上传成功'
})
this.setData({
img: filename
})
} else {
wx.hideLoading();
wx.showModal({
title: '提示',
content: '上传失败',
showCancel: false
})
}
}).catch((err) => {
});
}
})
\ No newline at end of file
{
"usingComponents": {},
"navigationBarTitleText": "编辑资料"
}
\ No newline at end of file
<!--src/pages/activityindex/index.wxml-->
<view class="container">
<view class="listitem" hover-class="none" hover-stop-propagation="false">
<text class="listtitle" selectable="false" space="false" decode="false">头像</text>
<view class="listcontent" hover-class="none" hover-stop-propagation="false">
<image class="avatar" src="{{userInfo.avatar}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""></image>
<image class="arrowsmall" src="{{imageRoot}}2b/organizationalmgt/right.png?{{imageVersion}}"mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""></image>
</view>
</view>
<view class="divideline" hover-class="none" hover-stop-propagation="false"></view>
<view class="listitem" hover-class="none" hover-stop-propagation="false">
<text class="listtitle" selectable="false" space="false" decode="false">昵称</text>
<view class="listcontent" hover-class="none" hover-stop-propagation="false">
<input type="text" class="nicknameinput" value="{{userInfo.nickname}}" placeholder="请输入机构昵称"/>
<image class="arrowsmall" src="{{imageRoot}}2b/organizationalmgt/right.png?{{imageVersion}}"mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""></image>
</view>
</view>
</view>
\ No newline at end of file
.avatar {
width: 96rpx;
height: 96rpx;
border-radius: 50%;
display: block;
}
.arrowsmall {
width:12rpx;
height:21rpx;
display: block;
margin-left: 32rpx;
}
.nicknameinput {
text-align: right;
color: #8C8C8C;
font-size: 26rpx;
}
.listitem {
display: flex;
align-items: center;
justify-content: space-between;
padding: 50rpx 24rpx;
}
/* .listitem.avatar {
padding-top: 50rpx;
padding-bottom: 50rpx;
}
.listitem.nickname {
padding-top: 50rpx;
padding-bottom: 50rpx;
} */
.listcontent {
display: flex;
align-items: center;
}
.listtitle {
color: #323232;
font-size: 28rpx;
font-weight: 700;
letter-spacing: 2rpx;
}
.divideline {
width: 726rpx;
height: 2rpx;
background-color: rgba(0,0,0,0.1);
margin-left: 24rpx;
}
\ No newline at end of file
This diff is collapsed.
.ucenter-container {
background-color: #fff;
background-color: #F7F7F9;
min-height: 100vh;
}
.headerbox {
position: relative;
height: 222rpx;
height: 318rpx;
background-color: #FFD146;
}
.headerbox .bg {
......@@ -35,26 +35,27 @@
margin-left: 14rpx;
display: block;
}
.menubox {
background-color:#fff;
border-radius:20rpx 20rpx 0 0;
margin-top:-58rpx;
position:relative;
z-index: 2;
padding-bottom: 16rpx;
}
.userbox {
padding-left: 24rpx;
padding-left: 37rpx;
padding-right: 34rpx;
position: relative;
top: -75rpx;
display: flex;
align-items: center;
justify-content: space-between;
padding-top: 76rpx;
}
.userbox .avatar {
width: 150rpx;
height: 150rpx;
display: block;
/* margin-top: -75rpx; */
margin-right: 50rpx;
border-radius: 50%;
box-shadow:0px 10rpx 0px 0px rgba(192,198,214,0.3);
/* box-shadow:0px 10rpx 0px 0px rgba(192,198,214,0.3); */
border: 2rpx solid rgba(255,255,255,1);
}
.userbox2 {
display: flex;
align-items: center;
}
.userbox .nickname {
line-height: 1;
......@@ -62,20 +63,29 @@
color: #000000;
font-size: 32rpx;
font-weight: 700;
position: absolute;
left: 210rpx;
bottom: 16rpx;
max-width: 500rpx;
max-width: 320rpx;
overflow: hidden;
text-overflow: ellipsis;
word-wrap: none;
white-space: nowrap;
}
.settingicon {
width: 44rpx;
height: 39rpx;
display: block;
}
.menu {
position: relative;
z-index: 1;
display: flex;
align-items: center;
justify-content: space-around;
margin-bottom: 58rpx;
padding: 30rpx 0;
width: 700rpx;
margin: -50rpx auto 24rpx;
background-color: #fff;
border-radius: 20rpx;
/* margin-bottom: 58rpx; */
}
.menu.linea {
}
......@@ -87,8 +97,8 @@
flex-direction: column;
}
.menu-item .menuicon {
width: 44rpx;
height: 48rpx;
width: 50rpx;
height: 50rpx;
display: flex;
align-items: center;
justify-content: center;
......@@ -98,6 +108,18 @@
width: 44rpx;
height: 40rpx;
}
.menu-item .menuicon .mall {
width: 45rpx;
height: 45rpx;
}
.menu-item .menuicon .score {
width: 46rpx;
height: 46rpx;
}
.menu-item .menuicon .rank {
width: 46rpx;
height: 45rpx;
}
.menu-item .menuname {
color: #60646B;
font-size: 24rpx;
......@@ -123,6 +145,25 @@
.content-box {
background-color: #fff;
}
.scorebox .menu {
margin-top: 0;
margin-bottom: 0;
}
.scorebox {
width: 700rpx;
margin: 0 auto 24rpx;
background-color: #fff;
border-radius: 20rpx;
overflow: hidden;
}
.scoreboxtitle {
color: #323232;
font-size: 26rpx;
line-height: 1;
margin-bottom: 26rpx;
font-weight: 700;
padding: 24rpx 0 0 24rpx;
}
.listitem {
display: flex;
justify-content: space-between;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment