2.修复已知问题
3.我发布的活动增加售后订单 4.增加售后订单详情 5.增加拒绝和同意退款单
This commit is contained in:
parent
dc69c5e7bb
commit
d611b933dd
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="detail_all">
|
||||
<view class="nav" @click="goHome">
|
||||
<view class="nav">
|
||||
<u-navbar :is-back="true" leftIconColor="#FFFFFF" :autoBack="true" :bgColor="background"
|
||||
:titleStyle='titleStyle'> </u-navbar>
|
||||
</view>
|
||||
@ -35,7 +35,7 @@
|
||||
<image :src="detail.user.avatar" mode=""
|
||||
style="width: 36rpx;height: 36rpx;margin-right: 12rpx;border-radius: 80rpx;">
|
||||
</image>
|
||||
<span style="color: #9C9C9C ;width: 32%;">{{ detail.user.nickname }}</span>
|
||||
<span style="color: #9C9C9C ;width: auto;">{{ detail.user.nickname }}</span>
|
||||
<span class="flex justify-center align-items xieyi">
|
||||
<image src="/static/detail/baohu.png" mode=""
|
||||
style="width: 28rpx;height: 28rpx;margin-right: 0;"></image>
|
||||
@ -95,7 +95,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view style="display: flex;align-items: center;">
|
||||
<view class="ck-qrcode" @click="openImg(detail.image)">
|
||||
<view class="ck-qrcode" @click="qunShow = true">
|
||||
查看
|
||||
</view>
|
||||
</view>
|
||||
@ -284,6 +284,25 @@
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<u-popup @touchmove.native.stop.prevent :closeable="false" :show="qunShow" :round="10" mode="bottom">
|
||||
<view style="text-align: center;font-size: 32rpx;color: #3D3D3D;padding: 30rpx;font-weight: 600;">活动二维码
|
||||
</view>
|
||||
<view style="text-align: center;">
|
||||
<image :show-menu-by-longpress="true" :src="detail.image"
|
||||
style="width: 400rpx;border: 1rpx solid #D5FD99;" mode="widthFix"></image>
|
||||
</view>
|
||||
<view style="padding: 0rpx 40rpx;">
|
||||
<view
|
||||
style="font-size: 28rpx;font-weight: 300;color: #9C9C9C;text-align: center;margin-top: 20rpx;">
|
||||
长按识别二维码进群</view>
|
||||
<view style="font-size: 28rpx;color: #3D3D3D;text-align: center;margin-top: 30rpx;">
|
||||
如果无法加入或者开启了群验证,可能是成员已满您即将加入由用户自发组织的户外活动,请知悉</view>
|
||||
<view style="font-size: 28rpx;color: #0CA013;text-align: center;margin-top: 30rpx;">
|
||||
确认您已知晓《用户协议》的用户义务与责任平台不对活动真实性作担保,请入群自行辨别</view>
|
||||
</view>
|
||||
<view @click="qunShow = false"
|
||||
class="btn_1">我已知晓</view>
|
||||
</u-popup>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@ -323,6 +342,7 @@
|
||||
|
||||
data() {
|
||||
return {
|
||||
qunShow:false,
|
||||
height_sw: '580rpx',
|
||||
style: {
|
||||
// 字符串的形式
|
||||
@ -466,6 +486,7 @@
|
||||
// },
|
||||
// 返回首页
|
||||
goHome() {
|
||||
console.log(1);
|
||||
if (getCurrentPages().length > 1) {
|
||||
uni.navigateBack()
|
||||
} else {
|
||||
@ -1739,7 +1760,7 @@
|
||||
</style>
|
||||
<style lang="scss">
|
||||
.value_slide {
|
||||
width: 50%;
|
||||
width: 40%;
|
||||
|
||||
::v-deep .uni-slider-handle-wrapper {
|
||||
height: 10rpx;
|
||||
@ -1802,4 +1823,18 @@
|
||||
line-height: 70rpx;
|
||||
text-align: center;
|
||||
}
|
||||
.btn_1 {
|
||||
width: 95%;
|
||||
height: 90rpx;
|
||||
background: #323232;
|
||||
border-radius: 198rpx 198rpx 198rpx 198rpx;
|
||||
font-family: YouSheBiaoTiHei, YouSheBiaoTiHei;
|
||||
font-weight: 400;
|
||||
font-size: 32rpx;
|
||||
color: #BBFC5B;
|
||||
line-height: 90rpx;
|
||||
text-align: center;
|
||||
margin: 0 auto;
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
</style>
|
@ -1,67 +1,70 @@
|
||||
<template>
|
||||
<view class="box flex">
|
||||
<view class="con-center flex flex-column justify-center align-items">
|
||||
|
||||
|
||||
<view class="tabs align-items">
|
||||
<span class="s-header flex flex-column" v-for="(item,index) in headers" :key="index"
|
||||
:class="{ selected: headerSelected(item.status) }"
|
||||
@click="selectheader(item.status)">
|
||||
{{item.text}}
|
||||
<span class="s-header flex flex-column" v-for="(item, index) in headers" :key="index"
|
||||
:class="{ selected: headerSelected(item.status) }" @click="selectheader(item.status)">
|
||||
{{ item.text }}
|
||||
<span class="lines" :class="{ selected: headerSelected(item.status) }"></span>
|
||||
</span>
|
||||
</view>
|
||||
|
||||
<view style="min-height: 100vh;margin-top: 80rpx;">
|
||||
|
||||
<view class="flex hdkuai flex-column" v-for="(item,index) in list" :key="index">
|
||||
<view style="margin:0 30rpx;">
|
||||
<span class="text_h">活动时间: {{dateWeeks(item.detail.start_time) +' - '+dateWeekends(item.detail.end_time)}}</span>
|
||||
</view>
|
||||
<span class="line"></span>
|
||||
<view style="margin:0 30rpx;" class="flex">
|
||||
<image class="tut" :src="item.detail.images[0]"></image>
|
||||
<view style="margin-left: 20rpx;width: 80%;">
|
||||
<view class="flex hdkuai flex-column" v-for="(item, index) in list" :key="index">
|
||||
<view style="margin:0 30rpx;">
|
||||
<span class="text_h">活动时间:
|
||||
{{ dateWeeks(item.detail.start_time) + '-'+dateWeekends(item.detail.end_time)}}</span>
|
||||
</view>
|
||||
<span class="line"></span>
|
||||
<view style="margin:0 30rpx;" class="flex" @click="toInfo(item.activity_id)">
|
||||
<image class="tut" :src="item.detail.images[0]"></image>
|
||||
<view style="margin-left: 20rpx;width: 80%;">
|
||||
<view>
|
||||
<span>{{ item.detail.title }}</span>
|
||||
</view>
|
||||
<view style="margin-top: 40rpx;" class="flex flex-between align-items">
|
||||
<span style="font-size: 32rpx;">¥{{ item.totalprice }}</span>
|
||||
<span style="font-size: 26rpx;color: #9C9C9C;">购买数量:{{ item.num }}</span>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<span class="line"></span>
|
||||
<view class="flex foot_btn align-items space-between">
|
||||
<view>
|
||||
<span>{{ item.detail.title }}</span>
|
||||
<span v-if="item.status == 9">已完成</span>
|
||||
<span v-if="item.status == 0" style="color: #FF4810;display: flex;align-items: center;">
|
||||
支付倒计时:<u-count-down :time="item.cancel_last_seconds * 1000"></u-count-down>
|
||||
</span>
|
||||
<span v-if="item.status == 2 || item.status == 3">待核销</span>
|
||||
<span v-if="item.status == -3" style="color: #9C9C9C;">已关闭</span>
|
||||
<span v-if="item.status == 4 || item.status == 7" style="color: #FF4810;">售后中</span>
|
||||
<span v-if="item.status == 5" style="color: #FF4810;">退款中</span>
|
||||
<span v-if="item.status == 6" style="color: #FF4810;">已退款</span>
|
||||
</view>
|
||||
<view style="margin-top: 40rpx;" class="flex flex-between align-items">
|
||||
<span style="font-size: 32rpx;">¥{{item.totalprice}}</span>
|
||||
<span style="font-size: 26rpx;color: #9C9C9C;">购买数量:{{ item.num }}</span>
|
||||
|
||||
<view class="flex align-items" style="justify-content: flex-end;">
|
||||
<view v-if="item.status == 0 && item.cancel_last_seconds > 0" class="btn_xq"
|
||||
@click="toPay(item.id, item.order_no)">去支付</view>
|
||||
<view v-if="item.status == 2 || item.status == 3" class="btnhx"
|
||||
@click="toDetail(item.id, item.order_no, item.status)">核销码</view>
|
||||
<view v-if="item.status != 0" class="btn_xq"
|
||||
@click="toDetail(item.id, item.order_no, item.status)">查看详情</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<span class="line"></span>
|
||||
<view class="flex foot_btn align-items space-between">
|
||||
<view>
|
||||
<span v-if="item.status == 9">已完成</span>
|
||||
<span v-if="item.status == 0" style="color: #FF4810;display: flex;align-items: center;">
|
||||
支付倒计时:<u-count-down :time="item.cancel_last_seconds*1000"></u-count-down>
|
||||
</span>
|
||||
<span v-if="item.status == 2 || item.status == 3">待核销</span>
|
||||
<span v-if="item.status == -3" style="color: #9C9C9C;">已关闭</span>
|
||||
<span v-if="item.status == 4 || item.status == 7" style="color: #FF4810;">售后中</span>
|
||||
<span v-if="item.status == 5" style="color: #FF4810;">退款中</span>
|
||||
<span v-if="item.status == 6" style="color: #FF4810;">已退款</span>
|
||||
</view>
|
||||
|
||||
<view class="flex align-items" style="justify-content: flex-end;">
|
||||
<view v-if="item.status == 0 && item.cancel_last_seconds > 0" class="btn_xq" @click="toPay(item.id,item.order_no)">去支付</view>
|
||||
<view v-if="item.status == 2 || item.status == 3" class="btnhx" @click="toDetail(item.id,item.order_no,item.status)">核销码</view>
|
||||
<view v-if="item.status != 0" class="btn_xq" @click="toDetail(item.id,item.order_no,item.status)">查看详情</view>
|
||||
</view>
|
||||
<view class="flex justify-center align-items" v-if="list.length == 0" style="margin-top: 150rpx;">
|
||||
<span class="no-data">暂无数据</span>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="flex justify-center align-items" v-if="list.length == 0" style="margin-top: 150rpx;">
|
||||
<span class="no-data">暂无数据</span>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- <span class="line"></span> -->
|
||||
<!-- <view class="sort flex" style="width: 100%;padding: 20rpx 0;">
|
||||
<JQ-orderBy @switchSort="switchSort" :size="size"></JQ-orderBy>
|
||||
@ -155,7 +158,10 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { dateWeek , dateWeekend } from "../../utils/dateFormat";
|
||||
import {
|
||||
dateWeek,
|
||||
dateWeekend
|
||||
} from "../../utils/dateFormat";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@ -177,8 +183,7 @@
|
||||
}],
|
||||
size: 13,
|
||||
sortStyle: ['#ff557f', '#3f3f3f'],
|
||||
headers: [
|
||||
{
|
||||
headers: [{
|
||||
status: '-3,0,2,3,4,5,6,7,9',
|
||||
text: '全部'
|
||||
},
|
||||
@ -211,7 +216,7 @@
|
||||
list: [],
|
||||
show: false,
|
||||
qrcode: '',
|
||||
count:0
|
||||
count: 0
|
||||
};
|
||||
},
|
||||
onLoad(option) {
|
||||
@ -224,32 +229,49 @@
|
||||
this.getList('-3,0,2,3,4,5,6,7,9');
|
||||
}
|
||||
},
|
||||
|
||||
onShow() {
|
||||
console.log(this.selected);
|
||||
this.page = 1;
|
||||
this.list = [];
|
||||
this.getList(this.selected);
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
uni.showLoading({
|
||||
title: '加载中...'
|
||||
});
|
||||
this.page = 1;
|
||||
this.list = [];
|
||||
this.getList(this.selected);
|
||||
setTimeout(() => {
|
||||
uni.hideLoading();
|
||||
uni.stopPullDownRefresh();
|
||||
}, 2000)
|
||||
},
|
||||
onReachBottom() {
|
||||
if (this.list.length < this.count) {
|
||||
this.page++;
|
||||
this.getList(this.selected);
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
|
||||
|
||||
methods: {
|
||||
dateWeeks(e) {
|
||||
return dateWeek(e);
|
||||
},
|
||||
//结束
|
||||
dateWeekends(e){
|
||||
dateWeekends(e) {
|
||||
return dateWeekend(e);
|
||||
},
|
||||
formatTimestamp(timestamp) {
|
||||
const date = new Date(timestamp * 1000); // 10位时间戳需要乘以1000
|
||||
const year = date.getFullYear();
|
||||
const month = String(date.getMonth() + 1).padStart(2, '0');
|
||||
const day = String(date.getDate()).padStart(2, '0');
|
||||
const hours = String(date.getHours()).padStart(2, '0');
|
||||
const minutes = String(date.getMinutes()).padStart(2, '0');
|
||||
const seconds = String(date.getSeconds()).padStart(2, '0');
|
||||
return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
|
||||
const date = new Date(timestamp * 1000); // 10位时间戳需要乘以1000
|
||||
const year = date.getFullYear();
|
||||
const month = String(date.getMonth() + 1).padStart(2, '0');
|
||||
const day = String(date.getDate()).padStart(2, '0');
|
||||
const hours = String(date.getHours()).padStart(2, '0');
|
||||
const minutes = String(date.getMinutes()).padStart(2, '0');
|
||||
const seconds = String(date.getSeconds()).padStart(2, '0');
|
||||
return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
|
||||
},
|
||||
// 关闭弹窗
|
||||
close() {
|
||||
@ -290,24 +312,30 @@
|
||||
"&classes_lib_id=" + classes_lib_id
|
||||
})
|
||||
},
|
||||
toInfo(id) {
|
||||
//123
|
||||
uni.navigateTo({
|
||||
url: "/packageA/center/detail?id=" + id
|
||||
})
|
||||
},
|
||||
//查看详情
|
||||
toDetail(id,order_no,status) {
|
||||
toDetail(id, order_no, status) {
|
||||
if (status == 2 || status == 3) {
|
||||
uni.navigateTo({
|
||||
url: "/packageA/my/pendinPayDetail?id=" + id +"&order_no=" + order_no
|
||||
url: "/packageA/my/pendinPayDetail?id=" + id + "&order_no=" + order_no
|
||||
})
|
||||
}else{
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: "/packageA/my/pendinPayStatus?id=" + id + "&status=" + status
|
||||
url: "/packageA/my/pendinPayStatus?id=" + id + "&status=" + status
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
},
|
||||
// 去支付
|
||||
toPay(id,order_no) {
|
||||
toPay(id, order_no) {
|
||||
uni.navigateTo({
|
||||
url: "/packageA/my/pendinPay?id=" + id +"&order_no=" + order_no
|
||||
url: "/packageA/my/pendinPay?id=" + id + "&order_no=" + order_no
|
||||
})
|
||||
},
|
||||
// 售后
|
||||
@ -396,9 +424,9 @@
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.box {
|
||||
|
||||
|
||||
background: #f5f5f5;
|
||||
|
||||
|
||||
.con-center {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
@ -414,12 +442,12 @@
|
||||
-webkit-overflow-scrolling: touch;
|
||||
font-family: PingFang SC, PingFang SC;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
top: 0;
|
||||
|
||||
.s-header {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
align-items: center;
|
||||
width: 150rpx;
|
||||
height: 80rpx;
|
||||
font-weight: 400;
|
||||
@ -439,23 +467,27 @@
|
||||
color: #323232;
|
||||
line-height: 28rpx;
|
||||
}
|
||||
.lines{
|
||||
|
||||
.lines {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 44rpx;
|
||||
}
|
||||
.lines.selected{
|
||||
|
||||
.lines.selected {
|
||||
border-bottom: #323232 solid 8rpx;
|
||||
}
|
||||
}
|
||||
.hdkuai{
|
||||
|
||||
.hdkuai {
|
||||
background: #FFFFFF;
|
||||
width: 690rpx;
|
||||
height: 360rpx;
|
||||
justify-content: space-around;
|
||||
margin: 30rpx;
|
||||
border-radius: 18rpx;
|
||||
.text_h{
|
||||
|
||||
.text_h {
|
||||
font-family: PingFang SC, PingFang SC;
|
||||
font-weight: 400;
|
||||
font-size: 28rpx;
|
||||
@ -466,28 +498,32 @@
|
||||
text-transform: none;
|
||||
|
||||
}
|
||||
.tut{
|
||||
|
||||
.tut {
|
||||
width: 130rpx;
|
||||
height: 130rpx;
|
||||
border-radius: 8rpx;
|
||||
}
|
||||
.foot_btn{
|
||||
margin:0 30rpx;
|
||||
|
||||
.foot_btn {
|
||||
margin: 0 30rpx;
|
||||
justify-content: space-between;
|
||||
font-size: 28rpx;
|
||||
color: #323232;
|
||||
font-weight: 400;
|
||||
box-sizing: border-box;
|
||||
.btn_xq{
|
||||
|
||||
.btn_xq {
|
||||
width: 180rpx;
|
||||
height: 70rpx;
|
||||
line-height: 70rpx;
|
||||
text-align: center;
|
||||
background: linear-gradient( 270deg, #FBF66D 0%, #9CEAA2 100%);
|
||||
background: linear-gradient(270deg, #FBF66D 0%, #9CEAA2 100%);
|
||||
border-radius: 276rpx 276rpx 276rpx 276rpx;
|
||||
|
||||
|
||||
}
|
||||
.btnhx{
|
||||
|
||||
.btnhx {
|
||||
width: 180rpx;
|
||||
height: 70rpx;
|
||||
line-height: 70rpx;
|
||||
@ -498,11 +534,12 @@
|
||||
color: #BBFC5B;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.u-count-down__text{
|
||||
|
||||
.u-count-down__text {
|
||||
color: #FF4810 !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -524,9 +561,11 @@
|
||||
.justify-center {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.flex-between {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.align-items {
|
||||
align-items: center;
|
||||
}
|
||||
@ -544,7 +583,7 @@
|
||||
height: 1rpx;
|
||||
background: #F0F0F0;
|
||||
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
||||
margin:0 30rpx;
|
||||
margin: 0 30rpx;
|
||||
}
|
||||
|
||||
.centerBox {
|
||||
@ -839,14 +878,15 @@
|
||||
text-overflow: ellipsis;
|
||||
/* 使用省略号表示被截断的文本 */
|
||||
}
|
||||
|
||||
</style>
|
||||
<style lang="scss" >
|
||||
.foot_btn{
|
||||
// #ifdef MP-WEIXIN
|
||||
.u-count-down__text{
|
||||
color: #FF4810 !important;
|
||||
<style lang="scss">
|
||||
.foot_btn {
|
||||
|
||||
// #ifdef MP-WEIXIN
|
||||
.u-count-down__text {
|
||||
color: #FF4810 !important;
|
||||
}
|
||||
|
||||
// #endif
|
||||
}
|
||||
// #endif
|
||||
}
|
||||
</style>
|
File diff suppressed because it is too large
Load Diff
@ -5,7 +5,7 @@
|
||||
<view class="con-center w-100 flex justify-center flex-column align-items flex-start">
|
||||
|
||||
<view class="first-box flex flex-start flex-column justify-start">
|
||||
<view class="flex align-items justify-center">
|
||||
<view class="flex align-items justify-center" @click="toInfo(detail.activity_id)">
|
||||
<image class="head_img" v-if="detail.images.length > 0" :src="detail.images[0]" mode="" ></image>
|
||||
<view style="margin-left: 20rpx;">
|
||||
<view class="flex align-items">
|
||||
@ -95,10 +95,13 @@
|
||||
<!-- v-if="detailAny.feel == 0" -->
|
||||
<view class="footer flex align-items flex-column" style="justify-content: space-between;" >
|
||||
|
||||
<view class="footer-right flex justify-center align-items" v-if="detailAny.feel == 0">
|
||||
<view class="footer-right flex justify-center align-items" v-if="detailAny.detail.feel == 0 && detailAny.status==9">
|
||||
<text @click="service(detailAny.id)"> 申请售后 </text>
|
||||
</view>
|
||||
<view class="footer-right flex justify-center align-items" v-else>
|
||||
<view class="footer-right flex justify-center align-items" v-if="detailAny.detail.feel == 0 && detailAny.status==2">
|
||||
<text @click="paidcancel(detailAny.id)"> 取消订单 </text>
|
||||
</view>
|
||||
<view class="footer-right flex justify-center align-items" v-if="detailAny.detail.feel == 1">
|
||||
<text @click="cancelOrder(detailAny.id)"> 取消订单 </text>
|
||||
</view>
|
||||
</view>
|
||||
@ -330,22 +333,70 @@
|
||||
this.getShare()
|
||||
},
|
||||
|
||||
methods: {
|
||||
// 取消订单
|
||||
methods: {
|
||||
toInfo(id){
|
||||
uni.navigateTo({
|
||||
url: "/packageA/center/detail?id=" + id
|
||||
})
|
||||
},
|
||||
// 取消订单 (1)
|
||||
paidcancel(){
|
||||
uni.showLoading({
|
||||
title: '处理中...'
|
||||
});
|
||||
uni.$u.http.post('/api/school.newactivity.order/paidcancel', {
|
||||
order_no: this.order_no
|
||||
}).then(res => {
|
||||
if (res.code == 1) {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
this.getDetail()
|
||||
// uni.navigateBack(1)
|
||||
// uni.navigateBack({
|
||||
// delta: 1,
|
||||
// success: (event) => {
|
||||
// const pages = getCurrentPages()
|
||||
// let prevPage = pages[pages.length - 1]
|
||||
// prevPage.onLoad(prevPage.options)
|
||||
// }
|
||||
// });
|
||||
uni.hideLoading();
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
uni.hideLoading();
|
||||
}
|
||||
}).catch(error => {
|
||||
uni.hideLoading();
|
||||
});
|
||||
},
|
||||
// 取消订单 (0)
|
||||
cancelOrder() {
|
||||
uni.$u.http.post('/api/school.newactivity.order/freecancel', {
|
||||
order_no: this.order_no
|
||||
}).then(res => {
|
||||
if (res.code == 1) {
|
||||
// uni.navigateBack(1)
|
||||
uni.navigateBack({
|
||||
delta: 1,
|
||||
success: (event) => {
|
||||
const pages = getCurrentPages()
|
||||
let prevPage = pages[pages.length - 1]
|
||||
prevPage.onLoad(prevPage.options)
|
||||
}
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
this.getDetail()
|
||||
// uni.navigateBack(1)
|
||||
// uni.navigateBack({
|
||||
// delta: 1,
|
||||
// success: (event) => {
|
||||
// const pages = getCurrentPages()
|
||||
// let prevPage = pages[pages.length - 1]
|
||||
// prevPage.onLoad(prevPage.options)
|
||||
// }
|
||||
// });
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -15,17 +15,17 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
status:'',
|
||||
option:{},
|
||||
};
|
||||
},
|
||||
onLoad(option) {
|
||||
this.status = option.status;
|
||||
this.option = option;
|
||||
},
|
||||
methods:{
|
||||
// 跳转订单
|
||||
toDetail(status){
|
||||
uni.redirectTo({
|
||||
url: "/packageA/my/exercise"
|
||||
url: "/packageA/my/pendinPayDetail?id="+this.option.id+"&order_no="+this.option.order_no
|
||||
})
|
||||
},
|
||||
// 返回首页
|
||||
|
@ -43,7 +43,7 @@
|
||||
姓名
|
||||
</view>
|
||||
<view>
|
||||
<input type="number" placeholder="请填写真实姓名" class="input" v-model="form.name" />
|
||||
<input type="text" placeholder="请填写真实姓名" class="input" v-model="form.name" />
|
||||
</view>
|
||||
</view>
|
||||
<view style="height: 1px;width: 100%;background-color: #F0F0F0;"></view>
|
||||
@ -52,7 +52,7 @@
|
||||
身份证号
|
||||
</view>
|
||||
<view>
|
||||
<input type="number" placeholder="请填写身份证号" class="input" v-model="form.idnum" />
|
||||
<input type="idcard" placeholder="请填写身份证号" class="input" v-model="form.idnum" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -99,6 +99,16 @@
|
||||
uni.$u.toast('请填写身份证信息');
|
||||
return;
|
||||
}
|
||||
//正则判断身份证
|
||||
const reg = /^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
|
||||
if(!reg.test(this.form.idnum)){
|
||||
uni.showToast({
|
||||
title: '请输入正确的身份证号',
|
||||
icon: "none",
|
||||
duration: 1500,
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.$u.http.post('/api/school.real_name/save',this.form).then(res=>{
|
||||
console.log(res);
|
||||
if(res.code==1){
|
||||
|
@ -35,7 +35,7 @@
|
||||
姓名
|
||||
</view>
|
||||
<view style="width: 75%;">
|
||||
<input type="number" placeholder="请填写真实姓名" class="input" v-model="form.name" />
|
||||
<input type="text" placeholder="请填写真实姓名" class="input" v-model="form.name" />
|
||||
</view>
|
||||
</view>
|
||||
<view style="height: 1px;background-color: #F0F0F0;width: 100%;margin-top: 20rpx;"></view>
|
||||
@ -44,7 +44,7 @@
|
||||
身份证号
|
||||
</view>
|
||||
<view style="width: 75%;">
|
||||
<input type="number" placeholder="请填写身份证号" class="input" v-model="form.idnum" />
|
||||
<input type="idcard" placeholder="请填写身份证号" class="input" v-model="form.idnum" />
|
||||
</view>
|
||||
</view>
|
||||
<view style="height: 1px;background-color: #F0F0F0;width: 100%;"></view>
|
||||
@ -148,6 +148,16 @@ export default {
|
||||
});
|
||||
return;
|
||||
}
|
||||
//正则判断身份证
|
||||
const reg = /^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
|
||||
if(!reg.test(this.form.idnum)){
|
||||
uni.showToast({
|
||||
title: '请输入正确的身份证号',
|
||||
icon: "none",
|
||||
duration: 1500,
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.$u.http.post('/api/school.newactivity.activity_join/add', this.form).then(res => {
|
||||
console.log(res)
|
||||
if (res.code == 1) {
|
||||
|
@ -15,7 +15,7 @@
|
||||
身份证
|
||||
</view>
|
||||
<view style="width: 80%;">
|
||||
<input placeholder-class="plasty" placeholder="请输入您的身份证号" class="input" v-model="form.id_number" />
|
||||
<input type="idcard" placeholder-class="plasty" placeholder="请输入您的身份证号" class="input" v-model="form.id_number" />
|
||||
</view>
|
||||
</view>
|
||||
<view style="height: 1px;background-color: #F0F0F0;margin: 20rpx 0;"></view>
|
||||
@ -105,6 +105,16 @@ export default {
|
||||
});
|
||||
return;
|
||||
}
|
||||
//正则判断身份证
|
||||
const reg = /^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
|
||||
if(!reg.test(this.form.id_number)){
|
||||
uni.showToast({
|
||||
title: '请输入正确的身份证号',
|
||||
icon: "none",
|
||||
duration: 1500,
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.$u.http
|
||||
.post("/api/school.newactivity.settle_log/save", {
|
||||
name: this.form.name,
|
||||
|
@ -110,19 +110,19 @@
|
||||
:closeOnClickOverlay="false">
|
||||
<view style="font-size: 32rpx;font-weight: 400;margin: 12rpx 0 24rpx 0;">预计待入账金额说明</view>
|
||||
<view style="font-size: 26rpx;color: #3D3D3D;padding-bottom: 20px;line-height: 20px;">
|
||||
<text style="font-weight: 600;">1. 活动结束时:</text>
|
||||
<text>您的可入账金额会显示为"预计待入账金额。</text>
|
||||
<text style="font-weight: 600;">1. 活动结束时:</text>
|
||||
<text>您的可入账金额会显示为预计待入账金额。</text>
|
||||
</view>
|
||||
<view style="font-size: 26rpx;color: #3D3D3D;padding-bottom: 20px;line-height: 20px;">
|
||||
<text style="font-weight: 600;">2. 7天售后期:</text>
|
||||
<text>活动结束后7天内,若发生售后问题(如退款),对应金额将从“预计待入账"中扣除您的可入账金额会显示为"预计待入账金额。</text>
|
||||
<text style="font-weight: 600;">2. 7天售后期:</text>
|
||||
<text>活动结束后7天内,若发生售后问题(如退款),对应金额将从“预计待入账”中扣除您的可入账金额会显示为预计待入账金额。</text>
|
||||
</view>
|
||||
<view style="font-size: 26rpx;color: #3D3D3D;padding-bottom: 20px;line-height: 20px;">
|
||||
<text style="font-weight: 600;">3. 查看售后进度:</text>
|
||||
<text style="font-weight: 600;">3. 查看售后进度:</text>
|
||||
<text>您可在【我发布的-已售后】中查询具体售后单详情</text>
|
||||
</view>
|
||||
<view style="font-size: 26rpx;color: #3D3D3D;padding-bottom: 20px;line-height: 20px;">
|
||||
<text style="font-weight: 600;">4. 最终可提现金额</text>
|
||||
<text style="font-weight: 600;">4. 最终可提现金额:</text>
|
||||
<text>7天售后期结束后,剩余未扣除的金额即可全额提现</text>
|
||||
</view>
|
||||
<view class="popup-footer">
|
||||
|
13
pages.json
13
pages.json
@ -13,7 +13,9 @@
|
||||
"path": "pages/index/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "多样青春·活动",
|
||||
"navigationStyle": "custom" //单个页面设置
|
||||
"navigationStyle": "custom", //单个页面设置,
|
||||
"enablePullDownRefresh": true
|
||||
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -34,7 +36,8 @@
|
||||
"path": "pages/activity/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "活动中心",
|
||||
"navigationStyle": "custom" //单个页面设置
|
||||
"navigationStyle": "custom", //单个页面设置
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -122,13 +125,15 @@
|
||||
{
|
||||
"path": "my/orderList",
|
||||
"style": {
|
||||
"navigationBarTitleText": "我发布的活动"
|
||||
"navigationBarTitleText": "我发布的活动",
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "my/exercise",
|
||||
"style": {
|
||||
"navigationBarTitleText": "我参与的活动"
|
||||
"navigationBarTitleText": "我参与的活动",
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -95,6 +95,17 @@
|
||||
this.page++;
|
||||
this.fetchMessages(this.selected);
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
uni.showLoading({
|
||||
title: '加载中...'
|
||||
});
|
||||
this.resetLists();
|
||||
this.fetchMessages(this.selected);
|
||||
setTimeout(()=>{
|
||||
uni.hideLoading();
|
||||
uni.stopPullDownRefresh();
|
||||
}, 2000)
|
||||
},
|
||||
methods: {
|
||||
getinit() {
|
||||
uni.$u.http.get('/api/index/init', {}).then(res => {
|
||||
|
@ -369,7 +369,7 @@
|
||||
this.getAgreement()
|
||||
this.getBqList();
|
||||
this.getrefund_list();
|
||||
this.getitembq();
|
||||
//this.getitembq();
|
||||
|
||||
},
|
||||
filters: {
|
||||
|
@ -37,7 +37,7 @@
|
||||
<view class="first-image flex align-items" style="margin-top: 20rpx;width: 100%;">
|
||||
<span class="time_tex" v-if="item.status == 2">{{ '报名中' }}</span>
|
||||
<image v-if="cate_ids != 1" :src="item.user.avatar"
|
||||
style="width: 36rpx;height: 36rpx;border-radius: 80rpx;"></image>
|
||||
style="width: 36rpx;height: 36rpx;border-radius: 80rpx;margin-left: 10rpx;"></image>
|
||||
<image v-else :src="item.headimage"
|
||||
style="width: 36rpx;height: 36rpx;border-radius: 80rpx;"></image>
|
||||
<span v-if="cate_ids != 1"
|
||||
@ -98,7 +98,10 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="bottom_box flex justify-center align-items" style="height: 1240rpx;width: 100%;" v-if="hotList.length == 0">
|
||||
暂无数据
|
||||
<view style="text-align: center;">
|
||||
<image src="/static/no.png" style="width: 150rpx;height: 150rpx;"></image>
|
||||
<view>暂无数据</view>
|
||||
</view>
|
||||
</view>
|
||||
<u-loadmore v-else style="margin-bottom: 60rpx;" :status="loadStatus" />
|
||||
</view>
|
||||
@ -767,8 +770,6 @@
|
||||
font-size: 26rpx;
|
||||
color: #3D3D3D;
|
||||
line-height: 30rpx;
|
||||
width: 38%;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
|
||||
.text {
|
||||
|
@ -24,7 +24,7 @@
|
||||
<view class="swiper-box">
|
||||
<!-- <MySwiper :list="swiperList"></MySwiper> -->
|
||||
<view class="swiper_s">
|
||||
<swiper class="swiper_s" :autoplay="true" indicator-active-color="#0DAE11" indicator-color="#ffffff"
|
||||
<swiper class="swiper_s" :circular="true" :autoplay="true" indicator-active-color="#0DAE11" indicator-color="#ffffff"
|
||||
:indicator-dots="false" :current="swiperCurrent" @change="swiperChange">
|
||||
<swiper-item v-for="(item, index) in swiperList" :key="index" @click="openSwiper(item)">
|
||||
<view style="position: relative;width: 100%;height: 100%">
|
||||
@ -325,6 +325,17 @@
|
||||
// uni.hideTabBar();
|
||||
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
uni.showLoading({
|
||||
title: '加载中...'
|
||||
});
|
||||
this.resetLists();
|
||||
this.getHotList();
|
||||
setTimeout(()=>{
|
||||
uni.hideLoading();
|
||||
uni.stopPullDownRefresh();
|
||||
}, 2000)
|
||||
},
|
||||
mounted() {
|
||||
this.videoContext = uni.createVideoContext("myVideo"); //创建视频实例指向video
|
||||
},
|
||||
|
@ -400,14 +400,14 @@ export default {
|
||||
},
|
||||
iszhuliren() {
|
||||
uni.showToast({
|
||||
title: '开发中,暂未开放',
|
||||
title: '开发中,敬请期待~',
|
||||
icon: 'none'
|
||||
});
|
||||
},
|
||||
callPhone(phone) {
|
||||
console.log(phone)
|
||||
uni.showToast({
|
||||
title: '开发中,暂未开放',
|
||||
title: '开发中,敬请期待~',
|
||||
icon: 'none'
|
||||
});
|
||||
// uni.makePhoneCall({
|
||||
|
BIN
static/no.png
Normal file
BIN
static/no.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
Loading…
x
Reference in New Issue
Block a user