stanley-king 4 yıl önce
ebeveyn
işleme
587a04001a
100 değiştirilmiş dosya ile 12093 ekleme ve 0 silme
  1. 19 0
      Dockerfile
  2. 1 0
      HEAD
  3. 21 0
      README.md
  4. 14 0
      babel.config.js
  5. 6 0
      config
  6. 1 0
      description
  7. 1 0
      dump.rdb
  8. 15 0
      hooks/applypatch-msg.sample
  9. 24 0
      hooks/commit-msg.sample
  10. 114 0
      hooks/fsmonitor-watchman.sample
  11. 8 0
      hooks/post-update.sample
  12. 14 0
      hooks/pre-applypatch.sample
  13. 49 0
      hooks/pre-commit.sample
  14. 13 0
      hooks/pre-merge-commit.sample
  15. 53 0
      hooks/pre-push.sample
  16. 169 0
      hooks/pre-rebase.sample
  17. 24 0
      hooks/pre-receive.sample
  18. 42 0
      hooks/prepare-commit-msg.sample
  19. 128 0
      hooks/update.sample
  20. 6 0
      info/exclude
  21. 10925 0
      package-lock.json
  22. 55 0
      package.json
  23. 5 0
      postcss.config.js
  24. BIN
      public/favicon.ico
  25. 38 0
      public/index.html
  26. 88 0
      scripts/component.js
  27. 166 0
      scripts/template.js
  28. 94 0
      src/App.vue
  29. BIN
      src/assets/image/alipay.jpg
  30. BIN
      src/assets/image/arrow_03.png
  31. BIN
      src/assets/image/banner/banner_1.jpg
  32. BIN
      src/assets/image/banner/banner_2.jpg
  33. BIN
      src/assets/image/banner/banner_3.jpg
  34. BIN
      src/assets/image/banner/banner_4.jpg
  35. BIN
      src/assets/image/banner/banner_5.jpg
  36. BIN
      src/assets/image/been-used_03.png
  37. BIN
      src/assets/image/been-used_06.png
  38. BIN
      src/assets/image/discount_07.png
  39. BIN
      src/assets/image/exit_03.png
  40. BIN
      src/assets/image/homeico_10.png
  41. BIN
      src/assets/image/ico-10.png
  42. BIN
      src/assets/image/ico-11.png
  43. BIN
      src/assets/image/ico-12.png
  44. BIN
      src/assets/image/ico-13.png
  45. BIN
      src/assets/image/ico-14.png
  46. BIN
      src/assets/image/ico_01.png
  47. BIN
      src/assets/image/ico_02.png
  48. BIN
      src/assets/image/ico_03.png
  49. BIN
      src/assets/image/ico_04.png
  50. BIN
      src/assets/image/ico_05.png
  51. BIN
      src/assets/image/ico_06.png
  52. BIN
      src/assets/image/ico_07.png
  53. BIN
      src/assets/image/ico_08.png
  54. BIN
      src/assets/image/ico_09.png
  55. BIN
      src/assets/image/invitation_02.png
  56. BIN
      src/assets/image/invitation_04.png
  57. BIN
      src/assets/image/invitation_06.png
  58. BIN
      src/assets/image/invitation_10.png
  59. BIN
      src/assets/image/invitation_14.png
  60. BIN
      src/assets/image/invitation_18.png
  61. BIN
      src/assets/image/invitation_22.png
  62. BIN
      src/assets/image/label-2_01.png
  63. BIN
      src/assets/image/label-2_02.png
  64. BIN
      src/assets/image/label-2_03.png
  65. BIN
      src/assets/image/label_01.png
  66. BIN
      src/assets/image/label_02.png
  67. BIN
      src/assets/image/label_03.png
  68. BIN
      src/assets/image/login_03.png
  69. BIN
      src/assets/image/login_07.png
  70. BIN
      src/assets/image/login_11.png
  71. BIN
      src/assets/image/login_15.png
  72. BIN
      src/assets/image/logo.png
  73. BIN
      src/assets/image/myarrow.png
  74. BIN
      src/assets/image/no-info_03.png
  75. BIN
      src/assets/image/one-page_03.png
  76. BIN
      src/assets/image/one-page_07.png
  77. BIN
      src/assets/image/options.png
  78. BIN
      src/assets/image/pay-cost_03.png
  79. BIN
      src/assets/image/pay-cost_10.png
  80. BIN
      src/assets/image/pay-cost_11.png
  81. BIN
      src/assets/image/pay-cost_15.png
  82. BIN
      src/assets/image/payroll.png
  83. BIN
      src/assets/image/payrollback.png
  84. BIN
      src/assets/image/reward.png
  85. BIN
      src/assets/image/reward_03.png
  86. BIN
      src/assets/image/rule.png
  87. BIN
      src/assets/image/seal_03.png
  88. BIN
      src/assets/image/service.all.png
  89. BIN
      src/assets/image/service.half.png
  90. BIN
      src/assets/image/share_05.png
  91. BIN
      src/assets/image/share_09.png
  92. BIN
      src/assets/image/two_03.png
  93. BIN
      src/assets/image/withdraw-deposit_07.png
  94. BIN
      src/assets/image/wxpay.png
  95. BIN
      src/assets/image/xuan/bounced-h5_03.png
  96. BIN
      src/assets/image/xuan/h5banner.jpg
  97. BIN
      src/assets/image/xuan/h5ico_03.png
  98. BIN
      src/assets/image/xuan/h5ico_06.png
  99. BIN
      src/assets/image/xuan/h5ico_11.png
  100. 0 0
      src/assets/image/xuan/h5ico_13.png

+ 19 - 0
Dockerfile

