123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481 |
- <template>
- <view>
- <!--标题栏-->
- <bar-title bgColor="bg-white" isBack>
- <block slot="content">订单详情</block>
- </bar-title>
-
- <!--步骤条区域-->
- <view class="bg-white padding solid-top">
- <!--步骤条-->
- <view class="cu-steps">
- <block v-for="(item,index) in info.status_list" :key="index">
- <view class="cu-item" :class="item.selected?'select':''">
- <view class="icon-view" v-if="!item.selected">
- <text class="text-red" :class="'cuIcon-' + iconlist[index-1]"></text>
- </view>
- <view class="bg-red icon-view" v-else>
- <text :class="'cuIcon-' + iconlist[index-1]"></text>
- </view>
- <view class="text-sm text-black" v-if="!item.selected">{{item.name}}</view>
- <view class="text-sm text-black" v-else>{{item.name}}</view>
- </view>
- </block>
- </view>
-
- <!--提示-->
- <view class="text-sm text-center margin-top">
- <view class="text-black">{{info.status_msg}}</view>
- <view class="text-black" v-if="info.status == 4">
- <text class="text-red">9天23小时57分</text>
- <text>后将自动确认收货</text>
- </view>
- <view class="text-black" v-if="info.status == 1">
- <text class="text-red">14分</text>
- <text>后未支付,订单将自动关闭。</text>
- </view>
- </view>
- </view>
-
- <!--状态图标-->
- <view class="bg-white padding solid-top text-center zaiui-status-img-view" v-if="basics == 4 && !cancel">
- <view class="are-img-view" @tap="cancel = true">
- <image class="are-img" src="/static/zaiui/img/are.png" mode="widthFix"/>
- </view>
- <view class="text-sm text-black">交易成功,待发表评价</view>
- </view>
-
- <!--状态图标-->
- <view class="bg-white padding solid-top text-center zaiui-status-img-view" v-if="basics == 4 && cancel">
- <view class="are-img-view" @tap="cancel = false">
- <image class="are-img" src="/static/zaiui/img/arg.png" mode="widthFix"/>
- </view>
- <view class="text-sm text-black">订单已取消</view>
- </view>
-
- <!--广告区域-->
- <!-- <view class="bg-white zaiui-card-box" v-if="basics == 0">
- <view class="zaiui-card-view zaiui-goods-ad-view">
- <view class="cu-avatar radius lg" :style="[{backgroundImage:'url('+ bg_img +')'}]"/>
- <view class="goods-info-view">
- <text class="cu-tag bg-gradual-pink">现在卖最值钱</text>
- <view class="text-black">手机即刻变现</view>
- <view class="text-sm">
- <text>比回收平均多卖</text>
- <text class="text-red text-xl">42%</text>
- </view>
- </view>
- <view class="goods-btn-view">
- <button class="cu-btn bg-red radius sm">立即卖钱</button>
- </view>
- </view>
- </view> -->
-
- <!--物流信息-->
- <view class="bg-white zaiui-card-box" v-if="info.address">
- <view class="zaiui-card-view zaiui-address-view">
- <view class="text-lg text-bold text-black">物流信息</view>
- <view class="solid-line"></view>
- <view class="cu-list menu-avatar">
- <view class="cu-item">
- <view class="bg-grey icon-view">
- <text class="cuIcon-locationfill"/>
- </view>
- <view class="content">
- <view class="text-black">
- <text>收货人:</text>
- <text>{{info.address.name}}</text>
- <text class="margin-left">{{info.address.phone}}</text>
- </view>
- <view class="text-gray text-sm flex">
- <view class="text-cut">{{info.address.area_string}}{{info.address.address}}</view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
-
- <!--商品信息-->
- <view class="bg-white zaiui-card-box">
- <view class="zaiui-card-view zaiui-shop-view">
- <view class="shop-info-view">
- <view class="cu-avatar round sm" :style="[{backgroundImage:'url('+ info.pic +')'}]"/>
- <view class="text-black text-bold text-lg title-view">{{info.order_num}}</view>
- </view>
- <view class="goods-list-view" v-for="item in info.detail" :key="item.id">
- <view class="cu-avatar radius" :style="[{backgroundImage:'url('+ item.pic +')'}]"/>
- <view class="goods-info-view">
- <view class="text-black text-cut name">{{item.name}} </view>
- <view class="text-gray text-sm text-cut introduce">数量:x{{item.num}}, {{item.sku_name}}</view>
- <view class="text-cut tag-view">
- <!-- <text class="cu-tag sm line-blue radius">支持验机</text>
- <text class="cu-tag sm line-blue radius">专业质检</text> -->
- </view>
- <view class="text-red text-lg">{{item.cash}}</view>
- </view>
- </view>
- <!-- <view class="zaiui-foot-view">
- <view class="left-view">
- <image class="af5-img" src="/static/zaiui/img/af5.png" mode="widthFix"/>
- <text class="text-black">{{info.info}}</text>
- </view>
- <text class="text-black text-right">{{info.cash}}</text>
- </view> -->
- </view>
- </view>
-
- <!--商品金额-->
- <view class="bg-white zaiui-card-box">
- <view class="zaiui-card-view zaiui-price-view">
- <view class="text-black title-view">
- <view class="title">商品总额</view>
- <view class="text-right">
- <text>{{info.cash}}</text>
- </view>
- </view>
- <view class="text-black title-view">
- <view class="title">运费</view>
- <view class="text-right">
- <text class="margin-right-xs"></text>
- <text class="">{{info.yun}}</text>
- </view>
- </view>
- <!-- <view class="text-black title-view">
- <view class="title">特色服务费</view>
- <view class="text-right">
- <text class="margin-right-xs">+</text>
- <text class="text-price">39.00</text>
- </view>
- </view> -->
- <view class="text-black text-bold title-right-view">
- <text class="margin-right-xs">应付款:</text>
- <text>{{info.cash}}</text>
- </view>
-
- <view class="solid-line"></view>
-
- <view class="text-center text-black">联系客服</view>
- </view>
- </view>
-
- <!--订单信息-->
- <view class="bg-white zaiui-card-box">
- <view class="zaiui-card-view zaiui-order-view">
- <view class="text-lg text-bold text-black">订单信息</view>
- <view class="solid-line"></view>
- <view class="text-black title-view">
- <view class="title">订单编号</view>
- <view class="text-right">
- <text class="margin-right-xs">{{info.order_num}}</text>
- <button class="cu-btn sm line-black">复制</button>
- </view>
- </view>
- <view class="text-black title-view">
- <view class="title">支付方式</view>
- <view class="text-right">
- <text>微信<block v-if="info.status<2">(未支付)</block></text>
- </view>
- </view>
- <view class="text-black title-view">
- <view class="title">下单时间</view>
- <view class="text-right">
- <text>{{info.cdate_str}}</text>
- </view>
- </view>
- <view class="text-black title-view" v-if="basics > 0">
- <view class="title">支付时间</view>
- <view class="text-right">
- <text>2020-04-02 14:52:03</text>
- </view>
- </view>
- <view class="text-black title-view" v-if="basics > 1">
- <view class="title">发货时间</view>
- <view class="text-right">
- <text>2020-04-02 14:52:03</text>
- </view>
- </view>
- <view class="text-black title-view" v-if="basics > 2">
- <view class="title">验机时间</view>
- <view class="text-right">
- <text>2020-04-02 14:52:03</text>
- </view>
- </view>
- <view class="text-black title-view" v-if="basics > 3">
- <view class="title">完成时间</view>
- <view class="text-right">
- <text>2020-04-02 14:52:03</text>
- </view>
- </view>
- </view>
- </view>
-
- <view class="bg-white zaiui-card-hight-box"/>
-
- <!--为您推荐-->
- <!-- <view class="zaiui-title-view">
- <view class="flex flex-wrap">
- <view class="basis-sm text-right">
- <image class="img-anc" src="/static/zaiui/img/anc.png" mode="widthFix"/>
- </view>
- <view class="basis-xs text-center">
- <text class="text-black text-lg">为您推荐</text>
- </view>
- <view class="basis-sm text-left">
- <image class="img-anc" src="/static/zaiui/img/anc.png" mode="widthFix"/>
- </view>
- </view>
- </view>
- -->
- <!--推荐列表-->
- <!-- <view class="zaiui-recommend-goods-list-view">
- <view class="flex flex-wrap">
- <view class="basis-df padding-sm padding-right-xs">
- <view class="bg-white margin-bottom-sm list-itme">
- <view class="cu-avatar" :style="[{backgroundImage:'url('+ bg_img +')'}]"/>
- <view class="goods-info-view">
- <view class="text-cut text-black">苹果X 苹果X256G无锁99新 有现货</view>
- <view class="text-price text-red text-lg">2199</view>
- <view class="foot-box">
- <view class="text-gray text-sm address">重庆 渝北</view>
- <text class="cu-tag line-red sm radius">找相似</text>
- </view>
- </view>
- </view>
- </view>
- <view class="basis-df padding-sm padding-right-xs">
- <view class="bg-white margin-bottom-sm list-itme">
- <view class="cu-avatar" :style="[{backgroundImage:'url('+ bg_img +')'}]"/>
- <view class="goods-info-view">
- <view class="text-cut text-black">苹果X 苹果X256G无锁99新 有现货</view>
- <view class="text-price text-red text-lg">2199</view>
- <view class="foot-box">
- <view class="text-gray text-sm address">重庆 渝北</view>
- <text class="cu-tag line-red sm radius">找相似</text>
- </view>
- </view>
- </view>
- </view>
- <view class="basis-df padding-sm padding-right-xs">
- <view class="bg-white margin-bottom-sm list-itme">
- <view class="cu-avatar" :style="[{backgroundImage:'url('+ bg_img +')'}]"/>
- <view class="goods-info-view">
- <view class="text-cut text-black">苹果X 苹果X256G无锁99新 有现货</view>
- <view class="text-price text-red text-lg">2199</view>
- <view class="foot-box">
- <view class="text-gray text-sm address">重庆 渝北</view>
- <text class="cu-tag line-red sm radius">找相似</text>
- </view>
- </view>
- </view>
- </view>
- <view class="basis-df padding-sm padding-right-xs">
- <view class="bg-white margin-bottom-sm list-itme">
- <view class="cu-avatar" :style="[{backgroundImage:'url('+ bg_img +')'}]"/>
- <view class="goods-info-view">
- <view class="text-cut text-black">苹果X 苹果X256G无锁99新 有现货</view>
- <view class="text-price text-red text-lg">2199</view>
- <view class="foot-box">
- <view class="text-gray text-sm address">重庆 渝北</view>
- <text class="cu-tag line-red sm radius">找相似</text>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- -->
- <!--底部-->
- <view class="foot-hight-view"/>
-
- <view class="bg-white zaiui-footer-fixed zaiui-foot-padding-bottom" v-if="info.status == 1">
- <!-- <button class="cu-btn bg-orange sm" @tap="nextTap">测试下一步</button> -->
- <button class="cu-btn line-black radius">取消订单</button>
- <button class="cu-btn bg-red">确认支付</button>
- </view>
-
- <view class="bg-white zaiui-footer-fixed zaiui-foot-padding-bottom" v-if="info.status == 2">
- <!-- <button class="cu-btn bg-orange sm" @tap="nextTap">测试下一步</button> -->
- <button class="cu-btn line-black radius">申请退款</button>
- <button class="cu-btn bg-red">提醒发货</button>
- </view>
-
- <view class="bg-white zaiui-footer-fixed zaiui-foot-padding-bottom" v-if="info.status == 3">
- <!-- <button class="cu-btn bg-orange sm" @tap="nextTap">测试下一步</button> -->
- <button class="cu-btn line-black radius">申请退款</button>
- </view>
-
- <view class="bg-white zaiui-footer-fixed zaiui-foot-padding-bottom" v-if="info.status == 4">
- <!-- <button class="cu-btn bg-orange sm" @tap="nextTap">测试下一步</button> -->
- <button class="cu-btn line-black radius">申请退款</button>
- <button class="cu-btn bg-red" @tap="confirmReceipt">确认收货</button>
- </view>
-
- <view class="bg-white zaiui-footer-fixed zaiui-foot-padding-bottom" v-if="info.status == 5">
- <!-- <button class="cu-btn bg-orange sm" @tap="nextTap">测试第一步</button> -->
- <button class="cu-btn line-black radius" @tap="appraiseTap">发表评价</button>
- <button class="cu-btn bg-red">查看钱款去向</button>
- </view>
-
- <!--弹出框-->
- <view class="cu-modal bottom-modal" :class="bottomModal?'show':''">
- <view class="cu-dialog">
- <view class="cu-bar bg-white solid-bottom">
- <view class="text-black text-center title">手机安全验证</view>
- <text class="text-gray cuIcon-close close" @tap="closeModalTap"></text>
- </view>
- <view class="bg-white modal-view">
- <view class="content">
- <view class="tel-btn-view">
- <view class="text-black tel-view">验证码已发至:138****8000</view>
- <button class="cu-btn sm" @tap="getCodeKey" v-if="btnKey">获取</button>
- <button class="cu-btn sm" v-else>56s</button>
- </view>
- <view class="text-sm text-black margin-tb">
- <text>确认收货后,交易将结束。您之前付款到平台的</text>
- <text class="text-red">¥1.00</text>
- <text>,将会打给卖家。</text>
- </view>
- <view class="text-sm text-gray margin-bottom">
- 提醒:确认收货后钱款将脱离平台,届时平台无法保障您的钱款安全,请务必谨慎点击确认收货,谨防诈骗。
- </view>
- <view class="code-view">
- <text class="code" v-if="!codeKey[0]"> — </text>
- <text class="code" v-else> {{codeKey[0]}} </text>
-
- <text class="code" v-if="!codeKey[1]"> — </text>
- <text class="code" v-else> {{codeKey[1]}} </text>
-
- <text class="code" v-if="!codeKey[2]"> — </text>
- <text class="code" v-else> {{codeKey[2]}} </text>
-
- <text class="code" v-if="!codeKey[3]"> — </text>
- <text class="code" v-else> {{codeKey[3]}} </text>
- </view>
- </view>
-
- <!--数字键盘-->
- <view class="num-lock-view">
- <view class="cu-list grid col-3 solid-top">
- <block v-for="(item,index) in 9" :key="index">
- <view class="cu-item" @tap="codeKeyTap(item)">
- <text class="text-black num">{{item}}</text>
- </view>
- </block>
- <view class="cu-item">
- <text class="text-black num"></text>
- </view>
- <view class="cu-item" @tap="codeKeyTap(0)">
- <text class="text-black num">0</text>
- </view>
- <view class="cu-item" @tap="codeKeyDelTap">
- <text class="cuIcon-close close"></text>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
-
- </view>
- </template>
- <script>
- import barTitle from '@/components/zaiui-common/basics/bar-title';
- import _tool from '@/static/zaiui/util/tools.js'; //工具函数
- export default {
- components: {
- barTitle
- },
- data() {
- return {
- id: '',
- basics: 0, bg_img: '/static/images/home/goods/1.png', avatar: '/static/images/avatar/1.jpg', cancel: false,
- iconlist: ['cartfill','card','deliver_fill','formfill','presentfill'],
- basicsList: [
- {cuIcon: 'cartfill',name: '未拍下', name_s: '已拍下'}, {cuIcon: 'card',name: '待付款', name_s: '已拍下'},
- {cuIcon: 'deliver_fill',name: '待发货', name_s: '已发货'}, {cuIcon: 'formfill',name: '待验机', name_s: '已验机'},
- {cuIcon: 'presentfill',name: '待收货', name_s: '已收货'}
- ], bottomModal: false, codeKey: [], btnKey: true,
- info: {}
- }
- },
- onLoad(options) {
- this.id = options.id;
- this.loadInfo()
- },
- onReady() {
- _tool.setBarColor(true);
- uni.pageScrollTo({
- scrollTop: 0,
- duration: 0
- });
- },
- methods: {
- loadInfo() {
- this.reqByuser({
- url: '?l=resource.getOrderView',
- data: {
- type: 3,
- id: this.id
- },
- success: res => {
- if(res.data.status == 1) {
- this.info = res.data.data.info;
- }else {
- uni.showToast({
- icon: 'error',
- title: res.data.msg
- })
- }
- }
- })
- },
- nextTap() {
- this.basics = this.basics == this.basicsList.length - 1 ? 0 : this.basics + 1;
- },
- confirmReceipt() {
- uni.showModal({
- title: '收货提醒',
- content: '请务必确认已收到商品后再确认收货,让您提前确认收货的都是骗子、不走平台交易的都是骗子、让您私下打款的都是骗子',
- confirmText: '确认收货',
- confirmColor: '#0081ff',
- class: 'zaiui-modal',
- success: res => {
- if (res.confirm) {
- this.bottomModal = true;
- }
- }
- });
- },
- closeModalTap () {
- this.bottomModal = false;
- },
- codeKeyTap (index) {
- if(this.codeKey.length < 4) {
- this.codeKey.push(index);
- }
- },
- codeKeyDelTap() {
- this.codeKey.pop();
- },
- getCodeKey() {
- this.btnKey = false;
- },
- appraiseTap() {
- uni.navigateTo({
- url: "/pages/order/appraise"
- });
- }
- }
- }
- </script>
- <style lang="scss">
- /* #ifdef APP-PLUS */
- @import "../../static/colorui/main.css";
- @import "../../static/colorui/icon.css";
- @import "../../static/zaiui/style/app.scss";
- /* #endif */
- @import "../../static/zaiui/style/order-details.scss";
- </style>
|