This commit is contained in:
@fawn-nine
2024-09-27 17:04:35 +08:00
parent eedeb5c37f
commit 806c08174f
10 changed files with 107 additions and 54 deletions

View File

@@ -20,7 +20,7 @@
"type" : "uniCloud" "type" : "uniCloud"
}, },
{ {
"playground" : "standard", "playground" : "custom",
"type" : "uni-app:app-ios" "type" : "uni-app:app-ios"
}, },
{ {

View File

@@ -12,8 +12,8 @@
"src" : "图片路径" "src" : "图片路径"
} }
], ],
"versionName" : "1.2.52", "versionName" : "1.2.55",
"versionCode" : 1252, "versionCode" : 1255,
"app-plus" : { "app-plus" : {
"compatible" : { "compatible" : {
"ignoreVersion" : true "ignoreVersion" : true

View File

@@ -518,7 +518,7 @@ export default {
url: "buy/record/All", url: "buy/record/All",
method: "POST", // POST、GET、PUT、DELETE具体说明查看官方文档1 method: "POST", // POST、GET、PUT、DELETE具体说明查看官方文档1
data: { data: {
'bookid': this.productId 'productId': this.productId
}, },
header: { //默认 无 说明:请求头 header: { //默认 无 说明:请求头
'Content-Type': 'application/json' 'Content-Type': 'application/json'

View File

@@ -3,7 +3,7 @@
<!-- 公共组件-每个页面必须引入 --> <!-- 公共组件-每个页面必须引入 -->
<public-module></public-module> <public-module></public-module>
<z-nav-bar title="订单详情"></z-nav-bar> <z-nav-bar title="订单详情"></z-nav-bar>
<view class="adDefault" v-if="consigneeShow && orderContet.orderType == 'order'"> <view class="adDefault" v-if="consigneeShow && orderContet.orderType == 'order' && (orderContet.addressId != 0 && orderContet.addressId != null )">
<view class="defalTop"> <view class="defalTop">
<text class="userName"> <text class="userName">
{{orderContet.consignee.consigneeName}} {{orderContet.consignee.consigneeName}}
@@ -32,8 +32,9 @@
<text class="orderState orderState3" v-if="orderContet.orderStatus==3">已完成</text> <text class="orderState orderState3" v-if="orderContet.orderStatus==3">已完成</text>
<text class="orderState orderState5" v-if="orderContet.orderStatus==5">已超时</text> <text class="orderState orderState5" v-if="orderContet.orderStatus==5">已超时</text>
</view> </view>
<template v-if="orderContet.orderType == 'order' && orderContet.goodsList.length > 0">
<view class="orderContent" v-for="(item,index) in orderContet.goodsList" :key="index" <view class="orderContent" v-for="(item,index) in orderContet.goodsList" :key="index"
@click="goDetail(item.productId)" v-if="orderContet.goodsList.length > 0"> @click="goDetail(item.productId)" >
<image :src="item.productImage" mode=""></image> <image :src="item.productImage" mode=""></image>
<view class="itemJian"> <view class="itemJian">
<view class="orderTitle"> <view class="orderTitle">
@@ -51,21 +52,36 @@
<view class="orderOper" v-if="item.orderStatus == 3"> <view class="orderOper" v-if="item.orderStatus == 3">
<view style="width: 100%; text-align: right;"> <view style="width: 100%; text-align: right;">
<view v-if="userRecordid == null" @click.stop="pingji(item.productId)" class="opCan" >评价</view> <view v-if="userRecordid == null" @click.stop="pingji(item.productId)" class="opCan" >评价</view>
<view v-else @click.stop="showZhuiping(item.productId)" class="opCan" >追评</view> <!-- <view v-else @click.stop="showZhuiping(item.productId)" class="opCan" >追评</view> -->
</view> </view>
</view> </view>
<br clear="both"> <br clear="both">
</view> </view>
<view class="orderContent" v-if="orderContet.products==''"> </template>
<template v-if="orderContet.orderType =='vip'">
<view class="orderContent" >
<image :src="'../../static/icon/oder_vip.png'" style="height: 150rpx;"></image>
<view class="itemJian">
<view class="orderTitle">
<text>VIP开通</text>
</view>
<!-- <view class="orderPrice" >
<text style="font-weight: bold;">{{orderContet.realMoney}}</text>
</view> -->
<br clear="both">
</view>
<br clear="both">
</view>
</template>
<view class="orderContent" v-if="orderContet.orderType == 'point'">
<image src="../../static/icon/oder_chong.png" mode="" style="height: 150rpx;"></image> <image src="../../static/icon/oder_chong.png" mode="" style="height: 150rpx;"></image>
<view class="itemJian"> <view class="itemJian">
<view class="orderTitle"> <view class="orderTitle">
<text>充值</text> <text>充值</text>
</view> </view>
<view class="orderPrice"> <!-- <view class="orderPrice" >
<text style="font-weight: bold;">{{orderContet.realMoney}}</text> <text style="font-weight: bold;">{{orderContet.realMoney}}</text>
</view> </view> -->
<br clear="both"> <br clear="both">
</view> </view>
<br clear="both"> <br clear="both">
@@ -78,11 +94,11 @@
<span style="color: #666;margin-right: 10rpx;float: left;">运费 : </span> <span style="color: #666;margin-right: 10rpx;float: left;">运费 : </span>
<span></span>{{orderContet.shippingPrice}} <span></span>{{orderContet.shippingPrice}}
</view> </view>
<view class="orderReal"> <!-- <view class="orderReal">
<span style="color: #666;margin-right: 10rpx;float: left;">优惠券 : </span> <span style="color: #666;margin-right: 10rpx;float: left;">优惠券 : </span>
<b v-if="orderContet.coupon.couponAmount" style="color: #dd3c0c;"><span>-</span>{{orderContet.coupon.couponAmount}}</b> <b v-if="orderContet.coupon.couponAmount" style="color: #dd3c0c;"><span>-</span>{{orderContet.coupon.couponAmount}}</b>
<b v-else style="color: #dd3c0c;"><span>-</span>0</b> <b v-else style="color: #dd3c0c;"><span>-</span>0</b>
</view> </view> -->
<view class="orderReal"> <view class="orderReal">
<span style="color: #666;margin-right: 10rpx;float: left;">实付款 : </span> <span style="color: #666;margin-right: 10rpx;float: left;">实付款 : </span>
<b style="color: #dd3c0c;"><span></span>{{orderContet.realPrice}}</b> <b style="color: #dd3c0c;"><span></span>{{orderContet.realPrice}}</b>
@@ -602,7 +618,7 @@
} else if (this.orderContet.orderStatus == 3) { } else if (this.orderContet.orderStatus == 3) {
this.titleStat = '已完成' this.titleStat = '已完成'
} }
if(this.orderContet.orderStatus >= 2 && this.orderContet.orderType == 'order'){ if(this.orderContet.orderStatus >= 2 && this.orderContet.orderType == 'order' && this.orderContet.expressOrders != null){
this.sheetList = this.orderContet.expressOrders this.sheetList = this.orderContet.expressOrders
}else{ }else{
this.sheetList = [] this.sheetList = []

View File

@@ -31,6 +31,7 @@
<view class="orderstatus" v-show="item.orderStatus == 3">交易成功</view> <view class="orderstatus" v-show="item.orderStatus == 3">交易成功</view>
<view class="orderstatus" v-show="item.orderStatus == 4">交易失败</view> <view class="orderstatus" v-show="item.orderStatus == 4">交易失败</view>
<view class="orderstatus" v-show="item.orderStatus == 5">过期</view> <view class="orderstatus" v-show="item.orderStatus == 5">过期</view>
<template v-if="item.orderType == 'order'">
<view v-for="(item1,index1) in item.productList" :key="index1" class="bookinfolist"> <view v-for="(item1,index1) in item.productList" :key="index1" class="bookinfolist">
<image class="feng" v-if="item1.product.productImages" :src="item1.product.productImages" mode="aspectFill"></image> <image class="feng" v-if="item1.product.productImages" :src="item1.product.productImages" mode="aspectFill"></image>
<!-- <view class="description" v-html="item.content"> <!-- <view class="description" v-html="item.content">
@@ -42,12 +43,37 @@
</span> </span>
</view> </view>
<view class="btns flexbox" style="margin-top:10rpx;padding-bottom: 72rpx;"> <view class="btns flexbox" style="margin-top:10rpx;padding-bottom: 72rpx;">
<span class="left" style="color: #C0C4CC;"></span> <view class="left" style="color: #C0C4CC;">
<view class="orderstatusbtn addcomment" v-if="item.orderStatus == 3 && item1.recordId == 0 &&
item.come == 0" @click.stop="pingji(item1.productId,item)">评价</view>
</view>
<span class="right flexbox opbtns" style="color: #C0C4CC;"> <span class="right flexbox opbtns" style="color: #C0C4CC;">
×{{item1.quantity}} ×{{item1.quantity}}
</span> </span>
</view> </view>
</view> </view>
</template>
<template v-if="item.orderType == 'point'">
<view class="flexbox" style="align-items: center;">
<view class="" style="height: 150rpx;">
<image src="../../static/icon/oder_chong.png" style="height: 150rpx; width: 150rpx;"></image>
</view>
<view class="">
<text style="font-size: 28rpx;">充值订单</text>
</view>
</view>
</template>
<template v-if="item.orderType == 'vip'">
<view class="flexbox" style="align-items: center;">
<view class="" style="height: 150rpx;">
<image :src="'../../static/icon/oder_vip.png'" style="height: 150rpx; width: 150rpx;"></image>
</view>
<view class="">
<text style="font-size: 28rpx;">VIP开通</text>
</view>
</view>
</template>
<view class="btns flexbox" style="margin-top:10rpx;"> <view class="btns flexbox" style="margin-top:10rpx;">
<span class="left" style="color: #C0C4CC;"></span> <span class="left" style="color: #C0C4CC;"></span>
<span class="right flexbox opbtns"> <span class="right flexbox opbtns">
@@ -60,11 +86,12 @@
<span class="right flexbox opbtns"> <span class="right flexbox opbtns">
<view class="orderstatusbtn" v-if="item.orderStatus == 0" @click.stop="canceOrder(item)">取消订单</view> <view class="orderstatusbtn" v-if="item.orderStatus == 0" @click.stop="canceOrder(item)">取消订单</view>
<view class="orderstatusbtn" v-if="item.orderStatus == 0" @click.stop="goPay(item)">付款</view> <view class="orderstatusbtn" v-if="item.orderStatus == 0" @click.stop="goPay(item)">付款</view>
<view class="orderstatusbtn" v-if="item.orderStatus == 1">催发货</view> <!-- <view class="orderstatusbtn alertDeliver" v-if="item.orderStatus == 1">催发货</view> -->
<view class="orderstatusbtn" v-if="item.orderStatus == 2" @click.stop="seeExpressDetail(item)">查看物流</view> <view class="orderstatusbtn" v-if="item.orderStatus == 2" @click.stop="seeExpressDetail(item)">查看物流</view>
<view class="orderstatusbtn" v-if="item.orderStatus == 2" @click.stop="OverOrder(item)">确认收货</view> <view class="orderstatusbtn" v-if="item.orderStatus == 2" @click.stop="OverOrder(item)">确认收货</view>
<view class="orderstatusbtn" v-if="item.orderStatus == 3">申请售后</view> <!-- <view class="orderstatusbtn" v-if="item.orderStatus == 3">申请售后</view> -->
<view class="orderstatusbtn" v-if="item.orderStatus == 3 && userRecordid == null" @click.stop="pingji(item.productId)">评价</view> <!-- -->
<!-- <view class="orderstatusbtn" v-if=" userRecordid == null && item.come == 0" @click.stop="pingji(item.id)">评价</view> -->
<!-- <view class="orderstatusbtn" v-if="item.orderStatus == 3 && userRecordid != null" @click.stop="showZhuiping(item.productId)">追评</view> --> <!-- <view class="orderstatusbtn" v-if="item.orderStatus == 3 && userRecordid != null" @click.stop="showZhuiping(item.productId)">追评</view> -->
</span> </span>
</view> </view>
@@ -516,9 +543,9 @@ import { data } from 'jquery';
}, },
closePingjia(){ closePingjia(){
this.pingjiaShow = false this.pingjiaShow = false
this.Pform.comment = '' // this.Pform.comment = ''
this.Pform.html = '' // this.Pform.html = ''
this.emoji = [] // this.emoji = []
}, },
// 提交评价 // 提交评价
submitPJ(){ submitPJ(){
@@ -527,7 +554,7 @@ import { data } from 'jquery';
let data={ let data={
'userid':this.userInfo.id, 'userid':this.userInfo.id,
'orderSn': this.orderSn, 'orderSn': this.orderSn,
'bookid': this.productID, 'productId': this.productID,
// 'content': this.Pform.html, // 'content': this.Pform.html,
'content': this.Pform.comment, 'content': this.Pform.comment,
'starLevel':this.Pform.star, 'starLevel':this.Pform.star,
@@ -536,7 +563,7 @@ import { data } from 'jquery';
} }
// console.log(data,'data') // console.log(data,'data')
$http.request({ $http.request({
url: "buy/record/UserRecordcomment", url: "buy/record/UserRecordComment",
method: "POST", // POST、GET、PUT、DELETE具体说明查看官方文档 method: "POST", // POST、GET、PUT、DELETE具体说明查看官方文档
data, data,
header: { //默认 无 说明:请求头 header: { //默认 无 说明:请求头
@@ -568,10 +595,11 @@ import { data } from 'jquery';
} }
}, },
// 添加评价 // 添加评价
pingji(id){ pingji(id,item){
console.log(id) console.log('评价实例',id, item)
this.pjType = '' this.pjType = ''
this.productID = id this.productID = id
this.orderSn = item.orderSn
this.pingjiaShow = true this.pingjiaShow = true
}, },
getStar(i){ getStar(i){
@@ -700,7 +728,8 @@ import { data } from 'jquery';
width:140rpx; width:140rpx;
text-align: center; text-align: center;
} }
.addcomment{color: #ffaa00; border-color: #ffaa00; margin: 0 ;}
.alertDeliver{ color: #55aa00; border-color: #55aa00;}
.flexbox{display: flex;} .flexbox{display: flex;}
.container{padding: 0 10px;} .container{padding: 0 10px;}

View File

@@ -52,7 +52,7 @@
商品总价 商品总价
<text>{{totalPrice}}</text> <text>{{totalPrice}}</text>
</view> </view>
<view class="yq_youhui" @click="youhuiShow = true"> <!-- <view class="yq_youhui" @click="youhuiShow = true">
<u-icon name="red-packet-fill" color="#e74141" size="18" class="yqLeft"></u-icon> <u-icon name="red-packet-fill" color="#e74141" size="18" class="yqLeft"></u-icon>
优惠券 优惠券
<u-icon name="arrow-right" color="#aaa" size="18" class="yqRight"></u-icon> <u-icon name="arrow-right" color="#aaa" size="18" class="yqRight"></u-icon>
@@ -60,7 +60,7 @@
<text class="dagnqian" v-else style="background-color: #999;">暂无优惠券</text> <text class="dagnqian" v-else style="background-color: #999;">暂无优惠券</text>
<text class="dagnqian" v-if="youhuiContent.id!=undefined"> <text class="dagnqian" v-if="youhuiContent.id!=undefined">
- {{youhuiContent.coupons.couponAmount}}</text> - {{youhuiContent.coupons.couponAmount}}</text>
</view> </view> -->
<view class="yq_yunfei"> <view class="yq_yunfei">
<u-icon name="car-fill" color="#e0880c" size="18" class="yqLeft"></u-icon> <u-icon name="car-fill" color="#e0880c" size="18" class="yqLeft"></u-icon>
运费 运费
@@ -411,6 +411,8 @@
'&type=0') '&type=0')
.then(res => { .then(res => {
this.youhuiList = res.userCoupons this.youhuiList = res.userCoupons
}).catch( e => {
console.log('获取优惠券报错',);
}); });
}, },
@@ -433,7 +435,7 @@
} }
prodCont.weight = res.shopProduct.weight prodCont.weight = res.shopProduct.weight
this.cartList.push(prodCont) this.cartList.push(prodCont)
this.getCourpe() // this.getCourpe()
this.getUserAddress() this.getUserAddress()
//this.getYunFei() //this.getYunFei()
// this.getYunFei() // this.getYunFei()
@@ -450,7 +452,7 @@
this.cartList.push(res.cartList[this.cartIDNum[i]]) this.cartList.push(res.cartList[this.cartIDNum[i]])
} }
console.log(this.cartList, '购物车列表') console.log(this.cartList, '购物车列表')
this.getCourpe() // this.getCourpe()
this.getUserAddress() this.getUserAddress()
}) })
@@ -505,11 +507,11 @@
allprice += price allprice += price
}) })
this.totalPrice = allprice this.totalPrice = allprice
if (this.youhuiContent.id != undefined) { // if (this.youhuiContent.id != undefined) {
this.realPrice = this.totalPrice - this.youhuiContent.coupons.couponAmount // this.realPrice = this.totalPrice - this.youhuiContent.coupons.couponAmount
} else { // } else {
this.realPrice = this.totalPrice this.realPrice = this.totalPrice
} // }
this.realPrice = this.realPrice + this.farePrice this.realPrice = this.realPrice + this.farePrice
}, },
// 超出阈值时 // 超出阈值时
@@ -528,7 +530,7 @@
this.updateCart(productItem) this.updateCart(productItem)
this.$nextTick(() => { this.$nextTick(() => {
this.getYunFei() this.getYunFei()
this.getCourpe() // this.getCourpe()
}) })
}, },

