tijiao
This commit is contained in:
202
components/buyPupFudu.vue
Normal file
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
|
"request": 15000
|
||||||
},
|
},
|
||||||
"transformPx": false,
|
"transformPx": false,
|
||||||
"icons" : [
|
"icons": [{
|
||||||
{
|
|
||||||
"sizes": "分辨率,192x192",
|
"sizes": "分辨率,192x192",
|
||||||
"src": "图片路径"
|
"src": "图片路径"
|
||||||
}
|
}],
|
||||||
],
|
"versionName": "2.0.05",
|
||||||
"versionName" : "2.0.04",
|
"versionCode": 2005,
|
||||||
"versionCode" : 2004,
|
|
||||||
"app-plus": {
|
"app-plus": {
|
||||||
"nvueCompiler": "uni-app",
|
"nvueCompiler": "uni-app",
|
||||||
"compatible": {
|
"compatible": {
|
||||||
@@ -270,4 +268,3 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 小程序特有相关
|
// 小程序特有相关
|
||||||
|
|
||||||
|
|||||||
@@ -237,6 +237,35 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="order_item" style="">
|
<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">
|
<view class="orderallpri">
|
||||||
<span style="color: #666; margin-right: 10rpx; float: left"
|
<span style="color: #666; margin-right: 10rpx; float: left"
|
||||||
>商品总价 :
|
>商品总价 :
|
||||||
@@ -302,18 +331,6 @@
|
|||||||
>¥ {{ orderContet.jfDeduction }}</span
|
>¥ {{ orderContet.jfDeduction }}</span
|
||||||
>
|
>
|
||||||
</view>
|
</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>
|
||||||
<view class="order_item">
|
<view class="order_item">
|
||||||
<view class="orderYunf">
|
<view class="orderYunf">
|
||||||
@@ -343,7 +360,9 @@
|
|||||||
<view
|
<view
|
||||||
class="orderReal"
|
class="orderReal"
|
||||||
v-if="
|
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"
|
<span style="color: #666; margin-right: 10rpx; float: left"
|
||||||
@@ -353,12 +372,7 @@
|
|||||||
orderContet.paymentDate
|
orderContet.paymentDate
|
||||||
}}</text>
|
}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view
|
<view class="orderReal" v-if="orderContet.paymentMethod">
|
||||||
class="orderReal"
|
|
||||||
v-if="
|
|
||||||
orderContet.paymentMethod
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<span style="color: #666; margin-right: 10rpx; float: left"
|
<span style="color: #666; margin-right: 10rpx; float: left"
|
||||||
>付款方式 :
|
>付款方式 :
|
||||||
</span>
|
</span>
|
||||||
@@ -372,20 +386,27 @@
|
|||||||
<span style="color: #666" v-if="orderContet.paymentMethod == 3"
|
<span style="color: #666" v-if="orderContet.paymentMethod == 3"
|
||||||
>苹果支付</span
|
>苹果支付</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>
|
||||||
<template v-else-if="orderContet.realMoney">
|
<template v-else-if="orderContet.realMoney">
|
||||||
天医币支付 <text v-if="orderContet.jfDeduction>0"> + 积分抵扣</text>
|
天医币支付
|
||||||
|
<text v-if="orderContet.jfDeduction > 0"
|
||||||
|
> + 积分抵扣</text
|
||||||
|
>
|
||||||
</template>
|
</template>
|
||||||
<template v-else-if="orderContet.jfDeduction > 0">
|
<template v-else-if="orderContet.jfDeduction > 0">
|
||||||
积分抵扣
|
积分抵扣
|
||||||
</template>
|
</template>
|
||||||
</span
|
</span></text
|
||||||
></text
|
|
||||||
>
|
>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -1,28 +1,56 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="container commonPageBox commonDetailPage" style="background-color: #f6f7fb">
|
<view
|
||||||
|
class="container commonPageBox commonDetailPage"
|
||||||
|
style="background-color: #f6f7fb"
|
||||||
|
>
|
||||||
<!-- 公共组件-每个页面必须引入 -->
|
<!-- 公共组件-每个页面必须引入 -->
|
||||||
<public-module></public-module>
|
<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>
|
</z-nav-bar>
|
||||||
<view class="cateList flexbox">
|
<view class="cateList flexbox">
|
||||||
<common-sticky itemStyle="width:20%; height: 68rpx;font-size:24rpx;" :list="ordersTabs" label="name"
|
<common-sticky
|
||||||
:currentCateIndex="currentCateIndex" @handleselectCate="ordersTabCLi"></common-sticky>
|
itemStyle="width:20%; height: 68rpx;font-size:24rpx;"
|
||||||
|
:list="ordersTabs"
|
||||||
|
label="name"
|
||||||
|
:currentCateIndex="currentCateIndex"
|
||||||
|
@handleselectCate="ordersTabCLi"
|
||||||
|
></common-sticky>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 站位 -->
|
<!-- 站位 -->
|
||||||
|
|
||||||
<!-- <view v-if="ordersListTab == 1"> -->
|
<!-- <view v-if="ordersListTab == 1"> -->
|
||||||
<view class="order_box" :style="`height: calc(100% - ${(80 + statusBarHeight) * 2}rpx);`"
|
<view
|
||||||
style="background-color: #f2f2f2">
|
class="order_box"
|
||||||
<common-list imgUrl="url" indexKey="orderSn" noDataIcon="data" :isScroll="true"
|
:style="`height: calc(100% - ${(80 + statusBarHeight) * 2}rpx);`"
|
||||||
:isLoadingHide="isLoadingHide" :isNoIcon="true" :isCondition="true" :dataList="newList"
|
style="background-color: #f2f2f2"
|
||||||
@hancleClick="toDetail" @lower="onReachBottom1" :pagination="pagination" label="title">
|
>
|
||||||
|
<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 slot="labelSlot" slot-scope="slotProps">
|
||||||
<view class="orderInfo color_shandow">
|
<view class="orderInfo color_shandow">
|
||||||
<view class="mainContent">
|
<view class="mainContent">
|
||||||
<view class="btns" style="margin-top: 0rpx">
|
<view class="btns" style="margin-top: 0rpx">
|
||||||
<view class="flexbox opbtns" style="letter-spacing: 1rpx">
|
<view class="flexbox opbtns" style="letter-spacing: 1rpx">
|
||||||
<view style="
|
<view
|
||||||
|
style="
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -31,29 +59,71 @@
|
|||||||
color: #9b9b9b;
|
color: #9b9b9b;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
">{{ slotProps.row.orderSn }}
|
"
|
||||||
|
>{{ slotProps.row.orderSn }}
|
||||||
|
|
||||||
<u-tag @click="handleCopy(slotProps.row.orderSn, '订单编号')" borderColor="#258feb"
|
<u-tag
|
||||||
color="#258feb" text="复制" plain style="float: right" size="mini"
|
@click="handleCopy(slotProps.row.orderSn, '订单编号')"
|
||||||
type="success"></u-tag>
|
borderColor="#258feb"
|
||||||
|
color="#258feb"
|
||||||
|
text="复制"
|
||||||
|
plain
|
||||||
|
style="float: right"
|
||||||
|
size="mini"
|
||||||
|
type="success"
|
||||||
|
></u-tag>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="item">
|
<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 class="source_app"></view>
|
||||||
<view style="text-align: left">
|
<view style="text-align: left">
|
||||||
<text class="orderstatus" v-show="slotProps.row.orderStatus == 0">未付款</text>
|
<text
|
||||||
<text class="orderstatus" v-show="slotProps.row.orderStatus == 1">待发货</text>
|
class="orderstatus"
|
||||||
<text class="orderstatus" v-show="slotProps.row.orderStatus == 2">已发货</text>
|
v-show="slotProps.row.orderStatus == 0"
|
||||||
<text class="orderstatus" v-show="slotProps.row.orderStatus == 3">交易成功</text>
|
>未付款</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 == 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>
|
</view>
|
||||||
<view v-if="slotProps.row.orderType == 'relearn'" class="bookinfolist">
|
<view
|
||||||
<image class="feng fengPoint" src="/static/icon/fugou.png" mode="aspectFill">
|
v-if="slotProps.row.orderType == 'relearn'"
|
||||||
|
class="bookinfolist"
|
||||||
|
>
|
||||||
|
<image
|
||||||
|
class="feng fengPoint"
|
||||||
|
src="/static/icon/fugou.png"
|
||||||
|
mode="aspectFill"
|
||||||
|
>
|
||||||
</image>
|
</image>
|
||||||
<!-- <view class="description" >课程复读订单
|
<!-- <view class="description" >课程复读订单
|
||||||
</view> -->
|
</view> -->
|
||||||
@@ -62,12 +132,14 @@
|
|||||||
{{ slotProps.row.remark }}
|
{{ slotProps.row.remark }}
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view style="
|
<view
|
||||||
|
style="
|
||||||
line-height: 58rpx;
|
line-height: 58rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
">
|
"
|
||||||
|
>
|
||||||
<text style="font-size: 20rpx"></text>
|
<text style="font-size: 20rpx"></text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -78,33 +150,59 @@
|
|||||||
下单时间:{{ slotProps.row.createTime }}
|
下单时间:{{ slotProps.row.createTime }}
|
||||||
</view> -->
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
<view v-if="slotProps.row.orderType == 'vip'" class="bookinfolist">
|
<view
|
||||||
<image class="feng fengPoint" src="/static/icon/vip.png" mode="aspectFill"></image>
|
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 class="description" v-html="item.content">
|
||||||
</view> -->
|
</view> -->
|
||||||
<view class="btns flexbox">
|
<view class="btns flexbox">
|
||||||
<view class="booknameleft">
|
<view class="booknameleft">
|
||||||
{{ slotProps.row.vipBuyConfigEntity?slotProps.row.vipBuyConfigEntity.title:' ' }}
|
{{
|
||||||
<text class="vip_year" v-if="slotProps.row.vipBuyConfigEntity">({{ slotProps.row.vipBuyConfigEntity.year }}年)</text>
|
slotProps.row.vipBuyConfigEntity
|
||||||
|
? slotProps.row.vipBuyConfigEntity.title
|
||||||
|
: " "
|
||||||
|
}}
|
||||||
|
<text
|
||||||
|
class="vip_year"
|
||||||
|
v-if="slotProps.row.vipBuyConfigEntity"
|
||||||
|
>({{ slotProps.row.vipBuyConfigEntity.year }}年)</text
|
||||||
|
>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view style="
|
<view
|
||||||
|
style="
|
||||||
line-height: 58rpx;
|
line-height: 58rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
">
|
"
|
||||||
|
>
|
||||||
<text style="font-size: 20rpx"></text>
|
<text style="font-size: 20rpx"></text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="btns flexbox"
|
<view
|
||||||
style="color: #9f9f9f; margin-top: 10rpx; font-size: 24rpx">
|
class="btns flexbox"
|
||||||
|
style="color: #9f9f9f; margin-top: 10rpx; font-size: 24rpx"
|
||||||
|
>
|
||||||
下单时间:{{ slotProps.row.createTime }}
|
下单时间:{{ slotProps.row.createTime }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view v-if="slotProps.row.orderType == 'point'" class="bookinfolist">
|
<view
|
||||||
<image class="feng fengPoint" src="/static/icon/pay_3.png" mode="aspectFill">
|
v-if="slotProps.row.orderType == 'point'"
|
||||||
|
class="bookinfolist"
|
||||||
|
>
|
||||||
|
<image
|
||||||
|
class="feng fengPoint"
|
||||||
|
src="/static/icon/pay_3.png"
|
||||||
|
mode="aspectFill"
|
||||||
|
>
|
||||||
</image>
|
</image>
|
||||||
<!-- <view class="description" v-html="item.content">
|
<!-- <view class="description" v-html="item.content">
|
||||||
</view> -->
|
</view> -->
|
||||||
@@ -114,35 +212,54 @@
|
|||||||
{{ slotProps.row.bookBuyConfigEntity.money }}天医币
|
{{ slotProps.row.bookBuyConfigEntity.money }}天医币
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view style="
|
<view
|
||||||
|
style="
|
||||||
line-height: 58rpx;
|
line-height: 58rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
">
|
"
|
||||||
|
>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="btns flexbox"
|
<view
|
||||||
style="color: #9f9f9f; margin-top: 10rpx; font-size: 24rpx">
|
class="btns flexbox"
|
||||||
|
style="color: #9f9f9f; margin-top: 10rpx; font-size: 24rpx"
|
||||||
|
>
|
||||||
下单时间:{{ slotProps.row.createTime }}
|
下单时间:{{ slotProps.row.createTime }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view v-if="slotProps.row.orderType == 'order'">
|
<view v-if="slotProps.row.orderType == 'order'">
|
||||||
<view v-for="(item2, index2) in slotProps.row.productList"
|
<view
|
||||||
:key="slotProps.row.orderId" class="bookinfolist">
|
v-for="(item2, index2) in slotProps.row.productList"
|
||||||
|
:key="slotProps.row.orderId"
|
||||||
|
class="bookinfolist"
|
||||||
|
>
|
||||||
<view v-if="item2.product">
|
<view v-if="item2.product">
|
||||||
<view class="feng" v-if="item2.product && item2.product.productImages">
|
<view
|
||||||
<image :key="Date.now()" style="width: 100%; height: 100%"
|
class="feng"
|
||||||
mode="aspectFit" :src="item2.product.productImages"></image>
|
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>
|
||||||
|
|
||||||
<view v-else class="feng" style="
|
<view
|
||||||
|
v-else
|
||||||
|
class="feng"
|
||||||
|
style="
|
||||||
color: #c0c4cc;
|
color: #c0c4cc;
|
||||||
font-size: 22rpx;
|
font-size: 22rpx;
|
||||||
line-height: 140rpx;
|
line-height: 140rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
">暂无封面图</view>
|
"
|
||||||
|
>暂无封面图</view
|
||||||
|
>
|
||||||
<!-- <view class="description" v-html="item.content">
|
<!-- <view class="description" v-html="item.content">
|
||||||
</view> -->
|
</view> -->
|
||||||
<view class="btns flexbox">
|
<view class="btns flexbox">
|
||||||
@@ -152,21 +269,24 @@
|
|||||||
: ""
|
: ""
|
||||||
}}</view>
|
}}</view>
|
||||||
|
|
||||||
<view style="
|
<view
|
||||||
|
style="
|
||||||
line-height: 58rpx;
|
line-height: 58rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
">
|
"
|
||||||
|
>
|
||||||
<text style="font-size: 20rpx">¥</text>
|
<text style="font-size: 20rpx">¥</text>
|
||||||
{{
|
{{ item2.product.price ? item2.product.price : "" }}
|
||||||
item2.product.price ? item2.product.price : ""
|
|
||||||
}}
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="btns flexbox" style="margin-top: 10rpx">
|
<view class="btns flexbox" style="margin-top: 10rpx">
|
||||||
<view class="left" style="color: #c0c4cc"></view>
|
<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 : "" }}
|
×{{ item2.quantity ? item2.quantity : "" }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -174,8 +294,13 @@
|
|||||||
<view v-else>
|
<view v-else>
|
||||||
<view class="feng"></view>
|
<view class="feng"></view>
|
||||||
<view class="btns flexbox">
|
<view class="btns flexbox">
|
||||||
<view class="booknameleft" style="color: #181818">未知商品</view>
|
<view class="booknameleft" style="color: #181818"
|
||||||
<view style="" class="right flexbox opbtns product_quantity">
|
>未知商品</view
|
||||||
|
>
|
||||||
|
<view
|
||||||
|
style=""
|
||||||
|
class="right flexbox opbtns product_quantity"
|
||||||
|
>
|
||||||
×{{ item2.quantity ? item2.quantity : "" }}
|
×{{ item2.quantity ? item2.quantity : "" }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -184,99 +309,125 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view style="margin-top: 10rpx; overflow: hidden">
|
<view style="margin-top: 10rpx; overflow: hidden">
|
||||||
<view class="btns flexbox" style="float: right; width: auto !important">
|
<view
|
||||||
<view class="right flexbox opbtns" style="
|
class="btns flexbox"
|
||||||
|
style="float: right; width: auto !important"
|
||||||
|
>
|
||||||
|
<view
|
||||||
|
class="right flexbox opbtns"
|
||||||
|
style="
|
||||||
width: auto;
|
width: auto;
|
||||||
line-height: 44rpx;
|
line-height: 44rpx;
|
||||||
letter-spacing: 1rpx;
|
letter-spacing: 1rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
">
|
"
|
||||||
<view style="
|
>
|
||||||
|
<view
|
||||||
|
style="
|
||||||
line-height: 46rpx;
|
line-height: 46rpx;
|
||||||
color: #000;
|
color: #000;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
margin-right: 10rpx;
|
margin-right: 10rpx;
|
||||||
">实付款</view>
|
"
|
||||||
<view style="
|
>实付款</view
|
||||||
|
>
|
||||||
|
<view
|
||||||
|
style="
|
||||||
/* margin-top: 8rpx; */
|
/* margin-top: 8rpx; */
|
||||||
line-height: 46rpx;
|
line-height: 46rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
">
|
"
|
||||||
<text style="font-size: 20rpx">¥</text>
|
>
|
||||||
|
<!-- <text style="font-size: 20rpx">¥</text> -->
|
||||||
<text v-if="slotProps.row.orderType == 'point'">
|
<text v-if="slotProps.row.orderType == 'point'">
|
||||||
{{ slotProps.row.bookBuyConfigEntity.realMoney }}
|
{{ slotProps.row.bookBuyConfigEntity.realMoney }}
|
||||||
</text>
|
</text>
|
||||||
<text v-else>
|
<text v-else>
|
||||||
{{
|
<!-- {{
|
||||||
slotProps.row.realMoney ||
|
slotProps.row.realMoney ||
|
||||||
slotProps.row.realMoney == 0
|
slotProps.row.realMoney == 0
|
||||||
? slotProps.row.realMoney
|
? slotProps.row.realMoney
|
||||||
: ""
|
: ""
|
||||||
}}
|
}} -->
|
||||||
|
|
||||||
|
<template v-if="slotProps.row.realMoney > 0">
|
||||||
|
¥{{ slotProps.row.realMoney }}
|
||||||
|
</template>
|
||||||
|
<text
|
||||||
|
style="margin: 0 4rpx"
|
||||||
|
v-if="
|
||||||
|
slotProps.row.realMoney > 0 &&
|
||||||
|
slotProps.row.jfDeduction > 0
|
||||||
|
"
|
||||||
|
>
|
||||||
|
+
|
||||||
</text>
|
</text>
|
||||||
|
|
||||||
|
<text v-if="slotProps.row.jfDeduction > 0"
|
||||||
|
>{{ slotProps.row.jfDeduction }} 积分</text
|
||||||
|
>
|
||||||
|
</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</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>
|
||||||
<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>
|
||||||
<view class="btns flexbox" style="margin-top: 10rpx">
|
<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)
|
openMore(slotProps.row, slotProps.rowIndex)
|
||||||
">更多</view>
|
"
|
||||||
|
>更多</view
|
||||||
|
>
|
||||||
<view class="right flexbox opbtns">
|
<view class="right flexbox opbtns">
|
||||||
<view class="orderstatusbtn orderstatusbtn_success"
|
<view
|
||||||
v-if="slotProps.row.orderStatus == 0 && slotProps.row.paymentMethod != 3"
|
class="orderstatusbtn orderstatusbtn_success"
|
||||||
@click.stop="goPay(slotProps.row)">继续付款</view>
|
v-if="
|
||||||
<view class="orderstatusbtn" v-if="slotProps.row.orderStatus == 1">催发货</view>
|
slotProps.row.orderStatus == 0 &&
|
||||||
<view class="orderstatusbtn" v-if="slotProps.row.orderStatus == 2"
|
slotProps.row.paymentMethod != 3
|
||||||
@click.native.stop="seeExpressDetail(slotProps.row)">查看物流</view>
|
"
|
||||||
<view class="orderstatusbtn" v-if="slotProps.row.orderStatus == 2"
|
@click.stop="goPay(slotProps.row)"
|
||||||
@click.native.stop="OverOrder(slotProps.row)">确认收货</view>
|
>继续付款</view
|
||||||
<view class="orderstatusbtn" v-if="slotProps.row.orderStatus == 3">申请售后</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
|
<!-- <view
|
||||||
class="orderstatusbtn"
|
class="orderstatusbtn"
|
||||||
v-if="item.orderStatus == 3 && userRecordid == null"
|
v-if="item.orderStatus == 3 && userRecordid == null"
|
||||||
@@ -287,8 +438,10 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view style="border-bottom: 2rpx solid #e9e9e9; height: 50rpx"
|
<view
|
||||||
v-if="slotProps.rowIndex < slotProps.row.length - 1"></view>
|
style="border-bottom: 2rpx solid #e9e9e9; height: 50rpx"
|
||||||
|
v-if="slotProps.rowIndex < slotProps.row.length - 1"
|
||||||
|
></view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="btns" style="margin-top: 10rpx">
|
<!-- <view class="btns" style="margin-top: 10rpx">
|
||||||
<view class="flexbox opbtns" style="">
|
<view class="flexbox opbtns" style="">
|
||||||
@@ -337,49 +490,100 @@
|
|||||||
</uni-forms>
|
</uni-forms>
|
||||||
<!-- <u-button type="success" @click="submitPJ">提交评价</u-button> -->
|
<!-- <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="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>
|
||||||
<view :class="['star', Pform.star >= 2 ? 'starLight' : 'starGray']" @click="getStar(2)">
|
<view
|
||||||
|
:class="['star', Pform.star >= 2 ? 'starLight' : 'starGray']"
|
||||||
|
@click="getStar(2)"
|
||||||
|
>
|
||||||
</view>
|
</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>
|
||||||
<view :class="['star', Pform.star >= 4 ? 'starLight' : 'starGray']" @click="getStar(4)">
|
<view
|
||||||
|
:class="['star', Pform.star >= 4 ? 'starLight' : 'starGray']"
|
||||||
|
@click="getStar(4)"
|
||||||
|
>
|
||||||
</view>
|
</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>
|
</view>
|
||||||
<view class="mb30" v-if="pjType != 'zhuiping'">
|
<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"/> -->
|
<!-- <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
|
<u-upload
|
||||||
:maxCount="4" width="80" height="80" :previewFullImage="true">
|
:fileList="Pform.img"
|
||||||
|
@afterRead="afterRead"
|
||||||
|
@delete="deletePic"
|
||||||
|
multiple
|
||||||
|
:maxCount="4"
|
||||||
|
width="80"
|
||||||
|
height="80"
|
||||||
|
:previewFullImage="true"
|
||||||
|
>
|
||||||
</u-upload>
|
</u-upload>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex-sub flexbox">
|
<view class="flex-sub flexbox">
|
||||||
<i @click="showEmj()" :class="emojiIcon"></i>
|
<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> -->
|
<!-- <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"
|
<textarea
|
||||||
@input="textareaBInput" placeholder-style="font-size:24rpx;color:#aaaaaa;"
|
class="textarea"
|
||||||
placeholder="请输入您要发送的内容"></textarea>
|
v-model="Pform.comment"
|
||||||
|
@focus="InputFocus"
|
||||||
|
@blur="InputBlur"
|
||||||
|
@input="textareaBInput"
|
||||||
|
placeholder-style="font-size:24rpx;color:#aaaaaa;"
|
||||||
|
placeholder="请输入您要发送的内容"
|
||||||
|
></textarea>
|
||||||
</view>
|
</view>
|
||||||
<view class="">
|
<view class="">
|
||||||
<!-- <button class="cu-btn bg-gradual-blue shadow-blur">发送</button> -->
|
<!-- <button class="cu-btn bg-gradual-blue shadow-blur">发送</button> -->
|
||||||
<u-button type="success" @click="submitPJ" v-if="pjType != 'zhuiping'">提交评价</u-button>
|
<u-button
|
||||||
<u-button type="success" @click="zhuiping" v-else>提交追评</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>
|
</view>
|
||||||
|
|
||||||
<view style="position: relative">
|
<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>
|
</emotion>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
<z-navigation></z-navigation>
|
<z-navigation></z-navigation>
|
||||||
<u-action-sheet :closeOnClickAction="true" :closeOnClickOverlay="true" :actions="moreList" :show="isShowMore"
|
<u-action-sheet
|
||||||
cancelText="关闭" @close="isShowMore = false" @select="selectClick"></u-action-sheet>
|
:closeOnClickAction="true"
|
||||||
|
:closeOnClickOverlay="true"
|
||||||
|
:actions="moreList"
|
||||||
|
:show="isShowMore"
|
||||||
|
cancelText="关闭"
|
||||||
|
@close="isShowMore = false"
|
||||||
|
@select="selectClick"
|
||||||
|
></u-action-sheet>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -387,16 +591,9 @@
|
|||||||
import $http from "@/config/requestConfig.js";
|
import $http from "@/config/requestConfig.js";
|
||||||
import emotion from "@/bkhumor-emojiplus/components/bkhumor-emojiplus/bkhumor-emojiplus.vue";
|
import emotion from "@/bkhumor-emojiplus/components/bkhumor-emojiplus/bkhumor-emojiplus.vue";
|
||||||
// import musicPlay from "@/components/music.vue";
|
// import musicPlay from "@/components/music.vue";
|
||||||
import {
|
import { setPay, setPayAssign, setWXPay } from "@/config/utils";
|
||||||
setPay,
|
|
||||||
setPayAssign,
|
|
||||||
setWXPay
|
|
||||||
} from "@/config/utils";
|
|
||||||
// import { data } from 'jquery';
|
// import { data } from 'jquery';
|
||||||
import {
|
import { mapState, mapMutations } from "vuex";
|
||||||
mapState,
|
|
||||||
mapMutations
|
|
||||||
} from "vuex";
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -404,10 +601,12 @@
|
|||||||
come: "2",
|
come: "2",
|
||||||
isShowTab: false,
|
isShowTab: false,
|
||||||
isLoadingHide: false,
|
isLoadingHide: false,
|
||||||
moreList: [{
|
moreList: [
|
||||||
|
{
|
||||||
name: "取消订单",
|
name: "取消订单",
|
||||||
key: "false",
|
key: "false",
|
||||||
}, ],
|
},
|
||||||
|
],
|
||||||
currentCateIndex: 0,
|
currentCateIndex: 0,
|
||||||
pagination: {
|
pagination: {
|
||||||
// 请求参数
|
// 请求参数
|
||||||
@@ -432,7 +631,8 @@
|
|||||||
status: 3,
|
status: 3,
|
||||||
shupingList: [],
|
shupingList: [],
|
||||||
bfaid: null,
|
bfaid: null,
|
||||||
ordersTabs: [{
|
ordersTabs: [
|
||||||
|
{
|
||||||
name: "全部",
|
name: "全部",
|
||||||
value: -1,
|
value: -1,
|
||||||
badge: {},
|
badge: {},
|
||||||
@@ -590,7 +790,8 @@
|
|||||||
// url:'../bookShop/commentsDetail?bookid='+val.bookid+'&bfa_id='+val.id
|
// url:'../bookShop/commentsDetail?bookid='+val.bookid+'&bfa_id='+val.id
|
||||||
// })
|
// })
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/bookShop/orderLCont?orderId=" +
|
url:
|
||||||
|
"/pages/bookShop/orderLCont?orderId=" +
|
||||||
val.orderId +
|
val.orderId +
|
||||||
"&orderType=" +
|
"&orderType=" +
|
||||||
val.orderStatus +
|
val.orderStatus +
|
||||||
@@ -698,7 +899,8 @@
|
|||||||
console.log(payItem, "订单数据");
|
console.log(payItem, "订单数据");
|
||||||
if (payItem.paymentMethod == 2) {
|
if (payItem.paymentMethod == 2) {
|
||||||
console.log("阿里支付");
|
console.log("阿里支付");
|
||||||
setPay({
|
setPay(
|
||||||
|
{
|
||||||
typePay: "alipay",
|
typePay: "alipay",
|
||||||
subject: "order",
|
subject: "order",
|
||||||
totalAmount: payItem.realMoney,
|
totalAmount: payItem.realMoney,
|
||||||
@@ -756,17 +958,17 @@
|
|||||||
// 苹果充值
|
// 苹果充值
|
||||||
console.log("苹果二次支付");
|
console.log("苹果二次支付");
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
content: 'apple内购订单不支持继续支付,请重新发起支付申请并完成支付',
|
content: "apple内购订单不支持继续支付,请重新发起支付申请并完成支付",
|
||||||
confirmText: '好的',
|
confirmText: "好的",
|
||||||
showCancel: false
|
showCancel: false,
|
||||||
})
|
});
|
||||||
} else if (payItem.paymentMethod == 4) {
|
} else if (payItem.paymentMethod == 4) {
|
||||||
console.log('天医币二次支付')
|
console.log("天医币二次支付");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 取消订单
|
// 取消订单
|
||||||
canceOrder(item) {
|
canceOrder(item) {
|
||||||
console.log('item.orderSn', item);
|
console.log("item.orderSn", item);
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: "提示",
|
title: "提示",
|
||||||
content: "确定要取消订单吗?",
|
content: "确定要取消订单吗?",
|
||||||
@@ -777,9 +979,7 @@
|
|||||||
success: (res) => {
|
success: (res) => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
this.$http
|
this.$http
|
||||||
.post(
|
.post("book/buyOrder/appDelete?orderId=" + item.orderId)
|
||||||
"book/buyOrder/appDelete?orderId=" + item.orderId
|
|
||||||
)
|
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@@ -840,7 +1040,8 @@
|
|||||||
// }else if(this.sheetList.length == 1){
|
// }else if(this.sheetList.length == 1){
|
||||||
// 直接展示详情
|
// 直接展示详情
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "./deliverDetail?orderSn=" +
|
url:
|
||||||
|
"./deliverDetail?orderSn=" +
|
||||||
item.orderSn +
|
item.orderSn +
|
||||||
"&expressOrderSn=" +
|
"&expressOrderSn=" +
|
||||||
item.expressList[0].expressOrderSn,
|
item.expressList[0].expressOrderSn,
|
||||||
@@ -882,7 +1083,8 @@
|
|||||||
this.getBookList(this.ordersListTab, false);
|
this.getBookList(this.ordersListTab, false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if (res.cancel) {}
|
} else if (res.cancel) {
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -1014,7 +1216,7 @@
|
|||||||
} else {
|
} else {
|
||||||
this.emoji.push({
|
this.emoji.push({
|
||||||
tag: i.emotion,
|
tag: i.emotion,
|
||||||
name: i.emotioni
|
name: i.emotioni,
|
||||||
});
|
});
|
||||||
// console.log(this.emoji,'this.emoji')
|
// console.log(this.emoji,'this.emoji')
|
||||||
this.Pform.comment += i.emotioni;
|
this.Pform.comment += i.emotioni;
|
||||||
|
|||||||
@@ -207,7 +207,7 @@
|
|||||||
<!-- 实际购买课程到期时间 -->
|
<!-- 实际购买课程到期时间 -->
|
||||||
<text style="line-height: 50rpx;">课程有效期截止到:{{librayList[curIndex].endTime}} </text>
|
<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>
|
</template>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -135,7 +135,7 @@
|
|||||||
<!-- 评论弹出 -->
|
<!-- 评论弹出 -->
|
||||||
<public-module></public-module>
|
<public-module></public-module>
|
||||||
<tree-list ref="treeList" v-if="treeListVisible" @clickCourseInfo="clickCourseInfo"></tree-list>
|
<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>
|
<z-navigation></z-navigation>
|
||||||
<!-- <music-play :playData="playData"></music-play> -->
|
<!-- <music-play :playData="playData"></music-play> -->
|
||||||
</view>
|
</view>
|
||||||
@@ -144,7 +144,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
// import musicPlay from '@/components/music.vue'
|
// 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 treeList from '@/components/tagTree.vue'
|
||||||
import commentsList from '@/components/commentsList.vue'
|
import commentsList from '@/components/commentsList.vue'
|
||||||
import emojiList1 from '../../bkhumor-emojiplus/emoji/biaoqin.js'
|
import emojiList1 from '../../bkhumor-emojiplus/emoji/biaoqin.js'
|
||||||
@@ -276,7 +276,7 @@
|
|||||||
// musicPlay
|
// musicPlay
|
||||||
emotion,
|
emotion,
|
||||||
treeList,
|
treeList,
|
||||||
buyPup
|
buyPupFudu
|
||||||
// commentsList
|
// commentsList
|
||||||
|
|
||||||
},
|
},
|
||||||
@@ -285,7 +285,7 @@
|
|||||||
oprate(data){
|
oprate(data){
|
||||||
console.log(data,'得到的内容')
|
console.log(data,'得到的内容')
|
||||||
if(data.name == 'buy'){
|
if(data.name == 'buy'){
|
||||||
this.buy(data.item)
|
this.buy(data.item,data.index)
|
||||||
}else if(data.name == 'gouwuche'){
|
}else if(data.name == 'gouwuche'){
|
||||||
this.addCart(data.item)
|
this.addCart(data.item)
|
||||||
}
|
}
|
||||||
@@ -412,7 +412,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 直接购买
|
// 直接购买
|
||||||
buy(val){
|
buy(val,index){
|
||||||
var mynavData = JSON.stringify({
|
var mynavData = JSON.stringify({
|
||||||
goods: [
|
goods: [
|
||||||
{
|
{
|
||||||
@@ -423,7 +423,8 @@
|
|||||||
goodsType: val.goodsType,
|
goodsType: val.goodsType,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
isFudu: true,
|
||||||
|
fuduId: val.catalogueId,
|
||||||
navTitle: val.productName,
|
navTitle: val.productName,
|
||||||
title: val.productName,
|
title: val.productName,
|
||||||
typeId: 0,
|
typeId: 0,
|
||||||
@@ -730,10 +731,10 @@
|
|||||||
xufei(val){
|
xufei(val){
|
||||||
// console.log('去续费,获取商品列表')
|
// console.log('去续费,获取商品列表')
|
||||||
$http.request({
|
$http.request({
|
||||||
url: "sociology/product/getProductListForCourse",
|
url: "common/courseRelearn/relearnShopProductList",
|
||||||
method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
|
method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
|
||||||
data: {
|
data: {
|
||||||
"id": val.catalogueId
|
"catalogueId": val.catalogueId
|
||||||
},
|
},
|
||||||
header: { //默认 无 说明:请求头
|
header: { //默认 无 说明:请求头
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
@@ -742,7 +743,7 @@
|
|||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
if (res.productList.length > 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.curProId = this.proPriceList[0].productId
|
||||||
this.pricespop = true
|
this.pricespop = true
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -74,7 +74,7 @@
|
|||||||
</image>
|
</image>
|
||||||
<image
|
<image
|
||||||
v-else
|
v-else
|
||||||
src="/static/nobg1.jpg"
|
src="/static/nobg1.jpg" class="goods_item_img"
|
||||||
mode="widthFix"
|
mode="widthFix"
|
||||||
@click="goDetail(item.productId)"
|
@click="goDetail(item.productId)"
|
||||||
></image>
|
></image>
|
||||||
@@ -468,12 +468,21 @@
|
|||||||
<!-- leftSlot -->
|
<!-- leftSlot -->
|
||||||
<template slot="leftSlot" slot-scope="slotProps">
|
<template slot="leftSlot" slot-scope="slotProps">
|
||||||
<view class="price_box order_bottom_box"
|
<view class="price_box order_bottom_box"
|
||||||
><text class="number">共{{ number }}件</text>
|
>
|
||||||
<text class="price"
|
<text class="price"
|
||||||
>合计:
|
>合计:
|
||||||
|
|
||||||
<text class="total"
|
<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>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
@@ -716,7 +725,7 @@ export default {
|
|||||||
},
|
},
|
||||||
customButton: [
|
customButton: [
|
||||||
{
|
{
|
||||||
width: "340rpx",
|
width: "200rpx",
|
||||||
text: "立即支付",
|
text: "立即支付",
|
||||||
backgroundColor: "linear-gradient(90deg, #3C77BE 0%,#258feb 100%)",
|
backgroundColor: "linear-gradient(90deg, #3C77BE 0%,#258feb 100%)",
|
||||||
color: "#fff",
|
color: "#fff",
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -203,11 +203,11 @@
|
|||||||
url: "/pages/certificate/certificate",
|
url: "/pages/certificate/certificate",
|
||||||
type: "pageJump",
|
type: "pageJump",
|
||||||
},
|
},
|
||||||
// {
|
{
|
||||||
// name: "我的湖分",
|
name: "我的湖分",
|
||||||
// url: "/pages/hufen/hufen",
|
url: "/pages/hufen/hufen",
|
||||||
// type: "pageJump",
|
type: "pageJump",
|
||||||
// },
|
},
|
||||||
{
|
{
|
||||||
name: "个人资料",
|
name: "个人资料",
|
||||||
url: "/pages/mine/userInfo/persData",
|
url: "/pages/mine/userInfo/persData",
|
||||||
|
|||||||
@@ -190,11 +190,18 @@
|
|||||||
<view class="price_box order_bottom_box">
|
<view class="price_box order_bottom_box">
|
||||||
<text class="price"
|
<text class="price"
|
||||||
>合计:
|
>合计:
|
||||||
<text class="total"
|
<text class="total">
|
||||||
>¥{{ dataInfo.lastFee - jfNumber }}
|
<template v-if="dataInfo.lastFee - jfNumber > 0">
|
||||||
<text v-if="jfNumber > 0" style="margin-left: 10rpx"
|
¥{{ dataInfo.lastFee - jfNumber }}
|
||||||
>+ {{ jfNumber }}积分</text
|
</template>
|
||||||
|
<text
|
||||||
|
style="margin: 0 4rpx"
|
||||||
|
v-if="dataInfo.lastFee - jfNumber > 0 && jfNumber > 0"
|
||||||
>
|
>
|
||||||
|
+
|
||||||
|
</text>
|
||||||
|
|
||||||
|
<text v-if="jfNumber > 0">{{ jfNumber }} 积分</text>
|
||||||
</text>
|
</text>
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
@@ -723,7 +730,7 @@ export default {
|
|||||||
this.dataInfo.lastFee = item.rebateFee;
|
this.dataInfo.lastFee = item.rebateFee;
|
||||||
this.dataInfo.id = item.id;
|
this.dataInfo.id = item.id;
|
||||||
if (this.initData.user && this.initData.user.jf) {
|
if (this.initData.user && this.initData.user.jf) {
|
||||||
this.jfNumber=0
|
this.jfNumber = 0;
|
||||||
var totalMoney = this.dataInfo.lastFee;
|
var totalMoney = this.dataInfo.lastFee;
|
||||||
if (this.initData.user.jf >= totalMoney) {
|
if (this.initData.user.jf >= totalMoney) {
|
||||||
const integerPart = Math.floor(totalMoney);
|
const integerPart = Math.floor(totalMoney);
|
||||||
@@ -732,7 +739,6 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.jfNumberMax = this.initData.user.jf; // 设置 jfNumberMax
|
this.jfNumberMax = this.initData.user.jf; // 设置 jfNumberMax
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
this.$forceUpdate();
|
this.$forceUpdate();
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -33,9 +33,9 @@
|
|||||||
label="orderType"
|
label="orderType"
|
||||||
>
|
>
|
||||||
<template slot="labelSlot" slot-scope="slotProps">
|
<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="left">
|
||||||
<view class="title">{{ slotProps.row.orderType }}</view>
|
<view class="title"><view class="AC_time">{{ slotProps.row.createTime }} </view></view>
|
||||||
</view>
|
</view>
|
||||||
<view
|
<view
|
||||||
:class="`right ${
|
:class="`right ${
|
||||||
@@ -43,13 +43,14 @@
|
|||||||
}`"
|
}`"
|
||||||
>
|
>
|
||||||
<text v-if="slotProps.row.changeAmount > 0">+</text>
|
<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">{{
|
><view class="AC_mark" v-if="slotProps.row.remark">{{
|
||||||
slotProps.row.remark
|
slotProps.row.remark
|
||||||
}}</view
|
}}</view
|
||||||
><view class="AC_time">{{ slotProps.row.createTime }} </view>
|
>
|
||||||
</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>
|
</template>
|
||||||
</common-list>
|
</common-list>
|
||||||
</view>
|
</view>
|
||||||
@@ -409,7 +410,7 @@ export default {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
.left {
|
.left {
|
||||||
width: calc(100% - 120rpx) !important;
|
width: calc(100% - 200rpx) !important;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
float: left;
|
float: left;
|
||||||
color: #333;
|
color: #333;
|
||||||
@@ -441,15 +442,18 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.AC_mark {
|
.AC_mark {
|
||||||
|
width: 100%;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
margin-top: 10rpx;
|
margin-top: 10rpx;
|
||||||
margin-bottom: 15rpx;
|
margin-bottom: 15rpx;
|
||||||
// white-space: nowrap;
|
// white-space: nowrap;
|
||||||
color: #343434;
|
color: #343434;
|
||||||
float: left;
|
float: left;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.AC_time {
|
.AC_time {
|
||||||
|
// width: 100%;
|
||||||
color: #909090;
|
color: #909090;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
}
|
}
|
||||||
|
|||||||
12
unpackage/dist/build/app-plus/app-service.js
vendored
12
unpackage/dist/build/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
8
unpackage/dist/build/app-plus/app-view.js
vendored
8
unpackage/dist/build/app-plus/app-view.js
vendored
File diff suppressed because one or more lines are too long
2
unpackage/dist/build/app-plus/manifest.json
vendored
2
unpackage/dist/build/app-plus/manifest.json
vendored
File diff suppressed because one or more lines are too long
BIN
unpackage/release/wumen20250414200401.wgt
Normal file
BIN
unpackage/release/wumen20250414200401.wgt
Normal file
Binary file not shown.
BIN
unpackage/release/wumen20250415200501.wgt
Normal file
BIN
unpackage/release/wumen20250415200501.wgt
Normal file
Binary file not shown.
Reference in New Issue
Block a user