Commit b466f6fb by zhangxw

Merge branch 'SAAS+V4.56.0-0908' of http://192.168.3.233:8090/saas/mini-program/…

…points-mall into SAAS+V4.56.0-0908
2 parents a9333c14 7f889a9d
Showing 31 changed files with 75 additions and 1633 deletions
...@@ -63,5 +63,9 @@ module.exports = { ...@@ -63,5 +63,9 @@ module.exports = {
/**查询上传证件配置信息 */ /**查询上传证件配置信息 */
getConfig(data){ getConfig(data){
return api.fetch('scrm.api.shopmall.score.bank.get.document.config',data) return api.fetch('scrm.api.shopmall.score.bank.get.document.config',data)
},
/**开通积分钱包 */
openPointsWallet(data){
return api.fetch('scrm.api.shopmall.pointswallet.open',data)
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -5,79 +5,6 @@ Component({ ...@@ -5,79 +5,6 @@ Component({
nodes: { nodes: {
type: Array, type: Array,
value: [], value: [],
observer: function(newVal, oldVal) {
this.processNodes(newVal);
}
}
},
data: {
timeLineNodes: []
},
/**
* 组件内部方法
*/
methods: {
/**
* 预处理节点数据,添加样式类
* @param {Array} nodes - 节点数组
*/
processNodes(nodes) {
if (!nodes || !Array.isArray(nodes)) return;
const timeLineNodes = nodes.map(node => {
return {
...node,
dotClass: this.getNodeDotClass(node),
contentClass: this.getNodeContentClass(node)
};
});
this.setData({
timeLineNodes
});
},
/**
* 获取节点点的样式类
* @param {Object} item - 时间轴节点项
* @returns {String} 样式类名
*/
getNodeDotClass(item) {
// 直接根据节点属性返回对应的样式类
if (item.active) {
return 'timeline-node__dot timeline-node__dot--active';
} else if (item.type === 'special') {
return 'timeline-node__dot timeline-node__dot--spacial';
} else if (item.small) {
return 'timeline-node__dot timeline-node__dot--small';
} else {
return 'timeline-node__dot';
} }
}, },
/**
* 获取节点内容的样式类
* @param {Object} item - 时间轴节点项
* @returns {String} 样式类名
*/
getNodeContentClass(item) {
// 非激活状态的内容使用灰色
if (item.type === 'special') {
return 'timeline-node__content--special';
}else if(item.active){
return 'active';
}
},
/**
* 判断是否显示节点点
* @param {Object} item - 时间轴节点项
* @returns {Boolean} 是否显示节点点
*/
shouldShowNodeDot(item) {
// 修复逻辑:所有节点默认都应该显示点
// 只有特定情况下才不显示
return true;
}
}
}); });
\ No newline at end of file \ No newline at end of file
...@@ -32,19 +32,40 @@ ...@@ -32,19 +32,40 @@
z-index: 1; z-index: 1;
/* 激活状态的节点点 */ /* 激活状态的节点点 */
&.timeline-node__dot--special-small-active, //组合容错
&.timeline-node__dot--special-active-small,
&.timeline-node__dot--small-active-special,
&.timeline-node__dot--small-special-active,
&.timeline-node__dot--active-small-special,
&.timeline-node__dot--active-special-small,
&.timeline-node__dot--special-active,
&.timeline-node__dot--active-special,
&.timeline-node__dot--special-normal-active,
&.timeline-node__dot--special-active-normal,
&.timeline-node__dot--small-active,
&.timeline-node__dot--active-small,
&.timeline-node__dot--normal-active,
&.timeline-node__dot--active { &.timeline-node__dot--active {
background-color: var(--btnColor); background-color: var(--btnColor);
} }
/* 小型节点点 */ /* 小型节点点 */
&.timeline-node__dot--special-small-active, //组合容错
&.timeline-node__dot--special-active-small,
&.timeline-node__dot--small-active-special,
&.timeline-node__dot--small-special-active,
&.timeline-node__dot--active-small-special,
&.timeline-node__dot--active-special-small,
&.timeline-node__dot--special-active,
&.timeline-node__dot--active-special,
&.timeline-node__dot--special-normal-active,
&.timeline-node__dot--special-active-normal,
&.timeline-node__dot--small-active,
&.timeline-node__dot--active-small,
&.timeline-node__dot--special,
&.timeline-node__dot--small { &.timeline-node__dot--small {
width: 12rpx; width: 12rpx;
height: 12rpx; height: 12rpx;
} }
/* 地址节点点 */
&.timeline-node__dot--spacial {
width: 12rpx;
height: 12rpx;
}
} }
/* 时间轴连接线 */ /* 时间轴连接线 */
...@@ -64,7 +85,13 @@ ...@@ -64,7 +85,13 @@
color: #b1b1b3; color: #b1b1b3;
} }
.timeline-node__content--special { .timeline-node__content--special,
.timeline-node__content--special-normal,
.timeline-node__content--special-normal-active,
.timeline-node__content--special-small,
.timeline-node__content--special-active,
.timeline-node__content--special-small-active,
.timeline-node__content--special-active-small{
.timeline-node__title, .timeline-node__title,
.timeline-node__tip { .timeline-node__tip {
font-weight: 400; font-weight: 400;
...@@ -109,7 +136,9 @@ ...@@ -109,7 +136,9 @@
line-height: 1.5; line-height: 1.5;
} }
.active { .timeline-node__content--active,
.timeline-node__content--active-small,
.timeline-node__content--active-special {
.timeline-node__title { .timeline-node__title {
color: #282829; color: #282829;
} }
......
<!-- 时间轴组件 --> <!-- 时间轴组件 -->
<view class="timeline-container"> <view class="timeline-container">
<view wx:for="{{timeLineNodes}}" wx:key="index" class="timeline-node"> <view wx:for="{{nodes}}" wx:key="index" class="timeline-node">
<!-- 时间轴节点 --> <!-- 时间轴节点 -->
<view class="timeline-node__dot-wrapper"> <view class="timeline-node__dot-wrapper">
<!-- 使用预处理的样式类 --> <!-- 使用预处理的样式类 -->
<view class="{{item.dotClass}}"></view> <view class="timeline-node__dot timeline-node__dot--{{item.type}}"></view>
</view> </view>
<!-- 时间轴连接线 --> <!-- 时间轴连接线 -->
<view wx:if="{{index !== timeLineNodes.length - 1}}" class="timeline-node__line"></view> <view wx:if="{{index !== nodes.length - 1}}" class="timeline-node__line"></view>
<!-- 时间轴内容 --> <!-- 时间轴内容 -->
<view class="timeline-node__content {{item.contentClass}} "> <view class="timeline-node__content timeline-node__content--{{item.type}} ">
<view class="timeline-node__header"> <view class="timeline-node__header">
<view wx:if="{{item.title}}" class="timeline-node__title">{{item.title}}</view> <view wx:if="{{item.title}}" class="timeline-node__title">{{item.title}}</view>
<view wx:if="{{item.time}}" class="timeline-node__time">{{item.time}}</view> <view wx:if="{{item.time}}" class="timeline-node__time">{{item.time}}</view>
......
...@@ -7,6 +7,7 @@ Page({ ...@@ -7,6 +7,7 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
isFlag:true,
scoreSummary: { scoreSummary: {
currentScore: 345333.00, //当前积分 currentScore: 345333.00, //当前积分
bankCardSize: 4, bankCardSize: 4,
...@@ -38,11 +39,33 @@ Page({ ...@@ -38,11 +39,33 @@ Page({
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { async onLoad(options) {
console.log(wx.p) console.log(wx.p)
await this.openPointsWallet()
this.searchScoreSummaryData() this.searchScoreSummaryData()
this.getScoreProfitListData() this.getScoreProfitListData()
}, },
openPointsWallet(){
const {
staffPhone,
channelSource
} = wx.p.storage.get('userInfo');
wx.p.api.withdrawalApi.openPointsWallet({
phone:staffPhone,
source:channelSource //1.阳光激励 2.续保用户 3.管理层
}).then(res => {
if (res.code == 0) {
this.setData({
open: res.data,
isFlag:true
})
}
}).catch((err) => {
wx.p.wxApi.showToast(JSON.stringify(err))
})
},
jump() { jump() {
wx.p.router.go('/packageIndex/pages/integral/withdrawalNote/withdrawalNote') wx.p.router.go('/packageIndex/pages/integral/withdrawalNote/withdrawalNote')
}, },
......
<!--packageIndex/pages/integral/index/index.wxml--> <!--packageIndex/pages/integral/index/index.wxml-->
<!--积分中心 --> <!--积分中心 -->
<view class="integral-container {{!open?'bgF':''}}"> <block wx:if="{{isFlag}}">
<view class="integral-container {{!open?'bgF':''}}">
<have-no-ope wx:if="{{open}}" scoreSummary="{{scoreSummary}}"> <have-no-ope wx:if="{{open}}" scoreSummary="{{scoreSummary}}">
<profit-list list="{{scoreList}}"></profit-list> <profit-list list="{{scoreList}}"></profit-list>
</have-no-ope> </have-no-ope>
...@@ -18,3 +19,4 @@ ...@@ -18,3 +19,4 @@
</view> </view>
</view> </view>
</block>
...@@ -17,7 +17,8 @@ Page({ ...@@ -17,7 +17,8 @@ Page({
baseIncome: 8989 baseIncome: 8989
}, },
confirmButtons: [{ confirmButtons: [{
text: '取消' text: '取消',
extClass: 'btn_cancel'
}, { }, {
text: '确认', text: '确认',
extClass: 'btn_primary' extClass: 'btn_primary'
......
...@@ -17,16 +17,13 @@ Component({ ...@@ -17,16 +17,13 @@ Component({
time: "2021-02-02 10:30:30", time: "2021-02-02 10:30:30",
tips: ["这是主要内容部分"], tips: ["这是主要内容部分"],
title: "已发货", title: "已发货",
type: 'normal', type: 'active',// 高亮显示
active: true // 高亮显示
}, },
{ {
time: "2021-02-02 10:30:30", time: "2021-02-02 10:30:30",
tips: ["这是主要内容部分"], tips: ["这是主要内容部分"],
title:'运输中', title:'运输中',
type: 'normal', type: 'small',// 小点显示
small: true, // 小点显示
active:false
}, },
{ {
time: "2021-02-02 10:30:30", time: "2021-02-02 10:30:30",
...@@ -36,8 +33,6 @@ Component({ ...@@ -36,8 +33,6 @@ Component({
], ],
title:'运输中', title:'运输中',
type: 'normal', type: 'normal',
small: false, // 小点显示
active:false
}, },
{ {
title:'收货地址', title:'收货地址',
......
import { ORDER_LIST } from "~/constants/mine.js";
Component({
properties: {
padding_bottom: {
type: Number,
value: 0,
},
// tab: {
// type: Array,
// value: [],
// },
tabIndex: {
type: Number,
value: 0,
},
keyword: {
type: String,
value: "",
},
},
data: {
tab: Object.freeze(ORDER_LIST.map((item) => item.text)),
},
methods: {
navbarReady(e) {
wx.p.wxApi.getViewInfo(".tab", (res) => {
console.log("🚀 ~ navbarReady ~ res:", e)
this.setData({
padding_bottom: e.detail.height,
margin_top: e.detail.height + res.height,
});
});
},
back() {
this.triggerEvent("back");
},
changeTab(e) {
this.triggerEvent("changeTab", e.detail);
},
search(e) {
this.triggerEvent("search", e.detail);
},
clear() {
this.triggerEvent("clear");
},
input(e) {
this.triggerEvent("input", e.detail);
},
blur(e) {
this.triggerEvent("blur", e.detail);
},
},
});
{
"component": true,
"usingComponents": {
"tab": "/components/Tab/Tab"
}
}
\ No newline at end of file \ No newline at end of file
/* packageMine/pages/order/index/index.wxss */
.sticky-box {
background-color: #F9F7F7;
}
.tab {
position: fixed;
top: 0;
left: 0;
width: 100%;
background-color: #F9F7F7;
z-index: 2;
transition: all 0.4s;
}
.navigation {
width: 100%;
height: 100%;
position: relative;
}
.navigation .back {
width: 64rpx;
height: 64rpx;
background: rgba(255, 255, 255, 0.5);
border-radius: var(--margin);
position: absolute;
left: 20rpx;
}
.navigation .back .icon {
width: 36rpx;
height: 36rpx;
}
.search-box {
position: absolute;
left: 80rpx;
width: 420rpx;
height: 72rpx;
background: #F9F7F7;
border-radius: 36rpx;
display: flex;
align-items: center;
box-sizing: border-box;
padding: 0 16rpx 0 var(--margin);
}
.search-box .icon {
width: 40rpx;
height: 100%;
}
.search-box .input {
width: calc(100% - 98rpx);
}
.search-box .clear-box {
width: 58rpx;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.search-box .clear-box .clear {
width: 32rpx;
height: 32rpx;
opacity: 0.7;
}
.placeholder-class {
color: #c8c9cc;
}
.layout {
padding: 24rpx var(--margin) 40rpx;
}
.layout .item {
position: relative;
padding-left: 24rpx;
margin-bottom: 20rpx;
background-color: #fff;
box-sizing: border-box;
border-radius: var(--borderRadius);
display: flex;
flex-direction: column;
}
.layout .item .top {
height: 82rpx;
display: flex;
align-items: center;
justify-content: space-between;
padding-right: 24rpx;
position: relative;
}
.delivery-icon {
position: absolute;
width: 106rpx;
height: 80rpx;
left: 366rpx;
bottom: 0;
}
.layout .item .top .name {
width: 366rpx;
}
.layout .item .content-top {
border-top: 2rpx solid #eff0f2;
}
.layout .item .content {
border-top: 2rpx solid #eff0f2;
border-bottom: 2rpx solid #eff0f2;
}
.content-bottom {
border-bottom: 2rpx solid #eff0f2;
}
.layout .item .goods {
height: 208rpx;
padding: 24rpx 24rpx 24rpx 0;
box-sizing: border-box;
display: flex;
}
.addTo {
border-bottom: 2rpx solid #eff0f2;
}
.layout .item .goods .btn {
display: flex;
align-items: center;
justify-content: center;
width: 124rpx;
height: 46rpx;
border-radius: 25rpx;
border: 2rpx solid #b1b1b3;
font-size: 24rpx;
margin-left: 12rpx;
color: #656566;
position: absolute;
bottom: 0;
right: 0;
}
.layout .item .goods .confirm {
border-color: var(--btnColor);
color: var(--btnColor);
font-weight: 500;
}
.layout .item .icon {
width: 160rpx;
height: 160rpx;
margin-right: 20rpx;
border-radius: 8rpx;
overflow: hidden;
}
.background-X {
background-color: rgb(244, 244, 244);
}
.layout .item .info {
width: calc(100% - 180rpx);
height: 160rpx;
display: flex;
flex-direction: column;
position: relative;
}
.layout .item .info .info-top,
.layout .item .info .info-bottom {
display: flex;
align-items: center;
justify-content: space-between;
}
.layout .item .info .info-top .price {
color: var(--btnColor);
font-size: 36rpx;
letter-spacing: -2rpx;
font-weight: 500;
flex-shrink: 0;
}
.layout .item .info .info-top .price .unit {
font-size: 24rpx;
}
.layout .item .info .info-bottom {
margin-top: 4rpx;
font-size: 24rpx;
color: #707071;
}
.layout .item .info .info-bottom .number {
margin-left: auto;
}
.layout .item .info .info-bottom .specification {
color: #b1b1b3;
}
.layout .item .status {
color: #b1b1b3;
font-size: 24rpx;
color: #282829;
}
.layout .item .bottom {
height: 80rpx;
display: flex;
align-items: center;
font-size: 24rpx;
color: #656566;
}
.layout .item .bottom .price {
color: var(--btnColor);
font-weight: 500;
}
.layout .item .btn-box {
position: absolute;
right: 24rpx;
bottom: 16rpx;
display: flex;
align-items: center;
justify-content: flex-end;
}
.layout .item .btn-box .btn {
display: flex;
align-items: center;
justify-content: center;
width: 124rpx;
height: 46rpx;
border-radius: 25rpx;
border: 2rpx solid #b1b1b3;
font-size: 24rpx;
margin-left: 12rpx;
color: #656566;
}
.layout .item .btn-box .pay {
background-color: var(--btnColor);
color: #fff;
border-color: var(--btnColor);
}
.layout .item .btn-box .empty{
color: var(--btnColor);
background-color: #fff;
}
.layout .item .btn-box .confirm {
border-color: var(--btnColor);
color: var(--btnColor);
font-weight: 500;
}
.userProfile {
background-color: #fff;
font-size: 24rpx;
margin: 0;
padding: 0;
font-weight: 500;
line-height: 46rpx;
}
.layout .coupon-item {
height: 202rpx;
background: #fefffe;
border-radius: 8rpx;
margin-bottom: 36rpx;
padding: 20rpx;
box-sizing: border-box;
position: relative;
}
.layout .coupon-item .orderPrices {
position: absolute;
color: var(--btnColor);
font-size: 48rpx;
right: 32rpx;
}
.layout .coupon-item .orderPrices text {
font-size: 36rpx;
}
.layout .coupon-item .icon {
width: 162rpx;
height: 162rpx;
margin-right: 20rpx;
}
.layout .coupon-item .info {
width: 360rpx;
height: 100%;
color: #b1b1b3;
font-size: 24rpx;
}
.layout .coupon-item .info .name {
font-size: 28rpx;
font-weight: 500;
color: #282829;
}
.layout .coupon-item .info .order-btn {
width: 138rpx;
height: 48rpx;
background: var(--btnColor);
border-radius: 24rpx;
margin-top: 40rpx;
color: #ffffff;
font-size: 24rpx;
}
.imageHeight {
height: 99rpx !important;
}
.imageStraight {
width: 92rpx;
height: 92rpx;
border-radius: 50%;
}
\ No newline at end of file \ No newline at end of file
<view class="sticky-box">
<navigation-bar custom bindnavbarReady="navbarReady" page-title="我的订单">
<view class="navigation">
<view class="back text-center y-center" bindtap="back">
<glsx-image webp src="mall/back.png" class="icon"></glsx-image>
</view>
<view class="search-box y-center">
<view class="icon text-center">
<icon type="search" size="16"></icon>
</view>
<input type="text" placeholder="搜索" value="{{keyword}}" class="input" confirm-type="search" bindconfirm="search" bindinput="input" bindblur="blur" />
<block wx:if="{{keyword}}">
<view class="clear-box" bindtap="clear">
<view class="sprite-icon icon-clear"></view>
</view>
</block>
</view>
</view>
</navigation-bar>
<view class="tab" style="top:{{padding_bottom }}px;">
<tab tab="{{tab}}" bindclick="changeTab" index="{{tabIndex}}"></tab>
</view>
</view>
<block wx:if="{{margin_top}}">
<view class="layout isFullSucreen" style="margin-top:{{margin_top}}px;">
</view>
</block>
\ No newline at end of file \ No newline at end of file
// packageMine/pages/order/components/OrderItem/OrderItem.js
Component({
/**
* 组件的属性列表
*/
properties: {
item: Object
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
/* packageMine/pages/order/index/index.wxss */
.sticky-box {
background-color: #F9F7F7;
}
.tab {
position: fixed;
top: 0;
left: 0;
width: 100%;
background-color: #F9F7F7;
z-index: 2;
transition: all 0.4s;
}
.navigation {
width: 100%;
height: 100%;
position: relative;
}
.navigation .back {
width: 64rpx;
height: 64rpx;
background: rgba(255, 255, 255, 0.5);
border-radius: var(--margin);
position: absolute;
left: 20rpx;
}
.navigation .back .icon {
width: 36rpx;
height: 36rpx;
}
.search-box {
position: absolute;
left: 80rpx;
width: 420rpx;
height: 72rpx;
background: #F9F7F7;
border-radius: 36rpx;
display: flex;
align-items: center;
box-sizing: border-box;
padding: 0 16rpx 0 var(--margin);
}
.search-box .icon {
width: 40rpx;
height: 100%;
}
.search-box .input {
width: calc(100% - 98rpx);
}
.search-box .clear-box {
width: 58rpx;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.search-box .clear-box .clear {
width: 32rpx;
height: 32rpx;
opacity: 0.7;
}
.placeholder-class {
color: #c8c9cc;
}
.layout {
padding: 24rpx var(--margin) 40rpx;
}
.layout .item {
position: relative;
padding-left: 24rpx;
margin-bottom: 20rpx;
background-color: #fff;
box-sizing: border-box;
border-radius: var(--borderRadius);
display: flex;
flex-direction: column;
}
.layout .item .top {
height: 82rpx;
display: flex;
align-items: center;
justify-content: space-between;
padding-right: 24rpx;
position: relative;
}
.delivery-icon {
position: absolute;
width: 106rpx;
height: 80rpx;
left: 366rpx;
bottom: 0;
}
.layout .item .top .name {
width: 366rpx;
}
.layout .item .content-top {
border-top: 2rpx solid #eff0f2;
}
.layout .item .content {
border-top: 2rpx solid #eff0f2;
border-bottom: 2rpx solid #eff0f2;
}
.content-bottom {
border-bottom: 2rpx solid #eff0f2;
}
.layout .item .goods {
height: 208rpx;
padding: 24rpx 24rpx 24rpx 0;
box-sizing: border-box;
display: flex;
}
.addTo {
border-bottom: 2rpx solid #eff0f2;
}
.layout .item .goods .btn {
display: flex;
align-items: center;
justify-content: center;
width: 124rpx;
height: 46rpx;
border-radius: 25rpx;
border: 2rpx solid #b1b1b3;
font-size: 24rpx;
margin-left: 12rpx;
color: #656566;
position: absolute;
bottom: 0;
right: 0;
}
.layout .item .goods .confirm {
border-color: var(--btnColor);
color: var(--btnColor);
font-weight: 500;
}
.layout .item .icon {
width: 160rpx;
height: 160rpx;
margin-right: 20rpx;
border-radius: 8rpx;
overflow: hidden;
}
.background-X {
background-color: rgb(244, 244, 244);
}
.layout .item .info {
width: calc(100% - 180rpx);
height: 160rpx;
display: flex;
flex-direction: column;
position: relative;
}
.layout .item .info .info-top,
.layout .item .info .info-bottom {
display: flex;
align-items: center;
justify-content: space-between;
}
.layout .item .info .info-top .price {
color: var(--btnColor);
font-size: 36rpx;
letter-spacing: -2rpx;
font-weight: 500;
flex-shrink: 0;
}
.layout .item .info .info-top .price .unit {
font-size: 24rpx;
}
.layout .item .info .info-bottom {
margin-top: 4rpx;
font-size: 24rpx;
color: #707071;
}
.layout .item .info .info-bottom .number {
margin-left: auto;
}
.layout .item .info .info-bottom .specification {
color: #b1b1b3;
}
.layout .item .status {
color: #b1b1b3;
font-size: 24rpx;
color: #282829;
}
.layout .item .bottom {
height: 80rpx;
display: flex;
align-items: center;
font-size: 24rpx;
color: #656566;
}
.layout .item .bottom .price {
color: var(--btnColor);
font-weight: 500;
}
.layout .item .btn-box {
position: absolute;
right: 24rpx;
bottom: 16rpx;
display: flex;
align-items: center;
justify-content: flex-end;
}
.layout .item .btn-box .btn {
display: flex;
align-items: center;
justify-content: center;
width: 124rpx;
height: 46rpx;
border-radius: 25rpx;
border: 2rpx solid #b1b1b3;
font-size: 24rpx;
margin-left: 12rpx;
color: #656566;
}
.layout .item .btn-box .pay {
background-color: var(--btnColor);
color: #fff;
border-color: var(--btnColor);
}
.layout .item .btn-box .empty{
color: var(--btnColor);
background-color: #fff;
}
.layout .item .btn-box .confirm {
border-color: var(--btnColor);
color: var(--btnColor);
font-weight: 500;
}
.userProfile {
background-color: #fff;
font-size: 24rpx;
margin: 0;
padding: 0;
font-weight: 500;
line-height: 46rpx;
}
.layout .coupon-item {
height: 202rpx;
background: #fefffe;
border-radius: 8rpx;
margin-bottom: 36rpx;
padding: 20rpx;
box-sizing: border-box;
position: relative;
}
.layout .coupon-item .orderPrices {
position: absolute;
color: var(--btnColor);
font-size: 48rpx;
right: 32rpx;
}
.layout .coupon-item .orderPrices text {
font-size: 36rpx;
}
.layout .coupon-item .icon {
width: 162rpx;
height: 162rpx;
margin-right: 20rpx;
}
.layout .coupon-item .info {
width: 360rpx;
height: 100%;
color: #b1b1b3;
font-size: 24rpx;
}
.layout .coupon-item .info .name {
font-size: 28rpx;
font-weight: 500;
color: #282829;
}
.layout .coupon-item .info .order-btn {
width: 138rpx;
height: 48rpx;
background: var(--btnColor);
border-radius: 24rpx;
margin-top: 40rpx;
color: #ffffff;
font-size: 24rpx;
}
.imageHeight {
height: 99rpx !important;
}
.imageStraight {
width: 92rpx;
height: 92rpx;
border-radius: 50%;
}
\ No newline at end of file \ No newline at end of file
<view class="item" catchtap="jump" data-item="{{item}}">
<view class="top">
<view class="delivery-icon" wx:if="{{item.orderSource != 5}}">
<glsx-image webp src="mine/order/deliveryType-{{item.deliveryType}}.png">
</glsx-image>
</view>
<view class="name text-hide">{{item.merchantName}}</view>
<!-- 订单状态 orderStatus(1:待付款;2:已支付;3:已关闭;4:已发货;5:已收货;6:待发货;7:待安装;8:已安装;9:售后中;10:售后完成)
售后订单状态 afterSaleStatus(1:待审核;2:审核通过;3:审核不通过;4:待确认收到退货;5:退款中;6:已退款;7:退款失败)
-->
<view class="status">{{item.afterSaleStatus ? afterSaleStatus[item.afterSaleStatus]
:statusEnum[item.orderStatus]}}</view>
</view>
<view class="content-top {{item.orderStatus == 5 || item.orderStatus == 8?'':'content-bottom'}}">
<block wx:for="{{item.orderGoods}}" wx:for-item="i" wx:for-index="ind" wx:key="ind">
<view class="goods {{item.orderStatus == 5 || item.orderStatus == 8?'addTo':''}}">
<view class="icon">
<image webp wx:if="{{item.orderSource == 5}}" src="{{item.activityBigImg}}"></image>
<image webp wx:else src="{{i.goodsImage}}"></image>
</view>
<view class="info">
<view class="info-top">
<view class="name text-hide">{{item.orderSource == 5 ? item.activityName: i.goodsName}}</view>
<view class="price">
<text class="unit">¥</text>
{{item.orderSource == 5 ? item.payPrice: (i.activityPrice ||i.retailPrice)}}
</view>
</view>
<view class="info-bottom">
<block wx:if="{{i.specificationData}}">
<view class="specification">{{i.specificationData}}</view>
</block>
<view class="number">
x{{item.orderSource == 5 ? 1: i.goodsNumber}}
</view>
</view>
<!-- !hasUserInfo -->
<view wx:if="{{item.orderGoods.length > 1 && !hasUserInfo}}">
<block wx:if="{{item.orderStatus == 5 || item.orderStatus == 8}}">
<block wx:if="{{item.evaluatedFlag == 'Y'}}">
<view class="btn confirm" catchtap="lookevaluate" data-item="{{item}}">查看评价</view>
</block>
<block wx:else>
<button catchtap="getUserProfile" wx:if="{{!hasUserInfo}}" class="btn confirm userProfile" data-item="{{item}}"> 立即评价 </button>
<view class="btn confirm" catchtap="evaluate" wx:else data-item="{{item}}">立即评价</view>
</block>
</block>
</view>
</view>
</view>
</block>
</view>
<view class="bottom" wx:if="{{item.orderSource == 5}}">
共1件商品,实付款<text class="price">¥{{item.payPrice}}</text>
</view>
<view class="bottom" wx:else>
共{{item.goodsNumber}}件商品,实付款<text class="price">¥{{item.payPrice}}</text>
</view>
<!-- 1:待付款;2:已支付;3:已关闭;4:已发货;5:已收货;6:待发货;7:待安装;8:已安装;9:售后中;10:售后完成 -->
<!-- 售后状态 1:待审核;2:审核通过;3:审核不通过;4:待确认收到退货;5:退款中;6:已退款;7:退款失败 -->
<block wx:if="{{item.orderStatus != 3}}">
<view class="btn-box">
<block wx:if="{{!item.afterSaleStatus}}">
<block wx:if="{{item.orderStatus == 1}}">
<view class="btn pay" catchtap="cancelPay" data-order-code="{{item.orderCode}}">取消付款</view>
<block wx:if="{{item.orderSource != 4}}">
<view class="btn pay" catchtap="pay" data-order-code="{{item.orderCode}}">去支付</view>
</block>
</block>
<block wx:if="{{item.orderSource==5 && (item.orderStatus == 2 || item.orderStatus == 7)}}">
<view class="btn pay" data-item="{{item}}" bind:tap="toGoldDetail">查看详情</view>
</block>
<block wx:elif="{{item.orderStatus > 2 && item.orderStatus < 9}}">
<!-- deliveryType 结算方式(1:到店核销,2:快递发货) -->
<block wx:if="{{item.deliveryType == 2 && item.orderStatus == 4}}">
<view class="btn confirm" catchtap="confirmReceipt" data-order-code="{{item.orderCode}}">确认收货
</view>
</block>
<block wx:if="{{item.payPrice > 0 && item.orderSource != 4}}">
<view class="btn" catchtap="afterSale" data-item="{{item}}" wx:if="{{!(item.relatedUserCouponStatus == 2 || item.relatedUserCouponStatus == 3)}}">申请售后
</view>
</block>
</block>
<!-- !hasUserInfo -->
<view wx:if="{{item.orderGoods.length == 1 && !hasUserInfo}}">
<block wx:if="{{item.orderStatus == 5 || item.orderStatus == 8}}">
<block wx:if="{{item.evaluatedFlag == 'Y'}}">
<view class="btn confirm" catchtap="lookevaluate" data-item="{{item}}">查看评价</view>
</block>
<block wx:else>
<button catchtap="getUserProfile" wx:if="{{!hasUserInfo}}" class="btn confirm userProfile" data-item="{{item}}"> 立即评价 </button>
<view class="btn confirm" catchtap="evaluate" wx:else data-item="{{item}}">立即评价</view>
</block>
</block>
</view>
</block>
<block wx:else>
<block wx:if="{{item.afterSaleStatus == 1}}">
<view class="btn pay" catchtap="cancelOrder" data-order-code="{{item.orderCode}}">取消售后</view>
</block>
<view class="btn" data-item="{{item}}" catchtap="afterSaleDetail">售后详情</view>
</block>
</view>
</block>
</view>
\ No newline at end of file \ No newline at end of file
Component({
properties: {
list: {
type: Array,
value: []
},
listFlag: {
type: Boolean,
value: false
},
nothing: {
type: Boolean,
value: false
},
margin_top: {
type: Number,
value: 0
},
statusEnum: {
type: Object,
value: {}
},
afterSaleStatus: {
type: Object,
value: {}
},
cardStatus: {
type: Object,
value: {}
},
reStatus: {
type: Object,
value: {}
},
hasUserInfo: {
type: Boolean,
value: true
}
},
methods: {
// Type One Events
onJump(e) {
this.triggerEvent('jump', e.detail);
},
onCancelPay(e) {
this.triggerEvent('cancelPay', e.detail);
},
onPay(e) {
this.triggerEvent('pay', e.detail);
},
onToGoldDetail(e) {
this.triggerEvent('toGoldDetail', e.detail);
},
onConfirmReceipt(e) {
this.triggerEvent('confirmReceipt', e.detail);
},
onAfterSale(e) {
this.triggerEvent('afterSale', e.detail);
},
onLookevaluate(e) {
this.triggerEvent('lookevaluate', e.detail);
},
onGetUserProfile(e) {
this.triggerEvent('getUserProfile', e.detail);
},
onEvaluate(e) {
this.triggerEvent('evaluate', e.detail);
},
onCancelOrder(e) {
this.triggerEvent('cancelOrder', e.detail);
},
onAfterSaleDetail(e) {
this.triggerEvent('afterSaleDetail', e.detail);
},
// Type Two/Three Events
onToSaleDetailPage(e) {
this.triggerEvent('toSaleDetailPage', e.detail);
},
onToSaleApplyPage(e) {
this.triggerEvent('toSaleApplyPage', e.detail);
},
onToComfirmPage(e) {
this.triggerEvent('toComfirmPage', e.detail);
},
onToCheckCard(e) {
this.triggerEvent('toCheckCard', e.detail);
},
onToSaleApplyPackage(e) {
this.triggerEvent('toSaleApplyPackage', e.detail);
},
onToPackageDetail(e) {
this.triggerEvent('toPackageDetail', e.detail);
},
onToCheckPackage(e) {
this.triggerEvent('toCheckPackage', e.detail);
},
// Type Four Events
onBoutiqueJump(e) {
this.triggerEvent('boutiqueJump', e.detail);
},
// Type Five Events
onJumpPlatformShop(e) {
this.triggerEvent('jumpPlatformShop', e.detail);
},
onCancelPlatformOrder(e) {
this.triggerEvent('cancelPlatformOrder', e.detail);
},
onToPayOrder(e) {
this.triggerEvent('toPayOrder', e.detail);
}
}
});
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {
"order-type-one": "/packageMine/pages/order/components/OrderTypeOne/OrderTypeOne",
"order-type-two-three": "/packageMine/pages/order/components/OrderTypeTwoThree/OrderTypeTwoThree",
"order-type-four": "/packageMine/pages/order/components/OrderTypeFour/OrderTypeFour",
"order-type-five": "/packageMine/pages/order/components/OrderTypeFive/OrderTypeFive"
}
}
\ No newline at end of file \ No newline at end of file
<block wx:if="{{margin_top}}">
<view class="layout isFullSucreen" style="margin-top:{{margin_top}}px;">
<block wx:if="{{listFlag}}">
<block wx:if="{{list.length}}">
<block wx:for="{{list}}" wx:key="index">
<!-- orderClassify 订单类型(1.订单;2:会员权益订单;3:门店服务订单;4:精品升级订单;5:平台商城订单) -->
<block wx:if="{{item.orderClassify == 1}}">
<order-type-one
item="{{item}}"
statusEnum="{{statusEnum}}"
afterSaleStatus="{{afterSaleStatus}}"
hasUserInfo="{{hasUserInfo}}"
bind:jump="onJump"
bind:cancelPay="onCancelPay"
bind:pay="onPay"
bind:toGoldDetail="onToGoldDetail"
bind:confirmReceipt="onConfirmReceipt"
bind:afterSale="onAfterSale"
bind:lookevaluate="onLookevaluate"
bind:getUserProfile="onGetUserProfile"
bind:evaluate="onEvaluate"
bind:cancelOrder="onCancelOrder"
bind:afterSaleDetail="onAfterSaleDetail"
/>
</block>
<block wx:if="{{item.orderClassify == 2 || item.orderClassify == 3}}">
<order-type-two-three
item="{{item}}"
cardStatus="{{cardStatus}}"
reStatus="{{reStatus}}"
bind:toSaleDetailPage="onToSaleDetailPage"
bind:toSaleApplyPage="onToSaleApplyPage"
bind:toComfirmPage="onToComfirmPage"
bind:toCheckCard="onToCheckCard"
bind:toSaleApplyPackage="onToSaleApplyPackage"
bind:toPackageDetail="onToPackageDetail"
bind:toCheckPackage="onToCheckPackage"
/>
</block>
<block wx:if="{{item.orderClassify == 4}}">
<order-type-four
item="{{item}}"
hasUserInfo="{{hasUserInfo}}"
bind:boutiqueJump="onBoutiqueJump"
/>
</block>
<block wx:if="{{item.orderClassify == 5}}">
<order-type-five
item="{{item}}"
statusEnum="{{statusEnum}}"
afterSaleStatus="{{afterSaleStatus}}"
bind:jumpPlatformShop="onJumpPlatformShop"
bind:cancelPlatformOrder="onCancelPlatformOrder"
bind:toPayOrder="onToPayOrder"
/>
</block>
</block>
<block wx:if="{{nothing}}">
<view class="list-nothing to-bottom"></view>
</block>
</block>
<block wx:else>
<view class="list-nothing">
暂无相关内容
</view>
</block>
</block>
</view>
</block>
\ No newline at end of file \ No newline at end of file
Component({
properties: {
item: {
type: Object,
value: {}
},
statusEnum: {
type: Object,
value: {}
},
afterSaleStatus: {
type: Object,
value: {}
}
},
methods: {
jumpPlatformShop(e) {
this.triggerEvent('jumpPlatformShop', e.currentTarget.dataset);
},
cancelPlatformOrder(e) {
this.triggerEvent('cancelPlatformOrder', e.currentTarget.dataset);
},
toPayOrder(e) {
this.triggerEvent('toPayOrder', e.currentTarget.dataset);
}
}
});
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
<view class="item" catchtap="jumpPlatformShop" data-item="{{item}}" data-url="orderDetail/orderDetail">
<view class="top">
<view class="name text-hide">平台特供</view>
<!-- 订单状态 orderStatus(1:待付款;2:已支付;3:已关闭;4:已发货;5:已收货;6:待发货;7:待安装;8:已安装;9:售后中;10:售后完成)
售后订单状态 afterSaleStatus(1:待审核;2:审核通过;3:审核不通过;4:待确认收到退货;5:退款中;6:已退款;7:退款失败)
-->
<view class="status">{{item.afterSaleStatus ? afterSaleStatus[item.afterSaleStatus]
:statusEnum[item.orderStatus]}}</view>
</view>
<view class="content-top {{item.orderStatus == 5 || item.orderStatus == 8?'':'content-bottom'}}">
<block wx:for="{{item.orderGoods}}" wx:for-item="i" wx:for-index="ind" wx:key="ind">
<view class="goods {{item.orderStatus == 5 || item.orderStatus == 8?'addTo':''}}">
<view class="icon">
<image webp src="{{i.goodsImage}}"></image>
</view>
<view class="info">
<view class="info-top">
<view class="name text-hide">
<text>{{i.goodsName}}</text>
</view>
<view class="price">
<text class="unit">¥</text>
{{i.retailPrice}}
</view>
</view>
<view class="info-bottom">
<block wx:if="{{i.specificationData}}">
<view class="specification">{{i.specificationData}}</view>
</block>
<view class="number">
x{{i.goodsNumber}}
</view>
</view>
</view>
</view>
</block>
</view>
<view class="bottom" wx:if="{{item.orderSource == 5}}">
共1件商品,实付款<text class="price">¥{{item.payPrice}}</text>
</view>
<view class="bottom" wx:else>
共{{item.goodsNumber}}件商品,实付款<text class="price">¥{{item.payPrice}}</text>
</view>
<!-- 1:待付款;2:已支付;3:已关闭;4:已发货;5:已收货;6:待发货;7:待安装;8:已安装;9:售后中;10:售后完成 -->
<!-- 售后状态 1:待审核;2:审核通过;3:审核不通过;4:待确认收到退货;5:退款中;6:已退款;7:退款失败 -->
<block wx:if="{{item.orderStatus != 3}}">
<view class="btn-box">
<block wx:if="{{!item.afterSaleStatus}}">
<block wx:if="{{item.orderStatus == 1}}">
<view class="btn" catchtap="cancelPlatformOrder" data-order-code="{{item.orderCode}}">取消订单</view>
<view class="btn pay empty" catchtap="toPayOrder" data-order-code="{{item.mainOrderCode}}">立即支付</view>
</block>
<block wx:elif="{{item.orderStatus > 2 && item.orderStatus < 9}}">
<block wx:if="{{item.orderStatus != 6 }}">
<view class="btn confirm" catchtap="jumpPlatformShop" data-item="{{item}}" data-url="orderDetail/orderDetail">查看物流
</view>
</block>
<block wx:if="{{item.platformOrderStatus == 1008 || item.platformOrderStatus == 1009}}">
<view class="btn" catchtap="jumpPlatformShop" data-item="{{item}}" data-url="applySale/index">售后
</view>
</block>
</block>
</block>
<block wx:else>
<view class="btn" catchtap="jumpPlatformShop" data-item="{{item}}" data-url="afterSaleDetail/index">售后</view>
</block>
</view>
</block>
</view>
\ No newline at end of file \ No newline at end of file
Component({
properties: {
item: {
type: Object,
value: {}
},
hasUserInfo: {
type: Boolean,
value: true
}
},
methods: {
boutiqueJump(e) {
this.triggerEvent('boutiqueJump', e.currentTarget.dataset);
}
}
});
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {
"glsx-image": "/miniprogram_npm/glsx-applet-component/Image/index"
}
}
\ No newline at end of file \ No newline at end of file
<view class="item">
<view class="top">
<view class="delivery-icon">
<glsx-image webp src="mine/order/boutique.png"></glsx-image>
</view>
<view class="name text-hide">{{item.merchantName}}</view>
</view>
<view class="content">
<view class="goods" wx:for="{{item.orderGoods}}" wx:for-item="i" wx:for-index="ind" wx:key="ind">
<view class="icon">
<!-- <image webp src="{{i.goodsImage}}"></image> -->
<image webp src="{{i.goodsImage}}"></image>
</view>
<view class="info">
<view class="info-top">
<view class="name text-hide">{{i.goodsName}}</view>
<view class="price">
<text class="unit">¥</text>
{{i.activityPrice ||i.retailPrice}}
</view>
</view>
<view class="info-bottom">
<block wx:if="{{i.specificationData}}">
<view class="specification">{{i.specificationData}}</view>
</block>
<view class="number">
x{{i.goodsNumber}}
</view>
</view>
</view>
</view>
</view>
<view class="bottom">
共{{item.goodsNumber}}件商品,实付款<text class="price">¥{{item.payPrice}}</text>
</view>
<!-- !hasUserInfo -->
<block wx:if="{{!hasUserInfo}}">
<view class="btn-box">
<view class="btn confirm" catchtap="boutiqueJump" data-order-code="{{item.orderCode}}">评价</view>
</view>
</block>
</view>
\ No newline at end of file \ No newline at end of file
Component({
properties: {
item: {
type: Object,
value: {}
},
statusEnum: {
type: Object,
value: {}
},
afterSaleStatus: {
type: Object,
value: {}
},
hasUserInfo: {
type: Boolean,
value: true
}
},
methods: {
jump(e) {
this.triggerEvent('jump', e.currentTarget.dataset);
},
cancelPay(e) {
this.triggerEvent('cancelPay', e.currentTarget.dataset);
},
pay(e) {
this.triggerEvent('pay', e.currentTarget.dataset);
},
toGoldDetail(e) {
this.triggerEvent('toGoldDetail', e.currentTarget.dataset);
},
confirmReceipt(e) {
this.triggerEvent('confirmReceipt', e.currentTarget.dataset);
},
afterSale(e) {
this.triggerEvent('afterSale', e.currentTarget.dataset);
},
lookevaluate(e) {
this.triggerEvent('lookevaluate', e.currentTarget.dataset);
},
getUserProfile(e) {
this.triggerEvent('getUserProfile', e.currentTarget.dataset);
},
evaluate(e) {
this.triggerEvent('evaluate', e.currentTarget.dataset);
},
cancelOrder(e) {
this.triggerEvent('cancelOrder', e.currentTarget.dataset);
},
afterSaleDetail(e) {
this.triggerEvent('afterSaleDetail', e.currentTarget.dataset);
}
}
});
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {
"glsx-image": "/miniprogram_npm/glsx-applet-component/Image/index"
}
}
\ No newline at end of file \ No newline at end of file
<view class="item" catchtap="jump" data-item="{{item}}">
<view class="top">
<view class="delivery-icon" wx:if="{{item.orderSource != 5}}">
<glsx-image webp src="mine/order/deliveryType-{{item.deliveryType}}.png">
</glsx-image>
</view>
<view class="name text-hide">{{item.merchantName}}</view>
<!-- 订单状态 orderStatus(1:待付款;2:已支付;3:已关闭;4:已发货;5:已收货;6:待发货;7:待安装;8:已安装;9:售后中;10:售后完成)
售后订单状态 afterSaleStatus(1:待审核;2:审核通过;3:审核不通过;4:待确认收到退货;5:退款中;6:已退款;7:退款失败)
-->
<view class="status">{{item.afterSaleStatus ? afterSaleStatus[item.afterSaleStatus]
:statusEnum[item.orderStatus]}}</view>
</view>
<view class="content-top {{item.orderStatus == 5 || item.orderStatus == 8?'':'content-bottom'}}">
<block wx:for="{{item.orderGoods}}" wx:for-item="i" wx:for-index="ind" wx:key="ind">
<view class="goods {{item.orderStatus == 5 || item.orderStatus == 8?'addTo':''}}">
<view class="icon">
<image webp wx:if="{{item.orderSource == 5}}" src="{{item.activityBigImg}}"></image>
<image webp wx:else src="{{i.goodsImage}}"></image>
</view>
<view class="info">
<view class="info-top">
<view class="name text-hide">{{item.orderSource == 5 ? item.activityName: i.goodsName}}</view>
<view class="price">
<text class="unit">¥</text>
{{item.orderSource == 5 ? item.payPrice: (i.activityPrice ||i.retailPrice)}}
</view>
</view>
<view class="info-bottom">
<block wx:if="{{i.specificationData}}">
<view class="specification">{{i.specificationData}}</view>
</block>
<view class="number">
x{{item.orderSource == 5 ? 1: i.goodsNumber}}
</view>
</view>
<!-- !hasUserInfo -->
<view wx:if="{{item.orderGoods.length > 1 && !hasUserInfo}}">
<block wx:if="{{item.orderStatus == 5 || item.orderStatus == 8}}">
<block wx:if="{{item.evaluatedFlag == 'Y'}}">
<view class="btn confirm" catchtap="lookevaluate" data-item="{{item}}">查看评价</view>
</block>
<block wx:else>
<button catchtap="getUserProfile" wx:if="{{!hasUserInfo}}" class="btn confirm userProfile" data-item="{{item}}"> 立即评价 </button>
<view class="btn confirm" catchtap="evaluate" wx:else data-item="{{item}}">立即评价</view>
</block>
</block>
</view>
</view>
</view>
</block>
</view>
<view class="bottom" wx:if="{{item.orderSource == 5}}">
共1件商品,实付款<text class="price">¥{{item.payPrice}}</text>
</view>
<view class="bottom" wx:else>
共{{item.goodsNumber}}件商品,实付款<text class="price">¥{{item.payPrice}}</text>
</view>
<!-- 1:待付款;2:已支付;3:已关闭;4:已发货;5:已收货;6:待发货;7:待安装;8:已安装;9:售后中;10:售后完成 -->
<!-- 售后状态 1:待审核;2:审核通过;3:审核不通过;4:待确认收到退货;5:退款中;6:已退款;7:退款失败 -->
<block wx:if="{{item.orderStatus != 3}}">
<view class="btn-box">
<block wx:if="{{!item.afterSaleStatus}}">
<block wx:if="{{item.orderStatus == 1}}">
<view class="btn pay" catchtap="cancelPay" data-order-code="{{item.orderCode}}">取消付款</view>
<block wx:if="{{item.orderSource != 4}}">
<view class="btn pay" catchtap="pay" data-order-code="{{item.orderCode}}">去支付</view>
</block>
</block>
<block wx:if="{{item.orderSource==5 && (item.orderStatus == 2 || item.orderStatus == 7)}}">
<view class="btn pay" data-item="{{item}}" bind:tap="toGoldDetail">查看详情</view>
</block>
<block wx:elif="{{item.orderStatus > 2 && item.orderStatus < 9}}">
<!-- deliveryType 结算方式(1:到店核销,2:快递发货) -->
<block wx:if="{{item.deliveryType == 2 && item.orderStatus == 4}}">
<view class="btn confirm" catchtap="confirmReceipt" data-order-code="{{item.orderCode}}">确认收货
</view>
</block>
<block wx:if="{{item.payPrice > 0 && item.orderSource != 4}}">
<view class="btn" catchtap="afterSale" data-item="{{item}}" wx:if="{{!(item.relatedUserCouponStatus == 2 || item.relatedUserCouponStatus == 3)}}">申请售后
</view>
</block>
</block>
<!-- !hasUserInfo -->
<view wx:if="{{item.orderGoods.length == 1 && !hasUserInfo}}">
<block wx:if="{{item.orderStatus == 5 || item.orderStatus == 8}}">
<block wx:if="{{item.evaluatedFlag == 'Y'}}">
<view class="btn confirm" catchtap="lookevaluate" data-item="{{item}}">查看评价</view>
</block>
<block wx:else>
<button catchtap="getUserProfile" wx:if="{{!hasUserInfo}}" class="btn confirm userProfile" data-item="{{item}}"> 立即评价 </button>
<view class="btn confirm" catchtap="evaluate" wx:else data-item="{{item}}">立即评价</view>
</block>
</block>
</view>
</block>
<block wx:else>
<block wx:if="{{item.afterSaleStatus == 1}}">
<view class="btn pay" catchtap="cancelOrder" data-order-code="{{item.orderCode}}">取消售后</view>
</block>
<view class="btn" data-item="{{item}}" catchtap="afterSaleDetail">售后详情</view>
</block>
</view>
</block>
</view>
\ No newline at end of file \ No newline at end of file
Component({
properties: {
item: {
type: Object,
value: {}
},
cardStatus: {
type: Object,
value: {}
},
reStatus: {
type: Object,
value: {}
}
},
methods: {
toSaleDetailPage(e) {
this.triggerEvent('toSaleDetailPage', e.currentTarget.dataset);
},
toSaleApplyPage(e) {
this.triggerEvent('toSaleApplyPage', e.currentTarget.dataset);
},
toComfirmPage(e) {
this.triggerEvent('toComfirmPage', e.currentTarget.dataset);
},
toCheckCard(e) {
this.triggerEvent('toCheckCard', e.currentTarget.dataset);
},
toSaleApplyPackage(e) {
this.triggerEvent('toSaleApplyPackage', e.currentTarget.dataset);
},
toPackageDetail(e) {
this.triggerEvent('toPackageDetail', e.currentTarget.dataset);
},
toCheckPackage(e) {
this.triggerEvent('toCheckPackage', e.currentTarget.dataset);
}
}
});
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {
"glsx-image": "/miniprogram_npm/glsx-applet-component/Image/index"
}
}
\ No newline at end of file \ No newline at end of file
<view class="item" wx:for="{{item.orderGoods}}" wx:for-item="i" wx:for-index="ind" wx:key="ind">
<view class="top">
<!-- <view class="delivery-icon">
<image webp src="../../../images/{{item.orderType == 1?'exchange':'combo'}}.png"></image>
</view> -->
<view class="name text-hide" wx:if="{{item.orderClassify == 3}}">{{item.merchantName}}</view>
<view class="name text-hide" wx:if="{{item.orderClassify == 2}}">平台特供</view>
<!-- 套餐状态 -->
<view class="status" wx:if="{{item.orderClassify == 3 && item.equityOrderStatus !== 4}}">
{{cardStatus[item.equityOrderStatus]}}</view>
<view class="status" wx:if="{{item.orderClassify == 3 && item.equityOrderStatus == 4}}">
{{reStatus[item.equityOrderStatus]}}</view>
<!-- 直冲卡卷状态 -->
<view class="status" wx:if="{{i.appearance == 2}}">{{reStatus[item.equityOrderStatus]}}</view>
<view class="status" wx:if="{{i.appearance == 1 && item.equityOrderStatus !== 3}}">
{{cardStatus[item.equityOrderStatus]}}</view>
<view class="status" wx:if="{{i.appearance == 1 && item.equityOrderStatus == 3}}">已收货</view>
</view>
<view class="content">
<view class="goods">
<view class="icon background-X">
<!-- <image webp src="{{i.goodsImage}}"></image> -->
<glsx-image webp wx:if="{{item.orderClassify == 3}}" src="mine/order/combo.png"></glsx-image>
<image webp wx:else src="{{i.goodsImage}}" class="{{i.appearance == 1 ?'imageHeight':'imageStraight'}}"></image>
</view>
<view class="info">
<view class="info-top">
<view class="name text-hide">{{i.goodsName}}</view>
<view class="price">
<text class="unit">¥</text>
{{i.activityPrice ||i.retailPrice}}
</view>
</view>
<view class="info-bottom">
<view class="specification">
<view wx:if="{{i.appearance==1}}">质保期至 {{item.expiredTime}}</view>
<view wx:if="{{i.appearance == 2}}">充值账号:{{i.rechargeNumber || ''}}</view>
<view wx:if="{{i.appearance == 2}}">购买日期 {{item.time}}</view>
<view wx:if="{{item.orderClassify == 3&&i.appearance==null}}">{{i.specificationData}}</view>
</view>
</view>
</view>
</view>
</view>
<view class="bottom">
<view wx:if="{{i.appearance==2}}">订单编号 {{item.orderCode}}</view>
</view>
<view class="btn-box" wx:if="{{item.orderClassify == 2&&i.appearance == 1}}">
<view wx:if="{{item.equityOrderStatus==4 || item.equityOrderStatus==6}}" class="btn" data-item="{{item}}" bind:tap="toSaleDetailPage">售后详情</view>
<block wx:if="{{item.payPrice > 0 && item.orderSource != 4}}">
<view wx:if="{{item.equityOrderStatus==2}}" data-item="{{item}}" bind:tap="toSaleApplyPage" class="btn">申请售后</view>
</block>
<view wx:if="{{item.equityOrderStatus==2 || item.equityOrderStatus==4}}" data-item="{{item}}" bind:tap="toComfirmPage" class="btn confirm">确认收货</view>
<view wx:if="{{item.equityOrderStatus!=6}}" class="btn pay" data-item="{{item}}" bind:tap="toCheckCard">
查看卡券</view>
</view>
<view class="btn-box" wx:if="{{item.orderClassify==3}}">
<block wx:if="{{item.payPrice > 0 && item.orderSource != 4}}">
<view wx:if="{{item.orderClassify==3&&item.equityOrderStatus==2}}" data-item="{{item}}" bind:tap="toSaleApplyPackage" class="btn">申请售后</view>
</block>
<view wx:if="{{item.orderClassify==3&&item.equityOrderStatus==4}}" data-item="{{item}}" bind:tap="toPackageDetail" class="btn">售后详情</view>
<view wx:if="{{item.orderClassify==3&&item.equityOrderStatus!==4}}" class="btn pay" data-item="{{item}}" bind:tap="toCheckPackage">查看套餐</view>
</view>
</view>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!