View File

@@ -51,7 +51,7 @@
商品总价 商品总价
<text>{{totalPrice}}</text> <text>{{totalPrice}}</text>
</view> </view>
<view class="yq_youhui" @click="youhuiShow = true"> <!-- <view class="yq_youhui" @click="youhuiShow = true">
<u-icon name="red-packet-fill" color="#e74141" size="18" class="yqLeft"></u-icon> <u-icon name="red-packet-fill" color="#e74141" size="18" class="yqLeft"></u-icon>
优惠券 优惠券
<u-icon name="arrow-right" color="#aaa" size="18" class="yqRight"></u-icon> <u-icon name="arrow-right" color="#aaa" size="18" class="yqRight"></u-icon>
@@ -61,7 +61,7 @@
style="background-color: #999;">暂无优惠券</text> style="background-color: #999;">暂无优惠券</text>
<text class="dagnqian" v-if="youhuiContent.id!=undefined"> <text class="dagnqian" v-if="youhuiContent.id!=undefined">
- {{youhuiContent.coupons.couponAmount}}</text> - {{youhuiContent.coupons.couponAmount}}</text>
</view> </view> -->
<view class="yq_yunfei"> <view class="yq_yunfei">
<u-icon name="car-fill" color="#e0880c" size="18" class="yqLeft"></u-icon> <u-icon name="car-fill" color="#e0880c" size="18" class="yqLeft"></u-icon>
运费 运费

