master
chen 2021-12-15 13:38:09 +08:00
parent bc6576943c
commit cfd961aef8
60 changed files with 273 additions and 521 deletions

16
app.js
View File

@ -1,11 +1,13 @@
//app.js
var urlPath = require('./config.js');
App({
globalData: {
isLogin : false
},
onLaunch: function () {
var that = this;
wx.setStorageSync('urlPath', urlPath);
},
// 微信小程序原生API性能优化
// #ifdef MP-WEIXIN
let hInfo = wx.getAccountInfoSync();
// console.log(hInfo.envVersion);//develop:开发版 trial体验版 release正式版
if(hInfo.miniProgram.envVersion != "develop"){
console.log = () =>{}
}
// #endif
}
})

View File

@ -2,15 +2,32 @@
"pages": [
"pages/canvasposter/canvasposter",
"pages/index/index",
"pages/again/again",
"pages/sign/sign",
"pages/user/user",
"pages/rule/rule",
"pages/ranking/ranking",
"pages/picture/picture",
"pages/personal/personal",
"pages/auth/auth",
"pages/works/works"
"pages/ranking/ranking"
],
"subpackages": [
{
"root": "pagesA",
"name": "secends",
"pages": [
"pages/works/works",
"pages/rule/rule",
"pages/picture/picture",
"pages/sign/sign",
"pages/personal/personal",
"pages/auth/auth"
]
}
],
"preloadRule": {
"pages/index/index": {
"network": "all",
"packages": ["secends"]
}
},
"requiredBackgroundModes": [
"audio",
"location"
],
"tabBar": {
"custom": true,

View File

@ -46,7 +46,6 @@ view{
font-size: 30rpx;
}
.countdown .names text{
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfMAAAAJCAYAAAAmccWAAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyVpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDAyIDc5LjE2NDQ2MCwgMjAyMC8wNS8xMi0xNjowNDoxNyAgIC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O9q1SpCQBzBxXlWTmmikL+EDt08fssAMhD/R9z542azAnYmRfXl7KhBgA5WlNBcXfmATWYFL2Xus9Yj/5d+klNAHJ0p/Qy1ufKGTXZ43E0zZ69IyJT5fKXS1bKSboz54gIAOZOufGY3bYrFx8JeVQ+lKWLj4x0HI/YATB3kPgWYABV0EFs4jF8rAAAAABJRU5ErkJggg==") no-repeat center;
background-size:499rpx 10rpx;
display: inline-block;
width: 100%;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 891 KiB

After

Width:  |  Height:  |  Size: 295 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 712 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 304 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 141 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 392 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 319 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 135 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 811 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

View File

@ -1,154 +0,0 @@
// pages/sign/sign.js
Page({
/**
* 页面的初始数据
*/
data: {
img_url:wx.getStorageSync('img_url'),
swiperCurrent:0,
autoplay: false,
interval: 3000,
duration: 800,
//倒计时数据
endTime: '2020/11/22 10:40:30',
//
tab_number:31,//参与者
tab_vote:2375,//投票数
tab_visit:55,//访问次数
//上传图
source:'',
is_upload:'0',
},
/**
* 上传图片
*/
uploadimg:function(){
var that = this;
wx.chooseImage({ //从本地相册选择图片或使用相机拍照
count: 1, // 默认9
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
success:function(res){
//前台显示
that.setData({
source: res.tempFilePaths,
is_upload:'1'
})
// 返回选定照片的本地文件路径列表tempFilePath可以作为img标签的src属性显示图片
var tempFilePaths = res.tempFilePaths
wx.uploadFile({
url: '#',
filePath: tempFilePaths[0],
name: 'file',
success:function(res){
//打印
}
})
}
})
//https://www.jb51.net/article/132557.htm 后端源码
},
//上传图片
swiperChange: function (e) {
this.setData({
swiperCurrent: e.detail.current
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
var that = this;
that.countDown()
},
// 倒计时
countDown:function(){
var that=this;
var nowTime = new Date().getTime();//现在时间(时间戳)
var endTime = new Date(that.data.endTime).getTime();//结束时间(时间戳)
var time = (endTime-nowTime)/1000;//距离结束的毫秒数
// 获取天、时、分、秒
let day = parseInt(time / (60 * 60 * 24));
let hou = parseInt(time % (60 * 60 * 24) / 3600);
let min = parseInt(time % (60 * 60 * 24) % 3600 / 60);
let sec = parseInt(time % (60 * 60 * 24) % 3600 % 60);
day = that.timeFormin(day),
hou = that.timeFormin(hou),
min = that.timeFormin(min),
sec = that.timeFormin(sec)
that.setData({
day: that.timeFormat(day),
hou: that.timeFormat(hou),
min: that.timeFormat(min),
sec: that.timeFormat(sec)
})
// 每1000ms刷新一次
if (time>0){
that.setData({
countDown: true
})
setTimeout(this.countDown, 1000);
}else{
that.setData({
countDown:false
})
}
},
//小于10的格式化函数2变成02
timeFormat(param) {
return param < 10 ? '0' + param : param;
},
//小于0的格式化函数不会出现负数
timeFormin(param) {
return param < 0 ? 0: param;
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

View File

@ -1,3 +0,0 @@
{
"usingComponents": {}
}

View File

@ -1,66 +0,0 @@
<!--pages/sign.wxml-->
<view class="container">
<view class="page-body">
<view class="page-section page-section-spacing swiper">
<swiper autoplay="true" interval="{{interval}}" duration="{{duration}}"
circular="true" current="{{swiperCurrent}}" bindchange="swiperChange">
<block wx:for="{{img_url}}" >
<swiper-item>
<view class="swiper-item">
<image src="{{item}}" ></image>
</view>
</swiper-item>
</block>
</swiper>
</view>
<view class="dots">
<block wx:for="{{img_url}}" wx:key="unique">
<view class="dot{{index == swiperCurrent ? ' active' : ''}}"></view>
</block>
</view>
</view>
<!--内容-->
<view class="view-bg top40">
<view class="countdown">
<view class="names">
<text>距离投票结束还有</text>
</view>
<view class="time" >
<text>{{day}}</text>天 <text>{{hou}}</text>时<text>{{min}}</text>分<text>{{sec}}</text>秒
</view>
<view class="tab">
<view class="list">
{{tab_number}}<text>人</text>
<text>参与者</text>
</view>
<view class="list">
{{tab_vote}}<text>票</text>
<text>投票数</text>
</view>
<view class="list">
{{tab_visit}}<text>次</text>
<text>访问量</text>
</view>
</view>
</view>
<!--表单-->
<view class="sign">
<form>
<view class="list">
<text>描述</text>
<textarea placeholder="请介绍一下自己" maxlength="100" adjust-position="true" />
</view>
<view class="list">
<text>上传作品</text>
<view class="img">
<image src='{{source}}'/>
<view class="{{is_upload=='1'?'uploadopacity':''}} uploadimg" bindtap="uploadimg"></view>
</view>
</view>
<view class="list">
<button>提交报名</button>
</view>
</form>
</view>
</view>
</view>

View File

@ -1,102 +0,0 @@
/* pages/sign/sign.wxss */
.page-body{
height: 300rpx;
position: relative;
}
.swiper-item image{
width: 100%;
height: 300rpx;
}
.dots{
display: inline-block;
position: absolute;
bottom: 20rpx;
right: 0;
padding: 0 20rpx;
}
.dots .dot{
width: 8rpx;
height: 8rpx;
background: #fff;
float: left;
margin:0 4rpx;
border-radius: 50%;
}
.dots .dot.active{
background: #2a8de9;
}
.sign{
padding: 0 40rpx;
width: 100%;
}
.sign .list{
margin-top: 40rpx;
width: 100%;
}
.sign .list text{
font-size: 30rpx;
}
.sign .list input,.sign .list textarea{
width: 610rpx;
height: 70rpx;
border: none;
background-color: #eeeeee;
border-radius: 5rpx;
margin-top: 10rpx;
padding: 0 20rpx;
font-size: 26rpx;
}
.sign .list textarea{
height: 173rpx;
padding-top: 20rpx;
}
.sign .list button:not([size='mini']){
width: 570rpx;
border-radius: 8rpx;
background-color: #2a8de9;
color: #fff;
font-size: 30rpx;
height: 74rpx;
}
.sign .list .img{
margin-top:20rpx;
display: inline-block;
width: 100%;
position: relative;
}
.sign .list image{
width: 160rpx;
height: 160rpx;
float: left;
}
.sign .list .uploadimg{
width: 160rpx;
height: 160rpx;
border: 2rpx solid #cacaca;
position: relative;
}
.uploadopacity{
opacity:0
}
.sign .list .uploadimg::after{
width: 112rpx;
height: 6rpx;
background: #cacaca;
content: "";
position: absolute;
left: 50%;
margin-left: -56rpx;
top: 50%;
margin-top: -3rpx;
}
.sign .list .uploadimg::before{
width: 6rpx;
height: 112rpx;
background: #cacaca;
content: "";
position: absolute;
left: 50%;
margin-left: -3rpx;
top: 50%;
margin-top: -56rpx;
}

View File

@ -11,6 +11,8 @@ const maskCanvas = wx.createCanvasContext('maskCanvas', this); // 创建 canvas
const util = require('../../utils/util.js');
var urlPath = require('../../config.js');
const innerAudioContext = wx.createInnerAudioContext()
var srcurl=`${urlPath.host}/static/media/bg_audio.mp3`;
Page({
/**
* 页面的初始数据
@ -24,10 +26,9 @@ Page({
// titlelist: ['脸谱', '背景', '按钮', '川剧', '人物', '文字', '装饰'],
titlelist: [],
titleIndex: '-1',
allList: [
'../../img/background/1.png',
],
allList: [],
allIndex: '-1',
zancunImg:[],//缓存中的图片
isOk: false,
isNo: false,
closeTime: null,
@ -39,7 +40,9 @@ Page({
creat_close:true,
currentIndex:0,
worksBox:false,
isloading:false
isloading:false,
playAudio:false,
guiz:false
},
// 下一个
nextEv(){
@ -74,6 +77,7 @@ Page({
closeWorks(){
this.setData({funBox:true,worksBox:false,creat_close:true})
},
// 标题点击事件
chooseTitle(e) {
if(this.data.isloading==false) {
let that = this;
@ -89,6 +93,11 @@ Page({
currentIndex:0
})
this.getBottleWidgets(that.data.titlelist[that.data.titleIndex].id);
} else {
wx.showToast({
title:'正在加载...',
icon:'loading'
})
}
},
chooseImg(e) {
@ -133,17 +142,22 @@ Page({
}
},
onShow: function() {
if (typeof this.getTabBar === 'function' &&
this.getTabBar()) {
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
this.getTabBar().setData({
selected: 0
})
}
this.onmusicTap();
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
if(wx.getStorageSync('guiz')!=false) {
this.setData({
guiz:true
})
}
let that = this;
items = this.data.itemList;
wx.getSystemInfo({ // 获取系统信息
@ -170,15 +184,15 @@ Page({
if (res.data.code == 0) {
wx.setStorageSync('token', res.data.data.token);
wx.setStorageSync('username', res.data.data.user.wx_name);
that.setBackGroundImg({
url: '../../img/background/3.png'
});
that.getBottleCategories();
}
}
});
}
})
that.setBackGroundImg({
url: '../../img/background/3.png'
});
},
// 上传图片
uploadImg() {
@ -497,8 +511,6 @@ Page({
canvasTemImg: res.tempFilePath
})
if(whereIndex==1){
wx.showToast({title:'正在调起分享',duration:5000})
console.log(this.data.canvasTemImg);
wx.uploadFile({
url: urlPath.composeBottle,
filePath: this.data.canvasTemImg,
@ -517,6 +529,10 @@ Page({
wx.downloadFile({
url: urlPath.host + newRes.data.src,
success: (res) => {
wx.hideToast();
this.setData({
times:0
})
wx.showShareImageMenu({
path: res.tempFilePath,
success:(res)=>{}
@ -606,7 +622,11 @@ Page({
},
// 首页左下角分享
homeShare(){
this.synthesis(1);
if(this.data.times==0){
wx.showToast({title:'正在调起分享',duration:50000})
this.data.times++
this.synthesis(1);
}
},
// 分享图片
shareImg(e) {
@ -616,7 +636,7 @@ Page({
times:this.data.times++
})
if(newIndex==0){
wx.showToast({title:'正在调起分享',duration:5000})
wx.showToast({title:'正在调起分享',duration:50000})
}
wx.uploadFile({
url: urlPath.composeBottle,
@ -634,10 +654,13 @@ Page({
let newRes = JSON.parse(res.data);
if(newRes.code==0){
if(newIndex==0){
console.log(newIndex);
wx.downloadFile({
url: urlPath.host + newRes.data.src,
success: (res) => {
wx.hideToast();
this.setData({
times:0
})
wx.showShareImageMenu({
path: res.tempFilePath,
success:(res)=>{}
@ -712,8 +735,6 @@ Page({
avater: this.data.userInfo.avatarUrl,
},
success:(res)=> {
console.log(this.data.userInfo.nickName,);
console.log(res);
if (res.data.code == 0) {
wx.setStorageSync('token', res.data.data.token);
wx.setStorageSync('openid', res.data.data.openid);
@ -747,6 +768,13 @@ Page({
titlelist: res.data.data
})
// this.getBottleWidgets(res.data.data[0].id);
let arrImg = [];
for (var i = 0; i < res.data.data.length; i++) {
arrImg.push([]);
}
this.setData({
zancunImg:arrImg
})
}
}
}
@ -758,55 +786,94 @@ Page({
isloading:true,
allList: []
})
wx.request({
url: urlPath.getBottleWidgets,
method: 'post',
data: {
category_id: id,
size: 60
},
success: (res) => {
if (res.data.code == 0) {
if (res.data.data.length) {
this.setData({
haveData: true
})
let newArr = [];
res.data.data.forEach(item => {
let url = urlPath.host + item.img;
this.downLoadImg(url, urlPath.host + item.img);
let obj = {
id: item.id,
name: item.name,
img: urlPath.host + item.img,
img_thumb:urlPath.host + item.img_thumb,
}
newArr.push(obj)
})
this.setData({
allList: newArr,
})
this.setData({
isloading:false
})
} else {
// wx.showToast({
// title:'无内容',
// icon:'none'
// })
this.setData({
haveData: false
})
if(this.data.zancunImg[this.data.titleIndex].length==0){
wx.request({
url: urlPath.getBottleWidgets,
method: 'post',
data: {
category_id: id,
size: 60
},
success: (res) => {
if (res.data.code == 0) {
if (res.data.data.length) {
this.setData({
haveData: true
})
let newArr = [];
res.data.data.forEach(item => {
let url = urlPath.host + item.img;
this.downLoadImg(url, urlPath.host + item.img);
let obj = {
id: item.id,
name: item.name,
img: urlPath.host + item.img,
img_thumb:urlPath.host + item.img_thumb,
}
newArr.push(obj)
})
this.data.zancunImg[this.data.titleIndex] = newArr;
this.setData({
zancunImg:this.data.zancunImg
})
this.setData({
allList: newArr,
isloading:false
})
} else {
this.setData({
haveData: false,
isloading:false
})
}
}
}
}
});
});
} else {
this.setData({
allList: this.data.zancunImg[this.data.titleIndex],
isloading:false,
haveData: true
})
}
},
// 查看我的作品
checkWorkEv() {
wx.navigateTo({
url: '/pages/works/works'
})
},
onmusicTap: function (event) {
// var srcurl="http://ws.stream.qqmusic.qq.com/C400003ve1uC4XLn3d.m4a?guid=689499762&vkey=B1D022604613407E7D095A017630F160F652877AAD8834515F05D5777E57F7F08467145E6879B04A2694BA6B7CD82AB028B7C2635D21F49B&uin=&fromtag=66"
innerAudioContext.autoplay = true
innerAudioContext.src = srcurl
innerAudioContext.onPlay(() => {
console.log('开始播放')
this.setData({
playAudio:false
})
})
},
onHide(){
this.closeAudio()
},
playAudio(){
innerAudioContext.play();
this.setData({
playAudio:false
})
},
closeAudio(){
innerAudioContext.pause();
this.setData({
playAudio:true
})
},
closeTank(){
wx.setStorageSync('guiz',false);
this.setData({
guiz:false
})
}
})

View File

@ -44,13 +44,18 @@
<view wx:if="{{funBox}}" bindtap="creatWorks" class="creat-works-btn">创建作品</view>
<!-- 右下角操作按钮 -->
<view wx:if="{{funBox}}" class="operation-buttons">
<view><navigator url="/pages/works/works" hover-class="none">作品</navigator></view>
<view><navigator url="/pages/rule/rule" hover-class="none">规则</navigator></view>
<view style="background-color: #33d301;" bindtap='homeShare'>
<!-- <view><navigator url="/pagesA/pages/works/works" hover-class="none">作品</navigator></view> -->
<view class="new-box"><navigator url="/pagesA/pages/rule/rule" hover-class="none" class="quan"><text>活动</text><text>规则</text></navigator></view>
<!-- <view style="background-color: #33d301;" bindtap='homeShare'>
<image src="../../img/share-icon.png"></image>
</view> -->
<view class="new-box" bindtap="openMask">
<!-- <image src="../../img/download-icon.png"></image> -->
<view class="quan" bindtap='openMask'><text>参加</text><text>活动</text></view>
</view>
<view style="background-color: #2a7be9;" bindtap="openMask">
<image src="../../img/download-icon.png"></image>
<view class="new-box">
<view class="quan" hidden="{{playAudio}}" bindtap="closeAudio" ><text>关闭</text><text>音乐</text></view>
<view class="quan" hidden="{{!playAudio}}" bindtap="playAudio"><text>开启</text><text>音乐</text></view>
</view>
</view>
<!-- 我的作品 -->
@ -74,8 +79,8 @@
</swiper-item>
</block>
</swiper>
<view wx:else class="scrollView"><view style="width: 100%;height: 320rpx; color: rgba(255,255,255,.5);display: flex;justify-content: center;align-items: center;">无内容</view></view>
<view wx:if="{{haveData}}" style="position: fixed;z-index: 0;bottom: 280rpx;left: 0;right: 0;display: flex;justify-content: space-between;">
<view wx:else class="scrollView"><view class="nothing">无内容</view></view>
<view wx:if="{{haveData}}" class="pre-next-box">
<image src="../../img/next-icon.png" bindtap="preEv" class="arrowBtn pre" style="transform: rotate(180deg);"></image>
<image bindtap="nextEv" src="../../img/next-icon.png" class="arrowBtn next"></image>
</view>
@ -119,4 +124,27 @@
</view>
</view>
</view>
</view>
<!-- 游戏规则 -->
<view wx:if="{{guiz}}" class="guiz">
<view class="guiz-box">
<view style="font-size: 28rpx;font-weight: bold;color: #000;">DIY“丰谷酒王”游戏规则</view>
<view style="text-indent: 2em;">您可以为亲人、朋友、爱人专属定制的换装小游戏点击背景、人物、文字和装饰将这些素材拖动到“丰谷酒王”瓶身上随意DIY换装完成后点击下载即可自动生成专属的“丰谷酒王”海报图。让您在元旦佳节给朋友送上最浓烈的专属祝福使你们的有情更有情。</view>
<view style="text-indent: 2em;">活动期间2022年1月1日-3日参与此游戏并下载生成专属“丰谷酒王”图你的DIY图片将会自动参与到作品投票环节获得票数最多的前十名用户会获得丰谷好礼。</view>
<view style="text-align: center;">
<view>第一名“丰谷壹号”1瓶价值968元</view>
<view>第二名“丰谷酒王”2瓶价值876</view>
<view>第三名“丰谷酒王”1瓶价值438元</view>
<view>第四至六“丰谷墨渊”1件6瓶价值350元</view>
<view>第七至十“丰谷墨渊”2瓶价值116元</view>
</view>
<view style="font-size: 28rpx;font-weight: bold;color: #000;">投票规则</view>
<view>1. 进行3轮线上网友投票,每次在所有参赛作品中选出前20张DIY作品入围决赛并进行线下展出;</view>
<view>2. 每个ID限制投票1次;</view>
<view>3. 每个微信帐号只能投稿一次,同一作者用不同帐号多次投稿,取最高获票名次;</view>
<view>4. 每次投票时间为期3天逾期将不可投票;</view>
<view>5. 最终解释权归鑫焱探索科技有限公司所有;</view>
<view>6.整个投票截止时间为2022年1月3日23点59分结束。</view>
<view bindtap="closeTank" class="close-btn">X</view>
</view>
</view>

View File

@ -74,20 +74,25 @@
.touchActive {
z-index: 400;
}
.operation-buttons {
position: absolute;
bottom: 110rpx;
top: 0rpx;
right: 15rpx;
display: flex;
flex-direction: column;
z-index: 101;
transition: all .5s ease-in-out;
}
.operation-buttons view {
.decimalNum{
list-style: decimal;
}
.operation-buttons .new-box {
width: 51px;height: 51px;background-color: #2a7be9;border-radius: 50%;color: #fff;display: flex;justify-content: center;align-items: center;margin-top: 40rpx;
}
.quan {
display: flex;justify-content: center;align-items: center;flex-direction: column;
font-size: 24rpx;
}
.operation-buttons image {
width: 27px;height: 25px;margin-top: 0px;
}
@ -223,8 +228,10 @@ scroll-view {
swiper {
padding-bottom: 20rpx;
}
.nothing {width: 100%;height: 320rpx; color: rgba(255,255,255,.5);display: flex;justify-content: center;align-items: center;}
.pre-next-box {position: fixed;z-index: 0;bottom: 280rpx;left: 0;right: 0;display: flex;justify-content: space-between;}
.creat-works-btn {position: fixed;bottom: 110rpx;left: 77px;right: 77px; height: 51px;line-height: 51px;text-align: center;color: #fff;background-color: #287be9;border-radius: 51px;z-index: 101;box-sizing: border-box;font-weight: bold;}
.works-box {position: fixed;bottom: 110rpx;z-index: 101;}
.works-box {position: fixed;bottom: 110rpx;z-index: 101;left: 0;right: 0;}
.works-boxAc {bottom: 86rpx;}
.close-works-btn {background-color: #2a7be9;color: #fff;border-radius: 20px 20px 0 0;padding: 50rpx 20rpx 30rpx 20rpx;display: inline-block;}
.works-content {background-color: #2a7be9;}
@ -338,3 +345,6 @@ swiper {
.isNyin{box-shadow: 0rpx 3rpx 6rpx rgba(0,0,0,.5);}
.isOyin{box-shadow: 0rpx 3rpx 6rpx rgba(0,0,0,1);}
.card-box-userinfo {transform: rotate(360deg) scale(0);transition: all 1s ease-in-out;}
.guiz {position: fixed;top: 0;left: 0;right: 0;bottom: 80rpx;background-color: rgba(0,0,0,.5);display: flex;justify-content: center;align-items: center;z-index: 10000;padding: 60rpx;}
.guiz-box {background-color: rgba(255,255,255,1);border-radius: 20rpx;padding: 20rpx;font-size: 24rpx;color: #333;line-height: 40rpx;position: relative;}
.close-btn {width: 30rpx;height: 30rpx;display: flex;justify-content: center;align-items: center;background-color: #2a7be9;color: #fff;border-radius: 50%;padding: 30rpx;font-size: 30rpx;position: absolute;right: -20rpx;top: -20rpx;}

View File

@ -5,12 +5,12 @@ Page({
// 前往下一页
picture(e) {
wx.navigateTo({
url: '../picture/picture?id=' + e.currentTarget.dataset.id
url: '/pagesA/pages/picture/picture?id=' + e.currentTarget.dataset.id
});
},
rule() {
wx.navigateTo({
url: '../rule/rule'
url: '/pagesA/pages/rule/rule'
});
},
vote(e){
@ -48,11 +48,11 @@ Page({
},
personal(e) {
wx.navigateTo({
url: '../personal/personal?id=' + e.currentTarget.dataset.uid
url: '/pagesA/pages/personal/personal?id=' + e.currentTarget.dataset.uid
});
},
sign() {
wx.navigateTo({ url: '../sign/sign' });
wx.navigateTo({ url: '/pagesA/pages/sign/sign' });
},
/**
* 页面的初始数据
@ -89,52 +89,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
var that = this;
that.setData({
//倒计时数据
endTime: '',
tab_number: 0 ,//参与者
tab_vote: 0,//投票数
tab_visit: 0,//访问次数
rule_text:['1、本次活动不收任何费用不退稿。2、参赛作品需附有作品介绍字数限100字以内。3、每位参赛者仅限提交不超过5幅3、每位参赛者仅限提交不超过5幅'],//活动规则
//列表
works_list: [],
pageSize : 20,
});
//登录状态
wx.checkSession({
success: function (res) {
that.getSlideList();
that.saveVisit();
that.getBaseInfo();
//var user = wx.getStorageSync('user') || [];
},
fail: function(){
wx.login({
success: res => {
wx.request({
url: urlPath.getopenid,
data: {
code: res.code
},
success(res) {
if(res.data.code == 0){
wx.setStorageSync('token', res.data.data.token);
wx.setStorageSync('openid', res.data.data.openid);
wx.setStorageSync('user', res.data.data.user);
that.onLoad();
}else{
console.log(res.data.msg);
}
}
});
}
})
}
});
//that.countDown()//倒计时监听
this.getBaseInfo();
},
saveVisit:function(){
wx.request({
@ -346,6 +301,7 @@ Page({
rule: vote.rule
});
wx.setStorageSync('baseInfo', res.data.data);
console.log(wx.getStorageSync('baseInfo'),'数据');
that.countDown()
}else{
console.log(res.data.msg); //失败
@ -377,7 +333,7 @@ Page({
var items = res.data.data.items;
if(type== 'int'){
wx.navigateTo({
url: '../picture/picture?id=' + items.id
url: '/pagesA/pages/picture/picture?id=' + items.id
});
}else if(type == 'string'){
var vote_list = [];

View File

@ -1,5 +0,0 @@
{
"usingComponents": {
"mp-tabbar": "../../custom-tab-bar/index"
}
}

View File

@ -13,15 +13,15 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
var that = this;
that.getList();
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
var that = this;
that.getList();
},
/**

View File

@ -20,7 +20,7 @@
<block wx:for="{{ranking_list}}" wx:key="index">
<view class="ranking-list">
<view class="ranks"><text>{{item.ranks}}</text></view>
<view class="name">{{item.name}}</view>
<view class="name clips1">{{item.name}}</view>
<view class="img">
<view class="id">{{item.ids}}<text>号</text></view>
<image mode="aspectFill" src="{{item.img}}"></image>

View File

@ -50,36 +50,38 @@
.ranking .ranking-th{
background: #f7f7f7;
width: 100%;
display: inline-block;
display: flex;
vertical-align:top;
padding: 20rpx;
}
.ranking .ranking-th view{
float: left;
display: inline-block;
font-size: 28rpx;
padding: 20rpx 0 20rpx 20rpx ;
color: #a8a8a8;
}
.ranking .ranking-list {
display: inline-block;
display: flex;
vertical-align:top;
width: 100%;
border-bottom: 1rpx solid #dddddd;
padding: 20rpx;
}
.ranking .ranking-th view:nth-child(1),.ranking .ranking-list view:nth-child(1){
width: 200rpx;
width: 12%;
}
.ranking .ranking-th view:nth-child(2),.ranking .ranking-list view:nth-child(2){
width: 180rpx;
width: 48%;
}
.ranking .ranking-th view:nth-child(3),.ranking .ranking-list view:nth-child(3){
width: 270rpx;
width: 25%;
}
.ranking .ranking-th view:nth-child(4),.ranking .ranking-list view:nth-child(4){
width: 100rpx;
width: 30%;
text-align: center;
padding-left: 0rpx;
}
.clips1{display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 1;overflow: hidden;text-overflow: ellipsis;word-wrap: break-word;word-break:break-all;}
.ranking .ranking-list .ranks text{
font-size: 40rpx;
color: #fc7e21;
@ -87,7 +89,7 @@
height: 94rpx;
text-align: center;
display: block;
margin-left: 20rpx;
margin-left: 10rpx;
}
.ranking .ranking-list:nth-child(1) .ranks text{
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAyCAYAAAAus5mQAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyVpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdG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F6aFU9Tde0U9RVsfzVAn1wX9ynZMzZJtdnltRm0IAbbgNG5GVoqrpdH/Js1mt+hp/lPiyWNOZqFdypq1to2D+xvuMB/HlanPJF2CgY8rv1oVH9A+Sc6dMrWErUby3KXoTlqwbeaojHms2yXsontMfBeTnt8psQOQCRfF45Cuwxx7eC3LVOh/5vdI7sXB+MhRe2TVG1FCnEk8qxXOJ7AVwJyxdJI58f1D7fdCjcsOaZwPZ6m1biTpDLPBRJLWYxrqYC5O78t8+18btnU1YeDJUtywal1Llb7f/Ppl4ap1BTFQW31JK22pPVBFHG58j1yxA5L15DUGsNWs+m2slDLUNpCUxiO+OzRCNn9xUd0eoSCjdWUKSujKKVSLJKgjypxcg+OkOOAR+pf90g+8iUORHG+z6atcDStzs5xT+45HgIogUyu0JamZu0EhfF1HiB1BaOYhiDpPgC+oslse3LEiiqDq7kiU0jZcyvIwtrhRNUDHM4cd0mFlsckbYm+f5HwL4c7xceBn5eiNMTFylporYYglzbjqQTK8m9OiDTTWGPvJanYQ9lK/C+DIn4o+Eu4fUvM3iumadaNgKb0yTgL5tcU+alcUCcJZ4Enqb4Z4VUxpliXTYCU52c+CzDHwX5U+xbvOmR7n8B3Al0pCG0JhuBpQmu80H/NaAWeBm4kuwsBHwoYnk38I3Fi5BcH0o3D34LtHB9BPgb+An4muIfpjPeBgKnBMrFdm6rED4G/Jrowf8FGABQFe50buzSYwAAAABJRU5ErkJggg==) no-repeat center;
@ -112,7 +114,7 @@
}
.ranking .ranking-list view{
float: left;
display: inline-block;
/* display: inline-block; */
padding: 0;
height: 94rpx;
line-height: 94rpx;

View File

@ -3,10 +3,10 @@ var urlPath = require('../../config.js');
Page({
// 前往下一页
picture() {
wx.navigateTo({ url: '../picture/picture' });
wx.navigateTo({ url: '/pagesA/pages/picture/picture' });
},
again() {
wx.navigateTo({ url: '../sign/sign' });
wx.navigateTo({ url: '/pagesA/pages/sign/sign' });
},
/**
* 页面的初始数据
@ -34,10 +34,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
var that = this;
var user = wx.getStorageSync('user');
console.log(user);
that.getImgs();
},
//小于10的格式化函数2变成02
timeFormat(param) {
@ -51,7 +48,9 @@ Page({
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
var that = this;
var user = wx.getStorageSync('user');
that.getImgs();
},
/**

View File

@ -8,7 +8,7 @@ Page({
success: (res) => {
if (res.authSetting['scope.userInfo']) {
wx.reLaunch({
url: '../index/index',
url: '/pages/index/index',
})
}
}

View File

@ -3,5 +3,5 @@
<view class="title">微信授权页面</view>
<view class="describe">此页面是微信授权页面,点击下方按钮弹出授权或跳转页面</view>
<button class="btn" open-type='getUserInfo' wx:if="{{canIUse}}" bindgetuserinfo='onAuth'>点击微信授权</button>
<navigator wx:if="{{!canIUse}}" class="btn" url="/pages/auth/auth" open-type="reLaunch" hover-class="other-navigator-hover">已经授权点击调转</navigator>
<navigator wx:if="{{!canIUse}}" class="btn" url="/pagesA/pages/auth/auth" open-type="reLaunch" hover-class="other-navigator-hover">已经授权点击调转</navigator>
</view>

View File

@ -1,9 +1,10 @@
// pages/picture/picture.js
var urlPath = require('../../../config.js');
Page({
// 前往下一页
picture() {
wx.navigateTo({ url: '../picture/picture' });
wx.navigateTo({ url: '/pagesA/pages/picture/picture' });
},
/**
* 页面的初始数据
@ -15,8 +16,8 @@ Page({
interval: 3000,
duration: 800,
//数据
name:"王凯杰",
nm_number:"237",
name:"",
nm_number:"",
//列表
works_list:[],
user_id:''
@ -45,7 +46,7 @@ Page({
getUserProduction:function(userId){
var that = this;
wx.request({
url: wx.getStorageSync('urlPath').getUserProduction,
url: urlPath.getUserProduction,
header:{
'token' : wx.getStorageSync('token')
},
@ -56,7 +57,6 @@ Page({
if(res.data.code == 0){
if(res.data.data.length > 0){
var vote_list = [];
var urlPath = wx.getStorageSync('urlPath');
res.data.data.forEach(function(item){
vote_list.push({
ids: item.id,
@ -78,7 +78,7 @@ Page({
getUserInfo:function(userId){
var that = this;
wx.request({
url: wx.getStorageSync('urlPath').getUserById,
url: urlPath.getUserById,
header:{
'token' : wx.getStorageSync('token')
},
@ -87,7 +87,6 @@ Page({
},
success(res){
if(res.data.code == 0){
console.log(res.data.data);
that.setData({
name:res.data.data.name,
nm_number:res.data.data.allVoteNumber
@ -191,7 +190,7 @@ Page({
var id = e.currentTarget.dataset.id;
if(id > 0){
wx.request({
url: wx.getStorageSync('urlPath').vote,
url: urlPath.vote,
header:{
'token' : wx.getStorageSync('token')
},

View File

@ -4,7 +4,7 @@
<view class="page-section page-section-spacing swiper">
<swiper autoplay="true" interval="{{interval}}" duration="{{duration}}"
circular="true" current="{{swiperCurrent}}" bindchange="swiperChange">
<block wx:for="{{img_url}}" >
<block wx:for="{{img_url}}" wx:key="index">
<swiper-item>
<view class="swiper-item">
<image src="{{item}}"></image>
@ -27,22 +27,16 @@
</view>
<!--作品列表-->
<view class="works">
<block wx:for="{{works_list}}" >
<block wx:for="{{works_list}}" wx:key="index">
<view class="list">
<view class="img" bindtap='picture'>
<view class="id">{{item.ids}}<text>号</text></view>
<image mode="aspectFill" src="{{item.img}}"></image>
</view>
<view class="personal-right">
<view class="text">
简介:{{item.text}}
</view>
<view class="name">
<text>{{item.number}}</text>
</view>
<button class="add" bindtap="vote" data-id="{{item.ids}}">
投票
</button>
<view class="text">简介:{{item.text}}</view>
<view class="name"><text>{{item.number}}</text></view>
<button class="add" bindtap="vote" data-id="{{item.ids}}">投票</button>
</view>
</view>
</block>

View File

@ -1,12 +1,12 @@
// pages/picture/picture.js
var urlPath = require('../../config.js');
var urlPath = require('../../../config.js');
Page({
// 前往下一页
personal() {
wx.navigateTo({ url: '../personal/personal' });
wx.navigateTo({ url: '/pagesA/pages/personal/personal' });
},
sign() {
wx.navigateTo({ url: '../sign/sign' });
wx.navigateTo({ url: '/pagesA/pages/sign/sign' });
},
/**
* 页面的初始数据
@ -25,10 +25,10 @@ Page({
tab_visit:55,//访问次数
//
ids:'22',
img:'../../img/img_03.png',
img:'',
text:'擅长记录身边的人与事!',
name:'王凯杰',
number:'78',
name:'',
number:'',
},
swiperChange: function (e) {
// console.log(e);
@ -43,6 +43,7 @@ Page({
onLoad: function (options) {
var that = this;
var baseInfo = wx.getStorageSync('baseInfo');
console.log(baseInfo);
that.setData({
tab_number: baseInfo.numberOfPeople,
tab_vote: baseInfo.voteNumber,
@ -52,7 +53,6 @@ Page({
img_url:wx.getStorageSync('img_url'),
});
that.countDown();
console.log(options);
that.getDetail(options.id);
},
// 倒计时
@ -89,6 +89,9 @@ Page({
})
}
},
rule(){
wx.navigateTo({url:'/pagesA/pages/rule/rule'})
},
getDetail:function(id){
var that = this;
wx.request({
@ -100,6 +103,7 @@ Page({
'id' : id
},
success(res){
console.log(res,'shuju1');
if(res.data.code == 0){
var item = res.data.data;
that.setData({

View File

@ -0,0 +1,5 @@
{
"usingComponents": {
"mp-tabbar": "../../../custom-tab-bar/index"
}
}

View File

@ -4,7 +4,7 @@
<view class="page-section page-section-spacing swiper">
<swiper autoplay="true" interval="{{interval}}" duration="{{duration}}"
circular="true" current="{{swiperCurrent}}" bindchange="swiperChange">
<block wx:for="{{img_url}}" >
<block wx:for="{{img_url}}" wx:key="index">
<swiper-item>
<view class="swiper-item">
<image src="{{item}}"></image>
@ -47,7 +47,7 @@
<view class="picture_conter">
<view class="img">
<view class="id">{{ids}}<text>号</text></view>
<image mode="aspectFill" src="{{img}}"></image>
<image mode="aspectFit" src="{{img}}"></image>
</view>
<rich-text class="rule-center" nodes="{{text}}"></rich-text>
<!--view class="text">

View File

@ -2,7 +2,7 @@
Page({
sign() {
wx.navigateTo({ url: '../sign/sign' });
wx.navigateTo({ url: '/pagesA/pages/sign/sign' });
},
/**
* 页面的初始数据

View File

@ -1,5 +1,5 @@
// pages/works/works.js
var urlPath = require('../../config.js');
var urlPath = require('../../../config.js');
Page({
/**

View File

@ -10,7 +10,7 @@
<!-- <text class="clips2">{{item.name}}</text> -->
<view class="time">{{item.time}}</view>
<view wx:if="{{item.isShare==0}}" class="share-box" bindtap="shareEv" data-id="{{item.id}}" data-index="{{index}}">
<image src="../../img/share-lisit-icon.png"></image>
<image src="../../../img/share-lisit-icon.png"></image>
</view>
<view wx:else class="activeBtn" style="background-color: #ccc;color: #fff;">正在参与活动</view>
<view wx:if="{{item.isShare==0}}" bindtap="partEv" class="activeBtn" data-id="{{item.id}}" data-index="{{index}}">参与活动</view>

View File

@ -30,7 +30,7 @@
"disablePlugins": [],
"outputPath": ""
},
"useIsolateContext": true,
"useIsolateContext": false,
"userConfirmedBundleSwitch": false,
"packNpmManually": false,
"packNpmRelationList": [],