发布
This commit is contained in:
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),o=require("../../api/order.js"),n=require("../../utils/helper.js"),s=require("../../api/config.js");if(!Array){(e.resolveComponent("nut-step")+e.resolveComponent("nut-steps")+e.resolveComponent("nut-cell")+e.resolveComponent("nut-cell-group")+e.resolveComponent("nut-tag")+e.resolveComponent("nut-price")+e.resolveComponent("nut-button"))()}Math||((()=>"../../uni_modules/nutui-uni/components/step/step.js")+(()=>"../../uni_modules/nutui-uni/components/steps/steps.js")+(()=>"../../uni_modules/nutui-uni/components/cell/cell.js")+(()=>"../../uni_modules/nutui-uni/components/cellgroup/cellgroup.js")+(()=>"../../uni_modules/nutui-uni/components/tag/tag.js")+(()=>"../../uni_modules/nutui-uni/components/price/price.js")+(()=>"../../uni_modules/nutui-uni/components/button/button.js"))();const t={__name:"detail",setup(t){const i=e.ref(!0),r=e.ref(0),a=e.reactive({}),p=e.ref([]);e.onLoad((e=>{r.value=e.id})),e.onShow((()=>{u(),o.fetchOrderDetail(r.value).then((e=>{Object.assign(a,e)}))}));const u=()=>{s.fetchGetConfig().then((e=>{console.log("getConfig=====>",e),i.value=1==e.appConfig.is_audit,console.log(e.appConfig.pay_imgs);let o=JSON.parse(e.appConfig.pay_imgs)||[],n=JSON.parse(e.appConfig.wechat_imgs)||[],s=o.map((e=>e.file_path))||[],t=n.map((e=>e.file_path))||[];const r=s.concat(t);p.value=r}))};return(o,s)=>e.e({a:e.p({title:"待付款"}),b:e.p({title:"待发货"}),c:e.p({title:"待收货"}),d:e.p({title:"已完成"}),e:e.p({current:a.progress}),f:a.address_info},a.address_info?{g:e.t(a.address_info.user_name),h:e.t(a.address_info.tel_number),i:e.t(a.address_info.province_name+a.address_info.city_name+a.address_info.county_name+a.address_info.street_name+a.address_info.detail_info_new)}:{},{j:e.f(a.goods,((o,s,t)=>({a:e.t(o.snapshot_info.degree.degree_name),b:"3d9ab029-9-"+t+",3d9ab029-8-"+t,c:e.t(o.goods_name),d:e.t(o.goods_no),e:"3d9ab029-10-"+t+",3d9ab029-8-"+t,f:e.p({price:o.goods_price,size:"small","need-symbol":!0}),g:s,h:e.o((s=>e.unref(n.navigateTo)("/pages/mall/detail?id="+o.goods_id)),s),i:"3d9ab029-8-"+t+",3d9ab029-7"}))),k:e.p({"custom-color":"#1a1a1a"}),l:e.p({center:!0}),m:e.p({price:a.pay_price,size:"normal","need-symbol":!0}),n:e.p({title:"订单编号",desc:a.order_no}),o:e.p({title:"下单时间",desc:a.create_time}),p:a.progress>=3},a.progress>=3?{q:e.p({title:"物流公司",desc:a.express_company}),r:e.p({title:"物流单号",desc:a.express_no})}:{},{s:1===a.progress&&!i.value},1!==a.progress||i.value?{}:{t:e.o((o=>{0!==p.value.length?(console.log("preview images:",p),e.index.previewImage({urls:p.value})):e.index.showToast({title:"暂无图片",icon:"none"})})),v:e.p({type:"primary",block:!0})})}},i=e._export_sfc(t,[["__scopeId","data-v-3d9ab029"]]);wx.createPage(i);
|
||||
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "订单详情",
|
||||
"usingComponents": {
|
||||
"nut-step": "../../uni_modules/nutui-uni/components/step/step",
|
||||
"nut-steps": "../../uni_modules/nutui-uni/components/steps/steps",
|
||||
"nut-cell": "../../uni_modules/nutui-uni/components/cell/cell",
|
||||
"nut-cell-group": "../../uni_modules/nutui-uni/components/cellgroup/cellgroup",
|
||||
"nut-tag": "../../uni_modules/nutui-uni/components/tag/tag",
|
||||
"nut-price": "../../uni_modules/nutui-uni/components/price/price",
|
||||
"nut-button": "../../uni_modules/nutui-uni/components/button/button"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<view class="page-content data-v-3d9ab029"><nut-steps wx:if="{{e}}" class="data-v-3d9ab029" u-s="{{['d']}}" u-i="3d9ab029-0" bind:__l="__l" u-p="{{e}}"><nut-step wx:if="{{a}}" class="data-v-3d9ab029" u-s="{{['d']}}" u-i="3d9ab029-1,3d9ab029-0" bind:__l="__l" u-p="{{a}}">1</nut-step><nut-step wx:if="{{b}}" class="data-v-3d9ab029" u-s="{{['d']}}" u-i="3d9ab029-2,3d9ab029-0" bind:__l="__l" u-p="{{b}}">2</nut-step><nut-step wx:if="{{c}}" class="data-v-3d9ab029" u-s="{{['d']}}" u-i="3d9ab029-3,3d9ab029-0" bind:__l="__l" u-p="{{c}}">3</nut-step><nut-step wx:if="{{d}}" class="data-v-3d9ab029" u-s="{{['d']}}" u-i="3d9ab029-4,3d9ab029-0" bind:__l="__l" u-p="{{d}}">4</nut-step></nut-steps><nut-cell-group class="data-v-3d9ab029" u-s="{{['d']}}" u-i="3d9ab029-5" bind:__l="__l"><nut-cell class="data-v-3d9ab029" u-s="{{['d']}}" u-i="3d9ab029-6,3d9ab029-5" bind:__l="__l"><view wx:if="{{f}}" class="address-inner data-v-3d9ab029"><text class="data-v-3d9ab029">{{g}} - {{h}}</text><text class="data-v-3d9ab029">{{i}}</text></view></nut-cell></nut-cell-group><nut-cell-group class="data-v-3d9ab029" u-s="{{['d']}}" u-i="3d9ab029-7" bind:__l="__l"><nut-cell wx:for="{{j}}" wx:for-item="goods" wx:key="g" class="data-v-3d9ab029" u-s="{{['title','link']}}" bindclick="{{goods.h}}" u-i="{{goods.i}}" bind:__l="__l" u-p="{{l}}"><view class="goods-info-row data-v-3d9ab029" slot="title"><view class="left-text data-v-3d9ab029"><view class="goods-name data-v-3d9ab029"><nut-tag wx:if="{{k}}" class="data-v-3d9ab029" u-s="{{['d']}}" u-i="{{goods.b}}" bind:__l="__l" u-p="{{k}}">{{goods.a}}</nut-tag><text class="data-v-3d9ab029" style="margin-left:10rpx">{{goods.c}}</text></view><text class="goods-no data-v-3d9ab029">串号:{{goods.d}}</text></view></view><nut-price class="data-v-3d9ab029" u-i="{{goods.e}}" bind:__l="__l" u-p="{{goods.f}}" slot="link"/></nut-cell></nut-cell-group><nut-cell-group class="data-v-3d9ab029" u-s="{{['d']}}" u-i="3d9ab029-11" bind:__l="__l"><nut-cell class="data-v-3d9ab029" u-s="{{['d']}}" u-i="3d9ab029-12,3d9ab029-11" bind:__l="__l"><view class="total-price-inner data-v-3d9ab029"><text class="data-v-3d9ab029">商品总额</text><nut-price wx:if="{{m}}" class="data-v-3d9ab029" u-i="3d9ab029-13,3d9ab029-12" bind:__l="__l" u-p="{{m}}"/></view></nut-cell></nut-cell-group><nut-cell-group class="data-v-3d9ab029" u-s="{{['d']}}" u-i="3d9ab029-14" bind:__l="__l"><nut-cell wx:if="{{n}}" class="data-v-3d9ab029" u-i="3d9ab029-15,3d9ab029-14" bind:__l="__l" u-p="{{n}}"/><nut-cell wx:if="{{o}}" class="data-v-3d9ab029" u-i="3d9ab029-16,3d9ab029-14" bind:__l="__l" u-p="{{o}}"/></nut-cell-group><nut-cell-group wx:if="{{p}}" class="data-v-3d9ab029" u-s="{{['d']}}" u-i="3d9ab029-17" bind:__l="__l"><nut-cell wx:if="{{q}}" class="data-v-3d9ab029" u-i="3d9ab029-18,3d9ab029-17" bind:__l="__l" u-p="{{q}}"/><nut-cell wx:if="{{r}}" class="data-v-3d9ab029" u-i="3d9ab029-19,3d9ab029-17" bind:__l="__l" u-p="{{r}}"/></nut-cell-group><view wx:if="{{s}}" class="wechat-img-inner data-v-3d9ab029"><nut-button wx:if="{{v}}" class="data-v-3d9ab029" u-s="{{['d']}}" bindclick="{{t}}" u-i="3d9ab029-20" bind:__l="__l" u-p="{{v}}"> 点我付款 </nut-button></view></view>
|
||||
@@ -1 +0,0 @@
|
||||
.page-content.data-v-3d9ab029{min-height:100vh;background-color:#f2f3f5;padding:20rpx}.address-inner.data-v-3d9ab029{display:flex;flex-direction:column;justify-content:center}.total-price-inner.data-v-3d9ab029{width:100%;display:flex;justify-content:space-between;align-items:center}.total-price-inner view.data-v-3d9ab029:nth-child(2){color:#fa2c19}.wechat-img-inner.data-v-3d9ab029{margin-top:60rpx;padding:0rpx 80rpx;display:flex;align-items:center;justify-content:center;flex-direction:column}
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),t=require("../../api/order.js"),a=require("../../api/config.js");if(!Array){(e.resolveComponent("nut-dialog")+e.resolveComponent("nut-button")+e.resolveComponent("nut-searchbar")+e.resolveComponent("nut-tabs")+e.resolveComponent("nut-sticky")+e.resolveComponent("nut-tag")+e.resolveComponent("nut-price")+e.resolveComponent("z-paging"))()}Math||((()=>"../../uni_modules/nutui-uni/components/dialog/dialog.js")+(()=>"../../uni_modules/nutui-uni/components/button/button.js")+(()=>"../../uni_modules/nutui-uni/components/searchbar/searchbar.js")+(()=>"../../uni_modules/nutui-uni/components/tabs/tabs.js")+(()=>"../../uni_modules/nutui-uni/components/sticky/sticky.js")+(()=>"../../uni_modules/nutui-uni/components/tag/tag.js")+(()=>"../../uni_modules/nutui-uni/components/price/price.js")+(()=>"../../uni_modules/z-paging/components/z-paging/z-paging.js"))();const o={__name:"index",setup(o){const s=e.ref(!0),u=e.ref([]),l=e.ref(0),n=e.ref([]),i=e.ref(null),r=[{title:"全部",status:"all"},{title:"待付款",status:"payment"},{title:"待发货",status:"delivery"},{title:"待收货",status:"received"},{title:"已完成",status:"finish"}],p=e.ref(!1),d=e.ref(0),v=e.ref(""),c=()=>{t.fetchCancelOrder(d.value).then((t=>{e.index.showToast({title:"取消成功",icon:"none"}),i.value.reload()}))},m=(e=1,a=10)=>{console.log(r[l.value].status);const o={page:e,pageSize:10,status:r[l.value].status,goods_no:v.value};t.fetchOrderList(o).then((e=>{console.log(e),i.value.complete(e.list)})).catch((e=>{i.value.complete(!1)}))};e.onLoad((e=>{l.value=parseInt(e.tab)})),e.onShow((()=>{a.fetchGetConfig().then((e=>{console.log("getConfig=====>",e),s.value=1==e.appConfig.is_audit,console.log(e.appConfig.pay_imgs);let t=JSON.parse(e.appConfig.pay_imgs)||[],a=JSON.parse(e.appConfig.wechat_imgs)||[],o=t.map((e=>e.file_path))||[],l=a.map((e=>e.file_path))||[];const n=o.concat(l);u.value=n}))}));const f=()=>{console.log("搜索:",v.value),i.value.reload()},g=()=>{console.log("搜索:",v.value),i.value.reload()},_=e=>{if(20==e.order_status.value)return e.order_status.text;if(30==e.order_status.value)return e.order_status.text;if(10==e.order_status.value){if(10==e.pay_status.value)return e.pay_status.text;if(20==e.pay_status.value){if(10==e.delivery_status.value)return e.delivery_status.text;if(20==e.delivery_status.value)return e.receipt_status.text}}};return(a,o)=>({a:e.o((e=>p.value=!1)),b:e.o(c),c:e.o((e=>p.value=e)),d:e.p({title:"取消订单",content:"确认取消吗?此操作不可恢复!",visible:p.value}),e:e.o(f),f:e.p({size:"small",type:"primary"}),g:e.o(f),h:e.o(g),i:e.o((e=>v.value=e)),j:e.p({placeholder:"请输入商品串号",clearable:!0,"input-background":"#eee",modelValue:v.value}),k:e.f(r,((t,a,o)=>({a:e.t(t.title),b:a,c:a===l.value?1:"",d:e.o((e=>((e,t)=>{l.value=t,i.value.reload()})(0,a)),a)}))),l:e.o((e=>l.value=e)),m:e.p({background:"#fff",modelValue:l.value}),n:e.f(n.value,((a,o,l)=>e.e({a:e.t(a.create_time),b:e.t(_(a)),c:"d85819f0-6-"+l+",d85819f0-5",d:e.f(a.goods,((t,o,s)=>({a:e.t(t.snapshot_info.degree.degree_name),b:"d85819f0-7-"+l+"-"+s+",d85819f0-5",c:e.t(t.goods_name),d:e.t(t.goods_no),e:"d85819f0-8-"+l+"-"+s+",d85819f0-5",f:e.p({price:t.goods_price,size:"small","need-symbol":!0}),g:o,h:e.o((t=>{return o=a.order_id,console.log(o),void(o?e.index.navigateTo({url:`/pages/order/detail?id=${encodeURIComponent(o)}`}):console.warn("导航ID不能为空"));var o}),o)}))),e:"d85819f0-9-"+l+",d85819f0-5",f:e.p({price:a.total_price,size:"normal","need-symbol":!0}),g:10===a.order_status.value},10===a.order_status.value?e.e({h:10===a.pay_status.value},10===a.pay_status.value?{i:e.o((e=>{p.value=!0,d.value=a.order_id}),o),j:"d85819f0-10-"+l+",d85819f0-5",k:e.p({plain:!0,size:"small"})}:{},{l:10===a.pay_status.value&&!s.value},10!==a.pay_status.value||s.value?{}:{m:e.o((t=>{0!==u.value.length?(console.log("preview images:",u),e.index.previewImage({urls:u.value})):e.index.showToast({title:"暂无图片",icon:"none"})}),o),n:"d85819f0-11-"+l+",d85819f0-5",o:e.p({type:"primary",size:"small"})},{p:20===a.pay_status.value&&20===a.delivery_status.value&&10===a.receipt_status.value},20===a.pay_status.value&&20===a.delivery_status.value&&10===a.receipt_status.value?{q:e.o((o=>{return s=a.order_id,void t.fetchReceiptOrder(s).then((t=>{e.index.showToast({title:"确认收货成功",icon:"none"}),i.value.reload()}));var s}),o),r:"d85819f0-12-"+l+",d85819f0-5",s:e.p({type:"primary",size:"small"})}:{}):{},{t:o}))),o:e.p({"custom-color":"#1a1a1a"}),p:e.p({"custom-color":"#1a1a1a"}),q:e.sr(i,"d85819f0-5",{k:"paging"}),r:e.o(m),s:e.o((e=>n.value=e)),t:e.p({fixed:!1,modelValue:n.value})})}},s=e._export_sfc(o,[["__scopeId","data-v-d85819f0"]]);wx.createPage(s);
|
||||
"use strict";const e=require("../../common/vendor.js"),l=require("../../api/index.js");if(!Array){(e.resolveComponent("nut-tabs")+e.resolveComponent("nut-sticky")+e.resolveComponent("nut-tag")+e.resolveComponent("z-paging"))()}Math||((()=>"../../uni_modules/nutui-uni/components/tabs/tabs.js")+(()=>"../../uni_modules/nutui-uni/components/sticky/sticky.js")+(()=>"../../uni_modules/nutui-uni/components/tag/tag.js")+(()=>"../../uni_modules/z-paging/components/z-paging/z-paging.js"))();const o={__name:"index",setup(o){const t=e.ref(0),u=[{title:"今日",status:"today"},{title:"昨日",status:"yesterday"},{title:"当月",status:"month"},{title:"全部",status:"all"}],n=e.ref([]),a=e.ref(null),i=(e=1,o=10)=>{console.log(u[t.value].status);const n={page:e,pageSize:10,status:u[t.value].status};l.fetchOrderList(n).then((e=>{console.log(e),a.value.complete(e.list)})).catch((e=>{a.value.complete(!1)}))};return e.onLoad((e=>{t.value=parseInt(e.tab)})),e.onShow((()=>{a.value&&a.value.refresh()})),(l,o)=>({a:e.f(u,((l,o,u)=>({a:e.t(l.title),b:o,c:o===t.value?1:"",d:e.o((e=>((e,l)=>{t.value=l,a.value.reload()})(0,o)),o)}))),b:e.o((e=>t.value=e)),c:e.p({background:"#fff",modelValue:t.value}),d:e.f(n.value,((l,o,t)=>{var u,n,a,i,v,d,s,p,r,f,c,_,m,y,b,g,x,k,h,j,z,C,w,q,I,L,P,S,A;return e.e({a:1==l.order_type},1==l.order_type?{b:"fbc07880-3-"+t+",fbc07880-2",c:e.p({plain:!0,type:"primary"})}:{e:"fbc07880-4-"+t+",fbc07880-2",f:e.p({plain:!0,type:"warning"})},{d:2==l.order_type,g:1==l.order_type},1==l.order_type?{h:e.t(null==(u=null==l?void 0:l.rooms)?void 0:u.room_name),i:"fbc07880-5-"+t+",fbc07880-2",j:e.p({"custom-color":"#ffc209"})}:{},{k:1==(null==(n=null==l?void 0:l.status)?void 0:n.value)},1==(null==(a=null==l?void 0:l.status)?void 0:a.value)?{l:e.t(null==(i=null==l?void 0:l.status)?void 0:i.text),m:"fbc07880-6-"+t+",fbc07880-2",n:e.p({plain:!0,type:"danger"})}:2==(null==(v=null==l?void 0:l.status)?void 0:v.value)?{p:e.t(null==(d=null==l?void 0:l.status)?void 0:d.text),q:"fbc07880-7-"+t+",fbc07880-2",r:e.p({plain:!0,type:"success"})}:{},{o:2==(null==(s=null==l?void 0:l.status)?void 0:s.value),s:1==l.order_type&&0!=(null==(p=null==l?void 0:l.fee_type)?void 0:p.value)},1==l.order_type&&0!=(null==(r=null==l?void 0:l.fee_type)?void 0:r.value)?e.e({t:e.t(null==(f=null==l?void 0:l.fee_type)?void 0:f.text),v:"fbc07880-8-"+t+",fbc07880-2",w:e.p({plain:!0,"custom-color":"#fa2400"}),x:0==(null==(c=null==l?void 0:l.fee_type)?void 0:c.value)||3==(null==(_=null==l?void 0:l.fee_type)?void 0:_.value)},0==(null==(m=null==l?void 0:l.fee_type)?void 0:m.value)||3==(null==(y=null==l?void 0:l.fee_type)?void 0:y.value)?{}:1==(null==(b=null==l?void 0:l.fee_type)?void 0:b.value)||2==(null==(g=null==l?void 0:l.fee_type)?void 0:g.value)?{z:e.t(null==l?void 0:l.fee_combo_name)}:{},{y:1==(null==(x=null==l?void 0:l.fee_type)?void 0:x.value)||2==(null==(k=null==l?void 0:l.fee_type)?void 0:k.value),A:0==(null==(h=null==l?void 0:l.fee_type)?void 0:h.value)||3==(null==(j=null==l?void 0:l.fee_type)?void 0:j.value)},0==(null==(z=null==l?void 0:l.fee_type)?void 0:z.value)||3==(null==(C=null==l?void 0:l.fee_type)?void 0:C.value)?{B:e.t(null==l?void 0:l.fee_amount)}:1==(null==(w=null==l?void 0:l.fee_type)?void 0:w.value)||2==(null==(q=null==l?void 0:l.fee_type)?void 0:q.value)?{D:e.t(null==l?void 0:l.fee_combo_price)}:{},{C:1==(null==(I=null==l?void 0:l.fee_type)?void 0:I.value)||2==(null==(L=null==l?void 0:l.fee_type)?void 0:L.value),E:e.t(null==(P=null==l?void 0:l.fee_pay_status)?void 0:P.text)}):{},{F:l.over_often>0},l.over_often>0?{G:"fbc07880-9-"+t+",fbc07880-2",H:e.p({plain:!0,"custom-color":"#fa2400"}),I:e.t(null==l?void 0:l.over_often),J:e.t(null==l?void 0:l.over_amount),K:e.t(null==(S=null==l?void 0:l.over_pay_status)?void 0:S.text)}:{},{L:e.f(l.goods,((l,o,u)=>({a:e.t(l.goods_type_name),b:"fbc07880-10-"+t+"-"+u+",fbc07880-2",c:e.t(l.goods_name),d:e.t(null==l?void 0:l.goods_price),e:e.t(null==l?void 0:l.goods_pay_status_txt),f:o}))),M:e.t(null==l?void 0:l.discount_amount),N:e.t(null==l?void 0:l.totalPrice),O:l.remarks},(l.remarks,{}),{P:l.remarks},l.remarks?{Q:e.t(l.remarks)}:{},{R:e.t(l.create_time),S:e.t(null==(A=null==l?void 0:l.user)?void 0:A.staff_name),T:o})})),e:e.p({plain:!0,"custom-color":"#fa2400"}),f:e.sr(a,"fbc07880-2",{k:"paging"}),g:e.o(i),h:e.o((e=>n.value=e)),i:e.p({fixed:!1,modelValue:n.value})})}},t=e._export_sfc(o,[["__scopeId","data-v-fbc07880"]]);wx.createPage(t);
|
||||
|
||||
@@ -1,13 +1,10 @@
|
||||
{
|
||||
"navigationBarTitleText": "我的订单",
|
||||
"navigationBarTitleText": "订单管理",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"nut-dialog": "../../uni_modules/nutui-uni/components/dialog/dialog",
|
||||
"nut-button": "../../uni_modules/nutui-uni/components/button/button",
|
||||
"nut-searchbar": "../../uni_modules/nutui-uni/components/searchbar/searchbar",
|
||||
"nut-tabs": "../../uni_modules/nutui-uni/components/tabs/tabs",
|
||||
"nut-sticky": "../../uni_modules/nutui-uni/components/sticky/sticky",
|
||||
"nut-tag": "../../uni_modules/nutui-uni/components/tag/tag",
|
||||
"nut-price": "../../uni_modules/nutui-uni/components/price/price",
|
||||
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
|
||||
}
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
<view class="page-content data-v-d85819f0"><nut-dialog wx:if="{{d}}" class="data-v-d85819f0" bindcancel="{{a}}" bindok="{{b}}" u-i="d85819f0-0" bind:__l="__l" bindupdateVisible="{{c}}" u-p="{{d}}"/><nut-sticky class="data-v-d85819f0" u-s="{{['d']}}" u-i="d85819f0-1" bind:__l="__l"><nut-searchbar wx:if="{{j}}" class="data-v-d85819f0" u-s="{{['rightout']}}" bindsearch="{{g}}" bindclear="{{h}}" u-i="d85819f0-2,d85819f0-1" bind:__l="__l" bindupdateModelValue="{{i}}" u-p="{{j}}"><nut-button class="data-v-d85819f0" u-s="{{['d']}}" bindclick="{{e}}" u-i="d85819f0-3,d85819f0-2" bind:__l="__l" u-p="{{f}}" slot="rightout">搜索</nut-button></nut-searchbar><nut-tabs wx:if="{{m}}" class="data-v-d85819f0" u-s="{{['titles']}}" u-i="d85819f0-4,d85819f0-1" bind:__l="__l" bindupdateModelValue="{{l}}" u-p="{{m}}"><view class="title-list data-v-d85819f0" slot="titles"><view wx:for="{{k}}" wx:for-item="item" wx:key="b" class="{{['title-item', 'data-v-d85819f0', item.c && 'tabs-active']}}" bindtap="{{item.d}}"><view class="nut-tabs__titles-item__text data-v-d85819f0">{{item.a}}</view><view class="item__line data-v-d85819f0"/></view></view></nut-tabs></nut-sticky><z-paging wx:if="{{t}}" u-s="{{['d']}}" u-r="paging" style="height:88vh" class="order-list r data-v-d85819f0" bindquery="{{r}}" u-i="d85819f0-5" bind:__l="__l" bindupdateModelValue="{{s}}" u-p="{{t}}"><view wx:for="{{n}}" wx:for-item="order" wx:key="t" class="order-inner data-v-d85819f0"><view class="order-inner-header data-v-d85819f0"><text class="data-v-d85819f0">{{order.a}}</text><nut-tag wx:if="{{o}}" class="data-v-d85819f0" u-s="{{['d']}}" u-i="{{order.c}}" bind:__l="__l" u-p="{{o}}">{{order.b}}</nut-tag></view><view wx:for="{{order.d}}" wx:for-item="goods" wx:key="g" class="goods-info-row data-v-d85819f0" bindtap="{{goods.h}}"><view class="left-text data-v-d85819f0"><view class="goods-name data-v-d85819f0"><nut-tag wx:if="{{p}}" class="data-v-d85819f0" u-s="{{['d']}}" u-i="{{goods.b}}" bind:__l="__l" u-p="{{p}}">{{goods.a}}</nut-tag><text class="data-v-d85819f0" style="margin-left:10rpx">{{goods.c}}</text></view><text class="goods-no data-v-d85819f0">串号:{{goods.d}}</text></view><view class="price data-v-d85819f0"><nut-price wx:if="{{goods.f}}" class="data-v-d85819f0" u-i="{{goods.e}}" bind:__l="__l" u-p="{{goods.f}}"/></view></view><view class="footer data-v-d85819f0"><view class="order-inner-price data-v-d85819f0"> 总计:<nut-price wx:if="{{order.f}}" class="data-v-d85819f0" u-i="{{order.e}}" bind:__l="__l" u-p="{{order.f}}"/></view><view wx:if="{{order.g}}" class="order-inner-action data-v-d85819f0"><view class="data-v-d85819f0" style="margin-left:10rpx"><nut-button wx:if="{{order.h}}" class="data-v-d85819f0" u-s="{{['d']}}" bindclick="{{order.i}}" u-i="{{order.j}}" bind:__l="__l" u-p="{{order.k}}"> 取消订单 </nut-button></view><view class="data-v-d85819f0" style="margin-left:10rpx"><nut-button wx:if="{{order.l}}" class="data-v-d85819f0" u-s="{{['d']}}" bindclick="{{order.m}}" u-i="{{order.n}}" bind:__l="__l" u-p="{{order.o}}"> 点我付款 </nut-button></view><view class="data-v-d85819f0" style="margin-left:10rpx"><nut-button wx:if="{{order.p}}" class="data-v-d85819f0" u-s="{{['d']}}" bindclick="{{order.q}}" u-i="{{order.r}}" bind:__l="__l" u-p="{{order.s}}"> 确认收货 </nut-button></view></view></view></view></z-paging></view>
|
||||
<view class="page-content data-v-fbc07880"><nut-sticky class="data-v-fbc07880" u-s="{{['d']}}" u-i="fbc07880-0" bind:__l="__l"><nut-tabs wx:if="{{c}}" class="data-v-fbc07880" u-s="{{['titles']}}" u-i="fbc07880-1,fbc07880-0" bind:__l="__l" bindupdateModelValue="{{b}}" u-p="{{c}}"><view class="title-list data-v-fbc07880" slot="titles"><view wx:for="{{a}}" wx:for-item="item" wx:key="b" class="{{['title-item', 'data-v-fbc07880', item.c && 'tabs-active']}}" bindtap="{{item.d}}"><view class="nut-tabs__titles-item__text data-v-fbc07880">{{item.a}}</view><view class="item__line data-v-fbc07880"/></view></view></nut-tabs></nut-sticky><z-paging wx:if="{{i}}" u-s="{{['d']}}" u-r="paging" style="height:88vh" class="order-list r data-v-fbc07880" bindquery="{{g}}" u-i="fbc07880-2" bind:__l="__l" bindupdateModelValue="{{h}}" u-p="{{i}}"><view wx:for="{{d}}" wx:for-item="order" wx:key="T" class="order-inner data-v-fbc07880"><view class="order-inner-header data-v-fbc07880"><nut-tag wx:if="{{order.a}}" class="data-v-fbc07880" u-s="{{['d']}}" u-i="{{order.b}}" bind:__l="__l" u-p="{{order.c}}">房间订单</nut-tag><nut-tag wx:else class="data-v-fbc07880" u-s="{{['d']}}" u-i="{{order.e}}" bind:__l="__l" u-p="{{order.f||''}}">商品订单</nut-tag><nut-tag wx:if="{{order.g}}" class="data-v-fbc07880" u-s="{{['d']}}" u-i="{{order.i}}" bind:__l="__l" u-p="{{order.j}}">{{order.h}}</nut-tag><nut-tag wx:if="{{order.k}}" class="data-v-fbc07880" u-s="{{['d']}}" u-i="{{order.m}}" bind:__l="__l" u-p="{{order.n}}">{{order.l}}</nut-tag><nut-tag wx:elif="{{order.o}}" class="data-v-fbc07880" u-s="{{['d']}}" u-i="{{order.q}}" bind:__l="__l" u-p="{{order.r}}">{{order.p}}</nut-tag></view><view wx:if="{{order.s}}" class="goods-info-row data-v-fbc07880"><view class="left-text data-v-fbc07880"><view class="goods-name data-v-fbc07880"><nut-tag wx:if="{{order.w}}" class="data-v-fbc07880" u-s="{{['d']}}" u-i="{{order.v}}" bind:__l="__l" u-p="{{order.w}}">{{order.t}}</nut-tag><text wx:if="{{order.x}}" class="data-v-fbc07880" style="margin-left:10rpx"></text><text wx:elif="{{order.y}}" class="data-v-fbc07880" style="margin-left:10rpx">{{order.z}}</text></view></view><view wx:if="{{order.A}}" class="price data-v-fbc07880"> ¥{{order.B}}</view><view wx:elif="{{order.C}}" class="price data-v-fbc07880"> ¥{{order.D}}</view><view class="goods-pay-status data-v-fbc07880">{{order.E}}</view></view><view wx:if="{{order.F}}" class="goods-info-row data-v-fbc07880"><view class="left-text data-v-fbc07880"><view class="goods-name data-v-fbc07880"><nut-tag wx:if="{{order.H}}" class="data-v-fbc07880" u-s="{{['d']}}" u-i="{{order.G}}" bind:__l="__l" u-p="{{order.H}}">超时</nut-tag><text class="data-v-fbc07880" style="margin-left:10rpx">{{order.I}}小时</text></view></view><view class="price data-v-fbc07880"> ¥{{order.J}}</view><view class="goods-pay-status data-v-fbc07880">{{order.K}}</view></view><view wx:for="{{order.L}}" wx:for-item="goods" wx:key="f" class="goods-info-row data-v-fbc07880"><view class="left-text data-v-fbc07880"><view class="goods-name data-v-fbc07880"><nut-tag wx:if="{{e}}" class="data-v-fbc07880" u-s="{{['d']}}" u-i="{{goods.b}}" bind:__l="__l" u-p="{{e}}">{{goods.a}}</nut-tag><text class="data-v-fbc07880" style="margin-left:10rpx">{{goods.c}}</text></view></view><view class="price data-v-fbc07880"> ¥{{goods.d}}</view><view class="goods-pay-status data-v-fbc07880">{{goods.e}}</view></view><view class="footer data-v-fbc07880"><view class="order-inner-price data-v-fbc07880"><view class="data-v-fbc07880" style="display:flex">优惠: <view class="data-v-fbc07880" style="color:#fa2c19;font-size:26rpx"> ¥{{order.M}}</view></view><view class="data-v-fbc07880" style="display:flex">总计: <view class="data-v-fbc07880" style="color:#fa2c19;font-size:26rpx"> ¥{{order.N}}</view></view></view><view wx:if="{{order.O}}" class="data-v-fbc07880" style="padding-left:20rpx;font-size:26rpx">备注</view><view wx:if="{{order.P}}" class="remarks data-v-fbc07880">{{order.Q}}</view><view class="order-inner-price data-v-fbc07880"><view class="data-v-fbc07880" style="color:rgba(0, 0, 0, .5);font-size:24rpx">订单时间:{{order.R}}</view><view class="data-v-fbc07880" style="color:rgba(0, 0, 0, .5);font-size:24rpx">员工:{{order.S}}</view></view></view></view></z-paging></view>
|
||||
@@ -1 +1 @@
|
||||
.page-content.data-v-d85819f0{min-height:100vh;background-color:#f2f3f5}.order-list.data-v-d85819f0{display:flex;flex-direction:column;width:100%}.order-inner.data-v-d85819f0{display:flex;flex-direction:column;background:#fff;border-radius:15rpx;overflow:hidden;margin:20rpx}.order-inner .order-inner-header.data-v-d85819f0{display:flex;align-items:center;background-color:#dcdcdc;color:rgba(0,0,0,.5);font-size:24rpx;justify-content:space-between;line-height:45rpx;padding:15rpx 20rpx}.order-inner .goods-info-row.data-v-d85819f0{display:flex;justify-content:space-between;align-items:center;padding:20rpx;border-bottom:2rpx solid #f2f3f5}.order-inner .goods-info-row .left-text.data-v-d85819f0{flex:1}.order-inner .goods-info-row .goods-name.data-v-d85819f0{font-size:30rpx;color:#000;display:block;margin-bottom:8rpx}.order-inner .goods-info-row .goods-no.data-v-d85819f0{font-size:26rpx;color:#000;display:block}.order-inner .goods-info-row .price.data-v-d85819f0{margin-left:20rpx;align-self:center}.order-inner .footer.data-v-d85819f0{display:flex;flex-direction:column}.order-inner .footer .order-inner-price.data-v-d85819f0{display:flex;justify-content:flex-end;padding-top:10rpx;padding-right:20rpx;padding-bottom:20rpx;font-size:24rpx;align-items:center}.order-inner .footer .order-inner-action.data-v-d85819f0{display:flex;padding-top:10rpx;padding-bottom:30rpx;align-items:center;justify-content:flex-end}.title-list.data-v-d85819f0{display:flex;justify-content:space-around;align-items:center;width:100%}.title-list .title-item.data-v-d85819f0{display:flex;justify-content:space-around;align-items:center;position:relative}.title-list .tabs-active.data-v-d85819f0{font-weight:700;color:var(--nut-tabs-titles-item-active-color, var(--nut-title-color, #1a1a1a));opacity:var(--nut-tabs-titles-item-line-opacity, 1);transition:width .3s ease}.title-list .tabs-active .item__line.data-v-d85819f0{position:absolute;bottom:-10%;left:50%;overflow:hidden;border-radius:var(--nut-tabs-titles-item-line-border-radius, 0);opacity:var(--nut-tabs-titles-item-line-opacity, 1);transition:width .3s ease;transform:translate(-50%);width:var(--nut-tabs-horizontal-titles-item-active-line-width, 40px);height:3px;content:" ";background:var(--nut-tabs-horizontal-tab-line-color, linear-gradient(90deg, var(--nut-primary-color, #fa2c19) 0%, rgba(250, 44, 25, .15) 100%))}
|
||||
.page-content.data-v-fbc07880{min-height:100vh;background-color:#f2f3f5}.title-list.data-v-fbc07880{display:flex;justify-content:space-around;align-items:center;width:100%}.title-list .title-item.data-v-fbc07880{display:flex;justify-content:space-around;align-items:center;position:relative}.title-list .tabs-active.data-v-fbc07880{font-weight:700;color:var(--nut-tabs-titles-item-active-color, var(--nut-title-color, #1a1a1a));opacity:var(--nut-tabs-titles-item-line-opacity, 1);transition:width .3s ease}.title-list .tabs-active .item__line.data-v-fbc07880{position:absolute;bottom:-10%;left:50%;overflow:hidden;border-radius:var(--nut-tabs-titles-item-line-border-radius, 0);opacity:var(--nut-tabs-titles-item-line-opacity, 1);transition:width .3s ease;transform:translate(-50%);width:var(--nut-tabs-horizontal-titles-item-active-line-width, 40px);height:3px;content:" ";background:var(--nut-tabs-horizontal-tab-line-color, linear-gradient(90deg, var(--nut-primary-color, #fa2c19) 0%, rgba(250, 44, 25, .15) 100%))}.order-list.data-v-fbc07880{display:flex;flex-direction:column;width:100%}.order-inner.data-v-fbc07880{display:flex;flex-direction:column;background:#fff;border-radius:15rpx;overflow:hidden;margin:20rpx}.order-inner .order-inner-header.data-v-fbc07880{display:flex;align-items:center;font-size:24rpx;justify-content:space-between;line-height:45rpx;padding:15rpx 20rpx;border-bottom:2rpx solid #f2f3f5}.order-inner .goods-info-row.data-v-fbc07880{display:flex;justify-content:space-between;align-items:center;padding:20rpx;border-bottom:2rpx solid #f2f3f5}.order-inner .goods-info-row .left-text.data-v-fbc07880{flex:1}.order-inner .goods-info-row .goods-name.data-v-fbc07880{font-size:26rpx;color:#000;display:block}.order-inner .goods-info-row .price.data-v-fbc07880{font-size:26rpx;margin-left:20rpx;align-self:center;color:#fa2c19}.order-inner .goods-info-row .goods-pay-status.data-v-fbc07880{font-size:26rpx;margin-left:20rpx;align-self:center}.order-inner .footer.data-v-fbc07880{display:flex;flex-direction:column}.order-inner .footer .order-inner-price.data-v-fbc07880{display:flex;justify-content:space-evenly;padding:20rpx;font-size:24rpx;align-items:center}.order-inner .footer .remarks.data-v-fbc07880{padding:20rpx;color:rgba(0,0,0,.5);font-size:24rpx}
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),o=require("../../api/order.js");if(!Array){(e.resolveComponent("nut-cell")+e.resolveComponent("nut-cell-group")+e.resolveComponent("nut-tag")+e.resolveComponent("nut-price")+e.resolveComponent("nut-button"))()}Math||((()=>"../../uni_modules/nutui-uni/components/cell/cell.js")+(()=>"../../uni_modules/nutui-uni/components/cellgroup/cellgroup.js")+(()=>"../../uni_modules/nutui-uni/components/tag/tag.js")+(()=>"../../uni_modules/nutui-uni/components/price/price.js")+(()=>"../../uni_modules/nutui-uni/components/button/button.js"))();const n={__name:"preview",setup(n){const s=()=>{e.index.chooseAddress({success(e){console.log(e),Object.assign(r,{address_info:{address_id:e.addressID||1,user_name:e.userName,tel_number:e.telNumber,city_name:e.cityName||"",county_name:e.countyName||"",detail_info:e.detailInfo||"",detail_info_new:e.detailInfoNew||"",national_code:e.nationalCode||"",national_code_full:e.nationalCodeFull||"",postal_code:e.postalCode||"",province_name:e.provinceName||"",street_name:e.streetName||""}})}})};e.ref([]);const d=e.reactive([]),i=e.ref(0),t=e.ref(0),r=e.reactive({goods_id:0,address_info:{}}),a=e.ref("");e.onLoad((e=>{console.log("🚀 ~ from:",e.from),a.value=e.from,console.log("🚀 ~ ids:",e.ids),r.goods_id=e.ids})),e.onShow((()=>{console.log("🚀 ~ onShowfrom:",a.value),"list"!==a.value&&"item"!==a.value||o.fetchOrderPreview(r).then((e=>{Object.assign(d,e.goods_list),Object.assign(r.address_info,e.address_info),i.value=e.order_total_price,t.value=e.order_total_num}))})),e.onHide((()=>{a.value=""}));const l=()=>{var n;(null==(n=r.address_info)?void 0:n.address_id)?o.fetchOrderbuyNow(r).then((o=>{console.log(o),e.index.redirectTo({url:"/pages/order/detail?id="+o.order_id,success:e=>{},fail:()=>{},complete:()=>{}})})):e.index.showToast({title:"请选择收货地址",icon:"none"})};return(o,n)=>{var a,c;return e.e({a:!(null==(a=r.address_info)?void 0:a.address_id)},(null==(c=r.address_info)?void 0:c.address_id)?{d:e.o(s),e:e.p({title:r.address_info.user_name+" "+r.address_info.tel_number,"is-link":!0,"sub-title":r.address_info.province_name+r.address_info.city_name+r.address_info.county_name+r.address_info.street_name+r.address_info.detail_info_new})}:{b:e.o(s),c:e.p({title:"添加地址","is-link":!0})},{f:e.f(d,((o,n,s)=>({a:e.t(o.degree.degree_name),b:"6d3637c9-5-"+s+",6d3637c9-4-"+s,c:e.t(o.goods_name),d:e.t(o.goods_no),e:"6d3637c9-6-"+s+",6d3637c9-4-"+s,f:e.p({price:o.goods_price,size:"small","need-symbol":!0}),g:n,h:"6d3637c9-4-"+s+",6d3637c9-3"}))),g:e.p({"custom-color":"#1a1a1a"}),h:e.p({center:!0}),i:e.t(t.value),j:e.p({price:i.value,"need-symbol":!0}),k:e.p({size:"large",price:i.value,"need-symbol":!0}),l:e.o(l),m:e.p({type:"primary"})})}}},s=e._export_sfc(n,[["__scopeId","data-v-6d3637c9"]]);wx.createPage(s);
|
||||
@@ -1,10 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "提交订单",
|
||||
"usingComponents": {
|
||||
"nut-cell": "../../uni_modules/nutui-uni/components/cell/cell",
|
||||
"nut-cell-group": "../../uni_modules/nutui-uni/components/cellgroup/cellgroup",
|
||||
"nut-tag": "../../uni_modules/nutui-uni/components/tag/tag",
|
||||
"nut-price": "../../uni_modules/nutui-uni/components/price/price",
|
||||
"nut-button": "../../uni_modules/nutui-uni/components/button/button"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<view class="page-content data-v-6d3637c9"><nut-cell-group class="data-v-6d3637c9" u-s="{{['d']}}" u-i="6d3637c9-0" bind:__l="__l"><nut-cell wx:if="{{a}}" class="data-v-6d3637c9" bindclick="{{b}}" u-i="6d3637c9-1,6d3637c9-0" bind:__l="__l" u-p="{{c}}"></nut-cell><nut-cell wx:else class="data-v-6d3637c9" bindclick="{{d}}" u-i="6d3637c9-2,6d3637c9-0" bind:__l="__l" u-p="{{e||''}}"></nut-cell></nut-cell-group><nut-cell-group class="data-v-6d3637c9" u-s="{{['d']}}" u-i="6d3637c9-3" bind:__l="__l"><nut-cell wx:for="{{f}}" wx:for-item="goods" wx:key="g" class="data-v-6d3637c9" u-s="{{['title','link']}}" u-i="{{goods.h}}" bind:__l="__l" u-p="{{h}}"><view class="goods-info-row data-v-6d3637c9" slot="title"><view class="left-text data-v-6d3637c9"><view class="goods-name data-v-6d3637c9"><nut-tag wx:if="{{g}}" class="data-v-6d3637c9" u-s="{{['d']}}" u-i="{{goods.b}}" bind:__l="__l" u-p="{{g}}">{{goods.a}}</nut-tag><text class="data-v-6d3637c9" style="margin-left:10rpx">{{goods.c}}</text></view><text class="goods-no data-v-6d3637c9">串号:{{goods.d}}</text></view></view><nut-price class="data-v-6d3637c9" u-i="{{goods.e}}" bind:__l="__l" u-p="{{goods.f}}" slot="link"/></nut-cell></nut-cell-group><nut-cell-group class="data-v-6d3637c9" u-s="{{['d']}}" u-i="6d3637c9-7" bind:__l="__l"><nut-cell class="data-v-6d3637c9" u-s="{{['d']}}" u-i="6d3637c9-8,6d3637c9-7" bind:__l="__l"><view class="total-price-inner data-v-6d3637c9"><text class="data-v-6d3637c9">件数</text><text class="data-v-6d3637c9">{{i}}件</text></view></nut-cell><nut-cell class="data-v-6d3637c9" u-s="{{['d']}}" u-i="6d3637c9-9,6d3637c9-7" bind:__l="__l"><view class="total-price-inner data-v-6d3637c9"><text class="data-v-6d3637c9">商品总额</text><nut-price wx:if="{{j}}" class="data-v-6d3637c9" u-i="6d3637c9-10,6d3637c9-9" bind:__l="__l" u-p="{{j}}"/></view></nut-cell></nut-cell-group><view class="bottom-submit-inner data-v-6d3637c9"><view class="bottom-submit-inner-info data-v-6d3637c9"><text class="data-v-6d3637c9">合计:</text><nut-price wx:if="{{k}}" class="data-v-6d3637c9" u-i="6d3637c9-11" bind:__l="__l" u-p="{{k}}"/></view><view class="bottom-submit-inner-btn data-v-6d3637c9"><nut-button wx:if="{{m}}" class="data-v-6d3637c9" u-s="{{['d']}}" bindclick="{{l}}" u-i="6d3637c9-12" bind:__l="__l" u-p="{{m}}">确认下单</nut-button></view></view></view>
|
||||
@@ -1 +0,0 @@
|
||||
.page-content.data-v-6d3637c9{min-height:100vh;background-color:#f2f3f5;padding:20rpx 20rpx 140rpx}.goods-info-row.data-v-6d3637c9{display:flex;justify-content:space-between;align-items:center;padding-bottom:10rpx}.goods-info-row .left-text.data-v-6d3637c9{flex:1}.goods-info-row .goods-name.data-v-6d3637c9{font-size:30rpx;color:#000;display:block;margin-bottom:8rpx}.goods-info-row .goods-no.data-v-6d3637c9{font-size:26rpx;color:#000;display:block}.goods-info-row .price.data-v-6d3637c9{margin-left:20rpx;align-self:center}.bottom-submit-inner.data-v-6d3637c9{position:fixed;bottom:0;left:0;height:120rpx;background:#fff;width:calc(100% - 40rpx);display:flex;align-items:center;justify-content:space-between;margin:0 auto;padding:15rpx 20rpx}.total-price-inner.data-v-6d3637c9{width:100%;display:flex;justify-content:space-between;align-items:center}.total-price-inner view.data-v-6d3637c9:nth-child(2){color:#fa2c19}
|
||||
Reference in New Issue
Block a user