@@ -0,0 +1,19 @@
+FROM node:12
+
+# make the 'app' folder the current working directory
+WORKDIR /app
+
+# copy both 'package.json' and 'package-lock.json' (if available)
+COPY package*.json ./
+
+# install project dependencies
+RUN npm install
+
+# copy project files and folders to the current working directory (i.e. 'app' folder)
+COPY . .
+
+# build app for production with minification
+RUN npm run serve
+
+EXPOSE 8080
+CMD [ "npm", "run", "serve"]

+ 1 - 0
HEAD

@@ -0,0 +1 @@
+ref: refs/heads/master

+ 21 - 0
README.md

@@ -0,0 +1,21 @@
+# hippo
+
+## Project setup
+```
+npm install
+```
+
+### Compiles and hot-reloads for development
+```
+npm run serve
+```
+
+### Compiles and minifies for production
+```
+npm run build
+```
+
+### Lints and fixes files
+```
+npm run lint
+```

+ 14 - 0
babel.config.js

@@ -0,0 +1,14 @@
+module.exports = {
+    presets: [
+        '@vue/app'
+    ],
+    plugins: [
+        [
+            "component",
+            {
+                "libraryName": "element-ui",
+                "styleLibraryName": "theme-chalk"
+            }
+        ]
+    ]
+};

+ 6 - 0
config

@@ -0,0 +1,6 @@
+[core]
+	repositoryformatversion = 0
+	filemode = true
+	bare = true
+	ignorecase = true
+	precomposeunicode = true

+ 1 - 0
description

@@ -0,0 +1 @@
+Unnamed repository; edit this file 'description' to name the repository.

+ 1 - 0
dump.rdb

@@ -0,0 +1 @@
+REDIS0006ÿܳCðZÜòV

+ 15 - 0
hooks/applypatch-msg.sample

@@ -0,0 +1,15 @@
+#!/bin/sh
+#
+# An example hook script to check the commit log message taken by
+# applypatch from an e-mail message.
+#
+# The hook should exit with non-zero status after issuing an
+# appropriate message if it wants to stop the commit.  The hook is
+# allowed to edit the commit message file.
+#
+# To enable this hook, rename this file to "applypatch-msg".
+
+. git-sh-setup
+commitmsg="$(git rev-parse --git-path hooks/commit-msg)"
+test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"}
+:

+ 24 - 0
hooks/commit-msg.sample

@@ -0,0 +1,24 @@
+#!/bin/sh
+#
+# An example hook script to check the commit log message.
+# Called by "git commit" with one argument, the name of the file
+# that has the commit message.  The hook should exit with non-zero
+# status after issuing an appropriate message if it wants to stop the
+# commit.  The hook is allowed to edit the commit message file.
+#
+# To enable this hook, rename this file to "commit-msg".
+
+# Uncomment the below to add a Signed-off-by line to the message.
+# Doing this in a hook is a bad idea in general, but the prepare-commit-msg
+# hook is more suited to it.
+#
+# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
+# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1"
+
+# This example catches duplicate Signed-off-by lines.
+
+test "" = "$(grep '^Signed-off-by: ' "$1" |
+	 sort | uniq -c | sed -e '/^[ 	]*1[ 	]/d')" || {
+	echo >&2 Duplicate Signed-off-by lines.
+	exit 1
+}

+ 114 - 0
hooks/fsmonitor-watchman.sample

