刘翔宇-旅管家 3 years ago
parent c6dbdf0b71
commit 3c9ff0d9f5

@ -1,28 +1,28 @@
{
"name" : "wx-dangyuanjiaoyujidi",
"appid" : "__UNI__FC384E5",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : "100",
"transformPx" : false,
"name": "wx-dangyuanjiaoyujidi",
"appid": "__UNI__FC384E5",
"description": "",
"versionName": "1.0.0",
"versionCode": "100",
"transformPx": false,
/* 5+App */
"app-plus" : {
"usingComponents" : true,
"nvueStyleCompiler" : "uni-app",
"compilerVersion" : 3,
"splashscreen" : {
"alwaysShowBeforeRender" : true,
"waiting" : true,
"autoclose" : true,
"delay" : 0
"app-plus": {
"usingComponents": true,
"nvueStyleCompiler": "uni-app",
"compilerVersion": 3,
"splashscreen": {
"alwaysShowBeforeRender": true,
"waiting": true,
"autoclose": true,
"delay": 0
},
/* */
"modules" : {},
"modules": {},
/* */
"distribute" : {
"distribute": {
/* android */
"android" : {
"permissions" : [
"android": {
"permissions": [
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
@ -41,38 +41,41 @@
]
},
/* ios */
"ios" : {},
"ios": {},
/* SDK */
"sdkConfigs" : {}
"sdkConfigs": {}
}
},
/* */
"quickapp" : {},
"quickapp": {},
/* */
"mp-weixin" : {
"appid" : "wxd7b6631f1d3bc6bd",
"setting" : {
"urlCheck" : false,
"minified" : false
"mp-weixin": {
"appid": "wxd7b6631f1d3bc6bd",
"setting": {
"urlCheck": false,
"minified": false
},
"usingComponents" : true,
"permission" : {
"scope.userLocation" : {
"desc" : "提供您最近的活动地址"
}
"usingComponents": true,
"permission": {
"scope.userLocation": {
"desc": "提供您最近的活动地址"
}
},
"mp-alipay" : {
"usingComponents" : true
"requiredPrivateInfos": [
"getLocation"
]
},
"mp-alipay": {
"usingComponents": true
},
"mp-baidu" : {
"usingComponents" : true
"mp-baidu": {
"usingComponents": true
},
"mp-toutiao" : {
"usingComponents" : true
"mp-toutiao": {
"usingComponents": true
},
"uniStatistics" : {
"enable" : false
"uniStatistics": {
"enable": false
},
"vueVersion" : "2"
"vueVersion": "2"
}

@ -9,13 +9,13 @@
<view class="activityBox-row flex-row justify-between">
<text class="activityBox-title">{{list.name}}</text>
<view class="tag tag_green activityBox_btn">
<text>{{list.target_name}}</text>
<text>{{list.type_name}}</text>
</view>
</view>
<view class="activityBox-row">
<text class="icon-shijian iconfont"></text>
<text>活动时间{{list.start_time}}-{{list.end_time}}</text>
<text>活动时间{{getHm(list.start_time)}}-{{getHm(list.end_time)}}</text>
</view>
<!-- <view class="activityBox-row">
@ -350,6 +350,11 @@
clearTimeout(this.timer)
},
methods: {
getHm(val) {
if (val) {
return this.$moment(val).format("HH:mm:ss")
} else return "";
},
confirmCards(e){
this.card_type_names = e.value[0].label
this.form.card_type = e.value[0].value

@ -19,7 +19,7 @@
</view>
<view class="activityBox-row flex-row justify-between">
<view class="tag tag_green activityBox_btn">
<text>{{isUnde(item.target_name)}}</text>
<text>{{isUnde(item.type_name)}}</text>
</view>
<view class="tag" :class="{activityBox_btn:item.isCanBook}">
<text>{{item.isCanBook?"立即报名":"不可报名"}}</text>
@ -28,7 +28,7 @@
<view class="activityBox-row">
<text class="icon-shijian iconfont"></text>
<text>活动时间{{isUnde(item.start_time)}}-{{getHm(item.end_time)}}</text>
<text>活动时间{{getHm(item.start_time)}}-{{getHm(item.end_time)}}</text>
</view>
<!-- <view class="activityBox-row">
@ -68,7 +68,7 @@
list: [],
latitude: "",
longitude: "",
isloading: false
isloading: true
}
},
onLoad() {
@ -112,11 +112,11 @@
page_size: 100
},
utilSuccess: function(res) {
that.isloading = false;
for (var mod of res.data) {
mod.isCanBook = that.$moment(nt).isBefore(mod.end_plan);
}
that.list = res.data;
that.isloading = false;
},
utilFail: function(res) {
@ -132,7 +132,7 @@
},
getHm(val) {
if (val) {
return this.$moment(val).format("HH:mm")
return this.$moment(val).format("HH:mm:ss")
} else return "";
}
}

@ -18,13 +18,13 @@
<view class="activityBox-row flex-row justify-between">
<text class="activityBox-title">{{isUnde(list.name)}}</text>
<view class="tag tag_green activityBox_btn">
<text>{{isUnde(list.target_name)}}</text>
<text>{{isUnde(list.type_name)}}</text>
</view>
</view>
<view class="activityBox-row">
<text class="icon-shijian iconfont"></text>
<text>活动时间{{isUnde(list.start_time)}}-{{isUnde(list.end_time)}}</text>
<text>活动时间{{getHm(list.start_time)}}-{{getHm(list.end_time)}}</text>
</view>
<!-- <view class="activityBox-row">
@ -60,7 +60,7 @@
<text class="infoBox-titletxt">活动详情</text>
</view>
<view class="infoBox-content">
<rich-text :nodes="list.content"></rich-text>
<rich-text style="text-indent: 2em;font-size: 28rpx;" :nodes="list.content"></rich-text>
</view>
</view>
<view class="infofooter flex-row" v-if="list.isCanBook">
@ -127,7 +127,6 @@
utilSuccess: function(res) {
res.isCanBook = that.$moment(nt).isBefore(res.end_plan);
that.list = res;
that.list.end_time = that.$moment(res.end_time).format("HH:mm");
wx.setStorage({
key: 'activityinfo',
data: res,
@ -151,6 +150,11 @@
} else {
return ""
}
},
getHm(val) {
if (val) {
return this.$moment(val).format("HH:mm:ss")
} else return "";
}
}
}
@ -167,6 +171,7 @@
box-sizing: border-box;
padding: 40rpx 0rpx;
background: #FFFFFF;
margin-bottom: 40rpx;
}
.infoBox-title {
@ -174,7 +179,7 @@
}
.infoBox-titletxt {
font-size: 26rpx;
font-size: 30rpx;
color: #4E4E4E;
margin-left: 21rpx;
}
@ -184,6 +189,7 @@
box-sizing: border-box;
font-size: 24rpx;
color: #828282;
margin-bottom: 100rpx;
}
.infofooter {

@ -7,14 +7,18 @@
</view>
<view class="orderBoxInfo flex-col">
<view class="orderBoxInfoRow flex-row">
<view class="orderBoxInfoRow flex-row" >
<text class="iconfont icon-youkexuzhi"></text>
<text class="orderBoxInfoRowTxt">活动名称{{info.activity.name||"加载中..."}}</text>
</view>
<view class="orderBoxInfoRow flex-row" style="margin-top: 20rpx;">
<text class="iconfont icon-shijian"></text>
<text
class="orderBoxInfoRowTxt">活动时间{{timeFormat(info.activity.start_time, 'MM月DD日')}}{{getHm(info.activity.start_time)}}-{{getHm(info.activity.end_time)}}</text>
class="orderBoxInfoRowTxt">活动时间{{timeFormat(tstart_time, 'MM月DD日')}}{{timeFormat(tstart_time,"HH:mm")}}-{{timeFormat(tend_time,"HH:mm")}}</text>
</view>
<view class="orderBoxInfoRow flex-row" style="margin-top: 20rpx;">
<text class="iconfont icon-renshu"></text>
<text class="orderBoxInfoRowTxt">活动人数{{info.total}}</text>
<text class="orderBoxInfoRowTxt">活动人数{{info.total||""}}</text>
</view>
</view>
@ -30,7 +34,7 @@
<view v-if="info.type==1" class="orderBoxInfo flex-col ewmcode">
<text>入场码{{info.code}}-0</text>
<view>
<view class="imgs" >
<view class="imgs">
<view :class="info.status!=1?'isuse':''">
<cover-image v-if="info.status==2" src="../../static/img/used.png" alt=""></cover-image>
<!-- <img v-if="info.status!=1" src="../../static/img/used.png" alt=""> -->
@ -43,10 +47,11 @@
</view>
<!-- <text class="ewminfo">{{isuse?'已使用':'请前往现场核销订单二维码'}}</text> -->
</view>
<view v-if="info.type==2" class="orderBoxInfo flex-col ewmcode" :key='index' v-for="(item,index) in detailsinfo">
<view v-if="info.type==2" class="orderBoxInfo flex-col ewmcode" :key='index'
v-for="(item,index) in detailsinfo">
<text>入场码{{info.code}}-{{item.code}}</text>
<view>
<view class="imgs" >
<view class="imgs">
<view :class="item.status!=1?'isuse':''">
<cover-image v-if="info.status==2" src="../../static/img/used.png" alt=""></cover-image>
@ -119,11 +124,13 @@
data() {
return {
info: {},
detailsinfo:[],
showview:false,
optionid:"",
timers:"",
isused:false,
detailsinfo: [],
showview: false,
optionid: "",
timers: "",
isused: false,
tstart_time:"",
tend_time:""
}
},
onLoad(options) {
@ -134,9 +141,9 @@
},
onShow() {
var that = this
this.timers = setInterval(function(){
this.timers = setInterval(function() {
that.loadInfo(that.optionid);
},4000)
}, 4000)
},
onHide() {
@ -147,9 +154,9 @@
clearInterval(this.timers)
},
methods: {
qrFun: function(text,qrcode) {
qrFun: function(text, qrcode) {
var id = "qrcode";
if(qrcode){
if (qrcode) {
id = qrcode
}
uQRCode.make({
@ -174,27 +181,30 @@
data: {
id: id
},
customLoading: true,
utilSuccess: function(res) {
that.info = res;
that.detailsinfo = res.details;
if(res.status!=1){
that.tstart_time=that.info.activity.start_time;
that.tend_time=that.info.activity.end_time;
if (res.status != 1) {
clearInterval(that.timers)
}
if(res.type==1){
that.qrFun(res.code+"-"+"0");
setTimeout(function(){
if (res.type == 1) {
that.qrFun(res.code + "-" + "0");
setTimeout(function() {
that.showview = true
},500)
}, 500)
}
if(res.type==2){
for(var i=0;i<res.details.length;i++){
that.qrFun(res.code+"-"+res.details[i].code,'qrcode'+i);
if (res.type == 2) {
for (var i = 0; i < res.details.length; i++) {
that.qrFun(res.code + "-" + res.details[i].code, 'qrcode' + i);
}
setTimeout(function(){
setTimeout(function() {
that.showview = true
},500)
}, 500)
}
@ -208,13 +218,10 @@
}
})
},
getHm(val) {
if (val) {
return this.$moment(val).format("hh:MM")
} else return "";
},
timeFormat(time, format) {
if (time) {
return this.$moment(time).format(format)
} else return "";
}
}
}
@ -306,7 +313,7 @@
.orderBoxInfoRowTxt {
font-size: 30rpx!important;
font-size: 30rpx !important;
font-family: PingFang SC;
color: #828282;
}
@ -320,7 +327,7 @@
.p0 {
padding-top: 0;
border-left:32rpx solid #ef9525
border-left: 32rpx solid #ef9525
}
.ewmcode {
@ -329,7 +336,7 @@
text-align: left;
font-size: 28rpx;
margin-left: 18rpx;
padding-bottom:0;
padding-bottom: 0;
}
.imgs {
@ -339,11 +346,12 @@
}
.imgs view{
.imgs view {
position: relative;
display: inline-block;
margin-bottom: 20rpx;
}
.imgs cover-image {
position: absolute;
width: 200rpx;
@ -353,24 +361,28 @@
right: 0rpx;
bottom: 0rpx;
}
.imgs canvas{
.imgs canvas {
display: inline-block;
vertical-align: middle;
}
.imgsname{
.imgsname {
display: inline-block;
text-align: center;
margin-left: 15rpx;
}
.imgs text{
.imgs text {
display: block;
/* margin-left: 40rpx; */
}
.imgs .isuse cover-view{
.imgs .isuse cover-view {
/* opacity: .4; */
background-color: rgba(255,255,255,0.6);
background-color: rgba(255, 255, 255, 0.6);
width: 170px;
height:170px;
height: 170px;
}
.ewminfo {

@ -358,7 +358,7 @@ const isValidCardID = cardID => {
};
const shareInfo = {
title:"苏州的红色摇篮",
title:"",
imageUrl:"/static/share.jpg"
}
/**

Loading…
Cancel
Save