;
+}
+
+export interface Commit {
+ (type: string, payload?: any, options?: CommitOptions): void;
+ (payloadWithType: P, options?: CommitOptions): void;
+}
+
+export interface ActionContext {
+ dispatch: Dispatch;
+ commit: Commit;
+ state: S;
+ getters: any;
+ rootState: R;
+ rootGetters: any;
+}
+
+export interface Payload {
+ type: string;
+}
+
+export interface MutationPayload extends Payload {
+ payload: any;
+}
+
+export interface ActionPayload extends Payload {
+ payload: any;
+}
+
+export interface SubscribeOptions {
+ prepend?: boolean
+}
+
+export type ActionSubscriber
= (action: P, state: S) => any;
+export type ActionErrorSubscriber
= (action: P, state: S, error: Error) => any;
+
+export interface ActionSubscribersObject
{
+ before?: ActionSubscriber
;
+ after?: ActionSubscriber
;
+ error?: ActionErrorSubscriber
;
+}
+
+export type SubscribeActionOptions
= ActionSubscriber
| ActionSubscribersObject
;
+
+export interface DispatchOptions {
+ root?: boolean;
+}
+
+export interface CommitOptions {
+ silent?: boolean;
+ root?: boolean;
+}
+
+export interface StoreOptions {
+ state?: S | (() => S);
+ getters?: GetterTree;
+ actions?: ActionTree;
+ mutations?: MutationTree;
+ modules?: ModuleTree;
+ plugins?: Plugin[];
+ strict?: boolean;
+ devtools?: boolean;
+}
+
+export type ActionHandler = (this: Store, injectee: ActionContext, payload?: any) => any;
+export interface ActionObject {
+ root?: boolean;
+ handler: ActionHandler;
+}
+
+export type Getter = (state: S, getters: any, rootState: R, rootGetters: any) => any;
+export type Action = ActionHandler | ActionObject;
+export type Mutation = (state: S, payload?: any) => any;
+export type Plugin = (store: Store) => any;
+
+export interface Module {
+ namespaced?: boolean;
+ state?: S | (() => S);
+ getters?: GetterTree;
+ actions?: ActionTree;
+ mutations?: MutationTree;
+ modules?: ModuleTree;
+}
+
+export interface ModuleOptions {
+ preserveState?: boolean;
+}
+
+export interface GetterTree {
+ [key: string]: Getter;
+}
+
+export interface ActionTree {
+ [key: string]: Action;
+}
+
+export interface MutationTree {
+ [key: string]: Mutation;
+}
+
+export interface ModuleTree {
+ [key: string]: Module;
+}
+
+export { createLogger }
+
+declare const _default: {
+ Store: typeof Store;
+ install: typeof install;
+ mapState: typeof mapState,
+ mapMutations: typeof mapMutations,
+ mapGetters: typeof mapGetters,
+ mapActions: typeof mapActions,
+ createNamespacedHelpers: typeof createNamespacedHelpers,
+ createLogger: typeof createLogger
+};
+export default _default;
diff --git a/barter-app-main/barter-app/node_modules/vuex/types/logger.d.ts b/barter-app-main/barter-app/node_modules/vuex/types/logger.d.ts
new file mode 100644
index 0000000..b813a67
--- /dev/null
+++ b/barter-app-main/barter-app/node_modules/vuex/types/logger.d.ts
@@ -0,0 +1,20 @@
+import { Payload, Plugin } from "./index";
+
+interface Logger extends Partial> {
+ log(message: string, color: string, payload: any): void;
+ log(message: string): void;
+}
+
+export interface LoggerOption {
+ collapsed?: boolean;
+ filter?: (mutation: P, stateBefore: S, stateAfter: S) => boolean;
+ transformer?: (state: S) => any;
+ mutationTransformer?:
(mutation: P) => any;
+ actionFilter?:
(action: P, state: S) => boolean;
+ actionTransformer?:
(action: P) => any;
+ logMutations?: boolean;
+ logActions?: boolean;
+ logger?: Logger;
+}
+
+export default function createLogger(option?: LoggerOption): Plugin;
diff --git a/barter-app-main/barter-app/node_modules/vuex/types/vue.d.ts b/barter-app-main/barter-app/node_modules/vuex/types/vue.d.ts
new file mode 100644
index 0000000..302fc4e
--- /dev/null
+++ b/barter-app-main/barter-app/node_modules/vuex/types/vue.d.ts
@@ -0,0 +1,18 @@
+/**
+ * Extends interfaces in Vue.js
+ */
+
+import Vue, { ComponentOptions } from "vue";
+import { Store } from "./index";
+
+declare module "vue/types/options" {
+ interface ComponentOptions {
+ store?: Store;
+ }
+}
+
+declare module "vue/types/vue" {
+ interface Vue {
+ $store: Store;
+ }
+}
diff --git a/barter-app-main/barter-app/package-lock.json b/barter-app-main/barter-app/package-lock.json
new file mode 100644
index 0000000..e12f2a8
--- /dev/null
+++ b/barter-app-main/barter-app/package-lock.json
@@ -0,0 +1,21 @@
+{
+ "requires": true,
+ "lockfileVersion": 1,
+ "dependencies": {
+ "uni-read-pages": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/uni-read-pages/-/uni-read-pages-1.0.5.tgz",
+ "integrity": "sha512-GkrrZ0LX0vn9R5k6RKEi0Ez3Q3e2vUpjXQ8Z6/K/d28KudI9ajqgt8WEjQFlG5EPm1K6uTArN8LlqmZTEixDUA=="
+ },
+ "uni-simple-router": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmjs.org/uni-simple-router/-/uni-simple-router-2.0.6.tgz",
+ "integrity": "sha512-n5gepoT3QcBrvVLeTCY/DjUjC4m1hNzwFlOa1VlCsww/4/34MGfvegpN9OWR8jOxxtUPKGHLAG0yODL/ITCwbw=="
+ },
+ "vuex": {
+ "version": "3.6.2",
+ "resolved": "https://registry.npmjs.org/vuex/-/vuex-3.6.2.tgz",
+ "integrity": "sha512-ETW44IqCgBpVomy520DT5jf8n0zoCac+sxWnn+hMe/CzaSejb/eVw2YToiXYX+Ex/AuHHia28vWTq4goAexFbw=="
+ }
+ }
+}
diff --git a/barter-app-main/barter-app/package.json b/barter-app-main/barter-app/package.json
new file mode 100644
index 0000000..5bb7398
--- /dev/null
+++ b/barter-app-main/barter-app/package.json
@@ -0,0 +1,7 @@
+{
+ "dependencies": {
+ "uni-read-pages": "^1.0.5",
+ "uni-simple-router": "^2.0.6",
+ "vuex": "^3.6.2"
+ }
+}
diff --git a/barter-app-main/barter-app/pages.json b/barter-app-main/barter-app/pages.json
new file mode 100644
index 0000000..aa7d208
--- /dev/null
+++ b/barter-app-main/barter-app/pages.json
@@ -0,0 +1,366 @@
+{
+ "pages": [
+ {
+ "path": "pages/equity/index",
+ "name": "Equity",
+ "style":{
+ "navigationStyle":"custom",
+ "navigationBarTextStyle":"white"
+ }
+ },{
+ "path": "pages/market/index",
+ "name": "Market",
+ "style": {
+ "navigationBarTitleText":"转让市场",
+ "titleNView": {
+ "backgroundColor": "#FFFFFF",
+ "buttons": [
+ {
+ "text": "成交历史",
+ "fontSize": "14",
+ "width": "80",
+ "color": "#555555"
+ }
+ ]
+ }
+ }
+ },{
+ "path": "pages/store/index",
+ "name": "Store",
+ "style": {
+ "navigationStyle":"custom",
+ "navigationBarTitleText":"企业工具",
+ "navigationBarTextStyle":"white",
+ "navigationBarBackgroundColor":"#e93340"
+ }
+ },{
+ "path": "pages/property/index",
+ "name": "Property",
+ "style": {
+ "navigationBarTitleText": "",
+ "navigationStyle":"custom",
+ "navigationBarTextStyle":"white"
+ }
+ },{
+ "path" : "pages/goods/details",
+ "name" : "goodsDetails",
+ "style": {
+ "navigationBarTitleText":"",
+ "titleNView": {
+ "backgroundColor": "#FFFFFF",
+ "type": "transparent",
+ "buttons": [
+ {
+ "text": "分享",
+ "fontSize": "12",
+ "color": "#555555"
+ }
+ ]
+ }
+ }
+ },{
+ "path": "pages/login/login",
+ "name": "Login",
+ "style": {
+ "navigationBarTitleText": "",
+ "navigationBarBackgroundColor": "#FFFFFF",
+ "disableScroll": true
+ }
+ },{
+ "path" : "pages/company/registered",
+ "name" : "Registered",
+ "style":{
+ "navigationBarTitleText": ""
+ }
+ },{
+ "path" : "pages/company/prompt",
+ "name" : "Prompt",
+ "style":{
+ "navigationBarTitleText": "",
+ "navigationBarBackgroundColor": "#FFFFFF",
+ "disableScroll": true,
+ "titleNView": {
+ "backgroundColor": "#FFFFFF",
+ "buttons": [
+ {
+ "text": "先逛一逛",
+ "fontSize": "14",
+ "width": "80",
+ "color": "#555555"
+ }
+ ]
+ }
+ }
+ },{
+ "path": "pages/vip/index",
+ "name": "Vip",
+ "style": {
+ "navigationBarTitleText": "会员",
+ "navigationBarBackgroundColor":"#1f1b1c",
+ "navigationBarTextStyle":"white",
+ "backgroundColor":"#fefaef"
+ }
+ }
+ ,{
+ "path" : "pages/equity/search",
+ "name" : "Search",
+ "style":{
+ "navigationBarTitleText": "搜索"
+ }
+ },{
+ "path" : "pages/market/logs",
+ "name" : "marketLogs",
+ "style" :{
+ "navigationBarTitleText": "成交历史"
+ }
+ },{
+ "path" : "pages/order/buy",
+ "name" : "Buy",
+ "style" :{
+ "navigationBarTitleText": "确认订单",
+ "navigationBarBackgroundColor":"#FFFFFF"
+ }
+ },{
+ "path" : "pages/order/index",
+ "name" : "Order",
+ "style" :{
+ "navigationBarTitleText": "订单管理"
+ }
+ },{
+ "path" : "pages/order/details",
+ "name" : "OrderDetails",
+ "style" :{
+ "navigationBarTitleText": "订单详情"
+ }
+ },{
+ "path" : "pages/order/sales",
+ "name" : "Sales",
+ "style":{
+ "navigationBarTitleText": "售后"
+ }
+ },{
+ "path" : "pages/goods/lists",
+ "name" : "goodsList",
+ "style" :{
+ "navigationBarTitleText": "商品列表",
+ "navigationBarBackgroundColor":"#FFFFFF"
+ }
+ },{
+ "path" : "pages/company/approve",
+ "name" : "Approve",
+ "style" :{
+ "navigationBarTitleText": ""
+ }
+ },{
+ "path" : "pages/store/visitors",
+ "name" : "Visitors",
+ "style" : {
+ "navigationBarTitleText": "访客统计",
+ "navigationBarBackgroundColor":"#FFFFFF"
+ }
+ },{
+ "path" : "pages/store/customer",
+ "name" : "Customer",
+ "style" : {
+ "navigationBarTitleText": "成交客户",
+ "navigationBarBackgroundColor":"#FFFFFF"
+ }
+ },{
+ "path" : "pages/store/basics",
+ "name" : "Basics",
+ "style" :{
+ "navigationBarTitleText": "基础信息",
+ "app-plus":{
+ "titleNView": {
+ "backgroundColor": "#FFFFFF",
+ "buttons": [
+ {
+ "text": "保存",
+ "fontSize": "16",
+ "width": "80",
+ "color": "#e93340"
+ }
+ ]
+ }
+ }
+ }
+ },{
+ "path" : "pages/employees/list",
+ "name" : "Employees",
+ "style" : {
+ "navigationBarTitleText": "员工",
+ "app-plus":{
+ "titleNView": {
+ "backgroundColor": "#FFFFFF",
+ "buttons": [
+ {
+ "text": "添加",
+ "fontSize": "14",
+ "width": "80",
+ "color": "#e93340"
+ }
+ ]
+ }
+ }
+ }
+ },{
+ "path" : "pages/employees/add",
+ "name" : "addEmployees",
+ "style":{
+ "navigationBarTitleText": "添加员工",
+ "navigationBarBackgroundColor":"#FFFFFF"
+ }
+ },{
+ "path" : "pages/goods/management",
+ "name" : "GoodsMag",
+ "style" :{
+ "navigationBarTitleText": "产品权证",
+ "app-plus":{
+ "titleNView": {
+ "backgroundColor": "#FFFFFF",
+ "buttons": [
+ {
+ "text": "发布",
+ "fontSize": "16",
+ "width": "80",
+ "color": "#e93340"
+ }
+ ]
+ }
+ }
+ }
+ },{
+ "path" : "pages/goods/add",
+ "name" : "GoodsMagAdd",
+ "style":{
+ "navigationBarTitleText": "发布权证",
+ "navigationBarBackgroundColor":"#FFFFFF"
+ }
+ },{
+ "path" : "pages/coupons/index",
+ "name" : "Coupons",
+ "style": {
+ "navigationBarTitleText": "优惠券"
+ }
+ },{
+ "path" : "pages/coupons/management",
+ "name" : "CouponsMag",
+ "style": {
+ "navigationBarTitleText":"优惠券管理",
+ "titleNView": {
+ "backgroundColor": "#FFFFFF",
+ "buttons": [
+ {
+ "text": "发布",
+ "fontSize": "14",
+ "width": "80",
+ "color": "#e93340"
+ }
+ ]
+ }
+ }
+ },{
+ "path" : "pages/coupons/add",
+ "name" : "couponsAdd",
+ "style":{
+ "navigationBarTitleText": "发布优惠券",
+ "navigationBarBackgroundColor":"#FFFFFF"
+ }
+ },{
+ "path" : "pages/coupons/selectGoods",
+ "name" : "selectGoods",
+ "style":{
+ "navigationBarTitleText": "选择产品",
+ "navigationBarBackgroundColor":"#FFFFFF"
+ }
+ },{
+ "path" : "pages/coupons/magDetails",
+ "name" : "magDetails",
+ "style": {
+ "navigationBarTitleText": "优惠券详情"
+ }
+ },{
+ "path" : "pages/verification/index",
+ "name" : "Verification",
+ "style": {
+ "navigationBarTitleText": "扫码验证"
+ }
+ },{
+ "path" : "pages/verification/details",
+ "name" : "VerificationDetails",
+ "style": {
+ "navigationBarTitleText": "核销券详情"
+ }
+ },{
+ "path" : "pages/shop/lists",
+ "name" : "shopLists",
+ "style": {
+ "navigationBarTitleText":"部门/门店",
+ "navigationBarBackgroundColor": "#FFFFFF",
+ "titleNView": {
+ "buttons": [
+ {
+ "text": "创建",
+ "fontSize": "14",
+ "width": "80",
+ "color": "#e93340"
+ }
+ ]
+ }
+ }
+ },{
+ "path" : "pages/shop/create",
+ "name" : "shopCreate",
+ "style":{
+ "navigationBarTitleText": "创建门店/部门",
+ "navigationBarBackgroundColor": "#FFFFFF"
+ }
+ }
+ ],
+ "tabBar": {
+ "color": "#bababa",
+ "selectedColor": "#e93340",
+ "backgroundColor": "#FFFFFF",
+ "borderStyle": "white",
+ "list": [{
+ "pagePath": "pages/equity/index",
+ "text": "通证权易",
+ "iconPath": "static/tabBar/tabBar_icon_00.png",
+ "selectedIconPath": "static/tabBar/tabBar_show_00.png"
+ }, {
+ "pagePath": "pages/market/index",
+ "text": "转让市场",
+ "iconPath": "static/tabBar/tabBar_icon_01.png",
+ "selectedIconPath": "static/tabBar/tabBar_show_01.png"
+ }, {
+ "pagePath": "pages/store/index",
+ "text": "企业工具",
+ "iconPath": "static/tabBar/tabBar_icon_02.png",
+ "selectedIconPath": "static/tabBar/tabBar_show_02.png"
+ }, {
+ "pagePath": "pages/property/index",
+ "text": "我的资产",
+ "iconPath": "static/tabBar/tabBar_icon_03.png",
+ "selectedIconPath": "static/tabBar/tabBar_show_03.png"
+ }]
+ },
+ "globalStyle": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "易货",
+ "navigationBarBackgroundColor": "#f5f5f5",
+ "backgroundColor": "#f5f5f5"
+ },
+ "easycom": {
+ "nv": "@/uni_modules/pyh-nv/components/pyh-nv/pyh-nv.vue"
+ },
+ "condition" : { //模式配置,仅开发期间生效
+ "current": 0, //当前激活的模式(list 的索引项)
+ "list": [
+ {
+ "name": "", //模式名称
+ "path": "", //启动页面,必选
+ "query": "" //启动参数,在页面的onLoad函数里面得到
+ }
+ ]
+ }
+}
diff --git a/barter-app-main/barter-app/pages/company/approve.vue b/barter-app-main/barter-app/pages/company/approve.vue
new file mode 100644
index 0000000..359ec5d
--- /dev/null
+++ b/barter-app-main/barter-app/pages/company/approve.vue
@@ -0,0 +1,324 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{industry[industryIndex].title}}
+
+
+
+
+
+
+
+ 选择经营类目
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/company/prompt.vue b/barter-app-main/barter-app/pages/company/prompt.vue
new file mode 100644
index 0000000..f10878e
--- /dev/null
+++ b/barter-app-main/barter-app/pages/company/prompt.vue
@@ -0,0 +1,62 @@
+
+
+
+ 恭喜您,已注册成功
+ 开通会员认证企业信息立即获得授信易货额,即可开始易货之旅
+
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/company/registered.vue b/barter-app-main/barter-app/pages/company/registered.vue
new file mode 100644
index 0000000..2d8e453
--- /dev/null
+++ b/barter-app-main/barter-app/pages/company/registered.vue
@@ -0,0 +1,147 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ {{industry[industryIndex].title}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/coupons/add.vue b/barter-app-main/barter-app/pages/coupons/add.vue
new file mode 100644
index 0000000..03b3b7b
--- /dev/null
+++ b/barter-app-main/barter-app/pages/coupons/add.vue
@@ -0,0 +1,356 @@
+
+
+
+
+
+
+
+
+ {{couponsTitle || '优惠券标题'}}
+ {{datePickerValue.length == 0 ? '优惠券有效期': datePickerValue[0] + ' 至 ' + datePickerValue[1]}}
+ 全店通用
+
+
+
+
+
+
+ {{types[typeIndex].text}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{datePickerValue.length == 0 ? '选择优惠券有效期': datePickerValue[0] + ' 至 ' + datePickerValue[1]}}
+
+
+
+
+
+ {{recommend[recommendIndex].text}}
+
+
+
+
+
+ {{product[productIndex].text}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/coupons/index.vue b/barter-app-main/barter-app/pages/coupons/index.vue
new file mode 100644
index 0000000..44e7514
--- /dev/null
+++ b/barter-app-main/barter-app/pages/coupons/index.vue
@@ -0,0 +1,19 @@
+
+
+ 优惠券
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/coupons/magDetails.vue b/barter-app-main/barter-app/pages/coupons/magDetails.vue
new file mode 100644
index 0000000..34c3031
--- /dev/null
+++ b/barter-app-main/barter-app/pages/coupons/magDetails.vue
@@ -0,0 +1,244 @@
+
+
+
+
+
+
+ 适用权证
+
+
+ {{item.name}}
+ ¥{{item.price}}
+
+
+
+ 使用说明
+
+ {{details.description || '-'}}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/coupons/management.vue b/barter-app-main/barter-app/pages/coupons/management.vue
new file mode 100644
index 0000000..cb5aea4
--- /dev/null
+++ b/barter-app-main/barter-app/pages/coupons/management.vue
@@ -0,0 +1,204 @@
+
+
+
+ 全部
+ 服务券
+ 代金券
+ 提货券
+
+
+
+
+
+
+
+
+ {{item.title}}
+ {{item.start_at}}至{{item.end_at}}
+
+ {{item.status.text}}
+ {{item.type.text}}
+ {{item.channel.text}}
+
+
+
+
+
+
+
+
+
+
+
+ 暂无相关优惠券
+
+
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/coupons/selectGoods.vue b/barter-app-main/barter-app/pages/coupons/selectGoods.vue
new file mode 100644
index 0000000..17c5688
--- /dev/null
+++ b/barter-app-main/barter-app/pages/coupons/selectGoods.vue
@@ -0,0 +1,250 @@
+
+
+
+
+
+
+
+
+ {{item.title}}
+ {{item.description}}
+
+ ¥{{item.price}}
+ 权证剩余{{item.stock}}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/employees/add.vue b/barter-app-main/barter-app/pages/employees/add.vue
new file mode 100644
index 0000000..25dcbba
--- /dev/null
+++ b/barter-app-main/barter-app/pages/employees/add.vue
@@ -0,0 +1,246 @@
+
+
+
+
+
+
+
+
+
+
+
+ 员工寸照
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{section[sectionIndex].name}}
+
+
+
+
+
+
+
+ 权限设置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/employees/list.vue b/barter-app-main/barter-app/pages/employees/list.vue
new file mode 100644
index 0000000..b84b72c
--- /dev/null
+++ b/barter-app-main/barter-app/pages/employees/list.vue
@@ -0,0 +1,114 @@
+
+
+
+
+
+ 技术部
+
+
+
+ 唐
+
+
+
+
+
+ 唐明明
+ web前端开发
+
+
+
+
+
+ 市场部
+
+
+
+ 唐
+
+
+
+
+
+ 唐明明
+ web前端开发
+
+
+
+
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/equity/index.vue b/barter-app-main/barter-app/pages/equity/index.vue
new file mode 100644
index 0000000..a51d9b5
--- /dev/null
+++ b/barter-app-main/barter-app/pages/equity/index.vue
@@ -0,0 +1,875 @@
+
+
+
+
+
+
+
+
+ 推荐商家
+
+
+
+
+
+
+
+ {{item.level.name}}
+ 企业
+
+ {{item.name || '-'}}
+ 行业:{{item.industry.title}}
+
+
+
+ {{item.process}}%
+
+
+
+
+
+ 信用值 {{item.integrity}}
+ 进店
+
+
+
+
+
+
+
+ 热易商家
+
+
+
+
+
+
+ {{item.level.name}}
+
+ {{item.name || '-'}}
+ 信誉值 {{item.integrity}}
+ 所属行业:{{item.industry.title}}
+
+
+ 权证数量:{{item.goodsCount}}
+
+
+
+
+
+ {{item.process}}
+
+
+
+
+
+
+ 交易量{{item.saleCount || 0}}次
+
+
+
+
+
+
+
+ {{item.title}}
+
+
+
+
+
+
+
+
+
+
+ 每日推荐小易精选 推荐好物
+
+
+
+
+
+ {{position.one.name}}
+ ¥{{position.one.original_price}}
+
+
+
+
+ {{item.name}}
+ ¥{{item.original_price}}
+
+
+
+
+
+
+ 限时抢购海量商家优惠券
+
+ 查看更多
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.title}}
+
+
+ {{item.title}}
+
+
+
+
+ 立即领取
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/equity/search.vue b/barter-app-main/barter-app/pages/equity/search.vue
new file mode 100644
index 0000000..86db642
--- /dev/null
+++ b/barter-app-main/barter-app/pages/equity/search.vue
@@ -0,0 +1,22 @@
+
+
+ 搜索
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/goods/add.vue b/barter-app-main/barter-app/pages/goods/add.vue
new file mode 100644
index 0000000..4fdda4f
--- /dev/null
+++ b/barter-app-main/barter-app/pages/goods/add.vue
@@ -0,0 +1,275 @@
+
+
+
+
+
+ 商品轮播图(首图为产品封面)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 元/件
+
+
+
+
+ 元/件
+
+
+
+
+ 元/件
+
+
+
+
+ 元/件
+
+
+
+
+ 元/件
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 请选择分类
+
+
+
+
+
+
+
+
+ 请选择支付方式
+
+
+
+
+
+
+
+
+ 是
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/goods/details.vue b/barter-app-main/barter-app/pages/goods/details.vue
new file mode 100644
index 0000000..969bd5c
--- /dev/null
+++ b/barter-app-main/barter-app/pages/goods/details.vue
@@ -0,0 +1,433 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{goodsObj.shop.name}}
+
+
+
+ 进店
+
+
+
+ 区块链证书
+
+
+ 商品认证
+
+
+ 商品溯源
+
+
+
+
+
+
+
+ {{goodsObj.skus[0].goods_name}}
+
+
+
+ 特价商品不可与优惠券叠加使用
+
+
+
+ 易货严选自营・30天无忧退换・不可用券・国内部分地区不可配送
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/goods/lists.vue b/barter-app-main/barter-app/pages/goods/lists.vue
new file mode 100644
index 0000000..30aba0f
--- /dev/null
+++ b/barter-app-main/barter-app/pages/goods/lists.vue
@@ -0,0 +1,83 @@
+
+
+
+ 最新
+
+ 价格
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/goods/management.vue b/barter-app-main/barter-app/pages/goods/management.vue
new file mode 100644
index 0000000..5b06f99
--- /dev/null
+++ b/barter-app-main/barter-app/pages/goods/management.vue
@@ -0,0 +1,246 @@
+
+
+
+
+ 已上架
+ 已下架
+ 审核中
+ 已驳回
+
+
+
+
+ 库存{{goods.value.stock}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/guide/index.vue b/barter-app-main/barter-app/pages/guide/index.vue
new file mode 100644
index 0000000..e13ede4
--- /dev/null
+++ b/barter-app-main/barter-app/pages/guide/index.vue
@@ -0,0 +1,155 @@
+
+
+
+
+
+
+
+ {{item.title}}
+ {{item.subTitle}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/login/login.vue b/barter-app-main/barter-app/pages/login/login.vue
new file mode 100644
index 0000000..adcc271
--- /dev/null
+++ b/barter-app-main/barter-app/pages/login/login.vue
@@ -0,0 +1,205 @@
+
+
+
+ 易品新境
+
+
+
+
+
+
+
+
+
+
+
+ 快捷登录
+
+
+
+
+
+ 未注册的手机号验证后将自动创建账号,登录即表示同意接收用户隐私规格和用户服务协议
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/market/index.vue b/barter-app-main/barter-app/pages/market/index.vue
new file mode 100644
index 0000000..d0cc3aa
--- /dev/null
+++ b/barter-app-main/barter-app/pages/market/index.vue
@@ -0,0 +1,132 @@
+
+
+
+ 最新
+
+ 价格
+
+
+
+
+
+
+
+ 易品新境权证*1
+ 谷风一木3层软抽面巾纸
+ 转让方:温文尔雅的小阿玉
+ Hash:djsakljkljfl3213dsaHKLDJS82231csa
+
+ ¥21000.00/个
+
+
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/market/logs.vue b/barter-app-main/barter-app/pages/market/logs.vue
new file mode 100644
index 0000000..a84bbf6
--- /dev/null
+++ b/barter-app-main/barter-app/pages/market/logs.vue
@@ -0,0 +1,19 @@
+
+
+ 成交历史
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/order/buy.vue b/barter-app-main/barter-app/pages/order/buy.vue
new file mode 100644
index 0000000..a2d3ecd
--- /dev/null
+++ b/barter-app-main/barter-app/pages/order/buy.vue
@@ -0,0 +1,308 @@
+
+
+
+
+
+
+ {{mall.shop.name || '-'}}
+
+
+
+ {{item.title}}
+
+ ¥{{item.price}}
+
+
+
+
+
+
+
+ {{amount}}
+
+
+
+
+
+
+ 优惠券
+
+
+
+
+
+
+ -{{couponPrice}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/order/details.vue b/barter-app-main/barter-app/pages/order/details.vue
new file mode 100644
index 0000000..3f1bf59
--- /dev/null
+++ b/barter-app-main/barter-app/pages/order/details.vue
@@ -0,0 +1,22 @@
+
+
+ 订单详情
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/order/index.vue b/barter-app-main/barter-app/pages/order/index.vue
new file mode 100644
index 0000000..23c8349
--- /dev/null
+++ b/barter-app-main/barter-app/pages/order/index.vue
@@ -0,0 +1,68 @@
+
+
+
+ 待发货
+ 已发货
+ 待提货
+ 已提货
+
+
+
+ {{index}}
+ 订单信息
+
+
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/order/sales.vue b/barter-app-main/barter-app/pages/order/sales.vue
new file mode 100644
index 0000000..c5f1b25
--- /dev/null
+++ b/barter-app-main/barter-app/pages/order/sales.vue
@@ -0,0 +1,19 @@
+
+
+ 售后
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/property/cash.vue b/barter-app-main/barter-app/pages/property/cash.vue
new file mode 100644
index 0000000..8183fd0
--- /dev/null
+++ b/barter-app-main/barter-app/pages/property/cash.vue
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/property/eb.vue b/barter-app-main/barter-app/pages/property/eb.vue
new file mode 100644
index 0000000..e3e12e6
--- /dev/null
+++ b/barter-app-main/barter-app/pages/property/eb.vue
@@ -0,0 +1,22 @@
+
+
+ eb账户
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/property/index.vue b/barter-app-main/barter-app/pages/property/index.vue
new file mode 100644
index 0000000..44c51f4
--- /dev/null
+++ b/barter-app-main/barter-app/pages/property/index.vue
@@ -0,0 +1,457 @@
+
+
+
+
+
+
+
+
+
+ 唐明明
+ 潮流就是我的态度
+
+ 普通用户
+ PULS企业
+
+
+
+ 管理中心
+ 我的推广
+
+
+
+
+
+
+
+ 恭喜用户0101成功开通PLUS企业会员
+
+
+ 恭喜用户0101成功开通PLUS企业会员
+
+
+
+
+
+
+
+ 我的资产
+
+
+
+ 0
+ 原石
+
+
+ 0
+ 贡献值
+
+
+ 0
+ 易币
+
+
+ 0
+ 零钱
+
+
+
+
+
+
+ 我的权证
+
+
+
+ 0
+ 权证持有
+
+
+ 0
+ 权证转让
+
+
+ 0
+ 已使用
+
+
+ 0
+ 已提货
+
+
+
+
+
+
+
+
+ 商品收藏
+
+
+
+ 关注企业
+
+
+
+ 我的优惠券
+
+
+
+ 地址管理
+
+
+
+
+
+
+
+
+ 推广数据
+
+
+
+ 0
+ 推广人数
+
+
+ 0
+ 推广企业
+
+
+
+
+
+
+
+ 推广排名
+
+
+
+ 全站推广人数
+ 5
+
+
+
+
+
+ 推广企业
+ 5
+
+
+
+
+
+
+ 推广海报
+
+
+
+ 易品新境 beta 1.0.0
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/property/integral.vue b/barter-app-main/barter-app/pages/property/integral.vue
new file mode 100644
index 0000000..4106765
--- /dev/null
+++ b/barter-app-main/barter-app/pages/property/integral.vue
@@ -0,0 +1,22 @@
+
+
+ 贡献值账户
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/property/token.vue b/barter-app-main/barter-app/pages/property/token.vue
new file mode 100644
index 0000000..e6aea3c
--- /dev/null
+++ b/barter-app-main/barter-app/pages/property/token.vue
@@ -0,0 +1,22 @@
+
+
+ 数权账户
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/shop/create.vue b/barter-app-main/barter-app/pages/shop/create.vue
new file mode 100644
index 0000000..e34a654
--- /dev/null
+++ b/barter-app-main/barter-app/pages/shop/create.vue
@@ -0,0 +1,327 @@
+
+
+
+
+
+
+
+
+
+ {{startTime || '选择营业时间'}}
+
+
+
+
+
+
+
+
+ {{endTime || '选择闭店时间'}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/shop/lists.vue b/barter-app-main/barter-app/pages/shop/lists.vue
new file mode 100644
index 0000000..a62fe63
--- /dev/null
+++ b/barter-app-main/barter-app/pages/shop/lists.vue
@@ -0,0 +1,112 @@
+
+
+
+
+
+ 店铺地址:{{item.address}}
+
+
+
+
+
+ 暂未创建店铺/部门
+
+
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/store/basics.vue b/barter-app-main/barter-app/pages/store/basics.vue
new file mode 100644
index 0000000..db402a1
--- /dev/null
+++ b/barter-app-main/barter-app/pages/store/basics.vue
@@ -0,0 +1,525 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+ 上传图片
+
+
+
+ 点击查看图片,长按删除图片
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+ 上传视频封面
+
+
+
+
+
+
+
+ 上传视频
+
+
+
+ 点击查看封面/视频,长按删除封面/视频
+
+
+
+ 添加展示模块
+
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/store/customer.vue b/barter-app-main/barter-app/pages/store/customer.vue
new file mode 100644
index 0000000..0e2a42d
--- /dev/null
+++ b/barter-app-main/barter-app/pages/store/customer.vue
@@ -0,0 +1,217 @@
+
+
+
+
+ 日成交
+ 月成交
+ 年成交
+
+
+
+
+
+ {{dateValue}}
+
+
+
+ 成交客户量 {{visitor.day}} 人
+ 累计访客量 {{visitor.all}} 人
+
+
+
+
+
+
+
+
+ {{item.user.username}}
+ {{item.state}}
+
+ 订单号: {{item.order_no}}
+ {{item.created_at}}
+
+
+
+
+
+ 暂无相关成交客户记录
+
+
+
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/store/index.vue b/barter-app-main/barter-app/pages/store/index.vue
new file mode 100644
index 0000000..ba93b71
--- /dev/null
+++ b/barter-app-main/barter-app/pages/store/index.vue
@@ -0,0 +1,282 @@
+
+
+
+
+
+
+ 企业工具
+
+
+
+
+ {{appliesState.message}}
+
+
+
+
+ 认证失败
+ {{appliesState.message}}
+
+
+
+
+ {{appliesState.message}}
+
+
+
+
+
+
+
+
+ {{company.name}}
+
+ 诚信{{company.faith}}
+ {{company.identity}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 企业工具
+
+
+
+ 一键开启您的易货之旅
+
+
+
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/store/visitors.vue b/barter-app-main/barter-app/pages/store/visitors.vue
new file mode 100644
index 0000000..939b232
--- /dev/null
+++ b/barter-app-main/barter-app/pages/store/visitors.vue
@@ -0,0 +1,203 @@
+
+
+
+
+ 日成交
+ 月成交
+ 年成交
+
+
+
+
+
+ {{dateValue}}
+
+
+
+ 访客量 {{visitor.factor}} 人
+ 累计访客量 {{visitor.all}} 人
+
+
+
+
+
+
+
+ {{item.nickname || '-'}}
+ {{item.date || '-'}}
+
+
+
+
+
+
+ 暂无相关访客记录
+
+
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/user/index.vue b/barter-app-main/barter-app/pages/user/index.vue
new file mode 100644
index 0000000..f4ae9e8
--- /dev/null
+++ b/barter-app-main/barter-app/pages/user/index.vue
@@ -0,0 +1,357 @@
+
+
+
+
+
+
+
+ 唐明明
+
+ 企业认证
+ SSS企业主
+
+
+ 签到
+
+
+
+ 0
+ 商品收藏
+
+
+ 0
+ 店铺收藏
+
+
+ 0
+ 浏览记录
+
+
+ 0
+ 优惠券
+
+
+
+ 开通会员获得更多的权益
+ 立即开通
+
+
+
+
+
+ 易货订单
+
+ 全部订单
+
+
+
+
+
+
+ 待付款
+
+
+
+ 待发货
+
+
+
+ 待提货
+
+
+
+ 待评价
+
+
+
+ 退货售后
+
+
+
+
+
+
+ 易货中心管理
+
+ 交易中心
+
+
+
+
+
+
+ 上架中
+
+
+
+ 寄存中
+
+
+
+ 低价求购
+
+
+
+
+
+
+ 我的资产
+
+
+
+ 0
+ 原石
+
+
+ 0
+ 贡献值
+
+
+ 0
+ 易币
+
+
+ 0
+ 零钱
+
+
+
+
+
+
+ 管理工具
+
+
+
+
+ 店铺管理
+
+
+
+ 员工管理
+
+
+
+ 营销管理
+
+
+
+ 产品管理
+
+
+
+ 核销管理
+
+
+
+ 卡券管理
+
+
+
+
+
+
+
+ 易品新境 beta 1.0.0
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/user/个人中心备份 b/barter-app-main/barter-app/pages/user/个人中心备份
new file mode 100644
index 0000000..9326c26
--- /dev/null
+++ b/barter-app-main/barter-app/pages/user/个人中心备份
@@ -0,0 +1,352 @@
+
+
+
+
+
+
+
+ 唐明明
+
+ 企业认证
+ SSS企业主
+
+
+ 签到
+
+
+
+ 0
+ 商品收藏
+
+
+ 0
+ 店铺收藏
+
+
+ 0
+ 浏览记录
+
+
+ 0
+ 优惠券
+
+
+
+ 开通会员获得更多的权益
+ 立即开通
+
+
+
+
+
+ 易货订单
+
+ 全部订单
+
+
+
+
+
+
+ 待付款
+
+
+
+ 待发货
+
+
+
+ 待提货
+
+
+
+ 待评价
+
+
+
+ 退货售后
+
+
+
+
+
+
+ 易货中心管理
+
+ 交易中心
+
+
+
+
+
+
+ 上架中
+
+
+
+ 寄存中
+
+
+
+ 低价求购
+
+
+
+
+
+
+ 我的资产
+
+
+
+ 0
+ 原石
+
+
+ 0
+ 贡献值
+
+
+ 0
+ 易币
+
+
+ 0
+ 零钱
+
+
+
+
+
+
+ 管理工具
+
+
+
+
+ 店铺管理
+
+
+
+ 员工管理
+
+
+
+ 营销管理
+
+
+
+ 产品管理
+
+
+
+ 核销管理
+
+
+
+ 卡券管理
+
+
+
+
+ 易品新境 beta 1.0.0
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/verification/details.vue b/barter-app-main/barter-app/pages/verification/details.vue
new file mode 100644
index 0000000..7d4b922
--- /dev/null
+++ b/barter-app-main/barter-app/pages/verification/details.vue
@@ -0,0 +1,19 @@
+
+
+ 核销详情
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/verification/index.vue b/barter-app-main/barter-app/pages/verification/index.vue
new file mode 100644
index 0000000..96b071f
--- /dev/null
+++ b/barter-app-main/barter-app/pages/verification/index.vue
@@ -0,0 +1,19 @@
+
+
+ 优惠券核销
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/pages/vip/index.vue b/barter-app-main/barter-app/pages/vip/index.vue
new file mode 100644
index 0000000..bebb8c8
--- /dev/null
+++ b/barter-app-main/barter-app/pages/vip/index.vue
@@ -0,0 +1,309 @@
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+ {{user.username}}
+ {{user.identity.name}}至{{user.identity.ended_at}}
+ 开通/续费
+
+
+
+
+
+
+
+ 开通会员享特权
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+ 开通须知
+
+ {{description}}
+
+
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/public/date.js b/barter-app-main/barter-app/public/date.js
new file mode 100644
index 0000000..d405f8c
--- /dev/null
+++ b/barter-app-main/barter-app/public/date.js
@@ -0,0 +1,30 @@
+
+/**
+ * Web唐明明
+ * 匆匆数载恍如梦,岁月迢迢华发增。
+ * 碌碌无为枉半生,一朝惊醒万事空。
+ * moduleName: 日期
+ */
+
+export default getDate = (type) =>{
+ return new Promise((resolve, reject) => {
+ const date = new Date()
+ const year = date.getFullYear()
+ const month = (date.getMonth() + 1) < 9 ? '0' + (date.getMonth() + 1) : date.getMonth()
+ const day = date.getDate()
+
+ switch(type){
+ case 'day':
+ resolve(year + '-' + month + '-' + day)
+ break
+ case 'month':
+ resolve(year + '-' + month)
+ break
+ case 'year':
+ resolve(year)
+ break
+ default:
+ resolve(year + '-' + month + '-' + day)
+ }
+ })
+}
diff --git a/barter-app-main/barter-app/public/userAuth.js b/barter-app-main/barter-app/public/userAuth.js
new file mode 100644
index 0000000..fd9b22b
--- /dev/null
+++ b/barter-app-main/barter-app/public/userAuth.js
@@ -0,0 +1,135 @@
+
+/**
+ * Web唐明明
+ * 匆匆数载恍如梦,岁月迢迢华发增。
+ * 碌碌无为枉半生,一朝惊醒万事空。
+ * moduleName: 登录
+ */
+
+import { router } from '../router'
+import { keyAuth } from '../apis/interfaces/auth'
+import store from '../store'
+
+class userAuth {
+ constructor() {
+ this.univerfyConfig = {
+ fullScreen : true,
+ authButton: {
+ 'title': '一键登录',
+ 'normalColor': '#c82626',
+ 'highlightColor': '#a61010',
+ 'disabledColor': '#d86767',
+ 'borderRadius': '0'
+ },
+ otherLoginButton: {
+ 'title': '其他手机号码',
+ 'borderColor': '#c82626',
+ 'borderRadius': '0',
+ 'textColor': '#c82626'
+ },
+ privacyTerms: {
+ 'checkedImage': '/static/icons/checked-icon.png',
+ 'uncheckedImage': '/static/icons/unchecked-icon.png',
+ 'textColor': '#555555',
+ 'termsColor': '#c82626',
+ 'suffix': '并使用本机号码登录/注册',
+ 'privacyItems': [{
+ 'url': 'https://www.baidu.com',
+ 'title': '用户隐私规格'
+ },{
+ 'url': 'https://www.baidu.com',
+ 'title': '用户服务协议'
+ }]
+ },
+ buttons: {
+ 'iconWidth': '45px',
+ 'list': [{
+ "provider": '微信登录',
+ "iconPath": '/static/icons/wechat.png',
+ }]
+ }
+ }
+ }
+ // 预登录
+ Login(){
+ return new Promise((resolve, reject) => {
+ uni.showLoading({
+ title: '加载中',
+ mask : true
+ })
+ uni.preLogin({
+ provider: 'univerify',
+ success : res=> {
+ this.keyLogin().then(() => {
+ resolve({
+ auth: true
+ })
+ }).catch(errMsg => {
+ reject(errMsg)
+ })
+ },
+ fail : err=> {
+ router.push({name: 'Login'})
+ },
+ complete() {
+ uni.hideLoading()
+ }
+ })
+ })
+ }
+ // 一键登录
+ keyLogin(){
+ return new Promise((resolve, reject) => {
+ uni.login({
+ provider : 'univerify',
+ univerifyStyle : {...this.univerfyConfig},
+ success: authResult => {
+ keyAuth({
+ access_token: authResult.authResult.access_token,
+ openid : authResult.authResult.openid
+ }).then(res => {
+ uni.closeAuthView()
+ store.commit('setToken', res.token_type + ' ' + res.access_token)
+ resolve()
+ if(!res.is_company){
+ router.push({name: "Registered"})
+ return
+ }
+ }).catch(err => {
+ reject(err)
+ })
+ },
+ fail : err => {
+ uni.closeAuthView()
+ switch(err.code){
+ case 30002:
+ router.push({name: "Login"})
+ break
+ case 30008:
+ this.wechatAuth()
+ break
+ }
+ }
+ })
+ })
+ }
+
+ /**
+ * 微信登录
+ */
+ wechatAuth(){
+ uni.showToast({
+ title: '微信登录',
+ icon : 'none'
+ })
+ }
+
+ /**
+ * 处理登录状态维护
+ */
+ updAuthToken(){
+
+ }
+}
+
+export default userAuth
diff --git a/barter-app-main/barter-app/router/index.js b/barter-app-main/barter-app/router/index.js
new file mode 100644
index 0000000..b6db595
--- /dev/null
+++ b/barter-app-main/barter-app/router/index.js
@@ -0,0 +1,36 @@
+/**
+ * Web唐明明
+ * 匆匆数载恍如梦,岁月迢迢华发增。
+ * 碌碌无为枉半生,一朝惊醒万事空。
+ * moduleName: router
+ */
+
+import { RouterMount, createRouter } from 'uni-simple-router';
+import store from '../store/index'
+
+const router = createRouter({
+ platform: process.env.VUE_APP_PLATFORM,
+ routes: [...ROUTES]
+})
+
+// 全局路由前置守卫
+router.beforeEach((to, from, next) => {
+ const token = store.getters.getToken || uni.getStorageSync('token')
+ // 检查是否需要登录
+ if(to.meta.auth && token === ''){
+ return
+ }
+ next();
+})
+
+// 全局路由后置守卫
+router.afterEach((to, from) => {
+ // console.log('跳转结束--暂无应用场景')
+})
+
+//
+
+export {
+ router,
+ RouterMount
+}
diff --git a/barter-app-main/barter-app/scss/globa.scss b/barter-app-main/barter-app/scss/globa.scss
new file mode 100644
index 0000000..b0bc4ea
--- /dev/null
+++ b/barter-app-main/barter-app/scss/globa.scss
@@ -0,0 +1,79 @@
+
+/**
+ * Web唐明明
+ * 匆匆数载恍如梦,岁月迢迢华发增。
+ * 碌碌无为枉半生,一朝惊醒万事空。
+ */
+
+// 主体颜色
+
+
+// 文字颜色
+$text-color: #333;
+$text-gray: #555;
+$text-gray-m: #999;
+$text-price: #e93340;
+
+// 边框颜色
+$border-color: #ddd;
+$border-color-lg: #eff4f2;
+
+// 文字尺寸变量
+$title-size: 32rpx;
+$title-size-lg: 30rpx;
+$title-size-m: 28rpx;
+$title-size-sm: 26rpx;
+
+// 模块圆角
+$radius: 20rpx;
+
+// 模块边距
+$margin: 30rpx;
+$padding: 30rpx;
+
+// ios安全距离
+.ios-bottom{
+ padding-bottom: env(safe-area-inset-bottom);
+ padding-bottom: constant(safe-area-inset-bottom);
+}
+
+.ios-left{
+ padding-left: env(safe-area-inset-left);
+ padding-left: constant(safe-area-inset-left);
+}
+
+.ios-right{
+ padding-right: env(safe-area-inset-right);
+ padding-right: constant(safe-area-inset-right);
+}
+
+.ios-top{
+ padding-top: var(--status-bar-height);
+}
+
+// 公共样式
+.vertical {
+ display: -webkit-box;
+ -webkit-box-orient: vertical;
+ -webkit-box-pack: center;
+}
+
+.nowrap {
+ max-width: 100%;
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+}
+
+.ellipsis{
+ max-width: 100%;
+ display: -webkit-box;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ -webkit-box-orient: vertical;
+ -webkit-line-clamp: 2;
+}
+
+// 修改nvtab
+$mainColor: white;
+
diff --git a/barter-app-main/barter-app/static/dev/good_cover_00.jpg b/barter-app-main/barter-app/static/dev/good_cover_00.jpg
new file mode 100644
index 0000000..8cf8730
Binary files /dev/null and b/barter-app-main/barter-app/static/dev/good_cover_00.jpg differ
diff --git a/barter-app-main/barter-app/static/dev/good_cover_01.png b/barter-app-main/barter-app/static/dev/good_cover_01.png
new file mode 100644
index 0000000..fbacca4
Binary files /dev/null and b/barter-app-main/barter-app/static/dev/good_cover_01.png differ
diff --git a/barter-app-main/barter-app/static/dev/good_cover_02.jpg b/barter-app-main/barter-app/static/dev/good_cover_02.jpg
new file mode 100644
index 0000000..f2df8f1
Binary files /dev/null and b/barter-app-main/barter-app/static/dev/good_cover_02.jpg differ
diff --git a/barter-app-main/barter-app/static/dev/good_cover_03.jpg b/barter-app-main/barter-app/static/dev/good_cover_03.jpg
new file mode 100644
index 0000000..40f354c
Binary files /dev/null and b/barter-app-main/barter-app/static/dev/good_cover_03.jpg differ
diff --git a/barter-app-main/barter-app/static/dev/good_cover_04.jpg b/barter-app-main/barter-app/static/dev/good_cover_04.jpg
new file mode 100644
index 0000000..950db03
Binary files /dev/null and b/barter-app-main/barter-app/static/dev/good_cover_04.jpg differ
diff --git a/barter-app-main/barter-app/static/dev/good_cover_05.jpg b/barter-app-main/barter-app/static/dev/good_cover_05.jpg
new file mode 100644
index 0000000..6593943
Binary files /dev/null and b/barter-app-main/barter-app/static/dev/good_cover_05.jpg differ
diff --git a/barter-app-main/barter-app/static/dev/good_cover_06.jpg b/barter-app-main/barter-app/static/dev/good_cover_06.jpg
new file mode 100644
index 0000000..eaf2b63
Binary files /dev/null and b/barter-app-main/barter-app/static/dev/good_cover_06.jpg differ
diff --git a/barter-app-main/barter-app/static/dev/good_cover_07.jpg b/barter-app-main/barter-app/static/dev/good_cover_07.jpg
new file mode 100644
index 0000000..40d4604
Binary files /dev/null and b/barter-app-main/barter-app/static/dev/good_cover_07.jpg differ
diff --git a/barter-app-main/barter-app/static/dev/guide_cover_00.png b/barter-app-main/barter-app/static/dev/guide_cover_00.png
new file mode 100644
index 0000000..3717860
Binary files /dev/null and b/barter-app-main/barter-app/static/dev/guide_cover_00.png differ
diff --git a/barter-app-main/barter-app/static/dev/guide_cover_01.png b/barter-app-main/barter-app/static/dev/guide_cover_01.png
new file mode 100644
index 0000000..4ea3632
Binary files /dev/null and b/barter-app-main/barter-app/static/dev/guide_cover_01.png differ
diff --git a/barter-app-main/barter-app/static/dev/mall-logo-00.png b/barter-app-main/barter-app/static/dev/mall-logo-00.png
new file mode 100644
index 0000000..7c23893
Binary files /dev/null and b/barter-app-main/barter-app/static/dev/mall-logo-00.png differ
diff --git a/barter-app-main/barter-app/static/dev/mall-logo-01.png b/barter-app-main/barter-app/static/dev/mall-logo-01.png
new file mode 100644
index 0000000..d1967f1
Binary files /dev/null and b/barter-app-main/barter-app/static/dev/mall-logo-01.png differ
diff --git a/barter-app-main/barter-app/static/icons/add-icon.png b/barter-app-main/barter-app/static/icons/add-icon.png
new file mode 100644
index 0000000..1390ef3
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/add-icon.png differ
diff --git a/barter-app-main/barter-app/static/icons/approve-icon.png b/barter-app-main/barter-app/static/icons/approve-icon.png
new file mode 100644
index 0000000..6518639
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/approve-icon.png differ
diff --git a/barter-app-main/barter-app/static/icons/audit-icon.png b/barter-app-main/barter-app/static/icons/audit-icon.png
new file mode 100644
index 0000000..e4329d6
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/audit-icon.png differ
diff --git a/barter-app-main/barter-app/static/icons/checked-icon.png b/barter-app-main/barter-app/static/icons/checked-icon.png
new file mode 100644
index 0000000..9f866ee
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/checked-icon.png differ
diff --git a/barter-app-main/barter-app/static/icons/e-logo-white.png b/barter-app-main/barter-app/static/icons/e-logo-white.png
new file mode 100644
index 0000000..62ef1e0
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/e-logo-white.png differ
diff --git a/barter-app-main/barter-app/static/icons/e-logo.png b/barter-app-main/barter-app/static/icons/e-logo.png
new file mode 100644
index 0000000..05ca1f8
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/e-logo.png differ
diff --git a/barter-app-main/barter-app/static/icons/equity_arrow_icon.png b/barter-app-main/barter-app/static/icons/equity_arrow_icon.png
new file mode 100644
index 0000000..5daf429
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/equity_arrow_icon.png differ
diff --git a/barter-app-main/barter-app/static/icons/equity_arrow_right.png b/barter-app-main/barter-app/static/icons/equity_arrow_right.png
new file mode 100644
index 0000000..ad089b1
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/equity_arrow_right.png differ
diff --git a/barter-app-main/barter-app/static/icons/equity_arrow_up.png b/barter-app-main/barter-app/static/icons/equity_arrow_up.png
new file mode 100644
index 0000000..9d3bd78
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/equity_arrow_up.png differ
diff --git a/barter-app-main/barter-app/static/icons/equity_coupons_01.png b/barter-app-main/barter-app/static/icons/equity_coupons_01.png
new file mode 100644
index 0000000..ee06cdb
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/equity_coupons_01.png differ
diff --git a/barter-app-main/barter-app/static/icons/equity_coupons_02.png b/barter-app-main/barter-app/static/icons/equity_coupons_02.png
new file mode 100644
index 0000000..2e2eaff
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/equity_coupons_02.png differ
diff --git a/barter-app-main/barter-app/static/icons/equity_coupons_03.png b/barter-app-main/barter-app/static/icons/equity_coupons_03.png
new file mode 100644
index 0000000..071841a
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/equity_coupons_03.png differ
diff --git a/barter-app-main/barter-app/static/icons/equity_nav.png b/barter-app-main/barter-app/static/icons/equity_nav.png
new file mode 100644
index 0000000..aa2badf
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/equity_nav.png differ
diff --git a/barter-app-main/barter-app/static/icons/goods_row.png b/barter-app-main/barter-app/static/icons/goods_row.png
new file mode 100644
index 0000000..50dc5c9
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/goods_row.png differ
diff --git a/barter-app-main/barter-app/static/icons/listnull-icon.png b/barter-app-main/barter-app/static/icons/listnull-icon.png
new file mode 100644
index 0000000..85e34a4
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/listnull-icon.png differ
diff --git a/barter-app-main/barter-app/static/icons/login-icon.png b/barter-app-main/barter-app/static/icons/login-icon.png
new file mode 100644
index 0000000..9c13aad
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/login-icon.png differ
diff --git a/barter-app-main/barter-app/static/icons/market_icon_high.png b/barter-app-main/barter-app/static/icons/market_icon_high.png
new file mode 100644
index 0000000..025dc74
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/market_icon_high.png differ
diff --git a/barter-app-main/barter-app/static/icons/market_icon_low.png b/barter-app-main/barter-app/static/icons/market_icon_low.png
new file mode 100644
index 0000000..68e03f1
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/market_icon_low.png differ
diff --git a/barter-app-main/barter-app/static/icons/order_icon_00.png b/barter-app-main/barter-app/static/icons/order_icon_00.png
new file mode 100644
index 0000000..0617cc1
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/order_icon_00.png differ
diff --git a/barter-app-main/barter-app/static/icons/order_icon_01.png b/barter-app-main/barter-app/static/icons/order_icon_01.png
new file mode 100644
index 0000000..4165b8d
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/order_icon_01.png differ
diff --git a/barter-app-main/barter-app/static/icons/order_icon_02.png b/barter-app-main/barter-app/static/icons/order_icon_02.png
new file mode 100644
index 0000000..8949222
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/order_icon_02.png differ
diff --git a/barter-app-main/barter-app/static/icons/order_icon_03.png b/barter-app-main/barter-app/static/icons/order_icon_03.png
new file mode 100644
index 0000000..be4d9a5
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/order_icon_03.png differ
diff --git a/barter-app-main/barter-app/static/icons/order_icon_04.png b/barter-app-main/barter-app/static/icons/order_icon_04.png
new file mode 100644
index 0000000..095d957
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/order_icon_04.png differ
diff --git a/barter-app-main/barter-app/static/icons/property_icon_00.png b/barter-app-main/barter-app/static/icons/property_icon_00.png
new file mode 100644
index 0000000..456e22b
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/property_icon_00.png differ
diff --git a/barter-app-main/barter-app/static/icons/property_icon_01.png b/barter-app-main/barter-app/static/icons/property_icon_01.png
new file mode 100644
index 0000000..4d2c9ce
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/property_icon_01.png differ
diff --git a/barter-app-main/barter-app/static/icons/property_poster.png b/barter-app-main/barter-app/static/icons/property_poster.png
new file mode 100644
index 0000000..45ca530
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/property_poster.png differ
diff --git a/barter-app-main/barter-app/static/icons/search-icon.png b/barter-app-main/barter-app/static/icons/search-icon.png
new file mode 100644
index 0000000..0804a8a
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/search-icon.png differ
diff --git a/barter-app-main/barter-app/static/icons/store_icon_icon.png b/barter-app-main/barter-app/static/icons/store_icon_icon.png
new file mode 100644
index 0000000..da7929b
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/store_icon_icon.png differ
diff --git a/barter-app-main/barter-app/static/icons/store_icon_pen.png b/barter-app-main/barter-app/static/icons/store_icon_pen.png
new file mode 100644
index 0000000..89e4b46
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/store_icon_pen.png differ
diff --git a/barter-app-main/barter-app/static/icons/store_icon_row.png b/barter-app-main/barter-app/static/icons/store_icon_row.png
new file mode 100644
index 0000000..be7558f
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/store_icon_row.png differ
diff --git a/barter-app-main/barter-app/static/icons/store_icon_vip.png b/barter-app-main/barter-app/static/icons/store_icon_vip.png
new file mode 100644
index 0000000..8e0e7ee
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/store_icon_vip.png differ
diff --git a/barter-app-main/barter-app/static/icons/ticket-icon.png b/barter-app-main/barter-app/static/icons/ticket-icon.png
new file mode 100644
index 0000000..da60025
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/ticket-icon.png differ
diff --git a/barter-app-main/barter-app/static/icons/tool_icon_00.png b/barter-app-main/barter-app/static/icons/tool_icon_00.png
new file mode 100644
index 0000000..14bc4e4
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/tool_icon_00.png differ
diff --git a/barter-app-main/barter-app/static/icons/tool_icon_01.png b/barter-app-main/barter-app/static/icons/tool_icon_01.png
new file mode 100644
index 0000000..46ca67b
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/tool_icon_01.png differ
diff --git a/barter-app-main/barter-app/static/icons/tool_icon_02.png b/barter-app-main/barter-app/static/icons/tool_icon_02.png
new file mode 100644
index 0000000..fc03a89
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/tool_icon_02.png differ
diff --git a/barter-app-main/barter-app/static/icons/tool_icon_03.png b/barter-app-main/barter-app/static/icons/tool_icon_03.png
new file mode 100644
index 0000000..170d0db
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/tool_icon_03.png differ
diff --git a/barter-app-main/barter-app/static/icons/tool_icon_04.png b/barter-app-main/barter-app/static/icons/tool_icon_04.png
new file mode 100644
index 0000000..f878479
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/tool_icon_04.png differ
diff --git a/barter-app-main/barter-app/static/icons/tool_icon_05.png b/barter-app-main/barter-app/static/icons/tool_icon_05.png
new file mode 100644
index 0000000..ae69992
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/tool_icon_05.png differ
diff --git a/barter-app-main/barter-app/static/icons/tool_icon_06.png b/barter-app-main/barter-app/static/icons/tool_icon_06.png
new file mode 100644
index 0000000..12bc88c
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/tool_icon_06.png differ
diff --git a/barter-app-main/barter-app/static/icons/tool_icon_07.png b/barter-app-main/barter-app/static/icons/tool_icon_07.png
new file mode 100644
index 0000000..9c34926
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/tool_icon_07.png differ
diff --git a/barter-app-main/barter-app/static/icons/tool_icon_08.png b/barter-app-main/barter-app/static/icons/tool_icon_08.png
new file mode 100644
index 0000000..f049d41
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/tool_icon_08.png differ
diff --git a/barter-app-main/barter-app/static/icons/unchecked-icon.png b/barter-app-main/barter-app/static/icons/unchecked-icon.png
new file mode 100644
index 0000000..4154177
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/unchecked-icon.png differ
diff --git a/barter-app-main/barter-app/static/icons/user_icon_00.png b/barter-app-main/barter-app/static/icons/user_icon_00.png
new file mode 100644
index 0000000..71026f2
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/user_icon_00.png differ
diff --git a/barter-app-main/barter-app/static/icons/user_icon_01.png b/barter-app-main/barter-app/static/icons/user_icon_01.png
new file mode 100644
index 0000000..c749a34
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/user_icon_01.png differ
diff --git a/barter-app-main/barter-app/static/icons/user_icon_02.png b/barter-app-main/barter-app/static/icons/user_icon_02.png
new file mode 100644
index 0000000..11d2c67
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/user_icon_02.png differ
diff --git a/barter-app-main/barter-app/static/icons/user_icon_03.png b/barter-app-main/barter-app/static/icons/user_icon_03.png
new file mode 100644
index 0000000..0df3413
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/user_icon_03.png differ
diff --git a/barter-app-main/barter-app/static/icons/user_icon_04.png b/barter-app-main/barter-app/static/icons/user_icon_04.png
new file mode 100644
index 0000000..948cfb5
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/user_icon_04.png differ
diff --git a/barter-app-main/barter-app/static/icons/wechat.png b/barter-app-main/barter-app/static/icons/wechat.png
new file mode 100644
index 0000000..f4ae348
Binary files /dev/null and b/barter-app-main/barter-app/static/icons/wechat.png differ
diff --git a/barter-app-main/barter-app/static/imgs/vip-angle-back.png b/barter-app-main/barter-app/static/imgs/vip-angle-back.png
new file mode 100644
index 0000000..f68720b
Binary files /dev/null and b/barter-app-main/barter-app/static/imgs/vip-angle-back.png differ
diff --git a/barter-app-main/barter-app/static/tabBar/tabBar_icon_00.png b/barter-app-main/barter-app/static/tabBar/tabBar_icon_00.png
new file mode 100644
index 0000000..a711622
Binary files /dev/null and b/barter-app-main/barter-app/static/tabBar/tabBar_icon_00.png differ
diff --git a/barter-app-main/barter-app/static/tabBar/tabBar_icon_01.png b/barter-app-main/barter-app/static/tabBar/tabBar_icon_01.png
new file mode 100644
index 0000000..1feaaaa
Binary files /dev/null and b/barter-app-main/barter-app/static/tabBar/tabBar_icon_01.png differ
diff --git a/barter-app-main/barter-app/static/tabBar/tabBar_icon_02.png b/barter-app-main/barter-app/static/tabBar/tabBar_icon_02.png
new file mode 100644
index 0000000..a7a2c2c
Binary files /dev/null and b/barter-app-main/barter-app/static/tabBar/tabBar_icon_02.png differ
diff --git a/barter-app-main/barter-app/static/tabBar/tabBar_icon_03.png b/barter-app-main/barter-app/static/tabBar/tabBar_icon_03.png
new file mode 100644
index 0000000..d3c6a3f
Binary files /dev/null and b/barter-app-main/barter-app/static/tabBar/tabBar_icon_03.png differ
diff --git a/barter-app-main/barter-app/static/tabBar/tabBar_show_00.png b/barter-app-main/barter-app/static/tabBar/tabBar_show_00.png
new file mode 100644
index 0000000..0a08dec
Binary files /dev/null and b/barter-app-main/barter-app/static/tabBar/tabBar_show_00.png differ
diff --git a/barter-app-main/barter-app/static/tabBar/tabBar_show_01.png b/barter-app-main/barter-app/static/tabBar/tabBar_show_01.png
new file mode 100644
index 0000000..d5a54de
Binary files /dev/null and b/barter-app-main/barter-app/static/tabBar/tabBar_show_01.png differ
diff --git a/barter-app-main/barter-app/static/tabBar/tabBar_show_02.png b/barter-app-main/barter-app/static/tabBar/tabBar_show_02.png
new file mode 100644
index 0000000..8e3bb5b
Binary files /dev/null and b/barter-app-main/barter-app/static/tabBar/tabBar_show_02.png differ
diff --git a/barter-app-main/barter-app/static/tabBar/tabBar_show_03.png b/barter-app-main/barter-app/static/tabBar/tabBar_show_03.png
new file mode 100644
index 0000000..85bf12a
Binary files /dev/null and b/barter-app-main/barter-app/static/tabBar/tabBar_show_03.png differ
diff --git a/barter-app-main/barter-app/store/index.js b/barter-app-main/barter-app/store/index.js
new file mode 100644
index 0000000..b73b90a
--- /dev/null
+++ b/barter-app-main/barter-app/store/index.js
@@ -0,0 +1,36 @@
+
+/**
+ * Web唐明明
+ * 匆匆数载恍如梦,岁月迢迢华发增。
+ * 碌碌无为枉半生,一朝惊醒万事空。
+ */
+
+import Vue from 'vue'
+import Vuex from 'vuex'
+
+Vue.use(Vuex)
+
+export default new Vuex.Store({
+ state: {
+ token : uni.getStorageSync('token') || '',
+ spread: uni.getStorageSync('spread')
+ },
+ getters: {
+ getToken: state => {
+ return state.token
+ },
+ getSpread: state => {
+ return state.spread
+ }
+ },
+ mutations: {
+ setToken(state, tokenString) {
+ state.token = tokenString
+ uni.setStorageSync('token', tokenString)
+ },
+ setSpread(state, value) {
+ state.spread = value
+ uni.setStorageSync('spread', value)
+ }
+ }
+})
diff --git a/barter-app-main/barter-app/uni.scss b/barter-app-main/barter-app/uni.scss
new file mode 100644
index 0000000..7d4112c
--- /dev/null
+++ b/barter-app-main/barter-app/uni.scss
@@ -0,0 +1,79 @@
+/**
+ * 这里是uni-app内置的常用样式变量
+ *
+ * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
+ * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
+ *
+ */
+
+/**
+ * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
+ *
+ * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
+ */
+
+/* 引入自定义的scss */
+@import 'scss/globa.scss';
+
+/* 颜色变量 */
+
+/* 行为相关颜色 */
+$uni-color-primary: #007aff;
+$uni-color-success: #4cd964;
+$uni-color-warning: #f0ad4e;
+$uni-color-error: #dd524d;
+
+/* 文字基本颜色 */
+$uni-text-color:#333;//基本色
+$uni-text-color-inverse:#fff;//反色
+$uni-text-color-grey:#999;//辅助灰色,如加载更多的提示信息
+$uni-text-color-placeholder: #808080;
+$uni-text-color-disable:#c0c0c0;
+
+/* 背景颜色 */
+$uni-bg-color:#ffffff;
+$uni-bg-color-grey:#f8f8f8;
+$uni-bg-color-hover:#f1f1f1;//点击状态颜色
+$uni-bg-color-mask:rgba(0, 0, 0, 0.4);//遮罩颜色
+
+/* 边框颜色 */
+$uni-border-color:#c8c7cc;
+
+/* 尺寸变量 */
+
+/* 文字尺寸 */
+$uni-font-size-sm:24rpx;
+$uni-font-size-base:28rpx;
+$uni-font-size-lg:32rpx;
+
+/* 图片尺寸 */
+$uni-img-size-sm:40rpx;
+$uni-img-size-base:52rpx;
+$uni-img-size-lg:80rpx;
+
+/* Border Radius */
+$uni-border-radius-sm: 4rpx;
+$uni-border-radius-base: 6rpx;
+$uni-border-radius-lg: 12rpx;
+$uni-border-radius-circle: 50%;
+
+/* 水平间距 */
+$uni-spacing-row-sm: 10px;
+$uni-spacing-row-base: 20rpx;
+$uni-spacing-row-lg: 30rpx;
+
+/* 垂直间距 */
+$uni-spacing-col-sm: 8rpx;
+$uni-spacing-col-base: 16rpx;
+$uni-spacing-col-lg: 24rpx;
+
+/* 透明度 */
+$uni-opacity-disabled: 0.3; // 组件禁用态的透明度
+
+/* 文章场景相关 */
+$uni-color-title: #2C405A; // 文章标题颜色
+$uni-font-size-title:40rpx;
+$uni-color-subtitle: #555555; // 二级标题颜色
+$uni-font-size-subtitle:36rpx;
+$uni-color-paragraph: #3F536E; // 文章段落颜色
+$uni-font-size-paragraph:30rpx;
\ No newline at end of file
diff --git a/barter-app-main/barter-app/uniCloud-aliyun/cloudfunctions/phone-login/index.js b/barter-app-main/barter-app/uniCloud-aliyun/cloudfunctions/phone-login/index.js
new file mode 100644
index 0000000..8101441
--- /dev/null
+++ b/barter-app-main/barter-app/uniCloud-aliyun/cloudfunctions/phone-login/index.js
@@ -0,0 +1,37 @@
+
+'use strict';
+
+const crypto = require('crypto')
+
+exports.main = async (event) => {
+ const secret = 'Yuzhankeji2021.'
+ const hmac = crypto.createHmac('sha256', secret);
+
+ let params = event.queryStringParameters
+ const sign = params.sign
+ delete params.sign
+
+ const signStr = Object.keys(params).sort().map(key => {
+ return `${key}=${params[key]}`
+ }).join('&')
+
+ hmac.update(signStr);
+
+ if (sign !== hmac.digest('hex')) {
+ throw new Error('非法访问')
+ }
+
+ const {
+ access_token,
+ openid
+ } = params
+
+ return await uniCloud.getPhoneNumber({
+ appid: '__UNI__CD19AAD',
+ provider: 'univerify',
+ apiKey: '16fa20236696596869759d3a81541901',
+ apiSecret: 'fca97287360c2e8f8259d8877a601887',
+ access_token: access_token,
+ openid: openid,
+ })
+};
diff --git a/barter-app-main/barter-app/uni_modules/pyh-nv/changelog.md b/barter-app-main/barter-app/uni_modules/pyh-nv/changelog.md
new file mode 100644
index 0000000..1d59ad2
--- /dev/null
+++ b/barter-app-main/barter-app/uni_modules/pyh-nv/changelog.md
@@ -0,0 +1,84 @@
+## 1.2.4(2021-07-21)
+1、btn的icon添加text,可以带文字
+2、修复样式(btn右边间距、输入框字体大小改为inherit等)
+## 1.2.3(2021-07-20)
+1、开启了model滚动监听
+2、按钮组添加了badge设置角标
+## 1.2.2(2021-05-25)
+1、新增设置样式事件setStyle(),可通过ref来调用
+2、修改config内style传参格式(改为string类型),兼容小程序
+3、新增组件内注释
+4、其它小优化
+## 1.2.1(2021-03-16)
+处理了手机从竖屏变横屏后显示错乱问题
+## 1.2.0(2021-03-05)
+处理了右按钮样式小程序兼容错误
+## 1.1.9(2021-03-01)
+处理nvue兼容性(引入scss失败、css错误)
+## 1.1.8(2021-02-25)
+1、兼容nvue
+2、添加背景图
+## 1.1.7(2021-02-24)
+1、兼容uni_modules(官方新推出的插件管理);兼容nv写法,需要在pages.json添加代码:"easycom": {"nv": "@/uni_modules/pyh-nv/components/pyh-nv/pyh-nv.vue"}
+2、nvRoute函数更名为nv
+
+## 1.1.6(2021-02-01)
+1、修复model定位问题
+
+## 1.1.5(2021-02-01)
+1、全类型支持设置右方按钮组
+2、添加h5 document.title等于config的标题
+3、添加属性model,可在页面内独立使用,常用于不满足右方按钮小程序不显示的兼容方案(使用2个nv)
+4、优化代码结构
+
+## 1.1.4(2020-11-18)
+1、修复微信公众号中input的disabled点击跳转失效问题
+2、修复右上角纯图片按钮变形问题
+
+## 1.1.3(2020-09-27)
+修复config空值有时会报错的bug
+
+## 1.1.2(2020-09-14)
+添加通用导航栏渐变色背景功能(渐变色背景会导致transparent背景色渐变失效)
+
+## 1.1.1(2020-09-01)
+修复icon原生组件在小程序内高度铺满导致的错误问题
+
+## 1.1.0(2020-08-27)
+1、使用icon代替图片图标,完全独立组件
+2、添加回到顶部的功能
+
+## 1.0.9(2020-08-18)
+''' 1、单logo模式,支持全样式设置,可实现全背景图等
+2、优化了路由跳转判断及多端跳转
+3、组件内,利用了scss的特性,优化了主色的修改
+4、示例项目内添加了全局变量globalData,以及全路由封装函数nvRoute,组件也做了兼容处理,可快速设置配置,如需路由做特殊处理(比如history模式等),可使用封装的nvRoute统一处理 '''
+
+## 1.0.8(2020-08-17)
+1、修改搜索框动态赋值方式,更加方便,直接修改search.value,需要初始化value,旧的赋值方式已废弃。(重要) 2、注释样式:上版本组件内样式,没有注释uni.scss的部分
+
+## 1.0.7(2020-08-13)
+1、修改标题字体的size和weight,等同于uniapp的h5样式 2、补充组件主色覆盖样式的注释,可去除注释快速修改,也可使用uni.scss快速修改主色
+
+## 1.0.6(2020-07-29)
+1、补充文档对于搜索框赋值的说明,添加动态赋值功能
+
+## 1.0.5(2020-07-20)
+补充单组件文件缺少的文件iconfont.wxss(后续版本已移除该文件)
+
+## 1.0.4(2020-07-08)
+1、修复fixed定位,辅助容器高度问题
+
+2、补充示例项目属性项
+
+## 1.0.3(2020-07-08)
+1、添加config.position属性,并且默认为'fixed' 2、添加config.fixedAssist属性———固定定位辅助导航栏,高度与导航栏一致,可设置背景色 3、原home返回键背景取消,如需要,需使用componentBgColor 4、状态栏字体颜色与导航栏字体颜色一致(状态栏字体只支持#000000或#ffffff) 5、config.color 改为导航栏和状态栏字体色,也用于渐变完成时字体色(状态栏字体只支持#000000或#ffffff) 6、transparent.initColor代替之前的状态栏字体颜色设置,该值为导航栏与状态栏初始色(状态栏字体只支持#000000或#ffffff) 7、修改默认字体色为'#000000'
+
+## 1.0.2(2020-07-07)
+修改示例配置,更友好上手
+
+## 1.0.1(2020-07-07)
+上传初版,更新说明文档
+
+## 1.0.0(2020-07-07)
+上传初版
\ No newline at end of file
diff --git a/barter-app-main/barter-app/uni_modules/pyh-nv/components/pyh-nv/iconfont.ttf b/barter-app-main/barter-app/uni_modules/pyh-nv/components/pyh-nv/iconfont.ttf
new file mode 100644
index 0000000..5f36d42
Binary files /dev/null and b/barter-app-main/barter-app/uni_modules/pyh-nv/components/pyh-nv/iconfont.ttf differ
diff --git a/barter-app-main/barter-app/uni_modules/pyh-nv/components/pyh-nv/pyh-nv.vue b/barter-app-main/barter-app/uni_modules/pyh-nv/components/pyh-nv/pyh-nv.vue
new file mode 100644
index 0000000..2d63be2
--- /dev/null
+++ b/barter-app-main/barter-app/uni_modules/pyh-nv/components/pyh-nv/pyh-nv.vue
@@ -0,0 +1,509 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{b.text}}
+ {{b.badge.text}}
+
+
+ {{b.text}}
+ {{b.badge.text}}
+
+
+
+
+
+
+
+
+
+
+
+ {{config.address[config.address.fields||'province']||'广东省'}}
+
+
+
+
+
+
+
+
+ {{config.search.btn.text||'搜索'}}
+
+
+
+
+
+ {{b.text}}
+ {{b.badge.text}}
+
+
+ {{b.text}}
+ {{b.badge.text}}
+
+
+
+
+
+
+
+
+ {{t.title}}
+
+
+
+
+ {{config.title||title}}
+
+
+
+
+
+
+ {{b.text}}
+ {{b.badge.text}}
+
+
+ {{b.text}}
+ {{b.badge.text}}
+
+
+
+
+
+
+ {{isSharePage&&!config.closeCheckback?'':''}}
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/barter-app-main/barter-app/uni_modules/pyh-nv/package.json b/barter-app-main/barter-app/uni_modules/pyh-nv/package.json
new file mode 100644
index 0000000..c1afe05
--- /dev/null
+++ b/barter-app-main/barter-app/uni_modules/pyh-nv/package.json
@@ -0,0 +1,79 @@
+{
+ "id": "pyh-nv",
+ "name": "pyh-nv 全自定义、全兼容、全功能、多类型、可渐变导航栏",
+ "version": "1.2.4",
+ "description": "所有属性都可自定义,兼容各端包括nvue,所有类型导航栏都可渐变,还可设置状态栏字体色;1.1.6版本后续非uni_modules版本不再更新",
+ "keywords": [
+ "导航栏",
+ "自定义",
+ "渐变",
+ "状态栏",
+ "多端兼容"
+ ],
+ "displayName": "pyh-nv 全自定义、全兼容、全功能、多类型、可渐变导航栏",
+ "repository": "https://github.com/Ulovely/pyh-nv",
+ "dcloudext": {
+ "category": [
+ "前端组件",
+ "通用组件"
+ ],
+ "sale": {
+ "regular": {
+ "price": "0.00"
+ },
+ "sourcecode": {
+ "price": "0.00"
+ }
+ },
+ "contact": {
+ "qq": ""
+ },
+ "declaration": {
+ "ads": "无",
+ "data": "无",
+ "permissions": "无"
+ },
+ "npmurl": ""
+ },
+ "uni_modules": {
+ "platforms": {
+ "cloud": {
+ "tcb": "y",
+ "aliyun": "y"
+ },
+ "client": {
+ "App": {
+ "app-vue": "y",
+ "app-nvue": "y"
+ },
+ "H5-mobile": {
+ "Safari": "y",
+ "Android Browser": "y",
+ "微信浏览器(Android)": "y",
+ "QQ浏览器(Android)": "y"
+ },
+ "H5-pc": {
+ "Chrome": "u",
+ "IE": "u",
+ "Edge": "u",
+ "Firefox": "u",
+ "Safari": "u"
+ },
+ "小程序": {
+ "微信": "y",
+ "阿里": "u",
+ "百度": "u",
+ "字节跳动": "u",
+ "QQ": "u"
+ },
+ "快应用": {
+ "华为": "u",
+ "联盟": "u"
+ }
+ }
+ }
+ },
+ "engines": {
+ "HBuilderX": "^3.1.0"
+ }
+}
\ No newline at end of file
diff --git a/barter-app-main/barter-app/uni_modules/pyh-nv/readme.md b/barter-app-main/barter-app/uni_modules/pyh-nv/readme.md
new file mode 100644
index 0000000..a31d883
--- /dev/null
+++ b/barter-app-main/barter-app/uni_modules/pyh-nv/readme.md
@@ -0,0 +1,127 @@
+### pyh-nv 全自定义、全兼容、全功能、多类型、可渐变导航栏
+
+pyh-nv 导航栏组件,组件名:``nv``,代码块: nv。
+
+**使用方式:**
+
+uni_modules:
+
+[uni_modules使用方法](https://uniapp.dcloud.io/uni_modules?id=%e4%bd%bf%e7%94%a8-uni_modules-%e6%8f%92%e4%bb%b6);
+
+uni_modules在template内的名称为pyh-nv,兼容nv写法,需要在pages.json添加代码:
+"easycom": {"nv": "@/uni_modules/pyh-nv/components/pyh-nv/pyh-nv.vue"}
+
+非uni_modules:
+
+复制uni_modules->pyh-nv->components->pyh-nv文件到根目录的components下
+
+在 ``main.js`` 中引用组件
+
+```javascript
+
+import nv from "@/components/pyh-nv/pyh-nv.vue";
+Vue.component("nv",nv)
+
+```
+
+在 ``template`` 中使用组件
+
+```html
+
+
+
+
+
+
+
+```
+
+在 ``script`` 中 config 说明
+
+所有配置都为选填,无需要可以不配置,不复杂!!!
+所有配置都为选填,无需要可以不配置,不复杂!!!
+所有配置都为选填,无需要可以不配置,不复杂!!!
+
+**config 属性说明:**
+
+|属性名 |类型 |默认值 |说明 |
+|--- |---- |--- |--- |
+|title |String |'pyh-nv' |标题,在组件内写死或动态修改 |
+|position |String |'fixed' |定位方式,fixed和absoult都是固定定位,其它值为静态导航栏,随页面滚动 |
+|hideback |Boolean|false |是否隐藏导航栏返回功能 |
+|model |Boolean|false |是否页面内独立使用模型,如果是固定定位,top为导航栏高度 |
+|bgImage |String |'' |导航栏背景图,如果使用,则bgColor无效|
+|bgColor |String |'#ffffff' |导航栏背景色,如果使用渐变色,transparent渐变属性失效|
+|color |String |'#000000' |导航栏和状态栏字体色,也用于渐变完成时字体色(状态栏字体只支持#000000或#ffffff)|
+|componentBgColor |String |'#f8f8f8' |导航栏组件背景色(可被覆盖),如果有设置,回到首页的返回键有背景色|
+|type |String |'default' |导航栏类型(默认为通用),还有logo和search |
+|safeArea |Number |安全高度 |暂时只用于控制滚动显示,比如回到顶部 |
+|toTop |Object | |是否使用回到顶部,有该属性就是使用,详细见下方toTop说明} |
+|logo |Object | |导航栏logo的配置,仅type为logo或search时有效,详细见下方logo说明 |
+|search |Object | |导航栏含搜索框的配置,仅type为search时有效,详细见下方search说明 |
+|transparent |Object | |导航栏渐变配置,详细见下方transparent说明 |
+|fixedAssist |Object | |固定/绝对定位时辅助容器,{hide:false,bgColor:''} |
+|address |Object | |搜索导航栏左地址配置,{province:'广东省'} |
+|btn |Array |[] |导航栏右方按钮组,{text:'点击1',style:''},{icon:'',text:'',badge:{text:'1',style:''}}|
+|tabArr |Array |[] |导航栏中间tab切换,{title:'',active:true,hide:false} |
+
+**config 内 toTop 配置说明:**
+
+|属性名 |类型 |默认值 |说明 |
+|--- |---- |--- |--- |
+|duration |Number |300 |回到顶部的滚动动画时间(ms) |
+|style |String |'' |样式配置 |
+
+**config 内 logo 配置说明:**
+
+|属性名 |类型 |默认值 |说明 |
+|--- |---- |--- |--- |
+|src |String |'/static/logo.png' |logo路径 |
+|url |String |'' |如果传值,点击logo会reLaunch到该url |
+|style |String |'' |样式配置 |
+
+**config 内 search 配置说明:**
+
+|属性名 |类型 |默认值 |说明 |
+|--- |---- |--- |--- |
+|value |String |'' |input的初始值,如需动态赋值,必须初始化 |
+|bgColor |String |'#f8f8f8' |组件背景色,覆盖 componentBgColor |
+|input |Boolean|false |输入框提示语样式 |
+|url |String |'' |input为false时生效,点击navigateTo到url |
+|focus |Boolean|false |是否动聚焦 |
+|placeholder |String |'搜索' |输入框提示语 |
+|placeholderStyle |String |'' |输入框提示语样式 |
+|btn |Object | |input为true时生效,搜索框提交按钮,{text:'搜索',style:''} |
+|confirmType |String |'search' |同官方input的confirm-type,设置回车键文字 |
+
+**config 内 transparent 配置说明:**
+
+|属性名 |类型 |默认值 |说明 |
+|--- |---- |--- |--- |
+|type |String |'background' |渐变类型,content为全透明渐变 |
+|anchor |Number |当前导航栏高度 |最终渐变位置 |
+|initColor |String |'#ffffff' |导航栏与状态栏初始色,(状态栏字体只支持#000000或#ffffff) |
+
+
+**组件pyh-nv 事件说明(详情请参考示例项目):**
+
+|属名 |说明 |
+|--- |---- |
+|nvLogoTap |点击logo,仅logo存在时生效 |
+|nvAddressTap |点击地址,仅地址存在时生效 |
+|nvInput |输入框input事件,仅search.input为true时生效 |
+|nvFormSubmit |输入框确认事件,仅search.input为true时生效 |
+|nvBtnTap |右方按钮组点击事件,仅右方按钮存在时生效 |
+|nvTabTap |中间tab组点击事件,仅中间tab按钮存在时生效 |
+
+
+**ref 事件说明(详情请参考示例项目):**
+
+|事件名 |参数类型 |参数默认值 |说明 |
+|--- |---- |---- |---
+|setStyle |Object |{} |直接设置导航栏样式 |
+|pageScroll |Object |{scrollTop:0} |传递页面滚动信息 |
+
+**感谢:**
+
+> 有更多优化建议和需求,请联系作者 panyh 。谢谢!
\ No newline at end of file
diff --git a/barter-app-main/barter-app/uni_modules/uni-calendar/changelog.md b/barter-app-main/barter-app/uni_modules/uni-calendar/changelog.md
new file mode 100644
index 0000000..bd89749
--- /dev/null
+++ b/barter-app-main/barter-app/uni_modules/uni-calendar/changelog.md
@@ -0,0 +1,10 @@
+## 1.4.2(2021-08-24)
+- 新增 支持国际化
+## 1.4.1(2021-08-05)
+- 修复 弹出层被 tabbar 遮盖 bug
+## 1.4.0(2021-07-30)
+- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834)
+## 1.3.16(2021-05-12)
+- 新增 组件示例地址
+## 1.3.15(2021-02-04)
+- 调整为uni_modules目录规范
diff --git a/barter-app-main/barter-app/uni_modules/uni-calendar/components/uni-calendar/calendar.js b/barter-app-main/barter-app/uni_modules/uni-calendar/components/uni-calendar/calendar.js
new file mode 100644
index 0000000..b8d7d6f
--- /dev/null
+++ b/barter-app-main/barter-app/uni_modules/uni-calendar/components/uni-calendar/calendar.js
@@ -0,0 +1,546 @@
+/**
+* @1900-2100区间内的公历、农历互转
+* @charset UTF-8
+* @github https://github.com/jjonline/calendar.js
+* @Author Jea杨(JJonline@JJonline.Cn)
+* @Time 2014-7-21
+* @Time 2016-8-13 Fixed 2033hex、Attribution Annals
+* @Time 2016-9-25 Fixed lunar LeapMonth Param Bug
+* @Time 2017-7-24 Fixed use getTerm Func Param Error.use solar year,NOT lunar year
+* @Version 1.0.3
+* @公历转农历:calendar.solar2lunar(1987,11,01); //[you can ignore params of prefix 0]
+* @农历转公历:calendar.lunar2solar(1987,09,10); //[you can ignore params of prefix 0]
+*/
+/* eslint-disable */
+var calendar = {
+
+ /**
+ * 农历1900-2100的润大小信息表
+ * @Array Of Property
+ * @return Hex
+ */
+ lunarInfo: [0x04bd8, 0x04ae0, 0x0a570, 0x054d5, 0x0d260, 0x0d950, 0x16554, 0x056a0, 0x09ad0, 0x055d2, // 1900-1909
+ 0x04ae0, 0x0a5b6, 0x0a4d0, 0x0d250, 0x1d255, 0x0b540, 0x0d6a0, 0x0ada2, 0x095b0, 0x14977, // 1910-1919
+ 0x04970, 0x0a4b0, 0x0b4b5, 0x06a50, 0x06d40, 0x1ab54, 0x02b60, 0x09570, 0x052f2, 0x04970, // 1920-1929
+ 0x06566, 0x0d4a0, 0x0ea50, 0x06e95, 0x05ad0, 0x02b60, 0x186e3, 0x092e0, 0x1c8d7, 0x0c950, // 1930-1939
+ 0x0d4a0, 0x1d8a6, 0x0b550, 0x056a0, 0x1a5b4, 0x025d0, 0x092d0, 0x0d2b2, 0x0a950, 0x0b557, // 1940-1949
+ 0x06ca0, 0x0b550, 0x15355, 0x04da0, 0x0a5b0, 0x14573, 0x052b0, 0x0a9a8, 0x0e950, 0x06aa0, // 1950-1959
+ 0x0aea6, 0x0ab50, 0x04b60, 0x0aae4, 0x0a570, 0x05260, 0x0f263, 0x0d950, 0x05b57, 0x056a0, // 1960-1969
+ 0x096d0, 0x04dd5, 0x04ad0, 0x0a4d0, 0x0d4d4, 0x0d250, 0x0d558, 0x0b540, 0x0b6a0, 0x195a6, // 1970-1979
+ 0x095b0, 0x049b0, 0x0a974, 0x0a4b0, 0x0b27a, 0x06a50, 0x06d40, 0x0af46, 0x0ab60, 0x09570, // 1980-1989
+ 0x04af5, 0x04970, 0x064b0, 0x074a3, 0x0ea50, 0x06b58, 0x05ac0, 0x0ab60, 0x096d5, 0x092e0, // 1990-1999
+ 0x0c960, 0x0d954, 0x0d4a0, 0x0da50, 0x07552, 0x056a0, 0x0abb7, 0x025d0, 0x092d0, 0x0cab5, // 2000-2009
+ 0x0a950, 0x0b4a0, 0x0baa4, 0x0ad50, 0x055d9, 0x04ba0, 0x0a5b0, 0x15176, 0x052b0, 0x0a930, // 2010-2019
+ 0x07954, 0x06aa0, 0x0ad50, 0x05b52, 0x04b60, 0x0a6e6, 0x0a4e0, 0x0d260, 0x0ea65, 0x0d530, // 2020-2029
+ 0x05aa0, 0x076a3, 0x096d0, 0x04afb, 0x04ad0, 0x0a4d0, 0x1d0b6, 0x0d250, 0x0d520, 0x0dd45, // 2030-2039
+ 0x0b5a0, 0x056d0, 0x055b2, 0x049b0, 0x0a577, 0x0a4b0, 0x0aa50, 0x1b255, 0x06d20, 0x0ada0, // 2040-2049
+ /** Add By JJonline@JJonline.Cn**/
+ 0x14b63, 0x09370, 0x049f8, 0x04970, 0x064b0, 0x168a6, 0x0ea50, 0x06b20, 0x1a6c4, 0x0aae0, // 2050-2059
+ 0x0a2e0, 0x0d2e3, 0x0c960, 0x0d557, 0x0d4a0, 0x0da50, 0x05d55, 0x056a0, 0x0a6d0, 0x055d4, // 2060-2069
+ 0x052d0, 0x0a9b8, 0x0a950, 0x0b4a0, 0x0b6a6, 0x0ad50, 0x055a0, 0x0aba4, 0x0a5b0, 0x052b0, // 2070-2079
+ 0x0b273, 0x06930, 0x07337, 0x06aa0, 0x0ad50, 0x14b55, 0x04b60, 0x0a570, 0x054e4, 0x0d160, // 2080-2089
+ 0x0e968, 0x0d520, 0x0daa0, 0x16aa6, 0x056d0, 0x04ae0, 0x0a9d4, 0x0a2d0, 0x0d150, 0x0f252, // 2090-2099
+ 0x0d520], // 2100
+
+ /**
+ * 公历每个月份的天数普通表
+ * @Array Of Property
+ * @return Number
+ */
+ solarMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
+
+ /**
+ * 天干地支之天干速查表
+ * @Array Of Property trans["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"]
+ * @return Cn string
+ */
+ Gan: ['\u7532', '\u4e59', '\u4e19', '\u4e01', '\u620a', '\u5df1', '\u5e9a', '\u8f9b', '\u58ec', '\u7678'],
+
+ /**
+ * 天干地支之地支速查表
+ * @Array Of Property
+ * @trans["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"]
+ * @return Cn string
+ */
+ Zhi: ['\u5b50', '\u4e11', '\u5bc5', '\u536f', '\u8fb0', '\u5df3', '\u5348', '\u672a', '\u7533', '\u9149', '\u620c', '\u4ea5'],
+
+ /**
+ * 天干地支之地支速查表<=>生肖
+ * @Array Of Property
+ * @trans["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"]
+ * @return Cn string
+ */
+ Animals: ['\u9f20', '\u725b', '\u864e', '\u5154', '\u9f99', '\u86c7', '\u9a6c', '\u7f8a', '\u7334', '\u9e21', '\u72d7', '\u732a'],
+
+ /**
+ * 24节气速查表
+ * @Array Of Property
+ * @trans["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"]
+ * @return Cn string
+ */
+ solarTerm: ['\u5c0f\u5bd2', '\u5927\u5bd2', '\u7acb\u6625', '\u96e8\u6c34', '\u60ca\u86f0', '\u6625\u5206', '\u6e05\u660e', '\u8c37\u96e8', '\u7acb\u590f', '\u5c0f\u6ee1', '\u8292\u79cd', '\u590f\u81f3', '\u5c0f\u6691', '\u5927\u6691', '\u7acb\u79cb', '\u5904\u6691', '\u767d\u9732', '\u79cb\u5206', '\u5bd2\u9732', '\u971c\u964d', '\u7acb\u51ac', '\u5c0f\u96ea', '\u5927\u96ea', '\u51ac\u81f3'],
+
+ /**
+ * 1900-2100各年的24节气日期速查表
+ * @Array Of Property
+ * @return 0x string For splice
+ */
+ sTermInfo: ['9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf97c3598082c95f8c965cc920f',
+ '97bd0b06bdb0722c965ce1cfcc920f', 'b027097bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e',
+ '97bcf97c359801ec95f8c965cc920f', '97bd0b06bdb0722c965ce1cfcc920f', 'b027097bd097c36b0b6fc9274c91aa',
+ '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f', '97bd0b06bdb0722c965ce1cfcc920f',
+ 'b027097bd097c36b0b6fc9274c91aa', '9778397bd19801ec9210c965cc920e', '97b6b97bd19801ec95f8c965cc920f',
+ '97bd09801d98082c95f8e1cfcc920f', '97bd097bd097c36b0b6fc9210c8dc2', '9778397bd197c36c9210c9274c91aa',
+ '97b6b97bd19801ec95f8c965cc920e', '97bd09801d98082c95f8e1cfcc920f', '97bd097bd097c36b0b6fc9210c8dc2',
+ '9778397bd097c36c9210c9274c91aa', '97b6b97bd19801ec95f8c965cc920e', '97bcf97c3598082c95f8e1cfcc920f',
+ '97bd097bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c91aa', '97b6b97bd19801ec9210c965cc920e',
+ '97bcf97c3598082c95f8c965cc920f', '97bd097bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa',
+ '97b6b97bd19801ec9210c965cc920e', '97bcf97c3598082c95f8c965cc920f', '97bd097bd097c35b0b6fc920fb0722',
+ '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f',
+ '97bd097bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e',
+ '97bcf97c359801ec95f8c965cc920f', '97bd097bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa',
+ '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f', '97bd097bd07f595b0b6fc920fb0722',
+ '9778397bd097c36b0b6fc9210c8dc2', '9778397bd19801ec9210c9274c920e', '97b6b97bd19801ec95f8c965cc920f',
+ '97bd07f5307f595b0b0bc920fb0722', '7f0e397bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c920e',
+ '97b6b97bd19801ec95f8c965cc920f', '97bd07f5307f595b0b0bc920fb0722', '7f0e397bd097c36b0b6fc9210c8dc2',
+ '9778397bd097c36c9210c9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bd07f1487f595b0b0bc920fb0722',
+ '7f0e397bd097c36b0b6fc9210c8dc2', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e',
+ '97bcf7f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa',
+ '97b6b97bd19801ec9210c965cc920e', '97bcf7f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722',
+ '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf7f1487f531b0b0bb0b6fb0722',
+ '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e',
+ '97bcf7f1487f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa',
+ '97b6b97bd19801ec9210c9274c920e', '97bcf7f0e47f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722',
+ '9778397bd097c36b0b6fc9210c91aa', '97b6b97bd197c36c9210c9274c920e', '97bcf7f0e47f531b0b0bb0b6fb0722',
+ '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c920e',
+ '97b6b7f0e47f531b0723b0b6fb0722', '7f0e37f5307f595b0b0bc920fb0722', '7f0e397bd097c36b0b6fc9210c8dc2',
+ '9778397bd097c36b0b70c9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721', '7f0e37f1487f595b0b0bb0b6fb0722',
+ '7f0e397bd097c35b0b6fc9210c8dc2', '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721',
+ '7f0e27f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa',
+ '97b6b7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722',
+ '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722',
+ '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721',
+ '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9274c91aa',
+ '97b6b7f0e47f531b0723b0787b0721', '7f0e27f0e47f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722',
+ '9778397bd097c36b0b6fc9210c91aa', '97b6b7f0e47f149b0723b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722',
+ '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9210c8dc2', '977837f0e37f149b0723b0787b0721',
+ '7f07e7f0e47f531b0723b0b6fb0722', '7f0e37f5307f595b0b0bc920fb0722', '7f0e397bd097c35b0b6fc9210c8dc2',
+ '977837f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e37f1487f595b0b0bb0b6fb0722',
+ '7f0e397bd097c35b0b6fc9210c8dc2', '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721',
+ '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '977837f0e37f14998082b0787b06bd',
+ '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722',
+ '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722',
+ '7f0e397bd07f595b0b0bc920fb0722', '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721',
+ '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '977837f0e37f14998082b0787b06bd',
+ '7f07e7f0e47f149b0723b0787b0721', '7f0e27f0e47f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722',
+ '977837f0e37f14998082b0723b06bd', '7f07e7f0e37f149b0723b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722',
+ '7f0e397bd07f595b0b0bc920fb0722', '977837f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b0721',
+ '7f07e7f0e47f531b0723b0b6fb0722', '7f0e37f1487f595b0b0bb0b6fb0722', '7f0e37f0e37f14898082b0723b02d5',
+ '7ec967f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0722', '7f0e37f1487f531b0b0bb0b6fb0722',
+ '7f0e37f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721',
+ '7f0e37f1487f531b0b0bb0b6fb0722', '7f0e37f0e37f14898082b072297c35', '7ec967f0e37f14998082b0787b06bd',
+ '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e37f0e37f14898082b072297c35',
+ '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722',
+ '7f0e37f0e366aa89801eb072297c35', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f149b0723b0787b0721',
+ '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e37f0e366aa89801eb072297c35', '7ec967f0e37f14998082b0723b06bd',
+ '7f07e7f0e47f149b0723b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722', '7f0e37f0e366aa89801eb072297c35',
+ '7ec967f0e37f14998082b0723b06bd', '7f07e7f0e37f14998083b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722',
+ '7f0e37f0e366aa89801eb072297c35', '7ec967f0e37f14898082b0723b02d5', '7f07e7f0e37f14998082b0787b0721',
+ '7f07e7f0e47f531b0723b0b6fb0722', '7f0e36665b66aa89801e9808297c35', '665f67f0e37f14898082b0723b02d5',
+ '7ec967f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0722', '7f0e36665b66a449801e9808297c35',
+ '665f67f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721',
+ '7f0e36665b66a449801e9808297c35', '665f67f0e37f14898082b072297c35', '7ec967f0e37f14998082b0787b06bd',
+ '7f07e7f0e47f531b0723b0b6fb0721', '7f0e26665b66a449801e9808297c35', '665f67f0e37f1489801eb072297c35',
+ '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722'],
+
+ /**
+ * 数字转中文速查表
+ * @Array Of Property
+ * @trans ['日','一','二','三','四','五','六','七','八','九','十']
+ * @return Cn string
+ */
+ nStr1: ['\u65e5', '\u4e00', '\u4e8c', '\u4e09', '\u56db', '\u4e94', '\u516d', '\u4e03', '\u516b', '\u4e5d', '\u5341'],
+
+ /**
+ * 日期转农历称呼速查表
+ * @Array Of Property
+ * @trans ['初','十','廿','卅']
+ * @return Cn string
+ */
+ nStr2: ['\u521d', '\u5341', '\u5eff', '\u5345'],
+
+ /**
+ * 月份转农历称呼速查表
+ * @Array Of Property
+ * @trans ['正','一','二','三','四','五','六','七','八','九','十','冬','腊']
+ * @return Cn string
+ */
+ nStr3: ['\u6b63', '\u4e8c', '\u4e09', '\u56db', '\u4e94', '\u516d', '\u4e03', '\u516b', '\u4e5d', '\u5341', '\u51ac', '\u814a'],
+
+ /**
+ * 返回农历y年一整年的总天数
+ * @param lunar Year
+ * @return Number
+ * @eg:var count = calendar.lYearDays(1987) ;//count=387
+ */
+ lYearDays: function (y) {
+ var i; var sum = 348
+ for (i = 0x8000; i > 0x8; i >>= 1) { sum += (this.lunarInfo[y - 1900] & i) ? 1 : 0 }
+ return (sum + this.leapDays(y))
+ },
+
+ /**
+ * 返回农历y年闰月是哪个月;若y年没有闰月 则返回0
+ * @param lunar Year
+ * @return Number (0-12)
+ * @eg:var leapMonth = calendar.leapMonth(1987) ;//leapMonth=6
+ */
+ leapMonth: function (y) { // 闰字编码 \u95f0
+ return (this.lunarInfo[y - 1900] & 0xf)
+ },
+
+ /**
+ * 返回农历y年闰月的天数 若该年没有闰月则返回0
+ * @param lunar Year
+ * @return Number (0、29、30)
+ * @eg:var leapMonthDay = calendar.leapDays(1987) ;//leapMonthDay=29
+ */
+ leapDays: function (y) {
+ if (this.leapMonth(y)) {
+ return ((this.lunarInfo[y - 1900] & 0x10000) ? 30 : 29)
+ }
+ return (0)
+ },
+
+ /**
+ * 返回农历y年m月(非闰月)的总天数,计算m为闰月时的天数请使用leapDays方法
+ * @param lunar Year
+ * @return Number (-1、29、30)
+ * @eg:var MonthDay = calendar.monthDays(1987,9) ;//MonthDay=29
+ */
+ monthDays: function (y, m) {
+ if (m > 12 || m < 1) { return -1 }// 月份参数从1至12,参数错误返回-1
+ return ((this.lunarInfo[y - 1900] & (0x10000 >> m)) ? 30 : 29)
+ },
+
+ /**
+ * 返回公历(!)y年m月的天数
+ * @param solar Year
+ * @return Number (-1、28、29、30、31)
+ * @eg:var solarMonthDay = calendar.leapDays(1987) ;//solarMonthDay=30
+ */
+ solarDays: function (y, m) {
+ if (m > 12 || m < 1) { return -1 } // 若参数错误 返回-1
+ var ms = m - 1
+ if (ms == 1) { // 2月份的闰平规律测算后确认返回28或29
+ return (((y % 4 == 0) && (y % 100 != 0) || (y % 400 == 0)) ? 29 : 28)
+ } else {
+ return (this.solarMonth[ms])
+ }
+ },
+
+ /**
+ * 农历年份转换为干支纪年
+ * @param lYear 农历年的年份数
+ * @return Cn string
+ */
+ toGanZhiYear: function (lYear) {
+ var ganKey = (lYear - 3) % 10
+ var zhiKey = (lYear - 3) % 12
+ if (ganKey == 0) ganKey = 10// 如果余数为0则为最后一个天干
+ if (zhiKey == 0) zhiKey = 12// 如果余数为0则为最后一个地支
+ return this.Gan[ganKey - 1] + this.Zhi[zhiKey - 1]
+ },
+
+ /**
+ * 公历月、日判断所属星座
+ * @param cMonth [description]
+ * @param cDay [description]
+ * @return Cn string
+ */
+ toAstro: function (cMonth, cDay) {
+ var s = '\u9b54\u7faf\u6c34\u74f6\u53cc\u9c7c\u767d\u7f8a\u91d1\u725b\u53cc\u5b50\u5de8\u87f9\u72ee\u5b50\u5904\u5973\u5929\u79e4\u5929\u874e\u5c04\u624b\u9b54\u7faf'
+ var arr = [20, 19, 21, 21, 21, 22, 23, 23, 23, 23, 22, 22]
+ return s.substr(cMonth * 2 - (cDay < arr[cMonth - 1] ? 2 : 0), 2) + '\u5ea7'// 座
+ },
+
+ /**
+ * 传入offset偏移量返回干支
+ * @param offset 相对甲子的偏移量
+ * @return Cn string
+ */
+ toGanZhi: function (offset) {
+ return this.Gan[offset % 10] + this.Zhi[offset % 12]
+ },
+
+ /**
+ * 传入公历(!)y年获得该年第n个节气的公历日期
+ * @param y公历年(1900-2100);n二十四节气中的第几个节气(1~24);从n=1(小寒)算起
+ * @return day Number
+ * @eg:var _24 = calendar.getTerm(1987,3) ;//_24=4;意即1987年2月4日立春
+ */
+ getTerm: function (y, n) {
+ if (y < 1900 || y > 2100) { return -1 }
+ if (n < 1 || n > 24) { return -1 }
+ var _table = this.sTermInfo[y - 1900]
+ var _info = [
+ parseInt('0x' + _table.substr(0, 5)).toString(),
+ parseInt('0x' + _table.substr(5, 5)).toString(),
+ parseInt('0x' + _table.substr(10, 5)).toString(),
+ parseInt('0x' + _table.substr(15, 5)).toString(),
+ parseInt('0x' + _table.substr(20, 5)).toString(),
+ parseInt('0x' + _table.substr(25, 5)).toString()
+ ]
+ var _calday = [
+ _info[0].substr(0, 1),
+ _info[0].substr(1, 2),
+ _info[0].substr(3, 1),
+ _info[0].substr(4, 2),
+
+ _info[1].substr(0, 1),
+ _info[1].substr(1, 2),
+ _info[1].substr(3, 1),
+ _info[1].substr(4, 2),
+
+ _info[2].substr(0, 1),
+ _info[2].substr(1, 2),
+ _info[2].substr(3, 1),
+ _info[2].substr(4, 2),
+
+ _info[3].substr(0, 1),
+ _info[3].substr(1, 2),
+ _info[3].substr(3, 1),
+ _info[3].substr(4, 2),
+
+ _info[4].substr(0, 1),
+ _info[4].substr(1, 2),
+ _info[4].substr(3, 1),
+ _info[4].substr(4, 2),
+
+ _info[5].substr(0, 1),
+ _info[5].substr(1, 2),
+ _info[5].substr(3, 1),
+ _info[5].substr(4, 2)
+ ]
+ return parseInt(_calday[n - 1])
+ },
+
+ /**
+ * 传入农历数字月份返回汉语通俗表示法
+ * @param lunar month
+ * @return Cn string
+ * @eg:var cnMonth = calendar.toChinaMonth(12) ;//cnMonth='腊月'
+ */
+ toChinaMonth: function (m) { // 月 => \u6708
+ if (m > 12 || m < 1) { return -1 } // 若参数错误 返回-1
+ var s = this.nStr3[m - 1]
+ s += '\u6708'// 加上月字
+ return s
+ },
+
+ /**
+ * 传入农历日期数字返回汉字表示法
+ * @param lunar day
+ * @return Cn string
+ * @eg:var cnDay = calendar.toChinaDay(21) ;//cnMonth='廿一'
+ */
+ toChinaDay: function (d) { // 日 => \u65e5
+ var s
+ switch (d) {
+ case 10:
+ s = '\u521d\u5341'; break
+ case 20:
+ s = '\u4e8c\u5341'; break
+ break
+ case 30:
+ s = '\u4e09\u5341'; break
+ break
+ default :
+ s = this.nStr2[Math.floor(d / 10)]
+ s += this.nStr1[d % 10]
+ }
+ return (s)
+ },
+
+ /**
+ * 年份转生肖[!仅能大致转换] => 精确划分生肖分界线是“立春”
+ * @param y year
+ * @return Cn string
+ * @eg:var animal = calendar.getAnimal(1987) ;//animal='兔'
+ */
+ getAnimal: function (y) {
+ return this.Animals[(y - 4) % 12]
+ },
+
+ /**
+ * 传入阳历年月日获得详细的公历、农历object信息 <=>JSON
+ * @param y solar year
+ * @param m solar month
+ * @param d solar day
+ * @return JSON object
+ * @eg:console.log(calendar.solar2lunar(1987,11,01));
+ */
+ solar2lunar: function (y, m, d) { // 参数区间1900.1.31~2100.12.31
+ // 年份限定、上限
+ if (y < 1900 || y > 2100) {
+ return -1// undefined转换为数字变为NaN
+ }
+ // 公历传参最下限
+ if (y == 1900 && m == 1 && d < 31) {
+ return -1
+ }
+ // 未传参 获得当天
+ if (!y) {
+ var objDate = new Date()
+ } else {
+ var objDate = new Date(y, parseInt(m) - 1, d)
+ }
+ var i; var leap = 0; var temp = 0
+ // 修正ymd参数
+ var y = objDate.getFullYear()
+ var m = objDate.getMonth() + 1
+ var d = objDate.getDate()
+ var offset = (Date.UTC(objDate.getFullYear(), objDate.getMonth(), objDate.getDate()) - Date.UTC(1900, 0, 31)) / 86400000
+ for (i = 1900; i < 2101 && offset > 0; i++) {
+ temp = this.lYearDays(i)
+ offset -= temp
+ }
+ if (offset < 0) {
+ offset += temp; i--
+ }
+
+ // 是否今天
+ var isTodayObj = new Date()
+ var isToday = false
+ if (isTodayObj.getFullYear() == y && isTodayObj.getMonth() + 1 == m && isTodayObj.getDate() == d) {
+ isToday = true
+ }
+ // 星期几
+ var nWeek = objDate.getDay()
+ var cWeek = this.nStr1[nWeek]
+ // 数字表示周几顺应天朝周一开始的惯例
+ if (nWeek == 0) {
+ nWeek = 7
+ }
+ // 农历年
+ var year = i
+ var leap = this.leapMonth(i) // 闰哪个月
+ var isLeap = false
+
+ // 效验闰月
+ for (i = 1; i < 13 && offset > 0; i++) {
+ // 闰月
+ if (leap > 0 && i == (leap + 1) && isLeap == false) {
+ --i
+ isLeap = true; temp = this.leapDays(year) // 计算农历闰月天数
+ } else {
+ temp = this.monthDays(year, i)// 计算农历普通月天数
+ }
+ // 解除闰月
+ if (isLeap == true && i == (leap + 1)) { isLeap = false }
+ offset -= temp
+ }
+ // 闰月导致数组下标重叠取反
+ if (offset == 0 && leap > 0 && i == leap + 1) {
+ if (isLeap) {
+ isLeap = false
+ } else {
+ isLeap = true; --i
+ }
+ }
+ if (offset < 0) {
+ offset += temp; --i
+ }
+ // 农历月
+ var month = i
+ // 农历日
+ var day = offset + 1
+ // 天干地支处理
+ var sm = m - 1
+ var gzY = this.toGanZhiYear(year)
+
+ // 当月的两个节气
+ // bugfix-2017-7-24 11:03:38 use lunar Year Param `y` Not `year`
+ var firstNode = this.getTerm(y, (m * 2 - 1))// 返回当月「节」为几日开始
+ var secondNode = this.getTerm(y, (m * 2))// 返回当月「节」为几日开始
+
+ // 依据12节气修正干支月
+ var gzM = this.toGanZhi((y - 1900) * 12 + m + 11)
+ if (d >= firstNode) {
+ gzM = this.toGanZhi((y - 1900) * 12 + m + 12)
+ }
+
+ // 传入的日期的节气与否
+ var isTerm = false
+ var Term = null
+ if (firstNode == d) {
+ isTerm = true
+ Term = this.solarTerm[m * 2 - 2]
+ }
+ if (secondNode == d) {
+ isTerm = true
+ Term = this.solarTerm[m * 2 - 1]
+ }
+ // 日柱 当月一日与 1900/1/1 相差天数
+ var dayCyclical = Date.UTC(y, sm, 1, 0, 0, 0, 0) / 86400000 + 25567 + 10
+ var gzD = this.toGanZhi(dayCyclical + d - 1)
+ // 该日期所属的星座
+ var astro = this.toAstro(m, d)
+
+ return { 'lYear': year, 'lMonth': month, 'lDay': day, 'Animal': this.getAnimal(year), 'IMonthCn': (isLeap ? '\u95f0' : '') + this.toChinaMonth(month), 'IDayCn': this.toChinaDay(day), 'cYear': y, 'cMonth': m, 'cDay': d, 'gzYear': gzY, 'gzMonth': gzM, 'gzDay': gzD, 'isToday': isToday, 'isLeap': isLeap, 'nWeek': nWeek, 'ncWeek': '\u661f\u671f' + cWeek, 'isTerm': isTerm, 'Term': Term, 'astro': astro }
+ },
+
+ /**
+ * 传入农历年月日以及传入的月份是否闰月获得详细的公历、农历object信息 <=>JSON
+ * @param y lunar year
+ * @param m lunar month
+ * @param d lunar day
+ * @param isLeapMonth lunar month is leap or not.[如果是农历闰月第四个参数赋值true即可]
+ * @return JSON object
+ * @eg:console.log(calendar.lunar2solar(1987,9,10));
+ */
+ lunar2solar: function (y, m, d, isLeapMonth) { // 参数区间1900.1.31~2100.12.1
+ var isLeapMonth = !!isLeapMonth
+ var leapOffset = 0
+ var leapMonth = this.leapMonth(y)
+ var leapDay = this.leapDays(y)
+ if (isLeapMonth && (leapMonth != m)) { return -1 }// 传参要求计算该闰月公历 但该年得出的闰月与传参的月份并不同
+ if (y == 2100 && m == 12 && d > 1 || y == 1900 && m == 1 && d < 31) { return -1 }// 超出了最大极限值
+ var day = this.monthDays(y, m)
+ var _day = day
+ // bugFix 2016-9-25
+ // if month is leap, _day use leapDays method
+ if (isLeapMonth) {
+ _day = this.leapDays(y, m)
+ }
+ if (y < 1900 || y > 2100 || d > _day) { return -1 }// 参数合法性效验
+
+ // 计算农历的时间差
+ var offset = 0
+ for (var i = 1900; i < y; i++) {
+ offset += this.lYearDays(i)
+ }
+ var leap = 0; var isAdd = false
+ for (var i = 1; i < m; i++) {
+ leap = this.leapMonth(y)
+ if (!isAdd) { // 处理闰月
+ if (leap <= i && leap > 0) {
+ offset += this.leapDays(y); isAdd = true
+ }
+ }
+ offset += this.monthDays(y, i)
+ }
+ // 转换闰月农历 需补充该年闰月的前一个月的时差
+ if (isLeapMonth) { offset += day }
+ // 1900年农历正月一日的公历时间为1900年1月30日0时0分0秒(该时间也是本农历的最开始起始点)
+ var stmap = Date.UTC(1900, 1, 30, 0, 0, 0)
+ var calObj = new Date((offset + d - 31) * 86400000 + stmap)
+ var cY = calObj.getUTCFullYear()
+ var cM = calObj.getUTCMonth() + 1
+ var cD = calObj.getUTCDate()
+
+ return this.solar2lunar(cY, cM, cD)
+ }
+}
+
+export default calendar
diff --git a/barter-app-main/barter-app/uni_modules/uni-calendar/components/uni-calendar/i18n/en.json b/barter-app-main/barter-app/uni_modules/uni-calendar/components/uni-calendar/i18n/en.json
new file mode 100644
index 0000000..fcbd13c
--- /dev/null
+++ b/barter-app-main/barter-app/uni_modules/uni-calendar/components/uni-calendar/i18n/en.json
@@ -0,0 +1,12 @@
+{
+ "uni-calender.ok": "ok",
+ "uni-calender.cancel": "cancel",
+ "uni-calender.today": "today",
+ "uni-calender.MON": "MON",
+ "uni-calender.TUE": "TUE",
+ "uni-calender.WED": "WED",
+ "uni-calender.THU": "THU",
+ "uni-calender.FRI": "FRI",
+ "uni-calender.SAT": "SAT",
+ "uni-calender.SUN": "SUN"
+}
diff --git a/barter-app-main/barter-app/uni_modules/uni-calendar/components/uni-calendar/i18n/index.js b/barter-app-main/barter-app/uni_modules/uni-calendar/components/uni-calendar/i18n/index.js
new file mode 100644
index 0000000..de7509c
--- /dev/null
+++ b/barter-app-main/barter-app/uni_modules/uni-calendar/components/uni-calendar/i18n/index.js
@@ -0,0 +1,8 @@
+import en from './en.json'
+import zhHans from './zh-Hans.json'
+import zhHant from './zh-Hant.json'
+export default {
+ en,
+ 'zh-Hans': zhHans,
+ 'zh-Hant': zhHant
+}
diff --git a/barter-app-main/barter-app/uni_modules/uni-calendar/components/uni-calendar/i18n/zh-Hans.json b/barter-app-main/barter-app/uni_modules/uni-calendar/components/uni-calendar/i18n/zh-Hans.json
new file mode 100644
index 0000000..1ca43de
--- /dev/null
+++ b/barter-app-main/barter-app/uni_modules/uni-calendar/components/uni-calendar/i18n/zh-Hans.json
@@ -0,0 +1,12 @@
+{
+ "uni-calender.ok": "确定",
+ "uni-calender.cancel": "取消",
+ "uni-calender.today": "今日",
+ "uni-calender.SUN": "日",
+ "uni-calender.MON": "一",
+ "uni-calender.TUE": "二",
+ "uni-calender.WED": "三",
+ "uni-calender.THU": "四",
+ "uni-calender.FRI": "五",
+ "uni-calender.SAT": "六"
+}
diff --git a/barter-app-main/barter-app/uni_modules/uni-calendar/components/uni-calendar/i18n/zh-Hant.json b/barter-app-main/barter-app/uni_modules/uni-calendar/components/uni-calendar/i18n/zh-Hant.json
new file mode 100644
index 0000000..e0fe33b
--- /dev/null
+++ b/barter-app-main/barter-app/uni_modules/uni-calendar/components/uni-calendar/i18n/zh-Hant.json
@@ -0,0 +1,12 @@
+{
+ "uni-calender.ok": "確定",
+ "uni-calender.cancel": "取消",
+ "uni-calender.today": "今日",
+ "uni-calender.SUN": "日",
+ "uni-calender.MON": "一",
+ "uni-calender.TUE": "二",
+ "uni-calender.WED": "三",
+ "uni-calender.THU": "四",
+ "uni-calender.FRI": "五",
+ "uni-calender.SAT": "六"
+}
diff --git a/barter-app-main/barter-app/uni_modules/uni-calendar/components/uni-calendar/uni-calendar-item.vue b/barter-app-main/barter-app/uni_modules/uni-calendar/components/uni-calendar/uni-calendar-item.vue
new file mode 100644
index 0000000..95056b7
--- /dev/null
+++ b/barter-app-main/barter-app/uni_modules/uni-calendar/components/uni-calendar/uni-calendar-item.vue
@@ -0,0 +1,181 @@
+
+
+
+
+ {{weeks.date}}
+ {{todayText}}
+ {{weeks.isDay ? todayText : (weeks.lunar.IDayCn === '初一'?weeks.lunar.IMonthCn:weeks.lunar.IDayCn)}}
+ {{weeks.extraInfo.info}}
+
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/uni_modules/uni-calendar/components/uni-calendar/uni-calendar.vue b/barter-app-main/barter-app/uni_modules/uni-calendar/components/uni-calendar/uni-calendar.vue
new file mode 100644
index 0000000..401a2de
--- /dev/null
+++ b/barter-app-main/barter-app/uni_modules/uni-calendar/components/uni-calendar/uni-calendar.vue
@@ -0,0 +1,547 @@
+
+
+
+
+
+
+
+
+ {{nowDate.month}}
+
+
+
+ {{SUNText}}
+
+
+ {{monText}}
+
+
+ {{TUEText}}
+
+
+ {{WEDText}}
+
+
+ {{THUText}}
+
+
+ {{FRIText}}
+
+
+ {{SATText}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/uni_modules/uni-calendar/components/uni-calendar/util.js b/barter-app-main/barter-app/uni_modules/uni-calendar/components/uni-calendar/util.js
new file mode 100644
index 0000000..37f4432
--- /dev/null
+++ b/barter-app-main/barter-app/uni_modules/uni-calendar/components/uni-calendar/util.js
@@ -0,0 +1,352 @@
+import CALENDAR from './calendar.js'
+
+class Calendar {
+ constructor({
+ date,
+ selected,
+ startDate,
+ endDate,
+ range
+ } = {}) {
+ // 当前日期
+ this.date = this.getDate(new Date()) // 当前初入日期
+ // 打点信息
+ this.selected = selected || [];
+ // 范围开始
+ this.startDate = startDate
+ // 范围结束
+ this.endDate = endDate
+ this.range = range
+ // 多选状态
+ this.cleanMultipleStatus()
+ // 每周日期
+ this.weeks = {}
+ // this._getWeek(this.date.fullDate)
+ }
+ /**
+ * 设置日期
+ * @param {Object} date
+ */
+ setDate(date) {
+ this.selectDate = this.getDate(date)
+ this._getWeek(this.selectDate.fullDate)
+ }
+
+ /**
+ * 清理多选状态
+ */
+ cleanMultipleStatus() {
+ this.multipleStatus = {
+ before: '',
+ after: '',
+ data: []
+ }
+ }
+
+ /**
+ * 重置开始日期
+ */
+ resetSatrtDate(startDate) {
+ // 范围开始
+ this.startDate = startDate
+
+ }
+
+ /**
+ * 重置结束日期
+ */
+ resetEndDate(endDate) {
+ // 范围结束
+ this.endDate = endDate
+ }
+
+ /**
+ * 获取任意时间
+ */
+ getDate(date, AddDayCount = 0, str = 'day') {
+ if (!date) {
+ date = new Date()
+ }
+ if (typeof date !== 'object') {
+ date = date.replace(/-/g, '/')
+ }
+ const dd = new Date(date)
+ switch (str) {
+ case 'day':
+ dd.setDate(dd.getDate() + AddDayCount) // 获取AddDayCount天后的日期
+ break
+ case 'month':
+ if (dd.getDate() === 31) {
+ dd.setDate(dd.getDate() + AddDayCount)
+ } else {
+ dd.setMonth(dd.getMonth() + AddDayCount) // 获取AddDayCount天后的日期
+ }
+ break
+ case 'year':
+ dd.setFullYear(dd.getFullYear() + AddDayCount) // 获取AddDayCount天后的日期
+ break
+ }
+ const y = dd.getFullYear()
+ const m = dd.getMonth() + 1 < 10 ? '0' + (dd.getMonth() + 1) : dd.getMonth() + 1 // 获取当前月份的日期,不足10补0
+ const d = dd.getDate() < 10 ? '0' + dd.getDate() : dd.getDate() // 获取当前几号,不足10补0
+ return {
+ fullDate: y + '-' + m + '-' + d,
+ year: y,
+ month: m,
+ date: d,
+ day: dd.getDay()
+ }
+ }
+
+
+ /**
+ * 获取上月剩余天数
+ */
+ _getLastMonthDays(firstDay, full) {
+ let dateArr = []
+ for (let i = firstDay; i > 0; i--) {
+ const beforeDate = new Date(full.year, full.month - 1, -i + 1).getDate()
+ dateArr.push({
+ date: beforeDate,
+ month: full.month - 1,
+ lunar: this.getlunar(full.year, full.month - 1, beforeDate),
+ disable: true
+ })
+ }
+ return dateArr
+ }
+ /**
+ * 获取本月天数
+ */
+ _currentMonthDys(dateData, full) {
+ let dateArr = []
+ let fullDate = this.date.fullDate
+ for (let i = 1; i <= dateData; i++) {
+ let isinfo = false
+ let nowDate = full.year + '-' + (full.month < 10 ?
+ full.month : full.month) + '-' + (i < 10 ?
+ '0' + i : i)
+ // 是否今天
+ let isDay = fullDate === nowDate
+ // 获取打点信息
+ let info = this.selected && this.selected.find((item) => {
+ if (this.dateEqual(nowDate, item.date)) {
+ return item
+ }
+ })
+
+ // 日期禁用
+ let disableBefore = true
+ let disableAfter = true
+ if (this.startDate) {
+ let dateCompBefore = this.dateCompare(this.startDate, fullDate)
+ disableBefore = this.dateCompare(dateCompBefore ? this.startDate : fullDate, nowDate)
+ }
+
+ if (this.endDate) {
+ let dateCompAfter = this.dateCompare(fullDate, this.endDate)
+ disableAfter = this.dateCompare(nowDate, dateCompAfter ? this.endDate : fullDate)
+ }
+ let multiples = this.multipleStatus.data
+ let checked = false
+ let multiplesStatus = -1
+ if (this.range) {
+ if (multiples) {
+ multiplesStatus = multiples.findIndex((item) => {
+ return this.dateEqual(item, nowDate)
+ })
+ }
+ if (multiplesStatus !== -1) {
+ checked = true
+ }
+ }
+ let data = {
+ fullDate: nowDate,
+ year: full.year,
+ date: i,
+ multiple: this.range ? checked : false,
+ beforeMultiple: this.dateEqual(this.multipleStatus.before, nowDate),
+ afterMultiple: this.dateEqual(this.multipleStatus.after, nowDate),
+ month: full.month,
+ lunar: this.getlunar(full.year, full.month, i),
+ disable: !disableBefore || !disableAfter,
+ isDay
+ }
+ if (info) {
+ data.extraInfo = info
+ }
+
+ dateArr.push(data)
+ }
+ return dateArr
+ }
+ /**
+ * 获取下月天数
+ */
+ _getNextMonthDays(surplus, full) {
+ let dateArr = []
+ for (let i = 1; i < surplus + 1; i++) {
+ dateArr.push({
+ date: i,
+ month: Number(full.month) + 1,
+ lunar: this.getlunar(full.year, Number(full.month) + 1, i),
+ disable: true
+ })
+ }
+ return dateArr
+ }
+
+ /**
+ * 获取当前日期详情
+ * @param {Object} date
+ */
+ getInfo(date) {
+ if (!date) {
+ date = new Date()
+ }
+ const dateInfo = this.canlender.find(item => item.fullDate === this.getDate(date).fullDate)
+ return dateInfo
+ }
+
+ /**
+ * 比较时间大小
+ */
+ dateCompare(startDate, endDate) {
+ // 计算截止时间
+ startDate = new Date(startDate.replace('-', '/').replace('-', '/'))
+ // 计算详细项的截止时间
+ endDate = new Date(endDate.replace('-', '/').replace('-', '/'))
+ if (startDate <= endDate) {
+ return true
+ } else {
+ return false
+ }
+ }
+
+ /**
+ * 比较时间是否相等
+ */
+ dateEqual(before, after) {
+ // 计算截止时间
+ before = new Date(before.replace('-', '/').replace('-', '/'))
+ // 计算详细项的截止时间
+ after = new Date(after.replace('-', '/').replace('-', '/'))
+ if (before.getTime() - after.getTime() === 0) {
+ return true
+ } else {
+ return false
+ }
+ }
+
+
+ /**
+ * 获取日期范围内所有日期
+ * @param {Object} begin
+ * @param {Object} end
+ */
+ geDateAll(begin, end) {
+ var arr = []
+ var ab = begin.split('-')
+ var ae = end.split('-')
+ var db = new Date()
+ db.setFullYear(ab[0], ab[1] - 1, ab[2])
+ var de = new Date()
+ de.setFullYear(ae[0], ae[1] - 1, ae[2])
+ var unixDb = db.getTime() - 24 * 60 * 60 * 1000
+ var unixDe = de.getTime() - 24 * 60 * 60 * 1000
+ for (var k = unixDb; k <= unixDe;) {
+ k = k + 24 * 60 * 60 * 1000
+ arr.push(this.getDate(new Date(parseInt(k))).fullDate)
+ }
+ return arr
+ }
+ /**
+ * 计算阴历日期显示
+ */
+ getlunar(year, month, date) {
+ return CALENDAR.solar2lunar(year, month, date)
+ }
+ /**
+ * 设置打点
+ */
+ setSelectInfo(data, value) {
+ this.selected = value
+ this._getWeek(data)
+ }
+
+ /**
+ * 获取多选状态
+ */
+ setMultiple(fullDate) {
+ let {
+ before,
+ after
+ } = this.multipleStatus
+
+ if (!this.range) return
+ if (before && after) {
+ this.multipleStatus.before = ''
+ this.multipleStatus.after = ''
+ this.multipleStatus.data = []
+ } else {
+ if (!before) {
+ this.multipleStatus.before = fullDate
+ } else {
+ this.multipleStatus.after = fullDate
+ if (this.dateCompare(this.multipleStatus.before, this.multipleStatus.after)) {
+ this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus.after);
+ } else {
+ this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus.before);
+ }
+ }
+ }
+ this._getWeek(fullDate)
+ }
+
+ /**
+ * 获取每周数据
+ * @param {Object} dateData
+ */
+ _getWeek(dateData) {
+ const {
+ fullDate,
+ year,
+ month,
+ date,
+ day
+ } = this.getDate(dateData)
+ let firstDay = new Date(year, month - 1, 1).getDay()
+ let currentDay = new Date(year, month, 0).getDate()
+ let dates = {
+ lastMonthDays: this._getLastMonthDays(firstDay, this.getDate(dateData)), // 上个月末尾几天
+ currentMonthDys: this._currentMonthDys(currentDay, this.getDate(dateData)), // 本月天数
+ nextMonthDays: [], // 下个月开始几天
+ weeks: []
+ }
+ let canlender = []
+ const surplus = 42 - (dates.lastMonthDays.length + dates.currentMonthDys.length)
+ dates.nextMonthDays = this._getNextMonthDays(surplus, this.getDate(dateData))
+ canlender = canlender.concat(dates.lastMonthDays, dates.currentMonthDys, dates.nextMonthDays)
+ let weeks = {}
+ // 拼接数组 上个月开始几天 + 本月天数+ 下个月开始几天
+ for (let i = 0; i < canlender.length; i++) {
+ if (i % 7 === 0) {
+ weeks[parseInt(i / 7)] = new Array(7)
+ }
+ weeks[parseInt(i / 7)][i % 7] = canlender[i]
+ }
+ this.canlender = canlender
+ this.weeks = weeks
+ }
+
+ //静态方法
+ // static init(date) {
+ // if (!this.instance) {
+ // this.instance = new Calendar(date);
+ // }
+ // return this.instance;
+ // }
+}
+
+
+export default Calendar
diff --git a/barter-app-main/barter-app/uni_modules/uni-calendar/package.json b/barter-app-main/barter-app/uni_modules/uni-calendar/package.json
new file mode 100644
index 0000000..8a5023b
--- /dev/null
+++ b/barter-app-main/barter-app/uni_modules/uni-calendar/package.json
@@ -0,0 +1,88 @@
+{
+ "id": "uni-calendar",
+ "displayName": "uni-calendar 日历",
+ "version": "1.4.2",
+ "description": "日历组件",
+ "keywords": [
+ "uni-ui",
+ "uniui",
+ "日历",
+ "",
+ "打卡",
+ "日历选择"
+],
+ "repository": "https://github.com/dcloudio/uni-ui",
+ "engines": {
+ "HBuilderX": ""
+ },
+ "directories": {
+ "example": "../../temps/example_temps"
+ },
+ "dcloudext": {
+ "category": [
+ "前端组件",
+ "通用组件"
+ ],
+ "sale": {
+ "regular": {
+ "price": "0.00"
+ },
+ "sourcecode": {
+ "price": "0.00"
+ }
+ },
+ "contact": {
+ "qq": ""
+ },
+ "declaration": {
+ "ads": "无",
+ "data": "无",
+ "permissions": "无"
+ },
+ "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
+ },
+ "uni_modules": {
+ "dependencies": [],
+ "encrypt": [],
+ "platforms": {
+ "cloud": {
+ "tcb": "y",
+ "aliyun": "y"
+ },
+ "client": {
+ "App": {
+ "app-vue": "y",
+ "app-nvue": "y"
+ },
+ "H5-mobile": {
+ "Safari": "y",
+ "Android Browser": "y",
+ "微信浏览器(Android)": "y",
+ "QQ浏览器(Android)": "y"
+ },
+ "H5-pc": {
+ "Chrome": "y",
+ "IE": "y",
+ "Edge": "y",
+ "Firefox": "y",
+ "Safari": "y"
+ },
+ "小程序": {
+ "微信": "y",
+ "阿里": "y",
+ "百度": "y",
+ "字节跳动": "y",
+ "QQ": "y"
+ },
+ "快应用": {
+ "华为": "u",
+ "联盟": "u"
+ },
+ "Vue": {
+ "vue2": "y",
+ "vue3": "u"
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/barter-app-main/barter-app/uni_modules/uni-calendar/readme.md b/barter-app-main/barter-app/uni_modules/uni-calendar/readme.md
new file mode 100644
index 0000000..4f3ca0e
--- /dev/null
+++ b/barter-app-main/barter-app/uni_modules/uni-calendar/readme.md
@@ -0,0 +1,103 @@
+
+
+## Calendar 日历
+> **组件名:uni-calendar**
+> 代码块: `uCalendar`
+
+
+日历组件
+
+> **注意事项**
+> 为了避免错误使用,给大家带来不好的开发体验,请在使用组件前仔细阅读下面的注意事项,可以帮你避免一些错误。
+> - 本组件农历转换使用的js是 [@1900-2100区间内的公历、农历互转](https://github.com/jjonline/calendar.js)
+> - 仅支持自定义组件模式
+> - `date`属性传入的应该是一个 String ,如: 2019-06-27 ,而不是 new Date()
+> - 通过 `insert` 属性来确定当前的事件是 @change 还是 @confirm 。理应合并为一个事件,但是为了区分模式,现使用两个事件,这里需要注意
+> - 弹窗模式下无法阻止后面的元素滚动,如有需要阻止,请在弹窗弹出后,手动设置滚动元素为不可滚动
+
+
+### 安装方式
+
+本组件符合[easycom](https://uniapp.dcloud.io/collocation/pages?id=easycom)规范,`HBuilderX 2.5.5`起,只需将本组件导入项目,在页面`template`中即可直接使用,无需在页面中`import`和注册`components`。
+
+如需通过`npm`方式使用`uni-ui`组件,另见文档:[https://ext.dcloud.net.cn/plugin?id=55](https://ext.dcloud.net.cn/plugin?id=55)
+
+### 基本用法
+
+在 ``template`` 中使用组件
+
+```html
+
+
+
+```
+
+### 通过方法打开日历
+
+需要设置 `insert` 为 `false`
+
+```html
+
+
+
+
+```
+
+```javascript
+
+export default {
+ data() {
+ return {};
+ },
+ methods: {
+ open(){
+ this.$refs.calendar.open();
+ },
+ confirm(e) {
+ console.log(e);
+ }
+ }
+};
+
+```
+
+
+## API
+
+### Calendar Props
+
+| 属性名 | 类型 | 默认值| 说明 |
+| | |
+| date | String |- | 自定义当前时间,默认为今天 |
+| lunar | Boolean | false | 显示农历 |
+| startDate | String |- | 日期选择范围-开始日期 |
+| endDate | String |- | 日期选择范围-结束日期 |
+| range | Boolean | false | 范围选择 |
+| insert | Boolean | false | 插入模式,可选值,ture:插入模式;false:弹窗模式;默认为插入模式 |
+|clearDate |Boolean |true |弹窗模式是否清空上次选择内容 |
+| selected | Array |- | 打点,期待格式[{date: '2019-06-27', info: '签到', data: { custom: '自定义信息', name: '自定义消息头',xxx:xxx... }}] |
+|showMonth | Boolean | true | 是否显示月份为背景 |
+
+### Calendar Events
+
+| 事件名 | 说明 |返回值|
+| | | |
+| open | 弹出日历组件,`insert :false` 时生效|- |
+
+
+
+
+
+## 组件示例
+
+点击查看:[https://hellouniapp.dcloud.net.cn/pages/extUI/calendar/calendar](https://hellouniapp.dcloud.net.cn/pages/extUI/calendar/calendar)
\ No newline at end of file
diff --git a/barter-app-main/barter-app/uni_modules/uni-collapse/changelog.md b/barter-app-main/barter-app/uni_modules/uni-collapse/changelog.md
new file mode 100644
index 0000000..9fb4b5c
--- /dev/null
+++ b/barter-app-main/barter-app/uni_modules/uni-collapse/changelog.md
@@ -0,0 +1,27 @@
+## 1.3.3(2021-08-17)
+- 优化 show-arrow 属性默认为true
+## 1.3.2(2021-08-17)
+- 新增 show-arrow 属性,控制是否显示右侧箭头
+## 1.3.1(2021-07-30)
+- 优化 vue3下小程序事件警告的问题
+## 1.3.0(2021-07-30)
+- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834)
+## 1.2.2(2021-07-21)
+- 修复 由1.2.0版本引起的 change 事件返回 undefined 的Bug
+## 1.2.1(2021-07-21)
+- 优化 组件示例
+## 1.2.0(2021-07-21)
+- 新增 组件折叠动画
+- 新增 value\v-model 属性 ,动态修改面板折叠状态
+- 新增 title 插槽 ,可定义面板标题
+- 新增 border 属性 ,显示隐藏面板内容分隔线
+- 新增 title-border 属性 ,显示隐藏面板标题分隔线
+- 修复 resize 方法失效的Bug
+- 修复 change 事件返回参数不正确的Bug
+- 优化 H5、App 平台自动更具内容更新高度,无需调用 reszie() 方法
+## 1.1.7(2021-05-12)
+- 新增 组件示例地址
+## 1.1.6(2021-02-05)
+- 优化 组件引用关系,通过uni_modules引用组件
+## 1.1.5(2021-02-05)
+- 调整为uni_modules目录规范
\ No newline at end of file
diff --git a/barter-app-main/barter-app/uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item.vue b/barter-app-main/barter-app/uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item.vue
new file mode 100644
index 0000000..e962a9f
--- /dev/null
+++ b/barter-app-main/barter-app/uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item.vue
@@ -0,0 +1,402 @@
+
+
+
+
+
+
+
+
+ {{ title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/uni_modules/uni-collapse/components/uni-collapse/uni-collapse.vue b/barter-app-main/barter-app/uni_modules/uni-collapse/components/uni-collapse/uni-collapse.vue
new file mode 100644
index 0000000..b7360d4
--- /dev/null
+++ b/barter-app-main/barter-app/uni_modules/uni-collapse/components/uni-collapse/uni-collapse.vue
@@ -0,0 +1,146 @@
+
+
+
+
+
+
+
diff --git a/barter-app-main/barter-app/uni_modules/uni-collapse/package.json b/barter-app-main/barter-app/uni_modules/uni-collapse/package.json
new file mode 100644
index 0000000..965814f
--- /dev/null
+++ b/barter-app-main/barter-app/uni_modules/uni-collapse/package.json
@@ -0,0 +1,88 @@
+{
+ "id": "uni-collapse",
+ "displayName": "uni-collapse 折叠面板",
+ "version": "1.3.3",
+ "description": "Collapse 组件,可以折叠 / 展开的内容区域。",
+ "keywords": [
+ "uni-ui",
+ "折叠",
+ "折叠面板",
+ "手风琴"
+],
+ "repository": "https://github.com/dcloudio/uni-ui",
+ "engines": {
+ "HBuilderX": ""
+ },
+ "directories": {
+ "example": "../../temps/example_temps"
+ },
+ "dcloudext": {
+ "category": [
+ "前端组件",
+ "通用组件"
+ ],
+ "sale": {
+ "regular": {
+ "price": "0.00"
+ },
+ "sourcecode": {
+ "price": "0.00"
+ }
+ },
+ "contact": {
+ "qq": ""
+ },
+ "declaration": {
+ "ads": "无",
+ "data": "无",
+ "permissions": "无"
+ },
+ "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
+ },
+ "uni_modules": {
+ "dependencies": [
+ "uni-icons"
+ ],
+ "encrypt": [],
+ "platforms": {
+ "cloud": {
+ "tcb": "y",
+ "aliyun": "y"
+ },
+ "client": {
+ "App": {
+ "app-vue": "y",
+ "app-nvue": "y"
+ },
+ "H5-mobile": {
+ "Safari": "y",
+ "Android Browser": "y",
+ "微信浏览器(Android)": "y",
+ "QQ浏览器(Android)": "y"
+ },
+ "H5-pc": {
+ "Chrome": "y",
+ "IE": "y",
+ "Edge": "y",
+ "Firefox": "y",
+ "Safari": "y"
+ },
+ "小程序": {
+ "微信": "y",
+ "阿里": "y",
+ "百度": "y",
+ "字节跳动": "y",
+ "QQ": "y"
+ },
+ "快应用": {
+ "华为": "u",
+ "联盟": "u"
+ },
+ "Vue": {
+ "vue2": "y",
+ "vue3": "u"
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/barter-app-main/barter-app/uni_modules/uni-collapse/readme.md b/barter-app-main/barter-app/uni_modules/uni-collapse/readme.md
new file mode 100644
index 0000000..12e872f
--- /dev/null
+++ b/barter-app-main/barter-app/uni_modules/uni-collapse/readme.md
@@ -0,0 +1,276 @@
+
+
+## Collapse 折叠面板
+> **组件名:uni-collapse**
+> 代码块: `uCollapse`
+> 关联组件:`uni-collapse-item`、`uni-icons`。
+
+
+折叠面板用来折叠/显示过长的内容或者是列表。通常是在多内容分类项使用,折叠不重要的内容,显示重要内容。点击可以展开折叠部分。
+
+> **注意事项**
+> 为了避免错误使用,给大家带来不好的开发体验,请在使用组件前仔细阅读下面的注意事项,可以帮你避免一些错误。
+> - 组件需要依赖 `sass` 插件 ,请自行手动安装
+> - `App` 端默认关闭组件动画 ,因为 `height` 动画开销比较大,会导致页面卡顿,请酌情使用动画
+> - 如在使用组件过程从发现卡顿严重,请尝试停用组件动画,问题原因如上
+> - 在小程序端组件内容发生变化,需要手动调用 resize() 方法,手动更新几点信息,避免出现内容错位
+> - 如需自定义组件默认边框颜色等,请使用插槽自定义内容并合理使用 `border ` 和 `title-border` 属性
+> - 折叠面板仅支持嵌套使用,请勿单独使用
+> - 组件支持 nvue ,需要在 `manifest.json > app-plus` 节点下配置 `"nvueStyleCompiler" : "uni-app"`
+> - 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839
+
+
+### 安装方式
+
+本组件符合[easycom](https://uniapp.dcloud.io/collocation/pages?id=easycom)规范,`HBuilderX 2.5.5`起,只需将本组件导入项目,在页面`template`中即可直接使用,无需在页面中`import`和注册`components`。
+
+如需通过`npm`方式使用`uni-ui`组件,另见文档:[https://ext.dcloud.net.cn/plugin?id=55](https://ext.dcloud.net.cn/plugin?id=55)
+
+
+### 基本用法
+
+使用 `title` 属性指定面板显示内容
+
+使用 `open` 属性默认打开当前面板
+
+使用 `disabled` 属性禁用面板
+
+
+```html
+
+
+ 折叠内容
+
+
+ 折叠内容
+
+
+ 折叠内容
+
+
+```
+
+### 手风琴效果
+
+使用 `accordion` 属性,可以仅打开一个面板并关闭其他已经打开的面板,效果类似手风琴
+
+设置 `accordion` 属性时,`open` 属性则生效在最后一个组件
+
+```html
+
+
+ 折叠内容
+
+
+ 折叠内容
+
+
+ 折叠内容
+
+
+```
+
+### 动态设置折叠面板打开状态
+
+使用 `v-model` 属性,动态设置面板的显示状态
+
+使用 `name` 属性设置每个面板的唯一标识,如不设置使用默认索引,从字符串 `"0"` 开始记数
+
+**注意**
+
+- 如果 `accordion` 属性为 `true` 则 `v-model` 类型为 `String`
+- 如果 `accordion` 属性为 `false` 则 `v-model` 类型为 `Array`
+- 请注意 `v-model` 属性与 `open` 属性请勿一起使用 ,建议只使用 `v-model`
+
+```html
+
+
+ 折叠内容
+
+
+ 折叠内容
+
+
+ 折叠内容
+
+
+```
+
+```javascript
+export default {
+ data(){
+ return {
+ value:['key1','key2'],
+ // 如果设置了 accordion 属性,则使用 string 类型
+ // value:'key1'
+ }
+ }
+}
+```
+
+### 使用动画
+
+使用 `show-animation` 属性开启或关闭面板折叠动画,默认动画开启
+
+**注意**
+
+- `App` 端默认关闭组件动画 ,因为 height 动画开销比较大,会导致页面卡顿,请酌情使用动画,如出现明显卡顿,尝试关闭动画
+
+
+```html
+
+
+ 折叠内容
+
+
+ 折叠内容
+
+
+ 折叠内容
+
+
+```
+
+### 配置图片
+
+使用 `thumb` 配置图片地址, 可在面板左侧显示一个图片
+
+如需显示更多内容,如图标等,请见下方自定义插槽的说明
+
+```html
+
+
+
+ 折叠内容主体,可自定义内容及样式
+
+
+
+```
+
+### 自定义插槽
+
+如果需要自定义面板显示,可以使用 `title` 插槽达成完全自定义。下面是一个使用 `uni-list` 的列表示例,需要引入 `uni-list` 组件
+
+```html
+
+
+
+
+
+
+
+
+
+
+ 折叠内容主体,可自定义内容及样式
+
+
+
+```
+
+**注意**
+
+- 在折叠面板组件中使用list时,在 App-Nvue 下请勿单独使用 uni-list-item,会导致组件无法正常显示,其他平台不做限制
+- 在默认插槽里使用 uni-list 组件与上方示例一样,直接写在默认插槽里即可
+
+## API
+
+### Collapse Props
+
+|属性名|类型|默认值|说明|
+|:-:|:-:|:-:|:-:|
+|value/v-model|String/Array|-|当前激活面板改变时触发(如果是手风琴模式,参数类型为string,否则为array)|
+|accordion|Boolean|false|是否开启手风琴效果 |
+
+### Collapse Event
+
+|事件称名|说明|返回值|
+|:-:|:-:|:-:|
+|@change|切换面板时触发 |切换面板时触发,如果是手风琴模式,返回类型为string,否则为array|
+
+### Collapse Methods
+
+|方法名称|说明|
+|:-:|:-:|
+|resize |更新当前列表高度|
+
+> **提示**
+> - resize 方法解决动态添加数据,带动画的折叠面板高度不更新的问题
+> - 需要在数据渲染完毕之后使用 `resize` 方法。推荐在 `this.$nextTick()` 中使用
+> - 当前只有小程序端需要调用此方法,H5\App 端已经做了处理,不需要手动更新高度
+> ```html
+>
+>
+>
+>
+> {{content}}
+>
+>
+>
+>
+> 折叠内容主体,这是一段比较长内容。默认折叠主要内容,只显示当前项标题。点击标题展开,才能看到这段文字。再次点击标题,折叠内容。
+>
+>
+>
+>
+>
+> ```
+> ```javascript
+> export default {
+> data() {
+> return {
+> value:['0'],
+> content: '折叠内容主体,可自定义内容及样式,点击按钮修改内容使高度发生变化。',
+> }
+> },
+> methods: {
+> add() {
+> if (this.content.length > 35) {
+> this.content = '折叠内容主体,可自定义内容及样式,点击按钮修改内容使高度发生变化。'
+> } else {
+> this.content = '折叠内容主体,这是一段比较长内容。通过点击按钮修改后内容后,使组件高度发生变化,在次点击按钮恢复之前的内容和高度。'
+> }
+> // TODO 小程序中不支持自动更新 ,需要手动resize 更新组件高度
+> // #ifdef MP
+> this.$nextTick(() => {
+> this.$refs.collapse.resize()
+> })
+> // #endif
+> }
+> }
+> }
+> ```
+
+
+### CollapseItem Props
+
+|属性名|类型|默认值|说明|
+|:-:|:-:|:-:|:-:|
+|title|String|-|标题文字|
+|thumb|String|-|标题左侧缩略图|
+|disabled|Boolean|false|是否禁用|
+|open|Boolean|false|是否展开面板|
+|show-animation|Boolean|false|开启动画|
+|border|Boolean|true|折叠面板内容分隔线|
+|title-border|String|auto|折叠面板标题分隔线可选值见下方 **TitleBorder Params**|
+|show-arrow|Boolean|true|是否显示右侧箭头|
+
+#### TitleBorder Params
+
+|参数名|说明|
+|:-:|:-:|
+|auto|分隔线自动显示|
+|none|不显示分隔线|
+|show|一直显示分隔线|
+
+### Collapse Slots
+
+|插槽名|说明|
+|:-:| :-:|
+|default|默认插槽|
+|title|面板标题插槽,如使用此插槽禁用样式效果将失效|
+
+## 组件示例
+
+点击查看:[https://hellouniapp.dcloud.net.cn/pages/extUI/collapse/collapse](https://hellouniapp.dcloud.net.cn/pages/extUI/collapse/collapse)
\ No newline at end of file
diff --git a/barter-app-main/barter-app/uni_modules/uni-config-center/changelog.md b/barter-app-main/barter-app/uni_modules/uni-config-center/changelog.md
new file mode 100644
index 0000000..4d2eb92
--- /dev/null
+++ b/barter-app-main/barter-app/uni_modules/uni-config-center/changelog.md
@@ -0,0 +1,4 @@
+## 0.0.2(2021-04-16)
+- 修改插件package信息
+## 0.0.1(2021-03-15)
+- 初始化项目
diff --git a/barter-app-main/barter-app/uni_modules/uni-config-center/package.json b/barter-app-main/barter-app/uni_modules/uni-config-center/package.json
new file mode 100644
index 0000000..c5dec93
--- /dev/null
+++ b/barter-app-main/barter-app/uni_modules/uni-config-center/package.json
@@ -0,0 +1,80 @@
+{
+ "id": "uni-config-center",
+ "displayName": "uni-config-center",
+ "version": "0.0.2",
+ "description": "uniCloud 配置中心",
+ "keywords": [
+ "配置",
+ "配置中心"
+],
+ "repository": "",
+ "engines": {
+ "HBuilderX": "^3.1.0"
+ },
+ "dcloudext": {
+ "category": [
+ "uniCloud",
+ "云函数模板"
+ ],
+ "sale": {
+ "regular": {
+ "price": "0.00"
+ },
+ "sourcecode": {
+ "price": "0.00"
+ }
+ },
+ "contact": {
+ "qq": ""
+ },
+ "declaration": {
+ "ads": "无",
+ "data": "无",
+ "permissions": "无"
+ },
+ "npmurl": ""
+ },
+ "directories": {
+ "example": "../../../scripts/dist"
+ },
+ "uni_modules": {
+ "dependencies": [],
+ "encrypt": [],
+ "platforms": {
+ "cloud": {
+ "tcb": "y",
+ "aliyun": "y"
+ },
+ "client": {
+ "App": {
+ "app-vue": "u",
+ "app-nvue": "u"
+ },
+ "H5-mobile": {
+ "Safari": "u",
+ "Android Browser": "u",
+ "微信浏览器(Android)": "u",
+ "QQ浏览器(Android)": "u"
+ },
+ "H5-pc": {
+ "Chrome": "u",
+ "IE": "u",
+ "Edge": "u",
+ "Firefox": "u",
+ "Safari": "u"
+ },
+ "小程序": {
+ "微信": "u",
+ "阿里": "u",
+ "百度": "u",
+ "字节跳动": "u",
+ "QQ": "u"
+ },
+ "快应用": {
+ "华为": "u",
+ "联盟": "u"
+ }
+ }
+ }
+ }
+}
diff --git a/barter-app-main/barter-app/uni_modules/uni-config-center/readme.md b/barter-app-main/barter-app/uni_modules/uni-config-center/readme.md
new file mode 100644
index 0000000..03f7fc2
--- /dev/null
+++ b/barter-app-main/barter-app/uni_modules/uni-config-center/readme.md
@@ -0,0 +1,93 @@
+# 为什么使用uni-config-center
+
+实际开发中很多插件需要配置文件才可以正常运行,如果每个插件都单独进行配置的话就会产生下面这样的目录结构
+
+```bash
+cloudfunctions
+└─────common 公共模块
+ ├─plugin-a // 插件A对应的目录
+ │ ├─index.js
+ │ ├─config.json // plugin-a对应的配置文件
+ │ └─other-file.cert // plugin-a依赖的其他文件
+ └─plugin-b // plugin-b对应的目录
+ ├─index.js
+ └─config.json // plugin-b对应的配置文件
+```
+
+假设插件作者要发布一个项目模板,里面使用了很多需要配置的插件,无论是作者发布还是用户使用都是一个大麻烦。
+
+uni-config-center就是用了统一管理这些配置文件的,使用uni-config-center后的目录结构如下
+
+```bash
+cloudfunctions
+└─────common 公共模块
+ ├─plugin-a // 插件A对应的目录
+ │ └─index.js
+ ├─plugin-b // plugin-b对应的目录
+ │ └─index.js
+ └─uni-config-center
+ ├─index.js // config-center入口文件
+ ├─plugin-a
+ │ ├─config.json // plugin-a对应的配置文件
+ │ └─other-file.cert // plugin-a依赖的其他文件
+ └─plugin-b
+ └─config.json // plugin-b对应的配置文件
+```
+
+使用uni-config-center后的优势
+
+- 配置文件统一管理,分离插件主体和配置信息,更新插件更方便
+- 支持对config.json设置schema,插件使用者在HBuilderX内编写config.json文件时会有更好的提示(后续HBuilderX会提供支持)
+
+# 用法
+
+在要使用uni-config-center的公共模块或云函数内引入uni-config-center依赖,请参考:[使用公共模块](https://uniapp.dcloud.net.cn/uniCloud/cf-common)
+
+```js
+const createConfig = require('uni-config-center')
+
+const uniIdConfig = createConfig({
+ pluginId: 'uni-id', // 插件id
+ defaultConfig: { // 默认配置
+ tokenExpiresIn: 7200,
+ tokenExpiresThreshold: 600,
+ },
+ customMerge: function(defaultConfig, userConfig) { // 自定义默认配置和用户配置的合并规则,不设置的情况侠会对默认配置和用户配置进行深度合并
+ // defaudltConfig 默认配置
+ // userConfig 用户配置
+ return Object.assign(defaultConfig, userConfig)
+ }
+})
+
+
+// 以如下配置为例
+// {
+// "tokenExpiresIn": 7200,
+// "passwordErrorLimit": 6,
+// "bindTokenToDevice": false,
+// "passwordErrorRetryTime": 3600,
+// "app-plus": {
+// "tokenExpiresIn": 2592000
+// },
+// "service": {
+// "sms": {
+// "codeExpiresIn": 300
+// }
+// }
+// }
+
+// 获取配置
+uniIdConfig.config() // 获取全部配置,注意:uni-config-center内不存在对应插件目录时会返回空对象
+uniIdConfig.config('tokenExpiresIn') // 指定键值获取配置,返回:7200
+uniIdConfig.config('service.sms.codeExpiresIn') // 指定键值获取配置,返回:300
+uniIdConfig.config('tokenExpiresThreshold', 600) // 指定键值获取配置,如果不存在则取传入的默认值,返回:600
+
+// 获取文件绝对路径
+uniIdConfig.resolve('custom-token.js') // 获取uni-config-center/uni-id/custom-token.js文件的路径
+
+// 引用文件(require)
+uniIDConfig.requireFile('custom-token.js') // 使用require方式引用uni-config-center/uni-id/custom-token.js文件。文件不存在时返回undefined,文件内有其他错误导致require失败时会抛出错误。
+
+// 判断是否包含某文件
+uniIDConfig.hasFile('custom-token.js') // 配置目录是否包含某文件,true: 文件存在,false: 文件不存在
+```
\ No newline at end of file
diff --git a/barter-app-main/barter-app/uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/index.js b/barter-app-main/barter-app/uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/index.js
new file mode 100644
index 0000000..e14fb3b
--- /dev/null
+++ b/barter-app-main/barter-app/uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/index.js
@@ -0,0 +1 @@
+"use strict";var t=require("fs"),r=require("path");function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=e(t),o=e(r),i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var u=function(t){var r={exports:{}};return t(r,r.exports),r.exports}((function(t,r){var e="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",u="[object Function]",c="[object Object]",a=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s[o]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s[u]=s["[object Map]"]=s["[object Number]"]=s[c]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1;var l="object"==typeof i&&i&&i.Object===Object&&i,h="object"==typeof self&&self&&self.Object===Object&&self,p=l||h||Function("return this")(),_=r&&!r.nodeType&&r,v=_&&t&&!t.nodeType&&t,d=v&&v.exports===_,y=d&&l.process,g=function(){try{var t=v&&v.require&&v.require("util").types;return t||y&&y.binding&&y.binding("util")}catch(t){}}(),b=g&&g.isTypedArray;function j(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)}var w,O,m,A=Array.prototype,z=Function.prototype,M=Object.prototype,x=p["__core-js_shared__"],C=z.toString,F=M.hasOwnProperty,U=(w=/[^.]+$/.exec(x&&x.keys&&x.keys.IE_PROTO||""))?"Symbol(src)_1."+w:"",S=M.toString,I=C.call(Object),P=RegExp("^"+C.call(F).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),T=d?p.Buffer:void 0,q=p.Symbol,E=p.Uint8Array,$=T?T.allocUnsafe:void 0,D=(O=Object.getPrototypeOf,m=Object,function(t){return O(m(t))}),k=Object.create,B=M.propertyIsEnumerable,N=A.splice,L=q?q.toStringTag:void 0,R=function(){try{var t=_t(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),G=T?T.isBuffer:void 0,V=Math.max,W=Date.now,H=_t(p,"Map"),J=_t(Object,"create"),K=function(){function t(){}return function(r){if(!Mt(r))return{};if(k)return k(r);t.prototype=r;var e=new t;return t.prototype=void 0,e}}();function Q(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r-1},X.prototype.set=function(t,r){var e=this.__data__,n=nt(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this},Y.prototype.clear=function(){this.size=0,this.__data__={hash:new Q,map:new(H||X),string:new Q}},Y.prototype.delete=function(t){var r=pt(this,t).delete(t);return this.size-=r?1:0,r},Y.prototype.get=function(t){return pt(this,t).get(t)},Y.prototype.has=function(t){return pt(this,t).has(t)},Y.prototype.set=function(t,r){var e=pt(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this},Z.prototype.clear=function(){this.__data__=new X,this.size=0},Z.prototype.delete=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e},Z.prototype.get=function(t){return this.__data__.get(t)},Z.prototype.has=function(t){return this.__data__.has(t)},Z.prototype.set=function(t,r){var e=this.__data__;if(e instanceof X){var n=e.__data__;if(!H||n.length<199)return n.push([t,r]),this.size=++e.size,this;e=this.__data__=new Y(n)}return e.set(t,r),this.size=e.size,this};var it,ut=function(t,r,e){for(var n=-1,o=Object(t),i=e(t),u=i.length;u--;){var c=i[it?u:++n];if(!1===r(o[c],c,o))break}return t};function ct(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":L&&L in Object(t)?function(t){var r=F.call(t,L),e=t[L];try{t[L]=void 0;var n=!0}catch(t){}var o=S.call(t);n&&(r?t[L]=e:delete t[L]);return o}(t):function(t){return S.call(t)}(t)}function at(t){return xt(t)&&ct(t)==o}function ft(t){return!(!Mt(t)||function(t){return!!U&&U in t}(t))&&(At(t)?P:a).test(function(t){if(null!=t){try{return C.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function st(t){if(!Mt(t))return function(t){var r=[];if(null!=t)for(var e in Object(t))r.push(e);return r}(t);var r=dt(t),e=[];for(var n in t)("constructor"!=n||!r&&F.call(t,n))&&e.push(n);return e}function lt(t,r,e,n,o){t!==r&&ut(r,(function(i,u){if(o||(o=new Z),Mt(i))!function(t,r,e,n,o,i,u){var a=yt(t,e),f=yt(r,e),s=u.get(f);if(s)return void rt(t,e,s);var l=i?i(a,f,e+"",t,r,u):void 0,h=void 0===l;if(h){var p=wt(f),_=!p&&mt(f),v=!p&&!_&&Ct(f);l=f,p||_||v?wt(a)?l=a:xt(j=a)&&Ot(j)?l=function(t,r){var e=-1,n=t.length;r||(r=Array(n));for(;++e-1&&t%1==0&&t0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}(R?function(t,r){return R(t,"toString",{configurable:!0,enumerable:!1,value:(e=r,function(){return e}),writable:!0});var e}:It);function bt(t,r){return t===r||t!=t&&r!=r}var jt=at(function(){return arguments}())?at:function(t){return xt(t)&&F.call(t,"callee")&&!B.call(t,"callee")},wt=Array.isArray;function Ot(t){return null!=t&&zt(t.length)&&!At(t)}var mt=G||function(){return!1};function At(t){if(!Mt(t))return!1;var r=ct(t);return r==u||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}function zt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}function Mt(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}function xt(t){return null!=t&&"object"==typeof t}var Ct=b?function(t){return function(r){return t(r)}}(b):function(t){return xt(t)&&zt(t.length)&&!!s[ct(t)]};function Ft(t){return Ot(t)?tt(t,!0):st(t)}var Ut,St=(Ut=function(t,r,e){lt(t,r,e)},ht((function(t,r){var e=-1,n=r.length,o=n>1?r[n-1]:void 0,i=n>2?r[2]:void 0;for(o=Ut.length>3&&"function"==typeof o?(n--,o):void 0,i&&function(t,r,e){if(!Mt(e))return!1;var n=typeof r;return!!("number"==n?Ot(e)&&vt(r,e.length):"string"==n&&r in e)&&bt(e[r],t)}(r[0],r[1],i)&&(o=n<3?void 0:o,n=1),t=Object(t);++ec.call(t,r);class f{constructor({pluginId:t,defaultConfig:r={},customMerge:e,root:n}){this.pluginId=t,this.defaultConfig=r,this.pluginConfigPath=o.default.resolve(n||__dirname,t),this.customMerge=e,this._config=void 0}resolve(t){return o.default.resolve(this.pluginConfigPath,t)}hasFile(t){return n.default.existsSync(this.resolve(t))}requireFile(t){try{return require(this.resolve(t))}catch(t){if("MODULE_NOT_FOUND"===t.code)return;throw t}}_getUserConfig(){return this.requireFile("config.json")}config(t,r){this._config||(this._config=(this.customMerge||u)(this.defaultConfig,this._getUserConfig()));let e=this._config;return t?function(t,r,e){if("number"==typeof r)return t[r];if("symbol"==typeof r)return a(t,r)?t[r]:e;const n="string"!=typeof(o=r)?o:o.split(".").reduce(((t,r)=>(r.split(/\[([^}]+)\]/g).forEach((r=>r&&t.push(r))),t)),[]);var o;let i=t;for(let t=0;t
+ {{icons[type]}}
+