@@ -0,0 +1,114 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+use IPC::Open2;
+
+# An example hook script to integrate Watchman
+# (https://facebook.github.io/watchman/) with git to speed up detecting
+# new and modified files.
+#
+# The hook is passed a version (currently 1) and a time in nanoseconds
+# formatted as a string and outputs to stdout all files that have been
+# modified since the given time. Paths must be relative to the root of
+# the working tree and separated by a single NUL.
+#
+# To enable this hook, rename this file to "query-watchman" and set
+# 'git config core.fsmonitor .git/hooks/query-watchman'
+#
+my ($version, $time) = @ARGV;
+
+# Check the hook interface version
+
+if ($version == 1) {
+	# convert nanoseconds to seconds
+	$time = int $time / 1000000000;
+} else {
+	die "Unsupported query-fsmonitor hook version '$version'.\n" .
+	    "Falling back to scanning...\n";
+}
+
+my $git_work_tree;
+if ($^O =~ 'msys' || $^O =~ 'cygwin') {
+	$git_work_tree = Win32::GetCwd();
+	$git_work_tree =~ tr/\\/\//;
+} else {
+	require Cwd;
+	$git_work_tree = Cwd::cwd();
+}
+
+my $retry = 1;
+
+launch_watchman();
+
+sub launch_watchman {
+
+	my $pid = open2(\*CHLD_OUT, \*CHLD_IN, 'watchman -j --no-pretty')
+	    or die "open2() failed: $!\n" .
+	    "Falling back to scanning...\n";
+
+	# In the query expression below we're asking for names of files that
+	# changed since $time but were not transient (ie created after
+	# $time but no longer exist).
+	#
+	# To accomplish this, we're using the "since" generator to use the
+	# recency index to select candidate nodes and "fields" to limit the
+	# output to file names only. Then we're using the "expression" term to
+	# further constrain the results.
+	#
+	# The category of transient files that we want to ignore will have a
+	# creation clock (cclock) newer than $time_t value and will also not
+	# currently exist.
+
+	my $query = <<"	END";
+		["query", "$git_work_tree", {
+			"since": $time,
+			"fields": ["name"],
+			"expression": ["not", ["allof", ["since", $time, "cclock"], ["not", "exists"]]]
+		}]
+	END
+
+	print CHLD_IN $query;
+	close CHLD_IN;
+	my $response = do {local $/; <CHLD_OUT>};
+
+	die "Watchman: command returned no output.\n" .
+	    "Falling back to scanning...\n" if $response eq "";
+	die "Watchman: command returned invalid output: $response\n" .
+	    "Falling back to scanning...\n" unless $response =~ /^\{/;
+
+	my $json_pkg;
+	eval {
+		require JSON::XS;
+		$json_pkg = "JSON::XS";
+		1;
+	} or do {
+		require JSON::PP;
+		$json_pkg = "JSON::PP";
+	};
+
+	my $o = $json_pkg->new->utf8->decode($response);
+
+	if ($retry > 0 and $o->{error} and $o->{error} =~ m/unable to resolve root .* directory (.*) is not watched/) {
+		print STDERR "Adding '$git_work_tree' to watchman's watch list.\n";
+		$retry--;
+		qx/watchman watch "$git_work_tree"/;
+		die "Failed to make watchman watch '$git_work_tree'.\n" .
+		    "Falling back to scanning...\n" if $? != 0;
+
+		# Watchman will always return all files on the first query so
+		# return the fast "everything is dirty" flag to git and do the
+		# Watchman query just to get it over with now so we won't pay
+		# the cost in git to look up each individual file.
+		print "/\0";
+		eval { launch_watchman() };
+		exit 0;
+	}
+
+	die "Watchman: $o->{error}.\n" .
+	    "Falling back to scanning...\n" if $o->{error};
+
+	binmode STDOUT, ":utf8";
+	local $, = "\0";
+	print @{$o->{files}};
+}

+ 8 - 0
hooks/post-update.sample

@@ -0,0 +1,8 @@
+#!/bin/sh
+#
+# An example hook script to prepare a packed repository for use over
+# dumb transports.
+#
+# To enable this hook, rename this file to "post-update".
+
+exec git update-server-info

+ 14 - 0
hooks/pre-applypatch.sample

@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# An example hook script to verify what is about to be committed
+# by applypatch from an e-mail message.
+#
+# The hook should exit with non-zero status after issuing an
+# appropriate message if it wants to stop the commit.
+#
+# To enable this hook, rename this file to "pre-applypatch".
+
+. git-sh-setup
+precommit="$(git rev-parse --git-path hooks/pre-commit)"
+test -x "$precommit" && exec "$precommit" ${1+"$@"}
+:

+ 49 - 0
hooks/pre-commit.sample

@@ -0,0 +1,49 @@
+#!/bin/sh
+#
+# An example hook script to verify what is about to be committed.
+# Called by "git commit" with no arguments.  The hook should
+# exit with non-zero status after issuing an appropriate message if
+# it wants to stop the commit.
+#
+# To enable this hook, rename this file to "pre-commit".
+
+if git rev-parse --verify HEAD >/dev/null 2>&1
+then
+	against=HEAD
+else
+	# Initial commit: diff against an empty tree object
+	against=$(git hash-object -t tree /dev/null)
+fi
+
+# If you want to allow non-ASCII filenames set this variable to true.
+allownonascii=$(git config --bool hooks.allownonascii)
+
+# Redirect output to stderr.
+exec 1>&2
+
+# Cross platform projects tend to avoid non-ASCII filenames; prevent
+# them from being added to the repository. We exploit the fact that the
+# printable range starts at the space character and ends with tilde.
+if [ "$allownonascii" != "true" ] &&
+	# Note that the use of brackets around a tr range is ok here, (it's
+	# even required, for portability to Solaris 10's /usr/bin/tr), since
+	# the square bracket bytes happen to fall in the designated range.
+	test $(git diff --cached --name-only --diff-filter=A -z $against |
+	  LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0
+then
+	cat <<\EOF
+Error: Attempt to add a non-ASCII file name.
+
+This can cause problems if you want to work with people on other platforms.
+
+To be portable it is advisable to rename the file.
+
+If you know what you are doing you can disable this check using:
+
+  git config hooks.allownonascii true
+EOF
+	exit 1
+fi
+
+# If there are whitespace errors, print the offending file names and fail.
+exec git diff-index --check --cached $against --

+ 13 - 0
hooks/pre-merge-commit.sample

@@ -0,0 +1,13 @@
+#!/bin/sh
+#
+# An example hook script to verify what is about to be committed.
+# Called by "git merge" with no arguments.  The hook should
+# exit with non-zero status after issuing an appropriate message to
+# stderr if it wants to stop the merge commit.
+#
+# To enable this hook, rename this file to "pre-merge-commit".
+
+. git-sh-setup
+test -x "$GIT_DIR/hooks/pre-commit" &&
+        exec "$GIT_DIR/hooks/pre-commit"
+:

+ 53 - 0
hooks/pre-push.sample

@@ -0,0 +1,53 @@
+#!/bin/sh
+
+# An example hook script to verify what is about to be pushed.  Called by "git
+# push" after it has checked the remote status, but before anything has been
+# pushed.  If this script exits with a non-zero status nothing will be pushed.
+#
+# This hook is called with the following parameters:
+#
+# $1 -- Name of the remote to which the push is being done
+# $2 -- URL to which the push is being done
+#
+# If pushing without using a named remote those arguments will be equal.
+#
+# Information about the commits which are being pushed is supplied as lines to
+# the standard input in the form:
+#
+#   <local ref> <local sha1> <remote ref> <remote sha1>
+#
+# This sample shows how to prevent push of commits where the log message starts
+# with "WIP" (work in progress).
+
+remote="$1"
+url="$2"
+
+z40=0000000000000000000000000000000000000000
+
+while read local_ref local_sha remote_ref remote_sha
+do
+	if [ "$local_sha" = $z40 ]
+	then
+		# Handle delete
+		:
+	else
+		if [ "$remote_sha" = $z40 ]
+		then
+			# New branch, examine all commits
+			range="$local_sha"
+		else
+			# Update to existing branch, examine new commits
+			range="$remote_sha..$local_sha"
+		fi
+
+		# Check for WIP commit
+		commit=`git rev-list -n 1 --grep '^WIP' "$range"`
+		if [ -n "$commit" ]
+		then
+			echo >&2 "Found WIP commit in $local_ref, not pushing"
+			exit 1
+		fi
+	fi
+done
+
+exit 0

+ 169 - 0
hooks/pre-rebase.sample

@@ -0,0 +1,169 @@
+#!/bin/sh
+#
+# Copyright (c) 2006, 2008 Junio C Hamano
+#
+# The "pre-rebase" hook is run just before "git rebase" starts doing
+# its job, and can prevent the command from running by exiting with
+# non-zero status.
+#
+# The hook is called with the following parameters:
+#
+# $1 -- the upstream the series was forked from.
+# $2 -- the branch being rebased (or empty when rebasing the current branch).
+#
+# This sample shows how to prevent topic branches that are already
+# merged to 'next' branch from getting rebased, because allowing it
+# would result in rebasing already published history.
+
+publish=next
+basebranch="$1"
+if test "$#" = 2
+then
+	topic="refs/heads/$2"
+else
+	topic=`git symbolic-ref HEAD` ||
+	exit 0 ;# we do not interrupt rebasing detached HEAD
+fi
+
+case "$topic" in
+refs/heads/??/*)
+	;;
+*)
+	exit 0 ;# we do not interrupt others.
+	;;
+esac
+
+# Now we are dealing with a topic branch being rebased
+# on top of master.  Is it OK to rebase it?
+
+# Does the topic really exist?
+git show-ref -q "$topic" || {
+	echo >&2 "No such branch $topic"
+	exit 1
+}
+
+# Is topic fully merged to master?
+not_in_master=`git rev-list --pretty=oneline ^master "$topic"`
+if test -z "$not_in_master"
+then
+	echo >&2 "$topic is fully merged to master; better remove it."
+	exit 1 ;# we could allow it, but there is no point.
+fi
+
+# Is topic ever merged to next?  If so you should not be rebasing it.
+only_next_1=`git rev-list ^master "^$topic" ${publish} | sort`
+only_next_2=`git rev-list ^master           ${publish} | sort`
+if test "$only_next_1" = "$only_next_2"
+then
+	not_in_topic=`git rev-list "^$topic" master`
+	if test -z "$not_in_topic"
+	then
+		echo >&2 "$topic is already up to date with master"
+		exit 1 ;# we could allow it, but there is no point.
+	else
+		exit 0
+	fi
+else
+	not_in_next=`git rev-list --pretty=oneline ^${publish} "$topic"`
+	/usr/bin/perl -e '
+		my $topic = $ARGV[0];
+		my $msg = "* $topic has commits already merged to public branch:\n";
+		my (%not_in_next) = map {
+			/^([0-9a-f]+) /;
+			($1 => 1);
+		} split(/\n/, $ARGV[1]);
+		for my $elem (map {
+				/^([0-9a-f]+) (.*)$/;
+				[$1 => $2];
+			} split(/\n/, $ARGV[2])) {
+			if (!exists $not_in_next{$elem->[0]}) {
+				if ($msg) {
+					print STDERR $msg;
+					undef $msg;
+				}
+				print STDERR " $elem->[1]\n";
+			}
+		}
+	' "$topic" "$not_in_next" "$not_in_master"
+	exit 1
+fi
+
+<<\DOC_END
+
+This sample hook safeguards topic branches that have been
+published from being rewound.
+
+The workflow assumed here is:
+
+ * Once a topic branch forks from "master", "master" is never
+   merged into it again (either directly or indirectly).
+
+ * Once a topic branch is fully cooked and merged into "master",
+   it is deleted.  If you need to build on top of it to correct
+   earlier mistakes, a new topic branch is created by forking at
+   the tip of the "master".  This is not strictly necessary, but
+   it makes it easier to keep your history simple.
+
+ * Whenever you need to test or publish your changes to topic
+   branches, merge them into "next" branch.
+
+The script, being an example, hardcodes the publish branch name
+to be "next", but it is trivial to make it configurable via
+$GIT_DIR/config mechanism.
+
+With this workflow, you would want to know:
+
+(1) ... if a topic branch has ever been merged to "next".  Young
+    topic branches can have stupid mistakes you would rather
+    clean up before publishing, and things that have not been
+    merged into other branches can be easily rebased without
+    affecting other people.  But once it is published, you would
+    not want to rewind it.
+
+(2) ... if a topic branch has been fully merged to "master".
+    Then you can delete it.  More importantly, you should not
+    build on top of it -- other people may already want to
+    change things related to the topic as patches against your
+    "master", so if you need further changes, it is better to
+    fork the topic (perhaps with the same name) afresh from the
+    tip of "master".
+
+Let's look at this example:
+
+		   o---o---o---o---o---o---o---o---o---o "next"
+		  /       /           /           /
+		 /   a---a---b A     /           /
+		/   /               /           /
+	       /   /   c---c---c---c B         /
+	      /   /   /             \         /
+	     /   /   /   b---b C     \       /
+	    /   /   /   /             \     /
+    ---o---o---o---o---o---o---o---o---o---o---o "master"
+
+
+A, B and C are topic branches.
+
+ * A has one fix since it was merged up to "next".
+
+ * B has finished.  It has been fully merged up to "master" and "next",
+   and is ready to be deleted.
+
+ * C has not merged to "next" at all.
+
+We would want to allow C to be rebased, refuse A, and encourage
+B to be deleted.
+
+To compute (1):
+
+	git rev-list ^master ^topic next
+	git rev-list ^master        next
+
+	if these match, topic has not merged in next at all.
+
+To compute (2):
+
+	git rev-list master..topic
+
+	if this is empty, it is fully merged to "master".
+
+DOC_END

+ 24 - 0
hooks/pre-receive.sample

@@ -0,0 +1,24 @@
+#!/bin/sh
+#
+# An example hook script to make use of push options.
+# The example simply echoes all push options that start with 'echoback='
+# and rejects all pushes when the "reject" push option is used.
+#
+# To enable this hook, rename this file to "pre-receive".
+
+if test -n "$GIT_PUSH_OPTION_COUNT"
+then
+	i=0
+	while test "$i" -lt "$GIT_PUSH_OPTION_COUNT"
+	do
+		eval "value=\$GIT_PUSH_OPTION_$i"
+		case "$value" in
+		echoback=*)
+			echo "echo from the pre-receive-hook: ${value#*=}" >&2
+			;;
+		reject)
+			exit 1
+		esac
+		i=$((i + 1))
+	done
+fi

+ 42 - 0
hooks/prepare-commit-msg.sample

@@ -0,0 +1,42 @@
+#!/bin/sh
+#
+# An example hook script to prepare the commit log message.
+# Called by "git commit" with the name of the file that has the
+# commit message, followed by the description of the commit
+# message's source.  The hook's purpose is to edit the commit
+# message file.  If the hook fails with a non-zero status,
+# the commit is aborted.
+#
+# To enable this hook, rename this file to "prepare-commit-msg".
+
+# This hook includes three examples. The first one removes the
+# "# Please enter the commit message..." help message.
+#
+# The second includes the output of "git diff --name-status -r"
+# into the message, just before the "git status" output.  It is
+# commented because it doesn't cope with --amend or with squashed
+# commits.
+#
+# The third example adds a Signed-off-by line to the message, that can
+# still be edited.  This is rarely a good idea.
+
+COMMIT_MSG_FILE=$1
+COMMIT_SOURCE=$2
+SHA1=$3
+
+/usr/bin/perl -i.bak -ne 'print unless(m/^. Please enter the commit message/..m/^#$/)' "$COMMIT_MSG_FILE"
+
+# case "$COMMIT_SOURCE,$SHA1" in
+#  ,|template,)
+#    /usr/bin/perl -i.bak -pe '
+#       print "\n" . `git diff --cached --name-status -r`
+# 	 if /^#/ && $first++ == 0' "$COMMIT_MSG_FILE" ;;
+#  *) ;;
+# esac
+
+# SOB=$(git var GIT_COMMITTER_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
+# git interpret-trailers --in-place --trailer "$SOB" "$COMMIT_MSG_FILE"
+# if test -z "$COMMIT_SOURCE"
+# then
+#   /usr/bin/perl -i.bak -pe 'print "\n" if !$first_line++' "$COMMIT_MSG_FILE"
+# fi

+ 128 - 0
hooks/update.sample

@@ -0,0 +1,128 @@
+#!/bin/sh
+#
+# An example hook script to block unannotated tags from entering.
+# Called by "git receive-pack" with arguments: refname sha1-old sha1-new
+#
+# To enable this hook, rename this file to "update".
+#
+# Config
+# ------
+# hooks.allowunannotated
+#   This boolean sets whether unannotated tags will be allowed into the
+#   repository.  By default they won't be.
+# hooks.allowdeletetag
+#   This boolean sets whether deleting tags will be allowed in the
+#   repository.  By default they won't be.
+# hooks.allowmodifytag
+#   This boolean sets whether a tag may be modified after creation. By default
+#   it won't be.
+# hooks.allowdeletebranch
+#   This boolean sets whether deleting branches will be allowed in the
+#   repository.  By default they won't be.
+# hooks.denycreatebranch
+#   This boolean sets whether remotely creating branches will be denied
+#   in the repository.  By default this is allowed.
+#
+
+# --- Command line
+refname="$1"
+oldrev="$2"
+newrev="$3"
+
+# --- Safety check
+if [ -z "$GIT_DIR" ]; then
+	echo "Don't run this script from the command line." >&2
+	echo " (if you want, you could supply GIT_DIR then run" >&2
+	echo "  $0 <ref> <oldrev> <newrev>)" >&2
+	exit 1
+fi
+
+if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then
+	echo "usage: $0 <ref> <oldrev> <newrev>" >&2
+	exit 1
+fi
+
+# --- Config
+allowunannotated=$(git config --bool hooks.allowunannotated)
+allowdeletebranch=$(git config --bool hooks.allowdeletebranch)
+denycreatebranch=$(git config --bool hooks.denycreatebranch)
+allowdeletetag=$(git config --bool hooks.allowdeletetag)
+allowmodifytag=$(git config --bool hooks.allowmodifytag)
+
+# check for no description
+projectdesc=$(sed -e '1q' "$GIT_DIR/description")
+case "$projectdesc" in
+"Unnamed repository"* | "")
+	echo "*** Project description file hasn't been set" >&2
+	exit 1
+	;;
+esac
+
+# --- Check types
+# if $newrev is 0000...0000, it's a commit to delete a ref.
+zero="0000000000000000000000000000000000000000"
+if [ "$newrev" = "$zero" ]; then
+	newrev_type=delete
+else
+	newrev_type=$(git cat-file -t $newrev)
+fi
+
+case "$refname","$newrev_type" in
+	refs/tags/*,commit)
+		# un-annotated tag
+		short_refname=${refname##refs/tags/}
+		if [ "$allowunannotated" != "true" ]; then
+			echo "*** The un-annotated tag, $short_refname, is not allowed in this repository" >&2
+			echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2
+			exit 1
+		fi
+		;;
+	refs/tags/*,delete)
+		# delete tag
+		if [ "$allowdeletetag" != "true" ]; then
+			echo "*** Deleting a tag is not allowed in this repository" >&2
+			exit 1
+		fi
+		;;
+	refs/tags/*,tag)
+		# annotated tag
+		if [ "$allowmodifytag" != "true" ] && git rev-parse $refname > /dev/null 2>&1
+		then
+			echo "*** Tag '$refname' already exists." >&2
+			echo "*** Modifying a tag is not allowed in this repository." >&2
+			exit 1
+		fi
+		;;
+	refs/heads/*,commit)
+		# branch
+		if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then
+			echo "*** Creating a branch is not allowed in this repository" >&2
+			exit 1
+		fi
+		;;
+	refs/heads/*,delete)
+		# delete branch
+		if [ "$allowdeletebranch" != "true" ]; then
+			echo "*** Deleting a branch is not allowed in this repository" >&2
+			exit 1
+		fi
+		;;
+	refs/remotes/*,commit)
+		# tracking branch
+		;;
+	refs/remotes/*,delete)
+		# delete tracking branch
+		if [ "$allowdeletebranch" != "true" ]; then
+			echo "*** Deleting a tracking branch is not allowed in this repository" >&2
+			exit 1
+		fi
+		;;
+	*)
+		# Anything else (is there anything else?)
+		echo "*** Update hook: unknown type of update to ref $refname of type $newrev_type" >&2
+		exit 1
+		;;
+esac
+
+# --- Finished
+exit 0

+ 6 - 0
info/exclude

@@ -0,0 +1,6 @@
+# git ls-files --others --exclude-from=.git/info/exclude
+# Lines that start with '#' are comments.
+# For a project mostly in C, the following would be a good set of
+# exclude patterns (uncomment them if you want to use them):
+# *.[oa]
+# *~

Dosya farkı çok büyük olduğundan ihmal edildi
+ 10925 - 0
package-lock.json


+ 55 - 0
package.json

@@ -0,0 +1,55 @@
+{
+  "name": "hippo",
+  "version": "0.1.0",
+  "private": true,
+  "scripts": {
+    "serve": "vue-cli-service serve",
+    "build": "vue-cli-service build",
+    "lint": "vue-cli-service lint",
+    "component": "node scripts/component",
+    "page": "node scripts/template"
+  },
+  "dependencies": {
+    "axios": "^0.18.1",
+    "bootstrap": "^4.3.1",
+    "element-ui": "^2.4.5",
+    "jquery": "^3.4.1",
+    "soshm": "^1.1.3",
+    "swiper": "^4.5.0",
+    "vant": "^2.2.10",
+    "vant-weapp": "^0.5.22",
+    "vue": "^2.6.6",
+    "vue-awesome-swiper": "^3.1.3",
+    "vue-class-component": "^6.0.0",
+    "vue-infinite-scroll": "^2.0.2",
+    "vue-property-decorator": "^7.0.0",
+    "vue-router": "^3.0.1",
+    "vuex": "^3.0.1",
+    "vuex-class": "^0.3.1",
+    "weixin-js-sdk": "^1.4.0-test",
+    "weixin-jsapi": "^1.1.0",
+    "node-sass": "^4.12.0",
+    "sass-loader": "^7.1.0"
+  },
+  "devDependencies": {
+    "@types/swiper": "^4.4.2",
+    "@vue/cli-plugin-babel": "^3.0.3",
+    "@vue/cli-plugin-typescript": "^3.0.3",
+    "@vue/cli-service": "^3.0.3",
+    "babel-plugin-component": "^1.1.1",
+    "babel-plugin-import": "^1.12.2",
+    "typescript": "^3.0.0",
+    "vue-cli-plugin-element": "^1.0.1",
+    "vue-template-compiler": "^2.5.21"
+  },
+  "postcss": {
+    "plugins": {
+      "autoprefixer": {}
+    }
+  },
+  "browserslist": [
+    "> 1%",
+    "last 2 versions",
+    "not ie <= 8"
+  ]
+}

+ 5 - 0
postcss.config.js

@@ -0,0 +1,5 @@
+module.exports = {
+  plugins: {
+    autoprefixer: {}
+  }
+};

BIN
public/favicon.ico


+ 38 - 0
public/index.html

@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
+    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
+    <title>河马代缴</title>
+    <style>
+        body {
+            background: #dddddd;
+        }
+    </style>
+    <script>
+        window._agl  =  window._agl  ||  [];
+        (function  ()  {
+            _agl.push(
+                ['production',  '_f7L2XwGXjyszb4d1e2oxPybgD']
+            );
+            (function  ()  {
+                var  agl  =  document.createElement('script');
+                agl.type  ='text/javascript';
+                agl.async  =  true;
+                agl.src  =  'https://fxgate.baidu.com/angelia/fcagl.js?production=_f7L2XwGXjyszb4d1e2oxPybgD';
+                var  s  =  document.getElementsByTagName('script')[0];
+                s.parentNode.insertBefore(agl,  s);
+            })();
+        })();
+    </script>
+</head>
+<body>
+<noscript>
+    <strong>We're sorry but hippo doesn't work properly without JavaScript enabled. Please enable it to
+        continue.</strong>
+</noscript>
+<div id="app"></div>
+</body>
+</html>

+ 88 - 0
scripts/component.js

@@ -0,0 +1,88 @@
+/*
+ * @Description: 组件快速生成脚本
+ * @Date: 2018-12-06 10:26:23
+ * @LastEditTime: 2018-12-12 16:09:40
+ */
+
+const fs = require('fs');
+const path = require('path');
+const basePath = path.resolve(__dirname, '../src');
+
+const dirName = process.argv[2];
+const capPirName = dirName.substring(0, 1).toUpperCase() + dirName.substring(1);
+if (!dirName) {
+  console.log('文件夹名称不能为空!');
+  console.log('示例:npm run tep ${capPirName}');
+  process.exit(0)
+}
+
+/**
+ * @msg: vue页面模版
+ */
+const VueTep = `<template>
+  <div class="${dirName}-wrap">
+    {{data.componentName}}
+  </div>
+</template>
+
+<script lang="ts">
+  import { Component, Vue, Prop } from "vue-property-decorator"
+  import { Getter, Action } from 'vuex-class'
+  import { ${capPirName}Data } from '@/types/components/${dirName}.interface'
+  // import {  } from "@/components" // 组件
+
+  @Component({})
+  export default class About extends Vue {
+    // prop
+    @Prop({
+      required: false,
+      default: ''
+    }) name!: string
+
+    // data
+    data: ${capPirName}Data = {
+      componentName: '${dirName}'
+    }
+
+    created() {
+      //
+    }
+    
+    activated() {
+      //
+    }
+
+    mounted() {
+      //
+    }
+
+  }
+</script>
+
+<style lang="scss">
+  @import "@/assets/scss/variables.scss";
+
+  .${dirName}-wrap {
+    width: 100%;
+  }
+</style>
+
+`;
+
+// interface 模版
+const interfaceTep = `// ${dirName}.Data 参数类型
+export interface ${capPirName}Data {
+  componentName: string
+}
+
+`;
+
+fs.mkdirSync(`${basePath}/components/${dirName}`); // mkdir
+
+process.chdir(`${basePath}/components/${dirName}`); // cd views
+fs.writeFileSync(`${dirName}.vue`, VueTep); // vue
+
+process.chdir(`${basePath}/types/components`); // cd components
+fs.writeFileSync(`${dirName}.interface.ts`, interfaceTep); // interface
+
+process.exit(0);

+ 166 - 0
scripts/template.js

@@ -0,0 +1,166 @@
+/*
+ * @Description: 页面快速生成脚本
+ * @Date: 2018-12-06 10:28:08
+ * @LastEditTime: 2018-12-12 17:02:36
+ */
+const fs = require('fs');
+const path = require('path');
+const basePath = path.resolve(__dirname, '../src');
+
+const dirName = process.argv[2];
+const capPirName = dirName.substring(0, 1).toUpperCase() + dirName.substring(1);
+if (!dirName) {
+  console.log('文件夹名称不能为空!');
+  console.log('示例:npm run tep ${capPirName}');
+  process.exit(0)
+}
+
+/**
+ * @msg: vue页面模版
+ */
+const VueTep = `<template>
+  <div class="${dirName}-wrap">
+    {{data.pageName}}
+  </div>
+</template>
+
+<script lang="ts" src="./${dirName}.ts"></script>
+
+<style lang="scss">
+  @import './${dirName}.scss'
+</style>
+
+`;
+
+// ts 模版
+const tsTep = `import { Component, Vue } from "vue-property-decorator"
+import { Getter, Action } from "vuex-class"
+import { ${capPirName}Data } from '@/types/views/${dirName}.interface'
+// import {  } from "@/components" // 组件
+
+@Component({})
+export default class About extends Vue {
+  // Getter
+  // @Getter author
+  
+  // Action
+  // @Action GET_DATA_ASYN
+
+  // data
+  data: ${capPirName}Data = {
+    pageName: '${dirName}'
+  }
+
+  created() {
+    //
+  }
+  
+  activated() {
+    //
+  }
+
+  mounted() {
+    //
+  }
+
+  // 初始化函数
+  init() {
+    //
+  }
+    
+}
+`;
+
+// scss 模版
+const scssTep = `@import "@/assets/scss/variables.scss";
+
+.${dirName}-wrap {
+  width: 100%;
+}
+`;
+
+// interface 模版
+const interfaceTep = `// ${dirName}.Data 参数类型
+export interface ${capPirName}Data {
+  pageName: string
+}
+
+// VUEX ${dirName}.State 参数类型
+export interface ${capPirName}State {
+  author?: string
+}
+
+// GET_DATA_ASYN 接口参数类型
+// export interface DataOptions {}
+
+`;
+
+// vuex 模版
+const vuexTep = `
+import { ${capPirName}State } from '@/types/views/${dirName}.interface'
+import { GetterTree, MutationTree, ActionTree } from 'vuex'
+
+const state: ${capPirName}State = {
+  author: '三毛'
+}
+
+// 强制使用getter获取state
+const getters: GetterTree<${capPirName}State, any> = {
+  author: (state: ${capPirName}State) => state.author
+}
+
+// 更改state
+const mutations: MutationTree<${capPirName}State> = {
+  // 更新state都用该方法
+  UPDATE_STATE(state: ${capPirName}State, data: ${capPirName}State) {
+    for (const key in data) {
+      if (!data.hasOwnProperty(key)) { return }
+      state[key] = data[key]
+    }
+  }
+}
+
+const actions: ActionTree<${capPirName}State, any> = {
+  UPDATE_STATE_ASYN({ commit, state: ${capPirName}State }, data: ${capPirName}State) {
+    commit('UPDATE_STATE', data)
+  },
+  // GET_DATA_ASYN({ commit, state: LoginState }) {
+  //   ${capPirName}.getData()
+  // }
+}
+
+export default {
+  state,
+  getters,
+  mutations,
+  actions
+}
+
+`;
+
+// api 接口模版
+const apiTep = `import Api from '@/utils/request'
+
+export const getData = (data) => {
+  return Api.getData(data)
+}
+
+`;
+
+fs.mkdirSync(`${basePath}/views/${dirName}`); // mkdir
+
+process.chdir(`${basePath}/views/${dirName}`); // cd views
+fs.writeFileSync(`${dirName}.vue`, VueTep); // vue
+fs.writeFileSync(`${dirName}.ts`, tsTep); // ts
+fs.writeFileSync(`${dirName}.scss`, scssTep); // scss
+
+process.chdir(`${basePath}/types/views`); // cd types
+fs.writeFileSync(`${dirName}.interface.ts`, interfaceTep); // interface
+
+process.chdir(`${basePath}/store/module`); // cd store
+fs.writeFileSync(`${dirName}.ts`, vuexTep); // vuex
+
+process.chdir(`${basePath}/api`); // cd api
+fs.writeFileSync(`${dirName}.ts`, apiTep); // api
+
+process.exit(0);

+ 94 - 0
src/App.vue

@@ -0,0 +1,94 @@
+<template>
+    <div id="app">
+        <keep-alive>
+            <router-view class="app-body" v-if="$route.meta.keepAlive"/>
+        </keep-alive>
+        <router-view class="app-body" v-if="!$route.meta.keepAlive"/>
+        <div class="tab-nav nav-bar" v-if="$route.meta.showTab">
+                <a  href="javascript:;" v-for="(i,index) in data.tabs" :key="index" :class="{active:index == data.thatnum}" @click="addClassName(index)">
+                    <router-link :to="i.url">
+                        <img v-if="data.thatnum!=index"  :src="i.img"    class="first weui-tabbar__icon">
+                        <img v-if="data.thatnum==index"  :src="i.active" class="last first weui-tabbar__icon">
+                    </router-link>
+                </a>
+        </div>
+    </div>
+</template>
+
+<script lang="ts" >
+    import {Component, Vue} from "vue-property-decorator";
+    import router from "@/router";
+    import Utils from './extend/Utils';
+
+    @Component({})
+    export default class App extends Vue {
+         public data:any= {
+             thatnum: -1,
+             tabs:[
+                 {url:'/index',img:require('./assets/image/label_01.png'),active:require('./assets/image/label-2_01.png')},
+                 {url:'/other',img:require('./assets/image/label_02.png'),active:require('./assets/image/label-2_02.png')},
+                 {url:'/user', img:require('./assets/image/label_03.png'),active:require('./assets/image/label-2_03.png')}
+             ]
+         }
+        addClassName(index) {
+            this.data.thatnum = index;
+        }
+        public get title() {
+            return this.$route.meta.title;
+        }
+        public goBack() {
+            router.back();
+        }
+    }
+</script>
+
+<style lang="scss">
+    @import '../node_modules/bootstrap/dist/css/bootstrap.min.css';
+    @import '@/assets/scss/common.scss';
+
+    #app {
+        position: relative;
+        min-height: 100%;
+        background: white;
+    }
+
+    #app > div:first-child {
+        font-size: 1.2rem;
+    }
+    .nav-ul{
+        display: flex;
+        width: 100%;
+    }
+
+    .tab-nav {
+        position: fixed;
+        display: flex;
+        justify-content: space-between;
+        bottom: 0;
+        left: 0;
+        right: 0;
+        border-bottom: 0;
+        border-top: 1px solid #f0f0f0;
+        background: #fff;
+        z-index: 999;
+        img{
+            width: 100%;
+        }
+    }
+
+    .app-body {
+        /*margin-top: 45px;*/
+        /*margin-bottom: 5rem;*/
+        overflow: hidden;
+    }
+
+    .bar-nav .title {
+        position: absolute;
+        left: 0;
+        right: 0;
+        text-align: center;
+    }
+    body .el-message-box {
+        width: 300px;
+    }
+    </style>

