This commit is contained in:
2023-05-15 14:05:32 +08:00
parent d4573307b8
commit 15d688b0a3
1587 changed files with 33057 additions and 91924 deletions
+2
View File
@@ -0,0 +1,2 @@
"use strict";require("./sub-common/c3cce4a22c39194d23d0153ab7e918d8.js");require("./sub-common/f53b1679f25c7637ce43fb0068d1509b.js");require("./sub-common/7573a601b2e7601c00ed52c4c484ac13.js");/*! For license information please see index.js.LICENSE.txt */
(wx.webpackJsonp=wx.webpackJsonp||[]).push([["pages/weightList/index"],{"./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/weightList/index.tsx":function(e,n,t){var s=t("./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js"),a=t("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),i=t("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),o=t("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),c=t("./node_modules/@tarojs/taro/index.js"),r=t.n(c),l=t("./node_modules/react/cjs/react.production.min.js"),d=t("./src/pages/weightList/components/companyItem/index.tsx"),u=t("./src/api/weightList.ts"),m=(t("./src/common/common.ts"),t("./src/use/useCommon.ts")),p=t("./node_modules/react/cjs/react-jsx-runtime.production.min.js"),f=function WeightList(e){var n,t,f,h;(0,m.useBuriedDataPoint)("pages/weightList/index");var g=(0,u.weightListApi)(),_=g.fetchData,x=g.state,w=function getData(){_()};(0,l.useEffect)((function(){return r().eventCenter.on("weightList:refresh",w),w(),function(){r().eventCenter.off("weightList:refresh",w)}}),[]);var j=(0,l.useState)(!1),v=(0,i.default)(j,2),b=v[0],y=v[1],L=function(){var e=(0,a.default)((0,s.default)().mark((function _callee(){return(0,s.default)().wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:return y(!0),e.next=3,_();case 3:y(!1);case 4:case"end":return e.stop()}}),_callee)})));return function handleRefresh(){return e.apply(this,arguments)}}(),C=(Array.from({length:0}),(0,u.weightDeleteApi)().fetchData,function onSelect(e){var n=(0,c.getCurrentPages)();n[n.length-1].getOpenerEventChannel().emit("getSelectCompanyEvent",e),r().navigateBack()});return(0,p.jsxs)(o.View,{className:"weight-list-scroll-view",children:[(0,p.jsx)(o.ScrollView,{scrollY:!0,refresherEnabled:!0,enhanced:!0,refresherTriggered:b,onRefresherRefresh:L,children:(null==x||null===(n=x.data)||void 0===n||null===(t=n.list)||void 0===t?void 0:t.length)>0?null==x||null===(f=x.data)||void 0===f||null===(h=f.list)||void 0===h?void 0:h.map((function(e){return(0,p.jsx)(o.View,{className:"weight-list-con",children:(0,p.jsx)(d.default,{value:e,onClick:C})},e.id)})):(0,p.jsxs)(o.View,{className:"weight-list-no-data",children:[(0,p.jsx)(o.View,{children:"您末添加任何码单信息"}),"正在使用平台默认码单信息"]})}),(0,p.jsx)(o.Navigator,{url:"/pages/weightListAdd/index?type=add",hoverClass:"none",className:"add-weight-list",children:"新建抬头"})]})};n.default=function weightListManager(){return(0,p.jsx)(o.View,{className:"weight-list-manager",children:(0,p.jsx)(f,{})})}},"./src/pages/weightList/components/companyItem/index.tsx":function(e,n,t){var s=t("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),a=t("./src/pages/weightList/components/companyItem/index.module.scss"),i=t("./src/components/iconfont/iconfont.tsx"),o=t("./src/components/nameLabel/index.tsx"),c=t("./node_modules/react/cjs/react-jsx-runtime.production.min.js");n.default=function(e){var n=e.value,t=e.onClick;return(0,c.jsxs)(s.View,{className:a.default.company_item,onClick:function onClick(){return null==t?void 0:t(n)},children:[(0,c.jsx)(o.default,{name:n.title}),(0,c.jsxs)(s.View,{className:a.default.desc,children:[(0,c.jsx)(s.Text,{children:null==n?void 0:n.title}),(0,c.jsx)(s.Text,{children:"".concat(null==n?void 0:n.purchaser_name," ").concat(null==n?void 0:n.phone)})]}),(0,c.jsx)(s.View,{className:a.default.company_icon,children:(0,c.jsx)(i.default,{name:"icon-xiala",size:43})})]})}},"./src/pages/weightList/index.tsx":function(e,n,t){var s=t("./node_modules/@tarojs/runtime/dist/runtime.esm.js"),a=t("./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/weightList/index.tsx");a.default.enableShareAppMessage=!0;Page((0,s.createPageConfig)(a.default,"pages/weightList/index",{root:{cn:[]}},{navigationBarTitleText:"码单管理",enableShareAppMessage:!0,backgroundColor:"#F7F7F7FF"}||{})),a.default},"./src/pages/weightList/components/companyItem/index.module.scss":function(e,n){n.default={common_safe_area_y:"index-module__common_safe_area_y___AmEEx",hoverClass:"index-module__hoverClass___p_5dE","full-100":"index-module__full-100___PzSfj",company_item:"index-module__company_item___EzAly",desc:"index-module__desc___XvkZy",company_icon:"index-module__company_icon___fyH9u"}}},function(e){e.O(0,["sub-common/c3cce4a22c39194d23d0153ab7e918d8","sub-common/9326b70cbae39d6c4822800c44325b27","sub-common/f53b1679f25c7637ce43fb0068d1509b","sub-common/7573a601b2e7601c00ed52c4c484ac13","taro","vendors","common"],(function(){return n="./src/pages/weightList/index.tsx",e(e.s=n);var n}));e.O()}]);
+47
View File
@@ -0,0 +1,47 @@
/*! ../../../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./index.tsx */
/*! ./components/companyItem */
/*! ./index.module.scss */
/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */
/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */
/*! ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
/*! @/api/weightList */
/*! @/common/common */
/*! @/components/iconfont/iconfont */
/*! @/components/nameLabel */
/*! @/use/useCommon */
/*! @tarojs/components */
/*! @tarojs/runtime */
/*! @tarojs/taro */
/*! react */
/*! react/jsx-runtime */
/*!****************************************!*\
!*** ./src/pages/weightList/index.tsx ***!
\****************************************/
/*!***************************************************************!*\
!*** ./src/pages/weightList/components/companyItem/index.tsx ***!
\***************************************************************/
/*!***********************************************************************!*\
!*** ./src/pages/weightList/components/companyItem/index.module.scss ***!
\***********************************************************************/
/*!*************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/weightList/index.tsx ***!
\*************************************************************************************************************/
+1
View File
@@ -0,0 +1 @@
{"navigationBarTitleText":"码单管理","backgroundColor":"#F7F7F7FF","usingComponents":{"custom-wrapper":"../../custom-wrapper","comp":"../../comp"}}
+2
View File
@@ -0,0 +1,2 @@
<import src="../../base.wxml"/>
<template is="taro_tmpl" data="{{root:root}}" />
+206
View File
@@ -0,0 +1,206 @@
@charset "UTF-8";@import "./sub-common/9326b70cbae39d6c4822800c44325b27.wxss";/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[2]!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[4]!./src/pages/weightList/components/companyItem/index.module.scss ***!
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.index-module__common_safe_area_y___AmEEx {
width: 100%;
height: constant(safe-area-inset-bottom);
/* 兼容 iOS < 11.2 */
height: env(safe-area-inset-bottom);
/* 兼容 iOS >= 11.2 */
}
.index-module__hoverClass___p_5dE {
-webkit-filter: brightness(70%);
filter: brightness(70%);
}
.index-module__full-100___PzSfj {
width: 100%;
height: 100%;
}
.index-module__company_item___EzAly {
width: 702rpx;
height: 148rpx;
background: #ffffff;
border-radius: 16rpx;
margin-top: 24rpx;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
padding: 0 24rpx;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.index-module__company_item___EzAly .index-module__desc___XvkZy {
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
margin-left: 30rpx;
font-size: 28rpx;
}
.index-module__company_item___EzAly .index-module__desc___XvkZy text:nth-child(1) {
margin-bottom: 16rpx;
}
.index-module__company_item___EzAly .index-module__desc___XvkZy text:nth-child(2) {
color: rgba(0, 0, 0, 0.6);
}
.index-module__company_item___EzAly .index-module__company_icon___fyH9u {
-webkit-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
transform: rotate(-90deg);
}
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[2].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[2].use[2]!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[2].use[4]!./src/pages/weightList/index.scss ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************/
@charset "UTF-8";
.common_safe_area_y {
width: 100%;
height: constant(safe-area-inset-bottom);
/* 兼容 iOS < 11.2 */
height: env(safe-area-inset-bottom);
/* 兼容 iOS >= 11.2 */
}
.hoverClass {
-webkit-filter: brightness(70%);
filter: brightness(70%);
}
.full-100 {
width: 100%;
height: 100%;
}
.weight-list-manager {
height: 100vh;
background-color: #f7f7f7;
}
.weight-list-manager .weight-list-scroll-view {
height: 100%;
-webkit-box-sizing: border-box;
box-sizing: border-box;
position: relative;
}
.weight-list-manager .weight-list-scroll-view scroll-view {
height: 100%;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.weight-list-manager .weight-list-scroll-view .weight-list-con {
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
}
.weight-list-manager .weight-list-scroll-view .weight-list-list {
width: 704rpx;
height: 156rpx;
background: #ffffff;
border-radius: 20rpx;
-webkit-box-shadow: 2rpx 4rpx 12rpx 0rpx rgba(0, 0, 0, 0.16);
box-shadow: 2rpx 4rpx 12rpx 0rpx rgba(0, 0, 0, 0.16);
padding: 30rpx;
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 18rpx auto 0;
border: 1px solid #ffffff;
}
.weight-list-manager .weight-list-scroll-view .weight-list-list:first-child {
margin-top: 0;
}
.weight-list-manager .weight-list-scroll-view .address-active {
border: 1px solid #68b4ff;
-webkit-box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 122, 255, 0.27);
box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 122, 255, 0.27);
}
.weight-list-manager .weight-list-scroll-view .weight-list-list:last-child {
margin-bottom: 300rpx;
}
.weight-list-manager .weight-list-scroll-view .weight-list-user {
font-size: 28rpx;
font-family: Microsoft YaHei, Microsoft YaHei-Bold;
font-weight: 700;
text-align: left;
color: #000000;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.weight-list-manager .weight-list-scroll-view .weight-list-list-default {
width: 58rpx;
height: 28rpx;
background: #cde5ff;
border-radius: 6rpx;
font-size: 20rpx;
font-weight: 400;
text-align: center;
color: #4581ff;
margin-left: 30rpx;
}
.weight-list-manager .weight-list-scroll-view .weight-list-list-phone {
font-size: 24rpx;
font-weight: 400;
color: #ababab;
margin-left: 30rpx;
}
.weight-list-manager .weight-list-scroll-view .weight-list-edit .icon-bianji {
font-size: 40rpx;
}
.weight-list-manager .weight-list-scroll-view .weight-list-list-info {
font-size: 24rpx;
font-weight: 400;
color: #3c3c3c;
}
.weight-list-manager .weight-list-scroll-view .weight-list-list-bottom {
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
margin-top: 18rpx;
}
.weight-list-manager .weight-list-scroll-view .add-weight-list {
width: 668rpx;
height: 82rpx;
background: #4581ff;
border-radius: 40rpx;
font-size: 32rpx;
font-weight: 400;
color: #ffffff;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
position: absolute;
bottom: 8%;
left: 50%;
-webkit-transform: translateX(-50%);
-ms-transform: translateX(-50%);
transform: translateX(-50%);
}
.weight-list-manager .weight-list-scroll-view .weight-list-no-data {
font-size: 24rpx;
font-weight: 400;
text-align: center;
color: #707070;
height: 100%;
padding-top: 40%;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
@@ -0,0 +1,2 @@
/*! For license information please see 7573a601b2e7601c00ed52c4c484ac13.js.LICENSE.txt */
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["sub-common/7573a601b2e7601c00ed52c4c484ac13"],{"./src/components/nameLabel/index.module.scss":function(e,_){_.default={common_safe_area_y:"index-module__common_safe_area_y___cKqQ7",hoverClass:"index-module__hoverClass___mQq2U","full-100":"index-module__full-100___CzTfm",name:"index-module__name___xM5r7"}}}]);
@@ -0,0 +1,30 @@
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[2]!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[4]!./src/components/nameLabel/index.module.scss ***!
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@charset "UTF-8";
.index-module__common_safe_area_y___cKqQ7 {
width: 100%;
height: constant(safe-area-inset-bottom);
/* 兼容 iOS < 11.2 */
height: env(safe-area-inset-bottom);
/* 兼容 iOS >= 11.2 */
}
.index-module__hoverClass___mQq2U {
-webkit-filter: brightness(70%);
filter: brightness(70%);
}
.index-module__full-100___CzTfm {
width: 100%;
height: 100%;
}
.index-module__name___xM5r7 {
width: 78rpx;
height: 78rpx;
background: -webkit-linear-gradient(113deg, #7bb7ff 0%, #4581ff 100%);
background: -o-linear-gradient(113deg, #7bb7ff 0%, #4581ff 100%);
background: linear-gradient(337deg, #7bb7ff 0%, #4581ff 100%);
border-radius: 50%;
color: #fff;
text-align: center;
line-height: 78rpx;
}
@@ -0,0 +1,2 @@
/*! For license information please see c3cce4a22c39194d23d0153ab7e918d8.js.LICENSE.txt */
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["sub-common/c3cce4a22c39194d23d0153ab7e918d8"],{"./src/api/weightList.ts":function(t,e,i){i.d(e,{weightAddApi:function(){return r},weightDeleteApi:function(){return c},weightDetailApi:function(){return s},weightEditApi:function(){return l},weightListApi:function(){return n}});var u=i("./src/use/useHttp.ts"),n=function weightListApi(){return(0,u.useRequest)({url:"/v1/mall/title/list",method:"get"})},r=function weightAddApi(){return(0,u.useRequest)({url:"/v1/mall/title",method:"post"})},s=function weightDetailApi(){return(0,u.useRequest)({url:"/v1/mall/title",method:"get"})},l=function weightEditApi(){return(0,u.useRequest)({url:"/v1/mall/title",method:"put"})},c=function weightDeleteApi(){return(0,u.useRequest)({url:"/v1/mall/title",method:"delete"})}}}]);
@@ -0,0 +1,2 @@
/*! For license information please see f53b1679f25c7637ce43fb0068d1509b.js.LICENSE.txt */
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["sub-common/f53b1679f25c7637ce43fb0068d1509b"],{"./src/components/nameLabel/index.tsx":function(e,n,s){var o=s("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),c=s("./node_modules/react/cjs/react.production.min.js"),t=s("./src/components/nameLabel/index.module.scss"),a=s("./node_modules/react/cjs/react-jsx-runtime.production.min.js");n.default=function(e){var n=e.name,s=void 0===n?"":n,r=(0,c.useMemo)((function(){return s?s.toString()[0]:""}),[s]);return(0,a.jsx)(o.View,{className:t.default.name,children:r})}}}]);