培训班管理,处理冲突
202
components/buyPupFudu.vue
Normal file
@@ -0,0 +1,202 @@
|
||||
<template>
|
||||
<view>
|
||||
<u-popup key="1" :show="pricespop" :round="10" @close="closePup">
|
||||
<view class="proListPrice" v-if="proPriceList.length > 0">
|
||||
<view class="title">
|
||||
请选择
|
||||
</view>
|
||||
<view class="list">
|
||||
<view :class="['item',curProId == index ? 'active' : '']"
|
||||
v-for="(item,index) in proPriceList" :key="index" @click="choosePrice(item,index)">
|
||||
{{item.productName}} - ¥{{item.price}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="tbn flexbox" style="padding-bottom: 20px;">
|
||||
<view class="saveBtnss buybtn flexbox" @click="oprate('buy')">
|
||||
<u-icon name="bag" color="#fff" size="28"></u-icon>
|
||||
<text>立即购买</text>
|
||||
</view>
|
||||
<!-- <view class="saveBtnss gouwuche flexbox" @click="oprate('gouwuche')">
|
||||
<uni-icons type="cart" size="28" style="color: #666;"></uni-icons>
|
||||
<text>加入购物车</text>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name:"buyPup",
|
||||
props:['proPriceList'],
|
||||
data() {
|
||||
return {
|
||||
pricespop:true,
|
||||
curProId:null,
|
||||
curPro:{}
|
||||
};
|
||||
},methods:{
|
||||
closePup() {
|
||||
this.pricespop = false
|
||||
this.$emit('closePup')
|
||||
|
||||
},
|
||||
choosePrice(item,index) {
|
||||
console.log(index, 'choosePrice')
|
||||
this.curProId = index
|
||||
this.curPro = item
|
||||
},
|
||||
oprate(val){
|
||||
if(this.curProId==null){
|
||||
uni.showToast({
|
||||
title:'请选择您的课程',
|
||||
icon:'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
if(val=='buy'){
|
||||
console.log('直接购买');
|
||||
this.$emit('oprate',{name:val,item:this.curPro,index:this.curProId})
|
||||
}else if(val == 'gouwuche'){
|
||||
console.log('加入购物车');
|
||||
this.$emit('oprate',{name:val,item:this.curPro,index:this.curProId})
|
||||
}
|
||||
this.closePup()
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import '@/style/mixin.scss';
|
||||
.flexbox {
|
||||
display: flex;
|
||||
}
|
||||
.saveBtn {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 80rpx;
|
||||
background-color: #00d8df;
|
||||
// width: 46%;
|
||||
overflow: hidden;
|
||||
border-radius: 30rpx;
|
||||
|
||||
text {
|
||||
padding-left: 10rpx;
|
||||
font-size: 28rpx;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
.vipBtn {
|
||||
@include theme("vipbtnbg");
|
||||
border-radius: 100rpx;
|
||||
justify-content: center;
|
||||
width: 150px;
|
||||
color: #fff;
|
||||
margin: 10rpx auto;
|
||||
}
|
||||
|
||||
.buyBox {
|
||||
// position: fixed;
|
||||
// z-index: 2;
|
||||
// bottom: 100rpx;
|
||||
// left: 0;
|
||||
@include pleft_right(4px);
|
||||
// @include mshadow(10px, 1);
|
||||
padding: 20rpx 10rpx;
|
||||
width: 100%;
|
||||
font-size: 28rpx;
|
||||
flex-wrap: wrap;
|
||||
background-image: linear-gradient(60deg, #e0e9f6 0%,#ece6fa 30%,#d7e8f0 60%, #fff 100%);
|
||||
// background: rgba(255, 255, 255, 0.9);
|
||||
|
||||
.item {
|
||||
width: 100%;
|
||||
text-align: center; line-height: 70rpx !important;
|
||||
|
||||
}
|
||||
|
||||
.tbn {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.buybtn {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
.proListPrice {
|
||||
text-align: center;
|
||||
|
||||
.title {
|
||||
font-size: 28rpx;
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.list {
|
||||
padding: 0 10px;
|
||||
padding-bottom: 20rpx;
|
||||
|
||||
.item {
|
||||
font-size: 26rpx;
|
||||
color: #333;
|
||||
margin-bottom: 10rpx;
|
||||
padding-top:20rpx ;
|
||||
padding-bottom:20rpx ;
|
||||
line-height:40rpx;
|
||||
border-radius: 50rpx;
|
||||
border: 1px solid #eee;
|
||||
}
|
||||
|
||||
.item.active {
|
||||
color: $themeColor;
|
||||
border: 1px solid $themeColor;
|
||||
}
|
||||
|
||||
.item:last-child {
|
||||
// border-bottom: none
|
||||
}
|
||||
}
|
||||
|
||||
.tbn {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.buybtn { padding: 0 20rpx;
|
||||
background-color: #00d8df;
|
||||
margin: 0;
|
||||
margin-right: 20rpx;
|
||||
|
||||
text {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
.saveBtnss {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 80rpx;
|
||||
|
||||
// width: 46%;
|
||||
overflow: hidden;
|
||||
border-radius: 50rpx;
|
||||
|
||||
text {
|
||||
padding-left: 10rpx;
|
||||
font-size: 28rpx;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.gouwuche {
|
||||
border: 1px solid #666;
|
||||
padding-right: 20rpx;
|
||||
|
||||
text {
|
||||
// color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -6,14 +6,12 @@
|
||||
"request": 15000
|
||||
},
|
||||
"transformPx": false,
|
||||
"icons" : [
|
||||
{
|
||||
"icons": [{
|
||||
"sizes": "分辨率,192x192",
|
||||
"src": "图片路径"
|
||||
}
|
||||
],
|
||||
"versionName" : "2.0.07",
|
||||
"versionCode" : 2007,
|
||||
}],
|
||||
"versionName": "2.0.06",
|
||||
"versionCode": 2006,
|
||||
"app-plus": {
|
||||
"nvueCompiler": "uni-app",
|
||||
"compatible": {
|
||||
@@ -270,4 +268,3 @@
|
||||
}
|
||||
}
|
||||
// 小程序特有相关
|
||||
|
||||
|
||||
@@ -255,6 +255,35 @@
|
||||
</view>
|
||||
|
||||
<view class="order_item" style="">
|
||||
<view
|
||||
class="orderReal"
|
||||
v-if="orderContet.orderStatus != 0"
|
||||
style="margin-bottom: 20rpx"
|
||||
>
|
||||
<span style="color: #666; margin-right: 10rpx; float: left"
|
||||
>实付款 :
|
||||
</span>
|
||||
<b v-if="orderContet.orderType == 'point'" style="color: #dd3c0c"
|
||||
>¥ {{ orderContet.bookBuyConfigEntity.realMoney }}</b
|
||||
>
|
||||
<b style="color: #dd3c0c" v-else>
|
||||
<template v-if="orderContet.realMoney > 0">
|
||||
¥{{ orderContet.realMoney }}
|
||||
</template>
|
||||
<text
|
||||
style="margin: 0 4rpx"
|
||||
v-if="
|
||||
orderContet.realMoney > 0 && orderContet.jfDeduction > 0
|
||||
"
|
||||
>
|
||||
+
|
||||
</text>
|
||||
|
||||
<text v-if="orderContet.jfDeduction > 0"
|
||||
>{{ orderContet.jfDeduction }} 积分</text
|
||||
></b
|
||||
>
|
||||
</view>
|
||||
<view class="orderallpri">
|
||||
<span style="color: #666; margin-right: 10rpx; float: left"
|
||||
>商品总价 :
|
||||
@@ -320,18 +349,6 @@
|
||||
>¥ {{ orderContet.jfDeduction }}</span
|
||||
>
|
||||
</view>
|
||||
|
||||
<view class="orderReal" v-if="orderContet.orderStatus != 0">
|
||||
<span style="color: #666; margin-right: 10rpx; float: left"
|
||||
>实付款 :
|
||||
</span>
|
||||
<b v-if="orderContet.orderType == 'point'" style="color: #dd3c0c"
|
||||
>¥ {{ orderContet.bookBuyConfigEntity.realMoney }}</b
|
||||
>
|
||||
<b style="color: #dd3c0c"
|
||||
><span>¥</span>{{ orderContet.realMoney }}</b
|
||||
>
|
||||
</view>
|
||||
</view>
|
||||
<view class="order_item">
|
||||
<view class="orderYunf">
|
||||
@@ -361,7 +378,9 @@
|
||||
<view
|
||||
class="orderReal"
|
||||
v-if="
|
||||
orderContet.orderStatus >= 1 && orderContet.orderStatus != 5&& orderContet.paymentDate
|
||||
orderContet.orderStatus >= 1 &&
|
||||
orderContet.orderStatus != 5 &&
|
||||
orderContet.paymentDate
|
||||
"
|
||||
>
|
||||
<span style="color: #666; margin-right: 10rpx; float: left"
|
||||
@@ -371,12 +390,7 @@
|
||||
orderContet.paymentDate
|
||||
}}</text>
|
||||
</view>
|
||||
<view
|
||||
class="orderReal"
|
||||
v-if="
|
||||
orderContet.paymentMethod
|
||||
"
|
||||
>
|
||||
<view class="orderReal" v-if="orderContet.paymentMethod">
|
||||
<span style="color: #666; margin-right: 10rpx; float: left"
|
||||
>付款方式 :
|
||||
</span>
|
||||
@@ -390,20 +404,27 @@
|
||||
<span style="color: #666" v-if="orderContet.paymentMethod == 3"
|
||||
>苹果支付</span
|
||||
>
|
||||
<span style="color: #666" v-if="orderContet.paymentMethod == 4"
|
||||
<span style="color: #666" v-if="orderContet.paymentMethod == 4">
|
||||
<template
|
||||
v-if="
|
||||
orderContet.orderType == 'point' &&
|
||||
orderContet.bookBuyConfigEntity.realMoney > 0
|
||||
"
|
||||
>
|
||||
天医币支付<text v-if="orderContet.jfDeduction > 0"
|
||||
> + 积分抵扣</text
|
||||
>
|
||||
|
||||
<template v-if="orderContet.orderType == 'point'&&orderContet.bookBuyConfigEntity.realMoney>0">
|
||||
天医币支付<text v-if="orderContet.jfDeduction>0"> + 积分抵扣</text>
|
||||
</template>
|
||||
<template v-else-if="orderContet.realMoney">
|
||||
天医币支付 <text v-if="orderContet.jfDeduction>0"> + 积分抵扣</text>
|
||||
天医币支付
|
||||
<text v-if="orderContet.jfDeduction > 0"
|
||||
> + 积分抵扣</text
|
||||
>
|
||||
</template>
|
||||
<template v-else-if="orderContet.jfDeduction > 0">
|
||||
积分抵扣
|
||||
</template>
|
||||
</span
|
||||
></text
|
||||
</span></text
|
||||
>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -1,28 +1,56 @@
|
||||
<template>
|
||||
<view class="container commonPageBox commonDetailPage" style="background-color: #f6f7fb">
|
||||
<view
|
||||
class="container commonPageBox commonDetailPage"
|
||||
style="background-color: #f6f7fb"
|
||||
>
|
||||
<!-- 公共组件-每个页面必须引入 -->
|
||||
<public-module></public-module>
|
||||
<z-nav-bar title="我的订单" bgColor="#258feb" fontColor="#fff" :backState="2000">
|
||||
<z-nav-bar
|
||||
title="我的订单"
|
||||
bgColor="#258feb"
|
||||
fontColor="#fff"
|
||||
:backState="2000"
|
||||
>
|
||||
</z-nav-bar>
|
||||
<view class="cateList flexbox">
|
||||
<common-sticky itemStyle="width:20%; height: 68rpx;font-size:24rpx;" :list="ordersTabs" label="name"
|
||||
:currentCateIndex="currentCateIndex" @handleselectCate="ordersTabCLi"></common-sticky>
|
||||
<common-sticky
|
||||
itemStyle="width:20%; height: 68rpx;font-size:24rpx;"
|
||||
:list="ordersTabs"
|
||||
label="name"
|
||||
:currentCateIndex="currentCateIndex"
|
||||
@handleselectCate="ordersTabCLi"
|
||||
></common-sticky>
|
||||
</view>
|
||||
|
||||
<!-- 站位 -->
|
||||
|
||||
<!-- <view v-if="ordersListTab == 1"> -->
|
||||
<view class="order_box" :style="`height: calc(100% - ${(80 + statusBarHeight) * 2}rpx);`"
|
||||
style="background-color: #f2f2f2">
|
||||
<common-list imgUrl="url" indexKey="orderSn" noDataIcon="data" :isScroll="true"
|
||||
:isLoadingHide="isLoadingHide" :isNoIcon="true" :isCondition="true" :dataList="newList"
|
||||
@hancleClick="toDetail" @lower="onReachBottom1" :pagination="pagination" label="title">
|
||||
<view
|
||||
class="order_box"
|
||||
:style="`height: calc(100% - ${(80 + statusBarHeight) * 2}rpx);`"
|
||||
style="background-color: #f2f2f2"
|
||||
>
|
||||
<common-list
|
||||
imgUrl="url"
|
||||
indexKey="orderSn"
|
||||
noDataIcon="data"
|
||||
:isScroll="true"
|
||||
:isLoadingHide="isLoadingHide"
|
||||
:isNoIcon="true"
|
||||
:isCondition="true"
|
||||
:dataList="newList"
|
||||
@hancleClick="toDetail"
|
||||
@lower="onReachBottom1"
|
||||
:pagination="pagination"
|
||||
label="title"
|
||||
>
|
||||
<view slot="labelSlot" slot-scope="slotProps">
|
||||
<view class="orderInfo color_shandow">
|
||||
<view class="mainContent">
|
||||
<view class="btns" style="margin-top: 0rpx">
|
||||
<view class="flexbox opbtns" style="letter-spacing: 1rpx">
|
||||
<view style="
|
||||
<view
|
||||
style="
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -31,88 +59,150 @@
|
||||
color: #9b9b9b;
|
||||
font-size: 26rpx;
|
||||
font-weight: 400;
|
||||
">{{ slotProps.row.orderSn }}
|
||||
"
|
||||
>{{ slotProps.row.orderSn }}
|
||||
|
||||
<u-tag @click="handleCopy(slotProps.row.orderSn, '订单编号')" borderColor="#258feb"
|
||||
color="#258feb" text="复制" plain style="float: right" size="mini"
|
||||
type="success"></u-tag>
|
||||
<u-tag
|
||||
@click="handleCopy(slotProps.row.orderSn, '订单编号')"
|
||||
borderColor="#258feb"
|
||||
color="#258feb"
|
||||
text="复制"
|
||||
plain
|
||||
style="float: right"
|
||||
size="mini"
|
||||
type="success"
|
||||
></u-tag>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="item">
|
||||
<view class="item_top" style="margin-top: 10rpx; margin-bottom: 0">
|
||||
<view
|
||||
class="item_top"
|
||||
style="margin-top: 10rpx; margin-bottom: 0"
|
||||
>
|
||||
<view class="source_app"></view>
|
||||
<view style="text-align: left">
|
||||
<text class="orderstatus" v-show="slotProps.row.orderStatus == 0">未付款</text>
|
||||
<text class="orderstatus" v-show="slotProps.row.orderStatus == 1">待发货</text>
|
||||
<text class="orderstatus" v-show="slotProps.row.orderStatus == 2">已发货</text>
|
||||
<text class="orderstatus" v-show="slotProps.row.orderStatus == 3">交易成功</text>
|
||||
<text class="orderstatus" v-show="slotProps.row.orderStatus == 4">交易失败</text>
|
||||
<text class="orderstatus" v-show="slotProps.row.orderStatus == 5">已过期</text>
|
||||
<text
|
||||
class="orderstatus"
|
||||
v-show="slotProps.row.orderStatus == 0"
|
||||
>未付款</text
|
||||
>
|
||||
<text
|
||||
class="orderstatus"
|
||||
v-show="slotProps.row.orderStatus == 1"
|
||||
>待发货</text
|
||||
>
|
||||
<text
|
||||
class="orderstatus"
|
||||
v-show="slotProps.row.orderStatus == 2"
|
||||
>已发货</text
|
||||
>
|
||||
<text
|
||||
class="orderstatus"
|
||||
v-show="slotProps.row.orderStatus == 3"
|
||||
>交易成功</text
|
||||
>
|
||||
<text
|
||||
class="orderstatus"
|
||||
v-show="slotProps.row.orderStatus == 4"
|
||||
>交易失败</text
|
||||
>
|
||||
<text
|
||||
class="orderstatus"
|
||||
v-show="slotProps.row.orderStatus == 5"
|
||||
>已过期</text
|
||||
>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="slotProps.row.orderType == 'trainingClass'" class="bookinfolist">
|
||||
<image class="feng fengPoint" src="/static/icon/icon_pxb.png" mode="aspectFill">
|
||||
<view
|
||||
v-if="slotProps.row.orderType == 'relearn'"
|
||||
class="bookinfolist"
|
||||
>
|
||||
<image
|
||||
class="feng fengPoint"
|
||||
src="/static/icon/fugou.png"
|
||||
mode="aspectFill"
|
||||
>
|
||||
</image>
|
||||
<!-- <view class="description" >课程复读订单
|
||||
</view> -->
|
||||
<view class="btns flexbox">
|
||||
<view class="booknameleft">
|
||||
{{ slotProps.row.remark }}
|
||||
</view>
|
||||
|
||||
<view style="
|
||||
<view
|
||||
style="
|
||||
line-height: 58rpx;
|
||||
color: #333;
|
||||
font-size: 26rpx;
|
||||
font-weight: 700;
|
||||
">
|
||||
"
|
||||
>
|
||||
<text style="font-size: 20rpx"></text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view
|
||||
class="btns flexbox"
|
||||
style="color: #9f9f9f; margin-top: 10rpx; font-size: 24rpx"
|
||||
>
|
||||
下单时间:{{ slotProps.row.createTime }}
|
||||
</view> -->
|
||||
</view>
|
||||
<view v-if="slotProps.row.orderType == 'relearn'" class="bookinfolist">
|
||||
<image class="feng fengPoint" src="/static/icon/fugou.png" mode="aspectFill">
|
||||
</image>
|
||||
<view
|
||||
v-if="slotProps.row.orderType == 'vip'"
|
||||
class="bookinfolist"
|
||||
>
|
||||
<image
|
||||
class="feng fengPoint"
|
||||
src="/static/icon/vip.png"
|
||||
mode="aspectFill"
|
||||
></image>
|
||||
<!-- <view class="description" v-html="item.content">
|
||||
</view> -->
|
||||
<view class="btns flexbox">
|
||||
<view class="booknameleft">
|
||||
{{ slotProps.row.remark }}
|
||||
{{
|
||||
slotProps.row.vipBuyConfigEntity
|
||||
? slotProps.row.vipBuyConfigEntity.title
|
||||
: " "
|
||||
}}
|
||||
<text
|
||||
class="vip_year"
|
||||
v-if="slotProps.row.vipBuyConfigEntity"
|
||||
>({{ slotProps.row.vipBuyConfigEntity.year }}年)</text
|
||||
>
|
||||
</view>
|
||||
|
||||
<view style="
|
||||
<view
|
||||
style="
|
||||
line-height: 58rpx;
|
||||
color: #333;
|
||||
font-size: 26rpx;
|
||||
font-weight: 700;
|
||||
">
|
||||
"
|
||||
>
|
||||
<text style="font-size: 20rpx"></text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="slotProps.row.orderType == 'vip'" class="bookinfolist">
|
||||
<image class="feng fengPoint" src="/static/icon/vip.png" mode="aspectFill"></image>
|
||||
<view class="btns flexbox">
|
||||
<view class="booknameleft">
|
||||
{{ slotProps.row.vipBuyConfigEntity?slotProps.row.vipBuyConfigEntity.title:' ' }}
|
||||
<text class="vip_year" v-if="slotProps.row.vipBuyConfigEntity">({{ slotProps.row.vipBuyConfigEntity.year }}年)</text>
|
||||
</view>
|
||||
|
||||
<view style="
|
||||
line-height: 58rpx;
|
||||
color: #333;
|
||||
font-size: 26rpx;
|
||||
font-weight: 700;
|
||||
">
|
||||
<text style="font-size: 20rpx"></text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="btns flexbox"
|
||||
style="color: #9f9f9f; margin-top: 10rpx; font-size: 24rpx">
|
||||
<view
|
||||
class="btns flexbox"
|
||||
style="color: #9f9f9f; margin-top: 10rpx; font-size: 24rpx"
|
||||
>
|
||||
下单时间:{{ slotProps.row.createTime }}
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view v-if="slotProps.row.orderType == 'point'" class="bookinfolist">
|
||||
<image class="feng fengPoint" src="/static/icon/pay_3.png" mode="aspectFill">
|
||||
<view
|
||||
v-if="slotProps.row.orderType == 'point'"
|
||||
class="bookinfolist"
|
||||
>
|
||||
<image
|
||||
class="feng fengPoint"
|
||||
src="/static/icon/pay_3.png"
|
||||
mode="aspectFill"
|
||||
>
|
||||
</image>
|
||||
<!-- <view class="description" v-html="item.content">
|
||||
</view> -->
|
||||
@@ -122,35 +212,54 @@
|
||||
{{ slotProps.row.bookBuyConfigEntity.money }}天医币
|
||||
</view>
|
||||
|
||||
<view style="
|
||||
<view
|
||||
style="
|
||||
line-height: 58rpx;
|
||||
color: #333;
|
||||
font-size: 26rpx;
|
||||
font-weight: 700;
|
||||
">
|
||||
"
|
||||
>
|
||||
</view>
|
||||
</view>
|
||||
<view class="btns flexbox"
|
||||
style="color: #9f9f9f; margin-top: 10rpx; font-size: 24rpx">
|
||||
<view
|
||||
class="btns flexbox"
|
||||
style="color: #9f9f9f; margin-top: 10rpx; font-size: 24rpx"
|
||||
>
|
||||
下单时间:{{ slotProps.row.createTime }}
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view v-if="slotProps.row.orderType == 'order'">
|
||||
<view v-for="(item2, index2) in slotProps.row.productList"
|
||||
:key="slotProps.row.orderId" class="bookinfolist">
|
||||
<view
|
||||
v-for="(item2, index2) in slotProps.row.productList"
|
||||
:key="slotProps.row.orderId"
|
||||
class="bookinfolist"
|
||||
>
|
||||
<view v-if="item2.product">
|
||||
<view class="feng" v-if="item2.product && item2.product.productImages">
|
||||
<image :key="Date.now()" style="width: 100%; height: 100%"
|
||||
mode="aspectFit" :src="item2.product.productImages"></image>
|
||||
<view
|
||||
class="feng"
|
||||
v-if="item2.product && item2.product.productImages"
|
||||
>
|
||||
<image
|
||||
:key="Date.now()"
|
||||
style="width: 100%; height: 100%"
|
||||
mode="aspectFit"
|
||||
:src="item2.product.productImages"
|
||||
></image>
|
||||
</view>
|
||||
|
||||
<view v-else class="feng" style="
|
||||
<view
|
||||
v-else
|
||||
class="feng"
|
||||
style="
|
||||
color: #c0c4cc;
|
||||
font-size: 22rpx;
|
||||
line-height: 140rpx;
|
||||
text-align: center;
|
||||
">暂无封面图</view>
|
||||
"
|
||||
>暂无封面图</view
|
||||
>
|
||||
<!-- <view class="description" v-html="item.content">
|
||||
</view> -->
|
||||
<view class="btns flexbox">
|
||||
@@ -160,21 +269,24 @@
|
||||
: ""
|
||||
}}</view>
|
||||
|
||||
<view style="
|
||||
<view
|
||||
style="
|
||||
line-height: 58rpx;
|
||||
color: #333;
|
||||
font-size: 26rpx;
|
||||
font-weight: 700;
|
||||
">
|
||||
"
|
||||
>
|
||||
<text style="font-size: 20rpx">¥</text>
|
||||
{{
|
||||
item2.product.price ? item2.product.price : ""
|
||||
}}
|
||||
{{ item2.product.price ? item2.product.price : "" }}
|
||||
</view>
|
||||
</view>
|
||||
<view class="btns flexbox" style="margin-top: 10rpx">
|
||||
<view class="left" style="color: #c0c4cc"></view>
|
||||
<view class="right flexbox opbtns" style="color: #c0c4cc">
|
||||
<view
|
||||
class="right flexbox opbtns"
|
||||
style="color: #c0c4cc"
|
||||
>
|
||||
×{{ item2.quantity ? item2.quantity : "" }}
|
||||
</view>
|
||||
</view>
|
||||
@@ -182,8 +294,13 @@
|
||||
<view v-else>
|
||||
<view class="feng"></view>
|
||||
<view class="btns flexbox">
|
||||
<view class="booknameleft" style="color: #181818">未知商品</view>
|
||||
<view style="" class="right flexbox opbtns product_quantity">
|
||||
<view class="booknameleft" style="color: #181818"
|
||||
>未知商品</view
|
||||
>
|
||||
<view
|
||||
style=""
|
||||
class="right flexbox opbtns product_quantity"
|
||||
>
|
||||
×{{ item2.quantity ? item2.quantity : "" }}
|
||||
</view>
|
||||
</view>
|
||||
@@ -192,99 +309,115 @@
|
||||
</view>
|
||||
|
||||
<view style="margin-top: 10rpx; overflow: hidden">
|
||||
<view class="btns flexbox" style="float: right; width: auto !important">
|
||||
<view class="right flexbox opbtns" style="
|
||||
<view
|
||||
class="btns flexbox"
|
||||
style="float: right; width: auto !important"
|
||||
>
|
||||
<view
|
||||
class="right flexbox opbtns"
|
||||
style="
|
||||
width: auto;
|
||||
line-height: 44rpx;
|
||||
letter-spacing: 1rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
">
|
||||
<view style="
|
||||
"
|
||||
>
|
||||
<view
|
||||
style="
|
||||
line-height: 46rpx;
|
||||
color: #000;
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
margin-right: 10rpx;
|
||||
">实付款</view>
|
||||
<view style="
|
||||
"
|
||||
>实付款</view
|
||||
>
|
||||
<view
|
||||
style="
|
||||
/* margin-top: 8rpx; */
|
||||
line-height: 46rpx;
|
||||
color: #333;
|
||||
font-size: 30rpx;
|
||||
font-weight: 700;
|
||||
">
|
||||
<text style="font-size: 20rpx">¥</text>
|
||||
"
|
||||
>
|
||||
<!-- <text style="font-size: 20rpx">¥</text> -->
|
||||
<text v-if="slotProps.row.orderType == 'point'">
|
||||
{{ slotProps.row.bookBuyConfigEntity.realMoney }}
|
||||
</text>
|
||||
<text v-else>
|
||||
{{
|
||||
slotProps.row.realMoney ||
|
||||
slotProps.row.realMoney == 0
|
||||
? slotProps.row.realMoney
|
||||
: ""
|
||||
}}
|
||||
<text v-if="slotProps.row.realMoney > 0 &&slotProps.row.orderType != 'point'">
|
||||
¥{{ slotProps.row.realMoney }}
|
||||
</text>
|
||||
<text
|
||||
style="margin: 0 4rpx"
|
||||
v-if="
|
||||
slotProps.row.realMoney > 0 &&
|
||||
slotProps.row.jfDeduction > 0 &&slotProps.row.orderType != 'point'
|
||||
"
|
||||
>
|
||||
+
|
||||
</text>
|
||||
|
||||
<text v-if="slotProps.row.jfDeduction > 0 &&slotProps.row.orderType != 'point'"
|
||||
>{{ slotProps.row.jfDeduction }} 积分</text
|
||||
>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="btns flexbox" style="
|
||||
margin-top: 0rpx;
|
||||
float: right;
|
||||
width: auto;
|
||||
margin-left: 20rpx;
|
||||
" v-if="
|
||||
(slotProps.row.addressId == 0 ||
|
||||
slotProps.row.addressId == null) &&
|
||||
slotProps.row.jfDeduction > 0
|
||||
">
|
||||
<view class="right flexbox opbtns" style="
|
||||
line-height: 44rpx;
|
||||
letter-spacing: 1rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
"><text style="color: #9b9b9b">( </text>
|
||||
<view style="
|
||||
line-height: 46rpx;
|
||||
color: #9b9b9b;
|
||||
font-size: 24rpx;
|
||||
font-weight: 500;
|
||||
margin-right: 10rpx;
|
||||
">积分抵扣</view>
|
||||
<view style="
|
||||
/* margin-top: 8rpx; */
|
||||
line-height: 46rpx;
|
||||
color: #9b9b9b;
|
||||
font-size: 26rpx;
|
||||
font-weight: 700;
|
||||
">
|
||||
<text style="font-size: 20rpx">¥</text>
|
||||
{{ slotProps.row.jfDeduction }}
|
||||
</view>
|
||||
</view><text style="color: #9b9b9b">)</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="operation_box boxShadow" v-if="slotProps.row.isShowMore == true">
|
||||
<view v-if="slotProps.row.orderStatus == 0"
|
||||
@click.native.stop="canceOrder(slotProps.row)">取消订单</view>
|
||||
<view
|
||||
class="operation_box boxShadow"
|
||||
v-if="slotProps.row.isShowMore == true"
|
||||
>
|
||||
<view
|
||||
v-if="slotProps.row.orderStatus == 0"
|
||||
@click.native.stop="canceOrder(slotProps.row)"
|
||||
>取消订单</view
|
||||
>
|
||||
</view>
|
||||
<view class="btns flexbox" style="margin-top: 10rpx">
|
||||
<view class="left" style="color: #c0c4cc" @click.native.stop="
|
||||
<view
|
||||
class="left"
|
||||
style="color: #c0c4cc"
|
||||
@click.native.stop="
|
||||
openMore(slotProps.row, slotProps.rowIndex)
|
||||
">更多</view>
|
||||
"
|
||||
>更多</view
|
||||
>
|
||||
<view class="right flexbox opbtns">
|
||||
<view class="orderstatusbtn orderstatusbtn_success"
|
||||
v-if="slotProps.row.orderStatus == 0 && slotProps.row.paymentMethod != 3"
|
||||
@click.stop="goPay(slotProps.row)">继续付款</view>
|
||||
<view class="orderstatusbtn" v-if="slotProps.row.orderStatus == 1">催发货</view>
|
||||
<view class="orderstatusbtn" v-if="slotProps.row.orderStatus == 2"
|
||||
@click.native.stop="seeExpressDetail(slotProps.row)">查看物流</view>
|
||||
<view class="orderstatusbtn" v-if="slotProps.row.orderStatus == 2"
|
||||
@click.native.stop="OverOrder(slotProps.row)">确认收货</view>
|
||||
<view class="orderstatusbtn" v-if="slotProps.row.orderStatus == 3">申请售后</view>
|
||||
<view
|
||||
class="orderstatusbtn orderstatusbtn_success"
|
||||
v-if="
|
||||
slotProps.row.orderStatus == 0 &&
|
||||
slotProps.row.paymentMethod != 3
|
||||
"
|
||||
@click.stop="goPay(slotProps.row)"
|
||||
>继续付款</view
|
||||
>
|
||||
<view
|
||||
class="orderstatusbtn"
|
||||
v-if="slotProps.row.orderStatus == 1"
|
||||
>催发货</view
|
||||
>
|
||||
<view
|
||||
class="orderstatusbtn"
|
||||
v-if="slotProps.row.orderStatus == 2"
|
||||
@click.native.stop="seeExpressDetail(slotProps.row)"
|
||||
>查看物流</view
|
||||
>
|
||||
<view
|
||||
class="orderstatusbtn"
|
||||
v-if="slotProps.row.orderStatus == 2"
|
||||
@click.native.stop="OverOrder(slotProps.row)"
|
||||
>确认收货</view
|
||||
>
|
||||
<view
|
||||
class="orderstatusbtn"
|
||||
v-if="slotProps.row.orderStatus == 3"
|
||||
>申请售后</view
|
||||
>
|
||||
<!-- <view
|
||||
class="orderstatusbtn"
|
||||
v-if="item.orderStatus == 3 && userRecordid == null"
|
||||
@@ -295,8 +428,10 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view style="border-bottom: 2rpx solid #e9e9e9; height: 50rpx"
|
||||
v-if="slotProps.rowIndex < slotProps.row.length - 1"></view>
|
||||
<view
|
||||
style="border-bottom: 2rpx solid #e9e9e9; height: 50rpx"
|
||||
v-if="slotProps.rowIndex < slotProps.row.length - 1"
|
||||
></view>
|
||||
</view>
|
||||
<!-- <view class="btns" style="margin-top: 10rpx">
|
||||
<view class="flexbox opbtns" style="">
|
||||
@@ -345,49 +480,100 @@
|
||||
</uni-forms>
|
||||
<!-- <u-button type="success" @click="submitPJ">提交评价</u-button> -->
|
||||
<!-- 提交 -->
|
||||
<view class="padding-bottom-sm flex padding-lr-sm" style="border-bottom: 1px solid #eeeeee">
|
||||
<view
|
||||
class="padding-bottom-sm flex padding-lr-sm"
|
||||
style="border-bottom: 1px solid #eeeeee"
|
||||
>
|
||||
<view class="mb30" v-if="pjType != 'zhuiping'">
|
||||
<view :class="['star', Pform.star >= 1 ? 'starLight' : 'starGray']" @click="getStar(1)">
|
||||
<view
|
||||
:class="['star', Pform.star >= 1 ? 'starLight' : 'starGray']"
|
||||
@click="getStar(1)"
|
||||
>
|
||||
</view>
|
||||
<view :class="['star', Pform.star >= 2 ? 'starLight' : 'starGray']" @click="getStar(2)">
|
||||
<view
|
||||
:class="['star', Pform.star >= 2 ? 'starLight' : 'starGray']"
|
||||
@click="getStar(2)"
|
||||
>
|
||||
</view>
|
||||
<view :class="['star', Pform.star >= 3 ? 'starLight' : 'starGray']" @click="getStar(3)">
|
||||
<view
|
||||
:class="['star', Pform.star >= 3 ? 'starLight' : 'starGray']"
|
||||
@click="getStar(3)"
|
||||
>
|
||||
</view>
|
||||
<view :class="['star', Pform.star >= 4 ? 'starLight' : 'starGray']" @click="getStar(4)">
|
||||
<view
|
||||
:class="['star', Pform.star >= 4 ? 'starLight' : 'starGray']"
|
||||
@click="getStar(4)"
|
||||
>
|
||||
</view>
|
||||
<view :class="['star', Pform.star >= 5 ? 'starLight' : 'starGray']" @click="getStar(5)">
|
||||
<view
|
||||
:class="['star', Pform.star >= 5 ? 'starLight' : 'starGray']"
|
||||
@click="getStar(5)"
|
||||
>
|
||||
</view>
|
||||
</view>
|
||||
<view class="mb30" v-if="pjType != 'zhuiping'">
|
||||
<!-- <uni-file-picker :auto-upload="false" ref="files" @delete="deleteImg" limit="5" @success="upSuccess" @select="select" v-model="Pform.img" fileMediatype="image" :image-styles="imageStyles"/> -->
|
||||
<u-upload :fileList="Pform.img" @afterRead="afterRead" @delete="deletePic" multiple
|
||||
:maxCount="4" width="80" height="80" :previewFullImage="true">
|
||||
<u-upload
|
||||
:fileList="Pform.img"
|
||||
@afterRead="afterRead"
|
||||
@delete="deletePic"
|
||||
multiple
|
||||
:maxCount="4"
|
||||
width="80"
|
||||
height="80"
|
||||
:previewFullImage="true"
|
||||
>
|
||||
</u-upload>
|
||||
</view>
|
||||
<view class="flex-sub flexbox">
|
||||
<i @click="showEmj()" :class="emojiIcon"></i>
|
||||
<!-- <input type="text" @focus="InputFocus" @blur="InputBlur" v-model="message" @input="textareaBInput" placeholder-style="font-size:24rpx;color:#aaaaaa;" placeholder="请输入您要发送的内容"></input> -->
|
||||
<textarea class="textarea" v-model="Pform.comment" @focus="InputFocus" @blur="InputBlur"
|
||||
@input="textareaBInput" placeholder-style="font-size:24rpx;color:#aaaaaa;"
|
||||
placeholder="请输入您要发送的内容"></textarea>
|
||||
<textarea
|
||||
class="textarea"
|
||||
v-model="Pform.comment"
|
||||
@focus="InputFocus"
|
||||
@blur="InputBlur"
|
||||
@input="textareaBInput"
|
||||
placeholder-style="font-size:24rpx;color:#aaaaaa;"
|
||||
placeholder="请输入您要发送的内容"
|
||||
></textarea>
|
||||
</view>
|
||||
<view class="">
|
||||
<!-- <button class="cu-btn bg-gradual-blue shadow-blur">发送</button> -->
|
||||
<u-button type="success" @click="submitPJ" v-if="pjType != 'zhuiping'">提交评价</u-button>
|
||||
<u-button type="success" @click="zhuiping" v-else>提交追评</u-button>
|
||||
<u-button
|
||||
type="success"
|
||||
@click="submitPJ"
|
||||
v-if="pjType != 'zhuiping'"
|
||||
>提交评价</u-button
|
||||
>
|
||||
<u-button type="success" @click="zhuiping" v-else
|
||||
>提交追评</u-button
|
||||
>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view style="position: relative">
|
||||
<emotion @emotion="handleEmj" :height="220" v-if="isShowEmj" :windowWidth="windowWidth">
|
||||
<emotion
|
||||
@emotion="handleEmj"
|
||||
:height="220"
|
||||
v-if="isShowEmj"
|
||||
:windowWidth="windowWidth"
|
||||
>
|
||||
</emotion>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
<z-navigation></z-navigation>
|
||||
<u-action-sheet :closeOnClickAction="true" :closeOnClickOverlay="true" :actions="moreList" :show="isShowMore"
|
||||
cancelText="关闭" @close="isShowMore = false" @select="selectClick"></u-action-sheet>
|
||||
<u-action-sheet
|
||||
:closeOnClickAction="true"
|
||||
:closeOnClickOverlay="true"
|
||||
:actions="moreList"
|
||||
:show="isShowMore"
|
||||
cancelText="关闭"
|
||||
@close="isShowMore = false"
|
||||
@select="selectClick"
|
||||
></u-action-sheet>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -395,16 +581,9 @@
|
||||
import $http from "@/config/requestConfig.js";
|
||||
import emotion from "@/bkhumor-emojiplus/components/bkhumor-emojiplus/bkhumor-emojiplus.vue";
|
||||
// import musicPlay from "@/components/music.vue";
|
||||
import {
|
||||
setPay,
|
||||
setPayAssign,
|
||||
setWXPay
|
||||
} from "@/config/utils";
|
||||
import { setPay, setPayAssign, setWXPay } from "@/config/utils";
|
||||
// import { data } from 'jquery';
|
||||
import {
|
||||
mapState,
|
||||
mapMutations
|
||||
} from "vuex";
|
||||
import { mapState, mapMutations } from "vuex";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -412,10 +591,12 @@
|
||||
come: "2",
|
||||
isShowTab: false,
|
||||
isLoadingHide: false,
|
||||
moreList: [{
|
||||
moreList: [
|
||||
{
|
||||
name: "取消订单",
|
||||
key: "false",
|
||||
}, ],
|
||||
},
|
||||
],
|
||||
currentCateIndex: 0,
|
||||
pagination: {
|
||||
// 请求参数
|
||||
@@ -440,7 +621,8 @@
|
||||
status: 3,
|
||||
shupingList: [],
|
||||
bfaid: null,
|
||||
ordersTabs: [{
|
||||
ordersTabs: [
|
||||
{
|
||||
name: "全部",
|
||||
value: -1,
|
||||
badge: {},
|
||||
@@ -593,8 +775,13 @@
|
||||
},
|
||||
// 订单详情
|
||||
toDetail(val) {
|
||||
console.log(val, "val");
|
||||
// uni.navigateTo({
|
||||
// url:'../bookShop/commentsDetail?bookid='+val.bookid+'&bfa_id='+val.id
|
||||
// })
|
||||
uni.navigateTo({
|
||||
url: "/pages/bookShop/orderLCont?orderId=" +
|
||||
url:
|
||||
"/pages/bookShop/orderLCont?orderId=" +
|
||||
val.orderId +
|
||||
"&orderType=" +
|
||||
val.orderStatus +
|
||||
@@ -702,7 +889,8 @@
|
||||
console.log(payItem, "订单数据");
|
||||
if (payItem.paymentMethod == 2) {
|
||||
console.log("阿里支付");
|
||||
setPay({
|
||||
setPay(
|
||||
{
|
||||
typePay: "alipay",
|
||||
subject: "order",
|
||||
totalAmount: payItem.realMoney,
|
||||
@@ -760,17 +948,17 @@
|
||||
// 苹果充值
|
||||
console.log("苹果二次支付");
|
||||
uni.showModal({
|
||||
content: 'apple内购订单不支持继续支付,请重新发起支付申请并完成支付',
|
||||
confirmText: '好的',
|
||||
showCancel: false
|
||||
})
|
||||
content: "apple内购订单不支持继续支付,请重新发起支付申请并完成支付",
|
||||
confirmText: "好的",
|
||||
showCancel: false,
|
||||
});
|
||||
} else if (payItem.paymentMethod == 4) {
|
||||
console.log('天医币二次支付')
|
||||
console.log("天医币二次支付");
|
||||
}
|
||||
},
|
||||
// 取消订单
|
||||
canceOrder(item) {
|
||||
console.log('item.orderSn', item);
|
||||
console.log("item.orderSn", item);
|
||||
uni.showModal({
|
||||
title: "提示",
|
||||
content: "确定要取消订单吗?",
|
||||
@@ -781,9 +969,7 @@
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
this.$http
|
||||
.post(
|
||||
"book/buyOrder/appDelete?orderId=" + item.orderId
|
||||
)
|
||||
.post("book/buyOrder/appDelete?orderId=" + item.orderId)
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
uni.showToast({
|
||||
@@ -844,7 +1030,8 @@
|
||||
// }else if(this.sheetList.length == 1){
|
||||
// 直接展示详情
|
||||
uni.navigateTo({
|
||||
url: "./deliverDetail?orderSn=" +
|
||||
url:
|
||||
"./deliverDetail?orderSn=" +
|
||||
item.orderSn +
|
||||
"&expressOrderSn=" +
|
||||
item.expressList[0].expressOrderSn,
|
||||
@@ -886,7 +1073,8 @@
|
||||
this.getBookList(this.ordersListTab, false);
|
||||
}
|
||||
});
|
||||
} else if (res.cancel) {}
|
||||
} else if (res.cancel) {
|
||||
}
|
||||
},
|
||||
});
|
||||
},
|
||||
@@ -1018,7 +1206,7 @@
|
||||
} else {
|
||||
this.emoji.push({
|
||||
tag: i.emotion,
|
||||
name: i.emotioni
|
||||
name: i.emotioni,
|
||||
});
|
||||
// console.log(this.emoji,'this.emoji')
|
||||
this.Pform.comment += i.emotioni;
|
||||
|
||||
@@ -207,7 +207,7 @@
|
||||
<!-- 实际购买课程到期时间 -->
|
||||
<text style="line-height: 50rpx;">课程有效期截止到:{{librayList[curIndex].endTime}} </text>
|
||||
<!-- 自己买的可以续费 -->
|
||||
<text class="xufeiBtn" @click="handleClickGetGoodsList(librayList[curIndex])">续费</text>
|
||||
<text class="xufeiBtn" @click="goNewPay(librayList[curIndex])">续费</text>
|
||||
</template>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -135,7 +135,7 @@
|
||||
<!-- 评论弹出 -->
|
||||
<public-module></public-module>
|
||||
<tree-list ref="treeList" v-if="treeListVisible" @clickCourseInfo="clickCourseInfo"></tree-list>
|
||||
<buy-pup v-if="pricespop" :proPriceList="proPriceList" @closePup="closePup" @oprate="oprate"></buy-pup>
|
||||
<buy-pup-fudu v-if="pricespop" :proPriceList="proPriceList" @closePup="closePup" @oprate="oprate"></buy-pup-fudu>
|
||||
<z-navigation></z-navigation>
|
||||
<!-- <music-play :playData="playData"></music-play> -->
|
||||
</view>
|
||||
@@ -144,7 +144,7 @@
|
||||
|
||||
<script>
|
||||
// import musicPlay from '@/components/music.vue'
|
||||
import buyPup from '@/components/buyPup.vue'
|
||||
import buyPupFudu from '@/components/buyPupFudu.vue'
|
||||
import treeList from '@/components/tagTree.vue'
|
||||
import commentsList from '@/components/commentsList.vue'
|
||||
import emojiList1 from '../../bkhumor-emojiplus/emoji/biaoqin.js'
|
||||
@@ -276,7 +276,7 @@
|
||||
// musicPlay
|
||||
emotion,
|
||||
treeList,
|
||||
buyPup
|
||||
buyPupFudu
|
||||
// commentsList
|
||||
|
||||
},
|
||||
@@ -285,7 +285,7 @@
|
||||
oprate(data){
|
||||
console.log(data,'得到的内容')
|
||||
if(data.name == 'buy'){
|
||||
this.buy(data.item)
|
||||
this.buy(data.item,data.index)
|
||||
}else if(data.name == 'gouwuche'){
|
||||
this.addCart(data.item)
|
||||
}
|
||||
@@ -412,7 +412,7 @@
|
||||
}
|
||||
},
|
||||
// 直接购买
|
||||
buy(val){
|
||||
buy(val,index){
|
||||
var mynavData = JSON.stringify({
|
||||
goods: [
|
||||
{
|
||||
@@ -423,7 +423,8 @@
|
||||
goodsType: val.goodsType,
|
||||
},
|
||||
],
|
||||
|
||||
isFudu: true,
|
||||
fuduId: val.catalogueId,
|
||||
navTitle: val.productName,
|
||||
title: val.productName,
|
||||
typeId: 0,
|
||||
@@ -730,10 +731,10 @@
|
||||
xufei(val){
|
||||
// console.log('去续费,获取商品列表')
|
||||
$http.request({
|
||||
url: "sociology/product/getProductListForCourse",
|
||||
url: "common/courseRelearn/relearnShopProductList",
|
||||
method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
|
||||
data: {
|
||||
"id": val.catalogueId
|
||||
"catalogueId": val.catalogueId
|
||||
},
|
||||
header: { //默认 无 说明:请求头
|
||||
'Content-Type': 'application/json'
|
||||
@@ -742,7 +743,7 @@
|
||||
.then(res => {
|
||||
if (res.code == 0) {
|
||||
if (res.productList.length > 0) {
|
||||
this.proPriceList = res.productList
|
||||
this.proPriceList = res.productList.map((e)=>{return {...e,catalogueId:val.catalogueId}})
|
||||
// this.curProId = this.proPriceList[0].productId
|
||||
this.pricespop = true
|
||||
} else {
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
</image>
|
||||
<image
|
||||
v-else
|
||||
src="/static/nobg1.jpg"
|
||||
src="/static/nobg1.jpg" class="goods_item_img"
|
||||
mode="widthFix"
|
||||
@click="goDetail(item.productId)"
|
||||
></image>
|
||||
@@ -468,12 +468,21 @@
|
||||
<!-- leftSlot -->
|
||||
<template slot="leftSlot" slot-scope="slotProps">
|
||||
<view class="price_box order_bottom_box"
|
||||
><text class="number">共{{ number }}件</text>
|
||||
>
|
||||
<text class="price"
|
||||
>合计:
|
||||
|
||||
<text class="total"
|
||||
>¥{{ Number(actualPayment).toFixed(2) }}</text
|
||||
>
|
||||
<template v-if="actualPayment>0">
|
||||
¥{{ Number(actualPayment).toFixed(2) }}
|
||||
</template>
|
||||
<text style="margin: 0 4rpx;" v-if="actualPayment>0&&jfNumber>0">
|
||||
+
|
||||
</text>
|
||||
|
||||
<text v-if="jfNumber>0">{{ jfNumber }} 积分</text>
|
||||
</text
|
||||
>
|
||||
</text>
|
||||
</view>
|
||||
@@ -716,7 +725,7 @@ export default {
|
||||
},
|
||||
customButton: [
|
||||
{
|
||||
width: "340rpx",
|
||||
width: "200rpx",
|
||||
text: "立即支付",
|
||||
backgroundColor: "linear-gradient(90deg, #3C77BE 0%,#258feb 100%)",
|
||||
color: "#fff",
|
||||
|
||||
@@ -204,15 +204,10 @@
|
||||
type: "pageJump",
|
||||
},
|
||||
{
|
||||
name: "培训班管理",
|
||||
url: "/pages/trainingCourse/index",
|
||||
name: "我的湖分",
|
||||
url: "/pages/hufen/hufen",
|
||||
type: "pageJump",
|
||||
},
|
||||
// {
|
||||
// name: "我的湖分",
|
||||
// url: "/pages/hufen/hufen",
|
||||
// type: "pageJump",
|
||||
// },
|
||||
{
|
||||
name: "个人资料",
|
||||
url: "/pages/mine/userInfo/persData",
|
||||
|
||||
@@ -190,11 +190,18 @@
|
||||
<view class="price_box order_bottom_box">
|
||||
<text class="price"
|
||||
>合计:
|
||||
<text class="total"
|
||||
>¥{{ dataInfo.lastFee - jfNumber }}
|
||||
<text v-if="jfNumber > 0" style="margin-left: 10rpx"
|
||||
>+ {{ jfNumber }}积分</text
|
||||
<text class="total">
|
||||
<template v-if="dataInfo.lastFee - jfNumber > 0">
|
||||
¥{{ dataInfo.lastFee - jfNumber }}
|
||||
</template>
|
||||
<text
|
||||
style="margin: 0 4rpx"
|
||||
v-if="dataInfo.lastFee - jfNumber > 0 && jfNumber > 0"
|
||||
>
|
||||
+
|
||||
</text>
|
||||
|
||||
<text v-if="jfNumber > 0">{{ jfNumber }} 积分</text>
|
||||
</text>
|
||||
</text>
|
||||
</view>
|
||||
@@ -723,7 +730,7 @@ export default {
|
||||
this.dataInfo.lastFee = item.rebateFee;
|
||||
this.dataInfo.id = item.id;
|
||||
if (this.initData.user && this.initData.user.jf) {
|
||||
this.jfNumber=0
|
||||
this.jfNumber = 0;
|
||||
var totalMoney = this.dataInfo.lastFee;
|
||||
if (this.initData.user.jf >= totalMoney) {
|
||||
const integerPart = Math.floor(totalMoney);
|
||||
@@ -732,7 +739,6 @@ export default {
|
||||
} else {
|
||||
this.jfNumberMax = this.initData.user.jf; // 设置 jfNumberMax
|
||||
}
|
||||
|
||||
}
|
||||
this.$forceUpdate();
|
||||
},
|
||||
|
||||
@@ -65,6 +65,7 @@
|
||||
<common-list
|
||||
:dataList="MoneyRecord"
|
||||
isCondition="true"
|
||||
@hancleClick="goClick"
|
||||
isNoIcon="true"
|
||||
label="orderType"
|
||||
>
|
||||
@@ -286,6 +287,17 @@ export default {
|
||||
},
|
||||
//方法
|
||||
methods: {
|
||||
goClick(data){
|
||||
|
||||
if(data.relationId){
|
||||
uni.navigateTo({
|
||||
url: "/pages/bookShop/orderLCont?orderId=" +
|
||||
id
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
},
|
||||
// 获取
|
||||
getData() {
|
||||
var data = {
|
||||
|
||||
@@ -33,9 +33,9 @@
|
||||
label="orderType"
|
||||
>
|
||||
<template slot="labelSlot" slot-scope="slotProps">
|
||||
<view class="label_content AC_List">
|
||||
<view class="label_content AC_List" @click="slotProps.row.relationId?goClick(slotProps.row.relationId):''">
|
||||
<view class="left">
|
||||
<view class="title">{{ slotProps.row.orderType }}</view>
|
||||
<view class="title"><view class="AC_time">{{ slotProps.row.createTime }} </view></view>
|
||||
</view>
|
||||
<view
|
||||
:class="`right ${
|
||||
@@ -43,13 +43,14 @@
|
||||
}`"
|
||||
>
|
||||
<text v-if="slotProps.row.changeAmount > 0">+</text>
|
||||
<text>{{ slotProps.row.changeAmount }}</text> </view
|
||||
<text>{{ slotProps.row.changeAmount }}</text>
|
||||
</view
|
||||
><view class="AC_mark" v-if="slotProps.row.remark">{{
|
||||
slotProps.row.remark
|
||||
}}</view
|
||||
><view class="AC_time">{{ slotProps.row.createTime }} </view>
|
||||
>
|
||||
</view>
|
||||
<text class="order" style="font-size: 12px;" v-if="slotProps.row.relationId" @click="goClick(slotProps.row.relationId)">订单详情</text>
|
||||
<!-- <text class="order" style="font-size: 12px;" v-if="slotProps.row.relationId" @click="goClick(slotProps.row.relationId)">订单详情</text> -->
|
||||
</template>
|
||||
</common-list>
|
||||
</view>
|
||||
@@ -409,7 +410,7 @@ export default {
|
||||
overflow: hidden;
|
||||
|
||||
.left {
|
||||
width: calc(100% - 120rpx) !important;
|
||||
width: calc(100% - 200rpx) !important;
|
||||
font-weight: 700;
|
||||
float: left;
|
||||
color: #333;
|
||||
@@ -441,15 +442,18 @@ export default {
|
||||
}
|
||||
|
||||
.AC_mark {
|
||||
width: 100%;
|
||||
font-size: 28rpx;
|
||||
margin-top: 10rpx;
|
||||
margin-bottom: 15rpx;
|
||||
// white-space: nowrap;
|
||||
color: #343434;
|
||||
float: left;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.AC_time {
|
||||
// width: 100%;
|
||||
color: #909090;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
BIN
unpackage/dist/build/app-plus/__uniapperror.png
vendored
|
Before Width: | Height: | Size: 5.7 KiB |
1
unpackage/dist/build/app-plus/__uniappes6.js
vendored
BIN
unpackage/dist/build/app-plus/__uniappsuccess.png
vendored
|
Before Width: | Height: | Size: 2.0 KiB |
25
unpackage/dist/build/app-plus/__uniappview.html
vendored
@@ -1,25 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<script>
|
||||
var __UniViewStartTime__ = Date.now();
|
||||
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
|
||||
CSS.supports('top: constant(a)'))
|
||||
document.write(
|
||||
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
|
||||
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
|
||||
</script>
|
||||
<title>View</title>
|
||||
<link rel="stylesheet" href="view.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script src="__uniappes6.js"></script>
|
||||
<script src="view.umd.min.js"></script>
|
||||
<script src="app-view.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -1,38 +0,0 @@
|
||||
{
|
||||
"version" : "1",
|
||||
"prompt" : "template",
|
||||
"title" : "服务协议和隐私政策",
|
||||
"message" : " 请你务必审慎阅读、充分理解“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/> 你可阅读<a href=\"https://wumen.taihumed.com/agreement.html\">《用户协议》</a>和<a href=\"https://wumen.taihumed.com/privacy.html\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
|
||||
"buttonAccept" : "同意并接受",
|
||||
"buttonRefuse" : "暂不同意",
|
||||
"hrefLoader" : "system",
|
||||
"backToExit" : "false",
|
||||
"second" : {
|
||||
"title" : "确认提示",
|
||||
"message" : " 进入应用前,你需先同意<a href=\"https://wumen.taihumed.com/agreement.html\">《用户协议》</a>和<a href=\"https://wumen.taihumed.com/privacy.html\">《隐私政策》</a>,否则将退出应用。",
|
||||
"buttonAccept" : "同意并继续",
|
||||
"buttonRefuse" : "退出应用"
|
||||
},
|
||||
"disagreeMode" : {
|
||||
"support" : false,
|
||||
"loadNativePlugins" : false,
|
||||
"visitorEntry" : false,
|
||||
"showAlways" : false
|
||||
},
|
||||
"styles" : {
|
||||
"backgroundColor" : "#FFF",
|
||||
"borderRadius" : "5px",
|
||||
"title" : {
|
||||
"color" : "#333"
|
||||
},
|
||||
"buttonAccept" : {
|
||||
"color" : "#333"
|
||||
},
|
||||
"buttonRefuse" : {
|
||||
"color" : "#333"
|
||||
},
|
||||
"buttonVisitor" : {
|
||||
"color" : "#55aaff"
|
||||
}
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/app-plus/app-config.js
vendored
@@ -1 +0,0 @@
|
||||
(function(e){function r(r){for(var n,l,i=r[0],p=r[1],a=r[2],c=0,s=[];c<i.length;c++)l=i[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in p)Object.prototype.hasOwnProperty.call(p,n)&&(e[n]=p[n]);f&&f(r);while(s.length)s.shift()();return u.push.apply(u,a||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var p=t[i];0!==o[p]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={"app-config":0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e["default"]}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/";var i=this["webpackJsonp"]=this["webpackJsonp"]||[],p=i.push.bind(i);i.push=r,i=i.slice();for(var a=0;a<i.length;a++)r(i[a]);var f=p;t()})([]);
|
||||
38
unpackage/dist/build/app-plus/app-service.js
vendored
27
unpackage/dist/build/app-plus/app-view.js
vendored
|
Before Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 30 KiB |
1
unpackage/dist/build/app-plus/manifest.json
vendored
BIN
unpackage/dist/build/app-plus/static/40x40.png
vendored
|
Before Width: | Height: | Size: 2.0 KiB |
BIN
unpackage/dist/build/app-plus/static/arrow.png
vendored
|
Before Width: | Height: | Size: 1.2 KiB |
BIN
unpackage/dist/build/app-plus/static/bg1.jpg
vendored
|
Before Width: | Height: | Size: 5.7 KiB |
BIN
unpackage/dist/build/app-plus/static/bg2.jpg
vendored
|
Before Width: | Height: | Size: 3.5 KiB |
BIN
unpackage/dist/build/app-plus/static/biaoqing.png
vendored
|
Before Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 779 B |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 830 B |
|
Before Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 822 B |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 843 B |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 817 B |
|
Before Width: | Height: | Size: 844 B |
|
Before Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 822 B |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 650 B |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 815 B |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 719 B |
|
Before Width: | Height: | Size: 727 B |
|
Before Width: | Height: | Size: 758 B |