BIN
src/assets/image/alipay.jpg


BIN
src/assets/image/arrow_03.png


BIN
src/assets/image/banner/banner_1.jpg


BIN
src/assets/image/banner/banner_2.jpg


BIN
src/assets/image/banner/banner_3.jpg


BIN
src/assets/image/banner/banner_4.jpg


BIN
src/assets/image/banner/banner_5.jpg


BIN
src/assets/image/been-used_03.png


BIN
src/assets/image/been-used_06.png


BIN
src/assets/image/discount_07.png


BIN
src/assets/image/exit_03.png


BIN
src/assets/image/homeico_10.png


BIN
src/assets/image/ico-10.png


BIN
src/assets/image/ico-11.png


BIN
src/assets/image/ico-12.png


BIN
src/assets/image/ico-13.png


BIN
src/assets/image/ico-14.png


BIN
src/assets/image/ico_01.png


BIN
src/assets/image/ico_02.png


BIN
src/assets/image/ico_03.png


BIN
src/assets/image/ico_04.png


BIN
src/assets/image/ico_05.png


BIN
src/assets/image/ico_06.png


BIN
src/assets/image/ico_07.png


BIN
src/assets/image/ico_08.png


BIN
src/assets/image/ico_09.png


BIN
src/assets/image/invitation_02.png


