发布
This commit is contained in:
1
unpackage/dist/build/mp-weixin/api/config.js
vendored
1
unpackage/dist/build/mp-weixin/api/config.js
vendored
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("./request.js");exports.fetchGetConfig=function(){return e.request({url:"/config/get"})},exports.fetchGetPriceRules=function(){return e.request({url:"/config/getPriceRules"})},exports.fetchSetConfig=function(t){return e.request({url:"/config/set",data:t,method:"POST"})},exports.fetchSetPriceRules=function(t){return e.request({url:"/config/setPriceRules",data:t,method:"POST"})};
|
||||
1
unpackage/dist/build/mp-weixin/api/goods.js
vendored
1
unpackage/dist/build/mp-weixin/api/goods.js
vendored
@@ -1 +0,0 @@
|
||||
"use strict";const t=require("./request.js");exports.fetchFilterParmas=function(e=0){return t.request({url:"/goods/filterParams",data:{is_origin:e}})},exports.fetchGoodsAdd=function(e){return t.request({url:"/goods/add",data:e,method:"POST"})},exports.fetchGoodsDetail=function(e){return t.request({url:"/goods/detail",data:{goods_id:e}})},exports.fetchGoodsEdit=function(e){return t.request({url:"/goods/edit",data:e,method:"POST"})},exports.fetchGoodsList=function(e){return t.request({url:"/goods/lists",data:e,method:"POST"})},exports.fetchSysGoodsList=function(e){return t.request({url:"/goods/list",data:e,method:"POST"})};
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";require("../common/vendor.js");const e=require("./house_request.js");exports.houseFetchCartGoodsIds=function(){return e.houseRequest({url:"/store.goods/cartGoodsIds"})},exports.houseFetchFilterParmas=function(o=0){return e.houseRequest({url:"/store.goods/filterParams",data:{is_origin:o}})},exports.houseFetchGoodsDetail=function(o){return e.houseRequest({url:"/store.goods/detail",data:{id:o}})},exports.houseFetchGoodsList=function(o){return e.houseRequest({url:"/store.goods/lists",data:o,method:"POST"})};
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../common/vendor.js"),s=require("../config.js"),o=require("../utils/helper.js");exports.houseRequest=t=>new Promise(((a,n)=>{e.index.request({url:s.config.house_api_base_url+t.url+"&wxapp_id=10001&token="+e.index.getStorageSync("token"),method:t.method||"GET",data:t.data||t.params||{},dataType:t.dataType||"json",responseType:t.responseType||"text",success(s){const t=s.data;switch(t.code){case-1:o.goToLoginPage();break;case 1:a(t.data);break;case 0:e.index.showToast({title:t.msg||"操作失败",icon:"none"})}},fail(s){e.index.$emit("z-paging-error-emit"),n(s),e.index.showToast({title:"网络请求失败",icon:"none"})}})}));
|
||||
2
unpackage/dist/build/mp-weixin/api/index.js
vendored
2
unpackage/dist/build/mp-weixin/api/index.js
vendored
@@ -1 +1 @@
|
||||
"use strict";require("../common/vendor.js");
|
||||
"use strict";const e=require("./request.js");exports.fetchAddOrder=function(t){return e.request({url:"/index/addOrder",data:t,method:"POST"})},exports.fetchAddTodo=function(t){return e.request({url:"/index/addTodo",data:t,method:"POST"})},exports.fetchBooking=function(t){return e.request({url:"/index/booking",data:t,method:"POST"})},exports.fetchCombos=function(t){return e.request({url:"/index/combos",data:t,method:"POST"})},exports.fetchDashboard=function(t){return e.request({url:"/index/dashboard",data:t,method:"POST"})},exports.fetchDayOrderList=function(t){return e.request({url:"/index/dayOrder",data:t,method:"POST"})},exports.fetchEditOrder=function(t){return e.request({url:"/index/editOrder",data:t,method:"POST"})},exports.fetchEditTodo=function(t){return e.request({url:"/index/editTodo",data:t,method:"POST"})},exports.fetchGoods=function(){return e.request({url:"/index/goods"})},exports.fetchLogin=function(t){return e.request({url:"/index/login",data:t,method:"POST"})},exports.fetchOrderList=function(t){return e.request({url:"/index/orders",data:t,method:"POST"})},exports.fetchRoomOrder=function(t){return e.request({url:"/index/roomOrder",data:{roomId:t}})},exports.fetchRooms=function(t){return e.request({url:"/index/rooms",data:t,method:"POST"})},exports.fetchTodoList=function(t){return e.request({url:"/index/todoList",data:t,method:"POST"})},exports.fetchUnBooking=function(t){return e.request({url:"/index/unbooking",data:t,method:"POST"})};
|
||||
|
||||
1
unpackage/dist/build/mp-weixin/api/order.js
vendored
1
unpackage/dist/build/mp-weixin/api/order.js
vendored
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("./request.js");exports.fetchCancelOrder=function(r){return e.request({url:"/order/cancel",data:{id:r}})},exports.fetchDeliveryOrder=function(r){return e.request({url:"/order/delivery",data:r,method:"POST"})},exports.fetchOrderDetail=function(r){return e.request({url:"/order/detail",data:{id:r}})},exports.fetchOrderList=function(r={}){const t={page:1,pageSize:10,status:"all",goods_no:"",...r};return e.request({url:"/order/getList",method:"GET",data:t})},exports.fetchOrderPreview=function(r){return e.request({url:"/order/preview",data:r,method:"POST"})},exports.fetchOrderTotalCount=function(){return e.request({url:"/order/totalCount"})},exports.fetchOrderbuyNow=function(r){return e.request({url:"/order/buyNow",data:r,method:"POST"})},exports.fetchPayOrder=function(r){return e.request({url:"/order/paid",data:{id:r}})},exports.fetchReceiptOrder=function(r){return e.request({url:"/order/receipt",data:{id:r}})};
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../common/vendor.js"),o=require("../config.js"),a=require("../utils/helper.js");exports.getUploadImageUrl=()=>o.config.api_base_url+"/upload/image&wxapp_id="+o.config.wxapp_id+"&token="+e.index.getStorageSync("token"),exports.request=t=>new Promise(((i,n)=>{e.index.request({url:o.config.api_base_url+t.url+"&wxapp_id="+o.config.wxapp_id+"&token="+e.index.getStorageSync("token"),method:t.method||"GET",data:t.data||t.params||{},dataType:t.dataType||"json",responseType:t.responseType||"text",success(o){const t=o.data;switch(t.code){case-1:a.goToLoginPage();break;case 1:i(t.data);break;case 0:e.index.showToast({title:t.msg||"操作失败",icon:"none"})}},fail(o){e.index.$emit("z-paging-error-emit"),n(o),e.index.showToast({title:"网络请求失败",icon:"none"})}})}));
|
||||
"use strict";const e=require("../common/vendor.js"),o=require("../config.js"),s=require("../utils/helper.js");exports.request=t=>new Promise(((a,i)=>{e.index.request({url:o.config.api_base_url+t.url+"&wxapp_id="+o.config.wxapp_id+"&token="+e.index.getStorageSync("token"),method:t.method||"GET",data:t.data||t.params||{},dataType:t.dataType||"json",responseType:t.responseType||"text",success(o){const t=o.data;switch(t.code){case-1:s.goToLoginPage();break;case 1:a(t.data);break;case 0:e.index.showToast({title:t.msg||"操作失败",icon:"none"})}},fail(o){e.index.$emit("z-paging-error-emit"),i(o),e.index.showToast({title:"网络请求失败",icon:"none"})}})}));
|
||||
|
||||
1
unpackage/dist/build/mp-weixin/api/user.js
vendored
1
unpackage/dist/build/mp-weixin/api/user.js
vendored
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("./request.js");exports.fetchUserInfo=function(){return e.request({url:"/user/info"})},exports.fetchUserPhone=function(r){return e.request({url:"/store.user/bindPhone",data:{code:r}})},exports.login=function(r,t){return e.request({url:"/user/login",data:{code:r,user_info:t},method:"POST"})};
|
||||
32
unpackage/dist/build/mp-weixin/app.json
vendored
32
unpackage/dist/build/mp-weixin/app.json
vendored
@@ -1,26 +1,20 @@
|
||||
{
|
||||
"pages": [
|
||||
"pages/index/index",
|
||||
"pages/mine/index",
|
||||
"pages/mall/detail",
|
||||
"pages/mall/houseDetail",
|
||||
"pages/order/preview",
|
||||
"pages/order/index",
|
||||
"pages/order/detail",
|
||||
"pages/login/index",
|
||||
"pages/login/phoneAuthorization",
|
||||
"pages/config/store",
|
||||
"pages/config/price",
|
||||
"pages/config/goodsList",
|
||||
"pages/config/goodsAdd",
|
||||
"pages/config/goodsEdit",
|
||||
"pages/config/goodsDetail",
|
||||
"pages/config/shopOrder/index",
|
||||
"pages/config/shopOrder/detail"
|
||||
"pages/todo/todoList",
|
||||
"pages/todo/todoAdd",
|
||||
"pages/index/orderAdd",
|
||||
"pages/index/orderEdit",
|
||||
"pages/index/goodsOrderAdd",
|
||||
"pages/mine/index",
|
||||
"pages/order/index",
|
||||
"pages/data/index",
|
||||
"pages/data/list"
|
||||
],
|
||||
"window": {
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "远阳数码",
|
||||
"navigationBarTitleText": "茶麻古道",
|
||||
"navigationBarBackgroundColor": "#fff",
|
||||
"backgroundTextStyle": "dark",
|
||||
"backgroundColor": "#F2F3F5",
|
||||
@@ -40,6 +34,12 @@
|
||||
"selectedIconPath": "static/tabbar/home-active.png",
|
||||
"text": "首页"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/todo/todoList",
|
||||
"iconPath": "static/tabbar/todo.png",
|
||||
"selectedIconPath": "static/tabbar/todo-active.png",
|
||||
"text": "待办"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/mine/index",
|
||||
"iconPath": "static/tabbar/user.png",
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
"use strict";const t=require("../../common/vendor.js");if(!Array){t.resolveComponent("nut-animate")()}Math;const e={__name:"index",props:{statusBarHeight:Number,windowWidth:Number,navbarHeight:Number,title:String,desc:String},setup(e){const r=e;return(a,n)=>({a:r.statusBarHeight+"px",b:t.t(e.title),c:t.t(e.desc),d:t.p({type:"flicker",loop:!0}),e:r.navbarHeight+"px",f:r.windowWidth+"px",g:e.statusBarHeight+e.navbarHeight+0+"px"})}},r=t._export_sfc(e,[["__scopeId","data-v-35060491"]]);wx.createComponent(r);
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"nut-animate": "../../uni_modules/nutui-uni/components/animate/animate"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<view class="navbar data-v-35060491"><view class="navbar-fixed data-v-35060491"><view class="data-v-35060491" style="{{'height:' + a}}"></view><view class="navbar-content data-v-35060491" style="{{'height:' + e + ';' + ('width:' + f)}}"><view class="header data-v-35060491"><view class="company-name data-v-35060491">{{b}}</view><nut-animate wx:if="{{d}}" class="data-v-35060491" u-s="{{['d']}}" u-i="35060491-0" bind:__l="__l" u-p="{{d}}"><view class="description data-v-35060491">{{c}}</view></nut-animate></view></view></view><view class="data-v-35060491" style="{{'height:' + g}}"></view></view>
|
||||
@@ -1 +0,0 @@
|
||||
.navbar-fixed.data-v-35060491{position:fixed;top:0;left:0;z-index:999;width:100%;background-image:linear-gradient(30deg,#e96443,#c64dff);background-position:0 0;background-repeat:no-repeat;background-size:100% auto;opacity:1}.navbar-content.data-v-35060491{display:flex;flex-flow:column;justify-content:center;padding:0 30rpx;box-sizing:border-box}.company-name.data-v-35060491{font-family:Akrobat ExtraBold!important;color:#fff;font-size:24rpx;font-weight:700}.description.data-v-35060491{font-family:Akrobat ExtraBold!important;color:#fff;font-size:16rpx}
|
||||
2
unpackage/dist/build/mp-weixin/config.js
vendored
2
unpackage/dist/build/mp-weixin/config.js
vendored
@@ -1 +1 @@
|
||||
"use strict";exports.config={name:"云淘机",api_base_url:"https://phone.19year.cn/index.php?s=/api",house_api_base_url:"https://newtel.19year.cn/index.php?s=/api",enabledSettingCache:!0,wxapp_id:10002};
|
||||
"use strict";exports.config={name:"茶麻古道",api_base_url:"https://cmgd.19year.cn/index.php?s=/api",enabledSettingCache:!0,wxapp_id:10001};
|
||||
|
||||
1
unpackage/dist/build/mp-weixin/menu.js
vendored
1
unpackage/dist/build/mp-weixin/menu.js
vendored
@@ -1 +0,0 @@
|
||||
"use strict";require("./uni_modules/nutui-uni/components/_utils/env.js");const o=require("./uni_modules/nutui-uni/components/_utils/props.js"),r=Symbol("nut-menu"),t={...o.commonProps,activeColor:o.makeStringProp(""),overlay:o.truthProp,lockScroll:o.truthProp,duration:{type:[Number,String],default:300},titleIcon:String,closeOnClickOverlay:o.truthProp,direction:o.makeStringProp("down"),scrollFixed:{type:[Boolean,String,Number],default:!1},scrollTop:o.makeNumberProp(0),titleClass:[String],upIcon:o.makeStringProp("rect-up"),downIcon:o.makeStringProp("rect-down"),offset:Number};exports.MENU_KEY=r,exports.menuProps=t;
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),o=require("../../api/goods.js"),n=require("../../api/request.js");if(!Array){(e.resolveComponent("nut-input")+e.resolveComponent("nut-form-item")+e.resolveComponent("nut-icon")+e.resolveComponent("nut-textarea")+e.resolveComponent("nut-radio")+e.resolveComponent("nut-radio-group")+e.resolveComponent("shmily-drag-image")+e.resolveComponent("nut-button")+e.resolveComponent("nut-form")+e.resolveComponent("nut-picker")+e.resolveComponent("nut-popup")+e.resolveComponent("nut-cascader"))()}Math||((()=>"../../uni_modules/nutui-uni/components/input/input.js")+(()=>"../../uni_modules/nutui-uni/components/formitem/formitem.js")+(()=>"../../uni_modules/nutui-uni/components/icon/icon.js")+(()=>"../../uni_modules/nutui-uni/components/textarea/textarea.js")+(()=>"../../uni_modules/nutui-uni/components/radio/radio.js")+(()=>"../../uni_modules/nutui-uni/components/radiogroup/radiogroup.js")+(()=>"../../uni_modules/shmily-drag-image/components/shmily-drag-image/shmily-drag-image.js")+(()=>"../../uni_modules/nutui-uni/components/button/button.js")+(()=>"../../uni_modules/nutui-uni/components/form/form.js")+(()=>"../../uni_modules/nutui-uni/components/picker/picker.js")+(()=>"../../uni_modules/nutui-uni/components/popup/popup.js")+(()=>"../../uni_modules/nutui-uni/components/cascader/cascader.js"))();const t={__name:"goodsAdd",setup(t){const a=()=>{e.index.scanCode({onlyFromCamera:!0,success:e=>{console.log(e),r.goods_no=e.result},fail:()=>{e.index.showToast({icon:"none",title:"扫码失败"})}})},l=e.reactive({}),i=e.ref(!1),u=e.ref(!1),s=e.ref([]),d=e.ref([]),r=e.reactive({goods_name:"",goods_no:"",goods_price:"",goods_stock:"",content:"",details_content:"",status:"10",images:[],add_person:"",degree_id:0,degree_name:"未选择",type_id:0,type_name:"未选择",brand_id:0,brand_name:"未选择",product_id:0,product_name:"未选择"}),m=(...e)=>{},p=()=>{console.log("form====>",r),o.fetchGoodsAdd(r).then((o=>{e.index.showToast({icon:"none",title:"新增商品成功"}),setTimeout((()=>{e.index.navigateBack({delta:1})}),500)}))},c=e=>{console.log(e),r.type_id=0,r.type_name="",r.brand_id=0,r.brand_name="",r.product_id=0,r.product_name="",e.length>=1&&null!==e[0]&&(r.type_id=e[0].value,r.type_name=e[0].text),e.length>=2&&null!==e[1]&&(r.brand_id=e[1].value,r.brand_name=e[1].text),e.length>=3&&null!==e[2]&&(r.product_id=e[2].value,r.product_name=e[2].text)},_=()=>{r.degree_id=s.value[0],l.degree_list.forEach((e=>{e.degree_id===r.degree_id&&(r.degree_name=e.degree_name)})),u.value=!1};e.onMounted((()=>{o.fetchFilterParmas(1).then((e=>{Object.assign(l,e),l.degree_list.unshift({degree_id:0,degree_name:"未选择"}),console.log("filter_params",l)}))}));const g=()=>{var o;e.index.chooseImage({count:9-((null==(o=r.image)?void 0:o.length)||0),sourceType:["album","camera"],success:o=>{o.tempFiles.forEach((o=>{e.index.uploadFile({url:n.getUploadImageUrl(),filePath:o.path,name:"iFile",formData:{group_id:1},success:e=>{let o=JSON.parse(e.data).data;r.images.push({id:parseInt(o.file_id),file_path:o.file_path})}})}))}})};return(o,n)=>({a:e.o((e=>r.goods_name=e)),b:e.p({placeholder:"请输入名称",type:"text",modelValue:r.goods_name}),c:e.p({label:"名称"}),d:e.o(a),e:e.p({name:"scan2",size:"30","custom-color":"#000000"}),f:e.o((e=>r.goods_no=e)),g:e.p({placeholder:"请输入串号",type:"text",modelValue:r.goods_no}),h:e.p({label:"串号"}),i:e.o((e=>r.goods_price=e)),j:e.p({placeholder:"请输入售价",type:"nubmer",modelValue:r.goods_price}),k:e.p({label:"售价"}),l:e.o((e=>r.content=e)),m:e.p({autosize:!0,placeholder:"请输入说明",type:"text",modelValue:r.content}),n:e.p({label:"说明"}),o:e.o((e=>r.details_content=e)),p:e.p({autosize:!0,placeholder:"请输入介绍",type:"text",modelValue:r.details_content}),q:e.p({label:"介绍"}),r:e.p({label:"10"}),s:e.p({label:"20"}),t:e.o((e=>r.status=e)),v:e.p({direction:"horizontal",modelValue:r.status}),w:e.p({label:"状态"}),x:e.t(r.degree_name),y:e.o((e=>u.value=!0)),z:e.t(r.type_name),A:e.t(r.brand_name),B:e.t(r.product_name),C:e.o((e=>i.value=!0)),D:e.o((e=>r.images=e)),E:e.p({number:9,"add-image":g,keyName:"file_path",modelValue:r.images}),F:e.o(p),G:e.p({type:"primary",block:!0}),H:e.o(_),I:e.o((e=>u.value=!1)),J:e.o((e=>s.value=e)),K:e.p({columns:l.degree_list,"field-names":{text:"degree_name",value:"degree_id"},title:"选择成色",modelValue:s.value}),L:e.o((e=>u.value=e)),M:e.p({position:"bottom","safe-area-inset-bottom":!0,visible:u.value}),N:e.o(m),O:e.o(c),P:e.o((e=>i.value=e)),Q:e.o((e=>d.value=e)),R:e.p({title:"机型选择","text-key":"label","value-key":"value","title-ellipsis":!1,"children-key":"children",options:l.drop_down_options,visible:i.value,modelValue:d.value})})}},a=e._export_sfc(t,[["__scopeId","data-v-22116fcf"]]);wx.createPage(a);
|
||||
@@ -1 +0,0 @@
|
||||
<view class="page-content data-v-22116fcf"><view class="data-v-22116fcf" style="padding:20rpx"><nut-form class="data-v-22116fcf" u-s="{{['d']}}" u-i="22116fcf-0" bind:__l="__l"><nut-form-item wx:if="{{c}}" class="data-v-22116fcf" u-s="{{['d']}}" u-i="22116fcf-1,22116fcf-0" bind:__l="__l" u-p="{{c}}"><nut-input wx:if="{{b}}" class="nut-input-text data-v-22116fcf" u-i="22116fcf-2,22116fcf-1" bind:__l="__l" bindupdateModelValue="{{a}}" u-p="{{b}}"/></nut-form-item><nut-form-item wx:if="{{h}}" class="data-v-22116fcf" u-s="{{['d']}}" u-i="22116fcf-3,22116fcf-0" bind:__l="__l" u-p="{{h}}"><nut-input wx:if="{{g}}" u-s="{{['right']}}" class="nut-input-text data-v-22116fcf" u-i="22116fcf-4,22116fcf-3" bind:__l="__l" bindupdateModelValue="{{f}}" u-p="{{g}}"><nut-icon class="data-v-22116fcf" bindclick="{{d}}" u-i="22116fcf-5,22116fcf-4" bind:__l="__l" u-p="{{e}}" slot="right"/></nut-input></nut-form-item><nut-form-item wx:if="{{k}}" class="data-v-22116fcf" u-s="{{['d']}}" u-i="22116fcf-6,22116fcf-0" bind:__l="__l" u-p="{{k}}"><nut-input wx:if="{{j}}" class="nut-input-text data-v-22116fcf" u-i="22116fcf-7,22116fcf-6" bind:__l="__l" bindupdateModelValue="{{i}}" u-p="{{j}}"/></nut-form-item><nut-form-item wx:if="{{n}}" class="data-v-22116fcf" u-s="{{['d']}}" u-i="22116fcf-8,22116fcf-0" bind:__l="__l" u-p="{{n}}"><nut-textarea wx:if="{{m}}" class="data-v-22116fcf" u-i="22116fcf-9,22116fcf-8" bind:__l="__l" bindupdateModelValue="{{l}}" u-p="{{m}}"/></nut-form-item><nut-form-item wx:if="{{q}}" class="data-v-22116fcf" u-s="{{['d']}}" u-i="22116fcf-10,22116fcf-0" bind:__l="__l" u-p="{{q}}"><nut-textarea wx:if="{{p}}" class="data-v-22116fcf" u-i="22116fcf-11,22116fcf-10" bind:__l="__l" bindupdateModelValue="{{o}}" u-p="{{p}}"/></nut-form-item><nut-form-item wx:if="{{w}}" class="data-v-22116fcf" u-s="{{['d']}}" u-i="22116fcf-12,22116fcf-0" bind:__l="__l" u-p="{{w}}"><nut-radio-group wx:if="{{v}}" class="data-v-22116fcf" u-s="{{['d']}}" u-i="22116fcf-13,22116fcf-12" bind:__l="__l" bindupdateModelValue="{{t}}" u-p="{{v}}"><nut-radio wx:if="{{r}}" class="data-v-22116fcf" u-s="{{['d']}}" u-i="22116fcf-14,22116fcf-13" bind:__l="__l" u-p="{{r}}">下架</nut-radio><nut-radio wx:if="{{s}}" class="data-v-22116fcf" u-s="{{['d']}}" u-i="22116fcf-15,22116fcf-13" bind:__l="__l" u-p="{{s}}">上架</nut-radio></nut-radio-group></nut-form-item><nut-form-item class="data-v-22116fcf" u-s="{{['label','d']}}" u-i="22116fcf-16,22116fcf-0" bind:__l="__l"><view slot="label">成色</view><view class="data-v-22116fcf" style="color:black" bindtap="{{y}}"><text class="data-v-22116fcf">{{x}}</text></view></nut-form-item><nut-form-item class="data-v-22116fcf" u-s="{{['label','d']}}" u-i="22116fcf-17,22116fcf-0" bind:__l="__l"><view slot="label">机型</view><view class="data-v-22116fcf" style="color:black" bindtap="{{C}}"><text class="data-v-22116fcf">{{z}},{{A}},{{B}}</text></view></nut-form-item><nut-form-item class="data-v-22116fcf" u-s="{{['label','d']}}" u-i="22116fcf-18,22116fcf-0" bind:__l="__l"><view slot="label">商品图片</view><shmily-drag-image class="data-v-22116fcf" u-i="22116fcf-19,22116fcf-18" bind:__l="__l" bindupdateModelValue="{{D}}" u-p="{{E}}"></shmily-drag-image></nut-form-item><view class="data-v-22116fcf" style="align-items:center;text-align:center;padding:20rpx 60rpx"><nut-button wx:if="{{G}}" class="data-v-22116fcf" u-s="{{['d']}}" bindclick="{{F}}" u-i="22116fcf-20,22116fcf-0" bind:__l="__l" u-p="{{G}}"> 新增商品 </nut-button></view></nut-form></view><nut-popup wx:if="{{M}}" class="data-v-22116fcf" u-s="{{['d']}}" u-i="22116fcf-21" bind:__l="__l" bindupdateVisible="{{L}}" u-p="{{M}}"><nut-picker wx:if="{{K}}" class="data-v-22116fcf" bindconfirm="{{H}}" bindcancel="{{I}}" u-i="22116fcf-22,22116fcf-21" bind:__l="__l" bindupdateModelValue="{{J}}" u-p="{{K}}"></nut-picker></nut-popup><nut-cascader wx:if="{{R}}" class="data-v-22116fcf" bindchange="{{N}}" bindpathChange="{{O}}" u-i="22116fcf-23" bind:__l="__l" bindupdateVisible="{{P}}" bindupdateModelValue="{{Q}}" u-p="{{R}}"></nut-cascader></view>
|
||||
@@ -1 +0,0 @@
|
||||
.page-content.data-v-22116fcf{min-height:100vh;background-color:#f2f3f5}.list.data-v-22116fcf{display:flex;justify-content:center;flex-direction:column;background:#fff;align-items:center;max-height:300rpx;overflow-y:scroll;padding:10px}.list .list-item.data-v-22116fcf{border-bottom:1px solid #eee;padding:20rpx 10rpx}
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),t=require("../../api/goods.js"),o=require("../../api/config.js");if(!Array){(e.resolveComponent("nut-watermark")+e.resolveComponent("nut-cell-group"))()}Math||((()=>"../../uni_modules/nutui-uni/components/watermark/watermark.js")+(()=>"../../uni_modules/nutui-uni/components/cellgroup/cellgroup.js"))();const a={__name:"goodsDetail",setup(a){const n=e.ref(""),i=e.ref(0),l=e.reactive({});e.onLoad((e=>{console.log("init"),s(),i.value=e.id,t.fetchGoodsDetail(i.value).then((e=>{Object.assign(l,e)}))}));const s=()=>{o.fetchGetConfig().then((e=>{console.log("getConfig=====>",e),n.value=e.appConfig.service_txt}))};e.onShareTimeline((e=>({title:l.goods_name,path:"/pages/mall/detail?id="+l.goods_id,imageUrl:l.image[0].file_path}))),e.onShareAppMessage((e=>({title:l.goods_name,path:"/pages/mall/detail?id="+l.goods_id,imageUrl:l.image[0].file_path})));return(t,o)=>{var a,i,s,u,r,d,g;return e.e({a:10===(null==(a=l.status)?void 0:a.value)},10===(null==(i=l.status)?void 0:i.value)?{b:e.p({"z-index":1,content:"此商品已下架"})}:{},{c:30===(null==(s=l.status)?void 0:s.value)},30===(null==(u=l.status)?void 0:u.value)?{d:e.p({"z-index":1,content:"此商品已锁定"})}:{},{e:40===(null==(r=l.status)?void 0:r.value)},40===(null==(d=l.status)?void 0:d.value)?{f:e.p({"z-index":1,content:"此商品已售出"})}:{},{g:e.f(l.image,((t,o,a)=>({a:t.file_path,b:e.o((t=>{return a=o,void e.index.previewImage({current:a,urls:l.image.map((e=>e.file_path))});var a}),o),c:o}))),h:e.t(l.goods_price),i:e.t(null==(g=l.degree)?void 0:g.degree_name),j:e.t(l.goods_name),k:e.t(l.content),l:e.t(n.value)})}}},n=e._export_sfc(a,[["__scopeId","data-v-6b400d76"]]);a.__runtimeHooks=6,wx.createPage(n);
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "店铺商品详情",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"nut-watermark": "../../uni_modules/nutui-uni/components/watermark/watermark",
|
||||
"nut-cell-group": "../../uni_modules/nutui-uni/components/cellgroup/cellgroup"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<view class="content data-v-6b400d76"><nut-watermark wx:if="{{a}}" class="mark1 data-v-6b400d76" u-i="6b400d76-0" bind:__l="__l" u-p="{{b}}"></nut-watermark><nut-watermark wx:if="{{c}}" class="mark1 data-v-6b400d76" u-i="6b400d76-1" bind:__l="__l" u-p="{{d}}"></nut-watermark><nut-watermark wx:if="{{e}}" class="mark1 data-v-6b400d76" u-i="6b400d76-2" bind:__l="__l" u-p="{{f}}"></nut-watermark><swiper class="swiper data-v-6b400d76" circular indicator-dots autoplay><swiper-item wx:for="{{g}}" wx:for-item="item" wx:key="c" class="data-v-6b400d76" bindtap="{{item.b}}"><image class="data-v-6b400d76" src="{{item.a}}" mode="aspectFill"></image></swiper-item></swiper><view class="goods_info data-v-6b400d76"><nut-cell-group class="data-v-6b400d76" u-s="{{['d']}}" u-i="6b400d76-3" bind:__l="__l"><view class="price data-v-6b400d76"><text class="unit data-v-6b400d76">¥</text><text class="value data-v-6b400d76">{{h}}</text></view></nut-cell-group><nut-cell-group class="data-v-6b400d76" u-s="{{['d']}}" u-i="6b400d76-4" bind:__l="__l"><view class="name data-v-6b400d76"><view class="top data-v-6b400d76"><view class="tag data-v-6b400d76"><text class="data-v-6b400d76">{{i}}</text></view><text class="title data-v-6b400d76">{{j}}</text></view><view class="data-v-6b400d76"><text class="info data-v-6b400d76">{{k}}</text></view></view></nut-cell-group><view class="service data-v-6b400d76"><view class="info data-v-6b400d76"><text class="title data-v-6b400d76">服务</text><text class="value data-v-6b400d76">{{l}}</text></view></view></view></view>
|
||||
@@ -1 +0,0 @@
|
||||
.bottom-action.data-v-6b400d76{position:fixed;bottom:0;left:0;height:50px;background:#fff;width:calc(100% - 20px);display:flex;align-items:center;justify-content:space-between;margin:0 auto;padding:5px 10px}.bottom-action .bottom-action-icon.data-v-6b400d76{align-items:center;display:flex;justify-content:center}.bottom-action .bottom-action-icon .bottom-action-icon-item.data-v-6b400d76{align-items:center;display:flex;flex-direction:column;justify-content:center}.bottom-action .bottom-action-icon .bottom-action-icon-item text.data-v-6b400d76{color:rgba(0,0,0,.5);font-size:11px}.bottom-action .bottom-action-btn.data-v-6b400d76{-ms-flex-align:center;-ms-flex-pack:end;align-items:center;display:flex;gap:5px;justify-content:flex-end}.content.data-v-6b400d76{display:flex;flex-direction:column;min-height:calc(100vh - 50px);background-color:#f2f3f5;--nut-cell-group-title-color: #000;--nut-collapse-item-padding: 10px 10px 10px 10px;--nut-collapse-wrapper-content-padding: 10px 10px 10px 10px;--nut-collapse-item-color: #000;padding-bottom:50px}.report-inner.data-v-6b400d76{display:flex;flex-direction:column;gap:5px}.report-inner .report-item .report-item-name.data-v-6b400d76{color:rgba(0,0,0,.9);font-weight:700}.report-inner .report-item .report-item-content.data-v-6b400d76{display:flex;flex-wrap:wrap}.report-inner .report-item .report-item-content .report-item-content-item.data-v-6b400d76{padding-top:2px;padding-bottom:2px;width:50%;display:flex;align-items:center}.count-item.data-v-6b400d76{display:flex;justify-content:center;align-items:center;gap:2px}.swiper.data-v-6b400d76{width:100%;height:414px}.swiper image.data-v-6b400d76{width:100%;height:100%}.goods_info.data-v-6b400d76{padding:5px;color:#000}.goods_info .price.data-v-6b400d76{border-radius:5px;padding:10px;background:#fff}.goods_info .price .unit.data-v-6b400d76{font-size:12px}.goods_info .price .value.data-v-6b400d76{font-size:24px}.goods_info .name.data-v-6b400d76{border-radius:5px;padding:10px;background:#fff;display:flex;gap:5px;flex-direction:column}.goods_info .name .top.data-v-6b400d76{display:flex;gap:5px}.goods_info .name .top .tag.data-v-6b400d76{background:#000;padding:1px 2px;justify-content:center;align-items:center;display:flex;border-radius:2px}.goods_info .name .top .tag text.data-v-6b400d76{font-size:10px;color:#fff}.goods_info .name .top .title.data-v-6b400d76{font-size:16px}.goods_info .name .info.data-v-6b400d76{color:rgba(0,0,0,.7);font-size:13px}.goods_info .service.data-v-6b400d76{border-radius:5px;padding:10px;background:#fff;display:flex;align-items:center;justify-content:space-between}.goods_info .service .info.data-v-6b400d76{display:flex;flex-direction:column;justify-content:center;gap:5px}.goods_info .service .info .title.data-v-6b400d76{font-size:16px}.goods_info .service .info .value.data-v-6b400d76{color:rgba(0,0,0,.7);font-size:13px}.goods_info .service .right_icon.data-v-6b400d76{background-color:currentColor;-webkit-mask:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPjxwYXRoIGZpbGw9IiMxQTFBMUEiIGQ9Ik0zNTMuODMgMTU4LjE3YTQyLjY3IDQyLjY3IDAgMSAxIDYwLjM0LTYwLjM0bDM4NCAzODRhNDIuNjcgNDIuNjcgMCAwIDEgMCA2MC4zNmwtMzg0IDM4NGE0Mi42NyA0Mi42NyAwIDEgMS02MC4zNC02MC4zNkw3MDcuNjcgNTEyeiIvPjwvc3ZnPg==) 0 0/100% 100% no-repeat;mask:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPjxwYXRoIGZpbGw9IiMxQTFBMUEiIGQ9Ik0zNTMuODMgMTU4LjE3YTQyLjY3IDQyLjY3IDAgMSAxIDYwLjM0LTYwLjM0bDM4NCAzODRhNDIuNjcgNDIuNjcgMCAwIDEgMCA2MC4zNmwtMzg0IDM4NGE0Mi42NyA0Mi42NyAwIDEgMS02MC4zNC02MC4zNkw3MDcuNjcgNTEyeiIvPjwvc3ZnPg==) 0 0/100% 100% no-repeat;width:12px;height:12px}.goods_info .report.data-v-6b400d76{border-radius:5px;padding:1px;background:#fff}
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
<view class="page-content data-v-47f7dfde"><view wx:if="{{a}}" class="data-v-47f7dfde" style="padding:20rpx"><nut-form class="data-v-47f7dfde" u-s="{{['d']}}" u-i="47f7dfde-0" bind:__l="__l"><nut-form-item wx:if="{{d}}" class="data-v-47f7dfde" u-s="{{['d']}}" u-i="47f7dfde-1,47f7dfde-0" bind:__l="__l" u-p="{{d}}"><nut-input wx:if="{{c}}" class="nut-input-text data-v-47f7dfde" u-i="47f7dfde-2,47f7dfde-1" bind:__l="__l" bindupdateModelValue="{{b}}" u-p="{{c}}"/></nut-form-item><nut-form-item wx:if="{{i}}" class="data-v-47f7dfde" u-s="{{['d']}}" u-i="47f7dfde-3,47f7dfde-0" bind:__l="__l" u-p="{{i}}"><nut-input wx:if="{{h}}" u-s="{{['right']}}" class="nut-input-text data-v-47f7dfde" u-i="47f7dfde-4,47f7dfde-3" bind:__l="__l" bindupdateModelValue="{{g}}" u-p="{{h}}"><nut-icon class="data-v-47f7dfde" bindclick="{{e}}" u-i="47f7dfde-5,47f7dfde-4" bind:__l="__l" u-p="{{f}}" slot="right"/></nut-input></nut-form-item><nut-form-item wx:if="{{l}}" class="data-v-47f7dfde" u-s="{{['d']}}" u-i="47f7dfde-6,47f7dfde-0" bind:__l="__l" u-p="{{l}}"><nut-input wx:if="{{k}}" class="nut-input-text data-v-47f7dfde" u-i="47f7dfde-7,47f7dfde-6" bind:__l="__l" bindupdateModelValue="{{j}}" u-p="{{k}}"/></nut-form-item><nut-form-item wx:if="{{o}}" class="data-v-47f7dfde" u-s="{{['d']}}" u-i="47f7dfde-8,47f7dfde-0" bind:__l="__l" u-p="{{o}}"><nut-textarea wx:if="{{n}}" class="data-v-47f7dfde" u-i="47f7dfde-9,47f7dfde-8" bind:__l="__l" bindupdateModelValue="{{m}}" u-p="{{n}}"/></nut-form-item><nut-form-item wx:if="{{r}}" class="data-v-47f7dfde" u-s="{{['d']}}" u-i="47f7dfde-10,47f7dfde-0" bind:__l="__l" u-p="{{r}}"><nut-textarea wx:if="{{q}}" class="data-v-47f7dfde" u-i="47f7dfde-11,47f7dfde-10" bind:__l="__l" bindupdateModelValue="{{p}}" u-p="{{q}}"/></nut-form-item><nut-form-item wx:if="{{x}}" class="data-v-47f7dfde" u-s="{{['d']}}" u-i="47f7dfde-12,47f7dfde-0" bind:__l="__l" u-p="{{x}}"><nut-radio-group wx:if="{{w}}" class="data-v-47f7dfde" u-s="{{['d']}}" u-i="47f7dfde-13,47f7dfde-12" bind:__l="__l" bindupdateModelValue="{{v}}" u-p="{{w}}"><nut-radio wx:if="{{s}}" class="data-v-47f7dfde" u-s="{{['d']}}" u-i="47f7dfde-14,47f7dfde-13" bind:__l="__l" u-p="{{s}}">下架</nut-radio><nut-radio wx:if="{{t}}" class="data-v-47f7dfde" u-s="{{['d']}}" u-i="47f7dfde-15,47f7dfde-13" bind:__l="__l" u-p="{{t}}">上架</nut-radio></nut-radio-group></nut-form-item><nut-form-item class="data-v-47f7dfde" u-s="{{['label','d']}}" u-i="47f7dfde-16,47f7dfde-0" bind:__l="__l"><view slot="label">成色</view><view class="data-v-47f7dfde" style="color:black" bindtap="{{z}}"><text class="data-v-47f7dfde">{{y}}</text></view></nut-form-item><nut-form-item class="data-v-47f7dfde" u-s="{{['label','d']}}" u-i="47f7dfde-17,47f7dfde-0" bind:__l="__l"><view slot="label">机型</view><view class="data-v-47f7dfde" style="color:black" bindtap="{{D}}"><text class="data-v-47f7dfde">{{A}},{{B}},{{C}}</text></view></nut-form-item><nut-form-item class="data-v-47f7dfde" u-s="{{['label','d']}}" u-i="47f7dfde-18,47f7dfde-0" bind:__l="__l"><view slot="label">商品图片</view><shmily-drag-image class="data-v-47f7dfde" u-i="47f7dfde-19,47f7dfde-18" bind:__l="__l" bindupdateModelValue="{{E}}" u-p="{{F}}"></shmily-drag-image></nut-form-item><view class="data-v-47f7dfde" style="align-items:center;text-align:center;padding:20rpx 60rpx"><nut-button wx:if="{{H}}" class="data-v-47f7dfde" u-s="{{['d']}}" bindclick="{{G}}" u-i="47f7dfde-20,47f7dfde-0" bind:__l="__l" u-p="{{H}}"> 保存修改 </nut-button></view></nut-form></view><nut-popup wx:if="{{N}}" class="data-v-47f7dfde" u-s="{{['d']}}" u-i="47f7dfde-21" bind:__l="__l" bindupdateVisible="{{M}}" u-p="{{N}}"><nut-picker wx:if="{{L}}" class="data-v-47f7dfde" bindconfirm="{{I}}" bindcancel="{{J}}" u-i="47f7dfde-22,47f7dfde-21" bind:__l="__l" bindupdateModelValue="{{K}}" u-p="{{L}}"></nut-picker></nut-popup><nut-cascader wx:if="{{S}}" class="data-v-47f7dfde" bindchange="{{O}}" bindpathChange="{{P}}" u-i="47f7dfde-23" bind:__l="__l" bindupdateVisible="{{Q}}" bindupdateModelValue="{{R}}" u-p="{{S}}"></nut-cascader></view>
|
||||
@@ -1 +0,0 @@
|
||||
.page-content.data-v-47f7dfde{min-height:100vh;background-color:#f2f3f5;--nut-searchbar-input-height: 40px}
|
||||
File diff suppressed because one or more lines are too long
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "商品管理",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"nut-button": "../../uni_modules/nutui-uni/components/button/button",
|
||||
"nut-searchbar": "../../uni_modules/nutui-uni/components/searchbar/searchbar",
|
||||
"nut-menu-item": "../../uni_modules/nutui-uni/components/menuitem/menuitem",
|
||||
"nut-menu": "../../uni_modules/nutui-uni/components/menu/menu",
|
||||
"nut-tag": "../../uni_modules/nutui-uni/components/tag/tag",
|
||||
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,19 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "价格调整",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"z-tabs": "../../uni_modules/z-tabs/components/z-tabs/z-tabs",
|
||||
"nut-noticebar": "../../uni_modules/nutui-uni/components/noticebar/noticebar",
|
||||
"nut-button": "../../uni_modules/nutui-uni/components/button/button",
|
||||
"nut-input": "../../uni_modules/nutui-uni/components/input/input",
|
||||
"nut-radio": "../../uni_modules/nutui-uni/components/radio/radio",
|
||||
"nut-radio-group": "../../uni_modules/nutui-uni/components/radiogroup/radiogroup",
|
||||
"nut-menu-item": "../../uni_modules/nutui-uni/components/menuitem/menuitem",
|
||||
"nut-menu": "../../uni_modules/nutui-uni/components/menu/menu",
|
||||
"nut-tag": "../../uni_modules/nutui-uni/components/tag/tag",
|
||||
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging",
|
||||
"nut-popup": "../../uni_modules/nutui-uni/components/popup/popup",
|
||||
"nut-switch": "../../uni_modules/nutui-uni/components/switch/switch",
|
||||
"nut-cell": "../../uni_modules/nutui-uni/components/cell/cell"
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -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"))()}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"))();const t={__name:"detail",setup(t){const i=e.ref(!0),a=e.ref(0),r=e.reactive({}),p=e.ref([]);e.onLoad((e=>{a.value=e.id})),e.onShow((()=>{c(),o.fetchOrderDetail(a.value).then((e=>{Object.assign(r,e)}))}));const c=()=>{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 a=s.concat(t);p.value=a}))};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:r.progress}),f:r.address_info},r.address_info?{g:e.t(r.address_info.user_name),h:e.t(r.address_info.tel_number),i:e.t(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)}:{},{j:e.f(r.goods,((o,s,t)=>({a:e.t(o.snapshot_info.degree.degree_name),b:"c5a9af03-9-"+t+",c5a9af03-8-"+t,c:e.t(o.goods_name),d:e.t(o.goods_no),e:"c5a9af03-10-"+t+",c5a9af03-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:"c5a9af03-8-"+t+",c5a9af03-7"}))),k:e.p({"custom-color":"#1a1a1a"}),l:e.p({center:!0}),m:e.p({price:r.pay_price,size:"normal","need-symbol":!0}),n:e.p({title:"订单编号",desc:r.order_no}),o:e.p({title:"下单时间",desc:r.create_time}),p:r.progress>=3},r.progress>=3?{q:e.p({title:"物流公司",desc:r.express_company}),r:e.p({title:"物流单号",desc:r.express_no})}:{})}},i=e._export_sfc(t,[["__scopeId","data-v-c5a9af03"]]);wx.createPage(i);
|
||||
@@ -1,11 +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"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<view class="page-content data-v-c5a9af03"><nut-steps wx:if="{{e}}" class="data-v-c5a9af03" u-s="{{['d']}}" u-i="c5a9af03-0" bind:__l="__l" u-p="{{e}}"><nut-step wx:if="{{a}}" class="data-v-c5a9af03" u-s="{{['d']}}" u-i="c5a9af03-1,c5a9af03-0" bind:__l="__l" u-p="{{a}}">1</nut-step><nut-step wx:if="{{b}}" class="data-v-c5a9af03" u-s="{{['d']}}" u-i="c5a9af03-2,c5a9af03-0" bind:__l="__l" u-p="{{b}}">2</nut-step><nut-step wx:if="{{c}}" class="data-v-c5a9af03" u-s="{{['d']}}" u-i="c5a9af03-3,c5a9af03-0" bind:__l="__l" u-p="{{c}}">3</nut-step><nut-step wx:if="{{d}}" class="data-v-c5a9af03" u-s="{{['d']}}" u-i="c5a9af03-4,c5a9af03-0" bind:__l="__l" u-p="{{d}}">4</nut-step></nut-steps><nut-cell-group class="data-v-c5a9af03" u-s="{{['d']}}" u-i="c5a9af03-5" bind:__l="__l"><nut-cell class="data-v-c5a9af03" u-s="{{['d']}}" u-i="c5a9af03-6,c5a9af03-5" bind:__l="__l"><view wx:if="{{f}}" class="address-inner data-v-c5a9af03"><text class="data-v-c5a9af03">{{g}} - {{h}}</text><text class="data-v-c5a9af03">{{i}}</text></view></nut-cell></nut-cell-group><nut-cell-group class="data-v-c5a9af03" u-s="{{['d']}}" u-i="c5a9af03-7" bind:__l="__l"><nut-cell wx:for="{{j}}" wx:for-item="goods" wx:key="g" class="data-v-c5a9af03" u-s="{{['title','link']}}" bindclick="{{goods.h}}" u-i="{{goods.i}}" bind:__l="__l" u-p="{{l}}"><view class="goods-info-row data-v-c5a9af03" slot="title"><view class="left-text data-v-c5a9af03"><view class="goods-name data-v-c5a9af03"><nut-tag wx:if="{{k}}" class="data-v-c5a9af03" u-s="{{['d']}}" u-i="{{goods.b}}" bind:__l="__l" u-p="{{k}}">{{goods.a}}</nut-tag><text class="data-v-c5a9af03" style="margin-left:10rpx">{{goods.c}}</text></view><text class="goods-no data-v-c5a9af03">串号:{{goods.d}}</text></view></view><nut-price class="data-v-c5a9af03" u-i="{{goods.e}}" bind:__l="__l" u-p="{{goods.f}}" slot="link"/></nut-cell></nut-cell-group><nut-cell-group class="data-v-c5a9af03" u-s="{{['d']}}" u-i="c5a9af03-11" bind:__l="__l"><nut-cell class="data-v-c5a9af03" u-s="{{['d']}}" u-i="c5a9af03-12,c5a9af03-11" bind:__l="__l"><view class="total-price-inner data-v-c5a9af03"><text class="data-v-c5a9af03">商品总额</text><nut-price wx:if="{{m}}" class="data-v-c5a9af03" u-i="c5a9af03-13,c5a9af03-12" bind:__l="__l" u-p="{{m}}"/></view></nut-cell></nut-cell-group><nut-cell-group class="data-v-c5a9af03" u-s="{{['d']}}" u-i="c5a9af03-14" bind:__l="__l"><nut-cell wx:if="{{n}}" class="data-v-c5a9af03" u-i="c5a9af03-15,c5a9af03-14" bind:__l="__l" u-p="{{n}}"/><nut-cell wx:if="{{o}}" class="data-v-c5a9af03" u-i="c5a9af03-16,c5a9af03-14" bind:__l="__l" u-p="{{o}}"/></nut-cell-group><nut-cell-group wx:if="{{p}}" class="data-v-c5a9af03" u-s="{{['d']}}" u-i="c5a9af03-17" bind:__l="__l"><nut-cell wx:if="{{q}}" class="data-v-c5a9af03" u-i="c5a9af03-18,c5a9af03-17" bind:__l="__l" u-p="{{q}}"/><nut-cell wx:if="{{r}}" class="data-v-c5a9af03" u-i="c5a9af03-19,c5a9af03-17" bind:__l="__l" u-p="{{r}}"/></nut-cell-group></view>
|
||||
@@ -1 +0,0 @@
|
||||
.page-content.data-v-c5a9af03{min-height:100vh;background-color:#f2f3f5;padding:20rpx}.address-inner.data-v-c5a9af03{display:flex;flex-direction:column;justify-content:center}.total-price-inner.data-v-c5a9af03{width:100%;display:flex;justify-content:space-between;align-items:center}.total-price-inner view.data-v-c5a9af03:nth-child(2){color:#fa2c19}.wechat-img-inner.data-v-c5a9af03{margin-top:60rpx;padding:0rpx 80rpx;display:flex;align-items:center;justify-content:center;flex-direction:column}
|
||||
File diff suppressed because one or more lines are too long
@@ -1,19 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "店铺订单",
|
||||
"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",
|
||||
"nut-cell": "../../../uni_modules/nutui-uni/components/cell/cell",
|
||||
"nut-cell-group": "../../../uni_modules/nutui-uni/components/cellgroup/cellgroup",
|
||||
"nut-input": "../../../uni_modules/nutui-uni/components/input/input",
|
||||
"nut-form-item": "../../../uni_modules/nutui-uni/components/formitem/formitem",
|
||||
"nut-form": "../../../uni_modules/nutui-uni/components/form/form",
|
||||
"nut-popup": "../../../uni_modules/nutui-uni/components/popup/popup"
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
.page-content.data-v-6ccc5d11{min-height:100vh;background-color:#f2f3f5}.order-popup .address-inner.data-v-6ccc5d11{display:flex;flex-direction:column;justify-content:center}.order-popup .total-price-inner.data-v-6ccc5d11{width:100%;display:flex;justify-content:space-between;align-items:center}.order-popup .total-price-inner view.data-v-6ccc5d11:nth-child(2){color:#fa2c19}.wechat-img-inner.data-v-6ccc5d11{margin-top:60rpx;padding:0rpx 80rpx;display:flex;align-items:center;justify-content:center;flex-direction:column}.order-list.data-v-6ccc5d11{display:flex;flex-direction:column;width:100%}.order-inner.data-v-6ccc5d11{display:flex;flex-direction:column;background:#fff;border-radius:15rpx;overflow:hidden;margin:20rpx}.order-inner .order-inner-header.data-v-6ccc5d11{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-6ccc5d11{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-6ccc5d11{flex:1}.order-inner .goods-info-row .goods-name.data-v-6ccc5d11{font-size:30rpx;color:#000;display:block;margin-bottom:8rpx}.order-inner .goods-info-row .goods-no.data-v-6ccc5d11{font-size:26rpx;color:#000;display:block}.order-inner .goods-info-row .price.data-v-6ccc5d11{margin-left:20rpx;align-self:center}.order-inner .footer.data-v-6ccc5d11{display:flex;flex-direction:column}.order-inner .footer .order-inner-price.data-v-6ccc5d11{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-6ccc5d11{display:flex;padding-top:10rpx;padding-bottom:30rpx;align-items:center;justify-content:flex-end}.title-list.data-v-6ccc5d11{display:flex;justify-content:space-around;align-items:center;width:100%}.title-list .title-item.data-v-6ccc5d11{display:flex;justify-content:space-around;align-items:center;position:relative}.title-list .tabs-active.data-v-6ccc5d11{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-6ccc5d11{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%))}
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),t=require("../../api/config.js"),o=require("../../api/request.js");if(!Array){(e.resolveComponent("nut-input")+e.resolveComponent("nut-form-item")+e.resolveComponent("nut-textarea")+e.resolveComponent("nut-switch")+e.resolveComponent("shmily-drag-image")+e.resolveComponent("nut-button")+e.resolveComponent("nut-form"))()}Math||((()=>"../../uni_modules/nutui-uni/components/input/input.js")+(()=>"../../uni_modules/nutui-uni/components/formitem/formitem.js")+(()=>"../../uni_modules/nutui-uni/components/textarea/textarea.js")+(()=>"../../uni_modules/nutui-uni/components/switch/switch.js")+(()=>"../../uni_modules/shmily-drag-image/components/shmily-drag-image/shmily-drag-image.js")+(()=>"../../uni_modules/nutui-uni/components/button/button.js")+(()=>"../../uni_modules/nutui-uni/components/form/form.js"))();const a={__name:"store",setup(a){const i=e.ref(!1),s=e.ref(!1),p=e.reactive({shop_name:"",shop_desc:"",shop_phone:"",is_audit:0,bulletin_txt:"",service_txt:"",pay_imgs:[],wechat_imgs:[]}),n=e=>{p.is_audit=Number(s.value),console.log(p)},l=()=>{t.fetchSetConfig(p).then((t=>{e.index.showToast({icon:"none",title:"更新商城配置成功"}),setTimeout((()=>{e.index.redirectTo({url:"/pages/config/store",success:e=>{},fail:()=>{},complete:()=>{}})}),500)}))};e.onMounted((()=>{t.fetchGetConfig().then((e=>{console.log("res=====>",e),p.shop_name=e.appConfig.shop_name,p.shop_desc=e.appConfig.shop_desc,p.shop_phone=e.appConfig.shop_phone,p.bulletin_txt=e.appConfig.bulletin_txt,p.service_txt=e.appConfig.service_txt,p.is_audit=e.appConfig.is_audit,s.value=1==e.appConfig.is_audit,e.appConfig.bucket&&(i.value=!0);let t=JSON.parse(e.appConfig.pay_imgs),o=JSON.parse(e.appConfig.wechat_imgs);t.forEach((e=>{p.pay_imgs.push({id:e.image_id,file_path:e.file_path})})),o.forEach((e=>{p.wechat_imgs.push({id:e.image_id,file_path:e.file_path})})),console.log("form=====>",p)}))}));const u=()=>{e.index.chooseImage({count:9-(p.pay_imgs.length||0),sourceType:["album","camera"],success:t=>{t.tempFiles.forEach((t=>{e.index.uploadFile({url:o.getUploadImageUrl(),filePath:t.path,name:"iFile",formData:{group_id:1},success:e=>{let t=JSON.parse(e.data).data;p.pay_imgs.push({id:parseInt(t.file_id),file_path:t.file_path})}})}))}})},m=()=>{e.index.chooseImage({count:9-(p.wechat_imgs.length||0),sourceType:["album","camera"],success:t=>{t.tempFiles.forEach((t=>{e.index.uploadFile({url:o.getUploadImageUrl(),filePath:t.path,name:"iFile",formData:{group_id:1},success:e=>{let t=JSON.parse(e.data).data;p.wechat_imgs.push({id:parseInt(t.file_id),file_path:t.file_path})}})}))}})};return(t,o)=>e.e({a:e.o((e=>p.shop_name=e)),b:e.p({placeholder:"请输入店铺名称",type:"text",modelValue:p.shop_name}),c:e.p({label:"商城名称"}),d:e.o((e=>p.shop_desc=e)),e:e.p({autosize:!0,placeholder:"请输入店铺介绍",type:"text",modelValue:p.shop_desc}),f:e.p({label:"商城介绍"}),g:e.o((e=>p.shop_phone=e)),h:e.p({placeholder:"请输入手机号码",type:"text",modelValue:p.shop_phone}),i:e.p({label:"手机号码"}),j:e.o((e=>p.bulletin_txt=e)),k:e.p({autosize:!0,placeholder:"请输入首页公告",type:"text",modelValue:p.bulletin_txt}),l:e.p({label:"首页公告"}),m:e.o((e=>p.service_txt=e)),n:e.p({autosize:!0,placeholder:"请输入服务描述",type:"text",modelValue:p.service_txt}),o:e.p({label:"服务描述"}),p:e.o(n),q:e.o((e=>s.value=e)),r:e.p({modelValue:s.value}),s:e.p({label:"是否审核模式"}),t:i.value},i.value?{v:e.o((e=>p.pay_imgs=e)),w:e.p({number:9,"add-image":u,keyName:"file_path",modelValue:p.pay_imgs})}:{},{x:i.value},i.value?{y:e.o((e=>p.wechat_imgs=e)),z:e.p({number:9,"add-image":m,keyName:"file_path",modelValue:p.wechat_imgs})}:{},{A:e.o(l),B:e.p({type:"primary"})})}},i=e._export_sfc(a,[["__scopeId","data-v-914575b5"]]);wx.createPage(i);
|
||||
@@ -1 +0,0 @@
|
||||
<view class="page-content data-v-914575b5"><view class="data-v-914575b5" style="padding:20rpx"><nut-form class="data-v-914575b5" u-s="{{['d']}}" u-i="914575b5-0" bind:__l="__l"><nut-form-item wx:if="{{c}}" class="data-v-914575b5" u-s="{{['d']}}" u-i="914575b5-1,914575b5-0" bind:__l="__l" u-p="{{c}}"><nut-input wx:if="{{b}}" class="nut-input-text data-v-914575b5" u-i="914575b5-2,914575b5-1" bind:__l="__l" bindupdateModelValue="{{a}}" u-p="{{b}}"/></nut-form-item><nut-form-item wx:if="{{f}}" class="data-v-914575b5" u-s="{{['d']}}" u-i="914575b5-3,914575b5-0" bind:__l="__l" u-p="{{f}}"><nut-textarea wx:if="{{e}}" class="data-v-914575b5" u-i="914575b5-4,914575b5-3" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"/></nut-form-item><nut-form-item wx:if="{{i}}" class="data-v-914575b5" u-s="{{['d']}}" u-i="914575b5-5,914575b5-0" bind:__l="__l" u-p="{{i}}"><nut-input wx:if="{{h}}" class="nut-input-text data-v-914575b5" u-i="914575b5-6,914575b5-5" bind:__l="__l" bindupdateModelValue="{{g}}" u-p="{{h}}"/></nut-form-item><nut-form-item wx:if="{{l}}" class="data-v-914575b5" u-s="{{['d']}}" u-i="914575b5-7,914575b5-0" bind:__l="__l" u-p="{{l}}"><nut-textarea wx:if="{{k}}" class="data-v-914575b5" u-i="914575b5-8,914575b5-7" bind:__l="__l" bindupdateModelValue="{{j}}" u-p="{{k}}"/></nut-form-item><nut-form-item wx:if="{{o}}" class="data-v-914575b5" u-s="{{['d']}}" u-i="914575b5-9,914575b5-0" bind:__l="__l" u-p="{{o}}"><nut-textarea wx:if="{{n}}" class="data-v-914575b5" u-i="914575b5-10,914575b5-9" bind:__l="__l" bindupdateModelValue="{{m}}" u-p="{{n}}"/></nut-form-item><nut-form-item wx:if="{{s}}" class="data-v-914575b5" u-s="{{['d']}}" u-i="914575b5-11,914575b5-0" bind:__l="__l" u-p="{{s}}"><nut-switch wx:if="{{r}}" class="data-v-914575b5" bindchange="{{p}}" u-i="914575b5-12,914575b5-11" bind:__l="__l" bindupdateModelValue="{{q}}" u-p="{{r}}"/></nut-form-item><nut-form-item wx:if="{{t}}" class="data-v-914575b5" u-s="{{['label','d']}}" u-i="914575b5-13,914575b5-0" bind:__l="__l"><view slot="label">收款二维码</view><shmily-drag-image class="data-v-914575b5" u-i="914575b5-14,914575b5-13" bind:__l="__l" bindupdateModelValue="{{v}}" u-p="{{w}}"></shmily-drag-image></nut-form-item><nut-form-item wx:if="{{x}}" class="data-v-914575b5" u-s="{{['label','d']}}" u-i="914575b5-15,914575b5-0" bind:__l="__l"><view slot="label">微信二维码</view><shmily-drag-image class="data-v-914575b5" u-i="914575b5-16,914575b5-15" bind:__l="__l" bindupdateModelValue="{{y}}" u-p="{{z}}"></shmily-drag-image></nut-form-item><view class="data-v-914575b5" style="align-items:center;text-align:center;padding:20rpx 0rpx"><nut-button wx:if="{{B}}" class="data-v-914575b5" u-s="{{['d']}}" bindclick="{{A}}" u-i="914575b5-17,914575b5-0" bind:__l="__l" u-p="{{B}}"> 保存配置 </nut-button></view></nut-form></view></view>
|
||||
@@ -1 +0,0 @@
|
||||
.page-content.data-v-914575b5{min-height:100vh;background-color:#f2f3f5}.list.data-v-914575b5{display:flex;justify-content:center;flex-direction:column;background:#fff;align-items:center;max-height:300rpx;overflow-y:scroll;padding:10px}.list .list-item.data-v-914575b5{border-bottom:1px solid #eee;padding:20rpx 10rpx}
|
||||
1
unpackage/dist/build/mp-weixin/pages/data/index.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/data/index.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js");if(!Array){e.resolveComponent("nut-calendar")()}Math;const t={__name:"index",setup(t){const o=e=>`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}`,a=e.ref((()=>{const e=new Date;return e.setMonth(e.getMonth()-1),e.setDate(1),o(e)})()),n=e.ref((()=>{const e=new Date;return e.setMonth(e.getMonth()+1),e.setDate(0),o(e)})()),r=e.ref(""),s=e=>{console.log("onChoose",e)},l=t=>{console.log("onSelect",t),e.index.navigateTo({url:`/pages/data/list?date=${t[3]}`})};return e.onLoad((e=>{})),e.onShow((()=>{})),(t,o)=>({a:e.o(s),b:e.o(l),c:e.p({title:"选择想要的日期","show-sub-title":!1,poppable:!1,"default-value":r.value,"start-date":a.value,"end-date":n.value})})}},o=e._export_sfc(t,[["__scopeId","data-v-bb36cf83"]]);wx.createPage(o);
|
||||
7
unpackage/dist/build/mp-weixin/pages/data/index.json
vendored
Normal file
7
unpackage/dist/build/mp-weixin/pages/data/index.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationBarTitleText": "运营数据-选择日期",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"nut-calendar": "../../uni_modules/nutui-uni/components/calendar/calendar"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/data/index.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/data/index.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="page-content data-v-bb36cf83"><nut-calendar wx:if="{{c}}" class="data-v-bb36cf83" bindchoose="{{a}}" bindselect="{{b}}" u-i="bb36cf83-0" bind:__l="__l" u-p="{{c}}"></nut-calendar></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/data/index.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/data/index.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.page-content.data-v-bb36cf83{min-height:100vh;background-color:#f2f3f5}
|
||||
1
unpackage/dist/build/mp-weixin/pages/data/list.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/data/list.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),l=require("../../api/index.js");if(!Array){(e.resolveComponent("nut-sticky")+e.resolveComponent("nut-tag")+e.resolveComponent("z-paging"))()}Math||((()=>"../../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:"list",setup(o){const t=e.ref(0),u=e.ref(0),n=e.ref("");e.onLoad((e=>{n.value=e.date,console.log(n.value),n.value&&d()}));const a=e=>{const l=new Date(e);return`${l.getFullYear()}-${(l.getMonth()+1).toString().padStart(2,"0")}`},v=e.ref([]),i=e.ref(null),d=()=>{l.fetchDashboard({date:n.value}).then((e=>{console.log(e),t.value=e.dayTotalPrice,u.value=e.monthTotalPrice}))},c=(e=1,o=10)=>{console.log(n.value);const t={page:e,pageSize:10,date:n.value};l.fetchDayOrderList(t).then((e=>{console.log(e),i.value.complete(e.list)})).catch((e=>{i.value.complete(!1)}))};return e.onShow((()=>{n.value&&d(),i.value&&i.value.refresh()})),(l,o)=>({a:e.t(n.value),b:e.t(t.value),c:e.t(a(n.value)),d:e.t(u.value),e:e.f(v.value,((l,o,t)=>{var u,n,a,v,i,d,c,r,s,p,f,_,y,m,g,b,h,x,k,j,z,w,P,S,C,D,q,L,M;return e.e({a:1==l.order_type},1==l.order_type?{b:"cc2345bf-2-"+t+",cc2345bf-1",c:e.p({plain:!0,type:"primary"})}:{e:"cc2345bf-3-"+t+",cc2345bf-1",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:"cc2345bf-4-"+t+",cc2345bf-1",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==(v=null==l?void 0:l.status)?void 0:v.text),m:"cc2345bf-5-"+t+",cc2345bf-1",n:e.p({plain:!0,type:"danger"})}:2==(null==(i=null==l?void 0:l.status)?void 0:i.value)?{p:e.t(null==(d=null==l?void 0:l.status)?void 0:d.text),q:"cc2345bf-6-"+t+",cc2345bf-1",r:e.p({plain:!0,type:"success"})}:{},{o:2==(null==(c=null==l?void 0:l.status)?void 0:c.value),s:1==l.order_type&&0!=(null==(r=null==l?void 0:l.fee_type)?void 0:r.value)},1==l.order_type&&0!=(null==(s=null==l?void 0:l.fee_type)?void 0:s.value)?e.e({t:e.t(null==(p=null==l?void 0:l.fee_type)?void 0:p.text),v:"cc2345bf-7-"+t+",cc2345bf-1",w:e.p({plain:!0,"custom-color":"#fa2400"}),x:0==(null==(f=null==l?void 0:l.fee_type)?void 0:f.value)||3==(null==(_=null==l?void 0:l.fee_type)?void 0:_.value)},0==(null==(y=null==l?void 0:l.fee_type)?void 0:y.value)||3==(null==(m=null==l?void 0:l.fee_type)?void 0:m.value)?{}:1==(null==(g=null==l?void 0:l.fee_type)?void 0:g.value)||2==(null==(b=null==l?void 0:l.fee_type)?void 0:b.value)?{z:e.t(null==l?void 0:l.fee_combo_name)}:{},{y:1==(null==(h=null==l?void 0:l.fee_type)?void 0:h.value)||2==(null==(x=null==l?void 0:l.fee_type)?void 0:x.value),A:0==(null==(k=null==l?void 0:l.fee_type)?void 0:k.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==(w=null==l?void 0:l.fee_type)?void 0:w.value)?{B:e.t(null==l?void 0:l.fee_amount)}:1==(null==(P=null==l?void 0:l.fee_type)?void 0:P.value)||2==(null==(S=null==l?void 0:l.fee_type)?void 0:S.value)?{D:e.t(null==l?void 0:l.fee_combo_price)}:{},{C:1==(null==(C=null==l?void 0:l.fee_type)?void 0:C.value)||2==(null==(D=null==l?void 0:l.fee_type)?void 0:D.value),E:e.t(null==(q=null==l?void 0:l.fee_pay_status)?void 0:q.text)}):{},{F:l.over_often>0},l.over_often>0?{G:"cc2345bf-8-"+t+",cc2345bf-1",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==(L=null==l?void 0:l.over_pay_status)?void 0:L.text)}:{},{L:e.f(l.goods,((l,o,u)=>({a:e.t(l.goods_type_name),b:"cc2345bf-9-"+t+"-"+u+",cc2345bf-1",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==(M=null==l?void 0:l.user)?void 0:M.staff_name),T:o})})),f:e.p({plain:!0,"custom-color":"#fa2400"}),g:e.sr(i,"cc2345bf-1",{k:"paging"}),h:e.o(c),i:e.o((e=>v.value=e)),j:e.p({fixed:!1,modelValue:v.value})})}},t=e._export_sfc(o,[["__scopeId","data-v-cc2345bf"]]);wx.createPage(t);
|
||||
9
unpackage/dist/build/mp-weixin/pages/data/list.json
vendored
Normal file
9
unpackage/dist/build/mp-weixin/pages/data/list.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"navigationBarTitleText": "运营数据-数据看板",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"nut-sticky": "../../uni_modules/nutui-uni/components/sticky/sticky",
|
||||
"nut-tag": "../../uni_modules/nutui-uni/components/tag/tag",
|
||||
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/data/list.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/data/list.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="page-content data-v-cc2345bf"><nut-sticky class="data-v-cc2345bf" u-s="{{['d']}}" u-i="cc2345bf-0" bind:__l="__l"><view class="top-bar data-v-cc2345bf"><view class="top-inner-price data-v-cc2345bf"><view class="data-v-cc2345bf" style="display:flex">{{a}}日营业额: <view class="data-v-cc2345bf" style="color:#fa2c19;font-size:26rpx"> ¥{{b}}元 </view></view><view class="data-v-cc2345bf" style="display:flex">{{c}}月营业额: <view class="data-v-cc2345bf" style="color:#fa2c19;font-size:26rpx"> ¥{{d}}</view> 元 </view></view></view></nut-sticky><z-paging wx:if="{{j}}" u-s="{{['d']}}" u-r="paging" style="height:80vh" class="order-list r data-v-cc2345bf" bindquery="{{h}}" u-i="cc2345bf-1" bind:__l="__l" bindupdateModelValue="{{i}}" u-p="{{j}}"><view wx:for="{{e}}" wx:for-item="order" wx:key="T" class="order-inner data-v-cc2345bf"><view class="order-inner-header data-v-cc2345bf"><nut-tag wx:if="{{order.a}}" class="data-v-cc2345bf" u-s="{{['d']}}" u-i="{{order.b}}" bind:__l="__l" u-p="{{order.c}}">房间订单</nut-tag><nut-tag wx:else class="data-v-cc2345bf" 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-cc2345bf" 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-cc2345bf" 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-cc2345bf" 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-cc2345bf"><view class="left-text data-v-cc2345bf"><view class="goods-name data-v-cc2345bf"><nut-tag wx:if="{{order.w}}" class="data-v-cc2345bf" 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-cc2345bf" style="margin-left:10rpx"></text><text wx:elif="{{order.y}}" class="data-v-cc2345bf" style="margin-left:10rpx">{{order.z}}</text></view></view><view wx:if="{{order.A}}" class="price data-v-cc2345bf"> ¥{{order.B}}</view><view wx:elif="{{order.C}}" class="price data-v-cc2345bf"> ¥{{order.D}}</view><view class="goods-pay-status data-v-cc2345bf">{{order.E}}</view></view><view wx:if="{{order.F}}" class="goods-info-row data-v-cc2345bf"><view class="left-text data-v-cc2345bf"><view class="goods-name data-v-cc2345bf"><nut-tag wx:if="{{order.H}}" class="data-v-cc2345bf" u-s="{{['d']}}" u-i="{{order.G}}" bind:__l="__l" u-p="{{order.H}}">超时</nut-tag><text class="data-v-cc2345bf" style="margin-left:10rpx">{{order.I}}小时</text></view></view><view class="price data-v-cc2345bf"> ¥{{order.J}}</view><view class="goods-pay-status data-v-cc2345bf">{{order.K}}</view></view><view wx:for="{{order.L}}" wx:for-item="goods" wx:key="f" class="goods-info-row data-v-cc2345bf"><view class="left-text data-v-cc2345bf"><view class="goods-name data-v-cc2345bf"><nut-tag wx:if="{{f}}" class="data-v-cc2345bf" u-s="{{['d']}}" u-i="{{goods.b}}" bind:__l="__l" u-p="{{f}}">{{goods.a}}</nut-tag><text class="data-v-cc2345bf" style="margin-left:10rpx">{{goods.c}}</text></view></view><view class="price data-v-cc2345bf"> ¥{{goods.d}}</view><view class="goods-pay-status data-v-cc2345bf">{{goods.e}}</view></view><view class="footer data-v-cc2345bf"><view class="order-inner-price data-v-cc2345bf"><view class="data-v-cc2345bf" style="display:flex">优惠: <view class="data-v-cc2345bf" style="color:#fa2c19;font-size:26rpx"> ¥{{order.M}}</view></view><view class="data-v-cc2345bf" style="display:flex">总计: <view class="data-v-cc2345bf" style="color:#fa2c19;font-size:26rpx"> ¥{{order.N}}</view></view></view><view wx:if="{{order.O}}" class="data-v-cc2345bf" style="padding-left:20rpx;font-size:26rpx">备注</view><view wx:if="{{order.P}}" class="remarks data-v-cc2345bf">{{order.Q}}</view><view class="order-inner-price data-v-cc2345bf"><view class="data-v-cc2345bf" style="color:rgba(0, 0, 0, .5);font-size:24rpx">订单时间:{{order.R}}</view><view class="data-v-cc2345bf" style="color:rgba(0, 0, 0, .5);font-size:24rpx">员工:{{order.S}}</view></view></view></view></z-paging></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/data/list.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/data/list.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.page-content.data-v-cc2345bf{min-height:100vh;background-color:#f2f3f5}.top-bar.data-v-cc2345bf{background:#fff;align-items:center;text-align:center;padding:20rpx 60rpx}.top-inner-price.data-v-cc2345bf{display:flex;flex-direction:column;padding:20rpx;font-size:26rpx;align-items:flex-start}.order-list.data-v-cc2345bf{display:flex;flex-direction:column;width:100%}.order-inner.data-v-cc2345bf{display:flex;flex-direction:column;background:#fff;border-radius:15rpx;overflow:hidden;margin:20rpx}.order-inner .order-inner-header.data-v-cc2345bf{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-cc2345bf{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-cc2345bf{flex:1}.order-inner .goods-info-row .goods-name.data-v-cc2345bf{font-size:26rpx;color:#000;display:block}.order-inner .goods-info-row .price.data-v-cc2345bf{font-size:26rpx;margin-left:20rpx;align-self:center;color:#fa2c19}.order-inner .goods-info-row .goods-pay-status.data-v-cc2345bf{font-size:26rpx;margin-left:20rpx;align-self:center}.order-inner .footer.data-v-cc2345bf{display:flex;flex-direction:column}.order-inner .footer .order-inner-price.data-v-cc2345bf{display:flex;justify-content:space-evenly;padding:20rpx;font-size:24rpx;align-items:center}.order-inner .footer .remarks.data-v-cc2345bf{padding:20rpx;color:rgba(0,0,0,.5);font-size:24rpx}
|
||||
1
unpackage/dist/build/mp-weixin/pages/index/goodsOrderAdd.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/goodsOrderAdd.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),o=require("../../api/index.js");if(!Array){(e.resolveComponent("nut-form-item")+e.resolveComponent("nut-button")+e.resolveComponent("nut-form")+e.resolveComponent("nut-input")+e.resolveComponent("nut-textarea")+e.resolveComponent("nut-cascader")+e.resolveComponent("nut-picker")+e.resolveComponent("nut-popup"))()}Math||((()=>"../../uni_modules/nutui-uni/components/formitem/formitem.js")+(()=>"../../uni_modules/nutui-uni/components/button/button.js")+(()=>"../../uni_modules/nutui-uni/components/form/form.js")+(()=>"../../uni_modules/nutui-uni/components/input/input.js")+(()=>"../../uni_modules/nutui-uni/components/textarea/textarea.js")+(()=>"../../uni_modules/nutui-uni/components/cascader/cascader.js")+(()=>"../../uni_modules/nutui-uni/components/picker/picker.js")+(()=>"../../uni_modules/nutui-uni/components/popup/popup.js"))();const l={__name:"goodsOrderAdd",setup(l){e.onLoad((e=>{console.log(e)}));const a=e.ref(!1),u=e.ref(""),n=[{value:1,label:"已付"}],s=e=>{"goods"==u.value&&d.value>=0&&(console.log("处理商品支付状态",d.value),t.value[d.value].goods_pay_status_txt=e.selectedOptions[0].label,t.value[d.value].goods_pay_status=e.selectedOptions[0].value),console.log(y),a.value=!1,u.value="",d.value=-1},t=e.ref([]),d=e.ref(0),v=e.ref(0),i=()=>{console.log(t.value),t.value.push({goods_type_name:null,goods_type_id:null,goods_name:null,goods_id:null,goods_price:null,goods_pay_status:1,goods_pay_status_txt:"已付",cascader_val:[]})},p=e.ref(!1),r=e.computed((()=>{var e;let o=[];return v.value>=0?(null==(e=t.value[v.value])?void 0:e.cascader_val)??[]:o})),c=(...e)=>{console.log("onGoodsChange",e)},_=e=>{console.log("onGoodsPathChange",e),console.log("goodsIndex",v.value),console.log("orderGoods.value[goodsIndex.value]",t.value[v.value]),t.value[v.value].goods_type_name=null,t.value[v.value].goods_type_id=null,t.value[v.value].goods_name=null,t.value[v.value].goods_id=null,t.value[v.value].goods_price=null,e.length>=1&&null!==e[0]&&(t.value[v.value].goods_type_name=e[0].text,t.value[v.value].goods_type_id=e[0].value),e.length>=2&&null!==e[1]&&(t.value[v.value].goods_name=e[1].text,t.value[v.value].goods_id=e[1].value,t.value[v.value].goods_price=e[1].goods_price),console.log("orderGoods.value[goodsIndex.value]",t.value[v.value])},m=()=>{console.log("onCloseGoodsCascader"),console.log("goodsIndex.value",v.value),t.value[v.value].goods_type_id&&t.value[v.value].goods_id&&(t.value[v.value].cascader_val=[t.value[v.value].goods_type_id,t.value[v.value].goods_id]),v.value=0,console.log("goodsIndex.value",v.value)},g=()=>{console.log("onOpenGoodsCascader"),console.log("goodsIndex.value",v.value)},y=e.reactive({order_type:2,discount_amount:null,remarks:null}),x=e.ref([]);e.onMounted((()=>{o.fetchGoods().then((e=>{x.value=e}))}));const f=()=>{let l={order_goods:t.value,order:y};console.log("提交的订单数据:",l),o.fetchAddOrder(l).then((o=>{console.log(o),e.index.showToast({icon:"none",title:"商品订单记录成功"}),setTimeout((()=>{e.index.switchTab({url:"/pages/index/index"})}),500)}))};return(o,l)=>({a:e.f(t.value,((o,l,n)=>e.e({a:o.goods_type_name&&o.goods_name},o.goods_type_name&&o.goods_name?{b:e.t(o.goods_type_name),c:e.t(o.goods_name)}:{},{d:e.o((e=>{p.value=!0,v.value=l}),l),e:"314177ae-1-"+n+",314177ae-0",f:e.t(o.goods_price),g:"314177ae-2-"+n+",314177ae-0",h:e.t(o.goods_pay_status_txt),i:e.o((e=>((e,o=-1)=>{u.value=e,d.value=o,a.value=!0,console.log(e)})("goods",l)),l),j:"314177ae-3-"+n+",314177ae-0",k:e.o((e=>(e=>{t.value.splice(e,1)})(l)),l),l:"314177ae-5-"+n+",314177ae-4-"+n,m:"314177ae-4-"+n+",314177ae-0",n:l}))),b:e.p({"label-position":"top"}),c:e.p({"label-position":"top"}),d:e.p({"label-position":"top"}),e:e.p({type:"danger",size:"mini"}),f:e.p({"label-position":"top"}),g:e.o(i),h:e.p({type:"primary",plain:!0,size:"small"}),i:e.o((e=>y.discount_amount=e)),j:e.p({placeholder:"请输入金额",type:"number",modelValue:y.discount_amount}),k:e.o((e=>y.remarks=e)),l:e.p({rows:3,placeholder:"请输入备注",modelValue:y.remarks}),m:e.p({label:"备注"}),n:e.o(f),o:e.p({type:"primary",block:!0}),p:e.o(c),q:e.o(_),r:e.o(g),s:e.o(m),t:e.o((e=>p.value=e)),v:e.o((e=>r.value=e)),w:e.p({title:"商品选择","text-key":"label","value-key":"value","children-key":"children",options:x.value,"title-ellipsis":!1,visible:p.value,modelValue:r.value}),x:e.o(s),y:e.o((e=>a.value=!1)),z:e.p({columns:n,"field-names":{text:"label",value:"value"},title:"选择支付状态"}),A:e.o((e=>a.value=e)),B:e.p({position:"bottom","safe-area-inset-bottom":!0,visible:a.value})})}},a=e._export_sfc(l,[["__scopeId","data-v-314177ae"]]);wx.createPage(a);
|
||||
@@ -1,18 +1,14 @@
|
||||
{
|
||||
"navigationBarTitleText": "新增商品",
|
||||
"navigationBarTitleText": "商品订单",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"nut-input": "../../uni_modules/nutui-uni/components/input/input",
|
||||
"nut-form-item": "../../uni_modules/nutui-uni/components/formitem/formitem",
|
||||
"nut-icon": "../../uni_modules/nutui-uni/components/icon/icon",
|
||||
"nut-textarea": "../../uni_modules/nutui-uni/components/textarea/textarea",
|
||||
"nut-radio": "../../uni_modules/nutui-uni/components/radio/radio",
|
||||
"nut-radio-group": "../../uni_modules/nutui-uni/components/radiogroup/radiogroup",
|
||||
"shmily-drag-image": "../../uni_modules/shmily-drag-image/components/shmily-drag-image/shmily-drag-image",
|
||||
"nut-button": "../../uni_modules/nutui-uni/components/button/button",
|
||||
"nut-form": "../../uni_modules/nutui-uni/components/form/form",
|
||||
"nut-input": "../../uni_modules/nutui-uni/components/input/input",
|
||||
"nut-textarea": "../../uni_modules/nutui-uni/components/textarea/textarea",
|
||||
"nut-cascader": "../../uni_modules/nutui-uni/components/cascader/cascader",
|
||||
"nut-picker": "../../uni_modules/nutui-uni/components/picker/picker",
|
||||
"nut-popup": "../../uni_modules/nutui-uni/components/popup/popup",
|
||||
"nut-cascader": "../../uni_modules/nutui-uni/components/cascader/cascader"
|
||||
"nut-popup": "../../uni_modules/nutui-uni/components/popup/popup"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/index/goodsOrderAdd.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/goodsOrderAdd.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="page-content data-v-314177ae"><view class="data-v-314177ae" style="padding:10rpx"><view class="title data-v-314177ae">商品 </view><nut-form class="data-v-314177ae" u-s="{{['d']}}" u-i="314177ae-0" bind:__l="__l"><view wx:for="{{a}}" wx:for-item="item" wx:key="n" class="inline-goods-form data-v-314177ae"><view class="form-row data-v-314177ae"><nut-form-item wx:if="{{b}}" class="data-v-314177ae" u-s="{{['label','d']}}" u-i="{{item.e}}" bind:__l="__l" u-p="{{b}}"><view slot="label">商品</view><view class="data-v-314177ae" style="color:black" bindtap="{{item.d}}"><text wx:if="{{item.a}}" class="data-v-314177ae">{{item.b}} - {{item.c}}</text><text wx:else class="data-v-314177ae">请选择商品</text></view></nut-form-item><nut-form-item wx:if="{{c}}" class="data-v-314177ae" u-s="{{['label','d']}}" u-i="{{item.g}}" bind:__l="__l" u-p="{{c}}"><view slot="label">售价</view><view class="data-v-314177ae" style="color:black"><text class="data-v-314177ae">{{item.f}}</text></view></nut-form-item></view><view class="form-row data-v-314177ae"><nut-form-item wx:if="{{d}}" class="data-v-314177ae" u-s="{{['label','d']}}" u-i="{{item.j}}" bind:__l="__l" u-p="{{d}}"><view slot="label">支付状态</view><view class="data-v-314177ae" style="color:black" bindtap="{{item.i}}"><text class="data-v-314177ae">{{item.h}}</text></view></nut-form-item><nut-form-item wx:if="{{f}}" class="data-v-314177ae" u-s="{{['label','d']}}" u-i="{{item.m}}" bind:__l="__l" u-p="{{f}}"><view slot="label">操作</view><view class="data-v-314177ae"><nut-button wx:if="{{e}}" class="data-v-314177ae" u-s="{{['d']}}" bindclick="{{item.k}}" u-i="{{item.l}}" bind:__l="__l" u-p="{{e}}">删除商品</nut-button></view></nut-form-item></view></view></nut-form><view class="top-bar data-v-314177ae"><nut-button wx:if="{{h}}" class="data-v-314177ae" u-s="{{['d']}}" bindclick="{{g}}" u-i="314177ae-6" bind:__l="__l" u-p="{{h}}">新增商品</nut-button></view><view class="title data-v-314177ae">订单优惠 </view><nut-form class="data-v-314177ae" u-s="{{['d']}}" u-i="314177ae-7" bind:__l="__l"><nut-form-item class="data-v-314177ae" u-s="{{['label','d']}}" u-i="314177ae-8,314177ae-7" bind:__l="__l"><view slot="label">优惠金额</view><nut-input class="data-v-314177ae" u-i="314177ae-9,314177ae-8" bind:__l="__l" bindupdateModelValue="{{i}}" u-p="{{j}}"/></nut-form-item><nut-form-item wx:if="{{m}}" class="data-v-314177ae" u-s="{{['d']}}" u-i="314177ae-10,314177ae-7" bind:__l="__l" u-p="{{m}}"><nut-textarea wx:if="{{l}}" class="data-v-314177ae" u-i="314177ae-11,314177ae-10" bind:__l="__l" bindupdateModelValue="{{k}}" u-p="{{l}}"></nut-textarea></nut-form-item></nut-form><view class="data-v-314177ae" style="align-items:center;text-align:center;padding:20rpx 60rpx"><nut-button wx:if="{{o}}" class="data-v-314177ae" u-s="{{['d']}}" bindclick="{{n}}" u-i="314177ae-12" bind:__l="__l" u-p="{{o}}"> 提交订单 </nut-button></view></view><nut-cascader wx:if="{{w}}" class="data-v-314177ae" bindchange="{{p}}" bindpathChange="{{q}}" bindopen="{{r}}" bindclose="{{s}}" u-i="314177ae-13" bind:__l="__l" bindupdateVisible="{{t}}" bindupdateModelValue="{{v}}" u-p="{{w}}"></nut-cascader><nut-popup wx:if="{{B}}" class="data-v-314177ae" u-s="{{['d']}}" u-i="314177ae-14" bind:__l="__l" bindupdateVisible="{{A}}" u-p="{{B}}"><nut-picker wx:if="{{z}}" class="data-v-314177ae" bindconfirm="{{x}}" bindcancel="{{y}}" u-i="314177ae-15,314177ae-14" bind:__l="__l" u-p="{{z}}"></nut-picker></nut-popup></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/index/goodsOrderAdd.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/goodsOrderAdd.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.page-content.data-v-314177ae{min-height:100vh;background-color:#f2f3f5}.title.data-v-314177ae{padding:0 20rpx;margin-top:20rpx;margin-bottom:20rpx;font-size:28rpx;color:#909ca4}.inline-form.data-v-314177ae{display:flex;justify-content:space-between;gap:10rpx}.top-bar.data-v-314177ae{background:#fff;padding:20rpx;display:flex;justify-content:space-between;border-top:1px solid #eee}.form-row.data-v-314177ae{display:flex;justify-content:space-between;align-items:flex-start;gap:20rpx;margin-bottom:20rpx}
|
||||
File diff suppressed because one or more lines are too long
@@ -1,17 +1,12 @@
|
||||
{
|
||||
"navigationBarTitleText": "主页",
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTitleText": "茶麻古道",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"nut-noticebar": "../../uni_modules/nutui-uni/components/noticebar/noticebar",
|
||||
"z-tabs": "../../uni_modules/z-tabs/components/z-tabs/z-tabs",
|
||||
"nut-button": "../../uni_modules/nutui-uni/components/button/button",
|
||||
"nut-searchbar": "../../uni_modules/nutui-uni/components/searchbar/searchbar",
|
||||
"nut-menu-item": "../../uni_modules/nutui-uni/components/menuitem/menuitem",
|
||||
"nut-menu": "../../uni_modules/nutui-uni/components/menu/menu",
|
||||
"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",
|
||||
"index-custom-navigationbar": "../../components/index-custom-navigationbar/index"
|
||||
"nut-input": "../../uni_modules/nutui-uni/components/input/input",
|
||||
"nut-form-item": "../../uni_modules/nutui-uni/components/formitem/formitem",
|
||||
"nut-textarea": "../../uni_modules/nutui-uni/components/textarea/textarea",
|
||||
"nut-form": "../../uni_modules/nutui-uni/components/form/form",
|
||||
"nut-popup": "../../uni_modules/nutui-uni/components/popup/popup"
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
.page-content.data-v-317a23ad{min-height:100vh;background-color:#f2f3f5;--nut-menu-bar-box-shadow: none;--nut-menu-item-content-padding: 20rpx;--nut-menu-item-content-max-height: 900rpx;--nut-searchbar-input-height: 40px}.data-v-317a23ad .titleClass .nut-menu__title-text{font-size:30rpx;font-weight:700;color:#000}.goods-item.data-v-317a23ad{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:20rpx;background-color:#fff;margin-bottom:20rpx;gap:20rpx}.goods-item .goods-item-image.data-v-317a23ad{width:170rpx;height:170rpx}.goods-item .goods-item-image .goods-item-image-img.data-v-317a23ad{width:100%;height:100%}.goods-item .goods-item-content.data-v-317a23ad{display:flex;flex:1;flex-direction:column;justify-content:space-between}.goods-item .goods-item-content .goods-item-content-header.data-v-317a23ad{display:flex;align-items:center;padding:10rpx 0;gap:20rpx}.goods-item .goods-item-content .goods-item-content-body.data-v-317a23ad{padding:10rpx 0}.goods-item .goods-item-content .goods-item-content-body .goods-item-content-body-desc.data-v-317a23ad{color:#7c7c7c;font-size:26rpx}.goods-item .goods-item-content .goods-item-content-footer.data-v-317a23ad{padding:10rpx 0;display:flex;justify-content:space-between;align-items:center}.goods-item .goods-item-content .goods-item-content-footer .goods-item-content-footer-btn.data-v-317a23ad{display:flex;justify-content:space-between;align-items:center;gap:10rpx}.goods-item .goods-item-content .goods-item-content-footer .goods-item-content-footer-btn .share-btn.data-v-317a23ad{border-radius:50rpx;border:2rpx solid red;font-size:26rpx;align-items:center;height:54rpx;color:red;display:flex;justify-content:center}.filter-types.data-v-317a23ad{display:flex;justify-content:flex-start;flex-direction:row;align-items:center;overflow:auto;gap:10rpx;padding:10rpx;height:60rpx;background-color:#fff;border-bottom:2rpx solid gainsboro;border-top:2rpx solid gainsboro}.filter-types .filter-type-inner.data-v-317a23ad{align-items:center;background-color:rgba(0,0,0,.05);border-radius:16rpx;box-sizing:border-box;display:flex;flex:0 0 auto;font-size:28rpx;gap:15rpx;padding:10rpx 20rpx}.filter-types .filter-type-inner.active.data-v-317a23ad{background-color:rgba(250,44,25,.1);color:var(--nutui-color-primary)}.tabs-container.data-v-317a23ad{display:flex}.tabs-container .tab-pane-inner.data-v-317a23ad{height:600rpx}.tabs-container .tabs-inner.data-v-317a23ad{overflow-y:scroll;height:600rpx;width:160rpx;background-color:#f5f5f5}.tabs-container .tabs-inner .tab-inner.data-v-317a23ad{height:60rpx;padding:10rpx;font-size:28rpx;display:flex;align-items:center;background:#f5f5f5}.tabs-container .tabs-inner .tab-inner text.data-v-317a23ad{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}.tabs-container .tabs-inner .tab-inner-active.data-v-317a23ad{background-color:rgba(250,44,25,.1);color:var(--nutui-color-primary)}.degree-inner.data-v-317a23ad{display:flex;flex:1;flex-wrap:wrap;gap:10rpx;width:100%;margin-bottom:60rpx}.degree-item.data-v-317a23ad{align-items:center;background-color:rgba(0,0,0,.05);border-radius:10rpx;box-sizing:border-box;display:flex;flex:0 0 auto;font-size:26rpx;gap:10rpx;justify-content:center;min-height:80rpx;width:calc(50% - 10rpx)}.degree-item.active.data-v-317a23ad{background-color:rgba(250,44,25,.1);color:var(--nutui-color-primary)}.product-btns.data-v-317a23ad{display:flex;width:100%;padding:20rpx 0}.product-btns .reset.data-v-317a23ad{flex:1}.product-btns .confirm.data-v-317a23ad{flex:2}.degree-btns.data-v-317a23ad{display:flex;width:100%}.degree-btns .reset.data-v-317a23ad{flex:1}.degree-btns .confirm.data-v-317a23ad{flex:2}.main-nav-container.data-v-317a23ad{display:flex;justify-content:space-between;background-color:#fff;padding:20rpx}.nav-button.data-v-317a23ad{display:flex;align-items:center;width:45%;height:160rpx;border-radius:20rpx;overflow:hidden;padding:0 10rpx}.phone-button.data-v-317a23ad{background:linear-gradient(135deg,#6a5ae0,#8d7bfb);color:#fff}.parts-button.data-v-317a23ad{background:linear-gradient(135deg,#ff6b6b,#ee5253);color:#fff}.nav-button-bg.data-v-317a23ad{position:absolute;right:0;top:0;height:100%;width:50%;opacity:.2;object-fit:cover}.nav-button-icon.data-v-317a23ad{width:90rpx;height:90rpx;margin-right:20rpx;z-index:2}.nav-button-content.data-v-317a23ad{z-index:2;display:flex;flex-direction:column}.nav-button-title.data-v-317a23ad{font-size:34rpx;font-weight:700;margin-bottom:8rpx}.nav-button-desc.data-v-317a23ad{font-size:24rpx;opacity:.85}
|
||||
.page-content.data-v-99d432e8{min-height:100vh;background-color:#f2f3f5}.top-bar.data-v-99d432e8{background:#fff;align-items:center;text-align:center;padding:20rpx 60rpx}.room-grid.data-v-99d432e8{display:grid;grid-template-columns:repeat(2,1fr);gap:20rpx;padding:20rpx;background:#f5f5f5}.room-grid-item.data-v-99d432e8{border-radius:16rpx}.grid-item-content.data-v-99d432e8{display:flex;flex-direction:column;align-items:center;justify-content:space-between;height:100%;text-align:center}.grid-item-content .room-name.data-v-99d432e8{font-size:32rpx;padding:20rpx 0;text-align:center}.grid-item-content .room-info.data-v-99d432e8{text-align:left;padding:20rpx 10rpx;color:#666;width:100%;min-height:160rpx;box-sizing:border-box}.grid-item-content .room-info .room-id.data-v-99d432e8{font-size:24rpx}.grid-item-content .room-info .remark.data-v-99d432e8{font-size:24rpx;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;-webkit-line-clamp:2;line-height:36rpx;word-wrap:break-word;word-break:break-word;white-space:normal}.grid-item-content .room-buttons.data-v-99d432e8{padding:20rpx 10rpx;display:flex;gap:20rpx;justify-content:space-around;width:100%;box-sizing:border-box}.title.data-v-99d432e8{padding:0 20rpx;margin-top:20rpx;margin-bottom:20rpx;font-size:28rpx;font-weight:400;text-align:center}.room-info.data-v-99d432e8{text-align:left;padding:20rpx;color:#666;width:100%;box-sizing:border-box}.room-info .room-id.data-v-99d432e8{font-size:28rpx}.room-info .remark.data-v-99d432e8{font-size:26rpx}.login-page.data-v-99d432e8{display:flex;align-items:center;flex-direction:column;height:100vh}.login-title.data-v-99d432e8{margin-top:240rpx;margin-bottom:40rpx;font-size:32rpx;color:#333;font-weight:700}.title-text.data-v-99d432e8{font-size:36rpx;color:#f60;text-align:center}.login-container.data-v-99d432e8{width:80%;padding:40rpx}
|
||||
|
||||
1
unpackage/dist/build/mp-weixin/pages/index/orderAdd.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/orderAdd.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -1,18 +1,14 @@
|
||||
{
|
||||
"navigationBarTitleText": "编辑商品",
|
||||
"navigationBarTitleText": "开台",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"nut-input": "../../uni_modules/nutui-uni/components/input/input",
|
||||
"nut-form-item": "../../uni_modules/nutui-uni/components/formitem/formitem",
|
||||
"nut-icon": "../../uni_modules/nutui-uni/components/icon/icon",
|
||||
"nut-textarea": "../../uni_modules/nutui-uni/components/textarea/textarea",
|
||||
"nut-radio": "../../uni_modules/nutui-uni/components/radio/radio",
|
||||
"nut-radio-group": "../../uni_modules/nutui-uni/components/radiogroup/radiogroup",
|
||||
"shmily-drag-image": "../../uni_modules/shmily-drag-image/components/shmily-drag-image/shmily-drag-image",
|
||||
"nut-button": "../../uni_modules/nutui-uni/components/button/button",
|
||||
"nut-input": "../../uni_modules/nutui-uni/components/input/input",
|
||||
"nut-form": "../../uni_modules/nutui-uni/components/form/form",
|
||||
"nut-button": "../../uni_modules/nutui-uni/components/button/button",
|
||||
"nut-textarea": "../../uni_modules/nutui-uni/components/textarea/textarea",
|
||||
"nut-cascader": "../../uni_modules/nutui-uni/components/cascader/cascader",
|
||||
"nut-picker": "../../uni_modules/nutui-uni/components/picker/picker",
|
||||
"nut-popup": "../../uni_modules/nutui-uni/components/popup/popup",
|
||||
"nut-cascader": "../../uni_modules/nutui-uni/components/cascader/cascader"
|
||||
"nut-popup": "../../uni_modules/nutui-uni/components/popup/popup"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/index/orderAdd.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/orderAdd.wxml
vendored
Normal file
File diff suppressed because one or more lines are too long
1
unpackage/dist/build/mp-weixin/pages/index/orderAdd.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/orderAdd.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.page-content.data-v-f03d02da{min-height:100vh;background-color:#f2f3f5}.title.data-v-f03d02da{padding:0 20rpx;margin-top:20rpx;margin-bottom:20rpx;font-size:28rpx;color:#909ca4}.inline-form.data-v-f03d02da{display:flex;justify-content:space-between;gap:10rpx}.top-bar.data-v-f03d02da{background:#fff;padding:20rpx;display:flex;justify-content:space-between;border-top:1px solid #eee}.form-row.data-v-f03d02da{display:flex;justify-content:space-between;align-items:flex-start;gap:20rpx;margin-bottom:20rpx}
|
||||
1
unpackage/dist/build/mp-weixin/pages/index/orderEdit.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/orderEdit.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -1,12 +1,14 @@
|
||||
{
|
||||
"navigationBarTitleText": "商城配置",
|
||||
"navigationBarTitleText": "账单",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"nut-input": "../../uni_modules/nutui-uni/components/input/input",
|
||||
"nut-form-item": "../../uni_modules/nutui-uni/components/formitem/formitem",
|
||||
"nut-textarea": "../../uni_modules/nutui-uni/components/textarea/textarea",
|
||||
"nut-switch": "../../uni_modules/nutui-uni/components/switch/switch",
|
||||
"shmily-drag-image": "../../uni_modules/shmily-drag-image/components/shmily-drag-image/shmily-drag-image",
|
||||
"nut-input": "../../uni_modules/nutui-uni/components/input/input",
|
||||
"nut-form": "../../uni_modules/nutui-uni/components/form/form",
|
||||
"nut-button": "../../uni_modules/nutui-uni/components/button/button",
|
||||
"nut-form": "../../uni_modules/nutui-uni/components/form/form"
|
||||
"nut-textarea": "../../uni_modules/nutui-uni/components/textarea/textarea",
|
||||
"nut-cascader": "../../uni_modules/nutui-uni/components/cascader/cascader",
|
||||
"nut-picker": "../../uni_modules/nutui-uni/components/picker/picker",
|
||||
"nut-popup": "../../uni_modules/nutui-uni/components/popup/popup"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/index/orderEdit.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/orderEdit.wxml
vendored
Normal file
File diff suppressed because one or more lines are too long
1
unpackage/dist/build/mp-weixin/pages/index/orderEdit.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/orderEdit.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.page-content.data-v-81cfabcb{min-height:100vh;background-color:#f2f3f5}.title.data-v-81cfabcb{padding:0 20rpx;margin-top:20rpx;margin-bottom:20rpx;font-size:28rpx;color:#909ca4}.inline-form.data-v-81cfabcb{display:flex;justify-content:space-between;gap:10rpx}.top-bar.data-v-81cfabcb{background:#fff;padding:20rpx;display:flex;justify-content:space-between;border-top:1px solid #eee}.form-row.data-v-81cfabcb{display:flex;justify-content:space-between;align-items:flex-start;gap:20rpx;margin-bottom:20rpx}
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),n=require("../../api/user.js"),o=require("../../utils/helper.js");if(!Array){(e.resolveComponent("nut-icon")+e.resolveComponent("nut-avatar")+e.resolveComponent("nut-button"))()}Math||((()=>"../../uni_modules/nutui-uni/components/icon/icon.js")+(()=>"../../uni_modules/nutui-uni/components/avatar/avatar.js")+(()=>"../../uni_modules/nutui-uni/components/button/button.js"))();const t={__name:"index",setup(t){const i=e.ref(""),s=e.ref("");e.onLoad((e=>{s.value=e.redirect_url})),e.onMounted((()=>{e.index.login({provider:"weixin",success(e){"login:ok"===e.errMsg&&(i.value=e.code)}})}));const a=t=>{""!==i.value?n.login(i.value,JSON.stringify(t.detail.userInfo)).then((n=>{console.log(n),e.index.setStorageSync("token",n.token),e.index.setStorageSync("uid",n.user_id),n.is_bind_phone?o.navigateTo("/pages/login/phoneAuthorization"):(e.index.showToast({title:"授权成功",icon:"none"}),"undefined"!==s.value?o.navigateTo(s.value):e.index.navigateBack())})):e.index.showToast({icon:"none",title:"请稍后再试"})};return(n,t)=>({a:e.p({size:"30",name:"my"}),b:e.p({size:"80"}),c:e.o(a),d:e.p({type:"success",size:"large","open-type":"getUserInfo"}),e:e.o((n=>e.unref(o.switchTab)("/pages/index/index"))),f:e.p({type:"danger",size:"large"})})}},i=e._export_sfc(t,[["__scopeId","data-v-c0bcfeb2"]]);wx.createPage(i);
|
||||
"use strict";const e=require("../../common/vendor.js"),n=require("../../api/index.js");if(!Array){(e.resolveComponent("nut-input")+e.resolveComponent("nut-button"))()}Math||((()=>"../../uni_modules/nutui-uni/components/input/input.js")+(()=>"../../uni_modules/nutui-uni/components/button/button.js"))();const o={__name:"index",setup(o){const t=e.ref(""),s=e.ref(""),u=()=>{""!==t.value?""!==s.value?n.fetchLogin({user_name:t.value,password:s.value}).then((n=>{console.log(n),e.index.setStorageSync("token",n.token),e.index.setStorageSync("uid",n.user.user_id),e.index.setStorageSync("username",n.user.user_name),e.index.setStorageSync("role",n.user.role.value),e.index.showToast({title:"登录成功",icon:"success"}),e.index.switchTab({url:"/pages/index/index"})})):e.index.showToast({title:"请输入密码",icon:"none"}):e.index.showToast({title:"请输入用户名",icon:"none"})};return(n,o)=>({a:e.o((e=>t.value=e)),b:e.p({placeholder:"请输入用户名",clearable:!0,label:"用户名",modelValue:t.value}),c:e.o((e=>s.value=e)),d:e.p({placeholder:"请输入密码",clearable:!0,label:"密码",type:"password",modelValue:s.value}),e:e.o(u),f:e.p({type:"primary",block:!0})})}},t=e._export_sfc(o,[["__scopeId","data-v-fd61bb51"]]);wx.createPage(t);
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"navigationBarTitleText": "授权登录",
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTitleText": "登陆",
|
||||
"usingComponents": {
|
||||
"nut-icon": "../../uni_modules/nutui-uni/components/icon/icon",
|
||||
"nut-avatar": "../../uni_modules/nutui-uni/components/avatar/avatar",
|
||||
"nut-input": "../../uni_modules/nutui-uni/components/input/input",
|
||||
"nut-button": "../../uni_modules/nutui-uni/components/button/button"
|
||||
}
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
<view class="content data-v-c0bcfeb2"><view class="avatar data-v-c0bcfeb2"><nut-avatar wx:if="{{b}}" class="data-v-c0bcfeb2" u-s="{{['d']}}" u-i="c0bcfeb2-0" bind:__l="__l" u-p="{{b}}"><nut-icon wx:if="{{a}}" class="data-v-c0bcfeb2" u-i="c0bcfeb2-1,c0bcfeb2-0" bind:__l="__l" u-p="{{a}}"/></nut-avatar></view><view class="divider data-v-c0bcfeb2"></view></view><view class="tip-infos data-v-c0bcfeb2"><text class="data-v-c0bcfeb2">申请获取以下权限</text><text class="data-v-c0bcfeb2">获得你的公开信息(昵称、头像等)</text></view><view class="authorize-btn-inner data-v-c0bcfeb2"><nut-button wx:if="{{d}}" class="data-v-c0bcfeb2" u-s="{{['d']}}" bindgetuserinfo="{{c}}" u-i="c0bcfeb2-2" bind:__l="__l" u-p="{{d}}">授权登录</nut-button></view><view class="authorize-btn-inner data-v-c0bcfeb2"><nut-button wx:if="{{f}}" class="data-v-c0bcfeb2" u-s="{{['d']}}" bindclick="{{e}}" u-i="c0bcfeb2-3" bind:__l="__l" u-p="{{f}}">暂不登录</nut-button></view>
|
||||
<view class="login-page data-v-fd61bb51"><view class="login-title data-v-fd61bb51"><text class="title-text data-v-fd61bb51">用户登陆</text></view><view class="login-container data-v-fd61bb51"><nut-input wx:if="{{b}}" class="login-input data-v-fd61bb51" u-i="fd61bb51-0" bind:__l="__l" bindupdateModelValue="{{a}}" u-p="{{b}}"></nut-input><nut-input wx:if="{{d}}" class="login-input data-v-fd61bb51" u-i="fd61bb51-1" bind:__l="__l" bindupdateModelValue="{{c}}" u-p="{{d}}"></nut-input><view class="data-v-fd61bb51" style="padding-top:100rpx"><nut-button wx:if="{{f}}" class="data-v-fd61bb51" u-s="{{['d']}}" bindclick="{{e}}" u-i="fd61bb51-2" bind:__l="__l" u-p="{{f}}"> 登录 </nut-button></view></view></view>
|
||||
@@ -1 +1 @@
|
||||
.divider.data-v-c0bcfeb2{height:1px;background:#eee;width:100%}.content.data-v-c0bcfeb2{display:flex;justify-content:center;flex-direction:column;padding:25px 15px;align-items:center;gap:20px}.tip-infos.data-v-c0bcfeb2{display:flex;flex-direction:column;justify-content:flex-start;padding:10px 25px;gap:10px}.tip-infos text.data-v-c0bcfeb2:nth-child(2){font-size:15px;color:#666}.authorize-btn-inner.data-v-c0bcfeb2{padding:15px}
|
||||
.login-page.data-v-fd61bb51{display:flex;align-items:center;flex-direction:column;height:100vh}.login-title.data-v-fd61bb51{margin-top:240rpx;margin-bottom:40rpx;font-size:32rpx;color:#333;font-weight:700}.title-text.data-v-fd61bb51{font-size:36rpx;color:#f60;text-align:center}.login-container.data-v-fd61bb51{width:80%;padding:40rpx}
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),o=require("../../api/user.js");if(!Array){e.resolveComponent("nut-button")()}Math;const n={__name:"phoneAuthorization",setup(n){const s=e.ref(""),t=e.ref("");e.onLoad((e=>{t.value=e.redirect_url})),e.onMounted((()=>{e.index.login({provider:"weixin",success(e){"login:ok"===e.errMsg&&(s.value=e.code)}})}));const r=n=>{n.detail.code&&o.fetchUserPhone(n.detail.code).then((o=>{console.log(o),"success"===o.msg&&1===o.code?(e.index.showToast({title:"授权成功",icon:"none"}),console.log("code"),e.index.switchTab({url:"/pages/mine/index"})):e.index.switchTab({url:"/pages/mine/index"})}))};return(o,n)=>({a:e.o(r),b:e.p({type:"success",size:"large","open-type":"getPhoneNumber"})})}},s=e._export_sfc(n,[["__scopeId","data-v-e697c3b7"]]);wx.createPage(s);
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "授权手机号",
|
||||
"usingComponents": {
|
||||
"nut-button": "../../uni_modules/nutui-uni/components/button/button"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<view class="tip-infos data-v-e697c3b7"><text class="data-v-e697c3b7">申请获取以下权限</text><text class="data-v-e697c3b7">获得你的手机号信息</text></view><view class="authorize-btn-inner data-v-e697c3b7"><nut-button wx:if="{{b}}" class="data-v-e697c3b7" u-s="{{['d']}}" bindgetphonenumber="{{a}}" u-i="e697c3b7-0" bind:__l="__l" u-p="{{b}}">授权手机号</nut-button></view>
|
||||
@@ -1 +0,0 @@
|
||||
.divider.data-v-e697c3b7{height:1px;background:#eee;width:100%}.content.data-v-e697c3b7{display:flex;justify-content:center;flex-direction:column;padding:25px 15px;align-items:center;gap:20px}.tip-infos.data-v-e697c3b7{display:flex;flex-direction:column;justify-content:flex-start;padding:10px 25px;gap:10px}.tip-infos text.data-v-e697c3b7:nth-child(2){font-size:15px;color:#666}.authorize-btn-inner.data-v-e697c3b7{padding:15px}
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),o=require("../../utils/helper.js"),t=require("../../api/goods.js"),n=require("../../api/config.js");if(!Array){(e.resolveComponent("nut-watermark")+e.resolveComponent("nut-cell-group")+e.resolveComponent("nut-icon")+e.resolveComponent("nut-button"))()}Math||((()=>"../../uni_modules/nutui-uni/components/watermark/watermark.js")+(()=>"../../uni_modules/nutui-uni/components/cellgroup/cellgroup.js")+(()=>"../../uni_modules/nutui-uni/components/icon/icon.js")+(()=>"../../uni_modules/nutui-uni/components/button/button.js"))();const i={__name:"detail",setup(i){const a=e.ref(!0),u=e.ref(""),l=e.ref(0),s=e.reactive({});e.onLoad((e=>{console.log("init"),r(),l.value=e.id,t.fetchGoodsDetail(l.value).then((e=>{Object.assign(s,e)}))}));const r=()=>{n.fetchGetConfig().then((e=>{console.log("getConfig=====>",e),a.value=1==e.appConfig.is_audit,u.value=e.appConfig.service_txt}))};e.onShareTimeline((e=>({title:s.goods_name,path:"/pages/mall/detail?id="+s.goods_id,imageUrl:s.image[0].file_path}))),e.onShareAppMessage((e=>({title:s.goods_name,path:"/pages/mall/detail?id="+s.goods_id,imageUrl:s.image[0].file_path})));return(t,n)=>{var i,l,r,d,p,v,g,m,c;return e.e({a:10===(null==(i=s.status)?void 0:i.value)},10===(null==(l=s.status)?void 0:l.value)?{b:e.p({"z-index":1,content:"此商品已下架"})}:{},{c:30===(null==(r=s.status)?void 0:r.value)},30===(null==(d=s.status)?void 0:d.value)?{d:e.p({"z-index":1,content:"此商品已锁定"})}:{},{e:40===(null==(p=s.status)?void 0:p.value)},40===(null==(v=s.status)?void 0:v.value)?{f:e.p({"z-index":1,content:"此商品已售出"})}:{},{g:e.f(s.image,((o,t,n)=>({a:o.file_path,b:e.o((o=>{return n=t,void e.index.previewImage({current:n,urls:s.image.map((e=>e.file_path))});var n}),t),c:t}))),h:e.t(s.goods_price),i:e.t(null==(g=s.degree)?void 0:g.degree_name),j:e.t(s.goods_name),k:e.t(s.content),l:e.t(u.value),m:e.p({name:"service"}),n:20===(null==(m=s.status)?void 0:m.value)},20===(null==(c=s.status)?void 0:c.value)?e.e({o:!a.value},a.value?{}:{p:e.o((t=>{return n=s.goods_id,void(e.index.getStorageSync("token")?(console.log("已经登陆"),e.index.navigateTo({url:`/pages/order/preview?ids=${n}&from=item`})):o.goToLoginPage());var n})),q:e.p({type:"primary"})}):e.e({r:!a.value},a.value?{}:{s:e.p({plain:!0})}))}}},a=e._export_sfc(i,[["__scopeId","data-v-b751d003"]]);i.__runtimeHooks=6,wx.createPage(a);
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "店铺商品详情",
|
||||
"usingComponents": {
|
||||
"nut-watermark": "../../uni_modules/nutui-uni/components/watermark/watermark",
|
||||
"nut-cell-group": "../../uni_modules/nutui-uni/components/cellgroup/cellgroup",
|
||||
"nut-icon": "../../uni_modules/nutui-uni/components/icon/icon",
|
||||
"nut-button": "../../uni_modules/nutui-uni/components/button/button"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<view class="content data-v-b751d003"><nut-watermark wx:if="{{a}}" class="mark1 data-v-b751d003" u-i="b751d003-0" bind:__l="__l" u-p="{{b}}"></nut-watermark><nut-watermark wx:if="{{c}}" class="mark1 data-v-b751d003" u-i="b751d003-1" bind:__l="__l" u-p="{{d}}"></nut-watermark><nut-watermark wx:if="{{e}}" class="mark1 data-v-b751d003" u-i="b751d003-2" bind:__l="__l" u-p="{{f}}"></nut-watermark><swiper class="swiper data-v-b751d003" circular indicator-dots autoplay><swiper-item wx:for="{{g}}" wx:for-item="item" wx:key="c" class="data-v-b751d003" bindtap="{{item.b}}"><image class="data-v-b751d003" src="{{item.a}}" mode="aspectFill"></image></swiper-item></swiper><view class="goods_info data-v-b751d003"><nut-cell-group class="data-v-b751d003" u-s="{{['d']}}" u-i="b751d003-3" bind:__l="__l"><view class="price data-v-b751d003"><text class="unit data-v-b751d003">¥</text><text class="value data-v-b751d003">{{h}}</text></view></nut-cell-group><nut-cell-group class="data-v-b751d003" u-s="{{['d']}}" u-i="b751d003-4" bind:__l="__l"><view class="name data-v-b751d003"><view class="top data-v-b751d003"><view class="tag data-v-b751d003"><text class="data-v-b751d003">{{i}}</text></view><text class="title data-v-b751d003">{{j}}</text></view><view class="data-v-b751d003"><text class="info data-v-b751d003">{{k}}</text></view></view></nut-cell-group><view class="service data-v-b751d003"><view class="info data-v-b751d003"><text class="title data-v-b751d003">服务</text><text class="value data-v-b751d003">{{l}}</text></view></view></view><view class="bottom-action data-v-b751d003"><view class="bottom-action-icon data-v-b751d003"><button plain open-type="contact" style="border:none;border-width:0" class="bottom-action-icon-item data-v-b751d003"><nut-icon wx:if="{{m}}" class="data-v-b751d003" u-i="b751d003-5" bind:__l="__l" u-p="{{m}}"></nut-icon><text class="data-v-b751d003">客服</text></button></view><view wx:if="{{n}}" class="bottom-action-btn data-v-b751d003"><nut-button wx:if="{{o}}" class="data-v-b751d003" u-s="{{['d']}}" bindclick="{{p}}" u-i="b751d003-6" bind:__l="__l" u-p="{{q}}">立即购买</nut-button></view><view wx:else class="bottom-action-btn data-v-b751d003"><nut-button wx:if="{{r}}" class="data-v-b751d003" u-s="{{['d']}}" u-i="b751d003-7" bind:__l="__l" u-p="{{s}}">暂不支持购买</nut-button></view></view></view>
|
||||
@@ -1 +0,0 @@
|
||||
.bottom-action.data-v-b751d003{position:fixed;bottom:0;left:0;height:50px;background:#fff;width:calc(100% - 20px);display:flex;align-items:center;justify-content:space-between;margin:0 auto;padding:5px 10px}.bottom-action .bottom-action-icon.data-v-b751d003{align-items:center;display:flex;justify-content:center}.bottom-action .bottom-action-icon .bottom-action-icon-item.data-v-b751d003{align-items:center;display:flex;flex-direction:column;justify-content:center}.bottom-action .bottom-action-icon .bottom-action-icon-item text.data-v-b751d003{color:rgba(0,0,0,.5);font-size:11px}.bottom-action .bottom-action-btn.data-v-b751d003{-ms-flex-align:center;-ms-flex-pack:end;align-items:center;display:flex;gap:5px;justify-content:flex-end}.content.data-v-b751d003{display:flex;flex-direction:column;min-height:calc(100vh - 50px);background-color:#f2f3f5;--nut-cell-group-title-color: #000;--nut-collapse-item-padding: 10px 10px 10px 10px;--nut-collapse-wrapper-content-padding: 10px 10px 10px 10px;--nut-collapse-item-color: #000;padding-bottom:50px}.report-inner.data-v-b751d003{display:flex;flex-direction:column;gap:5px}.report-inner .report-item .report-item-name.data-v-b751d003{color:rgba(0,0,0,.9);font-weight:700}.report-inner .report-item .report-item-content.data-v-b751d003{display:flex;flex-wrap:wrap}.report-inner .report-item .report-item-content .report-item-content-item.data-v-b751d003{padding-top:2px;padding-bottom:2px;width:50%;display:flex;align-items:center}.count-item.data-v-b751d003{display:flex;justify-content:center;align-items:center;gap:2px}.swiper.data-v-b751d003{width:100%;height:414px}.swiper image.data-v-b751d003{width:100%;height:100%}.goods_info.data-v-b751d003{padding:5px;color:#000}.goods_info .price.data-v-b751d003{border-radius:5px;padding:10px;background:#fff}.goods_info .price .unit.data-v-b751d003{font-size:12px}.goods_info .price .value.data-v-b751d003{font-size:24px}.goods_info .name.data-v-b751d003{border-radius:5px;padding:10px;background:#fff;display:flex;gap:5px;flex-direction:column}.goods_info .name .top.data-v-b751d003{display:flex;gap:5px}.goods_info .name .top .tag.data-v-b751d003{background:#000;padding:1px 2px;justify-content:center;align-items:center;display:flex;border-radius:2px}.goods_info .name .top .tag text.data-v-b751d003{font-size:10px;color:#fff}.goods_info .name .top .title.data-v-b751d003{font-size:16px}.goods_info .name .info.data-v-b751d003{color:rgba(0,0,0,.7);font-size:13px}.goods_info .service.data-v-b751d003{border-radius:5px;padding:10px;background:#fff;display:flex;align-items:center;justify-content:space-between}.goods_info .service .info.data-v-b751d003{display:flex;flex-direction:column;justify-content:center;gap:5px}.goods_info .service .info .title.data-v-b751d003{font-size:16px}.goods_info .service .info .value.data-v-b751d003{color:rgba(0,0,0,.7);font-size:13px}.goods_info .service .right_icon.data-v-b751d003{background-color:currentColor;-webkit-mask:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPjxwYXRoIGZpbGw9IiMxQTFBMUEiIGQ9Ik0zNTMuODMgMTU4LjE3YTQyLjY3IDQyLjY3IDAgMSAxIDYwLjM0LTYwLjM0bDM4NCAzODRhNDIuNjcgNDIuNjcgMCAwIDEgMCA2MC4zNmwtMzg0IDM4NGE0Mi42NyA0Mi42NyAwIDEgMS02MC4zNC02MC4zNkw3MDcuNjcgNTEyeiIvPjwvc3ZnPg==) 0 0/100% 100% no-repeat;mask:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPjxwYXRoIGZpbGw9IiMxQTFBMUEiIGQ9Ik0zNTMuODMgMTU4LjE3YTQyLjY3IDQyLjY3IDAgMSAxIDYwLjM0LTYwLjM0bDM4NCAzODRhNDIuNjcgNDIuNjcgMCAwIDEgMCA2MC4zNmwtMzg0IDM4NGE0Mi42NyA0Mi42NyAwIDEgMS02MC4zNC02MC4zNkw3MDcuNjcgNTEyeiIvPjwvc3ZnPg==) 0 0/100% 100% no-repeat;width:12px;height:12px}.goods_info .report.data-v-b751d003{border-radius:5px;padding:1px;background:#fff}
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),o=require("../../utils/helper.js"),t=require("../../api/house_goods.js"),n=require("../../api/config.js");if(!Array){(e.resolveComponent("nut-watermark")+e.resolveComponent("nut-cell-group")+e.resolveComponent("nut-icon")+e.resolveComponent("nut-collapse-item")+e.resolveComponent("nut-collapse")+e.resolveComponent("nut-button"))()}Math||((()=>"../../uni_modules/nutui-uni/components/watermark/watermark.js")+(()=>"../../uni_modules/nutui-uni/components/cellgroup/cellgroup.js")+(()=>"../../uni_modules/nutui-uni/components/icon/icon.js")+(()=>"../../uni_modules/nutui-uni/components/collapseitem/collapseitem.js")+(()=>"../../uni_modules/nutui-uni/components/collapse/collapse.js")+(()=>"../../uni_modules/nutui-uni/components/button/button.js"))();const s={__name:"houseDetail",setup(s){const l=e.ref(!0),i=e.ref(0),a=e.reactive({}),u=e.ref([]),r=e.ref([]);e.onLoad((e=>{console.log("init"),n.fetchGetConfig().then((e=>{console.log("getConfig=====>",e),l.value=1==e.appConfig.is_audit})),i.value=e.id,t.houseFetchGoodsDetail(i.value).then((e=>{Object.assign(a,e)})),t.houseFetchCartGoodsIds().then((e=>{console.log(e),u.value=e.user_cart_goods_ids,r.value=e.cart_goods_ids}))})),e.onShareTimeline((e=>({title:a.goods_name,path:"/pages/mall/houseDetail?id="+a.goods_id,imageUrl:a.image[0].file_path}))),e.onShareAppMessage((e=>({title:a.goods_name,path:"/pages/mall/houseDetail?id="+a.goods_id,imageUrl:a.image[0].file_path})));const c=e.ref([1,2]),d=(e,o,t)=>{console.log(e,o,t)};return(t,n)=>{var s,i,u,p,m,v,_,g,h,f,b;return e.e({a:10===(null==(s=a.shelves_status)?void 0:s.value)},10===(null==(i=a.shelves_status)?void 0:i.value)?{b:e.p({"z-index":1,content:"此商品已下架"})}:{},{c:30===(null==(u=a.shelves_status)?void 0:u.value)},30===(null==(p=a.shelves_status)?void 0:p.value)?{d:e.p({"z-index":1,content:"此商品已售出"})}:{},{e:a.is_locked},a.is_locked?{f:e.p({"z-index":1,content:"此商品被锁单"})}:{},{g:e.f(a.image,((o,t,n)=>({a:o.file_path,b:e.o((o=>{return n=t,void e.index.previewImage({current:n,urls:a.image.map((e=>e.file_path))});var n}),t),c:t}))),h:e.t(a.goods_price),i:e.t(null==(m=a.degree)?void 0:m.degree_name),j:e.t(a.goods_name),k:e.t(a.content),l:e.t(a.service_txt),m:e.p({name:"tips",size:"12","custom-color":"#ff3535"}),n:e.t(null==(v=a.report_tags)?void 0:v.bad_count),o:e.f(null==(_=null==a?void 0:a.report_tags)?void 0:_.bad,((o,t,n)=>({a:e.t(o.name),b:e.f(o.value_list,((o,t,s)=>({a:"21357158-9-"+n+"-"+s+",21357158-7",b:e.t(o.name),c:t}))),c:t}))),p:e.p({name:"tips",size:"12","custom-color":"#ff3535"}),q:e.p({name:1,icon:"rect-down"}),r:e.p({name:"success",size:"12","custom-color":"#5dcc30"}),s:e.t(null==(g=a.report_tags)?void 0:g.ok_count),t:e.f(null==(h=null==a?void 0:a.report_tags)?void 0:h.ok,((o,t,n)=>({a:e.t(o.name),b:e.f(o.value_list,((o,t,s)=>({a:"21357158-12-"+n+"-"+s+",21357158-10",b:e.t(o.name),c:t}))),c:t}))),v:e.p({name:"success",size:"12","custom-color":"#5dcc30"}),w:e.p({name:2,icon:"rect-down"}),x:e.o(d),y:e.o((e=>c.value=e)),z:e.p({modelValue:c.value}),A:e.p({title:"验机报告"}),B:e.p({name:"service"}),C:20===(null==(f=a.shelves_status)?void 0:f.value)&&!r.value.includes(a.goods_id)},20!==(null==(b=a.shelves_status)?void 0:b.value)||r.value.includes(a.goods_id)?e.e({G:!l.value},l.value?{}:{H:e.p({plain:!0})}):e.e({D:!l.value},l.value?{}:{E:e.o((t=>e.unref(o.navigateTo)("/pages/order/preview/index?ids="+a.goods_id+"&from=item"))),F:e.p({type:"primary"})}))}}},l=e._export_sfc(s,[["__scopeId","data-v-21357158"]]);s.__runtimeHooks=6,wx.createPage(l);
|
||||
@@ -1,11 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "仓库商品详情",
|
||||
"usingComponents": {
|
||||
"nut-watermark": "../../uni_modules/nutui-uni/components/watermark/watermark",
|
||||
"nut-cell-group": "../../uni_modules/nutui-uni/components/cellgroup/cellgroup",
|
||||
"nut-icon": "../../uni_modules/nutui-uni/components/icon/icon",
|
||||
"nut-collapse-item": "../../uni_modules/nutui-uni/components/collapseitem/collapseitem",
|
||||
"nut-collapse": "../../uni_modules/nutui-uni/components/collapse/collapse",
|
||||
"nut-button": "../../uni_modules/nutui-uni/components/button/button"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<view class="content data-v-21357158"><nut-watermark wx:if="{{a}}" class="mark1 data-v-21357158" u-i="21357158-0" bind:__l="__l" u-p="{{b}}"></nut-watermark><nut-watermark wx:if="{{c}}" class="mark1 data-v-21357158" u-i="21357158-1" bind:__l="__l" u-p="{{d}}"></nut-watermark><nut-watermark wx:if="{{e}}" class="mark1 data-v-21357158" u-i="21357158-2" bind:__l="__l" u-p="{{f}}"></nut-watermark><swiper class="swiper data-v-21357158" circular indicator-dots autoplay><swiper-item wx:for="{{g}}" wx:for-item="item" wx:key="c" class="data-v-21357158" bindtap="{{item.b}}"><image class="data-v-21357158" src="{{item.a}}" mode="aspectFill"></image></swiper-item></swiper><view class="goods_info data-v-21357158"><nut-cell-group class="data-v-21357158" u-s="{{['d']}}" u-i="21357158-3" bind:__l="__l"><view class="price data-v-21357158"><text class="unit data-v-21357158">¥</text><text class="value data-v-21357158">{{h}}</text></view></nut-cell-group><nut-cell-group class="data-v-21357158" u-s="{{['d']}}" u-i="21357158-4" bind:__l="__l"><view class="name data-v-21357158"><view class="top data-v-21357158"><view class="tag data-v-21357158"><text class="data-v-21357158">{{i}}</text></view><text class="title data-v-21357158">{{j}}</text></view><view class="data-v-21357158"><text class="info data-v-21357158">{{k}}</text></view></view></nut-cell-group><view class="service data-v-21357158"><view class="info data-v-21357158"><text class="title data-v-21357158">服务</text><text class="value data-v-21357158">{{l}}</text></view></view><nut-cell-group wx:if="{{A}}" class="data-v-21357158" u-s="{{['d']}}" u-i="21357158-5" bind:__l="__l" u-p="{{A}}"><nut-collapse wx:if="{{z}}" class="data-v-21357158" u-s="{{['d']}}" bindchange="{{x}}" u-i="21357158-6,21357158-5" bind:__l="__l" bindupdateModelValue="{{y}}" u-p="{{z}}"><nut-collapse-item wx:if="{{q}}" class="data-v-21357158" u-s="{{['title','value','d']}}" u-i="21357158-7,21357158-6" bind:__l="__l" u-p="{{q}}"><view slot="title"> 瑕疵项 </view><view class="count-item data-v-21357158" slot="value"><nut-icon wx:if="{{m}}" class="data-v-21357158" u-i="21357158-8,21357158-7" bind:__l="__l" u-p="{{m}}"></nut-icon><text class="data-v-21357158">{{n}}项</text></view><view class="report-inner data-v-21357158"><view wx:for="{{o}}" wx:for-item="item" wx:key="c" class="report-item data-v-21357158"><view class="report-item-name data-v-21357158">{{item.a}}</view><view class="report-item-content data-v-21357158"><view wx:for="{{item.b}}" wx:for-item="iitem" wx:key="c" class="report-item-content-item data-v-21357158"><nut-icon wx:if="{{p}}" class="data-v-21357158" u-i="{{iitem.a}}" bind:__l="__l" u-p="{{p}}"></nut-icon><text class="data-v-21357158">{{iitem.b}}</text></view></view></view></view></nut-collapse-item><nut-collapse-item wx:if="{{w}}" class="data-v-21357158" u-s="{{['title','value','d']}}" u-i="21357158-10,21357158-6" bind:__l="__l" u-p="{{w}}"><view slot="title"> 正常项 </view><view class="count-item data-v-21357158" slot="value"><nut-icon wx:if="{{r}}" class="data-v-21357158" u-i="21357158-11,21357158-10" bind:__l="__l" u-p="{{r}}"></nut-icon><text class="data-v-21357158">{{s}}项</text></view><view class="report-inner data-v-21357158"><view wx:for="{{t}}" wx:for-item="item" wx:key="c" class="report-item data-v-21357158"><view class="report-item-name data-v-21357158">{{item.a}}</view><view class="report-item-content data-v-21357158"><view wx:for="{{item.b}}" wx:for-item="iitem" wx:key="c" class="report-item-content-item data-v-21357158"><nut-icon wx:if="{{v}}" class="data-v-21357158" u-i="{{iitem.a}}" bind:__l="__l" u-p="{{v}}"></nut-icon><text class="data-v-21357158">{{iitem.b}}</text></view></view></view></view></nut-collapse-item></nut-collapse></nut-cell-group></view><view class="bottom-action data-v-21357158"><view class="bottom-action-icon data-v-21357158"><button plain open-type="contact" style="border:none;border-width:0" class="bottom-action-icon-item data-v-21357158"><nut-icon wx:if="{{B}}" class="data-v-21357158" u-i="21357158-13" bind:__l="__l" u-p="{{B}}"></nut-icon><text class="data-v-21357158">客服</text></button></view><view wx:if="{{C}}" class="bottom-action-btn data-v-21357158"><nut-button wx:if="{{D}}" class="data-v-21357158" u-s="{{['d']}}" bindclick="{{E}}" u-i="21357158-14" bind:__l="__l" u-p="{{F}}">立即购买</nut-button></view><view wx:else class="bottom-action-btn data-v-21357158"><nut-button wx:if="{{G}}" class="data-v-21357158" u-s="{{['d']}}" u-i="21357158-15" bind:__l="__l" u-p="{{H}}">已锁定</nut-button></view></view></view>
|
||||
@@ -1 +0,0 @@
|
||||
.bottom-action.data-v-21357158{position:fixed;bottom:0;left:0;height:50px;background:#fff;width:calc(100% - 20px);display:flex;align-items:center;justify-content:space-between;margin:0 auto;padding:5px 10px}.bottom-action .bottom-action-icon.data-v-21357158{align-items:center;display:flex;justify-content:center}.bottom-action .bottom-action-icon .bottom-action-icon-item.data-v-21357158{align-items:center;display:flex;flex-direction:column;justify-content:center}.bottom-action .bottom-action-icon .bottom-action-icon-item text.data-v-21357158{color:rgba(0,0,0,.5);font-size:11px}.bottom-action .bottom-action-btn.data-v-21357158{-ms-flex-align:center;-ms-flex-pack:end;align-items:center;display:flex;gap:5px;justify-content:flex-end}.content.data-v-21357158{display:flex;flex-direction:column;background-color:#f2f3f5;height:calc(100% - 50px);--nut-cell-group-title-color: #000;--nut-collapse-item-padding: 10px 10px 10px 10px;--nut-collapse-wrapper-content-padding: 10px 10px 10px 10px;--nut-collapse-item-color: #000;padding-bottom:50px}.report-inner.data-v-21357158{display:flex;flex-direction:column;gap:5px}.report-inner .report-item .report-item-name.data-v-21357158{color:rgba(0,0,0,.9);font-weight:700}.report-inner .report-item .report-item-content.data-v-21357158{display:flex;flex-wrap:wrap}.report-inner .report-item .report-item-content .report-item-content-item.data-v-21357158{padding-top:2px;padding-bottom:2px;width:50%;display:flex;align-items:center}.count-item.data-v-21357158{display:flex;justify-content:center;align-items:center;gap:2px}.swiper.data-v-21357158{width:100%;height:414px}.swiper image.data-v-21357158{width:100%;height:100%}.goods_info.data-v-21357158{padding:5px;color:#000}.goods_info .price.data-v-21357158{border-radius:5px;padding:10px;background:#fff}.goods_info .price .unit.data-v-21357158{font-size:12px}.goods_info .price .value.data-v-21357158{font-size:24px}.goods_info .name.data-v-21357158{border-radius:5px;padding:10px;background:#fff;display:flex;gap:5px;flex-direction:column}.goods_info .name .top.data-v-21357158{display:flex;gap:5px}.goods_info .name .top .tag.data-v-21357158{background:#000;padding:1px 2px;justify-content:center;align-items:center;display:flex;border-radius:2px}.goods_info .name .top .tag text.data-v-21357158{font-size:10px;color:#fff}.goods_info .name .top .title.data-v-21357158{font-size:16px}.goods_info .name .info.data-v-21357158{color:rgba(0,0,0,.7);font-size:13px}.goods_info .service.data-v-21357158{border-radius:5px;padding:10px;background:#fff;display:flex;align-items:center;justify-content:space-between}.goods_info .service .info.data-v-21357158{display:flex;flex-direction:column;justify-content:center;gap:5px}.goods_info .service .info .title.data-v-21357158{font-size:16px}.goods_info .service .info .value.data-v-21357158{color:rgba(0,0,0,.7);font-size:13px}.goods_info .service .right_icon.data-v-21357158{background-color:currentColor;-webkit-mask:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPjxwYXRoIGZpbGw9IiMxQTFBMUEiIGQ9Ik0zNTMuODMgMTU4LjE3YTQyLjY3IDQyLjY3IDAgMSAxIDYwLjM0LTYwLjM0bDM4NCAzODRhNDIuNjcgNDIuNjcgMCAwIDEgMCA2MC4zNmwtMzg0IDM4NGE0Mi42NyA0Mi42NyAwIDEgMS02MC4zNC02MC4zNkw3MDcuNjcgNTEyeiIvPjwvc3ZnPg==) 0 0/100% 100% no-repeat;mask:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPjxwYXRoIGZpbGw9IiMxQTFBMUEiIGQ9Ik0zNTMuODMgMTU4LjE3YTQyLjY3IDQyLjY3IDAgMSAxIDYwLjM0LTYwLjM0bDM4NCAzODRhNDIuNjcgNDIuNjcgMCAwIDEgMCA2MC4zNmwtMzg0IDM4NGE0Mi42NyA0Mi42NyAwIDEgMS02MC4zNC02MC4zNkw3MDcuNjcgNTEyeiIvPjwvc3ZnPg==) 0 0/100% 100% no-repeat;width:12px;height:12px}.goods_info .report.data-v-21357158{border-radius:5px;padding:1px;background:#fff}
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),o=require("../../api/user.js"),n=require("../../utils/helper.js"),t=require("../../api/order.js"),i=require("../../api/config.js");if(!Array){(e.resolveComponent("nut-avatar")+e.resolveComponent("nut-icon")+e.resolveComponent("nut-grid-item")+e.resolveComponent("nut-grid")+e.resolveComponent("nut-cell-group")+e.resolveComponent("nut-cell"))()}Math||((()=>"../../uni_modules/nutui-uni/components/avatar/avatar.js")+(()=>"../../uni_modules/nutui-uni/components/icon/icon.js")+(()=>"../../uni_modules/nutui-uni/components/griditem/griditem.js")+(()=>"../../uni_modules/nutui-uni/components/grid/grid.js")+(()=>"../../uni_modules/nutui-uni/components/cellgroup/cellgroup.js")+(()=>"../../uni_modules/nutui-uni/components/cell/cell.js"))();const r={__name:"index",setup(r){const a=e.ref(!0),u=e.ref(!1),s=e.ref(""),l=e.ref(0),p=e.reactive({}),g=e.reactive({all:0,payment:0,delivery:0,received:0});e.onLoad((e=>{}));return e.onShow((()=>{console.log("init");let n=e.index.getStorageSync("uid");console.log("userId",n),l.value=n,i.fetchGetConfig().then((e=>{console.log("getConfig=====>",e),a.value=1==e.appConfig.is_audit,s.value=e.appConfig.shop_phone})),l.value>0&&o.fetchUserInfo().then((e=>{Object.assign(p,e),u.value=!0,t.fetchOrderTotalCount().then((e=>{Object.assign(g,e)}))}))})),(o,t)=>e.e({a:l.value>0},l.value>0?{b:e.p({size:"large"}),c:e.t(p.nickName),d:e.t(p.user_id)}:{e:e.p({name:"my"}),f:e.p({size:"large"}),g:e.o((o=>e.unref(n.goToLoginPage)())),h:e.o((o=>e.unref(n.goToLoginPage)()))},{i:e.p({name:"people"}),j:e.o((o=>e.unref(n.navigateTo)("/pages/config/store"))),k:e.p({text:"商城配置"}),l:e.p({name:"refresh"}),m:e.o((o=>e.unref(n.navigateTo)("/pages/config/price"))),n:e.p({text:"价格调整"}),o:e.p({name:"shop"}),p:e.o((o=>e.unref(n.navigateTo)("/pages/config/goodsList"))),q:e.p({text:"商品管理"}),r:e.p({name:"order"}),s:e.o((o=>e.unref(n.navigateTo)("/pages/config/shopOrder/index?tab=0"))),t:e.p({text:"店铺订单"}),v:e.p({title:"店铺管理"}),w:u.value&&!a.value},u.value&&!a.value?{x:e.t(g.all),y:e.o((o=>e.unref(n.navigateTo)("/pages/order/index?tab=0"))),z:e.p({text:"全部"}),A:e.t(g.payment),B:e.o((o=>e.unref(n.navigateTo)("/pages/order/index?tab=1"))),C:e.p({text:"待付款"}),D:e.t(g.delivery),E:e.o((o=>e.unref(n.navigateTo)("/pages/order/index?tab=2"))),F:e.p({text:"待发货"}),G:e.t(g.received),H:e.o((o=>e.unref(n.navigateTo)("/pages/order/index?tab=3"))),I:e.p({text:"待收货"}),J:e.p({title:"我的订单"})}:{},{K:e.o((o=>{return n=s.value,console.log(123),void e.index.makePhoneCall({phoneNumber:n,success:()=>{console.log("拨打电话成功")},fail:e=>{console.error("拨打电话失败:",e)}});var n})),L:e.p({title:s.value}),M:e.p({title:"联系我们"})})}},a=e._export_sfc(r,[["__scopeId","data-v-f83cb6fc"]]);wx.createPage(a);
|
||||
"use strict";const e=require("../../common/vendor.js"),n=require("../../utils/helper.js");if(!Array){(e.resolveComponent("nut-avatar")+e.resolveComponent("nut-icon")+e.resolveComponent("nut-grid-item")+e.resolveComponent("nut-grid")+e.resolveComponent("nut-cell-group"))()}Math||((()=>"../../uni_modules/nutui-uni/components/avatar/avatar.js")+(()=>"../../uni_modules/nutui-uni/components/icon/icon.js")+(()=>"../../uni_modules/nutui-uni/components/griditem/griditem.js")+(()=>"../../uni_modules/nutui-uni/components/grid/grid.js")+(()=>"../../uni_modules/nutui-uni/components/cellgroup/cellgroup.js"))();const o={__name:"index",setup(o){const t=e.ref(0),u=e.ref(""),a=e.ref(0);e.onLoad((e=>{i()}));const i=()=>{e.index.getStorageSync("user_name");let n=e.index.getStorageSync("staff_name"),o=e.index.getStorageSync("role"),i=e.index.getStorageSync("uid");console.log("staff_name",n),t.value=i,u.value=n,a.value=o};return e.onShow((()=>{console.log("init"),i()})),(o,i)=>e.e({a:t.value>0},t.value>0?{b:e.p({size:"large"}),c:e.t(u.value),d:e.t(t.value)}:{},{e:e.p({name:"order"}),f:e.o((o=>e.unref(n.navigateTo)("/pages/order/index?tab=0"))),g:e.p({text:"订单管理"}),h:1==a.value},1==a.value?{i:e.p({name:"eye"}),j:e.o((o=>e.unref(n.navigateTo)("/pages/data/index"))),k:e.p({text:"运营数据"})}:{},{l:e.p({title:""})})}},t=e._export_sfc(o,[["__scopeId","data-v-f1996401"]]);wx.createPage(t);
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"navigationBarTitleText": "我的",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"nut-avatar": "../../uni_modules/nutui-uni/components/avatar/avatar",
|
||||
"nut-icon": "../../uni_modules/nutui-uni/components/icon/icon",
|
||||
"nut-grid-item": "../../uni_modules/nutui-uni/components/griditem/griditem",
|
||||
"nut-grid": "../../uni_modules/nutui-uni/components/grid/grid",
|
||||
"nut-cell-group": "../../uni_modules/nutui-uni/components/cellgroup/cellgroup",
|
||||
"nut-cell": "../../uni_modules/nutui-uni/components/cell/cell"
|
||||
"nut-cell-group": "../../uni_modules/nutui-uni/components/cellgroup/cellgroup"
|
||||
}
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
<view class="page-content data-v-f83cb6fc"><view wx:if="{{a}}" class="user-inner data-v-f83cb6fc"><view class="data-v-f83cb6fc"><nut-avatar wx:if="{{b}}" class="data-v-f83cb6fc" u-s="{{['d']}}" u-i="f83cb6fc-0" bind:__l="__l" u-p="{{b}}">用户</nut-avatar></view><view class="user-info-style data-v-f83cb6fc"><text class="nickname data-v-f83cb6fc">{{c}}</text><text class="user-id data-v-f83cb6fc">UID:{{d}}</text></view></view><view wx:else class="user-inner data-v-f83cb6fc"><view class="data-v-f83cb6fc" bindtap="{{g}}"><nut-avatar wx:if="{{f}}" class="data-v-f83cb6fc" u-s="{{['d']}}" u-i="f83cb6fc-1" bind:__l="__l" u-p="{{f}}"><nut-icon wx:if="{{e}}" class="data-v-f83cb6fc" u-i="f83cb6fc-2,f83cb6fc-1" bind:__l="__l" u-p="{{e}}"/></nut-avatar></view><view class="data-v-f83cb6fc" bindtap="{{h}}"><text class="data-v-f83cb6fc">点击登录</text></view></view><view class="content data-v-f83cb6fc"><nut-cell-group wx:if="{{v}}" class="data-v-f83cb6fc" u-s="{{['d']}}" u-i="f83cb6fc-3" bind:__l="__l" u-p="{{v}}"><nut-grid class="data-v-f83cb6fc" u-s="{{['d']}}" u-i="f83cb6fc-4,f83cb6fc-3" bind:__l="__l"><nut-grid-item wx:if="{{k}}" class="data-v-f83cb6fc" u-s="{{['d']}}" bindclick="{{j}}" u-i="f83cb6fc-5,f83cb6fc-4" bind:__l="__l" u-p="{{k}}"><nut-icon wx:if="{{i}}" class="data-v-f83cb6fc" u-i="f83cb6fc-6,f83cb6fc-5" bind:__l="__l" u-p="{{i}}"></nut-icon></nut-grid-item><nut-grid-item wx:if="{{n}}" class="data-v-f83cb6fc" u-s="{{['d']}}" bindclick="{{m}}" u-i="f83cb6fc-7,f83cb6fc-4" bind:__l="__l" u-p="{{n}}"><nut-icon wx:if="{{l}}" class="data-v-f83cb6fc" u-i="f83cb6fc-8,f83cb6fc-7" bind:__l="__l" u-p="{{l}}"></nut-icon></nut-grid-item><nut-grid-item wx:if="{{q}}" class="data-v-f83cb6fc" u-s="{{['d']}}" bindclick="{{p}}" u-i="f83cb6fc-9,f83cb6fc-4" bind:__l="__l" u-p="{{q}}"><nut-icon wx:if="{{o}}" class="data-v-f83cb6fc" u-i="f83cb6fc-10,f83cb6fc-9" bind:__l="__l" u-p="{{o}}"></nut-icon></nut-grid-item><nut-grid-item wx:if="{{t}}" class="data-v-f83cb6fc" u-s="{{['d']}}" bindclick="{{s}}" u-i="f83cb6fc-11,f83cb6fc-4" bind:__l="__l" u-p="{{t}}"><nut-icon wx:if="{{r}}" class="data-v-f83cb6fc" u-i="f83cb6fc-12,f83cb6fc-11" bind:__l="__l" u-p="{{r}}"></nut-icon></nut-grid-item></nut-grid></nut-cell-group><nut-cell-group wx:if="{{w}}" class="data-v-f83cb6fc" u-s="{{['d']}}" u-i="f83cb6fc-13" bind:__l="__l" u-p="{{J}}"><nut-grid class="data-v-f83cb6fc" u-s="{{['d']}}" u-i="f83cb6fc-14,f83cb6fc-13" bind:__l="__l"><nut-grid-item wx:if="{{z}}" class="data-v-f83cb6fc" u-s="{{['d']}}" bindclick="{{y}}" u-i="f83cb6fc-15,f83cb6fc-14" bind:__l="__l" u-p="{{z}}">{{x}}</nut-grid-item><nut-grid-item wx:if="{{C}}" class="data-v-f83cb6fc" u-s="{{['d']}}" bindclick="{{B}}" u-i="f83cb6fc-16,f83cb6fc-14" bind:__l="__l" u-p="{{C}}">{{A}}</nut-grid-item><nut-grid-item wx:if="{{F}}" class="data-v-f83cb6fc" u-s="{{['d']}}" bindclick="{{E}}" u-i="f83cb6fc-17,f83cb6fc-14" bind:__l="__l" u-p="{{F}}">{{D}}</nut-grid-item><nut-grid-item wx:if="{{I}}" class="data-v-f83cb6fc" u-s="{{['d']}}" bindclick="{{H}}" u-i="f83cb6fc-18,f83cb6fc-14" bind:__l="__l" u-p="{{I}}">{{G}}</nut-grid-item></nut-grid></nut-cell-group><nut-cell-group wx:if="{{M}}" class="data-v-f83cb6fc" u-s="{{['d']}}" u-i="f83cb6fc-19" bind:__l="__l" u-p="{{M}}"><nut-cell wx:if="{{L}}" class="data-v-f83cb6fc" bindclick="{{K}}" u-i="f83cb6fc-20,f83cb6fc-19" bind:__l="__l" u-p="{{L}}"></nut-cell></nut-cell-group></view></view>
|
||||
<view class="page-content data-v-f1996401"><view wx:if="{{a}}" class="user-inner data-v-f1996401"><view class="data-v-f1996401"><nut-avatar wx:if="{{b}}" class="data-v-f1996401" u-s="{{['d']}}" u-i="f1996401-0" bind:__l="__l" u-p="{{b}}">用户</nut-avatar></view><view class="user-info-style data-v-f1996401"><text class="nickname data-v-f1996401">{{c}}</text><text class="user-id data-v-f1996401">UID:{{d}}</text></view></view><view class="content data-v-f1996401"><nut-cell-group wx:if="{{l}}" class="data-v-f1996401" u-s="{{['d']}}" u-i="f1996401-1" bind:__l="__l" u-p="{{l}}"><nut-grid class="data-v-f1996401" u-s="{{['d']}}" u-i="f1996401-2,f1996401-1" bind:__l="__l"><nut-grid-item wx:if="{{g}}" class="data-v-f1996401" u-s="{{['d']}}" bindclick="{{f}}" u-i="f1996401-3,f1996401-2" bind:__l="__l" u-p="{{g}}"><nut-icon wx:if="{{e}}" class="data-v-f1996401" u-i="f1996401-4,f1996401-3" bind:__l="__l" u-p="{{e}}"></nut-icon></nut-grid-item><nut-grid-item wx:if="{{h}}" class="data-v-f1996401" u-s="{{['d']}}" bindclick="{{j}}" u-i="f1996401-5,f1996401-2" bind:__l="__l" u-p="{{k}}"><nut-icon wx:if="{{i}}" class="data-v-f1996401" u-i="f1996401-6,f1996401-5" bind:__l="__l" u-p="{{i}}"></nut-icon></nut-grid-item></nut-grid></nut-cell-group></view></view>
|
||||
@@ -1 +1 @@
|
||||
.page-content.data-v-f83cb6fc{min-height:100vh;background-color:#f2f3f5}.user-inner.data-v-f83cb6fc{background:linear-gradient(30deg,rgba(198,77,255,.99),rgba(102,204,255,.99));height:150px;width:calc(100% - 20px);display:flex;align-items:center;padding:0 10px;gap:15px}.user-info-style.data-v-f83cb6fc{display:flex;flex-direction:column;align-items:flex-start}.nickname.data-v-f83cb6fc{font-size:20px;font-weight:700;color:#333;margin-bottom:5px}.user-id.data-v-f83cb6fc{font-size:14px;color:#fff}.content.data-v-f83cb6fc{display:flex;flex-direction:column;background-color:#f2f3f5;padding:0 10px}
|
||||
.page-content.data-v-f1996401{min-height:100vh;background-color:#f2f3f5}.user-inner.data-v-f1996401{background:linear-gradient(30deg,rgba(198,77,255,.99),rgba(102,204,255,.99));height:300rpx;width:calc(100% - 40rpx);display:flex;align-items:center;padding:0px 20rpx;gap:30rpx}.user-info-style.data-v-f1996401{display:flex;flex-direction:column;align-items:flex-start}.nickname.data-v-f1996401{font-size:28rpx;color:#333;margin-bottom:10rpx}.user-id.data-v-f1996401{font-size:26rpx;color:#fff}.content.data-v-f1996401{display:flex;flex-direction:column;background-color:#f2f3f5;padding:0px 20rpx}
|
||||
|
||||
@@ -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>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user