Ver código fonte

完成代码整理 代码上传

wangxin 3 anos atrás
pai
commit
490cd673c0

+ 2 - 1
miniprogram/app.json

@@ -20,7 +20,8 @@
     "backgroundTextStyle": "light",
     "navigationBarBackgroundColor": "#1890FF",
     "navigationBarTextStyle": "white"
-  },
+	},
+	"lazyCodeLoading": "requiredComponents",
   "navigateToMiniProgramAppIdList": ["wx5a3a7366fd07e119"],
   "sitemapLocation": "sitemap.json"
 }

+ 6 - 6
miniprogram/config.ts

@@ -7,14 +7,14 @@
  * @FilePath: \Mina_B_T\miniprogram\config.ts
  */
 // 测试服
-export const apiUrl = "https://hw.hap-job.com/happy-boot"
-export const baseurl = "https://hw.hap-job.com"
-export const captcha = '2072736870'
+// export const apiUrl = "https://hw.hap-job.com/happy-boot"
+// export const baseurl = "https://hw.hap-job.com"
+// export const captcha = '2072736870'
 // export const imgServerUrl = "https://hpjobtest.oss-cn-shanghai.aliyuncs.com/uploadfiles/mina"//图片服务器地址
 // export const imgServerUrl_new = "https://hpjobtest.oss-cn-shanghai.aliyuncs.com"//图片服务器地址
 // 正式服
-// export const apiUrl = "https://www.dal-pay.com/happy-boot"
-// export const baseurl = "https://www.dal-pay.com"
-// export const captcha = '2012155849'
+export const apiUrl = "https://www.dal-pay.com/happy-boot"
+export const baseurl = "https://www.dal-pay.com"
+export const captcha = '2012155849'
 // export const imgServerUrl = "https://happyjob.oss-cn-shanghai.aliyuncs.com/uploadfiles/mina"//图片服务器地址
 // export const imgServerUrl_new = "https://happyjob.oss-cn-shanghai.aliyuncs.com"//图片服务器地址

+ 1 - 1
miniprogram/pages/detail/detail.wxml

@@ -1,5 +1,5 @@
 <!--pages/detail/detail.wxml-->
-<import src='/template/button/button.wxml' />
+<!-- <import src='/template/button/button.wxml' /> -->
 <wxs src="../../app.wxs" module='app'></wxs>
 <!-- <view class="container safe-area-bottom" hidden="{{show}}">
 	待遇详情

+ 5 - 7
miniprogram/pages/person/person.ts

@@ -51,7 +51,7 @@ Page({
 			})
 		} else {
 			wx.showToast({
-				title: '该功能暂未开',
+				title: '该功能暂未开',
 				icon: 'none'
 			})
 		}
