Commit 122b919d by 李伟康

update .gitignore

1 parent c91a3411
project.config.json project.config.json
project.private.config.json project.private.config.json
sitemap.json sitemap.json
# local env files # local env files
.env.local .env.local
.env.*.local .env.*.local
# Log files # Log files
npm-debug.log* npm-debug.log*
yarn-debug.log* yarn-debug.log*
yarn-error.log* yarn-error.log*
# Editor directories and files # Editor directories and files
.idea .idea
.vscode .vscode
*.suo *.suo
*.ntvs* *.ntvs*
*.njsproj *.njsproj
*.sln *.sln
*.sw* *.sw*
/* components/GlCell/GlCell.wxss */ /* components/GlCell/GlCell.wxss */
.cell-box { .cell-box {
background: #fff; background: #fff;
font-size: 28rpx; font-size: 28rpx;
color: #333333; color: #333333;
box-sizing: border-box; box-sizing: border-box;
} }
.cell { .cell {
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
/* padding-left: 40rpx; */ /* padding-left: 40rpx; */
align-items: center; align-items: center;
} }
.cellHeight { .cellHeight {
height: 120rpx; height: 120rpx;
} }
.cell.border { .cell.border {
border-bottom: 2rpx solid rgba(195, 195, 195, .3); border-bottom: 2rpx solid rgba(195, 195, 195, .3);
} }
.cell-label { .cell-label {
width: 25%; width: 25%;
} }
.titleIcon { .titleIcon {
width: 34rpx; width: 34rpx;
height: 34rpx; height: 34rpx;
} }
.cell-value { .cell-value {
width: 75%; width: 75%;
position: relative; position: relative;
height: 100%; height: 100%;
} }
.cell-value .false { .cell-value .false {
padding-right: 40rpx !important; padding-right: 40rpx !important;
} }
.value { .value {
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
padding-right: 70rpx; padding-right: 70rpx;
box-sizing: border-box; box-sizing: border-box;
} }
.required { .required {
color: #f00; color: #f00;
} }
.details, .details,
.placeholder { .placeholder {
display: none; display: none;
} }
.slot:empty+.details, .slot:empty+.details,
.slot:empty+.placeholder { .slot:empty+.placeholder {
display: block; display: block;
width: 100%; width: 100%;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.placeholder { .placeholder {
color: #C3C3C3; color: #C3C3C3;
} }
.cell-value .right { .cell-value .right {
justify-content: flex-end; justify-content: flex-end;
height: 100%; height: 100%;
box-sizing: border-box; box-sizing: border-box;
} }
.cell-value .right .details, .cell-value .right .details,
.cell-value .right .placeholder { .cell-value .right .placeholder {
text-align: right; text-align: right;
} }
.slot { .slot {
width: 100%; width: 100%;
} }
.slot:empty { .slot:empty {
display: none; display: none;
} }
.arrow { .arrow {
position: absolute; position: absolute;
right: 40rpx; right: 40rpx;
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
width: 28rpx; width: 28rpx;
height: 26rpx; height: 26rpx;
} }
\ No newline at end of file \ No newline at end of file
/* components/Select/Select.wxss */ /* components/Select/Select.wxss */
.com-selectBox { .com-selectBox {
width: 200px; width: 200px;
} }
.com-sContent { .com-sContent {
border: 1px solid #e2e2e2; border: 1px solid #e2e2e2;
background: white; background: white;
font-size: 16px; font-size: 16px;
position: relative; position: relative;
height: 30px; height: 30px;
line-height: 30px; line-height: 30px;
} }
.com-sImg { .com-sImg {
position: absolute; position: absolute;
right: 10px; right: 10px;
top: 11px; top: 11px;
width: 16px; width: 16px;
height: 9px; height: 9px;
transition: all .3s ease; transition: all .3s ease;
} }
.com-sTxt { .com-sTxt {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
padding: 0 20px 0 6px; padding: 0 20px 0 6px;
font-size: 14px; font-size: 14px;
} }
.com-sList { .com-sList {
background: white; background: white;
width: inherit; width: inherit;
position: absolute; position: absolute;
border: 1px solid #e2e2e2; border: 1px solid #e2e2e2;
border-top: none; border-top: none;
box-sizing: border-box; box-sizing: border-box;
z-index: 3; z-index: 3;
max-height: 120px; max-height: 120px;
overflow: auto; overflow: auto;
} }
.com-sItem { .com-sItem {
height: 30px; height: 30px;
line-height: 30px; line-height: 30px;
border-top: 1px solid #e2e2e2; border-top: 1px solid #e2e2e2;
padding: 0 6px; padding: 0 6px;
text-align: left; text-align: left;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
font-size: 14px; font-size: 14px;
} }
.com-sItem:first-child { .com-sItem:first-child {
border-top: none; border-top: none;
} }
\ No newline at end of file \ No newline at end of file
import { IMG_URL } from '~/utils/constantData' import { IMG_URL } from '~/utils/constantData'
module.exports = Behavior({ module.exports = Behavior({
data: { data: {
IMGURL: IMG_URL IMGURL: IMG_URL
} }
}) })
/* pages/mineDetail/customerManagement/customerManagement.wxss */ /* pages/mineDetail/customerManagement/customerManagement.wxss */
page { page {
background-color: #F2F3F7; background-color: #F2F3F7;
} }
.input { .input {
text-align: left; text-align: left;
font-size: 28rpx; font-size: 28rpx;
} }
.placeholder-class { .placeholder-class {
color: #C3C3C3; color: #C3C3C3;
} }
.customerBox { .customerBox {
box-sizing: border-box; box-sizing: border-box;
margin: 20rpx 20rpx 0; margin: 20rpx 20rpx 0;
padding: 32rpx; padding: 32rpx;
background: #FFFFFF; background: #FFFFFF;
border-radius: 8rpx; border-radius: 8rpx;
.titleCon { .titleCon {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
border-bottom: 2rpx dashed #CCCED1; border-bottom: 2rpx dashed #CCCED1;
padding-bottom: 20rpx; padding-bottom: 20rpx;
.name { .name {
font-size: 28rpx; font-size: 28rpx;
color: #323436; color: #323436;
} }
.statusBtn { .statusBtn {
font-size: 24rpx; font-size: 24rpx;
color: #3666FE; color: #3666FE;
} }
} }
} }
.cellSty { .cellSty {
display: block; display: block;
height: 80rpx; height: 80rpx;
line-height: 80rpx; line-height: 80rpx;
} }
\ No newline at end of file \ No newline at end of file
/* pages/mineDetail/messageBox/messageBox.wxss */ /* pages/mineDetail/messageBox/messageBox.wxss */
.layout { .layout {
position: relative; position: relative;
// padding: 400rpx 16rpx 0; // padding: 400rpx 16rpx 0;
padding-top: 400rpx; padding-top: 400rpx;
font-size: 24rpx; font-size: 24rpx;
color: #8A8C90; color: #8A8C90;
&::after { &::after {
content: ''; content: '';
width: 100%; width: 100%;
height: 486rpx; height: 486rpx;
background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/login/bg.webp') no-repeat; background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/login/bg.webp') no-repeat;
background-size: 100% 486rpx; background-size: 100% 486rpx;
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
z-index: -1; z-index: -1;
} }
.tabContainer { .tabContainer {
height: 100rpx; height: 100rpx;
} }
} }
\ No newline at end of file \ No newline at end of file
/* pages/tab/output/output.wxss */ /* pages/tab/output/output.wxss */
@keyframes opacity-view { @keyframes opacity-view {
0% { 0% {
opacity: 0; opacity: 0;
} }
100% { 100% {
opacity: 1; opacity: 1;
} }
} }
page { page {
background-color: #fff; background-color: #fff;
} }
.layout { .layout {
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
// padding: 400rpx 16rpx 0; // padding: 400rpx 16rpx 0;
padding-top: 400rpx; padding-top: 400rpx;
font-size: 24rpx; font-size: 24rpx;
color: #8A8C90; color: #8A8C90;
&::after { &::after {
content: ''; content: '';
width: 100%; width: 100%;
height: 486rpx; height: 486rpx;
background-size: 100% 486rpx; background-size: 100% 486rpx;
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
z-index: -1; z-index: -1;
} }
.tabContainer { .tabContainer {
height: 100rpx; height: 100rpx;
} }
} }
.userInfoCon { .userInfoCon {
height: 360rpx; height: 360rpx;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
.headPortrait { .headPortrait {
width: 128rpx; width: 128rpx;
height: 128rpx; height: 128rpx;
border-radius: 64rpx; border-radius: 64rpx;
border: 2rpx solid #fff; border: 2rpx solid #fff;
} }
.name { .name {
font-weight: 600; font-weight: 600;
font-size: 32rpx; font-size: 32rpx;
color: #323436; color: #323436;
margin: 16rpx 0; margin: 16rpx 0;
} }
.id { .id {
font-size: 28rpx; font-size: 28rpx;
color: #323436; color: #323436;
} }
.createTime { .createTime {
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 24rpx; font-size: 24rpx;
color: #8A8C90; color: #8A8C90;
margin-top: 16rpx; margin-top: 16rpx;
} }
} }
.utilBoxTitle { .utilBoxTitle {
font-size: 28rpx; font-size: 28rpx;
color: #8A8C90; color: #8A8C90;
text-align-last: left; text-align-last: left;
margin-left: 34rpx; margin-left: 34rpx;
} }
.boxItemCon { .boxItemCon {
display: flex; display: flex;
padding: 0 10rpx; padding: 0 10rpx;
.item { .item {
margin-left: 66rpx; margin-left: 66rpx;
margin-top: 32rpx; margin-top: 32rpx;
// height: 96rpx; // height: 96rpx;
// width: 96rpx; // width: 96rpx;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
.imgcon { .imgcon {
position: relative; position: relative;
.img { .img {
width: 96rpx; width: 96rpx;
height: 96rpx; height: 96rpx;
} }
.redPot { .redPot {
width: 12rpx; width: 12rpx;
height: 12rpx; height: 12rpx;
background: #F35251; background: #F35251;
border-radius: 6rpx; border-radius: 6rpx;
position: absolute; position: absolute;
top: 24rpx; top: 24rpx;
right: 20rpx; right: 20rpx;
z-index: 1; z-index: 1;
} }
} }
.name { .name {
font-size: 24rpx; font-size: 24rpx;
color: #323436; color: #323436;
margin-top: 8rpx; margin-top: 8rpx;
} }
} }
} }
.logoutBtn { .logoutBtn {
position: fixed; position: fixed;
bottom: 106rpx; bottom: 106rpx;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
font-size: 28rpx !important; font-size: 28rpx !important;
color: #8A8C90 !important; color: #8A8C90 !important;
font-weight: 400 !important; font-weight: 400 !important;
border: 2rpx dashed #EEEEEE !important; border: 2rpx dashed #EEEEEE !important;
background-color: #fff !important; background-color: #fff !important;
} }
\ No newline at end of file \ No newline at end of file
/* pages/tab/output/components/accountSwitchingPop/accountSwitchingPop.wxss */ /* pages/tab/output/components/accountSwitchingPop/accountSwitchingPop.wxss */
.search-box { .search-box {
width: 100%; width: 100%;
height: 104rpx; height: 104rpx;
padding-left: 32rpx; padding-left: 32rpx;
// margin-top: 20rpx; // margin-top: 20rpx;
display: flex; display: flex;
align-items: center; align-items: center;
background-color: #fff; background-color: #fff;
position: sticky; position: sticky;
top: 0; top: 0;
left: 0; left: 0;
z-index: 9; z-index: 9;
box-sizing: border-box; box-sizing: border-box;
} }
.search-box .search-input { .search-box .search-input {
background: #F7F8FA; background: #F7F8FA;
border-radius: 38rpx; border-radius: 38rpx;
width: 606rpx; width: 606rpx;
height: 72rpx; height: 72rpx;
display: flex; display: flex;
align-items: center; align-items: center;
} }
.search-box .search-input .search-icon { .search-box .search-input .search-icon {
width: 28rpx; width: 28rpx;
height: 28rpx; height: 28rpx;
margin: 0 10rpx 0 26rpx; margin: 0 10rpx 0 26rpx;
} }
.search-box .search-input .search-clear { .search-box .search-input .search-clear {
width: 36rpx; width: 36rpx;
height: 36rpx; height: 36rpx;
margin: 0 26rpx 0 10rpx; margin: 0 26rpx 0 10rpx;
} }
.search-box .search-input .input { .search-box .search-input .input {
font-size: 28rpx; font-size: 28rpx;
width: calc(100% - 136rpx); width: calc(100% - 136rpx);
} }
.input-placeholder { .input-placeholder {
color: rgba(200, 201, 204, .89); color: rgba(200, 201, 204, .89);
} }
.search-box .search { .search-box .search {
width: 144rpx; width: 144rpx;
height: 100%; height: 100%;
color: #666; color: #666;
box-sizing: border-box; box-sizing: border-box;
padding: 0 24rpx; padding: 0 24rpx;
} }
.search-box .search .text-center { .search-box .search .text-center {
font-size: 24rpx; font-size: 24rpx;
/* background-color: #f7f7f7; */ /* background-color: #f7f7f7; */
border-radius: 12rpx; border-radius: 12rpx;
width: 100%; width: 100%;
font-size: 32rpx; font-size: 32rpx;
color: #858A94; color: #858A94;
} }
.search-box .search .text-center .search-filter { .search-box .search .text-center .search-filter {
margin-left: 6rpx; margin-left: 6rpx;
width: 24rpx; width: 24rpx;
height: 24rpx; height: 24rpx;
} }
.itemCon { .itemCon {
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
// background-color: #fff; // background-color: #fff;
height: 80rpx; height: 80rpx;
color: #323436; color: #323436;
line-height: 80rpx; line-height: 80rpx;
padding: 0 32rpx; padding: 0 32rpx;
} }
.active { .active {
// color: aqua; // color: aqua;
background: #F0F7FF; background: #F0F7FF;
font-size: 28rpx; font-size: 28rpx;
color: #3666FE; color: #3666FE;
} }
\ No newline at end of file \ No newline at end of file
/* pages/tab/output/components/merchant/mrechant.wxss */ /* pages/tab/output/components/merchant/mrechant.wxss */
.con { .con {
box-sizing: border-box; box-sizing: border-box;
padding: 16rpx 16rpx 0; padding: 16rpx 16rpx 0;
background-color: #F2F3F7; background-color: #F2F3F7;
.statistics { .statistics {
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
// width: 360rpx; // width: 360rpx;
width: 100%; width: 100%;
height: 140rpx; height: 140rpx;
padding: 32rpx; padding: 32rpx;
background-color: #fff; background-color: #fff;
border-radius: 8rpx; border-radius: 8rpx;
.box { .box {
flex: 1; flex: 1;
.num { .num {
color: #323436; color: #323436;
font-family: MiSans-S0rpxibold; font-family: MiSans-S0rpxibold;
font-weight: 600; font-weight: 600;
font-size: 26rpx; font-size: 26rpx;
margin-bottom: 10rpx; margin-bottom: 10rpx;
} }
.label { .label {
font-size: 24rpx; font-size: 24rpx;
color: #8A8C90; color: #8A8C90;
} }
// display: flex; // display: flex;
// flex-direction: column; // flex-direction: column;
} }
} }
} }
\ No newline at end of file \ No newline at end of file
/* pages/tab/output/components/merchantDataStatistics/merchantDataStatistics.wxss */ /* pages/tab/output/components/merchantDataStatistics/merchantDataStatistics.wxss */
.merchantDataStatistics-con { .merchantDataStatistics-con {
margin-top: 16rpx; margin-top: 16rpx;
border-radius: 8rpx; border-radius: 8rpx;
background: #FFFFFF; background: #FFFFFF;
.contitle { .contitle {
box-sizing: border-box; box-sizing: border-box;
height: 75rpx; height: 75rpx;
// border-bottom: 1; // border-bottom: 1;
padding: 16rpx 24rpx; padding: 16rpx 24rpx;
border-bottom: 2rpx dashed #CCCED1; border-bottom: 2rpx dashed #CCCED1;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.name { .name {
font-family: PingFangSC-Medium; font-family: PingFangSC-Medium;
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: 32rpx;
color: #323436; color: #323436;
} }
.select { .select {
display: flex; display: flex;
align-items: center; align-items: center;
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 24rpx; font-size: 24rpx;
color: #323436; color: #323436;
.arrow { .arrow {
width: 24rpx; width: 24rpx;
height: 24rpx; height: 24rpx;
margin-left: 10rpx; margin-left: 10rpx;
transition: all .3 ease; transition: all .3 ease;
} }
.isAct { .isAct {
transform: rotate(180deg); transform: rotate(180deg);
} }
} }
} }
} }
.outputValueCon { .outputValueCon {
.title { .title {
box-sizing: border-box; box-sizing: border-box;
font-weight: 600; font-weight: 600;
font-size: 32rpx; font-size: 32rpx;
color: #323436; color: #323436;
border-bottom: 2rpx dashed #CCCED1; border-bottom: 2rpx dashed #CCCED1;
padding: 12rpx; padding: 12rpx;
} }
.full { .full {
height: 800rpx !important; height: 800rpx !important;
} }
.short { .short {
height: 600rpx !important; height: 600rpx !important;
} }
.bg-image { .bg-image {
width: 670rpx; width: 670rpx;
height: 550rpx; height: 550rpx;
z-index: -1; z-index: -1;
// object-fit: cover; // object-fit: cover;
} }
} }
\ No newline at end of file \ No newline at end of file
/* pages/tab/output/components/senceSelect/senceSelect.wxss */ /* pages/tab/output/components/senceSelect/senceSelect.wxss */
.sceneCon { .sceneCon {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-around; justify-content: space-around;
padding: 27rpx 10rpx; padding: 27rpx 10rpx;
position: relative; position: relative;
.itemCon { .itemCon {
position: relative; position: relative;
box-sizing: border-box; box-sizing: border-box;
flex: 1; flex: 1;
height: 250rpx; height: 250rpx;
background-color: #F7F8FC; background-color: #F7F8FC;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
border-radius: 12rpx; border-radius: 12rpx;
.itemImg { .itemImg {
position: relative; position: relative;
.icon { .icon {
width: 56rpx; width: 56rpx;
height: 56rpx; height: 56rpx;
} }
.lockIcon { .lockIcon {
position: absolute; position: absolute;
top: -18rpx; top: -18rpx;
right: -18rpx; right: -18rpx;
// transform: translate(-50%, -50%); // transform: translate(-50%, -50%);
width: 36rpx; width: 36rpx;
height: 36rpx; height: 36rpx;
} }
} }
.name { .name {
font-size: 24rpx; font-size: 24rpx;
color: #8A8C90; color: #8A8C90;
margin: 10rpx 0; margin: 10rpx 0;
} }
.name.activation { .name.activation {
font-weight: 600; font-weight: 600;
font-size: 24rpx; font-size: 24rpx;
color: #323436; color: #323436;
} }
.label { .label {
font-size: 18rpx; font-size: 18rpx;
color: #8A8C90; color: #8A8C90;
} }
.total { .total {
font-weight: 500; font-weight: 500;
font-size: 24rpx; font-size: 24rpx;
color: #3666FE; color: #3666FE;
margin-top: 22rpx; margin-top: 22rpx;
} }
} }
.itemCon+.itemCon { .itemCon+.itemCon {
margin-left: 4rpx; margin-left: 4rpx;
} }
.selectBgc { .selectBgc {
border: 2px solid #3666FE; border: 2px solid #3666FE;
/*按比例缩放*/ /*按比例缩放*/
} }
} }
// .sceneCon // .sceneCon
.itemCon.activation::before { .itemCon.activation::before {
content: '已开通'; content: '已开通';
position: absolute; position: absolute;
top: 0rpx; top: 0rpx;
left: 0rpx; left: 0rpx;
width: 56rpx; width: 56rpx;
height: 32rpx; height: 32rpx;
line-height: 32rpx; line-height: 32rpx;
text-align: center; text-align: center;
font-size: 16rpx; font-size: 16rpx;
color: #EF971E; color: #EF971E;
background: #FEEBD6; background: #FEEBD6;
border-radius: 6rpx 0 8rpx 0; border-radius: 6rpx 0 8rpx 0;
} }
\ No newline at end of file \ No newline at end of file
/* pages/tab/output/output.wxss */ /* pages/tab/output/output.wxss */
@keyframes opacity-view { @keyframes opacity-view {
0% { 0% {
opacity: 0; opacity: 0;
} }
100% { 100% {
opacity: 1; opacity: 1;
} }
} }
.layout { .layout {
position: relative; position: relative;
// padding: 400rpx 16rpx 0; // padding: 400rpx 16rpx 0;
padding-top: 400rpx; padding-top: 400rpx;
font-size: 24rpx; font-size: 24rpx;
color: #8A8C90; color: #8A8C90;
&::after { &::after {
content: ''; content: '';
width: 100%; width: 100%;
height: 486rpx; height: 486rpx;
background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/login/bg.webp') no-repeat; background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/login/bg.webp') no-repeat;
background-size: 100% 486rpx; background-size: 100% 486rpx;
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
z-index: -1; z-index: -1;
} }
.tabContainer { .tabContainer {
height: 100rpx; height: 100rpx;
} }
} }
.navigation-title { .navigation-title {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.navigation-title-text { .navigation-title-text {
text-align: center; text-align: center;
max-width: calc(100% - 24rpx); max-width: calc(100% - 24rpx);
} }
.navigation-title .arrow { .navigation-title .arrow {
width: 20rpx; width: 20rpx;
height: 16rpx; height: 16rpx;
margin-left: 4rpx; margin-left: 4rpx;
transform: translateY(25%); transform: translateY(25%);
transition: all 0.5s; transition: all 0.5s;
} }
.navigation-title .move { .navigation-title .move {
transform: rotate(-180deg) translateY(0); transform: rotate(-180deg) translateY(0);
} }
\ No newline at end of file \ No newline at end of file
{
"description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"setting": {
"urlCheck": true,
"scopeDataCheck": false,
"coverView": true,
"es6": false,
"postcss": true,
"compileHotReLoad": false,
"lazyloadPlaceholderEnable": false,
"preloadBackgroundData": false,
"minified": true,
"autoAudits": false,
"newFeature": false,
"uglifyFileName": false,
"uploadWithSourceMap": true,
"useIsolateContext": false,
"nodeModules": false,
"enhance": true,
"useMultiFrameRuntime": true,
"useApiHook": true,
"useApiHostProcess": true,
"showShadowRootInWxmlPanel": true,
"packNpmManually": false,
"packNpmRelationList": [],
"minifyWXSS": true,
"disableUseStrict": false,
"ignoreUploadUnusedFiles": true,
"minifyWXML": true,
"useStaticServer": true,
"showES6CompileOption": false,
"checkInvalidKey": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"useCompilerPlugins": [
"sass"
]
},
"compileType": "miniprogram",
"simulatorType": "wechat",
"simulatorPluginLibVersion": {
"qywx_simulator_plugin": "2.4.0"
},
"editorSetting": {
"tabIndent": "insertSpaces",
"tabSize": 2
},
"libVersion": "2.23.4",
"packOptions": {
"ignore": [],
"include": []
},
"appid": "wx2c28337db96364d2",
"projectname": "miniprogram-scrm-shopmall",
"condition": {}
}
\ No newline at end of file \ No newline at end of file
{
"setting": {
"compileHotReLoad": false,
"urlCheck": false,
"lazyloadPlaceholderEnable": true
},
"condition": {
"miniprogram": {
"list": [
{
"name": "看产值",
"pathName": "pages/tab/output/output",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "携带目标页面",
"pathName": "login/loading/loading",
"query": "url=%2Fpages%2Ftab%2Fmine%2Fmine%3Fid%3D123",
"launchMode": "default",
"scene": null
},
{
"name": "选择账号",
"pathName": "login/accountItems/accountItems",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "个人中心",
"pathName": "pages/tab/mine/mine",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "",
"pathName": "login/index/index",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "客户管理",
"pathName": "pages/mineDetail/customerManagement/customerManagement",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "消息盒子",
"pathName": "pages/mineDetail/messageBox/messageBox",
"query": "",
"launchMode": "default",
"scene": null
}
]
}
},
"projectname": "business-assistant",
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"libVersion": "2.24.4"
}
\ No newline at end of file \ No newline at end of file
{
"desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
"rules": [{
"action": "allow",
"page": "*"
}]
}
\ No newline at end of file \ No newline at end of file
...@@ -6,7 +6,7 @@ const target = ['ip', 'dev', 'uat', 'prod'] ...@@ -6,7 +6,7 @@ const target = ['ip', 'dev', 'uat', 'prod']
2测试 2测试
3生产 3生产
*/ */
const index = 0 const index = 1
const secretKey = { const secretKey = {
ip: {}, ip: {},
dev: { dev: {
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
* @param {*} shareImage 分享图片 不传默认当前页面截图 * @param {*} shareImage 分享图片 不传默认当前页面截图
* @param {*} shareQuery 分享页面参数 * @param {*} shareQuery 分享页面参数
* @param {*} noPageAuth 分享页面是否需要登录拦截 * @param {*} noPageAuth 分享页面是否需要登录拦截
* @param {*} shareFun 分享页面
* @returns * @returns
*/ */
class Share { class Share {
...@@ -32,12 +33,14 @@ class Share { ...@@ -32,12 +33,14 @@ class Share {
sharePath, sharePath,
shareImage, shareImage,
shareQuery, shareQuery,
noPageAuth noPageAuth,
shareFun
} = this, } = this,
path = `/${this.route}` path = `/${this.route}`
if (sharePath) path = `/${sharePath}` if (sharePath) path = `/${sharePath}`
if (shareQuery) path += `?${shareQuery}` if (shareQuery) path += `?${shareQuery}`
if (!noPageAuth) path = `/login/loading/loading?url=${encodeURIComponent(path)}` if (!noPageAuth) path = `/login/loading/loading?url=${encodeURIComponent(path)}`
if (shareFun) shareFun()
return { return {
path, path,
title: shareTitle, title: shareTitle,
......
/** /**
* 微信校验通知类工具封装 * 微信校验通知类工具封装
*/ */
const tipsObj = { const tipsObj = {
phone: { phone: {
icon: 'error', icon: 'error',
title: '请输入手机号' title: '请输入手机号'
}, },
username: { username: {
icon: 'error', icon: 'error',
title: '请输入用户名' title: '请输入用户名'
}, },
password: { password: {
icon: 'error', icon: 'error',
title: '请输入密码' title: '请输入密码'
} }
} }
/** /**
* 禁止滑动 * 禁止滑动
*/ */
const noScroll = () => {} const noScroll = () => {}
/**设置粘贴板内容 */ /**设置粘贴板内容 */
const setCopyData = (data, callBack) => { const setCopyData = (data, callBack) => {
wx.setClipboardData({ wx.setClipboardData({
data: data, data: data,
success(res) { success(res) {
if (callBack && typeof callBack === 'function') callBack(res) if (callBack && typeof callBack === 'function') callBack(res)
} }
}) })
} }
/** /**
* 防止重复点击 * 防止重复点击
*/ */
const showLoading = (title = '') => { const showLoading = (title = '') => {
if (wx.showLoading) { if (wx.showLoading) {
// 基础库 1.1.0 微信6.5.6版本开始支持,低版本需做兼容处理 // 基础库 1.1.0 微信6.5.6版本开始支持,低版本需做兼容处理
wx.showLoading({ wx.showLoading({
title, title,
mask: true mask: true
}) })
} else { } else {
// 低版本采用Toast兼容处理并将时间设为20秒以免自动消失 // 低版本采用Toast兼容处理并将时间设为20秒以免自动消失
wx.showToast({ wx.showToast({
title, title,
icon: 'loading', icon: 'loading',
mask: true, mask: true,
duration: 20000 duration: 20000
}) })
} }
} }
const hideLoading = () => { const hideLoading = () => {
if (wx.hideLoading) { if (wx.hideLoading) {
// 基础库 1.1.0 微信6.5.6版本开始支持,低版本需做兼容处理 // 基础库 1.1.0 微信6.5.6版本开始支持,低版本需做兼容处理
wx.hideLoading() wx.hideLoading()
} else { } else {
wx.hideToast() wx.hideToast()
} }
} }
const showToast = val => { const showToast = val => {
let obj = {} let obj = {}
if (val && typeof val === 'string') { if (val && typeof val === 'string') {
obj.title = val obj.title = val
obj.icon = 'none' obj.icon = 'none'
} else { } else {
obj = val obj = val
} }
return wx.showToast(obj) return wx.showToast(obj)
} }
/** /**
* *
* @param {* string | object} name 信息名称 * @param {* string | object} name 信息名称
* @param {* object | null} [params] 信息名称参数 * @param {* object | null} [params] 信息名称参数
*/ */
const wxShowToast = (name, params) => { const wxShowToast = (name, params) => {
if (arguments.length == 2) { if (arguments.length == 2) {
wx.showToast({ wx.showToast({
title: tipsObj[name]['title'], title: tipsObj[name]['title'],
icon: tipsObj[name]['icon'], icon: tipsObj[name]['icon'],
...params ...params
}) })
} else { } else {
wx.showToast({ wx.showToast({
...params ...params
}) })
} }
} }
/**获取设备信息 */ /**获取设备信息 */
const getSystemInfo = callBack => { const getSystemInfo = callBack => {
wx.getSystemInfo({ wx.getSystemInfo({
success(res) { success(res) {
callBack(res) callBack(res)
}, },
fail(err) { fail(err) {
callBack(err) callBack(err)
} }
}) })
} }
/**拨打电话 */ /**拨打电话 */
const phoneCall = phoneNumber => { const phoneCall = phoneNumber => {
wx.makePhoneCall({ wx.makePhoneCall({
phoneNumber: `${phoneNumber}` phoneNumber: `${phoneNumber}`
}) })
} }
/**查看大图 */ /**查看大图 */
const previewImage = params => { const previewImage = params => {
wx.previewImage(params) wx.previewImage(params)
} }
const wxApi = { const wxApi = {
previewImage, previewImage,
getSystemInfo, getSystemInfo,
showLoading, showLoading,
hideLoading, hideLoading,
setCopyData, setCopyData,
showToast, showToast,
phoneCall, phoneCall,
noScroll noScroll
} }
export default wxApi export default wxApi
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!