✨ feat(购物界面): 完成购物界面50%
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"navigationBarTitleText":"新增地址","usingComponents":{"custom-wrapper":"../../custom-wrapper","comp":"../../comp"}}
|
||||
@@ -0,0 +1,2 @@
|
||||
<import src="../../base.wxml"/>
|
||||
<template is="taro_tmpl" data="{{root:root}}" />
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[52],{4555:function(e,s,n){var r=n(9975),a=n(885),t=n(4165),d=n(5861),i=n(1515),l=n(9792),c=n(2185),o=n(2535),u=n.n(o),h=n(5513),f=(0,l.memo)((function(e){var s,n,r,f,p=e.addButtonEnabled,v=void 0===p||p,x=e.focusBorderEnabled,m=void 0!==x&&x,g=(0,c.hE)(),j=g.fetchData,_=g.state,N=function(){var s=(0,d.Z)((0,t.Z)().mark((function _callee(){var s,n;return(0,t.Z)().wrap((function _callee$(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,j({purchaser_id:e.purchaser_id});case 2:s=r.sent,e.id?E(e.id):null===(n=s.data.list)||void 0===n||n.every((function(e){return!e.is_default||(E(e.id),!1)}));case 4:case"end":return r.stop()}}),_callee)})));return function getData(){return s.apply(this,arguments)}}();(0,o.useDidShow)((function(){return N(),u().eventCenter.on("addressList:refresh",N),function(){u().eventCenter.off("addressList:refresh",N)}}));var b=(0,l.useState)(!1),w=(0,a.Z)(b,2),C=w[0],G=w[1],k=function(){var e=(0,d.Z)((0,t.Z)().mark((function _callee2(){return(0,t.Z)().wrap((function _callee2$(e){for(;;)switch(e.prev=e.next){case 0:return G(!0),e.next=3,N();case 3:G(!1);case 4:case"end":return e.stop()}}),_callee2)})));return function handleRefresh(){return e.apply(this,arguments)}}(),S=(Array.from({length:15}),(0,l.useState)()),Z=(0,a.Z)(S,2),y=Z[0],E=Z[1];return(0,h.jsxs)(i.G7,{className:"address-scroll-view",children:[(0,h.jsx)(i.pf,{scrollY:!0,refresherEnabled:e.refresherEnabled,enhanced:!0,refresherTriggered:C,onRefresherRefresh:k,children:(0,h.jsx)(i.G7,{className:"address-scroll-view-content",children:(null==_||null===(s=_.data)||void 0===s||null===(n=s.list)||void 0===n?void 0:n.length)>0?null==_||null===(r=_.data)||void 0===r||null===(f=r.list)||void 0===f?void 0:f.map((function(s,n){return(0,h.jsxs)(i.G7,{onLongPress:function onLongPress(){return handleDelete(s)},onClick:function onClick(){return function handleSelect(s,n){e.onSelect&&e.onSelect(s,n),m&&E(null==s?void 0:s.id)}(s,n)},className:"address-list ".concat(y==s.id&&"address-active"),children:[(0,h.jsxs)(i.G7,{className:"address-user",children:[s.name,s.is_default?(0,h.jsx)(i.xv,{className:"address-list-default",children:"默认"}):(0,h.jsx)(i.xv,{className:"address-list-phone",children:s.phone.replace(s.phone.substring(3,7),"****")})]}),(0,h.jsxs)(i.G7,{className:"address-list-bottom",children:[(0,h.jsxs)(i.G7,{className:"address-list-info",children:[(0,h.jsx)(i.G7,{children:s.province_name+s.city_name+s.district_name}),s.is_default&&(0,h.jsx)(i.xv,{className:"address-list-phone",children:s.phone.replace(s.phone.substring(3,7),"****")})]}),(0,h.jsx)(i.C3,{onClick:function onClick(e){return e.stopPropagation()},url:"/pages/addAddress/index?type=edit&id=".concat(s.id,"&&purchaser_id=",642),hoverClass:"none",className:"address-edit",children:(0,h.jsx)(i.xv,{className:"iconfont icon-bianji"})})]})]})})):(0,h.jsx)(i.G7,{className:"address-no-data",children:"暂未添加地址"})})}),v&&(0,h.jsx)(i.C3,{url:"/pages/addAddress/index?type=add&purchaser_id=".concat(642),hoverClass:"none",className:"add-address",children:"添加收货地址"})]})})),p=f,addressManager=function(){return(0,h.jsx)(i.G7,{className:"address-manager",children:(0,h.jsx)(p,{refresherEnabled:!0,purchaser_id:642})})};addressManager.enableShareAppMessage=!0;Page((0,r.createPageConfig)(addressManager,"pages/addressManager/index",{root:{cn:[]}},{navigationBarTitleText:"地址管理",enableShareAppMessage:!0}||{}))}},function(e){e.O(0,[107,216,592],(function(){return s=4555,e(e.s=s);var s}));e.O()}]);
|
||||
@@ -0,0 +1 @@
|
||||
{"navigationBarTitleText":"地址管理","usingComponents":{"custom-wrapper":"../../custom-wrapper","comp":"../../comp"}}
|
||||
@@ -0,0 +1,2 @@
|
||||
<import src="../../base.wxml"/>
|
||||
<template is="taro_tmpl" data="{{root:root}}" />
|
||||
@@ -0,0 +1 @@
|
||||
.address-scroll-view{-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;position:relative}.address-scroll-view scroll-view{-webkit-box-sizing:border-box;box-sizing:border-box;height:100%}.address-scroll-view .address-scroll-view-content{padding-bottom:300rpx}.address-scroll-view .address-list{background:#fff;border:1px solid #fff;border:1px solid rgba(0,0,0,.16);border-radius:20rpx;-webkit-box-shadow:2rpx 4rpx 12rpx 0 rgba(0,0,0,.16);box-shadow:2rpx 4rpx 12rpx 0 rgba(0,0,0,.16);-webkit-box-sizing:border-box;box-sizing:border-box;height:156rpx;margin:18rpx auto 0;padding:30rpx;width:704rpx}.address-scroll-view .address-active{border:1px solid #68b4ff;-webkit-box-shadow:0 0 10rpx 0 rgba(0,122,255,.27);box-shadow:0 0 10rpx 0 rgba(0,122,255,.27)}.address-scroll-view .address-list:first-child{margin-top:0}.address-scroll-view .address-list-last{margin-bottom:300rpx}.address-scroll-view .address-user{-ms-flex-align:center;-webkit-align-items:center;align-items:center;color:#000;display:-webkit-flex;display:-ms-flexbox;display:flex;font-family:Microsoft YaHei,Microsoft YaHei-Bold;font-size:28rpx;font-weight:700;text-align:left}.address-scroll-view .address-list-default{background:#cde5ff;border-radius:6rpx;color:#007aff;font-size:20rpx;font-weight:400;height:28rpx;margin-left:30rpx;text-align:center;width:58rpx}.address-scroll-view .address-list-phone{color:#ababab;font-size:24rpx;font-weight:400;margin-left:30rpx}.address-scroll-view .address-edit{padding:10rpx}.address-scroll-view .address-edit .icon-bianji{font-size:40rpx}.address-scroll-view .address-list-info{color:#3c3c3c;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:24rpx;font-weight:400;width:100%}.address-scroll-view .address-list-info view{max-width:60%;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.address-scroll-view .address-list-bottom{-ms-flex-pack:justify;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-between;justify-content:space-between;margin-top:18rpx}.address-scroll-view .add-address{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;background:#007aff;border-radius:40rpx;bottom:100rpx;color:#fff;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:32rpx;font-weight:400;height:82rpx;-webkit-justify-content:center;justify-content:center;left:50%;position:absolute;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);width:668rpx}.address-scroll-view .address-no-data{-webkit-box-sizing:border-box;box-sizing:border-box;color:#707070;font-size:24rpx;font-weight:400;height:100%;padding-top:40%;text-align:center}.common_safe_area_y{height:constant(safe-area-inset-bottom);height:env(safe-area-inset-bottom);width:100%}.full-100{height:100%;width:100%}.color-blue{color:#3287ec}.color-yellow{color:#ff9100}.color-green{color:#00b837}.color-grey{color:#707070}.color-white{color:#fff}.address-manager{height:100vh}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"navigationBarTitleText":"取色查找","usingComponents":{"custom-wrapper":"../../../custom-wrapper","comp":"../../../comp"}}
|
||||
@@ -0,0 +1,2 @@
|
||||
<import src="../../../base.wxml"/>
|
||||
<template is="taro_tmpl" data="{{root:root}}" />
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"navigationBarTitleText":"样品对比","usingComponents":{"custom-wrapper":"../../../custom-wrapper","comp":"../../../comp"}}
|
||||
@@ -0,0 +1,2 @@
|
||||
<import src="../../../base.wxml"/>
|
||||
<template is="taro_tmpl" data="{{root:root}}" />
|
||||
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
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"navigationBarTitleText":"颜色取样","usingComponents":{"custom-wrapper":"../../../custom-wrapper","comp":"../../../comp"}}
|
||||
@@ -0,0 +1,2 @@
|
||||
<import src="../../../base.wxml"/>
|
||||
<template is="taro_tmpl" data="{{root:root}}" />
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[443],{7229:function(e,n,t){var a=t(9975),l=t(4165),r=t(5861),i=t(1413),s=t(885),c=t(1515),u=t(9792),o="index-module__cussBox___b9Eo6",d="index-module__searchBox___TRa3p",_="index-module__two___FcFcX",f="index-module__listBox___cZkpQ",m="index-module__itemBox___edZPr",h="index-module__cussName___zFlmD",p="index-module__phone___mmFz9",x="index-module__woker___TkWiR",g="index-module__acticveitemBox___Cxh_P",Z=t(6408),v=t.n(Z),k=t(5032),w=t(1251),z=t(2535),N=t.n(z),j=t(4909),C=t(7227),B=t(5513);Page((0,a.createPageConfig)((function(){var e=(0,u.useState)({name:null,page:1,size:10}),n=(0,s.Z)(e,2),t=n[0],a=n[1],Z=(0,u.useState)({list:[],total:0}),G=(0,s.Z)(Z,2),R=G[0],b=G[1],P=(0,w.dl)(),T=P.fetchData,I=P.state,S=(0,u.useMemo)((function(){return(0,C.rA)({list:R.list,total:R.total,status:I.loading})}),[R,I]),D=(0,u.useState)({clientId:null,clientName:""}),E=(0,s.Z)(D,2),F=E[0],O=E[1],y=(0,u.useCallback)((function(e){M.current.page=1,b((function(){return{list:[],total:0}})),a((function(n){return(0,i.Z)((0,i.Z)({},n),{},{name:e,size:10})}))}),[]),J=(0,z.useRouter)();(0,u.useEffect)((function(){""===t.name&&a((function(e){return(0,i.Z)((0,i.Z)({},e),{},{name:null})})),""!==t.name&&q()}),[t]);var M=(0,u.useRef)({size:t.size,page:t.page}),$=(0,u.useCallback)((function(){if(R.list.length<R.total){M.current.page++;var e=M.current.size*M.current.page;a((function(n){return(0,i.Z)((0,i.Z)({},n),{},{size:e})}))}}),[R]),A=(0,u.useState)(!1),L=(0,s.Z)(A,2),Q=L[0],W=L[1],X=function(){var e=(0,r.Z)((0,l.Z)().mark((function _callee(){return(0,l.Z)().wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:M.current.size=1,W(!0),a((function(e){return(0,i.Z)((0,i.Z)({},e),{},{size:10})}));case 3:case"end":return e.stop()}}),_callee)})));return function getRefresherRefresh(){return e.apply(this,arguments)}}(),q=function(){var e=(0,r.Z)((0,l.Z)().mark((function _callee2(){var e;return(0,l.Z)().wrap((function _callee2$(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,T({name:null===t.name?"":t.name,page:t.page,size:t.size});case 2:e=n.sent,null!=J&&J.params.clientId&&e.data.list.map((function(e){return e.id==(null==J?void 0:J.params.clientId)?e.checked=!0:e.checked=!1,e})),b((function(n){var t,a;return(0,i.Z)((0,i.Z)({},n),{},{list:null===(t=e.data)||void 0===t?void 0:t.list,total:null===(a=e.data)||void 0===a?void 0:a.total})})),W((function(){return!1}));case 6:case"end":return n.stop()}}),_callee2)})));return function getCuss(){return e.apply(this,arguments)}}();return(0,u.useEffect)((function(){if(null!==(null==F?void 0:F.clientId))O(F);else{var e=N().getCurrentPages();e[e.length-2].setData({clientId:"",clientName:""})}}),[F]),(0,B.jsxs)(c.G7,{className:o,children:[(0,B.jsx)(c.G7,{className:d,children:(0,B.jsx)(c.G7,{className:_,children:(0,B.jsx)(k.Z,{placeholder:"请输入客户名称或手机号码",showBtn:!1,changeOnSearch:y,debounceTime:300})})}),(0,B.jsx)(c.G7,{className:f,children:(0,B.jsx)(j.Z,{statusMore:S,selfonScrollToLower:$,refresherEnabled:!0,refresherTriggered:Q,selfOnRefresherRefresh:X,children:R.list.map((function(e,n){return(0,B.jsxs)(c.G7,{className:v()(e.checked?g:m),onClick:function onClick(){!function selectClient(e){R.list.map((function(n){return e.id===n.id?n.checked=!0:n.checked=!1,n})),O(e);var n=N().getCurrentPages();n[n.length-2].setData({clientId:e.id,clientName:e.name}),b((function(e){return(0,i.Z)((0,i.Z)({},e),{},{list:null==R?void 0:R.list,total:null==R?void 0:R.total})})),N().navigateBack({delta:1})}(e)},children:[(0,B.jsx)(c.G7,{className:h,children:e.name}),(0,B.jsx)(c.G7,{className:p,children:e.phone}),(0,B.jsx)(c.G7,{className:x,children:e.sale_user_name})]},n)}))})})]})}),"pages/customerPage/index",{root:{cn:[]}},{navigationBarTitleText:"选择客户"}||{}))}},function(e){e.O(0,[107,216,592],(function(){return n=7229,e(e.s=n);var n}));e.O()}]);
|
||||
@@ -0,0 +1 @@
|
||||
{"navigationBarTitleText":"选择客户","usingComponents":{"custom-wrapper":"../../custom-wrapper","comp":"../../comp"}}
|
||||
@@ -0,0 +1,2 @@
|
||||
<import src="../../base.wxml"/>
|
||||
<template is="taro_tmpl" data="{{root:root}}" />
|
||||
@@ -0,0 +1 @@
|
||||
.index-module__common_safe_area_y___obSlX{height:constant(safe-area-inset-bottom);height:env(safe-area-inset-bottom);width:100%}.index-module__full-100___kETXb{height:100%;width:100%}.index-module__color-blue___RHW8_{color:#3287ec}.index-module__color-yellow____sDWv{color:#ff9100}.index-module__color-green___P9xUx{color:#00b837}.index-module__color-grey___ssf1f{color:#707070}.index-module__color-white___EZdAE{color:#fff}page{background:#f7f7f7}.index-module__cussBox___b9Eo6 .index-module__searchBox___TRa3p{-ms-flex-align:center;-webkit-align-items:center;align-items:center;background:#fff;display:-webkit-flex;display:-ms-flexbox;display:flex;height:96rpx;position:-webkit-sticky;position:sticky;top:0;width:750rpx}.index-module__cussBox___b9Eo6 .index-module__searchBox___TRa3p .index-module__two___FcFcX{height:72rpx;margin-left:24rpx;width:702rpx}.index-module__cussBox___b9Eo6 .index-module__listBox___cZkpQ{height:100vh}.index-module__cussBox___b9Eo6 .index-module__itemBox___edZPr{-ms-flex-align:center;-webkit-align-items:center;align-items:center;background:#fff;border-radius:16rpx;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:104rpx;margin-left:24rpx;margin-top:24rpx;width:702rpx}.index-module__cussBox___b9Eo6 .index-module__itemBox___edZPr .index-module__cussName___zFlmD{color:#000;font-family:PingFangSC-Medium,PingFang SC;font-size:28rpx;font-weight:500;height:34rpx;margin-left:48rpx;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;width:168rpx}.index-module__cussBox___b9Eo6 .index-module__itemBox___edZPr .index-module__phone___mmFz9{color:#000;font-family:PingFangSC-Regular,PingFang SC;font-size:28rpx;font-weight:400;margin-left:88rpx}.index-module__cussBox___b9Eo6 .index-module__itemBox___edZPr .index-module__woker___TkWiR{color:#000;font-family:PingFangSC-Regular,PingFang SC;font-size:28rpx;font-weight:400;margin-left:88rpx}.index-module__cussBox___b9Eo6 .index-module__acticveitemBox___Cxh_P{-ms-flex-align:center;-webkit-align-items:center;align-items:center;background:#fff;border:1px solid #337fff;border-radius:16rpx;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:104rpx;margin-left:24rpx;margin-top:24rpx;width:702rpx}.index-module__cussBox___b9Eo6 .index-module__acticveitemBox___Cxh_P .index-module__cussName___zFlmD{color:#000;font-family:PingFangSC-Medium,PingFang SC;font-size:28rpx;font-weight:500;height:34rpx;margin-left:48rpx;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;width:168rpx}.index-module__cussBox___b9Eo6 .index-module__acticveitemBox___Cxh_P .index-module__phone___mmFz9{color:#000;font-family:PingFangSC-Regular,PingFang SC;font-size:28rpx;font-weight:400;margin-left:88rpx}.index-module__cussBox___b9Eo6 .index-module__acticveitemBox___Cxh_P .index-module__woker___TkWiR{color:#000;font-family:PingFangSC-Regular,PingFang SC;font-size:28rpx;font-weight:400;margin-left:88rpx}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"navigationBarTitleText":"首页","usingComponents":{"custom-wrapper":"../../custom-wrapper","comp":"../../comp"}}
|
||||
@@ -0,0 +1,2 @@
|
||||
<import src="../../base.wxml"/>
|
||||
<template is="taro_tmpl" data="{{root:root}}" />
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"navigationBarTitleText":"登录","usingComponents":{"custom-wrapper":"../../custom-wrapper","comp":"../../comp"}}
|
||||
@@ -0,0 +1,2 @@
|
||||
<import src="../../base.wxml"/>
|
||||
<template is="taro_tmpl" data="{{root:root}}" />
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"navigationBarTitleText":"订单","usingComponents":{"custom-wrapper":"../../custom-wrapper","comp":"../../comp"}}
|
||||
@@ -0,0 +1,2 @@
|
||||
<import src="../../base.wxml"/>
|
||||
<template is="taro_tmpl" data="{{root:root}}" />
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"navigationBarTitleText":"订单详情","usingComponents":{"custom-wrapper":"../../custom-wrapper","comp":"../../comp"}}
|
||||
@@ -0,0 +1,2 @@
|
||||
<import src="../../base.wxml"/>
|
||||
<template is="taro_tmpl" data="{{root:root}}" />
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[778],{1236:function(e,n,t){var a=t(9975),s=t(4165),r=t(5861),l=t(1413),i=t(885),u=t(1515),c=t(9792),o="index-module__cussBox___nfG8K",d="index-module__searchBox___dDI_q",_="index-module__two___Fi3_d",f="index-module__listBox____J_PG",m="index-module__itemBox___rxNQO",h="index-module__cussName___LA0fc",x="index-module__phone___MiI8M",p="index-module__woker___jicxx",g="index-module__acticveitemBox___Y3ckT",v=t(6408),Z=t.n(v),k=t(5032),N=t(1251),w=t(2535),j=t.n(w),z=t(4909),G=t(7227),C=t(5513);Page((0,a.createPageConfig)((function(){var e=(0,c.useState)({name:null,page:1,size:10}),n=(0,i.Z)(e,2),t=n[0],a=n[1],v=(0,c.useState)({list:[],total:0}),B=(0,i.Z)(v,2),I=B[0],b=B[1],P=(0,N.Fm)(),R=P.fetchData,S=P.state,T=(0,c.useMemo)((function(){return(0,G.rA)({list:I.list,total:I.total,status:S.loading})}),[I,S]),O=(0,c.useState)({saleuserId:null,saleuserName:""}),D=(0,i.Z)(O,2),M=D[0],E=D[1],J=(0,c.useCallback)((function(e){A.current.page=1,b((function(){return{list:[],total:0}})),a((function(n){return(0,l.Z)((0,l.Z)({},n),{},{name:e,size:10})}))}),[]),y=(0,w.useRouter)();(0,c.useEffect)((function(){""===t.name&&a((function(e){return(0,l.Z)((0,l.Z)({},e),{},{name:null})})),""!==t.name&&Y()}),[t]);var A=(0,c.useRef)({size:t.size,page:t.page}),F=(0,c.useCallback)((function(){if(I.list.length<I.total){A.current.page++;var e=A.current.size*A.current.page;a((function(n){return(0,l.Z)((0,l.Z)({},n),{},{size:e})}))}}),[I]),L=(0,c.useState)(!1),$=(0,i.Z)(L,2),q=$[0],K=$[1],Q=function(){var e=(0,r.Z)((0,s.Z)().mark((function _callee(){return(0,s.Z)().wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:A.current.size=1,K(!0),a((function(e){return(0,l.Z)((0,l.Z)({},e),{},{size:10})}));case 3:case"end":return e.stop()}}),_callee)})));return function getRefresherRefresh(){return e.apply(this,arguments)}}(),Y=function(){var e=(0,r.Z)((0,s.Z)().mark((function _callee2(){var e;return(0,s.Z)().wrap((function _callee2$(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,R({name:null===t.name?"":t.name,page:t.page,size:t.size});case 2:e=n.sent,null!=y&&y.params.clientId&&e.data.list.map((function(e){return e.id==(null==y?void 0:y.params.clientId)?e.checked=!0:e.checked=!1,e})),b((function(n){var t,a;return(0,l.Z)((0,l.Z)({},n),{},{list:null===(t=e.data)||void 0===t?void 0:t.list,total:null===(a=e.data)||void 0===a?void 0:a.total})})),K((function(){return!1}));case 6:case"end":return n.stop()}}),_callee2)})));return function getCuss(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){if(null!==(null==M?void 0:M.saleuserId))E(M);else{var e=j().getCurrentPages();e[e.length-2].setData({saleuserId:"",saleuserName:""})}}),[M]),(0,C.jsxs)(u.G7,{className:o,children:[(0,C.jsx)(u.G7,{className:d,children:(0,C.jsx)(u.G7,{className:_,children:(0,C.jsx)(k.Z,{placeholder:"请输入业务员名称",showBtn:!1,changeOnSearch:J,debounceTime:300})})}),(0,C.jsx)(u.G7,{className:f,children:(0,C.jsx)(z.Z,{statusMore:T,selfonScrollToLower:F,refresherEnabled:!0,refresherTriggered:q,selfOnRefresherRefresh:Q,children:I.list.map((function(e,n){return(0,C.jsxs)(u.G7,{className:Z()(e.checked?g:m),onClick:function onClick(){!function selectClient(e){I.list.map((function(n){return e.id===n.id?n.checked=!0:n.checked=!1,n}));var n=j().getCurrentPages();n[n.length-2].setData({saleuserId:e.id,saleuserName:e.name}),b((function(e){return(0,l.Z)((0,l.Z)({},e),{},{list:null==I?void 0:I.list,total:null==I?void 0:I.total})})),E(e),j().navigateBack({delta:1})}(e)},children:[(0,C.jsx)(u.G7,{className:h,children:e.name}),(0,C.jsx)(u.G7,{className:x,children:e.phone}),(0,C.jsx)(u.G7,{className:p,children:e.sale_user_name})]},n)}))})})]})}),"pages/saleuserPage/index",{root:{cn:[]}},{navigationBarTitleText:"选择业务员"}||{}))}},function(e){e.O(0,[107,216,592],(function(){return n=1236,e(e.s=n);var n}));e.O()}]);
|
||||
@@ -0,0 +1 @@
|
||||
{"navigationBarTitleText":"选择业务员","usingComponents":{"custom-wrapper":"../../custom-wrapper","comp":"../../comp"}}
|
||||
@@ -0,0 +1,2 @@
|
||||
<import src="../../base.wxml"/>
|
||||
<template is="taro_tmpl" data="{{root:root}}" />
|
||||
@@ -0,0 +1 @@
|
||||
.index-module__common_safe_area_y___R_xNk{height:constant(safe-area-inset-bottom);height:env(safe-area-inset-bottom);width:100%}.index-module__full-100___OG_8B{height:100%;width:100%}.index-module__color-blue___nDp4N{color:#3287ec}.index-module__color-yellow___QU4ne{color:#ff9100}.index-module__color-green____UVnY{color:#00b837}.index-module__color-grey___JM7c6{color:#707070}.index-module__color-white___VYJI7{color:#fff}page{background:#f7f7f7}.index-module__cussBox___nfG8K .index-module__searchBox___dDI_q{-ms-flex-align:center;-webkit-align-items:center;align-items:center;background:#fff;display:-webkit-flex;display:-ms-flexbox;display:flex;height:96rpx;position:-webkit-sticky;position:sticky;top:0;width:750rpx}.index-module__cussBox___nfG8K .index-module__searchBox___dDI_q .index-module__two___Fi3_d{height:72rpx;margin-left:24rpx;width:702rpx}.index-module__cussBox___nfG8K .index-module__listBox____J_PG{height:calc(100vh - 96rpx)}.index-module__cussBox___nfG8K .index-module__itemBox___rxNQO{-ms-flex-align:center;-webkit-align-items:center;align-items:center;background:#fff;border-radius:16rpx;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:104rpx;margin-left:24rpx;margin-top:24rpx;width:702rpx}.index-module__cussBox___nfG8K .index-module__itemBox___rxNQO .index-module__cussName___LA0fc{color:#000;font-family:PingFangSC-Medium,PingFang SC;font-size:28rpx;font-weight:500;height:34rpx;margin-left:48rpx;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;width:168rpx}.index-module__cussBox___nfG8K .index-module__itemBox___rxNQO .index-module__phone___MiI8M{color:#000;font-family:PingFangSC-Regular,PingFang SC;font-size:28rpx;font-weight:400;margin-left:88rpx}.index-module__cussBox___nfG8K .index-module__itemBox___rxNQO .index-module__woker___jicxx{color:#000;font-family:PingFangSC-Regular,PingFang SC;font-size:28rpx;font-weight:400;margin-left:88rpx}.index-module__cussBox___nfG8K .index-module__acticveitemBox___Y3ckT{-ms-flex-align:center;-webkit-align-items:center;align-items:center;background:#fff;border:1px solid #337fff;border-radius:16rpx;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:104rpx;margin-left:24rpx;margin-top:24rpx;width:702rpx}.index-module__cussBox___nfG8K .index-module__acticveitemBox___Y3ckT .index-module__cussName___LA0fc{color:#000;font-family:PingFangSC-Medium,PingFang SC;font-size:28rpx;font-weight:500;height:34rpx;margin-left:48rpx;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;width:168rpx}.index-module__cussBox___nfG8K .index-module__acticveitemBox___Y3ckT .index-module__phone___MiI8M{color:#000;font-family:PingFangSC-Regular,PingFang SC;font-size:28rpx;font-weight:400;margin-left:88rpx}.index-module__cussBox___nfG8K .index-module__acticveitemBox___Y3ckT .index-module__woker___jicxx{color:#000;font-family:PingFangSC-Regular,PingFang SC;font-size:28rpx;font-weight:400;margin-left:88rpx}
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[996],{6565:function(e,n,a){var l=a(9975),s=a(4165),d=a(2982),_=a(5861),o=a(885),c=a(1515),i=a(9792),t=a(5032),r="index-module__main___MNLfI",u="index-module__cancelFont___oOAD6",m="index-module__line___LyScQ",x="index-module__topBox___VPAQP",h="index-module__histroyFonts___dC6RY",j="index-module__icon_delect___bl00a",p="index-module__bigBox___mCn5O",v="index-module__itemBox___ZWI_g",f=a(6408),g=a.n(f),N="index-module__mainBox___odirf",G="index-module__pic___o3oEQ",b="index-module__fonst___TGL8x",B=a(5513),w=(0,i.memo)((function(e){var n=e.picUrl,a=void 0===n?"":n,l=e.fonst,s=void 0===l?"无搜索历史":l;return(0,B.jsxs)(c.G7,{className:N,children:[(0,B.jsx)(c.Ee,{className:G,mode:"aspectFill",lazyLoad:!0,src:a}),(0,B.jsx)(c.G7,{className:b,children:s})]})})),Z=a(2535),k=a.n(Z),C="index-module__itemBox___aIZdB",P="index-module__picBox___Y4RXP",F="index-module__pic___aEmBn",T="index-module__posBox___ESI7u",O="index-module__leftBox___aPqRN",y="index-module__rightBox___LUEwe",E="index-module__productName___dxOWC",S="index-module__tips___r7PD4",L="index-module__flexTag___m5s9T",z="index-module__tagOne___C_Ubk",I="index-module__tagTwo___uuddT",Q=a(7816),D=(0,i.memo)((function(e){var n,a,l,s,d,_,o,t,r,u=(0,i.useCallback)((function(e){return{lab:e.lab,rgb:e.rgb,texture_url:e.texture_url}}),[]);return(0,B.jsxs)(c.G7,{className:C,children:[""===(null===(n=e.data)||void 0===n?void 0:n.texture_url)&&(0,B.jsx)(B.Fragment,{children:(0,B.jsxs)(c.G7,{className:P,children:[(0,B.jsx)(c.Ee,{className:F,mode:"aspectFill",src:"https://test.cdn.zzfzyc.com/mall/no_img.png"}),(0,B.jsxs)(c.G7,{className:T,children:[null===(a=e.data)||void 0===a?void 0:a.product_color_count,"色"]})]})}),""!==(null===(l=e.data)||void 0===l?void 0:l.texture_url)&&(0,B.jsx)(B.Fragment,{children:(0,B.jsxs)(c.G7,{className:O,children:[(0,B.jsx)(Q.Z,{value:u(e.data)}),(0,B.jsxs)(c.G7,{className:T,children:[null===(s=e.data)||void 0===s?void 0:s.product_color_count,"色"]})]})}),(0,B.jsxs)(c.G7,{className:y,children:[(0,B.jsxs)(c.G7,{className:E,children:[null===(d=e.data)||void 0===d?void 0:d.code,"#",null===(_=e.data)||void 0===_?void 0:_.name]}),(0,B.jsx)(c.G7,{className:S,children:null===(o=e.data)||void 0===o?void 0:o.component}),(0,B.jsxs)(c.G7,{className:L,children:[(0,B.jsx)(c.G7,{className:z,children:null===(t=e.data)||void 0===t?void 0:t.width}),(0,B.jsx)(c.G7,{className:I,children:null===(r=e.data)||void 0===r?void 0:r.weight_density})]})]})]})})),R=a(1948),U=(0,i.memo)((function(){var e=(0,i.useState)(["a","b"]),n=(0,o.Z)(e,2),a=n[0],l=(n[1],(0,i.useState)(["a"])),f=(0,o.Z)(l,2),N=f[0],G=f[1],b=(0,i.useState)(!1),Z=(0,o.Z)(b,2),C=Z[0],P=Z[1],F=(0,i.useCallback)((function(e){e?(P(!0),O(e)):(P(!1),G([]))}),[]),T=function mpproductlist(){return(0,R.Q)({url:"/v1/mp/product/list",method:"get"})}().fetchData,O=function(){var e=(0,_.Z)((0,s.Z)().mark((function _callee(e){var n;return(0,s.Z)().wrap((function _callee$(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,T({code_or_name:e});case 2:n=a.sent,G((0,d.Z)(n.data.list));case 4:case"end":return a.stop()}}),_callee)})));return function getProduct(n){return e.apply(this,arguments)}}();return(0,B.jsxs)(c.G7,{className:r,children:[(0,B.jsx)(t.Z,{placeholder:"请输入搜索布料",showBtn:!1,changeOnSearch:F,debounceTime:300,children:(0,B.jsx)(c.G7,{className:u,onClick:function onClick(){return function back(){k().navigateBack({delta:1})}()},children:"取消"})}),(0,B.jsx)(c.G7,{className:m}),!C&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(c.G7,{className:x,children:[(0,B.jsx)(c.G7,{className:h,children:"历史搜索"}),(0,B.jsx)(c.G7,{className:g()("iconfont","icon-shaixuan",j)})]}),!!a.length&&(0,B.jsx)(c.G7,{className:p,children:a.map((function(e,n){return(0,B.jsx)(c.G7,{className:v,children:e},n)}))}),!a.length&&(0,B.jsx)(w,{fonst:"无搜索历史"})]}),C&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(c.G7,{className:x,children:(0,B.jsx)(c.G7,{className:h,children:"搜索结果"})}),!!N.length&&N.map((function(e,n){return(0,B.jsx)(D,{data:e},n)})),!N.length&&(0,B.jsx)(w,{fonst:"暂无数据"})]})]})}));Page((0,l.createPageConfig)(U,"pages/searchPage/index",{root:{cn:[]}},{navigationBarTitleText:"搜索"}||{}))}},function(e){e.O(0,[107,216,592],(function(){return n=6565,e(e.s=n);var n}));e.O()}]);
|
||||
@@ -0,0 +1 @@
|
||||
{"navigationBarTitleText":"搜索","usingComponents":{"custom-wrapper":"../../custom-wrapper","comp":"../../comp"}}
|
||||
@@ -0,0 +1,2 @@
|
||||
<import src="../../base.wxml"/>
|
||||
<template is="taro_tmpl" data="{{root:root}}" />
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[425],{4213:function(e,n,o){var c=o(9975),_=o(885),i=o(5032),a=o(1515),l=o(9792),s={common_safe_area_y:"index-module__common_safe_area_y___jj3jo","full-100":"index-module__full-100___fcChp","color-blue":"index-module__color-blue___MN6uH","color-yellow":"index-module__color-yellow___VBNSH","color-green":"index-module__color-green___QAcCb","color-grey":"index-module__color-grey___BHWcM","color-white":"index-module__color-white___Xcvik",shopping:"index-module__shopping___rSsIK","shopping--topBar":"index-module__shopping--topBar___NgzyU",flexBox:"index-module__flexBox___XHnXI","icon--manage--cancel":"index-module__icon--manage--cancel___EBDNt"},t=o(6666),r="index-module__iconText___mSR2R",d="index-module__iconfont___AOfDW",x=o(6408),u=o.n(x),m=o(5513),g=function IconText(e){var n=e.children,o=e.svg,c=void 0!==o&&o,_=e.iconName,i=e.iconSize,l=void 0===i?40:i,s=e.text,x=void 0===s?"":s;return(0,m.jsxs)(a.G7,{className:u()(r,e.customStyle,e.customClass),children:[c?(0,m.jsx)(t.Z,{name:_,size:l}):(0,m.jsx)(a.xv,{className:u()("iconfont",_,d)}),n||(0,m.jsx)(a.xv,{className:u()(e.textClassName),children:x})]})},p=function Shopping(){var e=(0,l.useCallback)((function(e){}),[]),n=(0,l.useState)(!1),o=(0,_.Z)(n,2),c=o[0],t=o[1];return(0,m.jsxs)(a.G7,{className:s.shopping,children:[(0,m.jsx)(a.G7,{className:s["shopping--topBar"],children:(0,m.jsx)(i.Z,{placeholder:"请输入客户名称",showBtn:!1,changeOnSearch:e,debounceTime:300,children:(0,m.jsx)(a.G7,{className:s.flexBox,onClick:function onStartToManage(){t((function(e){return!e}))},children:c?(0,m.jsx)(g,{iconName:"icon-guanlidingdan",text:"取消",customClass:s["icon--manage--cancel"]}):(0,m.jsx)(g,{iconName:"icon-guanlidingdan",text:"管理"})})})}),(0,m.jsx)(a.G7,{className:s["shopping--context"]})]})};Page((0,c.createPageConfig)(p,"pages/shopping/index",{root:{cn:[]}},{navigationBarTitleText:"购物页面"}||{}))}},function(e){e.O(0,[107,216,592],(function(){return n=4213,e(e.s=n);var n}));e.O()}]);
|
||||
@@ -0,0 +1 @@
|
||||
{"navigationBarTitleText":"购物页面","usingComponents":{"custom-wrapper":"../../custom-wrapper","comp":"../../comp"}}
|
||||
@@ -0,0 +1,2 @@
|
||||
<import src="../../base.wxml"/>
|
||||
<template is="taro_tmpl" data="{{root:root}}" />
|
||||
@@ -0,0 +1 @@
|
||||
.index-module__common_safe_area_y___jj3jo{height:constant(safe-area-inset-bottom);height:env(safe-area-inset-bottom);width:100%}.index-module__full-100___fcChp{height:100%;width:100%}.index-module__color-blue___MN6uH{color:#3287ec}.index-module__color-yellow___VBNSH{color:#ff9100}.index-module__color-green___QAcCb{color:#00b837}.index-module__color-grey___BHWcM{color:#707070}.index-module__color-white___Xcvik{color:#fff}.index-module__shopping___rSsIK{background-color:#f8f8f8;height:100%;width:100%}.index-module__shopping--topBar___NgzyU{background:#fff;padding:16rpx 24rpx}.index-module__flexBox___XHnXI{-ms-flex-align:center;-ms-flex-pack:end;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:flex-end;justify-content:flex-end;width:150rpx}.index-module__icon--manage--cancel___EBDNt{color:#4581ff}.index-module__common_safe_area_y___QBZqJ{height:constant(safe-area-inset-bottom);height:env(safe-area-inset-bottom);width:100%}.index-module__full-100___HN6MI{height:100%;width:100%}.index-module__color-blue___HUy01{color:#3287ec}.index-module__color-yellow___njQgz{color:#ff9100}.index-module__color-green___A4LWc{color:#00b837}.index-module__color-grey___c7Qg8{color:#707070}.index-module__color-white___VdyFV{color:#fff}.index-module__iconText___mSR2R{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-flow:row nowrap;-ms-flex-flow:row nowrap;flex-flow:row nowrap;font-size:28rpx}.index-module__iconText___mSR2R .index-module__iconfont___AOfDW{font-size:40rpx}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"navigationBarTitleText":"我的","navigationBarTextStyle":"white","navigationBarBackgroundColor":"#4581FF","backgroundColor":"#4581FF","backgroundColorTop":"#4581FF","enablePullDownRefresh":true,"usingComponents":{"custom-wrapper":"../../custom-wrapper","comp":"../../comp"}}
|
||||
@@ -0,0 +1,2 @@
|
||||
<import src="../../base.wxml"/>
|
||||
<template is="taro_tmpl" data="{{root:root}}" />
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user