@@ -84,12 +84,10 @@ Page({
 			})
 			taxRegistration().then(res => {
 				const data = <responseOptionsType<taxRegistrationResponseType>>res
-				if (data.data?.taxUrl) {
-					this.setData({
-						taxUrl: data.data.taxUrl,
-						taxName: data.data.taxName
-					})
-				}
+				this.setData({
+					taxUrl: data.data?.taxUrl || '',
+					taxName: data.data?.taxName || ''
+				})
 				if (data.data?.taxMessage && wx.getStorageSync('firstLogin')) {
 					wx.showModal({
 						title: '提示',

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 11
miniprogram/service/impl/hwEnrollment.impl.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 23
miniprogram/service/impl/hwOrder.impl.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 17
miniprogram/service/impl/hwPaymentDetail.impl.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 21
miniprogram/service/impl/hwRequirement.impl.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 17
miniprogram/service/impl/hwUser.impl.js


+ 0 - 3
miniprogram/style/template.wxss

@@ -1,3 +0,0 @@
-@import '/template/button/button-default.wxss';
-@import '/template/button/button-fixed.wxss';
-@import '/template/button/button-check.wxss';

+ 0 - 41
miniprogram/template/button/button-check.wxss

@@ -1,41 +0,0 @@
-.button-check {
-  width: 100%;
-  height: 124rpx;
-  background: #fff;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  position: fixed;
-  bottom: 0;
-  left: 0;
-}
-
-.button-check-content {
-  width: 690rpx;
-  height: 88rpx;
-  color: #fff;
-  font-size: 34rpx;
-  border-radius: 10rpx;
-  display: flex;
-  align-items: center;
-  justify-content: space-between;
-  position: relative;
-}
-
-.button-check-left {
-  height: 88rpx;
-  width: 220rpx;
-  line-height: 88rpx;
-  text-align: center;
-  border-radius: 10rpx;
-  box-sizing: border-box;
-}
-
-.button-check-right {
-  flex: 1;
-  height: 88rpx;
-  text-align: center;
-  line-height: 88rpx;
-  border-radius: 10rpx;
-  margin-left: 20rpx;
-}

+ 0 - 29
miniprogram/template/button/button-default.wxss

@@ -1,29 +0,0 @@
-
-.button-default {
-  width: 100%;
-  height: 88rpx;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-}
-
-.button-default-content {
-  width: 690rpx;
-  height: 88rpx;
-  color: #fff;
-  font-size: 34rpx;
-  border-radius: 10rpx;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  position: relative;
-}
-
-.button-default-content-button {
-  height: 100%;
-  width: 100%;
-  position: absolute;
-  left: 0;
-  top: 0;
-  opacity: 0;
-}

+ 0 - 34
miniprogram/template/button/button-fixed.wxss

@@ -1,34 +0,0 @@
-/* 底部固定按钮 */
-
-.button-fixed {
-  width: 100%;
-  height: 124rpx;
-  background: #fff;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  position: fixed;
-  bottom: 0;
-  left: 0;
-}
-
-.button-fixed-content {
-  width: 690rpx;
-  height: 88rpx;
-  color: #fff;
-  font-size: 34rpx;
-  border-radius: 10rpx;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  position: relative;
-}
-
-.button-fixed-content-button {
-  height: 100%;
-  width: 100%;
-  position: absolute;
-  left: 0;
-  top: 0;
-  opacity: 0;
-}

+ 0 - 29
miniprogram/template/button/button.wxml

@@ -1,29 +0,0 @@
-<!--底部按钮 在表单最末尾出现的按钮。 -->
-<template name='button'>
-  <view class="button-default {{class}} safe-area-bottom" style="margin-top:{{margin}}rpx">
-    <view class="button-default-content" catchtap="{{func  || undefind}}" style="background:{{background||'linear-gradient(90deg,#5568F0 0%,#823BFF 100%)'}}">
-      <text class="">{{text || '按钮'}}</text>
-      <button form-type="submit" class="button-default-content-button"></button>
-    </view>
-  </view>
-</template>
-
-<!--底部悬浮按钮  置于屏幕底部悬浮于页面上面的按钮。 -->
-<template name='button-fixed'>
-  <view class="button-fixed safe-area-bottom {{class}}">
-    <view class="button-fixed-content" catchtap="{{func  || undefind}}" style="background:{{background||'linear-gradient(90deg,#5568F0 0%,#823BFF 100%)'}}">
-      <text class="">{{text || '按钮'}}</text>
-      <button form-type="submit" class="button-fixed-content-button"></button>
-    </view>
-  </view>
-</template>
-
-<!--底部悬浮按钮  置于屏幕底部悬浮于页面上面的分开的按钮 -->
-<template name='button-check'>
-  <view class="button-check safe-area-bottom {{class}}">
-    <view class="button-check-content">
-      <view class="button-check-left"  style="border:2rpx solid {{color||'#3243BD'}};color:{{color || '#3243BD'}};display:{{display||'block'}}" bindtap="{{buttonLeft || 'buttonCheck'}}">{{text || '按钮'}}</view>
-      <view class="button-check-right"  style="background:{{background||'linear-gradient(90deg,#5568F0 0%,#823BFF 100%)'}}" bindtap="{{buttonRight || 'buttonSubmit'}}">{{btn || '按钮'}}</view>
-    </view>
-  </view>
-</template>