View File

@@ -573,7 +573,7 @@
.get('book/clockInForum/getChatList', data) .get('book/clockInForum/getChatList', data)
.then(res => { .then(res => {
console.log(res, '当天我的打卡内容') console.log(res, '当天我的打卡内容')
if (res.code == 0 && res.chatList.length > 0) { if (res.code == 0 && res.chatList && res.chatList.length > 0) {
var arr = [] var arr = []
res.chatList.forEach((item1) => { res.chatList.forEach((item1) => {
var pjstr = '' var pjstr = ''

View File

@@ -335,6 +335,9 @@
import musicPlay from '@/components/music.vue' import musicPlay from '@/components/music.vue'
import repciptData from '@/static/json/repcipt.json' import repciptData from '@/static/json/repcipt.json'
import $http from '@/config/requestConfig.js'; import $http from '@/config/requestConfig.js';
// #ifdef APP-PLUS
import updata from '@/uni_modules/uni-upgrade-center-app/utils/check-update'
// #endif
import { import {
mapState, mapState,
mapMutations mapMutations
@@ -450,6 +453,9 @@
//页面显示 //页面显示
onShow() { onShow() {
// 隐藏原生的tabbar // 隐藏原生的tabbar
// #ifdef APP-PLUS
updata();
// #endif
// this.getUserInfo() // this.getUserInfo()
// this.tjProList = [] // this.tjProList = []
// uni.hideTabBar(); // uni.hideTabBar();

View File

@@ -246,19 +246,19 @@
}, },
// 优惠券 // 优惠券
getCourpe() { // getCourpe() {
this.$http // this.$http
.post('/book/couponhistory/appGetUserCenterCoupon?userId=' + this.userInfo.id + '&useStatus=' + this // .post('/book/couponhistory/appGetUserCenterCoupon?userId=' + this.userInfo.id + '&useStatus=' + this
.couponListTab) // .couponListTab)
.then(res => { // .then(res => {
// // this.cardList = res.couponVos
// this.cardList = res.couponVos // this.cardList = res.couponVos
this.cardList = res.couponVos // });
}); // },
},
// 切换优惠券 // 切换优惠券
couponTabCLi(e) { couponTabCLi(e) {
this.couponListTab = e // this.couponListTab = e
this.getCourpe() // this.getCourpe()
}, },