BIN
src/assets/image/invitation_04.png


BIN
src/assets/image/invitation_06.png


BIN
src/assets/image/invitation_10.png


BIN
src/assets/image/invitation_14.png


BIN
src/assets/image/invitation_18.png


BIN
src/assets/image/invitation_22.png


BIN
src/assets/image/label-2_01.png


BIN
src/assets/image/label-2_02.png


BIN
src/assets/image/label-2_03.png


BIN
src/assets/image/label_01.png


BIN
src/assets/image/label_02.png


BIN
src/assets/image/label_03.png


BIN
src/assets/image/login_03.png


BIN
src/assets/image/login_07.png


BIN
src/assets/image/login_11.png


BIN
src/assets/image/login_15.png


BIN
src/assets/image/logo.png


BIN
src/assets/image/myarrow.png


BIN
src/assets/image/no-info_03.png


BIN
src/assets/image/one-page_03.png


BIN
src/assets/image/one-page_07.png


BIN
src/assets/image/options.png


BIN
src/assets/image/pay-cost_03.png


BIN
src/assets/image/pay-cost_10.png


BIN
src/assets/image/pay-cost_11.png


BIN
src/assets/image/pay-cost_15.png


BIN
src/assets/image/payroll.png


BIN
src/assets/image/payrollback.png


BIN
src/assets/image/reward.png


BIN
src/assets/image/reward_03.png


BIN
src/assets/image/rule.png


BIN
src/assets/image/seal_03.png


BIN
src/assets/image/service.all.png


BIN
src/assets/image/service.half.png


BIN
src/assets/image/share_05.png


BIN
src/assets/image/share_09.png


BIN
src/assets/image/two_03.png


BIN
src/assets/image/withdraw-deposit_07.png


BIN
src/assets/image/wxpay.png


BIN
src/assets/image/xuan/bounced-h5_03.png


BIN
src/assets/image/xuan/h5banner.jpg


BIN
src/assets/image/xuan/h5ico_03.png


BIN
src/assets/image/xuan/h5ico_06.png


BIN
src/assets/image/xuan/h5ico_11.png


+ 0 - 0
src/assets/image/xuan/h5ico_13.png


Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor