diff --git a/public/appmini/old/wechat/app.js b/public/appmini/old/wechat/app.js
new file mode 100755
index 000000000..a3dc4a35a
--- /dev/null
+++ b/public/appmini/old/wechat/app.js
@@ -0,0 +1,505 @@
+App({
+ data: {
+ // 用户信息缓存key
+ cache_user_info_key: "cache_shop_user_info_key",
+
+ // 用户站点信息缓存key
+ cache_user_merchant_key: "cache_shop_user_merchant_key",
+
+ // 设备信息缓存key
+ cache_system_info_key: "cache_shop_system_info_key",
+
+ // 用户地址选择缓存key
+ cache_buy_user_address_select_key: "cache_buy_user_address_select_key",
+
+ // 用户传入信息缓存key
+ cache_launch_info_key: "cache_shop_launch_info_key",
+
+ // 默认用户头像
+ default_user_head_src: "/images/default-user.png",
+
+ // 成功圆形提示图片
+ default_round_success_icon: "/images/default-round-success-icon.png",
+
+ // 错误圆形提示图片
+ default_round_error_icon: "/images/default-round-error-icon.png",
+
+
+ // 页面标题
+ common_pages_title: {
+ "goods_search": "商品搜索",
+ "goods_detail": "商品详情",
+ "goods_attribute": "属性",
+ "user_address": "我的地址",
+ "user_address_save_add": "新增地址",
+ "user_address_save_edit": "编辑地址",
+ "buy": "订单确认",
+ "user_order": "我的订单",
+ "user_order_detail": "订单详情",
+ "user_favor": "我的收藏",
+ "answer_form": "留言",
+ "answer_list": "问答",
+ "user_answer_list": "我的留言",
+ "user": "用户中心",
+ "goods_category": "分类",
+ "cart": "购物车",
+ "message": "消息",
+ "user_integral": "我的积分",
+ "user_goods_browse": "我的足迹",
+ },
+
+ // 请求地址
+ //request_url: "{{request_url}}",
+ //request_url: "http://test.shopxo.net/",
+ request_url: 'https://test.shopxo.net/',
+
+ // 基础信息
+ application_title: "{{application_title}}",
+ application_describe: "{{application_describe}}",
+ },
+
+ /**
+ * 小程序初始化
+ */
+ onLaunch(options) {
+ // 设置设备信息
+ this.set_system_info();
+
+ // 初始化用户信息、未授权用户唤醒授权操作
+ let user = this.GetUserCacheInfo();
+
+ // // 用户缓存不存在则唤醒用户授权
+ if (user == false) {
+ // 用户信息为空则唤醒授权
+ this.UserAuthCode();
+ }
+
+ // 启动query参数处理
+ this.startup_query(options);
+ },
+
+ /**
+ * 启动query参数处理
+ */
+ startup_query(options) {
+ // 没有启动参数则返回
+ if ((options.query || null) == null) {
+ return false;
+ }
+
+ // 启动处理类型
+ var type = options.query.type || null;
+ switch (type) {
+ // type=page
+ case 'page':
+ // 页面
+ var page = options.query.page || null;
+
+ // 参数值
+ var value = options.query.value || null;
+
+ // 附带参数值
+ var params = null;
+
+ // 进入逻辑处理
+ switch (page) {
+ // 进入店铺 page=shop
+ case 'shop':
+
+ // 进入项目详情 page=detail
+ case 'detail':
+ if (value != null) {
+ params = 'id=' + value;
+ }
+ break;
+
+ // 店铺买单 page=shoppay
+ case 'shoppay':
+ if (value != null) {
+ params = 'shop_id=' + value;
+ }
+ break;
+
+ default:
+ break;
+ }
+ break;
+
+ default:
+ break;
+ }
+
+ // 是否需要进行页面跳转
+ if (params != null) {
+ wx.navigateTo({
+ url: '/pages/' + page + '/' + page + '?' + params
+ });
+ }
+ },
+
+ /**
+ * 获取设备信息
+ */
+ get_system_info() {
+ let system_info = wx.getStorageSync(this.data.cache_system_info_key);
+ if ((system_info.data || null) == null) {
+ return this.set_system_info();
+ }
+ return system_info.data;
+ },
+
+ /**
+ * 设置设备信息
+ */
+ set_system_info() {
+ var system_info = wx.getSystemInfoSync();
+ wx.setStorage({
+ key: this.data.cache_system_info_key,
+ data: system_info
+ });
+ return system_info;
+ },
+
+ /**
+ /**
+ * 请求地址生成
+ */
+ get_request_url(a, c, m, params) {
+ a = a || "index";
+ c = c || "index";
+ m = m || "api";
+ params = params || "";
+ if (params != "" && params.substr(0, 1) != "&") {
+ params = "&" + params;
+ }
+ var user = this.GetUserCacheInfo();
+ var app_client_user_id = user == false ? "" : user.wechat_openid;
+ var user_id = user == false ? 0 : user.id;
+ return (
+ this.data.request_url +
+ "index.php?s=/" + m + "/" + c + "/" + a +
+ "&application_client=default&&application=app&application_client_type=wechat&application_user_id=" +
+ app_client_user_id +
+ "&user_id=" +
+ user_id +
+ "&ajax=ajax" +
+ params
+ );
+ },
+
+ /**
+ * 获取平台用户信息
+ * object 回调操作对象
+ * method 回调操作对象的函数
+ * return 有用户数据直接返回, 则回调调用者
+ */
+ GetUserInfo(object, method) {
+ var user = this.GetUserCacheInfo();
+ if (user == false) {
+ // 唤醒用户授权
+ this.UserAuthCode(object, method);
+
+ return false;
+ } else {
+ return user;
+ }
+ },
+
+ /**
+ * 获取本系统用户信息
+ */
+ GetMyUserInfo() {
+ var user = this.GetUserCacheInfo();
+ if (user == false) {
+ return null;
+ } else {
+ return user.my_user || null;
+ }
+ },
+
+ /**
+ * 从缓存获取用户信息
+ */
+ GetUserCacheInfo() {
+ let user = wx.getStorageSync(this.data.cache_user_info_key);
+ if ((user || null) == null) {
+ return false;
+ }
+ if ((user.my_user || null) == null) {
+ user.my_user = null;
+ }
+ return user;
+ },
+
+ /**
+ * 从缓存获美啦取用户信息
+ */
+ GetMeiLaUserCacheInfo() {
+ let user = wx.getStorageSync(this.data.cache_user_info_key);
+ if ((user || null) == null) {
+ return null;
+ }
+ if ((user.my_user || null) == null) {
+ return null;
+ }
+ return user.my_user;
+ },
+
+ /**
+ * 用户授权
+ * object 回调操作对象
+ * method 回调操作对象的函数
+ */
+ UserAuthCode(object, method) {
+ // 加载loding
+ wx.showLoading({ title: '授权中...' });
+ var $this = this;
+
+ // 请求授权接口
+ wx.getSetting({
+ success(res) {
+ if (!res.authSetting['scope.userInfo']) {
+ wx.authorize({
+ scope: 'scope.userInfo',
+ success() {
+ $this.user_auth_login(object, method);
+ },
+ fail: (e) => {
+ wx.hideLoading();
+ $this.showToast('授权失败');
+ }
+ });
+ } else {
+ $this.user_auth_login(object, method);
+ }
+ },
+ fail: (e) => {
+ wx.hideLoading();
+ $this.showToast('授权校验失败');
+ }
+ });
+ },
+
+ /**
+ * 用户登录
+ * object 回调操作对象
+ * method 回调操作对象的函数
+ */
+ user_auth_login(object, method) {
+ var $this = this;
+ wx.checkSession({
+ success: function () {
+ var openid = wx.getStorageSync($this.data.cache_user_login_key);
+ if ((openid || null) == null)
+ {
+ $this.user_login(object, method);
+ } else {
+ $this.get_user_login_info(object, method, openid);
+ }
+ },
+ fail: function () {
+ $this.user_login(object, method);
+ }
+ });
+ },
+
+ /**
+ * 用户登录
+ * object 回调操作对象
+ * method 回调操作对象的函数
+ */
+ user_login(object, method) {
+ var $this = this;
+ wx.login({
+ success: (res) => {
+ if (res.code) {
+ wx.request({
+ url: $this.get_request_url('GetWechatUserLogin', 'User'),
+ method: 'POST',
+ data: { authcode: res.code },
+ dataType: 'json',
+ header: { 'content-type': 'application/x-www-form-urlencoded' },
+ success: (res) => {
+ if (res.data.state == 'ok') {
+ wx.setStorage({
+ key: $this.data.cache_user_login_key,
+ data: res.data.data
+ });
+ $this.get_user_login_info(object, method, res.data.data);
+ } else {
+ wx.hideLoading();
+ $this.showToast(res.data.text);
+ }
+ },
+ fail: () => {
+ wx.hideLoading();
+ $this.showToast('服务器请求出错');
+ },
+ });
+ }
+ },
+ fail: (e) => {
+ wx.hideLoading();
+ $this.showToast('授权失败');
+ }
+ });
+ },
+
+ /**
+ * 获取用户授权信息
+ * object 回调操作对象
+ * method 回调操作对象的函数
+ * openid 用户openid
+ */
+ get_user_login_info(object, method, openid) {
+ var $this = this;
+ wx.getUserInfo({
+ withCredentials: true,
+ success: function (res) {
+ // 远程解密数据
+ wx.request({
+ url: $this.get_request_url('GetWechatUserInfo', 'User'),
+ method: 'POST',
+ data: { encrypted_data: res.encryptedData, iv: res.iv, openid: openid },
+ dataType: 'json',
+ header: { 'content-type': 'application/x-www-form-urlencoded' },
+ success: (res) => {
+ wx.hideLoading();
+ if (res.data.state == 'ok') {
+ wx.setStorage({
+ key: $this.data.cache_user_info_key,
+ data: res.data.data
+ });
+
+ if (typeof object === 'object' && (method || null) != null) {
+ object[method]();
+ }
+ } else {
+ $this.showToast(res.data.text);
+ }
+ },
+ fail: () => {
+ wx.hideLoading();
+ $this.showToast('服务器请求出错');
+ },
+ });
+ },
+ fail: (e) => {
+ wx.hideLoading();
+ $this.showToast('获取用户信息失败');
+ }
+ });
+ },
+
+ /**
+ * 字段数据校验
+ * data 待校验的数据, 一维json对象
+ * validation 待校验的字段, 格式 [{fields: 'mobile', msg: '请填写手机号码'}, ...]
+ */
+ fields_check(data, validation) {
+ for (var i in validation) {
+ if ((data[validation[i]['fields']] || null) == null) {
+ this.showToast(validation[i]['msg']);
+ return false;
+ }
+ }
+ return true;
+ },
+
+ /**
+ * 获取当前时间戳
+ */
+ get_timestamp() {
+ return parseInt(new Date().getTime() / 1000);
+ },
+
+ /**
+ * 获取日期
+ * format 日期格式(默认 yyyy-MM-dd h:m:s)
+ * timestamp 时间戳(默认当前时间戳)
+ */
+ get_date(format, timestamp) {
+ var d = new Date((timestamp || this.get_timestamp()) * 1000);
+ var date = {
+ "M+": d.getMonth() + 1,
+ "d+": d.getDate(),
+ "h+": d.getHours(),
+ "m+": d.getMinutes(),
+ "s+": d.getSeconds(),
+ "q+": Math.floor((d.getMonth() + 3) / 3),
+ "S+": d.getMilliseconds()
+ };
+ if (/(y+)/i.test(format)) {
+ format = format.replace(RegExp.$1, (d.getFullYear() + '').substr(4 - RegExp.$1.length));
+ }
+ for (var k in date) {
+ if (new RegExp("(" + k + ")").test(format)) {
+ format = format.replace(RegExp.$1, RegExp.$1.length == 1 ? date[k] : ("00" + date[k]).substr(("" + date[k]).length));
+ }
+ }
+ return format;
+ },
+
+ /**
+ * 获取对象、数组的长度、元素个数
+ * obj 要计算长度的元素(object、array、string)
+ */
+ get_length(obj) {
+ var obj_type = typeof obj;
+ if (obj_type == "string") {
+ return obj.length;
+ } else if (obj_type == "object") {
+ var obj_len = 0;
+ for (var i in obj) {
+ obj_len++;
+ }
+ return obj_len;
+ }
+ return false;
+ },
+
+ /**
+ * 价格保留两位小数
+ * price 价格保留两位小数
+ */
+ price_two_decimal(x) {
+ var f_x = parseFloat(x);
+ if (isNaN(f_x)) {
+ return 0;
+ }
+ var f_x = Math.round(x * 100) / 100;
+ var s_x = f_x.toString();
+ var pos_decimal = s_x.indexOf('.');
+ if (pos_decimal < 0) {
+ pos_decimal = s_x.length;
+ s_x += '.';
+ }
+ while (s_x.length <= pos_decimal + 2) {
+ s_x += '0';
+ }
+ return s_x;
+ },
+
+ /**
+ * 默认弱提示方法
+ * msg [string] 提示信息
+ * status [string] 状态 默认error [正确success, 错误error]
+ */
+ showToast(msg, status)
+ {
+ if ((status || 'error') == 'success')
+ {
+ wx.showToast({
+ title: msg,
+ duration: 3000
+ });
+ } else {
+ wx.showToast({
+ image: '/images/default-toast-error.png',
+ title: msg,
+ duration: 3000
+ });
+ }
+ }
+
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/app.json b/public/appmini/old/wechat/app.json
new file mode 100755
index 000000000..f22cf359e
--- /dev/null
+++ b/public/appmini/old/wechat/app.json
@@ -0,0 +1,66 @@
+{
+ "pages": [
+ "pages/index/index",
+ "pages/goods-category/goods-category",
+ "pages/cart/cart",
+ "pages/user/user",
+ "pages/web-view/web-view",
+ "pages/login/login",
+ "pages/paytips/paytips",
+ "pages/goods-search/goods-search",
+ "pages/goods-detail/goods-detail",
+ "pages/goods-attribute/goods-attribute",
+ "pages/buy/buy",
+ "pages/user-address/user-address",
+ "pages/user-address-save/user-address-save",
+ "pages/user-order/user-order",
+ "pages/user-order-detail/user-order-detail",
+ "pages/user-faovr/user-faovr",
+ "pages/user-answer-list/user-answer-list",
+ "pages/answer-list/answer-list",
+ "pages/answer-form/answer-form",
+ "pages/message/message",
+ "pages/user-integral/user-integral",
+ "pages/user-goods-browse/user-goods-browse"
+ ],
+ "window": {
+ "navigationBarTitleText": "{{application_title}}",
+ "navigationBarBackgroundColor": "#d2364c"
+ },
+ "tabBar": {
+ "color": "#8a8a8a",
+ "selectedColor": "#d2364c",
+ "backgroundColor": "#fff",
+ "list": [
+ {
+ "pagePath": "pages/index/index",
+ "iconPath": "/images/nav-icon-home.png",
+ "selectedIconPath": "/images/nav-icon-home-active.png",
+ "text": "首页"
+ },
+ {
+ "pagePath": "pages/goods-category/goods-category",
+ "iconPath": "/images/nav-icon-category.png",
+ "selectedIconPath": "/images/nav-icon-category-active.png",
+ "text": "分类"
+ },
+ {
+ "pagePath": "pages/cart/cart",
+ "iconPath": "/images/nav-icon-cart.png",
+ "selectedIconPath": "/images/nav-icon-cart-active.png",
+ "text": "购物车"
+ },
+ {
+ "pagePath": "pages/user/user",
+ "iconPath": "/images/nav-icon-user.png",
+ "selectedIconPath": "/images/nav-icon-user-active.png",
+ "text": "我的"
+ }
+ ]
+ },
+ "networkTimeout": {
+ "request": 10000,
+ "downloadFile": 10000
+ },
+ "debug": true
+}
diff --git a/public/appmini/old/wechat/app.wxss b/public/appmini/old/wechat/app.wxss
new file mode 100755
index 000000000..37843798b
--- /dev/null
+++ b/public/appmini/old/wechat/app.wxss
@@ -0,0 +1,274 @@
+/* 框架样式覆盖 */
+.a-textarea-control textarea { font-size: 12px; }
+
+/* 公共样式 */
+page {
+ background: #f5f5f5;
+ color: #4a4a4a;
+}
+page, textarea {
+ font-size: 28rpx;
+}
+
+input[type="text"],
+input[type="number"],
+input[type="idcard"],
+input[type="digit"],
+textarea {
+ -webkit-appearance: none;
+ border-radius: 5px;
+}
+
+/* 导航分割 */
+.spacing-nav-title {
+ position: relative;
+ color: #d2364c;
+ text-align: center;
+ background-color: #ffffff;
+ height: 80rpx;
+ line-height: 80rpx;
+}
+.spacing-nav-title .line {
+ display: inline-block;
+ width: 50%;
+ height: 1px;
+ background: #d2364c;
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ -webkit-transform: translate(-50%,-50%);
+ -ms-transform: translate(-50%,-50%);
+ transform: translate(-50%,-50%);
+}
+.spacing-nav-title .text-wrapper {
+ position: relative;
+ display: inline-block;
+ padding: 0 8px;
+ background-color: #ffffff;
+ font-size: 36rpx;
+ font-weight: bold;
+}
+
+/* 模块分割间距 */
+.spacing { padding-top: 20rpx; }
+.spacing-10 { padding-top: 10rpx; }
+.spacing-mb { margin-bottom: 20rpx; }
+.spacing-mt { margin-top: 20rpx; }
+
+/* 在线客服 */
+.customer-service {
+ position: fixed;
+ bottom: 100rpx;
+ right: 0;
+}
+.customer-service image {
+ width: 80rpx;
+ height: 80rpx;
+ margin-right: 20rpx;
+}
+
+
+.drift { position: fixed; left: -1000px; }
+
+.nav-submit-fixed { background: #eee; height: 46px; position: fixed; bottom: 0; z-index: 10; }
+
+.tips { background: #ffffeb url('/images/tips.png') no-repeat 5rpx 12rpx; background-size: 35rpx 35rpx; color: #f7b240; border: 1px solid #faebd2; line-height: 36rpx; padding: 5px 5px 5px 20px; font-size: 26rpx; border-radius: 2px; display: block; }
+
+.data-loding image { width: 60px; height: 60px; background-size: 80% 80% !important; }
+
+
+/* 边框 */
+.br { border: solid 1px #efefef; }
+.br-b { border-bottom: solid 1px #efefef; }
+.br-t { border-top: solid 1px #efefef; }
+.br-l { border-left: solid 1px #efefef; }
+.br-r { border-right: solid 1px #efefef; }
+
+/* 虚线边框 */
+.br-b-dashed { border-bottom: dashed 1px #efefef; }
+.br-t-dashed { border-top: dashed 1px #efefef; }
+.br-l-dashed { border-left: dashed 1px #efefef; }
+.br-r-dashed { border-right: dashed 1px #efefef; }
+
+/* 箭头符号 */
+.arrow-right { background-image: url('data:image/svg+xml;charset=utf-8,'); background-size: 15px 10px; background-repeat: no-repeat; background-position: center right; }
+
+
+/* 常用样式 */
+.fl { float: left; }
+.fr { float: right; }
+.bg-white { background-color: #fff; }
+.wh-auto { width: 100%; }
+.tc { text-align: center; }
+.tl { text-align: left; }
+.tr { text-align: right; }
+.oh { overflow: hidden; }
+.dis-none { display: none; }
+.dis-block { display: block; }
+
+.cr-main { color: #d2364c; }
+.cr-666 { color: #666; }
+.cr-888 { color: #888; }
+.cr-ccc { color: #ccc; }
+.cr-fff { color: #fff; }
+
+.my-btn-default{
+ font-size: 38rpx;
+ color: #fff;
+ border: none;
+ background-color:#d2364c;
+ border-radius: 2px;
+}
+.my-btn-default.btn-disabled{
+ background-color: #a6a6a6;
+ color: #fff;
+}
+.my-btn-gray{
+ font-size: 30rpx;
+ color: #fff;
+ border: none;
+ background-color:#a6a6a6;
+ border-radius: 2px;
+}
+
+/* 文字超出部分使用省略号 */
+.single-text {
+ -o-text-overflow: ellipsis;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ white-space: nowrap;
+ max-width: 100%;
+}
+.multi-text {
+ max-width: 100%;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ display: -webkit-box;
+ -webkit-line-clamp: 2;
+ -webkit-box-orient: vertical;
+}
+
+
+/* 没有数据状态/处理错误/加载中 */
+.no-data-box {
+ padding: 80rpx 0;
+}
+.no-data-box image {
+ width: 160rpx;
+ margin-bottom: 30rpx;
+}
+.no-data-box .no-data-tips {
+ font-size: 28rpx;
+ color: #a6a6a6;
+}
+.no-data-loding {
+ padding-top: 15%;
+ padding-bottom: 10px;
+}
+
+/* 底线 */
+.data-bottom-line{
+ padding: 40rpx;
+ overflow: hidden;
+}
+.data-bottom-line view {
+ width: 33.3%;
+}
+.data-bottom-line .left, .data-bottom-line .right{
+ margin-top: 5px;
+ border-bottom: 1px solid #e1e1e1;
+}
+.data-bottom-line .msg{
+ color: #999;
+ text-align: center;
+ font-size: 24rpx;
+}
+
+/* 业务公共 */
+.copyright {
+ color: #a5a5a5;
+ text-align: center;
+ padding: 20rpx 0;
+}
+.copyright .title {
+ font-size: 30rpx;
+ font-weight: 500;
+ margin-bottom: 5rpx;
+}
+.copyright .text {
+ font-size: 26rpx;
+ font-weight: 400;
+}
+
+.sales-price {
+ color: #f40;
+ font-weight: bold;
+ font-size: 32rpx;
+}
+.original-price {
+ color: #888;
+ font-size: 26rpx;
+ text-decoration: line-through;
+ margin-left: 10rpx;
+}
+
+.submit-fixed {
+ position: fixed;
+ left: 0;
+ bottom: 0;
+ background: #d2364c;
+ color: #fff;
+ border: none;
+ width: 100%;
+}
+
+.bg-main, .bg-primary, .bg-warning {
+ color: #fff;
+ border: 0;
+ font-size: 34rpx;
+}
+.bg-main {
+ background: #d2364c;
+}
+.bg-primary {
+ background: #ed6977;
+}
+.bg-warning {
+ background: #F37B1D;
+}
+.bg-active-main {
+ background: #d2364c !important;
+ color: #fff !important;
+}
+
+.submit-bottom {
+ height: 85rpx;
+ line-height: 85rpx;
+ font-size: 32rpx;
+ border-radius: 0;
+}
+.bg-main.a-button-disabled {
+ background: #fbe0e5;
+ color: #f7b6c2;
+}
+.bg-warning.a-button-disabled {
+ background: #ffcda6;
+ color: #fdae70;
+}
+.bg-primary.a-button-disabled {
+ background: #ffd2d7;
+ color: #ffa0ab;
+}
+
+.nav-back {
+ position: fixed;
+ left: 0;
+ bottom: 10%;
+}
+
+/*
+ 滚动标签高度
+*/
+.scroll-box {
+ height: 100vh;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/components/home-banner/home-banner.js b/public/appmini/old/wechat/components/home-banner/home-banner.js
new file mode 100755
index 000000000..48ad692ba
--- /dev/null
+++ b/public/appmini/old/wechat/components/home-banner/home-banner.js
@@ -0,0 +1,76 @@
+const app = getApp();
+Component({
+ mixins: [],
+ data: {
+ indicator_dots: false,
+ indicator_color: 'rgba(0, 0, 0, .3)',
+ indicator_active_color: '#e31c55',
+ autoplay: true,
+ circular: true,
+ data_list_loding_status: 1,
+ data_bottom_line_status: false,
+ data_list: [],
+ },
+ props: {},
+ didMount() {
+ this.init();
+ },
+ didUpdate() {},
+ didUnmount() {},
+ methods: {
+ // 获取数
+ init() {
+ // 加载loding
+ this.setData({
+ data_list_loding_status: 1,
+ });
+
+ // 加载loding
+ wx.request({
+ url: app.get_request_url("index", "banner"),
+ method: "POST",
+ data: {},
+ dataType: "json",
+ header: { 'content-type': 'application/x-www-form-urlencoded' },
+ success: res => {
+ if (res.data.code == 0) {
+ var data = res.data.data;
+ this.setData({
+ data_list: data,
+ indicator_dots: (data.length > 1),
+ autoplay: (data.length > 1),
+ data_list_loding_status: data.length == 0 ? 0 : 3,
+ data_bottom_line_status: true,
+ });
+ } else {
+ this.setData({
+ data_list_loding_status: 0,
+ data_bottom_line_status: true,
+ });
+
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ this.setData({
+ data_list_loding_status: 2,
+ data_bottom_line_status: true,
+ });
+
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ },
+
+ // 操作事件
+ banner_event(e) {
+ app.operation_event(e);
+ },
+ },
+});
diff --git a/public/appmini/old/wechat/components/home-banner/home-banner.json b/public/appmini/old/wechat/components/home-banner/home-banner.json
new file mode 100755
index 000000000..32640e0dc
--- /dev/null
+++ b/public/appmini/old/wechat/components/home-banner/home-banner.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/components/home-banner/home-banner.wxml b/public/appmini/old/wechat/components/home-banner/home-banner.wxml
new file mode 100755
index 000000000..f01a2f746
--- /dev/null
+++ b/public/appmini/old/wechat/components/home-banner/home-banner.wxml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/components/home-banner/home-banner.wxss b/public/appmini/old/wechat/components/home-banner/home-banner.wxss
new file mode 100755
index 000000000..c3a6ff6f0
--- /dev/null
+++ b/public/appmini/old/wechat/components/home-banner/home-banner.wxss
@@ -0,0 +1,3 @@
+.banner {
+ height: 320rpx!important;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/components/home-nav/home-nav.js b/public/appmini/old/wechat/components/home-nav/home-nav.js
new file mode 100755
index 000000000..61d434e34
--- /dev/null
+++ b/public/appmini/old/wechat/components/home-nav/home-nav.js
@@ -0,0 +1,68 @@
+const app = getApp();
+Component({
+ mixins: [],
+ props: {},
+ data: {
+ data_list_loding_status: 1,
+ data_bottom_line_status: false,
+ data_list: [],
+ },
+ didMount() {
+ this.init();
+ },
+ didUpdate(){},
+ didUnmount(){},
+ methods:{
+ init() {
+ // 加载loding
+ this.setData({
+ data_list_loding_status: 1,
+ });
+
+ // 加载loding
+ wx.request({
+ url: app.get_request_url("index", "navigation"),
+ method: "POST",
+ data: {},
+ dataType: "json",
+ header: { 'content-type': 'application/x-www-form-urlencoded' },
+ success: res => {
+ if (res.data.code == 0) {
+ var data = res.data.data;
+ this.setData({
+ data_list: data,
+ data_list_loding_status: data.length == 0 ? 0 : 3,
+ data_bottom_line_status: true,
+ });
+ } else {
+ this.setData({
+ data_list_loding_status: 0,
+ data_bottom_line_status: true,
+ });
+
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ this.setData({
+ data_list_loding_status: 2,
+ data_bottom_line_status: true,
+ });
+
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ },
+
+ // 操作事件
+ nav_event(e) {
+ app.operation_event(e);
+ },
+ }
+});
diff --git a/public/appmini/old/wechat/components/home-nav/home-nav.json b/public/appmini/old/wechat/components/home-nav/home-nav.json
new file mode 100755
index 000000000..32640e0dc
--- /dev/null
+++ b/public/appmini/old/wechat/components/home-nav/home-nav.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/components/home-nav/home-nav.wxml b/public/appmini/old/wechat/components/home-nav/home-nav.wxml
new file mode 100755
index 000000000..a9e9667f8
--- /dev/null
+++ b/public/appmini/old/wechat/components/home-nav/home-nav.wxml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
diff --git a/public/appmini/old/wechat/components/home-nav/home-nav.wxss b/public/appmini/old/wechat/components/home-nav/home-nav.wxss
new file mode 100755
index 000000000..3547f4a38
--- /dev/null
+++ b/public/appmini/old/wechat/components/home-nav/home-nav.wxss
@@ -0,0 +1,20 @@
+.data-list {
+ overflow: hidden;
+}
+.data-list .items {
+ width: calc(25% - 60rpx);
+ float: left;
+ padding: 30rpx;
+}
+.items-content {
+ border-radius: 50%;
+ padding: 20rpx;
+}
+.data-list .items image {
+ width: 80rpx !important;
+ height: 80rpx !important;
+}
+.data-list .items .title {
+ margin-top: 10rpx;
+ font-size: 32rpx;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/images/buy-address-divider.png b/public/appmini/old/wechat/images/buy-address-divider.png
new file mode 100755
index 000000000..60a8f7875
Binary files /dev/null and b/public/appmini/old/wechat/images/buy-address-divider.png differ
diff --git a/public/appmini/old/wechat/images/customer-service.png b/public/appmini/old/wechat/images/customer-service.png
new file mode 100755
index 000000000..b21af423f
Binary files /dev/null and b/public/appmini/old/wechat/images/customer-service.png differ
diff --git a/public/appmini/old/wechat/images/default-cart-empty.png b/public/appmini/old/wechat/images/default-cart-empty.png
new file mode 100755
index 000000000..b7a0596c2
Binary files /dev/null and b/public/appmini/old/wechat/images/default-cart-empty.png differ
diff --git a/public/appmini/old/wechat/images/default-round-error-icon.png b/public/appmini/old/wechat/images/default-round-error-icon.png
new file mode 100755
index 000000000..3f2fd1b70
Binary files /dev/null and b/public/appmini/old/wechat/images/default-round-error-icon.png differ
diff --git a/public/appmini/old/wechat/images/default-round-success-icon.png b/public/appmini/old/wechat/images/default-round-success-icon.png
new file mode 100755
index 000000000..029022a99
Binary files /dev/null and b/public/appmini/old/wechat/images/default-round-success-icon.png differ
diff --git a/public/appmini/old/wechat/images/default-select-active-icon.png b/public/appmini/old/wechat/images/default-select-active-icon.png
new file mode 100755
index 000000000..12dfcfe38
Binary files /dev/null and b/public/appmini/old/wechat/images/default-select-active-icon.png differ
diff --git a/public/appmini/old/wechat/images/default-select-icon.png b/public/appmini/old/wechat/images/default-select-icon.png
new file mode 100755
index 000000000..466c0ebc0
Binary files /dev/null and b/public/appmini/old/wechat/images/default-select-icon.png differ
diff --git a/public/appmini/old/wechat/images/default-toast-error.png b/public/appmini/old/wechat/images/default-toast-error.png
new file mode 100644
index 000000000..83eadd245
Binary files /dev/null and b/public/appmini/old/wechat/images/default-toast-error.png differ
diff --git a/public/appmini/old/wechat/images/default-user.png b/public/appmini/old/wechat/images/default-user.png
new file mode 100755
index 000000000..ccb06c0ec
Binary files /dev/null and b/public/appmini/old/wechat/images/default-user.png differ
diff --git a/public/appmini/old/wechat/images/empty.png b/public/appmini/old/wechat/images/empty.png
new file mode 100755
index 000000000..71fed2f12
Binary files /dev/null and b/public/appmini/old/wechat/images/empty.png differ
diff --git a/public/appmini/old/wechat/images/error.png b/public/appmini/old/wechat/images/error.png
new file mode 100755
index 000000000..db1478bb2
Binary files /dev/null and b/public/appmini/old/wechat/images/error.png differ
diff --git a/public/appmini/old/wechat/images/goods-detail-favor-icon-0.png b/public/appmini/old/wechat/images/goods-detail-favor-icon-0.png
new file mode 100755
index 000000000..b1c8a5e13
Binary files /dev/null and b/public/appmini/old/wechat/images/goods-detail-favor-icon-0.png differ
diff --git a/public/appmini/old/wechat/images/goods-detail-favor-icon-1.png b/public/appmini/old/wechat/images/goods-detail-favor-icon-1.png
new file mode 100755
index 000000000..5821e3e94
Binary files /dev/null and b/public/appmini/old/wechat/images/goods-detail-favor-icon-1.png differ
diff --git a/public/appmini/old/wechat/images/goods-detail-home-icon.png b/public/appmini/old/wechat/images/goods-detail-home-icon.png
new file mode 100755
index 000000000..a1d37089e
Binary files /dev/null and b/public/appmini/old/wechat/images/goods-detail-home-icon.png differ
diff --git a/public/appmini/old/wechat/images/goods-detail-share-icon.png b/public/appmini/old/wechat/images/goods-detail-share-icon.png
new file mode 100755
index 000000000..329e89b7a
Binary files /dev/null and b/public/appmini/old/wechat/images/goods-detail-share-icon.png differ
diff --git a/public/appmini/old/wechat/images/goods-detail-shop-icon.png b/public/appmini/old/wechat/images/goods-detail-shop-icon.png
new file mode 100755
index 000000000..d8f173b7d
Binary files /dev/null and b/public/appmini/old/wechat/images/goods-detail-shop-icon.png differ
diff --git a/public/appmini/old/wechat/images/home-consulting-image.jpg b/public/appmini/old/wechat/images/home-consulting-image.jpg
new file mode 100755
index 000000000..9aa888ccf
Binary files /dev/null and b/public/appmini/old/wechat/images/home-consulting-image.jpg differ
diff --git a/public/appmini/old/wechat/images/nav-icon-cart-active.png b/public/appmini/old/wechat/images/nav-icon-cart-active.png
new file mode 100755
index 000000000..34b341f6d
Binary files /dev/null and b/public/appmini/old/wechat/images/nav-icon-cart-active.png differ
diff --git a/public/appmini/old/wechat/images/nav-icon-cart.png b/public/appmini/old/wechat/images/nav-icon-cart.png
new file mode 100755
index 000000000..90cf0b224
Binary files /dev/null and b/public/appmini/old/wechat/images/nav-icon-cart.png differ
diff --git a/public/appmini/old/wechat/images/nav-icon-category-active.png b/public/appmini/old/wechat/images/nav-icon-category-active.png
new file mode 100755
index 000000000..8db743b75
Binary files /dev/null and b/public/appmini/old/wechat/images/nav-icon-category-active.png differ
diff --git a/public/appmini/old/wechat/images/nav-icon-category.png b/public/appmini/old/wechat/images/nav-icon-category.png
new file mode 100755
index 000000000..b0464d183
Binary files /dev/null and b/public/appmini/old/wechat/images/nav-icon-category.png differ
diff --git a/public/appmini/old/wechat/images/nav-icon-home-active.png b/public/appmini/old/wechat/images/nav-icon-home-active.png
new file mode 100755
index 000000000..3d62e9114
Binary files /dev/null and b/public/appmini/old/wechat/images/nav-icon-home-active.png differ
diff --git a/public/appmini/old/wechat/images/nav-icon-home.png b/public/appmini/old/wechat/images/nav-icon-home.png
new file mode 100755
index 000000000..b90a704e3
Binary files /dev/null and b/public/appmini/old/wechat/images/nav-icon-home.png differ
diff --git a/public/appmini/old/wechat/images/nav-icon-user-active.png b/public/appmini/old/wechat/images/nav-icon-user-active.png
new file mode 100755
index 000000000..2ef2eaef0
Binary files /dev/null and b/public/appmini/old/wechat/images/nav-icon-user-active.png differ
diff --git a/public/appmini/old/wechat/images/nav-icon-user.png b/public/appmini/old/wechat/images/nav-icon-user.png
new file mode 100755
index 000000000..e8531f430
Binary files /dev/null and b/public/appmini/old/wechat/images/nav-icon-user.png differ
diff --git a/public/appmini/old/wechat/images/search-asc-icon.png b/public/appmini/old/wechat/images/search-asc-icon.png
new file mode 100755
index 000000000..0b16b29ca
Binary files /dev/null and b/public/appmini/old/wechat/images/search-asc-icon.png differ
diff --git a/public/appmini/old/wechat/images/search-default-icon.png b/public/appmini/old/wechat/images/search-default-icon.png
new file mode 100755
index 000000000..d91a76411
Binary files /dev/null and b/public/appmini/old/wechat/images/search-default-icon.png differ
diff --git a/public/appmini/old/wechat/images/search-desc-icon.png b/public/appmini/old/wechat/images/search-desc-icon.png
new file mode 100755
index 000000000..9e79244e9
Binary files /dev/null and b/public/appmini/old/wechat/images/search-desc-icon.png differ
diff --git a/public/appmini/old/wechat/images/search-submit-icon.png b/public/appmini/old/wechat/images/search-submit-icon.png
new file mode 100755
index 000000000..af5205981
Binary files /dev/null and b/public/appmini/old/wechat/images/search-submit-icon.png differ
diff --git a/public/appmini/old/wechat/images/tips.png b/public/appmini/old/wechat/images/tips.png
new file mode 100755
index 000000000..bf59c3cf1
Binary files /dev/null and b/public/appmini/old/wechat/images/tips.png differ
diff --git a/public/appmini/old/wechat/images/upload.png b/public/appmini/old/wechat/images/upload.png
new file mode 100755
index 000000000..98c89f040
Binary files /dev/null and b/public/appmini/old/wechat/images/upload.png differ
diff --git a/public/appmini/old/wechat/images/user-address.png b/public/appmini/old/wechat/images/user-address.png
new file mode 100755
index 000000000..b3d1b7530
Binary files /dev/null and b/public/appmini/old/wechat/images/user-address.png differ
diff --git a/public/appmini/old/wechat/images/user-head-message-icon.png b/public/appmini/old/wechat/images/user-head-message-icon.png
new file mode 100755
index 000000000..c1b03e367
Binary files /dev/null and b/public/appmini/old/wechat/images/user-head-message-icon.png differ
diff --git a/public/appmini/old/wechat/images/user-index-nav-order-icon-1.png b/public/appmini/old/wechat/images/user-index-nav-order-icon-1.png
new file mode 100755
index 000000000..b17897383
Binary files /dev/null and b/public/appmini/old/wechat/images/user-index-nav-order-icon-1.png differ
diff --git a/public/appmini/old/wechat/images/user-index-nav-order-icon-2.png b/public/appmini/old/wechat/images/user-index-nav-order-icon-2.png
new file mode 100755
index 000000000..fb20b6866
Binary files /dev/null and b/public/appmini/old/wechat/images/user-index-nav-order-icon-2.png differ
diff --git a/public/appmini/old/wechat/images/user-index-nav-order-icon-3.png b/public/appmini/old/wechat/images/user-index-nav-order-icon-3.png
new file mode 100755
index 000000000..61483e02c
Binary files /dev/null and b/public/appmini/old/wechat/images/user-index-nav-order-icon-3.png differ
diff --git a/public/appmini/old/wechat/images/user-index-nav-order-icon-4.png b/public/appmini/old/wechat/images/user-index-nav-order-icon-4.png
new file mode 100755
index 000000000..db15f17c0
Binary files /dev/null and b/public/appmini/old/wechat/images/user-index-nav-order-icon-4.png differ
diff --git a/public/appmini/old/wechat/images/user-nav-address-icon.png b/public/appmini/old/wechat/images/user-nav-address-icon.png
new file mode 100755
index 000000000..dfcf810c5
Binary files /dev/null and b/public/appmini/old/wechat/images/user-nav-address-icon.png differ
diff --git a/public/appmini/old/wechat/images/user-nav-answer-icon.png b/public/appmini/old/wechat/images/user-nav-answer-icon.png
new file mode 100755
index 000000000..37539afa9
Binary files /dev/null and b/public/appmini/old/wechat/images/user-nav-answer-icon.png differ
diff --git a/public/appmini/old/wechat/images/user-nav-cache-icon.png b/public/appmini/old/wechat/images/user-nav-cache-icon.png
new file mode 100755
index 000000000..782ff89de
Binary files /dev/null and b/public/appmini/old/wechat/images/user-nav-cache-icon.png differ
diff --git a/public/appmini/old/wechat/images/user-nav-customer-service-icon.png b/public/appmini/old/wechat/images/user-nav-customer-service-icon.png
new file mode 100755
index 000000000..53750e55c
Binary files /dev/null and b/public/appmini/old/wechat/images/user-nav-customer-service-icon.png differ
diff --git a/public/appmini/old/wechat/images/user-nav-faovr-icon.png b/public/appmini/old/wechat/images/user-nav-faovr-icon.png
new file mode 100755
index 000000000..9d3edcab1
Binary files /dev/null and b/public/appmini/old/wechat/images/user-nav-faovr-icon.png differ
diff --git a/public/appmini/old/wechat/images/user-nav-order-icon.png b/public/appmini/old/wechat/images/user-nav-order-icon.png
new file mode 100755
index 000000000..14725a888
Binary files /dev/null and b/public/appmini/old/wechat/images/user-nav-order-icon.png differ
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/CHANGELOG.md b/public/appmini/old/wechat/node_modules/mini-antui/CHANGELOG.md
new file mode 100755
index 000000000..dd519ab98
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/CHANGELOG.md
@@ -0,0 +1,207 @@
+## 0.4.3
+
+`2018-11-07`
+
+- **Enhancement**
+ - `tabs`新增`tabBarCls`tabBar自定义样式class
+ - `tabs`新增`duration`控制滑动动画时长
+ - `calendar`date参数兼容IOS格式要求
+
+## 0.4.2
+
+`2018-10-31`
+
+- **Enhancement**
+ - `amount-input`组件type属性新增`digit`类型
+ - `vtabs`新增`activeTab`,`onTabClick`和`onChange`属性([#125](https://github.com/ant-mini-program/mini-antui/issues/125))
+
+## 0.4.1
+
+`2018-10-29`
+
+- **Enhancement**
+ - `notice`新增`enableMarquee`和`marqueeProps`属性([#140](https://github.com/ant-mini-program/mini-antui/issues/140))
+
+- **Bug Fix**
+ - 修复`message`type为`fail`时的白屏问题([#152](https://github.com/ant-mini-program/mini-antui/issues/152))
+
+## 0.4.0
+
+`2018-10-23`
+
+- **Feature**
+ - 新增`am-checkbox`组件
+ - 新增`badge`组件
+
+- **Enhancement**
+ - `calendar`组件`tabs`属性新增`disable`字段,新增`onSelectHasDisableDat`属性([#108](https://github.com/ant-mini-program/mini-antui/issues/108))
+
+- **Bug Fix**
+ - 修复`vtabs`在安卓下出现滚动误差的问题
+ - 修复`tabs`在`tabs`属性变化时没有重新计算宽度导致的滚动不正常问题
+
+## 0.3.13
+
+`2018-10-18`
+
+- **Bug Fix**
+ - 修复`swipe-action`在didUpdate时陷入死循环的问题
+ - 修复`vtabs`tabs数据变化没有响应的问题
+
+## 0.3.12
+
+`2018-10-12`
+
+- **Enhancement**
+ - `vtabs`新增`badgeType`和`badgeText`属性([#92](https://github.com/ant-mini-program/mini-antui/issues/92))
+
+## 0.3.11
+
+`2018-10-10`
+
+- **Bug Fix**
+ - 修复`search-bar`在IPhone X下面出现滚动的问题([#113](https://github.com/ant-mini-program/mini-antui/issues/113))
+ - 修复`stepper`在重置初始值时操作按钮状态不改变的bug([#111](https://github.com/ant-mini-program/mini-antui/issues/111))
+
+- **Enhancement**
+ - `page-result`图标升级到最新版本
+ - `input-item`增大清除icon点击响应范围
+
+## 0.3.10
+
+`2018-10-08`
+
+- **Enhancement**
+ - 解决`list`,`input-item`在安卓下线条较粗的问题
+
+## 0.3.9
+
+`2018-09-27`
+
+- **Bug Fix**
+ - 修复`input-item`在失去焦点时清除按钮仍旧显示的问题
+
+## 0.3.8
+
+`2018-09-26`
+
+- **Bug Fix**
+ - 修复`filter`组件单选时需要反选取消选择的问题
+
+- **Feature**
+ - 新增`picker-item`组件
+
+- **Enhancement**
+ - `tabs`新增`activeCls`属性,用来表示激活tabbar的自定义class([#87](https://github.com/ant-mini-program/mini-antui/issues/87))
+ - `input-item`新增`clear`、`onClear`属性,组件内支持清除输入功能([#84](https://github.com/ant-mini-program/mini-antui/issues/84))
+ - `list-item` onClick回调新增target参数,用来支持自定义dataset([#85](https://github.com/ant-mini-program/mini-antui/issues/85))
+
+## 0.3.7
+
+`2018-09-25`
+
+- **Bug Fix**
+ - 修复了`input-item`组件在失去焦点等事件中无dataset的问题([#66](https://github.com/ant-mini-program/mini-antui/issues/66))
+ - 修复`popup`组件mask定位为absolut导致的页面滚动时mask跟着滚动的bug
+
+- **Enhancement**
+ - `popup`新增disableScroll属性以适应不同业务场景
+ - 完善`swipe-action`的示例代码
+ - 文档更新,添加体验二维码
+
+## 0.3.6
+
+`2018-09-13`
+
+- **Enhancement**
+ - 新增tips组件的类型
+
+## 0.3.5
+
+`2018-08-29`
+
+- **Bug Fix**
+ - 修复`search-bar`点击icon无效的bug
+ - 修复`search-bar`苹果输入法中间态无法清除placeholder的bug
+
+- **Enhancement**
+ - 优化`list`组件样式
+
+## 0.3.4
+
+`2018-08-16`
+
+- **Enhancement**
+ - 优化`tabs`组件闪烁问题
+ - `face-detection`组件增加最小旋转角度属性
+
+## 0.3.3
+
+`2018-08-10`
+
+- **Feature**
+ - `tabs`组件新增`activeTab`属性,用来指定当前激活tab
+
+## 0.3.2
+
+`2018-08-07`
+
+- **Feature**
+ - 新增`popup`弹出菜单组件
+ - `face-detection`组件新增活体检测功能
+
+## 0.3.1
+
+`2018-07-27`
+
+- **Feature**
+ - `face-detection`组件新增`appName`和`serviceName`字段
+
+## 0.3.0
+
+`2018-07-26`
+
+- **Feature**
+ - 新增`face-detection`组件
+ - 新增`footer`组件
+ - `page-result`组件增加slot,方便开发者个性化定制区域内容
+
+- **Enhancement**
+ - 优化`calendar`组件在初次渲染时的闪烁问题
+ - 优化`swipe-action`右侧按钮宽度自适应文本内容
+
+
+## 0.2.0
+
+`2018-07-11`
+
+- **Feature**
+
+ - 新增`vtab组件`
+
+- **Enhancement**
+
+ - 优化`swipe-action`组件性能
+ - 解决`tabs`组件在初次渲染时的页面闪烁问题
+
+## 0.1.0
+
+`2018-06-21`
+
+
+- **Feature**
+
+ - 新增`steps`、`popover`、`amount-input`、`calendar`组件;
+ - `tabs`组件`tabs`属性新增`badgeType`属性、新增`showPlus`、`onPlusClick`属性
+ - `modal`组件新增`closeType`属性,以适应不同的背景颜色
+
+- **Bug Fix**
+
+ - 修复`grid`、`modal`、`input-item`组件样式问题
+
+
+## 0.0.13
+
+`2018-05-09`
+
+首次发布小程序版antui组件库
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/LICENSE b/public/appmini/old/wechat/node_modules/mini-antui/LICENSE
new file mode 100755
index 000000000..55687a991
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/LICENSE
@@ -0,0 +1,22 @@
+MIT LICENSE
+
+Copyright (c) 2018-present Alipay.com, https://www.alipay.com/
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/README.md b/public/appmini/old/wechat/node_modules/mini-antui/README.md
new file mode 100755
index 000000000..222a470c4
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/README.md
@@ -0,0 +1,52 @@
+
+
+
+
+# mini-antui
+
+## 链接
+- [mini-antui官网文档](https://docs.alipay.com/mini/component-ext/overview-ext-common)
+- [支付宝小程序](https://mini.open.alipay.com/channel/miniIndex.htm)
+- [开发工具](https://docs.alipay.com/mini/ide/overview)
+
+## 特性
+
+- 基于`Advance Design`设计规范
+- 使用[支付宝小程序](https://mini.open.alipay.com/channel/miniIndex.htm)开发
+
+## 预览
+
+用[小程序开发者工具](https://docs.alipay.com/mini/ide/overview)打开项目
+
+## 安装
+
+```bash
+$ npm install mini-antui --save
+```
+
+## 使用
+
+在页面json中文件中进行注册,如card组件的注册如下所示:
+
+```json
+{
+ "usingComponents": {
+ "card": "mini-antui/es/card/index",
+ }
+}
+```
+
+在axml文件中进行调用:
+```html
+
+```
+
+## 贡献
+
+如果你有好的意见或建议,欢迎给我们提[issue](https://github.com/ant-mini-program/mini-antui/issues)。
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/_util/fmtEvent.js b/public/appmini/old/wechat/node_modules/mini-antui/es/_util/fmtEvent.js
new file mode 100755
index 000000000..713153c4a
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/_util/fmtEvent.js
@@ -0,0 +1,14 @@
+var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+export default function fmtEvent(props, e) {
+ var dataset = {};
+ for (var key in props) {
+ if (/data-/gi.test(key)) {
+ dataset[key.replace(/data-/gi, '')] = props[key];
+ }
+ }
+ return _extends({}, e, {
+ currentTarget: { dataset: dataset },
+ target: { dataset: dataset, targetDataset: dataset }
+ });
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/am-checkbox/index.acss b/public/appmini/old/wechat/node_modules/mini-antui/es/am-checkbox/index.acss
new file mode 100755
index 000000000..863b1ffb9
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/am-checkbox/index.acss
@@ -0,0 +1,68 @@
+.am-checkbox {
+ position: relative;
+ height: 22px;
+ width: 22px;
+ display: inline-block;
+}
+
+.am-checkbox-value {
+ position: absolute;
+ z-index: 1;
+ border-radius: 50%;
+ opacity: 0;
+}
+
+.am-checkbox-synthetic {
+ position: absolute;
+ z-index: 2;
+ pointer-events: none;
+ top: 0;
+ left: 0;
+ border-radius: 50%;
+ height: 100%;
+ width: 100%;
+}
+
+.am-checkbox-synthetic::before {
+ position: absolute;
+ left: 0;
+ top: 0;
+ height: 200%;
+ width: 200%;
+ display: block;
+ box-sizing: border-box;
+ border-radius: 50%;
+ content: '';
+ transform-origin: 0 0;
+ transform: scale(0.5);
+ border: 1px solid #c9c9c9;
+}
+
+.am-checkbox-value.a-checkbox-checked + .am-checkbox-synthetic::before {
+ background-color: #108ee9;
+ border-color: #108ee9;
+ border-width: 0;
+}
+
+.am-checkbox-value.a-checkbox-checked + .am-checkbox-synthetic::after {
+ position: absolute;
+ display: block;
+ z-index: 999;
+ content: '';
+ top: 4px;
+ right: 8px;
+ width: 5px;
+ height: 10px;
+ border: 2px solid #fff;
+ border-width: 0 1px 1px 0;
+ transform: rotate(45deg);
+}
+
+.am-checkbox-value.a-checkbox-disabled + .am-checkbox-synthetic::before {
+ border: 1px solid #ccc;
+ background-color: #e1e1e1;
+}
+
+.am-checkbox-value.a-checkbox-disabled + .am-checkbox-synthetic::after {
+ border-color: #adadad;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/am-checkbox/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/am-checkbox/index.axml
new file mode 100755
index 000000000..49f693103
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/am-checkbox/index.axml
@@ -0,0 +1,11 @@
+
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/am-checkbox/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/am-checkbox/index.js
new file mode 100755
index 000000000..830153dd4
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/am-checkbox/index.js
@@ -0,0 +1,17 @@
+import fmtEvent from '../_util/fmtEvent';
+
+Component({
+ props: {
+ value: '',
+ checked: false,
+ disabled: false,
+ onChange: function onChange() {},
+ id: ''
+ },
+ methods: {
+ onChange: function onChange(e) {
+ var event = fmtEvent(this.props, e);
+ this.props.onChange(event);
+ }
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/am-checkbox/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/am-checkbox/index.json
new file mode 100755
index 000000000..32640e0dc
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/am-checkbox/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/amount-input/index.acss b/public/appmini/old/wechat/node_modules/mini-antui/es/amount-input/index.acss
new file mode 100755
index 000000000..85cda0b99
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/amount-input/index.acss
@@ -0,0 +1,95 @@
+.am-amount {
+ box-sizing: border-box;
+ height: 173px;
+ width: 100%;
+ padding: 16px;
+ background: #fff;
+}
+
+.am-amount-title {
+ height: 24px;
+ line-height: 24px;
+ color: #333;
+ font-size: 17px;
+}
+
+.am-amount-synthetic {
+ position: absolute;
+ top: 0;
+ left: 0;
+ display: flex;
+}
+
+.am-amount-input {
+ margin-top: 16px;
+ padding-bottom: 16px;
+ display: flex;
+ align-items: center;
+ width: 100%;
+ height: 48px;
+ position: relative;
+ line-height: 48px;
+ border-bottom: 1rpx solid #eee;
+}
+
+.am-amount-symbol {
+ width: 18px;
+ font-family: PingFang SC;
+ font-size: 30px;
+ color: #333;
+}
+
+.am-amount-placeholder {
+ margin-left: 6px;
+ color: #ccc;
+ font-size: 24px;
+}
+
+.am-amount-value {
+ padding: 0 0 0 24px;
+ box-sizing: border-box;
+ z-index: 2;
+ height: 48px;
+ line-height: 48px;
+ vertical-align: middle;
+ background-color: transparent;
+ font-size: 48px;
+ font-weight: 500;
+}
+
+.am-amount-clear {
+ visibility: hidden;
+ width: 28px;
+ height: 28px;
+}
+
+.am-amount-clear icon {
+ display: flex;
+ height: 100%;
+ justify-content: center;
+ align-items: center;
+}
+
+.am-amount-clear-show {
+ visibility: visible;
+}
+
+.am-amount-footer {
+ padding: 16px 0;
+ display: flex;
+}
+
+.am-amount-extra {
+ flex: 1;
+ height: 20px;
+ line-height: 20px;
+ color: #999;
+ font-size: 14px;
+}
+
+.am-amount-btn {
+ width: 120px;
+ text-align: right;
+ color: #108ee9;
+ font-size: 14px;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/amount-input/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/amount-input/index.axml
new file mode 100755
index 000000000..1a8ce32d3
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/amount-input/index.axml
@@ -0,0 +1,26 @@
+
+ {{title}}
+
+
+ ¥
+ {{placeholder}}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/amount-input/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/amount-input/index.js
new file mode 100755
index 000000000..7319a473e
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/amount-input/index.js
@@ -0,0 +1,56 @@
+import fmtEvent from '../_util/fmtEvent';
+
+Component({
+ props: {
+ type: 'number',
+ className: '',
+ focus: false,
+ placeholder: '',
+ value: ''
+ },
+ data: {
+ _focus: false
+ },
+ methods: {
+ onInput: function onInput(e) {
+ var event = fmtEvent(this.props, e);
+ if (this.props.onInput) {
+ this.props.onInput(event);
+ }
+ },
+ onConfirm: function onConfirm(e) {
+ var event = fmtEvent(this.props, e);
+ if (this.props.onConfirm) {
+ this.props.onConfirm(event);
+ }
+ },
+ onButtonClick: function onButtonClick() {
+ if (this.onButtonClick) {
+ this.props.onButtonClick();
+ }
+ },
+ onFocus: function onFocus(e) {
+ this.setData({
+ _focus: true
+ });
+ var event = fmtEvent(this.props, e);
+ if (this.props.onFocus) {
+ this.props.onFocus(event);
+ }
+ },
+ onBlur: function onBlur(e) {
+ this.setData({
+ _focus: false
+ });
+ var event = fmtEvent(this.props, e);
+ if (this.props.onBlur) {
+ this.props.onBlur(event);
+ }
+ },
+ onClearTap: function onClearTap() {
+ if (this.props.onClear) {
+ this.props.onClear('');
+ }
+ }
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/amount-input/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/amount-input/index.json
new file mode 100755
index 000000000..32640e0dc
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/amount-input/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/badge/index.acss b/public/appmini/old/wechat/node_modules/mini-antui/es/badge/index.acss
new file mode 100755
index 000000000..6da9ea571
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/badge/index.acss
@@ -0,0 +1,41 @@
+.am-badge {
+ display: inline-block;
+ position: relative;
+ vertical-align: middle;
+ line-height: 1;
+}
+
+.am-badge-text {
+ display: inline-block;
+ position: absolute;
+ right: 0;
+ transform: translate(50%, -50%);
+ top: 0px;
+ min-width: 16px;
+ padding: 0;
+ height: 16px;
+ line-height: 16px;
+ text-align: center;
+ background-color: #FF3B30;
+ border-radius: 16px;
+ color: #fff;
+ font-size: 10px;
+}
+
+.am-badge-text.am-badge-double {
+ padding: 0 4px;
+}
+
+.am-badge-not-a-wrapper .am-badge-text {
+ position: relative;
+ top: auto;
+ right: auto;
+ transform: translateX(0);
+}
+
+.am-badge-text.is-dot {
+ padding: 0;
+ width: 10px;
+ min-width: 10px;
+ height: 10px;
+}
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/badge/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/badge/index.axml
new file mode 100755
index 000000000..d460924f5
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/badge/index.axml
@@ -0,0 +1,10 @@
+
+
+ {{typeof text === 'number' && text > overflowCount ? overflowCount + '+' : text }}
+
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/badge/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/badge/index.js
new file mode 100755
index 000000000..626efaf4a
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/badge/index.js
@@ -0,0 +1,8 @@
+Component({
+ props: {
+ className: '',
+ overflowCount: 99,
+ text: '',
+ dot: false
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/badge/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/badge/index.json
new file mode 100755
index 000000000..32640e0dc
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/badge/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/calendar/index.acss b/public/appmini/old/wechat/node_modules/mini-antui/es/calendar/index.acss
new file mode 100755
index 000000000..7bc2867d7
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/calendar/index.acss
@@ -0,0 +1,188 @@
+.am-calendar {
+ background-color: #fff;
+ padding-top: 10px;
+}
+
+.am-calendar-months {
+ display: flex;
+ box-sizing: border-box;
+ padding: 0 26px;
+ align-items: center;
+ height: 28px;
+}
+
+.am-calendar-prev-month,
+.am-calendar-next-month {
+ display: flex;
+ width: 40px;
+ font-size: 20px;
+}
+
+.am-calendar-prev-month {
+ justify-content: flex-start;
+}
+
+.am-calendar-next-month {
+ justify-content: flex-end;
+}
+
+.am-calendar-arrow {
+ height: 28px;
+ width: 12px;
+ background-image: url('https://gw.alipayobjects.com/zos/rmsportal/vYcMhkfyHRIOeVXWdcPe.png');
+ background-size: 8px 14px;
+ background-position: left center;
+ background-repeat: no-repeat;
+}
+
+.am-calendar-arrow.next {
+ transform: rotate(180deg);
+}
+
+.am-calendar-selected-month {
+ flex: 1;
+ text-align: center;
+ font-size: 20px;
+ font-weight: 600;
+ color: #333;
+}
+
+.am-calendar-days {
+ display: flex;
+ padding: 14px 10px 9px;
+ border-bottom: 1rpx solid #eee;
+ height: 20px;
+ line-height: 20px;
+}
+
+.am-calendar-day {
+ flex: 1;
+ text-align: center;
+ color: #333;
+ font-size: 14px;
+}
+
+.am-calendar-dates {
+ display: flex;
+ flex-direction: column;
+}
+
+.am-calendar-week {
+ margin-bottom: 17px;
+ display: flex;
+ flex-direction: row;
+ padding: 0 10px;
+}
+
+.am-calendar-week:first-child {
+ margin-top: 12px;
+}
+
+.am-calendar-date-wrap {
+ position: relative;
+ text-align: center;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ height: 42px;
+ flex: 1;
+}
+
+.am-calendar-date {
+ text-align: center;
+ height: 23px;
+ line-height: 23px;
+ font-size: 19px;
+ font-family: 'Helvetica';
+ color: #333;
+}
+
+.am-calendar-tag {
+ position: absolute;
+ top: 21px;
+ width: 42px;
+ overflow: hidden;
+ text-overflow: hidden;
+ white-space: nowrap;
+ color: #f5a623;
+ font-size: 10px;
+ font-weight: 500;
+}
+
+.am-calendar-today {
+ color: #108ee9;
+}
+
+.am-calendar-gray {
+ color: #ccc;
+}
+
+.am-calendar-selected .am-calendar-block {
+ position: absolute;
+ left: calc(50% - 21px);
+ top: calc(50% - 10px);
+ transform: translateY(-50%);
+ width: 42px;
+ height: 42px;
+ background: #309EF2;
+ border-radius: 2px;
+}
+
+.am-calendar-middle.is-range .am-calendar-block {
+ position: absolute;
+ left: 0;
+ top: calc(50% - 10px);
+ transform: translateY(-50%);
+ height: 42px;
+ background: #309EF2;
+ width: 100%;
+ border-radius: 0;
+}
+
+.am-calendar-start.is-range .am-calendar-block {
+ position: absolute;
+ left: calc(50% - 21px);
+ top: calc(50% - 10px);
+ transform: translateY(-50%);
+ width: 100%;
+ height: 42px;
+ background: #309EF2;
+ border-radius: 2px 0 0 2px;
+}
+
+.am-calendar-end.is-range .am-calendar-block {
+ position: absolute;
+ left: 0;
+ top: calc(50% - 10px);
+ transform: translateY(-50%);
+ width: calc(50% + 21px);
+ height: 42px;
+ background: #309EF2;
+ border-radius: 0 2px 2px 0;
+}
+
+.am-calendar-selected .am-calendar-block.has-tag,
+.am-calendar-start .am-calendar-block.has-tag,
+.am-calendar-middle .am-calendar-block.has-tag,
+.am-calendar-end .am-calendar-block.has-tag {
+ top: calc(50% - 7px);
+}
+
+.am-calendar-selected .am-calendar-date,
+.am-calendar-start .am-calendar-date,
+.am-calendar-middle .am-calendar-date,
+.am-calendar-end .am-calendar-date {
+ position: relative;
+ color: #fff;
+}
+
+.am-calendar-selected .am-calendar-tag,
+.am-calendar-start .am-calendar-tag,
+.am-calendar-middle .am-calendar-tag,
+.am-calendar-end .am-calendar-tag {
+ color: #fff;
+}
+
+.am-calendar-disable .am-calendar-date {
+ color: #999;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/calendar/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/calendar/index.axml
new file mode 100755
index 000000000..43db2c630
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/calendar/index.axml
@@ -0,0 +1,47 @@
+
+
+
+
+
+ {{selectedYear}}年{{selectedMonth + 1}}月
+
+
+
+
+
+
+ {{item}}
+
+
+
+
+
+
+
+
+ {{item.date}}
+ {{item.disable ? 'disable' : item.tag}}
+
+
+
+
+
+
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/calendar/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/calendar/index.js
new file mode 100755
index 000000000..3e4544116
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/calendar/index.js
@@ -0,0 +1,426 @@
+function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
+
+/* eslint-disable complexity, no-param-reassign */
+/* eslint max-depth: [2, 7] */
+var leapYear = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
+var commonYear = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
+var FIRST_MONTH = 0;
+var LAST_MONTH = 11;
+var DAYS_PER_ROW = 7;
+var COLOR_MAP = {
+ 1: '#f5a911',
+ 2: '#e8541e',
+ 3: '#07a89b',
+ 4: '#108ee9',
+ 5: 'rgba(51, 51, 51, 0.4)'
+};
+
+// 获取某月第某天是星期几
+function getDay(month, year, index) {
+ return new Date(year, month, index).getDay();
+}
+
+// 获取某月有几天
+function getMonthLength(month, year) {
+ if (year % 400 === 0 || year % 100 !== 0 && year % 4 === 0) {
+ return leapYear[month];
+ } else {
+ return commonYear[month];
+ }
+}
+
+// 数字补位 1 -> 01
+function prefixNum(num) {
+ if (num < 10) {
+ return '0' + num;
+ } else {
+ return '' + num;
+ }
+}
+
+Component({
+ data: {
+ selectedYear: 0,
+ selectedMonth: 0,
+ currentDate: null,
+ dates: [],
+ blockType: 1 // 1.没有待办纯数字 2.有待办 用于区分不同类型日期块的样式。
+ },
+ props: {
+ className: '',
+ tagData: [],
+ type: 'single'
+ },
+ didMount: function didMount() {
+ this.tapTimes = 1;
+ var date = new Date();
+ date.setHours(0);
+ date.setMinutes(0);
+ date.setSeconds(0);
+ date.setMilliseconds(0);
+ var year = date.getFullYear();
+ var month = date.getMonth();
+
+ this.setData({
+ selectedYear: year,
+ selectedMonth: month,
+ currentDate: date
+ });
+ this.refreshdates(month, year);
+ },
+ didUpdate: function didUpdate() {
+ var dates = this.data.dates;
+
+ var blockType = 1;
+ for (var i = 0; i < dates.length; i++) {
+ for (var j = 0; j < dates[i].length; j++) {
+ if (this.hasTag(dates[i][j])) {
+ blockType = 2;
+ }
+ }
+ }
+
+ this.setData({
+ dates: dates,
+ blockType: blockType
+ });
+ },
+
+ methods: {
+ onPrevMonthTap: function onPrevMonthTap() {
+ var _data = this.data,
+ selectedMonth = _data.selectedMonth,
+ selectedYear = _data.selectedYear;
+
+ var year = selectedYear;
+ var month = selectedMonth;
+ // 如果当前选中是一月份,前一月是去年的12月
+ if (selectedMonth === FIRST_MONTH) {
+ year = selectedYear - 1;
+ month = LAST_MONTH;
+ } else {
+ month = selectedMonth - 1;
+ }
+
+ if (this.props.onMonthChange) {
+ this.props.onMonthChange(month, selectedMonth);
+ }
+
+ this.setData({
+ selectedYear: year,
+ selectedMonth: month
+ });
+
+ this.refreshdates(month, year);
+ },
+ onNextMonthTap: function onNextMonthTap() {
+ var _data2 = this.data,
+ selectedMonth = _data2.selectedMonth,
+ selectedYear = _data2.selectedYear;
+
+ var year = selectedYear;
+ var month = selectedMonth;
+ // 如果当前选中是十二月份,下一月是去年的12月
+ if (selectedMonth === LAST_MONTH) {
+ year = selectedYear + 1;
+ month = FIRST_MONTH;
+ } else {
+ month = selectedMonth + 1;
+ }
+
+ if (this.props.onMonthChange) {
+ this.props.onMonthChange(month, selectedMonth);
+ }
+
+ this.setData({
+ selectedYear: year,
+ selectedMonth: month
+ });
+
+ this.refreshdates(month, year);
+ },
+ refreshdates: function refreshdates(month, year) {
+ this.tapTimes = 1;
+ var _data3 = this.data,
+ selectedYear = _data3.selectedYear,
+ selectedMonth = _data3.selectedMonth,
+ currentDate = _data3.currentDate;
+
+ var firstDay = getDay(month, year, 1);
+ var days = getMonthLength(month, year);
+ var datesArray = [];
+ var currentDateTimeStamp = +currentDate;
+ var num = 0;
+
+ for (var i = 0; i < firstDay; i++) {
+ num += 1;
+ // 如果当前选中的是一月份,前一个月是去年的12月
+ var _year = selectedYear;
+ var _month = selectedMonth;
+
+ if (selectedMonth === 0) {
+ _year = selectedYear - 1;
+ _month = LAST_MONTH;
+ } else {
+ _year = selectedYear;
+ _month = selectedMonth - 1;
+ }
+
+ var date = getMonthLength(_month, _year) - i;
+ datesArray.unshift({
+ year: _year,
+ month: _month,
+ date: date,
+ isToday: false,
+ isGray: true,
+ isSelected: false,
+ tag: ''
+ });
+ }
+
+ for (var _i = 0; _i < days; _i++) {
+ num += 1;
+ var _date = _i + 1;
+ var dateTimeStamp = +new Date(selectedYear, selectedMonth, _date);
+ datesArray.push({
+ year: selectedYear,
+ month: selectedMonth,
+ date: _date,
+ isToday: dateTimeStamp === currentDateTimeStamp,
+ isGray: false,
+ isSelected: dateTimeStamp === currentDateTimeStamp,
+ tag: ''
+ });
+ }
+
+ var nextDate = 0;
+ var daysPerPage = 35;
+
+ if (num > 35) {
+ daysPerPage = 42;
+ }
+
+ for (var _i2 = 0; _i2 < daysPerPage - days - firstDay; _i2++) {
+ // 如果是12月,下月是第二年的1月份
+ nextDate += 1;
+ var _year2 = selectedYear;
+ var _month2 = selectedMonth;
+
+ if (selectedMonth === LAST_MONTH) {
+ _year2 = selectedYear + 1;
+ _month2 = FIRST_MONTH;
+ } else {
+ _year2 = selectedYear;
+ _month2 = selectedMonth + 1;
+ }
+
+ datesArray.push({
+ year: _year2,
+ month: _month2,
+ date: nextDate,
+ isToday: false,
+ isGray: true,
+ isSelected: false,
+ tag: ''
+ });
+ }
+ var blockType = 1;
+ for (var _i3 = 0; _i3 < datesArray.length; _i3++) {
+ if (this.hasTag(datesArray[_i3])) {
+ blockType = 2;
+ }
+ }
+
+ var dates = [];
+ var weekDates = [];
+ for (var _i4 = 0; _i4 < datesArray.length; _i4++) {
+ weekDates.push(datesArray[_i4]);
+ if ((_i4 + 1) % DAYS_PER_ROW === 0) {
+ dates.push([].concat(_toConsumableArray(weekDates)));
+ weekDates = [];
+ }
+ }
+
+ this.setData({
+ dates: dates,
+ blockType: blockType
+ });
+ },
+ hasTag: function hasTag(dateObj) {
+ var tagData = this.props.tagData;
+ // 去重由调用者处理
+
+ if (tagData.length === 0) {
+ dateObj.tag = '';
+ return false;
+ }
+ return tagData.some(function (item) {
+ var dateArr = item.date.split('-');
+ var dateStr = [];
+ // 兼容ios下new Date('2018-1-1')格式返回invalid Date的问题
+ for (var i = 0; i < dateArr.length; i++) {
+ dateStr.push(dateArr[i].length > 1 ? dateArr[i] : '0' + dateArr[i]);
+ }
+
+ var date = new Date(dateStr.join('-'));
+ if (dateObj.year === date.getFullYear() && dateObj.month === date.getMonth() && dateObj.date === date.getDate()) {
+ dateObj.tag = item.tag;
+ dateObj.color = COLOR_MAP[item.tagColor];
+ dateObj.disable = item.disable;
+ return true;
+ } else {
+ dateObj.tag = '';
+ return false;
+ }
+ });
+ },
+ getDateGap: function getDateGap(day1, day2) {
+ var date1 = +new Date(day1.year, prefixNum(day1.month), prefixNum(day1.date));
+ var date2 = +new Date(day2.year, prefixNum(day2.month), prefixNum(day2.date));
+ return (date1 - date2) / (24 * 3600 * 1000);
+ },
+ makeDate: function makeDate(dateObj) {
+ return new Date(dateObj.year + '-' + prefixNum(dateObj.month + 1) + '-' + prefixNum(dateObj.date));
+ },
+ onDateTap: function onDateTap(event) {
+ var dates = this.data.dates;
+ var _event$currentTarget$ = event.currentTarget.dataset,
+ year = _event$currentTarget$.year,
+ month = _event$currentTarget$.month,
+ date = _event$currentTarget$.date;
+ var type = this.props.type;
+
+
+ if (type === 'range') {
+ if (this.tapTimes % 2 === 0) {
+ this.tapTimes += 1;
+ this.endDate = { year: year, month: month, date: date };
+ var dateGap = this.getDateGap(this.startDate, this.endDate);
+
+ if (dateGap > 0) {
+ var _ref = [this.endDate, this.startDate];
+ this.startDate = _ref[0];
+ this.endDate = _ref[1];
+ }
+
+ var hasDisable = false;
+ for (var i = 0; i < dates.length; i++) {
+ for (var j = 0; j < dates[i].length; j++) {
+ var dateObj = dates[i][j];
+ dateObj.isStart = false;
+ dateObj.isMiddle = false;
+ dateObj.isEnd = false;
+
+ var startDateGap = this.getDateGap(dateObj, this.startDate);
+ var endDateGap = this.getDateGap(dateObj, this.endDate);
+
+ if (dateObj.year === year && dateObj.month === month && dateObj.date === date && dateObj.disable) {
+ hasDisable = true;
+ }
+ if (startDateGap > 0 && endDateGap < 0) {
+ if (dateObj.disable) {
+ hasDisable = true;
+ }
+
+ if (dateGap !== 0) {
+ if (j === 0) {
+ dateObj.isStart = true;
+ } else if (j === 6) {
+ dateObj.isEnd = true;
+ } else {
+ dateObj.isMiddle = true;
+ }
+ } else {
+ dateObj.isSelected = true;
+ }
+ }
+
+ if (this.startDate.year === dateObj.year && this.startDate.month === dateObj.month && this.startDate.date === dateObj.date && dateGap !== 0) {
+ if (j === 6) {
+ dateObj.isSelected = true;
+ } else {
+ dateObj.isStart = true;
+ }
+ }
+
+ if (this.endDate.year === dateObj.year && this.endDate.month === dateObj.month && this.endDate.date === dateObj.date && dateGap !== 0) {
+ if (j === 0) {
+ dateObj.isSelected = true;
+ } else {
+ dateObj.isEnd = true;
+ }
+ }
+ }
+ }
+ if (hasDisable) {
+ this.props.onSelectHasDisableDate([this.makeDate(this.startDate), this.makeDate(this.endDate)]);
+ return;
+ }
+
+ if (this.props.onSelect) {
+ this.props.onSelect([this.makeDate(this.startDate), this.makeDate(this.endDate)]);
+ }
+ } else {
+ var isDisable = false;
+ for (var _i5 = 0; _i5 < dates.length; _i5++) {
+ for (var _j = 0; _j < dates[_i5].length; _j++) {
+ var _dateObj = dates[_i5][_j];
+ if (_dateObj.year === year && _dateObj.month === month && _dateObj.date === date) {
+ if (_dateObj.disable) {
+ console.log(1111);
+ isDisable = true;
+ _dateObj.isSelected = false;
+ } else {
+ _dateObj.isSelected = true;
+ }
+ _dateObj.isStart = false;
+ _dateObj.isMiddle = false;
+ _dateObj.isEnd = false;
+ } else {
+ _dateObj.isSelected = false;
+ _dateObj.isStart = false;
+ _dateObj.isMiddle = false;
+ _dateObj.isEnd = false;
+ }
+ }
+ }
+ if (!isDisable) {
+ this.tapTimes += 1;
+ }
+ this.startDate = { year: year, month: month, date: date };
+ }
+
+ this.setData({
+ dates: dates
+ });
+ } else {
+ var _isDisable = false;
+ for (var _i6 = 0; _i6 < dates.length; _i6++) {
+ for (var _j2 = 0; _j2 < dates[_i6].length; _j2++) {
+ var _dateObj2 = dates[_i6][_j2];
+ if (_dateObj2.year === year && _dateObj2.month === month && _dateObj2.date === date) {
+ _dateObj2.isSelected = true;
+ if (_dateObj2.disable) {
+ _isDisable = true;
+ }
+ } else {
+ _dateObj2.isSelected = false;
+ }
+ }
+ }
+
+ if (_isDisable) {
+ return;
+ }
+
+ this.setData({
+ dates: dates
+ });
+
+ if (this.props.onSelect) {
+ this.props.onSelect([this.makeDate({ year: year, month: month, date: date }), undefined]);
+ }
+ }
+ }
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/calendar/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/calendar/index.json
new file mode 100755
index 000000000..467ce2945
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/calendar/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/card/index.acss b/public/appmini/old/wechat/node_modules/mini-antui/es/card/index.acss
new file mode 100755
index 000000000..fda8d87a2
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/card/index.acss
@@ -0,0 +1,72 @@
+.am-card {
+ display: flex;
+ background-color: #fff;
+ border-radius: 4px;
+ margin: 6px 10px;
+ align-items: center;
+ min-height: 81px;
+ flex-direction: column;
+ padding: 0 16px;
+}
+
+.am-card.am-card-active {
+ background: #D9D9D9;
+}
+
+.am-card-body {
+ display: flex;
+ align-items: center;
+ width: 100%;
+ padding: 16px 0;
+}
+
+.am-card-content {
+ flex: 1;
+ min-width: 100px;
+}
+
+.am-card-title {
+ font-size: 18px;
+ line-height: 25px;
+ color: #333;
+ margin-bottom: 4px;
+}
+
+.am-card-subtitle {
+ font-size: 14px;
+ line-height: 20px;
+ color: #999;
+ margin-bottom: 2px;
+}
+
+.am-card-thumb {
+ margin-right: 10px;
+ width: 48px;
+ height: 48px;
+ border-radius: 2px;
+}
+
+.am-card-arrow {
+ width: 13px;
+ height: 13px;
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAaCAYAAAC+aNwHAAAAkElEQVR4AWJwL/BhAJRWByYAgkAUhmdpkDZxlJZqD9UpXCPyBUTEga9+4IkI94F1XaWUTdH+a67inPOhjP2OgD+IFoTcm1GY3khrbfGAGFG6kBmAkPCw1rq6iBYb0VkEzJD+hHQWAz6iJBtQdP8YiQEbUQNiAF0BP0T+Gnkj8VbmHxMq5gOFjzQ+VPlYxz+WEyrVzhdMcxADAAAAAElFTkSuQmCC") center center no-repeat;
+ background-size: 8px 13px;
+}
+
+.am-card-footer {
+ display: flex;
+ width: 100%;
+ align-items: center;
+ border-top: 1rpx solid #eee;
+ padding: 10px 0;
+ margin: -4px 0 0;
+ font-size: 14px;
+ line-height: 20px;
+ color: #999;
+}
+
+.am-card-footer image {
+ width: 14px;
+ height: 14px;
+ margin-right: 4px;
+}
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/card/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/card/index.axml
new file mode 100755
index 000000000..67c388bbe
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/card/index.axml
@@ -0,0 +1,19 @@
+
+
+
+
+ {{title}}
+ {{subTitle}}
+ {{title}}
+
+
+
+
+
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/card/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/card/index.js
new file mode 100755
index 000000000..a4da35930
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/card/index.js
@@ -0,0 +1,16 @@
+Component({
+ props: {
+ title: '',
+ onClick: function onClick() {},
+ info: ''
+ },
+ methods: {
+ onCardClick: function onCardClick() {
+ var _props = this.props,
+ info = _props.info,
+ onClick = _props.onClick;
+
+ onClick({ info: info });
+ }
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/card/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/card/index.json
new file mode 100755
index 000000000..467ce2945
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/card/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/face-detection/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/face-detection/index.axml
new file mode 100755
index 000000000..9c51ad9b6
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/face-detection/index.axml
@@ -0,0 +1,8 @@
+
+appName and serviceName is required
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/face-detection/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/face-detection/index.js
new file mode 100755
index 000000000..14a02725e
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/face-detection/index.js
@@ -0,0 +1,107 @@
+Component({
+ props: {
+ facing: 'front',
+ appName: '',
+ serviceName: '',
+ useLiveFaceCheck: false,
+ minRotate: -1
+ },
+ didMount: function didMount() {
+ this.webViewContext = wx.createWebViewContext('am-face-detection');
+ this.doFaceLeftResolve = null;
+ this.isDidFaceLeftResolve = false;
+ this.doFaceRightResolve = null;
+ this.isDidFaceRightResolve = false;
+ },
+ didUnMount: function didUnMount() {
+ this.webViewContext.postMessage({ action: 'releaseCamera' });
+ },
+
+ methods: {
+ doLeftFaceCheck: function doLeftFaceCheck() {
+ var _this = this;
+
+ return new Promise(function (resolve, reject) {
+ _this.isDidFaceLeftResolve = false;
+ _this.webViewContext.postMessage({ action: 'doFaceLeft', data: { minRotate: _this.props.minRotate } });
+ _this.doFaceLeftResolve = resolve;
+ setTimeout(function () {
+ if (!_this.isDidFaceLeftResolve) {
+ reject();
+ }
+ }, 30000);
+ });
+ },
+ doRightFaceCheck: function doRightFaceCheck() {
+ var _this2 = this;
+
+ return new Promise(function (resolve, reject) {
+ _this2.isDidFaceRightResolve = false;
+ _this2.webViewContext.postMessage({ action: 'doFaceRight', data: { minRotate: _this2.props.minRotate } });
+ _this2.doFaceRightResolve = resolve;
+ setTimeout(function () {
+ if (!_this2.isDidFaceRightResolve) {
+ reject();
+ }
+ }, 30000);
+ });
+ },
+ onMessage: function onMessage(e) {
+ var _this3 = this;
+
+ var _props = this.props,
+ onFaceStatusChange = _props.onFaceStatusChange,
+ onFail = _props.onFail,
+ onSuccessBtnTap = _props.onSuccessBtnTap;
+ var _e$detail = e.detail,
+ action = _e$detail.action,
+ data = _e$detail.data;
+
+
+ if (action === 'resignSuccessBtnClick') {
+ if (onSuccessBtnTap) {
+ onSuccessBtnTap();
+ }
+ }
+
+ if (action === 'faceRotated' && data.forward === 'left') {
+ this.isDidFaceLeftResolve = true;
+ this.doFaceLeftResolve(data.imageBase64);
+ return;
+ }
+
+ if (action === 'faceRotated' && data.forward === 'right') {
+ this.isDidFaceRightResolve = true;
+ this.doFaceRightResolve(data.imageBase64);
+ return;
+ }
+
+ if (action === 'captureImage') {
+ if (onFaceStatusChange) {
+ var promise = onFaceStatusChange({
+ imageBase64: data.imageBase64,
+ faceRect: data.faceRect
+ }, {
+ doLeftFaceCheck: this.doLeftFaceCheck.bind(this),
+ doRightFaceCheck: this.doRightFaceCheck.bind(this)
+ });
+
+ if (promise instanceof Promise) {
+ promise.then(function () {
+ _this3.webViewContext.postMessage({ action: 'requestSuccess' });
+ })['catch'](function () {
+ _this3.webViewContext.postMessage({ action: 'requestFailure' });
+ });
+ } else {
+ this.webViewContext.postMessage({ action: 'requestSuccess' });
+ }
+ }
+ } else {
+ /* eslint-disable */
+ if (onFail) {
+ onFail({ code: data.code, message: data.message });
+ }
+ }
+ }
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/face-detection/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/face-detection/index.json
new file mode 100755
index 000000000..32640e0dc
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/face-detection/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/filter/filter-item/index.acss b/public/appmini/old/wechat/node_modules/mini-antui/es/filter/filter-item/index.acss
new file mode 100755
index 000000000..f1376f2bc
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/filter/filter-item/index.acss
@@ -0,0 +1,26 @@
+.am-filter-item-wrap {
+ padding: 7px 6px;
+ min-width: 33.3%;
+ max-width: 180px;
+ overflow: hidden;
+ float: left;
+ display: list-item;
+ box-sizing: border-box;
+}
+
+.am-filter-item {
+ font-size: 14px;
+ height: 36px;
+ line-height: 36px;
+ background: #f5f5f5;
+ border-radius: 2px;
+ text-align: center;
+ padding: 0 20px;
+ box-sizing: border-box;
+}
+
+.am-filter-click {
+ color: #108EE9;
+ background: #e1f2fe url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAfCAYAAACLSL/LAAAEgElEQVRYhc2Xa0wcVRTH/2cXdi2F0pe29RWMNbHBpLWf2qQmWqma4Ftj1ZBqfcQYjUmlobESP2hDfTT9ILGaaEEECQ0qjy5uNgUDRGiatsG0JNpStaAujy6wsO+d2Xv8MDN3ZhekSHndZLObe+fO/Oac//nfs8TMWEyj3SvS3jnuLU5baBDrqL+kZO1p8JZf9sWeWjRgpWeit773o7fJH1HvAoBFAbbHM7rlSOeoK64kVhlzCwp2sl9QSYtvl+vXQBnANuvagoGd6FMdha7Bg+e90bdBABgAEUAABIMWoioru2PLi9xDNQPjyoMAAIOBWf6e94h90BFa/1Grzx2KifU6TfIFRADmGezFRv99VV3jjQnBmRKCoaXPGHrU5gWsY1DQfrfv9fbLkc/kpKErKxCg64zmHqz+kurc6/GV/u6Lv6pFyALALFOn0+mwcyz+I13R1cXNI3WjEXWb8dwkoUseAYD0b8xtKvf+FNxQemrsRFwVN0kRUWoQjAhKv5ArcwL2eK0/v/Fi+HtmdspUTZZCZg3IWgT6dbbJbjzT0dInbHcf9e1ruBh2MeBM0g+R/uSJn5wVaViXaTevI5o9sOrflIxdx4erfhlSPpQZMTJHeqpInySzJDetc+Dky2uxeqk96X6zksqDp6JrSzrGm4IxsTkZRE8RA6bOIFN5/21O1O28HllOm/kC+to1g73iCW/6+lzQk0iIG7SHUnLFGSPFKp7PXYLyx1bBYScMBBIYDCd0drr2qry3xv9MW2+sGiC7WVl6ytgSIcOf9AgWbsnEJ3nZICL0janI+2YIQyHTw2asMdefqv2Oo/4DbX8px0BklzoGmYZpzFm6BgLj8APZOLRjOYgIPcMK7ikfRM+IKkU/47Pyi24ls7gt+O1wWH1UEsgUWUAAXS/aT4edUPHICjybmwEA6B6KY0flFQyEdFOVkdbf7/84f9HP0Vs+PRPyxFTeICf1/SXbMlCQex0AoOJ8BO93BKEktLVl6UDd0yuxPccJADjtjeOh6isYiZhtjqlLbW7aYE82BLfW98TcDM5OhtJe08ZARX4mCnKXAADODigoaPRjLCrg3rkSG9ekAwDa+2J4uGYYgbgw9yfBaVqbFtjmqrHdXQPKV5jMkOVNARsYFfnLZOQiCmM0KnBjluZRnj+ieKJ2GBHVstey31rNU4Idu6CmF7YGDv0TSLx1VXrjKGFGRX6WjJwxfrgQwXN1o4iLVAhLNcr5Kezi47Ox7AOdoe8CMZF3VSgJBwgivNAUAAAJV9kdwW6XHwlhORKsp4O1N5uqKl9rjtxedi7crArOmTaU4fYMCEDCBeKMNzzjYCbT07QNgEhpX4nl8oRU5tWOb2/pUxrBvHTaUMZIqTCbDmn2WfiPFBpFIK2jX4rZ3SvozrKxN1t6480zggKSTZIIwnpoG3/NpBnD7DisZysRQLZWYmZ82a049rcHPveFxUszAkodk3apk3gWW6Jlin8ETtqY9m5nfM3h04G6qMJbZwUKmNgMSj6yCD2130c/QK1woAj7bv77X8e4TyVCc9zHAAAAAElFTkSuQmCC') right bottom no-repeat;
+ background-size: 17px 13px;
+}
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/filter/filter-item/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/filter/filter-item/index.axml
new file mode 100755
index 000000000..0d80d98e8
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/filter/filter-item/index.axml
@@ -0,0 +1,3 @@
+
+ {{value}}
+
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/filter/filter-item/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/filter/filter-item/index.js
new file mode 100755
index 000000000..a9235c643
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/filter/filter-item/index.js
@@ -0,0 +1,87 @@
+import lifecycle from '../mixins/lifecycle';
+
+Component({
+ mixins: [lifecycle],
+ data: {
+ confirmStyle: ''
+ },
+
+ props: {
+ className: '',
+ item: '',
+ id: '',
+ value: '',
+ selected: false,
+ onChange: function onChange() {}
+ },
+
+ didMount: function didMount() {
+ var _data = this.data,
+ results = _data.results,
+ items = _data.items;
+ var _props = this.props,
+ selected = _props.selected,
+ id = _props.id,
+ value = _props.value;
+
+ if (selected) {
+ results.push({ id: id, value: value });
+ items.push(this);
+ this.setData({
+ confirmStyle: true
+ });
+ }
+ },
+
+
+ methods: {
+ handleClick: function handleClick() {
+ var _props2 = this.props,
+ id = _props2.id,
+ value = _props2.value,
+ onChange = _props2.onChange;
+ var confirmStyle = this.data.confirmStyle;
+ var _data2 = this.data,
+ results = _data2.results,
+ items = _data2.items,
+ commonProps = _data2.commonProps;
+
+ if (commonProps.max === 1) {
+ if (confirmStyle === '') {
+ items.forEach(function (element) {
+ element.setData({
+ confirmStyle: ''
+ });
+ });
+ results.splice(0, results.length);
+ confirmStyle = true;
+ results.push({ id: id, value: value });
+ items.push(this);
+ onChange(results);
+ }
+ this.setData({
+ confirmStyle: confirmStyle
+ });
+ return;
+ }
+ if (confirmStyle === '' && results.length < commonProps.max) {
+ confirmStyle = true;
+ results.push({ id: id, value: value });
+ items.push(this);
+ } else {
+ confirmStyle = '';
+ results.some(function (key, index) {
+ if (JSON.stringify(key) === JSON.stringify({ id: id, value: value })) {
+ results.splice(index, 1);
+ return true;
+ } else {
+ return false;
+ }
+ });
+ }
+ this.setData({
+ confirmStyle: confirmStyle
+ });
+ }
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/filter/filter-item/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/filter/filter-item/index.json
new file mode 100755
index 000000000..32640e0dc
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/filter/filter-item/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/filter/index.acss b/public/appmini/old/wechat/node_modules/mini-antui/es/filter/index.acss
new file mode 100755
index 000000000..6aa088d80
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/filter/index.acss
@@ -0,0 +1,59 @@
+.am-filter-show {
+ height: 100vh;
+ display: block;
+ position: relative;
+}
+
+.am-filter-hide {
+ display: none;
+}
+
+.am-filter-mask, .am-filter-document {
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+}
+
+.am-filter-mask {
+ background: rgba(0, 0, 0, 0.65);
+}
+
+.am-filter-content {
+ background: #ffffff;
+ display: flex;
+ flex-direction: column;
+ overflow-x: hidden;
+ overflow-y: scroll;
+}
+
+.am-filter-list {
+ flex: 1;
+ padding: 10px 5px 23px;
+ overflow-x: hidden;
+ min-height: 200px;
+ overflow-y: scroll;
+ max-height: 515px;
+ box-sizing: border-box;
+}
+
+.am-filter-btn {
+ width: 100%;
+ display: flex;
+}
+
+.am-filter-default, .am-filter-primary {
+ flex: 1;
+ height: 48px;
+ font-size: 18px;
+ box-sizing: border-box;
+ width: 50%;
+ border: 0;
+ border-radius: 0;
+}
+
+.am-filter-default {
+ border-top: 1px solid #eeeeee;
+ border-right: none;
+}
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/filter/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/filter/index.axml
new file mode 100755
index 000000000..0e2bb004c
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/filter/index.axml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/filter/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/filter/index.js
new file mode 100755
index 000000000..bb681ee2b
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/filter/index.js
@@ -0,0 +1,40 @@
+import lifecycle from './mixins/lifecycle';
+
+Component({
+ mixins: [lifecycle],
+ data: {
+ maxHeight: 0
+ },
+ props: {
+ className: '',
+ onChange: function onChange() {},
+ max: 10000
+ },
+ didMount: function didMount() {
+ var commonProps = this.data.commonProps;
+ var max = this.props.max;
+
+ commonProps.max = max;
+ },
+
+ methods: {
+ resetFn: function resetFn() {
+ var _data = this.data,
+ items = _data.items,
+ results = _data.results;
+
+ items.forEach(function (element) {
+ element.setData({
+ confirmStyle: ''
+ });
+ });
+ results.splice(0, results.length);
+ },
+ confirmFn: function confirmFn() {
+ var onChange = this.props.onChange;
+ var results = this.data.results;
+
+ onChange(results);
+ }
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/filter/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/filter/index.json
new file mode 100755
index 000000000..467ce2945
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/filter/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/filter/mixins/lifecycle.js b/public/appmini/old/wechat/node_modules/mini-antui/es/filter/mixins/lifecycle.js
new file mode 100755
index 000000000..4288863c4
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/filter/mixins/lifecycle.js
@@ -0,0 +1,18 @@
+export default {
+ data: {
+ results: [],
+ items: [],
+ commonProps: {
+ max: 10000
+ }
+ },
+
+ didUnmount: function didUnmount() {
+ var _data = this.data,
+ items = _data.items,
+ results = _data.results;
+
+ results.splice(0, results.length);
+ items.splice(0, items.length);
+ }
+};
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/footer/index.acss b/public/appmini/old/wechat/node_modules/mini-antui/es/footer/index.acss
new file mode 100755
index 000000000..1792210ae
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/footer/index.acss
@@ -0,0 +1,31 @@
+.am-footer-links {
+ display: flex;
+ justify-content: center;
+}
+
+.am-footer-link {
+ height: 17px;
+ line-height: 17px;
+ color: #108ee9;
+ font-size: 12px;
+}
+
+.am-footer-link::after {
+ content: '|';
+ padding: 0 5px;
+ height: 17px;
+ color: #ccc;
+}
+
+.am-footer-link:last-child::after {
+ display: none;
+}
+
+.am-footer-copyright {
+ margin-top: 3px;
+ height: 17px;
+ line-height: 17px;
+ color: #ccc;
+ font-size: 14px;
+ text-align: center;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/footer/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/footer/index.axml
new file mode 100755
index 000000000..e0d5ccef6
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/footer/index.axml
@@ -0,0 +1,8 @@
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/footer/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/footer/index.js
new file mode 100755
index 000000000..cb7485f9f
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/footer/index.js
@@ -0,0 +1,5 @@
+Component({
+ props: {
+ className: ''
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/footer/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/footer/index.json
new file mode 100755
index 000000000..32640e0dc
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/footer/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/grid/index.acss b/public/appmini/old/wechat/node_modules/mini-antui/es/grid/index.acss
new file mode 100755
index 000000000..b170d798f
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/grid/index.acss
@@ -0,0 +1,223 @@
+.am-grid {
+ display: flex;
+ flex-direction: row;
+ flex-wrap: wrap;
+ background-color: white;
+}
+
+.am-grid-4 {
+ padding-top: 7px;
+ padding-bottom: 7px;
+}
+
+.am-grid-5 {
+ padding-top: 6px;
+ padding-bottom: 7px;
+}
+
+.am-grid-item {
+ text-align: center;
+ position: relative;
+}
+
+.am-grid-3 .am-grid-border {
+ position: absolute;
+ left: 0;
+ bottom: 0;
+ width: 100%;
+ height: 100%;
+ border-bottom: 1rpx solid #eee;
+ border-right: 1rpx solid #eee;
+ box-sizing: border-box;
+}
+
+.am-grid-3 .am-grid-right {
+ border-right: none;
+}
+
+.am-grid-3 .am-grid-bottom {
+ border-bottom: none;
+}
+
+.am-grid-3 .am-grid-top {
+ height: calc(100% - 15px);
+}
+
+.am-grid-item-wrapper {
+ position: absolute;
+ left: 0;
+ bottom: 0;
+ width: 100%;
+ height: 100%;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ flex-direction: column;
+}
+
+.am-grid-2 .am-grid-item-wrapper {
+ flex-direction: row;
+ justify-content: flex-start;
+}
+
+.am-grid-icon-container {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
+.am-grid-icon {
+ flex: 1;
+ width: 36px;
+ height: 36px;
+}
+
+.am-grid-text-wrapper {
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+}
+
+.am-grid-3 .am-grid-text-wrapper {
+ align-items: center;
+}
+
+.am-grid-3 .am-grid-text {
+ height: 20px;
+ line-height: 20px;
+}
+
+.am-grid-3 .am-grid-desc {
+ height: 17px;
+ line-height: 17px;
+}
+
+.am-grid-text {
+ color: #333;
+ font-size: 14px;
+ line-height: 1;
+ margin-top: 14px;
+}
+
+.am-grid-desc {
+ color: #999;
+ font-size: 12px;
+}
+
+.am-grid-2 .am-grid-item.has-desc {
+ padding-top: 70px;
+}
+
+.am-grid-3 .am-grid-item {
+ padding-top: 125px;
+}
+
+.am-grid-3.am-grid-no-line {
+ padding: 8px 16px 0 16px;
+}
+
+.am-grid-no-line .am-grid-item {
+ padding-top: 110px;
+}
+
+.am-grid-2 .am-grid-item {
+ padding-top: 64px;
+}
+
+
+.am-grid-4 .am-grid-item {
+ padding-top: 68px;
+}
+
+.am-grid-4.circular .am-grid-item {
+ padding-top: 82px;
+}
+
+.am-grid-3 {
+ padding: 0 16px;
+}
+
+.am-grid-3 .am-grid-text {
+ margin-top: 12px;
+}
+
+.am-grid-no-line .am-grid-border {
+ border-right: none;
+ border-bottom: none;
+}
+
+.am-grid-4.circular {
+ padding-top: 3px;
+}
+
+.am-grid-4.circular .am-grid-icon-container {
+ margin-top: 13px;
+ padding: 8px;
+ border-radius: 50%;
+ background-color: #D8D8D8;
+}
+
+.am-grid-2 .am-grid-icon-container {
+ margin-left: 16px;
+}
+
+.am-grid-2 .am-grid-icon {
+ width: 28px;
+ height: 28px;
+}
+
+.am-grid-4 .am-grid-icon-container {
+ margin-top: 7px;
+}
+
+.am-grid-4 .am-grid-icon {
+ height: 28px;
+ width: 28px;
+}
+
+.am-grid-4.circular .am-grid-icon {
+ width: 26px;
+ height: 26px;
+ flex: 1;
+}
+
+.am-grid-4.circular .am-grid-text {
+ height: 16px;
+ line-height: 16px;
+}
+
+.am-grid-5 .am-grid-item {
+ padding-top: 75px;
+}
+
+.am-grid-5 .am-grid-icon {
+ border-radius: 50%;
+ width: 43px;
+ height: 43px;
+}
+
+.am-grid-2 .am-grid-text {
+ margin-top: 0;
+ margin-left: 12px;
+ height: 24px;
+ line-height: 24px;
+ font-size: 17px;
+}
+
+.am-grid-2 .am-grid-desc {
+ margin-left: 12px;
+ height: 16px;
+ line-height: 16px;
+}
+
+.am-grid-4 .am-grid-text {
+ font-size: 13px;
+ height: 13px;
+ line-height: 13px;
+ margin-top: 7px;
+}
+.am-grid-5 .am-grid-text {
+ font-size: 12px;
+ margin-top: 7px;
+}
+
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/grid/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/grid/index.axml
new file mode 100755
index 000000000..c92ca5b85
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/grid/index.axml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+ {{item.text}}
+ {{item.desc}}
+
+
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/grid/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/grid/index.js
new file mode 100755
index 000000000..2f075a2cb
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/grid/index.js
@@ -0,0 +1,32 @@
+Component({
+ data: {
+ bottomIndex: 0
+ },
+ props: {
+ columnNum: 3,
+ circular: false,
+ list: [],
+ onGridItemClick: function onGridItemClick() {},
+ hasLine: true
+ },
+ didMount: function didMount() {
+ var _props = this.props,
+ list = _props.list,
+ columnNum = _props.columnNum;
+
+ var rows = list.length / columnNum;
+ this.setData({
+ bottomIndex: Math.floor(rows) === rows ? (rows - 1) * columnNum : Math.floor(rows) * columnNum
+ });
+ },
+
+ methods: {
+ onGridItemClick: function onGridItemClick(e) {
+ this.props.onGridItemClick({
+ detail: {
+ index: e.target.dataset.index
+ }
+ });
+ }
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/grid/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/grid/index.json
new file mode 100755
index 000000000..467ce2945
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/grid/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/input-item/index.acss b/public/appmini/old/wechat/node_modules/mini-antui/es/input-item/index.acss
new file mode 100755
index 000000000..91c0a63a6
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/input-item/index.acss
@@ -0,0 +1,74 @@
+.am-input-item {
+ display: flex;
+ align-items: center;
+ background: #fff;
+ padding-left: 15px;
+}
+
+.am-input-item .a-input-content {
+ padding-left: 2px;
+}
+
+.am-input-line {
+ position: relative;
+ flex: 1;
+ display: flex;
+ align-items: center;
+ padding-right: 15px;
+ min-height: 47px;
+ overflow: hidden;
+}
+
+.am-input-label {
+ min-width: 80px;
+ margin-right: 2px;
+ color: #333;
+}
+
+.am-input-content {
+ flex: 1;
+ display: flex;
+ height: 33px;
+ color: #000;
+ text-align: left;
+}
+
+.am-input-content .a-input-wrap {
+ flex: 1;
+}
+
+.am-input-clear {
+ display: flex;
+ height: 33px;
+ width: 33px;
+ justify-content: center;
+ align-items: center;
+}
+
+.am-input-clear.show {
+ visibility: visible;
+}
+
+.am-input-clear.hidden {
+ visibility: hidden;
+ pointer-events: none;
+}
+
+.am-input-line-bottom::after {
+ content: '';
+ display: block;
+ position: absolute;
+ width: 100%;
+ height: 1px;
+ transform: scaleY(0.5);
+ left: 0;
+ bottom: 0;
+ right: auto;
+ top: auto;
+ background-color: #eee;
+}
+
+/* 最后一行 */
+.am-input-item.last .am-input-line-bottom::after {
+ display: none;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/input-item/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/input-item/index.axml
new file mode 100755
index 000000000..6a6bc47b5
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/input-item/index.axml
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/input-item/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/input-item/index.js
new file mode 100755
index 000000000..8c0052a03
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/input-item/index.js
@@ -0,0 +1,59 @@
+import fmtEvent from '../_util/fmtEvent';
+
+Component({
+ props: {
+ className: '',
+ labelCls: '',
+ inputCls: '',
+ last: false,
+ value: '',
+ name: '',
+ type: 'text',
+ password: false,
+ placeholder: '',
+ placeholderClass: '',
+ placeholderStyle: '',
+ disabled: false,
+ maxlength: 140,
+ focus: false,
+ clear: false, // 是否带清除功能
+ syncInput: false,
+ enableNative: false, // 兼容安卓input的输入bug
+ onInput: function onInput() {},
+ onConfirm: function onConfirm() {},
+ onFocus: function onFocus() {},
+ onBlur: function onBlur() {},
+ onClear: function onClear() {}
+ },
+ data: {
+ _focus: false
+ },
+ methods: {
+ onBlur: function onBlur(e) {
+ this.setData({
+ _focus: false
+ });
+ var event = fmtEvent(this.props, e);
+ this.props.onBlur(event);
+ },
+ onConfirm: function onConfirm(e) {
+ var event = fmtEvent(this.props, e);
+ this.props.onConfirm(event);
+ },
+ onFocus: function onFocus(e) {
+ this.setData({
+ _focus: true
+ });
+ var event = fmtEvent(this.props, e);
+ this.props.onFocus(event);
+ },
+ onInput: function onInput(e) {
+ var event = fmtEvent(this.props, e);
+ this.props.onInput(event);
+ },
+ onClear: function onClear(e) {
+ var event = fmtEvent(this.props, e);
+ this.props.onClear(event);
+ }
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/input-item/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/input-item/index.json
new file mode 100755
index 000000000..467ce2945
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/input-item/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/list/index.acss b/public/appmini/old/wechat/node_modules/mini-antui/es/list/index.acss
new file mode 100755
index 000000000..abce0fe4f
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/list/index.acss
@@ -0,0 +1,39 @@
+.am-list-header,
+.am-list-footer {
+ font-size: 14px;
+ color: #888;
+}
+
+.am-list-header {
+ padding: 16px 16px 8px;
+}
+
+.am-list-body {
+ position: relative;
+}
+
+.am-list-body::before {
+ position: absolute;
+ content: '';
+ top: 0;
+ left: 0;
+ right: 0;
+ height: 1px;
+ transform: scaleY(0.5);
+ background-color: #eee;
+}
+
+.am-list-body::after {
+ position: absolute;
+ content: '';
+ bottom: 0;
+ left: 0;
+ right: 0;
+ height: 1px;
+ transform: scaleY(0.5);
+ background-color: #eee;
+}
+
+.am-list-footer {
+ padding: 8px 16px 16px 16px;
+}
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/list/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/list/index.axml
new file mode 100755
index 000000000..cf509812e
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/list/index.axml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/list/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/list/index.js
new file mode 100755
index 000000000..cb7485f9f
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/list/index.js
@@ -0,0 +1,5 @@
+Component({
+ props: {
+ className: ''
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/list/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/list/index.json
new file mode 100755
index 000000000..467ce2945
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/list/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/list/list-item/index.acss b/public/appmini/old/wechat/node_modules/mini-antui/es/list/list-item/index.acss
new file mode 100755
index 000000000..cad5d3323
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/list/list-item/index.acss
@@ -0,0 +1,127 @@
+.am-list-item {
+ display: flex;
+ align-items: center;
+ background: #fff;
+ padding-left: 16px;
+ font-size: 15px;
+ line-height: 1.4;
+ color: #333;
+}
+
+/* hover 样式 */
+.am-list-item-hover {
+ background-color: #f8f8f8;
+}
+
+.am-list-prefix {
+ margin-right: 16px;
+}
+
+.am-list-thumb {
+ width: 30px;
+ height: 30px;
+ margin-right: 16px;
+}
+
+.am-list-line {
+ position: relative;
+ flex: 1;
+ display: flex;
+ align-items: center;
+ align-self: stretch;
+ padding-right: 15px;
+ min-height: 52px;
+ overflow: hidden;
+}
+
+.am-list-content,
+.am-list-extra {
+ line-height: 1.5;
+ width: auto;
+ padding-top: 7px;
+ padding-bottom: 7px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.am-list-content {
+ flex: 1;
+ color: #000;
+ font-size: 17px;
+ text-align: left;
+}
+
+.am-list-extra {
+ flex-basis: 36%;
+ color: #888;
+ font-size: 16px;
+ text-align: right;
+}
+
+.am-list-brief {
+ color: #888;
+ font-size: 14px;
+}
+
+.am-list-wrap .am-list-content,
+.am-list-wrap .am-list-extra {
+ white-space: normal;
+}
+
+.am-list-arrow {
+ display: block;
+ width: 15px;
+ height: 15px;
+ margin-left: 8px;
+ background-image: url('https://gw.alipayobjects.com/zos/rmsportal/nGMpTwTjtKMbOeeQIucS.png');
+ background-size: contain;
+ background-repeat: no-repeat;
+ background-position: 50% 50%;
+}
+
+.am-list-arrow-empty {
+ visibility: hidden;
+}
+
+.am-list-line-bottom::after {
+ content: '';
+ display: block;
+ position: absolute;
+ width: 100%;
+ height: 1px;
+ background: #eee;
+ transform: scaleY(0.5);
+ left: 0;
+ bottom: 0;
+ right: auto;
+ top: auto;
+}
+
+/* 子元素垂直对齐 */
+.am-list-top .am-list-line {
+ align-items: flex-start;
+}
+
+.am-list-middle .am-list-line {
+ align-items: center;
+}
+
+.am-list-bottom .am-list-line {
+ align-items: flex-end;
+}
+
+/* 多行 */
+.am-list-multiple .am-list-line {
+ padding: 6px 15px 6px 0;
+}
+
+.am-list-multiple .am-list-thumb {
+ width: 36px;
+ height: 36px;
+}
+
+/* 最后一行 */
+.am-list-item.last .am-list-line-bottom::after {
+ display: none;
+}
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/list/list-item/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/list/list-item/index.axml
new file mode 100755
index 000000000..3c751535c
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/list/list-item/index.axml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/list/list-item/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/list/list-item/index.js
new file mode 100755
index 000000000..803d13b98
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/list/list-item/index.js
@@ -0,0 +1,32 @@
+Component({
+ props: {
+ className: '',
+ align: false,
+ disabled: false,
+ multipleLine: false,
+ wrap: false
+ },
+ didMount: function didMount() {
+ this.dataset = {};
+ for (var key in this.props) {
+ if (/data-/gi.test(key)) {
+ this.dataset[key.replace(/data-/gi, '')] = this.props[key];
+ }
+ }
+ },
+
+ methods: {
+ onItemTap: function onItemTap(ev) {
+ var _props = this.props,
+ onClick = _props.onClick,
+ disabled = _props.disabled;
+
+ if (onClick && !disabled) {
+ onClick({
+ index: ev.target.dataset.index,
+ target: { dataset: this.dataset }
+ });
+ }
+ }
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/list/list-item/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/list/list-item/index.json
new file mode 100755
index 000000000..467ce2945
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/list/list-item/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/message/index.acss b/public/appmini/old/wechat/node_modules/mini-antui/es/message/index.acss
new file mode 100755
index 000000000..7ad2f0be2
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/message/index.acss
@@ -0,0 +1,33 @@
+.am-message {
+ background-color: #fff;
+ border-bottom: 1rpx solid #eeeeee;
+ margin-bottom: 30px;
+ padding: 30px 15px;
+ text-align: center;
+ height: 199px;
+ box-sizing: border-box;
+}
+.am-message .am-icon {
+ display: block;
+}
+.am-message-main {
+ font-size: 20px;
+ margin: 16px 0 9px;
+ line-height: 28px;
+}
+.am-message-sub {
+ padding: 0 30px;
+ font-size: 14px;
+ line-height: 19px;
+ margin-top: 6px;
+ color: #999;
+}
+.am-button-wrap{
+ padding: 0 15px;
+}
+.am-button-wrap .a-button {
+ margin-bottom: 15px;
+}
+.am-button-wrap .a-button:last-child {
+ margin-bottom: 0;
+}
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/message/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/message/index.axml
new file mode 100755
index 000000000..3eb529863
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/message/index.axml
@@ -0,0 +1,27 @@
+
+
+
+ {{title}}
+
+
+ {{subTitle}}
+
+
+
+
+
+
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/message/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/message/index.js
new file mode 100755
index 000000000..48ca2900f
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/message/index.js
@@ -0,0 +1,17 @@
+Component({
+ props: {
+ className: "",
+ type: "success",
+ title: "",
+ onTapMain: function onTapMain() {},
+ onTapSub: function onTapSub() {}
+ },
+ methods: {
+ tapMain: function tapMain() {
+ this.props.onTapMain();
+ },
+ tapSub: function tapSub() {
+ this.props.onTapSub();
+ }
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/message/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/message/index.json
new file mode 100755
index 000000000..32640e0dc
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/message/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/modal/index.acss b/public/appmini/old/wechat/node_modules/mini-antui/es/modal/index.acss
new file mode 100755
index 000000000..14b5dcd0d
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/modal/index.acss
@@ -0,0 +1,118 @@
+.am-modal-show {
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+}
+.am-modal-hide {
+ display: none;
+}
+.am-modal-mask,
+.am-modal-document {
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+}
+.am-modal-mask {
+ background-color: rgba(0, 0, 0, 0.75);
+}
+.am-modal-document {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+.am-modal {
+ background-color: #fff;
+ border-radius: 2px;
+ width: 270px;
+ position: relative;
+}
+.am-modal-image {
+ display: flex;
+ justify-content: center;
+}
+.am-modal-image-md,
+.am-modal-image-sm {
+ margin-top: 24px;
+}
+
+.am-modal-image-lg image {
+ width: 270px;
+ height: 156px;
+}
+.am-modal-image-md image {
+ width: 134px;
+ height: 134px;
+}
+.am-modal-image-sm image {
+ width: 65px;
+ height: 65px;
+}
+.am-modal-header {
+ font-size: 18px;
+ line-height: 21px;
+ text-align: center;
+ color: #333;
+ font-weight: 600;
+ padding-top: 22px;
+}
+.am-modal-body {
+ margin-top: 8px;
+ overflow: hidden;
+ max-width: 270px;
+ padding: 0 16px;
+ line-height: 20px;
+ text-align: center;
+ color: #333;
+ font-size: 14px;
+}
+
+.am-modal-footer {
+ margin-top: 12px;
+ height: 50px;
+ line-height: 50px;
+ border-top: 1rpx solid #ddd;
+ font-size: 18px;
+ color: #108ee9;
+ text-align: center;
+}
+.am-modal-close {
+ position: absolute;
+ display: block;
+ right: 0;
+ top: 0;
+ height: 48px;
+ width: 48px;
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAMAAAAM7l6QAAAANlBMVEVMaXGIiIiJiYmJiYn///+IiIiIiIiRkZGJiYmJiYmIiIiZmZmIiIiIiIiLi4uJiYmIiIiIiIif033nAAAAEXRSTlMA3vWjAZv1FdRBcAq0vhZmK7msGmgAAABnSURBVHhe7dEpFoAwEATRTliysIS5/2VReS16xiEp+2XhuQqC2nngshp4262j1Omq2wq6q3Rf6arionRVdaq4qjpVneo71fOUqerJbAkVLRv/eBcW/nEvfPD3/4szPHhXGzj6VPWBF66vCbNK4YfYAAAAAElFTkSuQmCC") center no-repeat;
+ background-size: 16px 16px;
+}
+
+.am-close-white {
+ background: url("https://gw.alipayobjects.com/zos/rmsportal/fdmdsySxNBrpcVBVGEUM.png") center no-repeat;;
+ background-size: 16px 16px;
+}
+
+.am-modal-close-active,
+.am-modal-footer-active {
+ background-color: rgba(37,39,40,.05);
+}
+
+.am-modal-document-advice .am-modal {
+ padding-top: 0;
+ width: auto;
+}
+.am-modal-document-advice .am-modal-body {
+ padding: 0;
+ max-width: 319px;
+}
+
+.am-modal-document-advice .am-modal-close {
+ top: -50px;
+ height: 27px;
+ width: 27px;
+ background-size: 27px 27px;
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADYAAAA2CAYAAACMRWrdAAAEMElEQVR4AWKgJvj//z8roFl7cJJdiaM4/mbtvbZt27Zt27ZtrvLfvu8iVWe77tSmJ/lNMlWfQtLICXo6wARswRk8wUf8RAt+4TOe4wJ2YAaqkujfIsx8XEMTggK04j5WojbtQBXYhF8I8viCh7iJy7iBB3iPtjx1mnEQdcUOVIKl+IzA8QEHMBFVEY70SGzHcwSO39iCimKEGoeXCMRP7MDwmG33wzp8gHvU51uGWoYW55TZi5qE+ynrCvjDCbgXJUmfegedTs6gj/HZUY3dzs68huqkGr8pDbdgaZGv6YnO0XuFfnGPlIb6hnEpjcD98Uq25W3BfwvO6fcKfVP+e6lydvQtlPgPFHqkNFS64Sqdv4ZDvkN6i1xT4zI20+mDbxJuWdTr6oVU0oEiS+HGys7/hbqeKizRIV3XZTDcRtnWAz1NcT7Ln2+fjAcrx0e5ZPrlK7gJQZd9KW1sNeajX8Tyi2Sbz+ZL/1PmfrUeM/zT+IaxCRyBw/iLu1HCUSbnjJID3QLzZOUOj43Zh78I8BoT4oaSie+6iHXnyrbvcldek5XDPTaoN24h0HAxQ33DeuSi/rfJDe5Hdzb9110RP5x9KGnnqvQ/JFw4QRYelPLxwxmHkraWSt9rwoWbZeFEKZ9sOINQ0l699Hs+XHhaFnbd6xiEMwilP7nzfh4ueBSORFIubrjbbjiLUPqTmf9f5DTpIy1ocOQmGoTSPo93O/Pk7vS2FjQI9xF/DEKF/e2Xvnq3L2hGgCta0CKcQSjta0e3GYhMpW4aTVT3oFk6fYnRBn3tlT76/Ccz5IcGofSa+ukOKAn3d1Tar2lf8Mxj1hFnmrTJf4bi1ecVuYUpaV9wXjqrMAq1Hjn0tgrX3lbYZrhgu3Q02ipUjOlX1IlwCwJcDhdOk052WoayCkfd2dLWpnBhlaR9aR3KIpwzLRylK+7Jiv5moTymXx79l8iI+wMlunK5NL7eIpTVkaPsRKl72F1ZjWaZ+pRHbHQWHvmGihDuIaYVcJM56l8FDkiBDZ5Pjr9hFXIJ3BX8wCaURKgzXrb5dr5Ctfjl86TKYFrUiIEeZ8wjCTZCVhk+W7TfCXPdZ4pRnwa3YnJGQ/XGV30K7LsnfmJAxkJVyPy23Q6fyrud4bc6I6FyuOi8ky7x/dPTYfQ2qjIQap/zlrWq0FejL6WhF+iX4umnR+oH+sdpsC9eS4PfMT6FN5jPnVBjk3q1c8P5JGITyos0pH/z/xTC75o7gEB8wmKUGH3b8djp76rFda6vcn86Hb7AfFTFbLsUk3AdgWjBDpRYnx612BdOmkUzrmEZGjwGqLk4oztMnEW/ND5LOON+dyg+4hZO4AB2YR+O4SreojVP3dsYkfaf5gDswAcEMXzHYYzK4hxuEFbhLJ7KI21XM17hEjZilM01ZP8NVCP6ozeqkbPu93+pG3nJRlqdHgAAAABJRU5ErkJggg==");
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/modal/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/modal/index.axml
new file mode 100755
index 000000000..135b4c636
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/modal/index.axml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/modal/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/modal/index.js
new file mode 100755
index 000000000..3fbc09b26
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/modal/index.js
@@ -0,0 +1,24 @@
+Component({
+ props: {
+ className: '',
+ topImageSize: 'md',
+ showClose: true,
+ closeType: '0'
+ },
+ methods: {
+ onModalClick: function onModalClick() {
+ var onModalClick = this.props.onModalClick;
+
+ if (onModalClick) {
+ onModalClick();
+ }
+ },
+ onModalClose: function onModalClose() {
+ var onModalClose = this.props.onModalClose;
+
+ if (onModalClose) {
+ onModalClose();
+ }
+ }
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/modal/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/modal/index.json
new file mode 100755
index 000000000..467ce2945
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/modal/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/notice/index.acss b/public/appmini/old/wechat/node_modules/mini-antui/es/notice/index.acss
new file mode 100755
index 000000000..1d24ffc09
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/notice/index.acss
@@ -0,0 +1,76 @@
+.am-notice {
+ width: 100%;
+ height: 36px;
+ box-sizing: border-box;
+ line-height: 36px;
+ display: flex;
+ background-color: #fefceb;
+ overflow: hidden;
+ font-size: 13px;
+ color: #f76a24;
+}
+
+.am-notice-thumb {
+ padding-left: 16px;
+ width: 19px;
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAYFBMVEVMaXH4biD/dSn3biD2cib/dDj3biD3biD4biD4byP/lUD3biD4biH4biH3biD5byH4biD4cCH3biH3bST2byT4biH3biD3cSP3biD0bSH6cCL4biH3biL3biH4biL4biGKhhI5AAAAIHRSTlMA4A3wGAj3+rRQBJOsn+o/zUtcKBzH1TKILzZvU796aUQsa54AAAEeSURBVHgBfdNVlt0wFETRElhlZvaD+c+yta7SSYznewstY99aqwkPNYbMcd/XUTHGbTOZvTzQlcZFaUF+kHhQ0OUVjumYroWAZCQZ99hla5YVAgC6zLGcEEqtb1JUC/4CTwaqLpyspFT3+B8gyjla+EpKucYeIBrClZC7MwmYXimAznEVEJ3AyLcGULC4AUkpsy800TVAZ9gAUFxvAGaZPWZ7ByrWsontDjQcnkHG7HGJJFxByeUafCgTVCzTazAwSwHkwq6A7cJJXC/rOOdYZqePZRVn+FpHqbZ7YEfWYW7d972tjg+mUVS7R9fXNM0v0O2bHOz50X4D+DrSbOnp2WfkLGBm/bG4aCPzVpZ4+DWNBw9NiizwVF/kPXb9AFr1D7ArYO8yAAAAAElFTkSuQmCC") center no-repeat;
+ background-size: 18px auto;
+ background-position: center right;
+}
+
+.am-notice-content {
+ flex: 1;
+ width: 100%;
+ margin-left: 9px;
+ margin-right: 10px;
+ overflow: hidden;
+}
+
+.am-notice-marquee {
+ position: relative;
+ height: 100%;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ display: inline-block;
+}
+
+.am-notice-operation {
+ padding-right: 16px;
+}
+
+.am-notice-link {
+ display: block;
+ height: 100%;
+ color: #f85800;
+}
+
+.am-notice-link::after {
+ content: "";
+ display: inline-block;
+ width: 6px;
+ height: 6px;
+ border: 1px solid #f76a24;
+ border-top: 0 none;
+ border-left: 0 none;
+ margin-left: 6px;
+ margin-right: 2px;
+ margin-bottom: 1px;
+ transform: rotate(315deg)
+}
+
+.am-notice-closable {
+ width: 10px;
+ height: 100%;
+ background-image: url('https://gw.alipayobjects.com/zos/rmsportal/mLiemrUlPGVwIGXQdWDx.png');
+ background-size: contain;
+ background-position: center;
+ background-repeat: no-repeat;
+}
+
+.am-notice-operation-text {
+ display: block;
+ height: 100%;
+ color: #e14f00
+ ;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/notice/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/notice/index.axml
new file mode 100755
index 000000000..b53f62c86
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/notice/index.axml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+ {{action}}
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/notice/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/notice/index.js
new file mode 100755
index 000000000..344b59479
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/notice/index.js
@@ -0,0 +1,123 @@
+Component({
+ props: {
+ className: '',
+ mode: '', // closable,link
+ action: '', // 文本按钮
+ show: true, // 是否显示
+ enableMarquee: false, // 是否开启marquee
+ onClick: function onClick() {},
+ marqueeProps: {
+ loop: false,
+ leading: 500,
+ trailing: 800,
+ fps: 40
+ }
+ },
+ data: {
+ animatedWidth: 0,
+ overflowWidth: 0
+ },
+ didMount: function didMount() {
+ if (this.props.enableMarquee) {
+ this._measureText();
+ this._startAnimation();
+ }
+ },
+ didUpdate: function didUpdate() {
+ this._measureText();
+ if (this.props.enableMarquee && !this._marqueeTimer) {
+ this._measureText();
+ this._startAnimation();
+ }
+ },
+ didUnmount: function didUnmount() {
+ if (this._marqueeTimer) {
+ clearTimeout(this._marqueeTimer);
+ this._marqueeTimer = null;
+ }
+ },
+
+ methods: {
+ _measureText: function _measureText() {
+ var _this = this;
+
+ // 计算文本所占据的宽度,计算需要滚动的宽度
+ wx.createSelectorQuery().select('.am-notice-marquee-' + this.$id).boundingClientRect().select('.am-notice-content-' + this.$id).boundingClientRect().exec(function (ret) {
+ var overflowWidth = ret && ret[0] && ret[1] && ret[0].width - ret[1].width || 0;
+ _this.setData({
+ overflowWidth: overflowWidth
+ });
+ });
+ },
+ _startAnimation: function _startAnimation() {
+ var _this2 = this;
+
+ if (this._marqueeTimer) {
+ clearTimeout(this._marqueeTimer);
+ }
+
+ var _props$marqueeProps = this.props.marqueeProps,
+ loop = _props$marqueeProps.loop,
+ fps = _props$marqueeProps.fps,
+ trailing = _props$marqueeProps.trailing,
+ leading = _props$marqueeProps.leading;
+
+ var TIMEOUT = 1 / fps * 1000;
+ var isLeading = this.data.animatedWidth === 0;
+ var timeout = isLeading ? leading : TIMEOUT;
+
+ var animate = function animate() {
+ var overflowWidth = _this2.data.overflowWidth;
+
+ var animatedWidth = _this2.data.animatedWidth + 1;
+ var isRoundOver = animatedWidth > overflowWidth;
+
+ if (isRoundOver) {
+ if (loop) {
+ animatedWidth = 0;
+ } else {
+ return;
+ }
+ }
+
+ if (isRoundOver && trailing) {
+ _this2._marqueeTimer = setTimeout(function () {
+ _this2.setData({
+ animatedWidth: animatedWidth
+ });
+
+ _this2._marqueeTimer = setTimeout(animate, TIMEOUT);
+ }, trailing);
+ } else {
+ _this2.setData({
+ animatedWidth: animatedWidth
+ });
+
+ _this2._marqueeTimer = setTimeout(animate, TIMEOUT);
+ }
+ };
+
+ if (this.data.overflowWidth !== 0) {
+ this._marqueeTimer = setTimeout(animate, timeout);
+ }
+ },
+ onNoticeTap: function onNoticeTap() {
+ var _props = this.props,
+ mode = _props.mode,
+ onClick = _props.onClick;
+
+ if (mode === 'link' && typeof onClick === 'function') {
+ onClick();
+ }
+ },
+ onOperationTap: function onOperationTap() {
+ var _props2 = this.props,
+ mode = _props2.mode,
+ onClick = _props2.onClick;
+
+ if (mode === 'closable' && typeof onClick === 'function') {
+ onClick();
+ }
+ }
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/notice/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/notice/index.json
new file mode 100755
index 000000000..32640e0dc
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/notice/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/page-result/index.acss b/public/appmini/old/wechat/node_modules/mini-antui/es/page-result/index.acss
new file mode 100755
index 000000000..004cd6216
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/page-result/index.acss
@@ -0,0 +1,88 @@
+.am-page-result {
+ background: #fff;
+ height: 100vh;
+ overflow: hidden;
+}
+
+.am-page-result-pic {
+ width: 220px;
+ height: 220px;
+ margin: 22px auto 0;
+ background-position: center bottom;
+ background-repeat: no-repeat;
+ background-size: contain;
+}
+
+.page-network {
+ background-image: url("https://gw.alipayobjects.com/as/g/antui/antui-static/1.0.3/i/error-network.png");
+}
+
+.page-error {
+ background-image: url("https://gw.alipayobjects.com/as/g/antui/antui-static/1.0.3/i/error-busy.png");
+}
+
+.page-busy {
+ background-image: url("https://gw.alipayobjects.com/as/g/antui/antui-static/1.0.3/i/error-excption.png");
+}
+
+.page-empty {
+ background-image: url("https://gw.alipayobjects.com/as/g/antui/antui-static/1.0.3/i/error-not-found.png");
+}
+
+.page-logoff {
+ background-image: url("https://gw.alipayobjects.com/as/g/antui/antui-static/1.0.3/i/error-logout.png");
+}
+
+.am-page-result-title {
+ margin: 25px auto 0;
+ text-align: center;
+ font-size: 20px;
+ color: #333;
+}
+
+.am-page-result-brief {
+ margin: 16px auto;
+ font-size: 14px;
+ color: #888;
+ max-width: 266px;
+ text-align: center;
+}
+
+.am-local-page {
+ height: 100%;
+}
+
+.am-local-page .am-page-result-pic {
+ width: 90px;
+ height: 90px;
+ margin: 24px auto 0;
+ background-size: contain;
+}
+
+.am-local-page .am-page-result-brief {
+ margin-bottom: 30px;
+ font-size: 14px;
+ color: #999;
+ max-width: 266px;
+ text-align: center;
+}
+
+.am-local-page .page-empty {
+ background-image: url("https://gw.alipayobjects.com/as/g/antui/antui-static/1.0.3/i/error-not-found-sm.png");
+}
+
+.am-local-page .page-error {
+ background-image: url("https://gw.alipayobjects.com/as/g/antui/antui-static/1.0.3/i/error-busy-sm.png");
+}
+
+.am-local-page .page-network {
+ background-image: url("https://gw.alipayobjects.com/as/g/antui/antui-static/1.0.3/i/error-network-sm.png");
+}
+
+.am-local-page .page-busy {
+ background-image: url("https://gw.alipayobjects.com/as/g/antui/antui-static/1.0.3/i/error-excption-sm.png");
+}
+
+.am-local-page .page-logoff {
+ background-image: url("https://gw.alipayobjects.com/as/g/antui/antui-static/1.0.3/i/error-logout-sm.png");
+}
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/page-result/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/page-result/index.axml
new file mode 100755
index 000000000..4c7f5d697
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/page-result/index.axml
@@ -0,0 +1,6 @@
+
+
+ {{title}}
+ {{brief}}
+
+
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/page-result/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/page-result/index.js
new file mode 100755
index 000000000..3bd42c3ce
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/page-result/index.js
@@ -0,0 +1,7 @@
+Component({
+ props: {
+ className: '',
+ type: 'network',
+ local: false
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/page-result/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/page-result/index.json
new file mode 100755
index 000000000..467ce2945
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/page-result/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/picker-item/index.acss b/public/appmini/old/wechat/node_modules/mini-antui/es/picker-item/index.acss
new file mode 100755
index 000000000..72c0511cc
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/picker-item/index.acss
@@ -0,0 +1,84 @@
+.am-picker-item {
+ display: flex;
+ align-items: center;
+ background: #fff;
+ padding-left: 15px;
+}
+
+.am-picker-line {
+ position: relative;
+ flex: 1;
+ display: flex;
+ align-items: center;
+ padding-right: 15px;
+ min-height: 47px;
+ overflow: hidden;
+}
+
+.am-picker-label {
+ min-width: 80px;
+ margin-right: 2px;
+ color: #333;
+}
+
+.am-picker-wrapper {
+ display: flex;
+ flex: 1;
+ height: 33px;
+ align-items: center;
+}
+
+.am-picker-content {
+ flex: 1;
+ display: flex;
+ align-items: center;
+ height: 33px;
+ color: #000;
+ text-align: left;
+}
+
+.am-picker-clear {
+ display: flex;
+}
+
+.am-picker-line-bottom::after {
+ content: '';
+ display: block;
+ position: absolute;
+ width: 100%;
+ height: 1px;
+ transform: scaleY(0.5);
+ left: 0;
+ bottom: 0;
+ right: auto;
+ top: auto;
+ background-color: #eee;
+}
+
+/* 最后一行 */
+.am-picker-item.last .am-picker-line-bottom::after {
+ display: none;
+}
+
+.am-picker-text {
+ padding-left: 8px;
+}
+
+.am-picker-content-placeholder {
+ color: #ccc;
+}
+
+.am-picker-content-value {
+ color: #333;
+}
+
+.am-picker-arrow {
+ display: block;
+ width: 13px;
+ height: 13px;
+ margin-left: 8px;
+ background-image: url('https://gw.alipayobjects.com/zos/rmsportal/nGMpTwTjtKMbOeeQIucS.png');
+ background-size: contain;
+ background-repeat: no-repeat;
+ background-position: 50% 50%;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/picker-item/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/picker-item/index.axml
new file mode 100755
index 000000000..00902d58f
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/picker-item/index.axml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+ {{value.length > 0 ? value : placeholder}}
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/picker-item/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/picker-item/index.js
new file mode 100755
index 000000000..f732912e1
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/picker-item/index.js
@@ -0,0 +1,16 @@
+import fmtEvent from '../_util/fmtEvent';
+
+Component({
+ props: {
+ className: '',
+ value: '',
+ placeholder: '',
+ onSelect: function onSelect() {}
+ },
+ methods: {
+ onPickerTap: function onPickerTap(e) {
+ var event = fmtEvent(this.props, e);
+ this.props.onPickerTap(event);
+ }
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/picker-item/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/picker-item/index.json
new file mode 100755
index 000000000..32640e0dc
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/picker-item/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/popover/index.acss b/public/appmini/old/wechat/node_modules/mini-antui/es/popover/index.acss
new file mode 100755
index 000000000..39dddb58a
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/popover/index.acss
@@ -0,0 +1,171 @@
+.am-popover {
+ position: relative;
+}
+.am-popover-mask {
+ position: fixed;
+ top: 0;
+ right: 0;
+ left: 0;
+ bottom: 0;
+ background-color: rgba(0, 0, 0, 0.3);
+ height: 100%;
+ z-index: 99;
+}
+.am-popover-content {
+ position: absolute;
+ z-index: 100;
+ border-radius: 4px;
+ font-size: 14px;
+ color: #333;
+}
+.border-true {
+ border: 1px solid #ddd;
+}
+.am-popover-inner {
+ position: relative;
+ color: #000;
+ background-color: #fff;
+ border-radius: 3px;
+}
+/* popover position: top */
+.am-popover-placement-top {
+ top: -7px;
+ left: 50%;
+ transform: translate(-50%, -100%);
+}
+.am-popover-placement-topLeft {
+ top: -7px;
+ left: 0;
+ transform: translate(0, -100%);
+}
+.am-popover-placement-topRight {
+ top: -7px;
+ right: 0;
+ transform: translate(0, -100%);
+}
+/* popover position: right */
+.am-popover-placement-right {
+ top: 50%;
+ right: -7px;
+ transform: translate(100%, -50%);
+}
+.am-popover-placement-rightTop {
+ top: 0;
+ right: -7px;
+ transform: translateX(100%);
+}
+.am-popover-placement-rightBottom {
+ bottom: 0;
+ right: -7px;
+ transform: translateX(100%);
+}
+/* popover position: bottom */
+.am-popover-placement-bottom {
+ bottom: -7px;
+ left: 50%;
+ transform: translate(-50%, 100%);
+}
+.am-popover-placement-bottomRight {
+ bottom: -7px;
+ right: 0;
+ transform: translateY(100%);
+}
+.am-popover-placement-bottomLeft {
+ bottom: -7px;
+ left: 0;
+ transform: translateY(100%);
+}
+/* popover position: left */
+.am-popover-placement-left {
+ top: 50%;
+ left: -7px;
+ transform: translate(-100%, -50%);
+}
+.am-popover-placement-leftTop {
+ top: 0;
+ left: -7px;
+ transform: translateX(-100%);
+}
+.am-popover-placement-leftBottom {
+ bottom: 0;
+ left: -7px;
+ transform: translateX(-100%);
+}
+/* arrow style start */
+.am-popover-arrow {
+ position: absolute;
+ width: 7px;
+ height: 7px;
+ background-color: #fff;
+ z-index: 0;
+ /* box-shadow: 0 0 2px rgba(0, 0, 0, 0.21); */
+}
+/* arrow position: top */
+.am-popover-placement-top .am-popover-arrow,
+.am-popover-placement-topLeft .am-popover-arrow,
+.am-popover-placement-topRight .am-popover-arrow {
+ transform: translateY(50%) rotate(45deg);
+ bottom: 0;
+}
+.am-popover-placement-top .am-popover-arrow {
+ transform: translate(-50%, 50%) rotate(45deg);
+ left: 50%;
+}
+.am-popover-placement-topRight .am-popover-arrow {
+ right: 16px;
+}
+.am-popover-placement-topLeft .am-popover-arrow {
+ left: 16px;
+}
+/* arrow position: right */
+.am-popover-placement-right .am-popover-arrow,
+.am-popover-placement-rightTop .am-popover-arrow,
+.am-popover-placement-rightBottom .am-popover-arrow {
+ transform: translateX(-50%) rotate(45deg);
+ left: 0;
+}
+.am-popover-placement-right .am-popover-arrow {
+ transform: translate(-50%, -50%) rotate(45deg);
+ top: 50%;
+}
+.am-popover-placement-rightBottom .am-popover-arrow {
+ bottom: 16px;
+}
+.am-popover-placement-rightTop .am-popover-arrow {
+ top: 16px;
+}
+/* arrow position: bottom */
+.am-popover-placement-bottom .am-popover-arrow,
+.am-popover-placement-bottomLeft .am-popover-arrow,
+.am-popover-placement-bottomRight .am-popover-arrow {
+ transform: translateY(-50%) rotate(45deg);
+ top: 0;
+}
+.am-popover-placement-bottom .am-popover-arrow {
+ transform: translate(-50%, -50%) rotate(45deg);
+ left: 50%;
+}
+.am-popover-placement-bottomLeft .am-popover-arrow {
+ left: 16px;
+}
+.am-popover-placement-bottomRight .am-popover-arrow {
+ right: 16px;
+}
+/* arrow position: left */
+.am-popover-placement-left .am-popover-arrow,
+.am-popover-placement-leftTop .am-popover-arrow,
+.am-popover-placement-leftBottom .am-popover-arrow {
+ transform: translateX(50%) rotate(45deg);
+ right: 0;
+}
+.am-popover-placement-left .am-popover-arrow {
+ transform: translate(50%, -50%) rotate(45deg);
+ top: 50%;
+}
+.am-popover-placement-leftTop .am-popover-arrow {
+ top: 16px;
+}
+.am-popover-placement-leftBottom .am-popover-arrow {
+ bottom: 16px;
+}
+/* arrow style end */
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/popover/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/popover/index.axml
new file mode 100755
index 000000000..d0b95c3c9
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/popover/index.axml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/popover/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/popover/index.js
new file mode 100755
index 000000000..b008b305f
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/popover/index.js
@@ -0,0 +1,15 @@
+Component({
+ props: {
+ show: false,
+ className: '',
+ showMask: true,
+ position: 'bottomRight'
+ },
+ methods: {
+ onMaskClick: function onMaskClick() {
+ if (this.props.onMaskClick && typeof this.props.onMaskClick === 'function') {
+ this.props.onMaskClick();
+ }
+ }
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/popover/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/popover/index.json
new file mode 100755
index 000000000..467ce2945
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/popover/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/popover/popover-item/index.acss b/public/appmini/old/wechat/node_modules/mini-antui/es/popover/popover-item/index.acss
new file mode 100755
index 000000000..e74576c76
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/popover/popover-item/index.acss
@@ -0,0 +1,16 @@
+.am-popover-item {
+ min-width: 80px;
+ max-width: 170px;
+ height: 39px;
+ margin: 0 10px;
+ line-height: 39px;
+ font-size: 14px;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ color: #333;
+ text-align: center;
+}
+.am-popover-item:not(:last-child) {
+ border-bottom: 1px solid #eee;
+}
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/popover/popover-item/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/popover/popover-item/index.axml
new file mode 100755
index 000000000..810ea4c36
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/popover/popover-item/index.axml
@@ -0,0 +1,3 @@
+
+
+
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/popover/popover-item/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/popover/popover-item/index.js
new file mode 100755
index 000000000..6b2e5cb58
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/popover/popover-item/index.js
@@ -0,0 +1,12 @@
+Component({
+ props: {
+ className: ''
+ },
+ methods: {
+ onItemClick: function onItemClick() {
+ if (this.props.onItemClick && typeof this.props.onItemClick === 'function') {
+ this.props.onItemClick();
+ }
+ }
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/popover/popover-item/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/popover/popover-item/index.json
new file mode 100755
index 000000000..32640e0dc
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/popover/popover-item/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/popup/index.acss b/public/appmini/old/wechat/node_modules/mini-antui/es/popup/index.acss
new file mode 100755
index 000000000..e0cd78583
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/popup/index.acss
@@ -0,0 +1,57 @@
+.am-popup-content {
+ position: fixed;
+}
+
+.am-popup-mask {
+ position: fixed;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ background-color: rgba(0, 0, 0, 0.75);
+ opacity: 0;
+ pointer-events: none;
+}
+
+.am-popup-left {
+ transform: translateX(-100%);
+ left: 0;
+ top: 0;
+ bottom: 0;
+}
+
+.am-popup-right {
+ transform: translateX(100%);
+ right: 0;
+ top: 0;
+ bottom: 0;
+}
+
+.am-popup-top {
+ top: 0;
+ width: 100vw;
+ transform: translateY(-100%);
+}
+
+.am-popup-bottom {
+ bottom: 0;
+ width: 100vw;
+ transform: translateY(100%);
+}
+
+.am-popup-show .am-popup-content {
+ transform: none;
+}
+
+.am-popup-show .am-popup-mask {
+ opacity: 1;
+ pointer-events: auto;
+}
+
+.am-popup.animation .am-popup-content {
+ transition: all 0.15s linear;
+}
+
+.am-popup.animation .am-popup-mask {
+ transition: all 0.15s linear;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/popup/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/popup/index.axml
new file mode 100755
index 000000000..d7b797a5d
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/popup/index.axml
@@ -0,0 +1,4 @@
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/popup/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/popup/index.js
new file mode 100755
index 000000000..3f7fc6054
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/popup/index.js
@@ -0,0 +1,20 @@
+Component({
+ props: {
+ className: '',
+ show: false,
+ position: 'bottom',
+ mask: true,
+ animation: true,
+ disableScroll: true
+ },
+ methods: {
+ onMaskTap: function onMaskTap() {
+ var onClose = this.props.onClose;
+
+
+ if (onClose) {
+ onClose();
+ }
+ }
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/popup/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/popup/index.json
new file mode 100755
index 000000000..32640e0dc
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/popup/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/search-bar/index.acss b/public/appmini/old/wechat/node_modules/mini-antui/es/search-bar/index.acss
new file mode 100755
index 000000000..86753057e
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/search-bar/index.acss
@@ -0,0 +1,90 @@
+.am-search {
+ height: 44px;
+ display: flex;
+ align-items: center;
+ padding: 0 0 0 12px;
+ background: #ffffff;
+ overflow: hidden;
+}
+
+.am-search-input {
+ display: flex;
+ position: relative;
+ height: 28px;
+ line-height: 28px;
+ flex: 1;
+ background: rgba(0, 0, 0, 0.05);
+ border-radius: 2px;
+}
+
+.am-search-synthetic {
+ display: flex;
+ position: absolute;
+ left: 0;
+ top: 0;
+ height: 28px;
+ line-height: 28px;
+ padding-left: 14px;
+}
+
+.am-search-synthetic-placeholder {
+ width: 100px;
+ font-size: 14px;
+ color: #999999;
+}
+
+.am-search-synthetic-icon {
+ height: 14px;
+ width: 14px;
+ display: inline-block;
+ background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjhweCIgaGVpZ2h0PSIyOHB4IiB2aWV3Qm94PSIwIDAgMjggMjgiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDQ5LjMgKDUxMTY3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5TaGFwZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxkZWZzPjwvZGVmcz4KICAgIDxnIGlkPSLnu4Tku7blupPlj4rmoIfms6giIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSLlhbbku5YiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0zMDUzLjAwMDAwMCwgLTgwMi4wMDAwMDApIiBmaWxsPSIjQjJCMkIyIj4KICAgICAgICAgICAgPGcgaWQ9IuaQnOe0ouWFpeWPoyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjk5My4wMDAwMDAsIDczMi4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxnIGlkPSJpb3M25bqU55So5Lit5b+D5a+86IiqIj4KICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNODYuMDc4NDMwOCw5OCBMNzkuNDkwMTk1Niw5MC45MjE0MzUyIEM3Ny41MTU1MTcyLDkyLjQ2MTY5OTYgNzQuNDEyMzk5OCw5My45NzQ0NzcxIDcxLjczNzAyMTQsOTMuOTc0NDc3MSBDNjUuMjU0ODk0LDkzLjk3NDQ3NzEgNjAsODguNjA3NTY1OCA2MCw4MS45ODczNTg2IEM2MCw3NS4zNjcxNTE0IDY1LjI1NDg5NCw3MCA3MS43MzcwMjE0LDcwIEM3OC4yMTg2NzQzLDcwIDgzLjQ3MzU2ODIsNzUuMzY2NjcxMiA4My40NzM1NjgyLDgxLjk4NzExODUgQzgzLjQ3MzU2ODIsODQuNTk3NjkxMyA4Mi42NDc1ODIyLDg3LjAwNjU0NTcgODEuMjU5OTQ0Nyw4OC45NzQ1MDEzIEw4OCw5NS44MzcwMTA3IEw4Ni4wNzg0MzA4LDk4IFogTTcxLjczNzA1MjgsNzIuNTA2MTAzNyBDNjYuNjA5NDg0NCw3Mi41MDYxMDM3IDYyLjQ1MjgyNjgsNzYuNzUwNjY3MSA2Mi40NTI4MjY4LDgxLjk4NzEwNzkgQzYyLjQ1MjgyNjgsODcuMjIzNTQ4NyA2Ni42MDkyMzY3LDkxLjQ2ODYxMzYgNzEuNzM3MDUyOCw5MS40Njg2MTM2IEM3Ni44NjMzODI0LDkxLjQ2ODYxMzYgODEuMDE5NzkyMyw4Ny4yMjM1NDg3IDgxLjAxOTc5MjMsODEuOTg3MTA3OSBDODEuMDE5NzkyMyw3Ni43NTA2NjcxIDc2Ljg2MzM4MjQsNzIuNTA2MTAzNyA3MS43MzcwNTI4LDcyLjUwNjEwMzcgTDcxLjczNzA1MjgsNzIuNTA2MTAzNyBaIiBpZD0iU2hhcGUiPjwvcGF0aD4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+');
+ background-size: contain;
+ margin-right: 6px;
+ vertical-align: -2px;
+}
+
+.am-search-value {
+ flex: 1;
+ height: 28px;
+ font-size: 14px;
+ padding: 0 0 0 34px;
+ background: transparent;
+ box-sizing: border-box;
+}
+
+.am-search-clear {
+ visibility: hidden;
+ width: 28px;
+ height: 28px;
+}
+
+.am-search-clear icon {
+ display: flex;
+ height: 100%;
+ justify-content: center;
+ align-items: center;
+}
+
+.am-search-clear-show {
+ visibility: visible;
+}
+
+.am-search-cancel {
+ margin-right: -48px;
+ opacity: 0;
+ color: #108ee9;
+ font-size: 16px;
+ width: 64px;
+ height: 28px;
+ line-height: 28px;
+ text-align: center;
+}
+
+.am-search-anim {
+ transition: margin-right 0.3s, opacity 0.3s;
+}
+
+.am-search-repos {
+ margin-right: 0;
+ opacity: 1;
+}
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/search-bar/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/search-bar/index.axml
new file mode 100755
index 000000000..c18b3bfb6
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/search-bar/index.axml
@@ -0,0 +1,29 @@
+
+
+
+
+
+ {{placeholder}}
+
+
+
+
+
+
+
+ 取消
+
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/search-bar/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/search-bar/index.js
new file mode 100755
index 000000000..6d898ed59
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/search-bar/index.js
@@ -0,0 +1,102 @@
+Component({
+ props: {
+ className: '',
+ placeholder: '',
+ focus: false
+ },
+ data: {
+ _value: '',
+ focus: false
+ },
+ didMount: function didMount() {
+ this.setData({
+ _value: 'value' in this.props ? this.props.value : '',
+ focus: this.props.focus
+ });
+ },
+ didUpdate: function didUpdate() {
+ if ('value' in this.props && this.props.value !== this.data._value) {
+ this.setData({
+ _value: this.props.value
+ });
+ }
+ },
+
+ methods: {
+ handleInput: function handleInput(e) {
+ var value = e.detail.value;
+
+
+ if (!('value' in this.props)) {
+ this.setData({
+ _value: value
+ });
+ }
+
+ if (this.props.onInput) {
+ this.props.onInput(value);
+ }
+ },
+ handleClear: function handleClear() {
+ // this.setData({
+ // focus: true,
+ // });
+
+ if (!('value' in this.props)) {
+ this.setData({
+ _value: ''
+ });
+ }
+
+ this.doClear();
+ },
+ doClear: function doClear() {
+ if (this.props.onClear) {
+ this.props.onClear('');
+ }
+
+ if (this.props.onChange) {
+ this.props.onChange('');
+ }
+ },
+ handleFocus: function handleFocus() {
+ this.setData({
+ focus: true
+ });
+
+ if (this.props.onFocus) {
+ this.props.onFocus();
+ }
+ },
+ handleBlur: function handleBlur() {
+ this.setData({
+ focus: false
+ });
+
+ if (this.props.onBlur) {
+ this.props.onBlur();
+ }
+ },
+ handleCancel: function handleCancel() {
+ if (!('value' in this.props)) {
+ this.setData({
+ _value: ''
+ });
+ }
+
+ if (this.props.onCancel) {
+ this.props.onCancel();
+ } else {
+ this.doClear();
+ }
+ },
+ handleConfirm: function handleConfirm(e) {
+ var value = e.detail.value;
+
+
+ if (this.props.onSubmit) {
+ this.props.onSubmit(value);
+ }
+ }
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/search-bar/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/search-bar/index.json
new file mode 100755
index 000000000..467ce2945
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/search-bar/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/stepper/index.acss b/public/appmini/old/wechat/node_modules/mini-antui/es/stepper/index.acss
new file mode 100755
index 000000000..ec361c7c2
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/stepper/index.acss
@@ -0,0 +1,40 @@
+.am-stepper-content {
+ padding: 10rpx 0;
+ overflow: hidden;
+ text-align: center;
+ line-height: 70rpx;
+ font-size: 40rpx;
+ display: inline-block;
+ width: 245rpx;
+ color: #000;
+}
+
+.am-stepper-reduce {
+ border: #eeeeee solid 1px;
+ border-radius: 10rpx;
+ width: 70rpx;
+ height: 70rpx;
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyppVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTMyIDc5LjE1OTI4NCwgMjAxNi8wNC8xOS0xMzoxMzo0MCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUuNSAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo0MDRDMUYwNDI1OTExMUU4OUY0N0VFQzhCQkYwQTYyOCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo1ODU0RTgzODI2ODYxMUU4OUY0N0VFQzhCQkYwQTYyOCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjQwNEMxRjAyMjU5MTExRTg5RjQ3RUVDOEJCRjBBNjI4IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjQwNEMxRjAzMjU5MTExRTg5RjQ3RUVDOEJCRjBBNjI4Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+jjGoUQAAAF5JREFUeNrs2LEJACAMRUF1/xkc0gUiAe3tRLkHFna59teIKD/UyieBgICAgICAgICAgICAgICAgByVu9batkZ+H3t9318NdCAgICAgICAgICAgICAgICAgIPeaAgwAyuE/sx15o0MAAAAASUVORK5CYII=") center center no-repeat;
+ background-size: 40rpx 40rpx;
+ float: left;
+ display: inline-block;
+}
+
+.am-stepper-add {
+ border: #eeeeee solid 1px;
+ border-radius: 4rpx;
+ width: 70rpx;
+ height: 70rpx;
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyppVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTMyIDc5LjE1OTI4NCwgMjAxNi8wNC8xOS0xMzoxMzo0MCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUuNSAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo1ODU0RTgzRjI2ODYxMUU4OUY0N0VFQzhCQkYwQTYyOCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo1ODU0RTg0MDI2ODYxMUU4OUY0N0VFQzhCQkYwQTYyOCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjU4NTRFODNEMjY4NjExRTg5RjQ3RUVDOEJCRjBBNjI4IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjU4NTRFODNFMjY4NjExRTg5RjQ3RUVDOEJCRjBBNjI4Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+jv5jrAAAAHdJREFUeNrs2sENgCAMBVDq/jMwpA5QIdERIIivCQdO5SXt5YfIzLJDHWWTmgKJiDq8x4zRapDWJsNogYCAgICAgICAgICAgID8D1J6+PAEEGe/fuzU9/1SFDsCAgICAgICAgICAgICAgKyEuQa3SD811qsbgEGAMVVTz/OpY/oAAAAAElFTkSuQmCC");
+ background-size: 40rpx 40rpx;
+ background-repeat: no-repeat;
+ background-position: center;
+ float: right;
+ display: inline-block;
+}
+
+.am-stepper-input {
+ display: inline-block;
+ width: 70rpx;
+ color: #000;
+}
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/stepper/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/stepper/index.axml
new file mode 100755
index 000000000..7250f39f1
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/stepper/index.axml
@@ -0,0 +1,20 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/stepper/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/stepper/index.js
new file mode 100755
index 000000000..53e909789
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/stepper/index.js
@@ -0,0 +1,111 @@
+Component({
+ data: {
+ opaReduce: 1,
+ opaAdd: 1
+ },
+ props: {
+ className: '',
+ min: 0,
+ max: 100000,
+ disabled: false,
+ value: 10,
+ readOnly: false,
+ showNumber: false,
+ step: 1,
+ onChange: function onChange() {}
+ },
+ didMount: function didMount() {
+ var _props = this.props,
+ value = _props.value,
+ min = _props.min,
+ max = _props.max;
+
+ this.setData({
+ value: Math.min(Math.max(min, value), max)
+ });
+ },
+ didUpdate: function didUpdate(preProps) {
+ var _props2 = this.props,
+ value = _props2.value,
+ min = _props2.min,
+ max = _props2.max;
+
+ if (preProps.value !== value) {
+ var newValue = Math.min(Math.max(min, value), max);
+ this.setData({
+ value: newValue
+ });
+ this.resetFn(newValue);
+ }
+ },
+
+ methods: {
+ changeFn: function changeFn(ev) {
+ var _props3 = this.props,
+ min = _props3.min,
+ max = _props3.max,
+ onChange = _props3.onChange,
+ disabled = _props3.disabled,
+ readOnly = _props3.readOnly,
+ step = _props3.step;
+
+ var evType = ev.target.dataset.type;
+ var _data = this.data,
+ opaReduce = _data.opaReduce,
+ opaAdd = _data.opaAdd,
+ value = _data.value;
+
+ var enable = disabled || readOnly;
+ if (!enable) {
+ if (evType === 'reduce') {
+ if (value > min) {
+ opaAdd = 1;
+ value = Math.max(min, value - step);
+ opaReduce = value === min ? 0.4 : 1;
+ }
+ } else {
+ /* eslint-disable no-lonely-if */
+ if (value < max) {
+ opaReduce = 1;
+ value = Math.min(value + step, max);
+ opaAdd = value === max ? 0.4 : 1;
+ }
+ }
+ this.setData({
+ value: value,
+ opaAdd: opaAdd,
+ opaReduce: opaReduce
+ });
+ onChange(value);
+ }
+ },
+ onBlur: function onBlur(event) {
+ var value = event.detail.value;
+
+ this.resetFn(value);
+ },
+ resetFn: function resetFn(value) {
+ var _props4 = this.props,
+ max = _props4.max,
+ min = _props4.min,
+ onChange = _props4.onChange;
+
+ var calculatedVal = value;
+ var opaAdd = 1;
+ var opaReduce = 1;
+ if (value >= max) {
+ calculatedVal = max;
+ opaAdd = 0.4;
+ } else if (value <= min) {
+ calculatedVal = min;
+ opaReduce = 0.4;
+ }
+ this.setData({
+ value: calculatedVal,
+ opaAdd: opaAdd,
+ opaReduce: opaReduce
+ });
+ onChange(calculatedVal);
+ }
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/stepper/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/stepper/index.json
new file mode 100755
index 000000000..467ce2945
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/stepper/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/steps/index.acss b/public/appmini/old/wechat/node_modules/mini-antui/es/steps/index.acss
new file mode 100755
index 000000000..9bb638690
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/steps/index.acss
@@ -0,0 +1,139 @@
+/* horizontal steps style */
+.am-hor-steps {
+ padding: 20px 50px 10px 50px;
+ background-color: #fff;
+ overflow: hidden;
+ white-space: nowrap;
+}
+.am-hor-step {
+ display: inline-block;
+ white-space: normal;
+ text-align: center;
+ vertical-align: top;
+}
+.am-hor-step-line {
+ position: relative;
+ margin: 6px 0;
+ height: 2px;
+ background-color: #ccc;
+}
+.am-hor-step-line.is-active {
+ background-color: #108ee9;
+}
+.am-hor-step-line.is-last {
+ background-color: transparent;
+}
+.am-hor-step-icon {
+ position: absolute;
+ top: 50%;
+ left: 0;
+ width: 10px;
+ height: 10px;
+ transform: translate(-50%, -50%);
+ border-radius: 999px;
+ background-color: #ccc;
+}
+.am-hor-step-icon.is-active {
+ background-color: #108ee9;
+}
+.am-hor-step-text {
+ margin-top: 20px;
+ padding: 0 5px;
+ max-width: 90px;
+ transform: translateX(-50%);
+}
+.am-hor-step-title {
+ font-size: 12px;
+ color: #333;
+}
+.am-hor-step-description {
+ margin-top: 6px;
+ font-size: 12px;
+ color: #999;
+}
+
+/* vertical steps style */
+.am-vertical-steps {
+ padding: 20px 30px 0 30px;
+ background-color: #fff;
+}
+.am-vertical-step {
+ display: flex;
+}
+.am-vertical-step-left {
+ position: relative;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ width: 24px;
+ margin-right: 20px;
+}
+/* line 包含 top 和 bottom 两块, 整体下移20px, 保证和原点无缝衔接 */
+.am-vertical-step-line {
+ position: relative;
+ top: 10px;
+ width: 2px;
+ background-color: #ccc;
+}
+.am-vertical-step-line-top {
+ flex: 1;
+}
+/* 60px 是 am-vertical-step-text的margin-bottom的40px加上line的下移20px,保证line-top底部和右侧文字底布对齐*/
+.am-vertical-step-line-bottom {
+ height: 30px;
+ width: 2px;
+ background-color: #ccc;
+}
+.am-vertical-step-line.is-active {
+ background-color: #108ee9;
+}
+.am-vertical-step-icon {
+ position: absolute;
+ top: 0;
+ left: 50%;
+ transform: translateX(-50%);
+ border-radius: 999px;
+}
+.am-vertical-step-icon.is-normal {
+ top: 5px;
+ background-color: #ccc;
+ width: 10px;
+ height: 10px;
+}
+.am-vertical-step-icon.is-active,
+.am-vertical-step-icon.is-fail {
+ width: 24px;
+ height: 24px;
+ background-color: #fff;
+}
+.am-vertical-step-right {
+ flex: 1;
+ margin-bottom: 20px;
+}
+.am-vertical-step-title {
+ margin-bottom: 4px;
+ font-size: 17px;
+ color: #333;
+}
+.am-vertical-step-title.is-active {
+ color: #108ee9;
+}
+.am-vertical-step-title.is-fail {
+ color: #F4333C;
+}
+.am-vertical-step-description {
+ font-size: 14px;
+ color: #888;
+}
+.am-vertical-placeholder {
+ height: 20px;
+}
+.am-vertical-placeholder-line {
+ position: absolute;
+ left: 50%;
+ transform: translateX(-50%);
+ height: 100%;
+ width: 2px;
+ background-color: #ccc;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/steps/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/steps/index.axml
new file mode 100755
index 000000000..0eb2f4b17
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/steps/index.axml
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
+ {{item.title}}
+
+
+ {{item.description}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.title}}
+
+
+ {{item.description}}
+
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/steps/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/steps/index.js
new file mode 100755
index 000000000..1b5293ff0
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/steps/index.js
@@ -0,0 +1,9 @@
+Component({
+ props: {
+ className: '',
+ activeIndex: 1,
+ failIndex: 0,
+ direction: 'horizontal',
+ items: []
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/steps/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/steps/index.json
new file mode 100755
index 000000000..467ce2945
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/steps/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/swipe-action/index.acss b/public/appmini/old/wechat/node_modules/mini-antui/es/swipe-action/index.acss
new file mode 100755
index 000000000..346576555
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/swipe-action/index.acss
@@ -0,0 +1,40 @@
+.am-swipe {
+ position: relative;
+ overflow: hidden;
+}
+.am-swipe-content {
+ position: relative;
+ transition: all 250ms;
+}
+.am-swiping .am-swipe-content {
+ transition: none;
+}
+.am-swipe-right {
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ display: flex;
+ right: 0;
+}
+.am-swipe-btn {
+ padding: 0 14px;
+ justify-content: center;
+ align-items: center;
+ display: flex;
+ color: #fff;
+}
+.am-swipe-btn-delete {
+ background-color: rgb(244, 51, 60);
+}
+.am-swipe-btn-edit {
+ background-color: #108ee9;
+}
+
+//=== v2 ===
+.am-swipe-movable-area {
+ position: absolute;
+}
+
+.am-swipe-movable-area .am-swipe-content {
+ transition: none;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/swipe-action/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/swipe-action/index.axml
new file mode 100755
index 000000000..842d052ba
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/swipe-action/index.axml
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+ {{item.text}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.text}}
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/swipe-action/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/swipe-action/index.js
new file mode 100755
index 000000000..5cf891c53
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/swipe-action/index.js
@@ -0,0 +1,237 @@
+var windowWidth = wx.getSystemInfoSync().windowWidth;
+var isV2 = +wx.SDKVersion.split('.').join('') > 1112;
+
+Component({
+ data: {
+ leftPos: 0,
+ swiping: false,
+ holdSwipe: true,
+ viewWidth: windowWidth,
+ x: 0,
+ actionWidth: 0,
+ transitionVal: 'none'
+ },
+ props: {
+ className: '',
+ right: [],
+ restore: false,
+ index: null,
+ height: 52,
+ enableNew: false
+ },
+ didMount: function didMount() {
+ var _this = this;
+
+ var enableNew = this.props.enableNew;
+
+ var useV2 = isV2 && enableNew;
+ this.btnWidth = 0;
+ this.setData({
+ useV2: useV2
+ });
+ this.setBtnWidth();
+ if (useV2) {
+ setTimeout(function () {
+ _this.setData({
+ transitionVal: 'transform 100ms'
+ });
+ }, 500);
+ }
+ },
+ didUpdate: function didUpdate(_prevProps, prevData) {
+ var restore = this.props.restore;
+ var _data = this.data,
+ holdSwipe = _data.holdSwipe,
+ useV2 = _data.useV2;
+
+ if (restore === true && _prevProps.restore !== restore || prevData.holdSwipe === true && holdSwipe === false) {
+ this.setData({
+ leftPos: 0,
+ swiping: false,
+ x: this.btnWidth // V2
+ });
+ }
+
+ if (!useV2) {
+ this.setBtnWidth();
+ }
+ },
+
+ methods: {
+ setBtnWidth: function setBtnWidth() {
+ var _this2 = this;
+
+ wx.createSelectorQuery().select('.am-swipe-right-' + this.$id).boundingClientRect().exec(function (ret) {
+ _this2.btnWidth = ret && ret[0] && ret[0].width || 0;
+ if (isV2 && _this2.props.enableNew) {
+ _this2.setData({
+ actionWidth: _this2.btnWidth,
+ x: _this2.btnWidth
+ });
+ }
+ });
+ },
+ onSwipeTap: function onSwipeTap() {
+ if (!this.data.swiping) {
+ this.setData({
+ leftPos: 0,
+ swiping: false,
+ x: 0
+ });
+ }
+ },
+ onSwipeStart: function onSwipeStart(e) {
+ this.touchObject = {
+ startX: e.touches[0].pageX,
+ startY: e.touches[0].pageY
+ };
+ var _props = this.props,
+ index = _props.index,
+ onSwipeStart = _props.onSwipeStart;
+
+ if (onSwipeStart) {
+ onSwipeStart({ index: index });
+ }
+ },
+ onSwipeMove: function onSwipeMove(e) {
+ var touchObject = this.touchObject;
+
+ var touchePoint = e.touches[0];
+ var leftPos = this.data.leftPos;
+
+
+ touchObject.endX = touchePoint.pageX;
+
+ // 首次触发时,计算滑动角度
+ if (touchObject.direction === undefined) {
+ var direction = 0;
+
+ var xDist = touchObject.startX - touchePoint.pageX || 0;
+ var yDist = touchObject.startY - touchePoint.pageY || 0;
+
+ var r = Math.atan2(yDist, xDist);
+ var swipeAngle = Math.round(r * 180 / Math.PI);
+
+ if (swipeAngle < 0) {
+ swipeAngle = 360 - Math.abs(swipeAngle);
+ }
+ if (swipeAngle <= 45 && swipeAngle >= 0) {
+ direction = 1;
+ }
+ if (swipeAngle <= 360 && swipeAngle >= 315) {
+ direction = 1;
+ }
+ if (swipeAngle >= 135 && swipeAngle <= 225) {
+ direction = -1;
+ }
+
+ touchObject.direction = direction;
+ }
+
+ // 通过角度判断是左右方向
+ if (touchObject.direction !== 0) {
+ var newLeftPos = leftPos;
+ // 滑动距离
+ var distance = touchObject.endX - touchObject.startX;
+ // 左划
+ if (distance < 0) {
+ newLeftPos = Math.max(distance, -this.btnWidth);
+ // 右划
+ } else {
+ newLeftPos = 0;
+ }
+ if (Math.abs(distance) > 10) {
+ this.setData({
+ leftPos: newLeftPos,
+ swiping: distance < 0
+ });
+ }
+ }
+ },
+ onSwipeEnd: function onSwipeEnd(e) {
+ var touchObject = this.touchObject;
+
+ if (touchObject.direction !== 0) {
+ var touchePoint = e.changedTouches[0];
+
+ touchObject.endX = touchePoint.pageX;
+
+ var leftPos = this.data.leftPos;
+
+ var distance = touchObject.endX - touchObject.startX;
+ var newLeftPos = leftPos;
+ if (distance < 0) {
+ if (Math.abs(distance + leftPos) > this.btnWidth * 0.7) {
+ newLeftPos = -this.btnWidth;
+ } else {
+ newLeftPos = 0;
+ }
+ }
+ this.setData({
+ leftPos: newLeftPos,
+ swiping: false
+ });
+ }
+ },
+ onChange: function onChange() {
+ if (!this.data.swiping) {
+ this.setData({
+ swiping: true
+ });
+ }
+ },
+ onChangeEnd: function onChangeEnd(e) {
+ var _this3 = this;
+
+ var actionWidth = this.data.actionWidth;
+ var x = e.detail.x;
+
+ this.setData({
+ x: x < actionWidth / 2 ? -1 : actionWidth - 1,
+ swiping: false
+ }, function () {
+ _this3.setData({
+ x: _this3.data.x === -1 ? 0 : actionWidth
+ });
+ });
+ },
+ done: function done() {
+ var _this4 = this;
+
+ this.setData({
+ holdSwipe: true
+ }, function () {
+ _this4.setData({
+ holdSwipe: false
+ });
+ });
+ },
+ onItemClick: function onItemClick(e) {
+ var _this5 = this;
+
+ var onRightItemClick = this.props.onRightItemClick;
+ var holdSwipe = this.data.holdSwipe;
+
+ if (onRightItemClick) {
+ var index = e.target.dataset.index;
+
+ onRightItemClick({
+ index: index,
+ extra: this.props.extra,
+ detail: this.props.right[index],
+ done: this.done.bind(this)
+ });
+ }
+
+ if (!this.data.swiping && holdSwipe === false) {
+ setTimeout(function () {
+ _this5.setData({
+ leftPos: 0,
+ swiping: false,
+ x: 0
+ });
+ }, 300);
+ }
+ }
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/swipe-action/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/swipe-action/index.json
new file mode 100755
index 000000000..467ce2945
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/swipe-action/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/tabs/index.acss b/public/appmini/old/wechat/node_modules/mini-antui/es/tabs/index.acss
new file mode 100755
index 000000000..825eec5c8
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/tabs/index.acss
@@ -0,0 +1,125 @@
+.am-tabs-tab-bar-wrap {
+ width: 100%;
+}
+
+.am-tabs-bar {
+ background: #fff;
+ width: 100%;
+ overflow: hidden;
+ height: 42px;
+ display: flex;
+}
+
+.am-tabs-scroll-left {
+ width: 36px;
+ height: 39px;
+ position: absolute;
+ top: 1px;
+ left: 0;
+ z-index: 99;
+ background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0)) left no-repeat;
+ background-size: 100%;
+}
+
+.am-tabs-scroll-right {
+ width: 36px;
+ height: 39px;
+ position: absolute;
+ top: 1px;
+ right: 0;
+ z-index: 99;
+ background: linear-gradient(to left, #fff, rgba(255, 255, 255, 0)) left no-repeat;
+ background-size: 100%;
+}
+
+.am-tabs-plus-wrap {
+ display: none;
+ position: relative;
+ width: 24px;
+ height: 43px;
+}
+
+.am-tabs-plus-wrap.show {
+ display: block;
+}
+
+.am-tabs-plus {
+ position: absolute;
+ z-index: 100;
+ top: 4px;
+ left: 0;
+ transform: translateX(-50%);
+ width: 32px;
+ height: 32px;
+ background-image: url('https://gw.alipayobjects.com/zos/rmsportal/DObPgppwxyNHeejHANtu.png');
+ background-size: 16px 16px;
+ background-position: center;
+ background-repeat: no-repeat;
+}
+
+.am-tabs-bar-content-wrap {
+ position: relative;
+ flex: 1;
+}
+
+.am-tabs-bar-content {
+ width: 100%;
+ height: 50px;
+ overflow-x: auto;
+ overflow-y: hidden;
+ display: flex;
+ flex-direction: row;
+}
+
+.am-tabs-bar-tab {
+ height: 42px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 25%;
+ flex-shrink: 0;
+ font-size: 16px;
+}
+
+.am-tabs-bar-title {
+ height: 42px;
+ line-height: 42px;
+ box-sizing: border-box;
+ position: relative;
+ border-bottom-width: 2px;
+ border-bottom-style: solid;
+ border-bottom-color: transparent;
+}
+
+.am-tabs-bar-badge.dot {
+ position: absolute;
+ top: 3px;
+ right: 0px;
+ transform: translateX(8px);
+}
+
+.am-tabs-bar-badge.text {
+ position: absolute;
+ top: 0px;
+ right: 2px;
+ transform: translateX(100%);
+ height: 16px;
+}
+
+.am-tabs-content-wrap {
+ margin-top: 1px;
+ display: flex;
+ background: #fff;
+ flex-direction: row;
+ overflow: hidden;
+ height: auto;
+}
+
+.am-tabs-content-wrap.fix {
+ height: auto !important;
+}
+
+.am-tabs-slides {
+ display: flex;
+ transition-duration: 500ms;
+}
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/tabs/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/tabs/index.axml
new file mode 100755
index 000000000..1e9bed8e9
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/tabs/index.axml
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{item.title}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/tabs/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/tabs/index.js
new file mode 100755
index 000000000..ec8894a55
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/tabs/index.js
@@ -0,0 +1,70 @@
+var _my$getSystemInfoSync = wx.getSystemInfoSync(),
+ windowWidth = _my$getSystemInfoSync.windowWidth;
+
+Component({
+ props: {
+ className: '',
+ activeCls: '',
+ tabBarUnderlineColor: '#108ee9', // 选中选项卡下划线颜色
+ tabBarActiveTextColor: '#108ee9', // 选中选项卡字体颜色
+ tabBarInactiveTextColor: '#333333', // 未选中选项卡字体颜色
+ tabBarBackgroundColor: '#ffffff', // 选项卡背景颜色
+ showPlus: false,
+ swipeable: true,
+ activeTab: 0, // 当前激活tab
+ animation: true,
+ tabBarCls: '', // tabbar的自定义样式class
+ duration: 500
+ },
+ data: {
+ windowWidth: windowWidth,
+ tabWidth: 0.25,
+ autoplay: false,
+ animation: false,
+ version: wx.SDKVersion
+ },
+ didMount: function didMount() {
+ var _props = this.props,
+ tabs = _props.tabs,
+ animation = _props.animation;
+
+ this.setData({
+ tabWidth: tabs.length > 3 ? 0.25 : 1 / tabs.length,
+ animation: animation,
+ autoplay: true
+ });
+ },
+ didUpdate: function didUpdate(prevProps) {
+ var tabs = this.props.tabs;
+
+ if (prevProps.tabs.length !== tabs.length) {
+ this.setData({
+ tabWidth: tabs.length > 3 ? 0.25 : 1 / tabs.length
+ });
+ }
+ },
+
+ methods: {
+ handleSwiperChange: function handleSwiperChange(e) {
+ var current = e.detail.current;
+
+
+ if (this.props.onChange) {
+ this.props.onChange({ index: current });
+ }
+ },
+ handleTabClick: function handleTabClick(e) {
+ var index = e.target.dataset.index;
+
+
+ if (this.props.onTabClick) {
+ this.props.onTabClick({ index: index });
+ }
+ },
+ handlePlusClick: function handlePlusClick() {
+ if (this.props.onPlusClick) {
+ this.props.onPlusClick();
+ }
+ }
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/tabs/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/tabs/index.json
new file mode 100755
index 000000000..94f295877
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/tabs/index.json
@@ -0,0 +1,6 @@
+{
+ "component": true,
+ "usingComponents": {
+ "badge": "../badge/index"
+ }
+}
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/tabs/tab-content/index.acss b/public/appmini/old/wechat/node_modules/mini-antui/es/tabs/tab-content/index.acss
new file mode 100755
index 000000000..4b396366e
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/tabs/tab-content/index.acss
@@ -0,0 +1,9 @@
+.am-tabs-pane-wrap {
+ width: 100vw;
+ height: auto;
+ flex-shrink: 0;
+}
+
+.fix .am-tabs-pane-wrap {
+ position: static;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/tabs/tab-content/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/tabs/tab-content/index.axml
new file mode 100755
index 000000000..3562dcc36
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/tabs/tab-content/index.axml
@@ -0,0 +1,3 @@
+
+
+
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/tabs/tab-content/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/tabs/tab-content/index.js
new file mode 100755
index 000000000..df2bc90b4
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/tabs/tab-content/index.js
@@ -0,0 +1 @@
+Component({});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/tabs/tab-content/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/tabs/tab-content/index.json
new file mode 100755
index 000000000..467ce2945
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/tabs/tab-content/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/tabs/util.sjs b/public/appmini/old/wechat/node_modules/mini-antui/es/tabs/util.sjs
new file mode 100755
index 000000000..22999b02e
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/tabs/util.sjs
@@ -0,0 +1,50 @@
+function toIntArray(v) {
+ const ret = [];
+ const version = v.split('.');
+
+ for (let i = 0; i < version.length; i++) {
+ ret.push(parseInt(version[i], 10));
+ }
+
+ return ret;
+}
+
+const calcScrollLeft = (windowWidth, tabWidth, current) => {
+ let scrollInit = current * windowWidth * tabWidth;
+
+ if (current <= 2) {
+ scrollInit = 0;
+ } else {
+ scrollInit = (current - 2) * windowWidth * tabWidth;
+ }
+
+ return scrollInit;
+};
+
+const compareVersion = (v) => {
+ const targetVersion = toIntArray('1.10.0');
+ const version = toIntArray(v);
+ let ret = 0;
+
+ for (let i = 0, n1, n2; i < version.length; i++) {
+ n1 = targetVersion[i];
+ n2 = version[i];
+
+ if (n1 > n2) {
+ ret = -1;
+ break
+ }
+
+ if (n1 < n2) {
+ ret = 1;
+ break;
+ }
+ }
+
+ return ret;
+}
+
+export default {
+ calcScrollLeft,
+ compareVersion,
+};
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/tips/tips-dialog/index.acss b/public/appmini/old/wechat/node_modules/mini-antui/es/tips/tips-dialog/index.acss
new file mode 100755
index 000000000..194dc7e35
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/tips/tips-dialog/index.acss
@@ -0,0 +1,63 @@
+.am-tips-dialog {
+ position: relative;
+ height: 55px;
+ width: 100%;
+ padding: 0 6px;
+ box-sizing: border-box;
+}
+
+.am-tips-dialog-wrap {
+ display: flex;
+ align-items: center;
+ background: #2093E7;
+ box-shadow: 0 3px 3px rgba(0, 127, 255, .24);
+ border-radius: 2px;
+ padding: 0 24px 0 12px;
+ height: 100%;
+}
+
+.am-tips-dialog-rectangle .am-tips-dialog-wrap {
+ padding: 0 16px 0 6px;
+}
+
+.am-tips-dialog-close {
+ margin-left: 5px;
+ margin-right: 11px;
+ height: 20px;
+ width: 20px;
+ background-image: url(https://gw.alipayobjects.com/zos/rmsportal/yIhgeiRsGHxWWrCKNfhc.png);
+ background-size: 50%;
+ background-position: center;
+ background-repeat: no-repeat;
+}
+
+.am-tips-dialog-icon {
+ height: 35px;
+ width: 35px;
+ background-color: #fff;
+ border-radius: 2px;
+ margin-right: 9px;
+}
+
+.am-tips-dialog-icon image {
+ width: 35px;
+ height: 35px;
+}
+
+.am-tips-dialog-content {
+ flex: 1;
+}
+
+.am-tips-dialog-wrap::before {
+ content: '';
+ position: absolute;
+ bottom: -5px;
+ left: 40px;
+ border-left: 10px solid transparent;
+ border-right: 10px solid transparent;
+ border-top: 10px solid #2093E7;
+}
+
+.am-tips-dialog-rectangle .am-tips-dialog-wrap::before {
+ display: none;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/tips/tips-dialog/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/tips/tips-dialog/index.axml
new file mode 100755
index 000000000..e039a4729
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/tips/tips-dialog/index.axml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/tips/tips-dialog/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/tips/tips-dialog/index.js
new file mode 100755
index 000000000..5dd18a6c8
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/tips/tips-dialog/index.js
@@ -0,0 +1,17 @@
+Component({
+ props: {
+ show: true,
+ className: '',
+ type: 'dialog'
+ },
+ methods: {
+ onCloseTap: function onCloseTap() {
+ var onCloseTap = this.props.onCloseTap;
+
+
+ if (onCloseTap) {
+ onCloseTap();
+ }
+ }
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/tips/tips-dialog/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/tips/tips-dialog/index.json
new file mode 100755
index 000000000..32640e0dc
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/tips/tips-dialog/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/tips/tips-plain/index.acss b/public/appmini/old/wechat/node_modules/mini-antui/es/tips/tips-plain/index.acss
new file mode 100755
index 000000000..fccfc2181
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/tips/tips-plain/index.acss
@@ -0,0 +1,38 @@
+.am-tips-plain-favorite {
+ position: fixed;
+ bottom: 10px;
+ padding: 7px 10px;
+ box-sizing: border-box;
+ font-size: 12px;
+}
+
+.am-tips-plain-favorite-wrap {
+ position: relative;
+ background: #2093E7;
+ box-shadow: 0 3px 3px rgba(0, 127, 255, .24);
+ border-radius: 2px;
+ color: #fff;
+ padding: 10px;
+ min-height: 10px;
+}
+
+.am-tips-plain-favorite-content {
+ line-height: 12px;
+ overflow: hidden;
+ height: 12px;
+}
+
+.am-tips-plain-favorite-action:active {
+ background: #0B71BA
+}
+
+.am-tips-plain-favorite-wrap::before {
+ content: '';
+ position: absolute;
+ bottom: -5px;
+ left: 50%;
+ margin-left: -10px;
+ border-left: 10px solid transparent;
+ border-right: 10px solid transparent;
+ border-top: 10px solid #2093E7;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/tips/tips-plain/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/tips/tips-plain/index.axml
new file mode 100755
index 000000000..ca4e30e6c
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/tips/tips-plain/index.axml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/tips/tips-plain/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/tips/tips-plain/index.js
new file mode 100755
index 000000000..1df3957df
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/tips/tips-plain/index.js
@@ -0,0 +1,31 @@
+Component({
+ data: {
+ show: true
+ },
+ props: {
+ className: '',
+ time: 5000,
+ onClose: function onClose() {}
+ },
+ didMount: function didMount() {
+ var _this = this;
+
+ var show = this.data.show;
+ var time = this.props.time;
+
+ setTimeout(function () {
+ _this.setData({
+ show: false
+ });
+ }, time);
+ },
+
+ methods: {
+ onClose: function onClose() {
+ this.setData({
+ show: false
+ });
+ this.props.onClose();
+ }
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/tips/tips-plain/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/tips/tips-plain/index.json
new file mode 100755
index 000000000..32640e0dc
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/tips/tips-plain/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/vtabs/index.acss b/public/appmini/old/wechat/node_modules/mini-antui/es/vtabs/index.acss
new file mode 100755
index 000000000..796131c81
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/vtabs/index.acss
@@ -0,0 +1,67 @@
+.am-vtabs {
+ width: 100vw;
+ height: 100vh;
+ display: flex;
+ flex-direction: row;
+}
+
+.am-vtabs-bar {
+ width: 110px;
+ overflow: hidden;
+}
+
+.am-vtabs-bar-content {
+ height: 100%;
+ width: 120px;
+}
+
+.am-vtabs-bar-tab {
+ box-sizing: border-box;
+ height: 55px;
+ width: 110px;
+ text-align: center;
+ line-height: 55px;
+ font-size: 14px;
+ border-left-width: 4px;
+ border-left-style: solid;
+ border-left-color: transparent;
+ border-right-width: 4px;
+ border-right-style: solid;
+ border-right-color: transparent;
+ white-space: nowrap;
+ overflow: hidden;
+}
+
+.am-vtabs-bar-title {
+ position: relative;
+ display: inline-block;
+}
+
+.am-vtabs-bar-badge.dot {
+ position: absolute;
+ top: 11px;
+ right: 0px;
+ transform: translateX(8px);
+}
+
+.am-vtabs-bar-badge.text {
+ position: absolute;
+ top: 8px;
+ right: 2px;
+ transform: translateX(100%);
+}
+
+.am-vtabs-content-wrap {
+ overflow: hidden;
+ flex: 1;
+ height: 100%;
+ background-color: #fff;
+}
+
+.am-vtabs-slides {
+ height: 100%;
+}
+
+.am-vtabs-slides.animate {
+ transition-duration: 500ms;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/vtabs/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/vtabs/index.axml
new file mode 100755
index 000000000..4292ebdf5
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/vtabs/index.axml
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+ {{item.title}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/vtabs/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/vtabs/index.js
new file mode 100755
index 000000000..9bd7b3042
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/vtabs/index.js
@@ -0,0 +1,153 @@
+Component({
+ data: {
+ tabTop: 0,
+ wrapScrollTop: 0
+ },
+ props: {
+ activeTab: 0,
+ className: '',
+ tabs: [],
+ animated: false,
+ swipeable: true,
+ tabBarActiveTextColor: '#108ee9',
+ tabBarInactiveTextColor: '#333333',
+ tabBarActiveBgColor: '#ffffff',
+ tabBarInactiveBgColor: '#f8f8f8',
+ tabBarlineColor: '#108ee9',
+ onTabClick: function onTabClick() {},
+ onScrollBar: function onScrollBar() {}
+ },
+ didMount: function didMount() {
+ this.isScrolling = false;
+ this.timerId = null;
+ this.calcHeight();
+ },
+ didUpdate: function didUpdate(prevProps) {
+ if (this.props.tabs.length !== prevProps.tabs.length) {
+ this.calcHeight();
+ }
+ },
+ didUnmount: function didUnmount() {
+ if (this.timerId) {
+ clearTimeout(this.timerId);
+ this.timerId = null;
+ }
+ },
+
+ methods: {
+ calcHeight: function calcHeight() {
+ var _this = this;
+
+ var _props = this.props,
+ tabs = _props.tabs,
+ activeTab = _props.activeTab;
+
+ this.anchorMap = {};
+ this.indexMap = {};
+ this.wrapHeight = 0;
+ this.scrollWrapHeight = 0;
+
+ wx.createSelectorQuery().select('.am-vtabs-slides').boundingClientRect().exec(function (ret) {
+ _this.wrapHeight = ret[0].height;
+ });
+
+ var cacheHeight = 0;
+
+ var _loop = function _loop(i) {
+ var anchor = tabs[i].anchor;
+ /* eslint-disable no-loop-func */
+
+ wx.createSelectorQuery().select('#am-vtab-slide-' + anchor).boundingClientRect().exec(function (ret) {
+ _this.anchorMap[anchor] = cacheHeight;
+ _this.indexMap[i] = cacheHeight;
+ if (activeTab === i) {
+ _this.setData({
+ wrapScrollTop: _this.indexMap[i]
+ });
+ }
+ cacheHeight += ret[0].height;
+ _this.scrollWrapHeight = cacheHeight;
+ });
+ };
+
+ for (var i = 0; i < tabs.length; i++) {
+ _loop(i);
+ }
+ },
+ handleTabClick: function handleTabClick(e) {
+ var _e$target$dataset = e.target.dataset,
+ anchor = _e$target$dataset.anchor,
+ index = _e$target$dataset.index;
+
+
+ if (!this.isScrolling || !this.props.swipeable) {
+ if (this.props.activeTab !== index) {
+ this.props.onTabClick(index);
+ }
+ this.setData({
+ wrapScrollTop: this.anchorMap[anchor]
+ });
+ this.moveScrollBar(index);
+ }
+ },
+ moveScrollBar: function moveScrollBar(current) {
+ var tabTop = void 0;
+
+ if (current < 6) {
+ tabTop = 0;
+ } else {
+ tabTop = (current - 5) * 55;
+ }
+ if (this.props.activeTab !== current) {
+ if (this.props.onChange) {
+ this.props.onChange(current);
+ } else {
+ this.props.onScrollBar(current);
+ }
+ }
+ this.setData({
+ tabTop: tabTop,
+ current: current
+ });
+ },
+ onScroll: function onScroll(e) {
+ var _this2 = this;
+
+ var scrollTop = e.detail.scrollTop;
+
+ var keys = Object.keys(this.anchorMap);
+
+ if (this.timerId) {
+ clearTimeout(this.timerId);
+ this.timerId = null;
+ }
+
+ this.timerId = setTimeout(function () {
+ _this2.isScrolling = false;
+ }, 300);
+
+ var anchorLength = keys.length;
+ for (var i = 0; i < anchorLength; i++) {
+ if (i === anchorLength - 1) {
+ // 如果是最后一个只需满足scrollTop高于当前vtab-content的高度
+ if (scrollTop >= this.anchorMap[keys[i]]) {
+ this.moveScrollBar(i);
+ break;
+ }
+ }
+ if (scrollTop >= Math.floor(this.anchorMap[keys[i]]) && scrollTop < Math.floor(this.anchorMap[keys[i + 1]])) {
+ // 如果没个vtab-content高度小于scroll-view高度,到达底部后就不需要根据scrollTop再去判断左侧的选择项
+ if (scrollTop + this.wrapHeight < this.scrollWrapHeight) {
+ this.moveScrollBar(i);
+ }
+ break;
+ }
+ }
+ },
+ onWrapTouchMove: function onWrapTouchMove() {
+ if (this.props.swipeable) {
+ this.isScrolling = true;
+ }
+ }
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/vtabs/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/vtabs/index.json
new file mode 100755
index 000000000..a30305932
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/vtabs/index.json
@@ -0,0 +1,6 @@
+{
+ "component": true,
+ "usingComponents": {
+ "badge": "../badge/index"
+ }
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/vtabs/vtab-content/index.axml b/public/appmini/old/wechat/node_modules/mini-antui/es/vtabs/vtab-content/index.axml
new file mode 100755
index 000000000..02f912cd5
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/vtabs/vtab-content/index.axml
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/vtabs/vtab-content/index.js b/public/appmini/old/wechat/node_modules/mini-antui/es/vtabs/vtab-content/index.js
new file mode 100755
index 000000000..df2bc90b4
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/vtabs/vtab-content/index.js
@@ -0,0 +1 @@
+Component({});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/es/vtabs/vtab-content/index.json b/public/appmini/old/wechat/node_modules/mini-antui/es/vtabs/vtab-content/index.json
new file mode 100755
index 000000000..32640e0dc
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/es/vtabs/vtab-content/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/node_modules/mini-antui/package.json b/public/appmini/old/wechat/node_modules/mini-antui/package.json
new file mode 100755
index 000000000..3a1c11200
--- /dev/null
+++ b/public/appmini/old/wechat/node_modules/mini-antui/package.json
@@ -0,0 +1,57 @@
+{
+ "_from": "mini-antui",
+ "_id": "mini-antui@0.4.4",
+ "_inBundle": false,
+ "_integrity": "sha512-mkrn5VF30ojspyVY70Otn91sp0YyJE4j0fvsqqzAaXqOv1fpHROTwLMcIwshi8XcMn9gAxXrdFujJQQo46uh+Q==",
+ "_location": "/mini-antui",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "tag",
+ "registry": true,
+ "raw": "mini-antui",
+ "name": "mini-antui",
+ "escapedName": "mini-antui",
+ "rawSpec": "",
+ "saveSpec": null,
+ "fetchSpec": "latest"
+ },
+ "_requiredBy": [
+ "#USER",
+ "/"
+ ],
+ "_resolved": "https://registry.npmjs.org/mini-antui/-/mini-antui-0.4.4.tgz",
+ "_shasum": "50e84f026e200b1f17f8f8dac9643c3c504f274b",
+ "_spec": "mini-antui",
+ "_where": "/data/www/project/shopxo/alipay",
+ "bugs": {
+ "url": "https://github.com/ant-mini-program/mini-antui/issues"
+ },
+ "bundleDependencies": false,
+ "deprecated": false,
+ "description": "小程序版AntUI",
+ "devDependencies": {
+ "eslint": "^4.19.1",
+ "eslint-config-ali": "^3.1.0",
+ "eslint-plugin-import": "^2.11.0",
+ "pre-commit-eslint": "^0.0.6",
+ "rc-tools": "6.x"
+ },
+ "files": [
+ "es"
+ ],
+ "homepage": "https://github.com/ant-mini-program/mini-antui#readme",
+ "keywords": [
+ "antui",
+ "mini-program"
+ ],
+ "name": "mini-antui",
+ "repository": {
+ "type": "git",
+ "url": "git+ssh://git@github.com/ant-mini-program/mini-antui.git"
+ },
+ "scripts": {
+ "build": "rc-tools run compile && node scripts/cp.js && node scripts/rm.js",
+ "pub": "git push origin && npm run build && npm publish"
+ },
+ "version": "0.4.4"
+}
diff --git a/public/appmini/old/wechat/pages/answer-form/answer-form.js b/public/appmini/old/wechat/pages/answer-form/answer-form.js
new file mode 100755
index 000000000..458ce1ca8
--- /dev/null
+++ b/public/appmini/old/wechat/pages/answer-form/answer-form.js
@@ -0,0 +1,88 @@
+const app = getApp();
+Page({
+ data: {
+ form_submit_loading: false,
+ },
+
+ onLoad() {},
+
+ onShow() {
+ wx.setNavigationBar({title: app.data.common_pages_title.answer_form});
+ this.init();
+ },
+
+ // 初始化
+ init() {
+ var user = app.GetUserInfo(this, "init");
+ if (user != false) {
+ // 用户未绑定用户则转到登录页面
+ if ((user.mobile || null) == null) {
+ wx.redirectTo({
+ url: "/pages/login/login?event_callback=init"
+ });
+ return false;
+ }
+ }
+ },
+
+ /**
+ * 表单提交
+ */
+ formSubmit(e)
+ {
+ // 数据验证
+ var validation = [
+ {fields: 'name', msg: '请填写联系人'},
+ {fields: 'tel', msg: '请填写联系电话'},
+ {fields: 'content', msg: '请填写内容'}
+ ];
+ if(app.fields_check(e.detail.value, validation))
+ {
+ wx.showLoading({content: '提交中...'});
+ this.setData({form_submit_loading: true});
+
+ // 网络请求
+ wx.request({
+ url: app.get_request_url('Add', 'Answer'),
+ method: 'POST',
+ data: e.detail.value,
+ dataType: 'json',
+ header: { 'content-type': 'application/x-www-form-urlencoded' },
+ success: (res) => {
+ wx.hideLoading();
+
+ if(res.data.code == 0)
+ {
+ wx.showToast({
+ type: 'success',
+ content: res.data.msg
+ });
+ setTimeout(function()
+ {
+ wx.redirectTo({
+ url: "/pages/user-answer-list/user-answer-list"
+ });
+ }, 2000);
+ } else {
+ this.setData({form_submit_loading: false});
+
+ wx.showToast({
+ type: 'fail',
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.hideLoading();
+ this.setData({form_submit_loading: false});
+
+ wx.showToast({
+ type: 'fail',
+ content: '服务器请求出错'
+ });
+ }
+ });
+ }
+ },
+
+});
diff --git a/public/appmini/old/wechat/pages/answer-form/answer-form.json b/public/appmini/old/wechat/pages/answer-form/answer-form.json
new file mode 100755
index 000000000..9a5b68f95
--- /dev/null
+++ b/public/appmini/old/wechat/pages/answer-form/answer-form.json
@@ -0,0 +1,3 @@
+{
+ "enablePullDownRefresh": false
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/answer-form/answer-form.wxml b/public/appmini/old/wechat/pages/answer-form/answer-form.wxml
new file mode 100755
index 000000000..2ac666ce6
--- /dev/null
+++ b/public/appmini/old/wechat/pages/answer-form/answer-form.wxml
@@ -0,0 +1,15 @@
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/answer-form/answer-form.wxss b/public/appmini/old/wechat/pages/answer-form/answer-form.wxss
new file mode 100755
index 000000000..abfc92444
--- /dev/null
+++ b/public/appmini/old/wechat/pages/answer-form/answer-form.wxss
@@ -0,0 +1,21 @@
+.content{
+ padding: 10rpx;
+}
+.content-textarea {
+ padding-top: 10rpx;
+ min-height: 20vh;
+}
+.bottom-btn-box {
+ margin-top: 160rpx;
+ padding: 0 10rpx;
+}
+
+.form-input {
+ padding: 20rpx 0;
+}
+.form-input input, .form-input textarea {
+ font-size: 30rpx;
+ box-sizing: border-box;
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/answer-list/answer-list.js b/public/appmini/old/wechat/pages/answer-list/answer-list.js
new file mode 100755
index 000000000..2dd67d265
--- /dev/null
+++ b/public/appmini/old/wechat/pages/answer-list/answer-list.js
@@ -0,0 +1,125 @@
+const app = getApp();
+Page({
+ data: {
+ data_list: [],
+ data_page_total: 0,
+ data_page: 1,
+ data_list_loding_status: 1,
+ data_bottom_line_status: false
+ },
+
+ onLoad() {
+ this.get_data_list();
+ },
+
+ onShow() {
+ wx.setNavigationBar({title: app.data.common_pages_title.answer_list});
+ },
+
+ get_data_list(is_mandatory) {
+ // 分页是否还有数据
+ if ((is_mandatory || 0) == 0) {
+ if (this.data.data_bottom_line_status == true) {
+ return false;
+ }
+ }
+
+ // 加载loding
+ this.setData({
+ data_list_loding_status: 1
+ });
+
+ // 获取数据
+ wx.request({
+ url: app.get_request_url("Common", "Answer"),
+ method: "POST",
+ data: {
+ page: this.data.data_page
+ },
+ dataType: "json",
+ header: { 'content-type': 'application/x-www-form-urlencoded' },
+ success: res => {
+ wx.stopPullDownRefresh();
+
+ if (res.data.code == 0) {
+ if (res.data.data.data.length > 0) {
+ if (this.data.data_page <= 1) {
+ var temp_data_list = res.data.data.data;
+ } else {
+ var temp_data_list = this.data.data_list;
+ var temp_data = res.data.data.data;
+ for (var i in temp_data) {
+ temp_data_list.push(temp_data[i]);
+ }
+ }
+ this.setData({
+ data_list: temp_data_list,
+ data_total: res.data.data.total,
+ data_page_total: res.data.data.page_total,
+ data_list_loding_status: 3,
+ data_page: this.data.data_page + 1
+ });
+
+ // 是否还有数据
+ if (this.data.data_page > 1 && this.data.data_page > this.data.data_page_total)
+ {
+ this.setData({ data_bottom_line_status: true });
+ } else {
+ this.setData({data_bottom_line_status: false});
+ }
+ } else {
+ this.setData({
+ data_list_loding_status: 0
+ });
+ }
+ } else {
+ this.setData({
+ data_list_loding_status: 0
+ });
+
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.stopPullDownRefresh();
+
+ this.setData({
+ data_list_loding_status: 2
+ });
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ },
+
+ // 下拉刷新
+ onPullDownRefresh() {
+ this.setData({ data_page: 1 });
+ this.get_data_list(1);
+ },
+
+ // 滚动加载
+ scroll_lower(e) {
+ this.get_data_list();
+ },
+
+ // 头像加载错误
+ user_avatar_error(e) {
+ var index = e.currentTarget.dataset.index || 0;
+ var temp_data_list = this.data_list;
+ for(var i in temp_data_list)
+ {
+ if(i == index)
+ {
+ temp_data_list[i]['avatar'] = app.data.default_user_head_src
+ }
+ }
+ this.setData({data_list: temp_data_list});
+ },
+
+});
diff --git a/public/appmini/old/wechat/pages/answer-list/answer-list.json b/public/appmini/old/wechat/pages/answer-list/answer-list.json
new file mode 100755
index 000000000..3bd5ed8a4
--- /dev/null
+++ b/public/appmini/old/wechat/pages/answer-list/answer-list.json
@@ -0,0 +1,3 @@
+{
+ "enablePullDownRefresh": true
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/answer-list/answer-list.wxml b/public/appmini/old/wechat/pages/answer-list/answer-list.wxml
new file mode 100755
index 000000000..7b6dce3f2
--- /dev/null
+++ b/public/appmini/old/wechat/pages/answer-list/answer-list.wxml
@@ -0,0 +1,22 @@
+
+
+
+
+
+ {{item.content}}
+
+ {{item.add_time}}
+
+
+ 答
+ {{item.reply}}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/answer-list/answer-list.wxss b/public/appmini/old/wechat/pages/answer-list/answer-list.wxss
new file mode 100755
index 000000000..db9e28672
--- /dev/null
+++ b/public/appmini/old/wechat/pages/answer-list/answer-list.wxss
@@ -0,0 +1,22 @@
+.item {
+ padding: 10rpx;
+}
+.item .base, .item .content, .item .answer {
+ padding: 15rpx 0;
+}
+.item .base .desc {
+ width: calc(100% - 130rpx);
+}
+.item .base .avatar {
+ width: 120rpx;
+ height: 120rpx;
+ border-radius: 50%;
+}
+.item .answer .reply-icon {
+ border-radius: 5px;
+ padding: 0px 3px;
+ margin-right: 5px;
+}
+.item .answer .reply-content, .item .base .desc {
+ line-height: 42rpx;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/buy/buy.js b/public/appmini/old/wechat/pages/buy/buy.js
new file mode 100755
index 000000000..af52962f5
--- /dev/null
+++ b/public/appmini/old/wechat/pages/buy/buy.js
@@ -0,0 +1,215 @@
+const app = getApp();
+Page({
+ data: {
+ data_list_loding_status: 1,
+ buy_submit_disabled_status: false,
+ data_list_loding_msg: '',
+ params: null,
+ payment_list: [],
+ goods_list: [],
+ address: null,
+ address_id: 0,
+ total_price: 0,
+ user_note_value: '',
+ is_first: 1,
+ extension_list: [],
+ payment_id: 0,
+ common_order_is_booking: 0,
+ },
+ onLoad(params) {
+ if((params.data || null) == null || app.get_length(JSON.parse(params.data)) == 0)
+ {
+ wx.alert({
+ title: '温馨提示',
+ content: '订单信息有误',
+ buttonText: '确认',
+ success: () => {
+ wx.navigateBack();
+ },
+ });
+ } else {
+ this.setData({ params: JSON.parse(params.data)});
+
+ // 删除地址缓存
+ wx.removeStorageSync({key: app.data.cache_buy_user_address_select_key});
+ }
+ },
+
+ onShow() {
+ wx.setNavigationBar({title: app.data.common_pages_title.buy});
+ this.init();
+ this.setData({is_first: 0});
+ },
+
+ // 获取数据列表
+ init() {
+ // 本地缓存地址
+ if(this.data.is_first == 0)
+ {
+ var cache_address = wx.getStorageSync({
+ key: app.data.cache_buy_user_address_select_key
+ });
+ if((cache_address.data || null) != null)
+ {
+ this.setData({
+ address: cache_address.data,
+ address_id: cache_address.data.id
+ });
+ } else {
+ this.setData({
+ address: null,
+ address_id: 0
+ });
+ }
+ }
+
+ // 加载loding
+ wx.showLoading({content: '加载中...'});
+ this.setData({
+ data_list_loding_status: 1
+ });
+
+ var data = this.data.params;
+ data['address_id'] = this.data.address_id;
+ wx.request({
+ url: app.get_request_url("index", "buy"),
+ method: "POST",
+ data: data,
+ dataType: "json",
+ success: res => {
+ wx.hideLoading();
+ if (res.data.code == 0) {
+ var data = res.data.data;
+ if (data.goods_list.length == 0)
+ {
+ this.setData({data_list_loding_status: 0});
+ } else {
+ this.setData({
+ goods_list: data.goods_list,
+ total_price: data.base.total_price,
+ extension_list: data.extension_list || [],
+ data_list_loding_status: 3,
+ common_order_is_booking: data.common_order_is_booking || 0,
+ });
+
+ // 地址
+ if (this.data.address == null || this.data.address_id == 0) {
+ if((data.base.address || null) != null) {
+ this.setData({
+ address: data.base.address,
+ address_id: data.base.address.id,
+ });
+ }
+ }
+
+ // 支付方式
+ this.payment_list_data(data.payment_list);
+ }
+ } else {
+ this.setData({
+ data_list_loding_status: 2,
+ data_list_loding_msg: res.data.msg,
+ });
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.hideLoading();
+ this.setData({
+ data_list_loding_status: 2,
+ data_list_loding_msg: '服务器请求出错',
+ });
+
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ },
+
+ // 用户留言事件
+ bind_user_note_event(e) {
+ this.setData({user_note_value: e.detail.value});
+ },
+
+ // 提交订单
+ buy_submit_event(e) {
+ // 表单数据
+ var data = this.data.params;
+ data['address_id'] = this.data.address_id;
+ data['payment_id'] = this.data.payment_id;
+ data['user_note'] = this.data.user_note_value;
+
+ // 数据验证
+ var validation = [
+ { fields: 'address_id', msg: '请选择地址' }
+ ];
+ if (this.data.common_order_is_booking != 1) {
+ validation.push({ fields: 'payment_id', msg: '请选择支付方式' });
+ }
+ if (app.fields_check(data, validation)) {
+ // 加载loding
+ wx.showLoading({content: '提交中...'});
+ this.setData({ buy_submit_disabled_status: true });
+
+ wx.request({
+ url: app.get_request_url("add", "buy"),
+ method: "POST",
+ data: data,
+ dataType: "json",
+ success: res => {
+ wx.hideLoading();
+ if (res.data.code == 0) {
+ if (res.data.data.order.status == 1) {
+ wx.redirectTo({
+ url: '/pages/user-order/user-order?is_pay=1&order_id=' + res.data.data.order.id
+ });
+ } else {
+ wx.redirectTo({url: '/pages/user-order/user-order'});
+ }
+ } else {
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ this.setData({ buy_submit_disabled_status: false });
+ }
+ },
+ fail: () => {
+ wx.hideLoading();
+ this.setData({buy_submit_disabled_status: false});
+
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ }
+ },
+
+ // 支付方式选择
+ payment_event(e) {
+ this.setData({ payment_id: e.target.dataset.value});
+ this.payment_list_data(this.data.payment_list);
+ },
+
+ // 支付方式数据处理
+ payment_list_data(data) {
+ if (this.data.payment_id != 0) {
+ for (var i in data) {
+ if (data[i]['id'] == this.data.payment_id) {
+ data[i]['selected'] = 'selected';
+ } else {
+ data[i]['selected'] = '';
+ }
+ }
+ }
+ this.setData({payment_list: data || []});
+ }
+
+});
diff --git a/public/appmini/old/wechat/pages/buy/buy.json b/public/appmini/old/wechat/pages/buy/buy.json
new file mode 100755
index 000000000..9a5b68f95
--- /dev/null
+++ b/public/appmini/old/wechat/pages/buy/buy.json
@@ -0,0 +1,3 @@
+{
+ "enablePullDownRefresh": false
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/buy/buy.wxml b/public/appmini/old/wechat/pages/buy/buy.wxml
new file mode 100755
index 000000000..64dec6fca
--- /dev/null
+++ b/public/appmini/old/wechat/pages/buy/buy.wxml
@@ -0,0 +1,82 @@
+
+
+
+
+
+
+ {{address.name}}
+ {{address.tel}}
+
+
+
+ {{address.province_name}}{{address.city_name}}{{address.county_name}}{{address.address}}
+
+
+
+ 请选择地址
+
+
+
+
+
+
+
+
+
+
+ {{item.title}}
+
+ {{spec.type}}:{{spec.value}}
+
+
+
+
+ ¥{{item.price}}
+
+ ¥{{item.original_price}}
+
+ x{{item.stock}}
+
+
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+ {{item.tips}}
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+ 合计:
+ ¥{{total_price}}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/buy/buy.wxss b/public/appmini/old/wechat/pages/buy/buy.wxss
new file mode 100755
index 000000000..82f365cc3
--- /dev/null
+++ b/public/appmini/old/wechat/pages/buy/buy.wxss
@@ -0,0 +1,123 @@
+.page {
+ padding-bottom: 120rpx;
+}
+
+/**
+ * 地址
+ */
+.address {
+ padding: 10rpx;
+}
+.address-base, .address-detail {
+ padding: 10rpx 35rpx 10rpx 10rpx;
+}
+.address-detail .icon {
+ width: 35rpx;
+ height: 35rpx !important;
+}
+.address-detail .text {
+ width: calc(100% - 40rpx);
+}
+.address-divider {
+ height: 4px;
+ background-image: url("/images/buy-address-divider.png");
+ background-repeat-y: no-repeat;
+}
+.address-detail .text, .goods-title {
+ line-height: 36rpx;
+}
+.no-address {
+ height: 85rpx;
+ line-height: 85rpx;
+}
+
+/**
+ * 商品
+ */
+.goods .goods-item:not(:last-child) {
+ border-bottom: 1px dashed #efefef;
+}
+.goods-item {
+ padding: 20rpx 10rpx;
+}
+.goods-title, .goods-attribute {
+ margin-bottom: 10rpx;
+}
+.goods-image {
+ width: 160rpx;
+ height: 160rpx;
+ margin-right: 20rpx;
+}
+.goods-price {
+ position: relative;
+}
+.buy-number {
+ position: absolute;
+ right: 0;
+ bottom: 0;
+}
+.goods-base {
+ min-height: 160rpx;
+}
+
+/**
+ * 导航
+ */
+.buy-nav {
+ position: fixed;
+ left: 0;
+ bottom: 0;
+}
+.buy-nav, .nav-base, .nav-submit button {
+ height: 100rpx;
+}
+.nav-base, .nav-submit button {
+ line-height: 100rpx;
+}
+.nav-base {
+ width: calc(60% - 20rpx);
+ padding: 0 10rpx;
+}
+.nav-submit {
+ width: 40%;
+}
+.nav-submit button {
+ border-radius: 0;
+}
+
+/**
+ * 支付方式
+ */
+.payment-list .item {
+ width: 50%;
+}
+.payment-list .item-content {
+ margin: 20rpx;
+ padding: 20rpx 10rpx;
+}
+.payment-list .item-content image {
+ width: 50rpx;
+ height: 50rpx !important;
+ vertical-align: middle;
+ margin-right: 10rpx;
+}
+.payment-list .selected {
+ border: 1px solid #d2364c;
+ color: #d2364c;
+}
+
+/**
+ * 扩展数据
+ */
+.extension-list {
+ background-color: #ffffeb;
+}
+.extension-list .item {
+ padding: 20rpx 10rpx;
+}
+.extension-list .item:not(:last-child) {
+ border-bottom: 1px dashed #ffe2cf;
+}
+.extension-list .item .text-tips {
+ color: #ff8f44;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/cart/cart.js b/public/appmini/old/wechat/pages/cart/cart.js
new file mode 100755
index 000000000..d4ad24260
--- /dev/null
+++ b/public/appmini/old/wechat/pages/cart/cart.js
@@ -0,0 +1,363 @@
+const app = getApp();
+Page({
+ data: {
+ data_list_loding_status: 1,
+ data_list_loding_msg: '',
+ data_bottom_line_status: false,
+ data_list: [],
+ swipe_index: null,
+ total_price: '0.00',
+ is_selected_all: false,
+ buy_submit_disabled_status: true,
+ },
+
+ onShow() {
+ wx.setNavigationBar({ title: app.data.common_pages_title.cart });
+ this.init();
+ },
+
+ init(e) {
+ var user = app.GetUserInfo(this, "init");
+ if (user != false) {
+ // 用户未绑定用户则转到登录页面
+ if ((user.mobile || null) == null) {
+ wx.confirm({
+ title: '温馨提示',
+ content: '绑定手机号码',
+ confirmButtonText: '确认',
+ cancelButtonText: '暂不',
+ success: (result) => {
+ if (result.confirm) {
+ wx.navigateTo({
+ url: "/pages/login/login?event_callback=init"
+ });
+ }
+ this.get_data();
+ },
+ });
+ } else {
+ this.get_data();
+ }
+ }
+ },
+
+ // 获取数据
+ get_data() {
+ this.setData({
+ data_list_loding_status: 1,
+ total_price: '0.00',
+ is_selected_all: false,
+ buy_submit_disabled_status: true,
+ });
+
+ wx.request({
+ url: app.get_request_url("Index", "Cart"),
+ method: "POST",
+ data: {},
+ dataType: "json",
+ success: res => {
+ wx.stopPullDownRefresh();
+ if (res.data.code == 0) {
+ var data = res.data.data;
+ if (data.length > 0) {
+ for (var i in data) {
+ data[i]['right'] = [{ type: 'edit', text: '加入收藏' }, { type: 'delete', text: '删除' }];
+ }
+ }
+ this.setData({
+ data_list: data,
+ data_list_loding_status: data.length == 0 ? 0 : 3,
+ data_bottom_line_status: true,
+ data_list_loding_msg: '',
+ });
+ } else {
+ this.setData({
+ data_list_loding_status: 2,
+ data_bottom_line_status: false,
+ data_list_loding_msg: res.data.msg,
+ });
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.stopPullDownRefresh();
+ this.setData({
+ data_list_loding_status: 2,
+ data_bottom_line_status: false,
+ data_list_loding_msg: '服务器请求出错',
+ });
+
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ },
+
+ // 下拉刷新
+ onPullDownRefresh() {
+ this.init();
+ },
+
+ // 数量输入事件
+ goods_buy_number_blur(e) {
+ var index = e.target.dataset.index || 0;
+ var buy_number = parseInt(e.detail.value) || 1;
+ this.goods_buy_number_func(index, buy_number);
+ },
+
+ // 数量操作事件
+ goods_buy_number_event(e) {
+ var index = e.target.dataset.index || 0;
+ var type = parseInt(e.target.dataset.type) || 0;
+ var temp_buy_number = parseInt(this.data.data_list[index]['stock']);
+ if (type == 0) {
+ var buy_number = temp_buy_number - 1;
+ } else {
+ var buy_number = temp_buy_number + 1;
+ }
+ this.goods_buy_number_func(index, buy_number);
+ },
+
+ // 数量处理方法
+ goods_buy_number_func(index, buy_number) {
+ var temp_data_list = this.data.data_list;
+ var buy_min_number = parseInt(temp_data_list[index]['buy_min_number']) || 1;
+ var buy_max_number = parseInt(temp_data_list[index]['buy_max_number']) || 0;
+ var inventory = parseInt(temp_data_list[index]['inventory']);
+ var inventory_unit = temp_data_list[index]['inventory_unit'];
+ if (buy_number < buy_min_number) {
+ buy_number = buy_min_number;
+ if (buy_min_number > 1) {
+ wx.showToast({ content: '起购' + buy_min_number + inventory_unit });
+ return false;
+ }
+ }
+ if (buy_max_number > 0 && buy_number > buy_max_number) {
+ buy_number = buy_max_number;
+ wx.showToast({ content: '限购' + buy_max_number + inventory_unit });
+ return false;
+ }
+ if (buy_number > inventory) {
+ buy_number = inventory;
+ wx.showToast({ content: '库存数量' + inventory + inventory_unit });
+ return false;
+ }
+
+ if (temp_data_list[index]['stock'] == 1 && buy_number == 1)
+ {
+ return false;
+ }
+
+ // 更新数据库
+ wx.request({
+ url: app.get_request_url("Stock", "Cart"),
+ method: "POST",
+ data: { "id": temp_data_list[index]['id'], "goods_id": temp_data_list[index]['goods_id'], "stock": buy_number},
+ dataType: "json",
+ success: res => {
+ wx.stopPullDownRefresh();
+ if (res.data.code == 0) {
+ temp_data_list[index]['stock'] = buy_number;
+ this.setData({ data_list: temp_data_list });
+
+ // 选择处理
+ this.selected_calculate();
+ } else {
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ },
+
+ // 滑动操作
+ right_item_event(e) {
+ var type = e.detail.type;
+ var index = e.extra;
+ var id = this.data.data_list[index]['id'];
+ var goods_id = this.data.data_list[index]['goods_id'];
+
+ // 收藏
+ if (type == 'edit') {
+ this.goods_favor_event(id, goods_id, type);
+ } else {
+ wx.confirm({
+ title: '温馨提示',
+ content: '删除后不可恢复,确定继续吗?',
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ success: (result) => {
+ if (result.confirm) {
+ this.cart_delete(id, type);
+ } else {
+ this.setData({ swipe_index: null });
+ }
+ }
+ });
+ }
+ },
+
+ // 滑动操作
+ swipe_start_event(e) {
+ this.setData({ swipe_index: e.index });
+ },
+
+ // 收藏事件
+ goods_favor_event(id, goods_id, type) {
+ wx.request({
+ url: app.get_request_url('Favor', 'Goods'),
+ method: 'POST',
+ data: { "id": goods_id, "is_mandatory_favor": 1 },
+ dataType: 'json',
+ success: (res) => {
+ if (res.data.code == 0) {
+ this.cart_delete(id, type);
+ } else {
+ wx.showToast({
+ type: 'fail',
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.showToast({
+ type: 'fail',
+ content: '服务器请求出错'
+ });
+ }
+ });
+ },
+
+ // 购物车删除
+ cart_delete(id, type) {
+ wx.request({
+ url: app.get_request_url('Delete', 'Cart'),
+ method: 'POST',
+ data: { "id": id },
+ dataType: 'json',
+ success: (res) => {
+ if (res.data.code == 0) {
+ var temp_data_list = this.data.data_list;
+ temp_data_list.splice(this.data.swipe_index, 1);
+ this.setData({
+ data_list: temp_data_list,
+ swipe_index: null,
+ data_list_loding_status: temp_data_list.length == 0 ? 0 : this.data.data_list_loding_status,
+ });
+
+ wx.showToast({
+ type: 'success',
+ content: (type == 'delete') ? '删除成功' : '收藏成功'
+ });
+ } else {
+ wx.showToast({
+ type: 'fail',
+ content: (type == 'delete') ? '删除失败' : '收藏失败'
+ });
+ }
+ },
+ fail: () => {
+ wx.showToast({
+ type: 'fail',
+ content: '服务器请求出错'
+ });
+ }
+ });
+ },
+
+ // 选中处理
+ selectedt_event(e) {
+ var type = e.target.dataset.type || null;
+ if (type != null)
+ {
+ var temp_data_list = this.data.data_list;
+ var temp_is_selected_all = this.data.is_selected_all;
+ switch(type) {
+ // 批量操作
+ case 'all' :
+ temp_is_selected_all = (temp_is_selected_all == true) ? false : true;
+ for (var i in temp_data_list) {
+ temp_data_list[i]['selected'] = temp_is_selected_all;
+ }
+ break;
+
+ // 节点操作
+ case 'node' :
+ var index = e.target.dataset.index || 0;
+ temp_data_list[index]['selected'] = (temp_data_list[index]['selected'] == true) ? false : true;
+ break;
+ }
+
+ this.setData({
+ data_list: temp_data_list,
+ is_selected_all: temp_is_selected_all,
+ });
+
+ // 选择处理
+ this.selected_calculate();
+ }
+ },
+
+ // 选中计算
+ selected_calculate() {
+ var total_price = 0;
+ var selected_count = 0;
+ var temp_data_list = this.data.data_list;
+ for (var i in temp_data_list) {
+ if ((temp_data_list[i]['selected'] || false) == true) {
+ total_price += temp_data_list[i]['stock'] * temp_data_list[i]['price'];
+ selected_count++;
+ }
+ }
+
+ this.setData({
+ total_price: total_price.toFixed(2),
+ buy_submit_disabled_status: (selected_count <= 0),
+ is_selected_all: (selected_count >= temp_data_list.length),
+ });
+ },
+
+ // 结算
+ buy_submit_event(e) {
+ var selected_count = 0;
+ var ids = [];
+ var temp_data_list = this.data.data_list;
+ for (var i in temp_data_list) {
+ if ((temp_data_list[i]['selected'] || false) == true) {
+ ids.push(temp_data_list[i]['id']);
+ selected_count++;
+ }
+ }
+
+ if (selected_count <= 0) {
+ wx.showToast({
+ type: "fail",
+ content: '请选择商品'
+ });
+ return false
+ }
+
+ // 进入订单确认页面
+ var data = {
+ "buy_type": "cart",
+ "ids": ids.join(',')
+ };
+ wx.navigateTo({
+ url: '/pages/buy/buy?data=' + JSON.stringify(data)
+ });
+ }
+
+});
diff --git a/public/appmini/old/wechat/pages/cart/cart.json b/public/appmini/old/wechat/pages/cart/cart.json
new file mode 100755
index 000000000..c75670bbf
--- /dev/null
+++ b/public/appmini/old/wechat/pages/cart/cart.json
@@ -0,0 +1,7 @@
+{
+ "enablePullDownRefresh": true,
+ "usingComponents": {
+ "list-item": "mini-antui/es/list/list-item/index",
+ "swipe-action": "mini-antui/es/swipe-action/index"
+ }
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/cart/cart.wxml b/public/appmini/old/wechat/pages/cart/cart.wxml
new file mode 100755
index 000000000..9f077a1ee
--- /dev/null
+++ b/public/appmini/old/wechat/pages/cart/cart.wxml
@@ -0,0 +1,72 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.title}}
+
+
+ {{spec.type}}:{{spec.value}}
+
+
+
+
+ -
+
+ +
+
+
+
+
+ ¥{{item.price}}
+ ¥{{item.original_price}}
+ x{{item.stock}}
+
+
+
+
+
+
+
+
+
+
+
+ 全选
+
+
+ ¥{{total_price}}
+ 合计:
+
+
+
+
+
+
+
+
+
+
+
+ 购物车空空如也
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/cart/cart.wxss b/public/appmini/old/wechat/pages/cart/cart.wxss
new file mode 100755
index 000000000..12d729771
--- /dev/null
+++ b/public/appmini/old/wechat/pages/cart/cart.wxss
@@ -0,0 +1,131 @@
+/**
+ * 商品列表
+ */
+ .page {
+ padding-bottom: 120rpx;
+}
+.goods-item {
+ padding: 20rpx 10rpx;
+ position: relative;
+}
+.goods-title {
+ line-height: 36rpx;
+}
+.goods-item:not(:last-child) {
+ border-bottom: 1px solid #eee;
+}
+.goods-title, .goods-attribute {
+ margin-bottom: 10rpx;
+}
+.goods-image {
+ width: 160rpx;
+ height: 160rpx;
+ margin-right: 20rpx;
+}
+.goods-base {
+ min-height: 160rpx;
+ margin-left: 180rpx;
+}
+.goods-price {
+ position: relative;
+}
+.buy-number {
+ margin-left: 20rpx;
+}
+.goods-item .items {
+ padding-left: 80rpx;
+}
+.goods-item .selected {
+ margin-top: 60rpx;
+}
+
+/**
+ * 数量操作
+ */
+.number-content {
+ position: absolute;
+ right: 20rpx;
+ top: 100rpx;
+ background: #eee;
+ border-radius: 2px;
+ border: 1px solid #eee;
+}
+.number-content .number-submit
+{
+ width: 80rpx;
+ font-weight: bold;
+}
+.number-content input {
+ width: 30px;
+}
+.number-content .number-submit,
+.number-content input
+{
+ padding: 0;
+ vertical-align: middle;
+ height: 60rpx;
+ line-height: 60rpx;
+}
+
+/**
+ * 空购物车
+ */
+.no-data-box {
+ padding: 30% 0 0 0;
+}
+.no-data-box image {
+ width: 160rpx;
+ margin-bottom: 20rpx;
+}
+.no-data-box .no-data-tips {
+ font-size: 28rpx;
+ color: #a6a6a6;
+}
+.no-data-box button {
+ margin: 0 auto;
+ width: 220rpx;
+ height: 60rpx;
+ line-height: 60rpx;
+ font-size: 28rpx;
+ margin-top: 30rpx;
+}
+
+/**
+ * 操作导航
+ */
+.buy-nav {
+ position: fixed;
+ left: 0;
+ bottom: 0;
+}
+.buy-nav, .nav-base, .nav-submit button {
+ height: 100rpx;
+}
+.nav-base, .nav-submit button {
+ line-height: 100rpx;
+}
+.nav-base {
+ width: calc(75% - 20rpx);
+ padding: 0 10rpx;
+}
+.nav-submit {
+ width: 25%;
+}
+.nav-submit button {
+ border-radius: 0;
+}
+.page {
+ padding-bottom: 120rpx;
+}
+.selected .icon {
+ width: 50rpx;
+ height: 50rpx !important;
+ margin: 0 10rpx;
+ vertical-align: middle;
+}
+.buy-nav .price {
+ width: calc(100% - 140rpx);
+}
+.buy-nav .sales-price {
+ max-width: calc(100% - 40px);
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/common/bottom_line.wxml b/public/appmini/old/wechat/pages/common/bottom_line.wxml
new file mode 100755
index 000000000..76e538956
--- /dev/null
+++ b/public/appmini/old/wechat/pages/common/bottom_line.wxml
@@ -0,0 +1,7 @@
+
+
+
+ 我是有底线的
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/common/copyright.wxml b/public/appmini/old/wechat/pages/common/copyright.wxml
new file mode 100755
index 000000000..ef1d8ac9e
--- /dev/null
+++ b/public/appmini/old/wechat/pages/common/copyright.wxml
@@ -0,0 +1,6 @@
+
+
+ ShopXO企业级B2C开源电商系统
+ 技术支持 shopxo.net
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/common/nodata.wxml b/public/appmini/old/wechat/pages/common/nodata.wxml
new file mode 100755
index 000000000..6dbc17a21
--- /dev/null
+++ b/public/appmini/old/wechat/pages/common/nodata.wxml
@@ -0,0 +1,18 @@
+
+
+
+ 加载中...
+
+
+
+
+
+ {{msg || '处理错误'}}
+
+
+
+
+
+ {{msg || '这里人迹罕至,什么都没有'}}
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/goods-attribute/goods-attribute.js b/public/appmini/old/wechat/pages/goods-attribute/goods-attribute.js
new file mode 100755
index 000000000..86cd33e2a
--- /dev/null
+++ b/public/appmini/old/wechat/pages/goods-attribute/goods-attribute.js
@@ -0,0 +1,25 @@
+const app = getApp();
+Page({
+ data: {
+ goods_attribute: [],
+ },
+ onLoad(params) {
+ if((params.data || null) == null)
+ {
+ wx.alert({
+ title: '温馨提示',
+ content: '属性数据有误',
+ buttonText: '返回',
+ success: () => {
+ wx.navigateBack();
+ }
+ });
+ } else {
+ this.setData({goods_attribute: JSON.parse(params.data)});
+ }
+ },
+
+ onShow() {
+ wx.setNavigationBar({title: app.data.common_pages_title.goods_attribute});
+ },
+});
diff --git a/public/appmini/old/wechat/pages/goods-attribute/goods-attribute.json b/public/appmini/old/wechat/pages/goods-attribute/goods-attribute.json
new file mode 100755
index 000000000..9a5b68f95
--- /dev/null
+++ b/public/appmini/old/wechat/pages/goods-attribute/goods-attribute.json
@@ -0,0 +1,3 @@
+{
+ "enablePullDownRefresh": false
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/goods-attribute/goods-attribute.wxml b/public/appmini/old/wechat/pages/goods-attribute/goods-attribute.wxml
new file mode 100755
index 000000000..3efb91083
--- /dev/null
+++ b/public/appmini/old/wechat/pages/goods-attribute/goods-attribute.wxml
@@ -0,0 +1,17 @@
+
+
+ {{item.name}}
+
+
+ {{items.name}}
+ ,
+
+
+
+
+
+
+
+
+
+
diff --git a/public/appmini/old/wechat/pages/goods-attribute/goods-attribute.wxss b/public/appmini/old/wechat/pages/goods-attribute/goods-attribute.wxss
new file mode 100755
index 000000000..3a2f2b336
--- /dev/null
+++ b/public/appmini/old/wechat/pages/goods-attribute/goods-attribute.wxss
@@ -0,0 +1,16 @@
+.goods-attribute {
+ padding: 0 10rpx;
+}
+.goods-attribute .item {
+ padding: 20rpx 0;
+}
+.goods-attribute .item .title {
+ width: 25%;
+}
+.goods-attribute .item .content {
+ width: calc(75% - 30rpx);
+ margin-left: 20rpx;
+}
+.goods-attribute .item view {
+ line-height: 46rpx;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/goods-category/goods-category.js b/public/appmini/old/wechat/pages/goods-category/goods-category.js
new file mode 100755
index 000000000..b63bdd5a9
--- /dev/null
+++ b/public/appmini/old/wechat/pages/goods-category/goods-category.js
@@ -0,0 +1,97 @@
+const app = getApp();
+Page({
+ data: {
+ tab_active: 0,
+ tab_active_text_color: '#d2364c',
+ tab_active_line_color: '#d2364c',
+ data_list_loding_status: 1,
+ data_bottom_line_status: false,
+ data_list: [],
+ },
+
+ onShow() {
+ wx.setNavigationBar({title: app.data.common_pages_title.goods_category});
+ this.init();
+ },
+
+ // 获取数据
+ init() {
+ // 加载loding
+ this.setData({
+ data_list_loding_status: 1,
+ });
+
+ // 加载loding
+ wx.request({
+ url: app.get_request_url("category", "goods"),
+ method: "POST",
+ data: {},
+ dataType: "json",
+ header: { 'content-type': 'application/x-www-form-urlencoded' },
+ success: res => {
+ wx.stopPullDownRefresh();
+ if (res.data.code == 0) {
+ var data = res.data.data;
+
+ // tabs
+ for(var i in data) {
+ data[i]['title'] = data[i]['name'];
+ data[i]['anchor'] = data[i]['id'];
+ }
+
+ this.setData({
+ data_list: data,
+ data_list_loding_status: data.length == 0 ? 0 : 3,
+ data_bottom_line_status: true,
+ });
+ } else {
+ this.setData({
+ data_list_loding_status: 0,
+ data_bottom_line_status: true,
+ });
+
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.stopPullDownRefresh();
+ this.setData({
+ data_list_loding_status: 2,
+ data_bottom_line_status: true,
+ });
+
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ },
+
+ // 下拉刷新
+ onPullDownRefresh() {
+ this.init();
+ },
+
+ // 处理事件
+ handle_event(index) {
+ this.setData({
+ tab_active: index,
+ });
+ },
+
+ // tab改变
+ change_event(index) {
+ this.setData({
+ tab_active: index,
+ });
+ },
+
+ // 事件
+ category_event(e) {
+ wx.navigateTo({url: '/pages/goods-search/goods-search?category_id='+e.target.dataset.value});
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/goods-category/goods-category.json b/public/appmini/old/wechat/pages/goods-category/goods-category.json
new file mode 100755
index 000000000..d381efdd2
--- /dev/null
+++ b/public/appmini/old/wechat/pages/goods-category/goods-category.json
@@ -0,0 +1,6 @@
+{
+ "usingComponents": {
+ "vtabs": "mini-antui/es/vtabs/index",
+ "vtab-content": "mini-antui/es/vtabs/vtab-content/index"
+ }
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/goods-category/goods-category.wxml b/public/appmini/old/wechat/pages/goods-category/goods-category.wxml
new file mode 100755
index 000000000..745a38eda
--- /dev/null
+++ b/public/appmini/old/wechat/pages/goods-category/goods-category.wxml
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+ {{v.name}}
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/goods-category/goods-category.wxss b/public/appmini/old/wechat/pages/goods-category/goods-category.wxss
new file mode 100755
index 000000000..7d0a85424
--- /dev/null
+++ b/public/appmini/old/wechat/pages/goods-category/goods-category.wxss
@@ -0,0 +1,21 @@
+.content {
+ border-left: 1px solid #eee;
+ box-sizing: border-box;
+ overflow: hidden;
+ padding-bottom: 120rpx;
+ min-height: 100vh;
+}
+.content-items {
+ float: left;
+ width: calc(33.33% - 20rpx);
+ padding: 20rpx 10rpx;
+ text-align: center;
+}
+.content-items .text {
+ font-size: 28rpx;
+ line-height: 46rpx;
+}
+.content-items .icon {
+ width: 100%;
+ height: 120rpx;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/goods-detail/goods-detail.js b/public/appmini/old/wechat/pages/goods-detail/goods-detail.js
new file mode 100755
index 000000000..c330a7fc8
--- /dev/null
+++ b/public/appmini/old/wechat/pages/goods-detail/goods-detail.js
@@ -0,0 +1,634 @@
+const app = getApp();
+Page({
+ data: {
+ indicator_dots: false,
+ indicator_color: 'rgba(0, 0, 0, .3)',
+ indicator_active_color: '#e31c55',
+ autoplay: true,
+ circular: true,
+ data_bottom_line_status: false,
+ data_list_loding_status: 1,
+ data_list_loding_msg: '',
+ params: null,
+
+ goods: null,
+ goods_photo: [],
+ goods_specifications_choose: [],
+ goods_content_app: [],
+
+ popup_status: false,
+ goods_favor_text: '收藏',
+ goods_favor_icon: '/images/goods-detail-favor-icon-0.png',
+ temp_buy_number: 1,
+ buy_event_type: 'buy',
+ nav_submit_text: '立即购买',
+ nav_submit_is_disabled: true,
+
+ goods_spec_base_price: 0,
+ goods_spec_base_original_price: 0,
+ goods_spec_base_inventory: 0,
+ goods_spec_base_images: '',
+ },
+
+ onLoad(params) {
+ //params['goods_id']=12;
+ this.setData({params: params});
+ this.init();
+ },
+
+ onShow() {
+ wx.setNavigationBar({title: app.data.common_pages_title.goods_detail});
+ },
+
+ // 获取数据列表
+ init() {
+ // 数据初始化
+ this.setData({
+ temp_attribute_active: {}
+ });
+
+ // 参数校验
+ if((this.data.params.goods_id || null) == null)
+ {
+ wx.stopPullDownRefresh();
+ this.setData({
+ data_bottom_line_status: false,
+ data_list_loding_status: 2,
+ data_list_loding_msg: '商品ID有误',
+ });
+ } else {
+ var self = this;
+
+ // 加载loding
+ wx.showLoading({content: '加载中...'});
+ this.setData({
+ data_list_loding_status: 1
+ });
+
+ wx.request({
+ url: app.get_request_url("detail", "goods"),
+ method: "POST",
+ data: {goods_id: this.data.params.goods_id},
+ dataType: "json",
+ success: res => {
+ wx.stopPullDownRefresh();
+ wx.hideLoading();
+ if (res.data.code == 0) {
+ var data = res.data.data;
+ self.setData({
+ goods: data.goods,
+ indicator_dots: (data.goods.photo.length > 1),
+ autoplay: (data.goods.photo.length > 1),
+ goods_photo: data.goods.photo,
+ goods_specifications_choose: data.goods.specifications.choose || [],
+ goods_content_app: data.goods.content_app,
+ temp_buy_number: (data.goods.buy_min_number) || 1,
+ goods_favor_text: (data.goods.is_favor == 1) ? '已收藏' : '收藏',
+ goods_favor_icon: '/images/goods-detail-favor-icon-' + data.goods.is_favor+'.png',
+ nav_submit_text: ((data.common_order_is_booking || 0) == 0) ? '立即购买' : '立即预约',
+ data_bottom_line_status: true,
+ data_list_loding_status: 3,
+ nav_submit_is_disabled: (data.goods.is_shelves == 1 && data.goods.inventory > 0) ? false : true,
+
+ goods_spec_base_price: data.goods.price,
+ goods_spec_base_original_price: data.goods.original_price,
+ goods_spec_base_inventory: data.goods.inventory,
+ goods_spec_base_images: data.goods.images
+ });
+
+ // 不能选择规格处理
+ this.goods_specifications_choose_handle_dont(0);
+
+ if (data.goods.is_shelves != 1) {
+ this.setData({
+ nav_submit_text: '商品已下架',
+ nav_submit_is_disabled: true,
+ });
+ } else {
+ if(data.goods.inventory <= 0) {
+ this.setData({
+ nav_submit_text: '商品卖光了',
+ nav_submit_is_disabled: true,
+ });
+ }
+ }
+ } else {
+ self.setData({
+ data_bottom_line_status: false,
+ data_list_loding_status: 0,
+ data_list_loding_msg: res.data.msg,
+ });
+ }
+ },
+ fail: () => {
+ wx.stopPullDownRefresh();
+ wx.hideLoading();
+ self.setData({
+ data_bottom_line_status: false,
+ data_list_loding_status: 2,
+ data_list_loding_msg: '服务器请求出错',
+ });
+
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ }
+ },
+
+ // 不能选择规格处理
+ goods_specifications_choose_handle_dont(key) {
+ var temp_data = this.data.goods_specifications_choose || [];
+ if(temp_data.length <= 0)
+ {
+ return false;
+ }
+
+ // 是否不能选择
+ for(var i in temp_data)
+ {
+ for(var k in temp_data[i]['value'])
+ {
+ if(i > key)
+ {
+ temp_data[i]['value'][k]['is_dont'] = 'spec-dont-choose',
+ temp_data[i]['value'][k]['is_disabled'] = '';
+ temp_data[i]['value'][k]['is_active'] = '';
+ }
+ }
+ }
+ this.setData({goods_specifications_choose: temp_data});
+ },
+
+ // 下拉刷新
+ onPullDownRefresh() {
+ this.init();
+ },
+
+ // 进入商品属性事件
+ good_attribute_nav_event(e) {
+ wx.navigateTo({
+ url: "/pages/goods-attribute/goods-attribute?data="+JSON.stringify(this.data.goods_attribute_show)
+ });
+ },
+
+ // 弹层关闭
+ popup_close_event(e) {
+ this.setData({popup_status: false});
+ },
+
+ // 进入店铺
+ shop_event(e)
+ {
+ wx.switchTab({
+ url: '/pages/index/index'
+ });
+ },
+
+ // 加入购物车
+ cart_submit_event(e) {
+ this.setData({ popup_status: true, buy_event_type: 'cart' });
+ },
+
+ // 立即购买
+ buy_submit_event(e) {
+ this.setData({ popup_status: true, buy_event_type: 'buy'});
+ },
+
+ // 收藏事件
+ goods_favor_event(e)
+ {
+ var user = app.GetUserInfo(this, 'goods_favor_event');
+ if (user != false) {
+ // 用户未绑定用户则转到登录页面
+ if ((user.mobile || null) == null) {
+ wx.navigateTo({
+ url: "/pages/login/login?event_callback=init"
+ });
+ return false;
+ } else {
+ wx.showLoading({content: '处理中...'});
+
+ wx.request({
+ url: app.get_request_url('favor', 'goods'),
+ method: 'POST',
+ data: {"id": this.data.goods.id},
+ dataType: 'json',
+ success: (res) => {
+ wx.hideLoading();
+ if(res.data.code == 0)
+ {
+ var status = (this.data.goods.is_favor == 1) ? 0 : 1;
+ this.setData({
+ 'goods.is_favor': status,
+ goods_favor_text: (status == 1) ? '已收藏' : '收藏',
+ goods_favor_icon: '/images/goods-detail-favor-icon-'+status+'.png'
+ });
+ wx.showToast({
+ type: 'success',
+ content: res.data.msg
+ });
+ } else {
+ wx.showToast({
+ type: 'fail',
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.hideLoading();
+
+ wx.showToast({
+ type: 'fail',
+ content: '服务器请求出错'
+ });
+ }
+ });
+ }
+ }
+ },
+
+ // 加入购物车事件
+ goods_cart_event(e, spec) {
+ var user = app.GetUserInfo(this, 'goods_cart_event');
+ if (user != false) {
+ // 用户未绑定用户则转到登录页面
+ if ((user.mobile || null) == null) {
+ wx.navigateTo({
+ url: "/pages/login/login?event_callback=init"
+ });
+ return false;
+ } else {
+ wx.showLoading({ content: '处理中...' });
+ wx.request({
+ url: app.get_request_url('save', 'cart'),
+ method: 'POST',
+ data: { "goods_id": this.data.goods.id, "stock": this.data.temp_buy_number, "spec": JSON.stringify(spec) },
+ dataType: 'json',
+ success: (res) => {
+ wx.hideLoading();
+ if (res.data.code == 0) {
+ this.popup_close_event();
+ wx.showToast({
+ type: 'success',
+ content: res.data.msg
+ });
+ } else {
+ wx.showToast({
+ type: 'fail',
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.hideLoading();
+
+ wx.showToast({
+ type: 'fail',
+ content: '服务器请求出错'
+ });
+ }
+ });
+ }
+ }
+ },
+
+ // 规格事件
+ goods_specifications_event(e) {
+ var key = e.currentTarget.dataset.key || 0;
+ var keys = e.currentTarget.dataset.keys || 0;
+ var temp_data = this.data.goods_specifications_choose;
+ var temp_images = this.data.goods_spec_base_images;
+
+ // 不能选择和禁止选择跳过
+ if((temp_data[key]['value'][keys]['is_dont'] || null) == null && (temp_data[key]['value'][keys]['is_disabled'] || null) == null)
+ {
+ // 规格选择
+ for(var i in temp_data)
+ {
+ for(var k in temp_data[i]['value'])
+ {
+ if((temp_data[i]['value'][k]['is_dont'] || null) == null && (temp_data[i]['value'][k]['is_disabled'] || null) == null)
+ {
+ if(key == i)
+ {
+ if(keys == k && (temp_data[i]['value'][k]['is_active'] || null) == null)
+ {
+ temp_data[i]['value'][k]['is_active'] = 'spec-active';
+ if((temp_data[i]['value'][k]['images'] || null) != null)
+ {
+ temp_images = temp_data[i]['value'][k]['images'];
+ }
+ } else {
+ temp_data[i]['value'][k]['is_active'] = '';
+ }
+ }
+ }
+ }
+ }
+ this.setData({goods_specifications_choose: temp_data, goods_spec_base_images: temp_images});
+
+ // 不能选择规格处理
+ this.goods_specifications_choose_handle_dont(key);
+
+ // 获取下一个规格类型
+ this.get_goods_specifications_type(key);
+
+ // 获取规格详情
+ this.get_goods_specifications_detail();
+ }
+ },
+
+ // 获取下一个规格类型
+ get_goods_specifications_type(key) {
+ var temp_data = this.data.goods_specifications_choose;
+ var active_index = key+1;
+ var sku_count = temp_data.length;
+
+ if(active_index <= 0 || active_index >= sku_count)
+ {
+ return false;
+ }
+
+ // 获取规格值
+ var spec = [];
+ for(var i in temp_data)
+ {
+ for(var k in temp_data[i]['value'])
+ {
+ if((temp_data[i]['value'][k]['is_active'] || null) != null)
+ {
+ spec.push({"type": temp_data[i]['name'], "value": temp_data[i]['value'][k]['name']});
+ break;
+ }
+ }
+ }
+ if(spec.length <= 0)
+ {
+ return false;
+ }
+
+ // 获取数据
+ wx.request({
+ url: app.get_request_url('spectype', 'goods'),
+ method: 'POST',
+ data: { "id": this.data.goods.id, "spec": JSON.stringify(spec) },
+ dataType: 'json',
+ success: (res) => {
+ if (res.data.code == 0) {
+ var spec_count = spec.length;
+ var index = (spec_count > 0) ? spec_count : 0;
+ if(index < sku_count)
+ {
+ for(var i in temp_data)
+ {
+ for(var k in temp_data[i]['value'])
+ {
+ if(index == i)
+ {
+ temp_data[i]['value'][k]['is_dont'] = '';
+ var temp_value = temp_data[i]['value'][k]['name'];
+ var temp_status = false;
+ for(var t in res.data.data)
+ {
+ if(res.data.data[t] == temp_value)
+ {
+ temp_status = true;
+ break;
+ }
+ }
+ if(temp_status == true)
+ {
+ temp_data[i]['value'][k]['is_disabled'] = '';
+ } else {
+ temp_data[i]['value'][k]['is_disabled'] = 'spec-items-disabled';
+ }
+ }
+ }
+ }
+ this.setData({goods_specifications_choose: temp_data});
+ }
+ } else {
+ wx.showToast({
+ type: 'fail',
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.showToast({
+ type: 'fail',
+ content: '服务器请求出错'
+ });
+ }
+ });
+ },
+
+ // 获取规格详情
+ get_goods_specifications_detail() {
+ // 是否全部选中
+ var temp_data = this.data.goods_specifications_choose;
+ var sku_count = temp_data.length;
+ var active_count = 0;
+
+ // 获取规格值
+ var spec = [];
+ for(var i in temp_data)
+ {
+ for(var k in temp_data[i]['value'])
+ {
+ if((temp_data[i]['value'][k]['is_active'] || null) != null)
+ {
+ active_count++;
+ spec.push({"type": temp_data[i]['name'], "value": temp_data[i]['value'][k]['name']});
+ break;
+ }
+ }
+ }
+ if(spec.length <= 0 || active_count < sku_count)
+ {
+ this.setData({
+ goods_spec_base_price: this.data.goods.price,
+ goods_spec_base_original_price: this.data.goods.original_price,
+ goods_spec_base_inventory: this.data.goods.inventory,
+ });
+ return false;
+ }
+
+ // 获取数据
+ wx.request({
+ url: app.get_request_url('specdetail', 'goods'),
+ method: 'POST',
+ data: { "id": this.data.goods.id, "spec": JSON.stringify(spec) },
+ dataType: 'json',
+ success: (res) => {
+ if (res.data.code == 0) {
+ this.setData({
+ goods_spec_base_price: res.data.data.price,
+ goods_spec_base_original_price: res.data.data.original_price,
+ goods_spec_base_inventory: res.data.data.inventory,
+ });
+ } else {
+ wx.showToast({
+ type: 'fail',
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.showToast({
+ type: 'fail',
+ content: '服务器请求出错'
+ });
+ }
+ });
+ },
+
+ // 数量输入事件
+ goods_buy_number_blur(e) {
+ var buy_number = parseInt(e.detail.value) || 1;
+ this.setData({temp_buy_number: buy_number});
+ this.goods_buy_number_func(buy_number);
+ },
+
+ // 数量操作事件
+ goods_buy_number_event(e) {
+ var type = parseInt(e.currentTarget.dataset.type) || 0;
+ var temp_buy_number = parseInt(this.data.temp_buy_number);
+ if(type == 0)
+ {
+ var buy_number = temp_buy_number - 1;
+ } else {
+ var buy_number = temp_buy_number + 1;
+ }
+ this.goods_buy_number_func(buy_number);
+ },
+
+ // 数量处理方法
+ goods_buy_number_func(buy_number) {
+ var buy_min_number = parseInt(this.data.goods.buy_min_number) || 1;
+ var buy_max_number = parseInt(this.data.goods.buy_max_number) || 0;
+ var inventory = parseInt(this.data.goods.goods_spec_base_inventory);
+ var inventory_unit = this.data.goods.inventory_unit;
+ if(buy_number < buy_min_number)
+ {
+ buy_number = buy_min_number;
+ if(buy_min_number > 1)
+ {
+ wx.showToast({content: '起购'+buy_min_number+inventory_unit});
+ }
+ }
+ if(buy_max_number > 0 && buy_number > buy_max_number)
+ {
+ buy_number = buy_max_number;
+ wx.showToast({content: '限购'+buy_max_number+inventory_unit});
+ }
+ if(buy_number > inventory)
+ {
+ buy_number = inventory;
+ wx.showToast({content: '库存数量'+inventory+inventory_unit});
+ }
+ this.setData({temp_buy_number: buy_number});
+ },
+
+ // 确认
+ goods_buy_confirm_event(e) {
+ var user = app.GetUserInfo(this, 'goods_buy_confirm_event');
+ if (user != false) {
+ // 用户未绑定用户则转到登录页面
+ if ((user.mobile || null) == null) {
+ wx.navigateTo({
+ url: "/pages/login/login?event_callback=init"
+ });
+ return false;
+ } else {
+ // 属性
+ var temp_data = this.data.goods_specifications_choose;
+ var sku_count = temp_data.length;
+ var active_count = 0;
+ var spec = [];
+ if(sku_count > 0)
+ {
+ for(var i in temp_data)
+ {
+ for(var k in temp_data[i]['value'])
+ {
+ if((temp_data[i]['value'][k]['is_active'] || null) != null)
+ {
+ active_count++;
+ spec.push({"type": temp_data[i]['name'], "value": temp_data[i]['value'][k]['name']});
+ }
+ }
+ }
+ if(active_count < sku_count)
+ {
+ wx.showToast({
+ type: 'fail',
+ content: '请选择属性'
+ });
+ return false;
+ }
+ }
+
+ // 操作类型
+ switch (this.data.buy_event_type) {
+ case 'buy' :
+ // 进入订单确认页面
+ var data = {
+ "buy_type": "goods",
+ "goods_id": this.data.goods.id,
+ "stock": this.data.temp_buy_number,
+ "spec": JSON.stringify(spec)
+ };
+ wx.navigateTo({
+ url: '/pages/buy/buy?data=' + JSON.stringify(data)
+ });
+ this.popup_close_event();
+ break;
+
+ case 'cart' :
+ this.goods_cart_event(e, spec);
+ break;
+
+ default :
+ wx.showToast({
+ type: "fail",
+ content: "操作事件类型有误"
+ });
+ }
+ }
+ }
+ },
+
+ // 详情图片查看
+ goods_detail_images_view_event(e) {
+ var value = e.currentTarget.dataset.value || null;
+ if(value != null)
+ {
+ wx.previewImage({
+ current: 0,
+ urls: [value]
+ });
+ }
+ },
+ // 商品相册图片查看
+ goods_photo_view_event(e) {
+ var index = e.currentTarget.dataset.index;
+ wx.previewImage({
+ current: index,
+ urls: this.data.goods_photo
+ });
+ },
+
+ // 自定义分享
+ onShareAppMessage() {
+ return {
+ title: app.data.application_title +'-'+ this.data.goods.title,
+ desc: app.data.application_describe,
+ path: '/pages/goods-detail/goods-detail?share=goods-detail&goods_id='+this.data.goods.id
+ };
+ },
+
+});
diff --git a/public/appmini/old/wechat/pages/goods-detail/goods-detail.json b/public/appmini/old/wechat/pages/goods-detail/goods-detail.json
new file mode 100755
index 000000000..2a4ca3ef8
--- /dev/null
+++ b/public/appmini/old/wechat/pages/goods-detail/goods-detail.json
@@ -0,0 +1,6 @@
+{
+ "enablePullDownRefresh": true,
+ "usingComponents": {
+ "popup": "mini-antui/es/popup/index"
+ }
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/goods-detail/goods-detail.wxml b/public/appmini/old/wechat/pages/goods-detail/goods-detail.wxml
new file mode 100755
index 000000000..fb78e26ee
--- /dev/null
+++ b/public/appmini/old/wechat/pages/goods-detail/goods-detail.wxml
@@ -0,0 +1,137 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{goods.title}}
+
+
+
+
+
+ ¥{{goods.price}}
+ ¥{{goods.original_price}}
+
+ 销量 {{goods.sales_count}}
+
+
+
+
+
+
+
+
+
+
+
+ 详情
+
+
+
+
+ {{items}}
+
+
+
+
+
+
+
+
+
+
+
+
+ 首页
+
+
+
+ {{goods_favor_text}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/goods-detail/goods-detail.wxss b/public/appmini/old/wechat/pages/goods-detail/goods-detail.wxss
new file mode 100755
index 000000000..e2915e59e
--- /dev/null
+++ b/public/appmini/old/wechat/pages/goods-detail/goods-detail.wxss
@@ -0,0 +1,193 @@
+.goods-photo .swiper-item {
+ height: 65vh !important;
+ display: block;
+}
+
+.goods-attr-show-title {
+ height: 80rpx;
+ line-height: 80rpx;
+ padding: 0 10rpx;
+}
+.goods-popup {
+ padding: 20rpx 10rpx;
+ position: relative;
+}
+.goods-popup .close {
+ position: absolute;
+ top: 20rpx;
+ right: 20rpx;
+ z-index: 2;
+}
+.goods-popup-base {
+ height: 230rpx;
+ position: relative;
+}
+.goods-popup-base image {
+ width: 200rpx;
+ height: 200rpx;
+ position: absolute;
+ left: 0;
+ top: 0;
+}
+.goods-popup-base-content {
+ position: absolute;
+ left: 220rpx;
+ bottom: 30rpx;
+}
+.goods-popup-base-content .goods-price {
+ margin-bottom: 10rpx;
+}
+.goods-popup-content {
+ max-height: 50vh;
+ overflow-y: scroll;
+ overflow-x: hidden;
+ margin-top: 20rpx;
+}
+.goods-attr-choose .item {
+ margin-bottom: 30rpx;
+ padding-bottom: 30rpx;
+}
+.goods-popup-content .title {
+ font-size: 36rpx;
+}
+.goods-attr-choose .item .attribute button {
+ margin-top: 20rpx;
+ margin-right: 25rpx;
+ padding: 0 30rpx;
+ background-color: #f5f5f5;
+ color: #666;
+ line-height: 25px;
+ height: 27px;
+ border: 1px solid #d5d5d5;
+}
+.goods-attr-choose .item .attribute button image {
+ width: 20px;
+ height: 20px;
+ vertical-align: middle;
+ margin-right: 10rpx;
+}
+.spec-active {
+ background: #fff !important;
+ color: #d2364c !important;
+ border: 1px solid #d2364c !important;
+}
+.spec-dont-choose {
+ color: #b4b3b3 !important;
+ background-color: #ffffff !important;
+ border: 1px solid #ebeaea !important;
+}
+.spec-dont-choose image {
+ opacity: 0.5;
+}
+.spec-items-disabled {
+ color: #d2cfcf !important;
+ background-color: #ffffff !important;
+ border: 1px dashed #d5d5d5 !important;
+}
+.spec-items-disabled image {
+ opacity: 0.3;
+}
+.goods-attr-choose .item .attribute button,
+.goods-popup-submit
+{
+ border-radius: 50rpx;
+}
+.goods-popup-submit {
+ height: 85rpx;
+ line-height: 85rpx;
+ font-size: 36rpx;
+ margin-top: 20rpx;
+ border: 0;
+}
+.goods-popup .goods-buy-number {
+ margin-bottom: 20rpx;
+ position: relative;
+ height: 70rpx;
+}
+.goods-popup .goods-buy-number .title {
+ line-height: 60rpx;
+}
+.goods-popup .number-content {
+ position: absolute;
+ right: 20rpx;
+ top: 0;
+ background: #eee;
+ border-radius: 2px;
+ border: 1px solid #eee;
+}
+.goods-popup .number-content .number-submit
+{
+ width: 80rpx;
+ font-weight: bold;
+}
+.goods-popup .number-content input {
+ width: 50px;
+}
+.goods-popup .number-content .number-submit,
+.goods-popup .number-content input
+{
+ padding: 0;
+ vertical-align: middle;
+ height: 60rpx;
+ line-height: 60rpx;
+}
+
+.goods-detail-app .content-items view {
+ padding: 15rpx 10rpx;
+ line-height: 44rpx;
+ font-size: 32rpx;
+}
+
+.goods-buy-nav {
+ position: fixed;
+ left: 0;
+ bottom: 0;
+ height: 100rpx;
+}
+.goods-buy-nav .fl {
+ width: calc(20% - 1rpx);
+}
+.goods-buy-nav .fr {
+ width: 60%;
+}
+.goods-buy-nav .fr button {
+ border-radius: 0;
+ line-height: 100rpx;
+ width: 50%;
+}
+.goods-buy-nav .fr button,
+.goods-buy-nav .fl
+{
+ height: 100rpx;
+}
+.goods-buy-nav .collect { border-left: 1px solid #e1e1e1; }
+.goods-buy-nav .fl image { width: 25px; height: 25px; margin: 0 auto; }
+
+.goods-base {
+ padding: 15rpx 10rpx;
+}
+.goods-base .goods-price .fr {
+ line-height: 50rpx;
+}
+.goods-base .goods-title {
+ width: calc(100% - 100rpx);
+ font-size: 32rpx;
+ line-height: 44rpx;
+ font-weight: 500;
+}
+.goods-base .goods-share image {
+ width: 50rpx;
+ height: 50rpx;
+}
+.goods-base .goods-share button {
+ height: auto;
+ font-size: 26rpx;
+ border: 0;
+ min-width: initial;
+}
+.goods-base .goods-price {
+ margin-top: 10rpx;
+}
+.page {
+ padding-bottom: 100rpx;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/goods-search/goods-search.js b/public/appmini/old/wechat/pages/goods-search/goods-search.js
new file mode 100755
index 000000000..ee1f01c1c
--- /dev/null
+++ b/public/appmini/old/wechat/pages/goods-search/goods-search.js
@@ -0,0 +1,198 @@
+const app = getApp();
+Page({
+ data: {
+ data_list_loding_status: 1,
+ data_bottom_line_status: false,
+ data_list: [],
+ data_page_total: 0,
+ data_page: 1,
+ params: null,
+ post_data: {},
+ is_show_popup_form: false,
+ popup_form_loading_status: false,
+ search_nav_sort_list: [
+ { name: "综合", field: "default", sort: "asc", "icon": null },
+ { name: "销量", field: "sales_count", sort: "asc", "icon": "default" },
+ { name: "价格", field: "min_price", sort: "asc", "icon": "default" },
+ ],
+ },
+
+ onLoad(params) {
+ this.setData({params: params, post_data: params});
+ this.init();
+ },
+
+ onShow() {
+ wx.setNavigationBar({title: app.data.common_pages_title.goods_search});
+ },
+
+ // 初始化
+ init() {
+ // 获取数据
+ this.get_data_list();
+ },
+
+ // 搜索
+ search_event() {
+ this.setData({
+ data_list: [],
+ data_page: 1
+ });
+ this.get_data_list(1);
+ },
+
+ // 获取数据列表
+ get_data_list(is_mandatory) {
+ // 分页是否还有数据
+ if ((is_mandatory || 0) == 0) {
+ if (this.data.data_bottom_line_status == true) {
+ return false;
+ }
+ }
+
+ // 加载loding
+ wx.showLoading({ content: "加载中..." });
+ this.setData({
+ data_list_loding_status: 1
+ });
+
+ // 参数
+ var params = this.data.params;
+ var post_data = this.data.post_data;
+ post_data['page'] = this.data.data_page;
+ post_data['category_id'] = params['category_id'] || 0;
+
+ // 获取数据
+ wx.request({
+ url: app.get_request_url("index", "search"),
+ method: "POST",
+ data: post_data,
+ dataType: "json",
+ header: { 'content-type': 'application/x-www-form-urlencoded' },
+ success: res => {
+ wx.hideLoading();
+ wx.stopPullDownRefresh();
+ if (res.data.code == 0) {
+ if (res.data.data.data.length > 0) {
+ if (this.data.data_page <= 1) {
+ var temp_data_list = res.data.data.data;
+ } else {
+ var temp_data_list = this.data.data_list;
+ var temp_data = res.data.data.data;
+ for (var i in temp_data) {
+ temp_data_list.push(temp_data[i]);
+ }
+ }
+ this.setData({
+ data_list: temp_data_list,
+ data_total: res.data.data.total,
+ data_page_total: res.data.data.page_total,
+ data_list_loding_status: 3,
+ data_page: this.data.data_page + 1
+ });
+
+ // 是否还有数据
+ if (this.data.data_page > 1 && this.data.data_page > this.data.data_page_total)
+ {
+ this.setData({ data_bottom_line_status: true });
+ } else {
+ this.setData({data_bottom_line_status: false});
+ }
+ } else {
+ this.setData({
+ data_list_loding_status: 0,
+ });
+ if (this.data.data_page <= 1) {
+ this.setData({
+ data_list: [],
+ data_bottom_line_status: false,
+ });
+ }
+ }
+ } else {
+ this.setData({
+ data_list_loding_status: 0
+ });
+
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.hideLoading();
+ wx.stopPullDownRefresh();
+
+ this.setData({
+ data_list_loding_status: 2
+ });
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ },
+
+ // 下拉刷新
+ onPullDownRefresh() {
+ this.setData({
+ data_page: 1
+ });
+ this.get_data_list(1);
+ },
+
+ // 滚动加载
+ scroll_lower(e) {
+ this.get_data_list();
+ },
+
+ // 搜索条件
+ form_submit_event(e) {
+ this.setData({ post_data: e.detail.value, data_page: 1});
+ this.popup_form_event_close();
+ this.get_data_list(1);
+ },
+
+ // 筛选条件关闭
+ popup_form_event_close(e) {
+ this.setData({ is_show_popup_form: false});
+ },
+
+ // 筛选条件开启
+ popup_form_event_show(e) {
+ this.setData({ is_show_popup_form: true });
+ },
+
+ // 筛选
+ nav_sort_event(e) {
+ var index = e.target.dataset.index || 0;
+ var temp_post_data = this.data.post_data;
+ var temp_search_nav_sort = this.data.search_nav_sort_list;
+ var temp_sort = (temp_search_nav_sort[index]['sort'] == 'desc') ? 'asc' : 'desc';
+ for (var i in temp_search_nav_sort) {
+ if(i != index) {
+ if (temp_search_nav_sort[i]['icon'] != null) {
+ temp_search_nav_sort[i]['icon'] = 'default';
+ }
+ temp_search_nav_sort[i]['sort'] = 'desc';
+ }
+ }
+
+ temp_search_nav_sort[index]['sort'] = temp_sort;
+ if (temp_search_nav_sort[index]['icon'] != null) {
+ temp_search_nav_sort[index]['icon'] = temp_sort;
+ }
+
+ temp_post_data['order_by_field'] = temp_search_nav_sort[index]['field'];
+ temp_post_data['order_by_type'] = temp_sort;
+
+ this.setData({
+ post_data: temp_post_data,
+ search_nav_sort_list: temp_search_nav_sort,
+ data_page: 1,
+ });
+ this.get_data_list(1);
+ },
+});
diff --git a/public/appmini/old/wechat/pages/goods-search/goods-search.json b/public/appmini/old/wechat/pages/goods-search/goods-search.json
new file mode 100755
index 000000000..2a4ca3ef8
--- /dev/null
+++ b/public/appmini/old/wechat/pages/goods-search/goods-search.json
@@ -0,0 +1,6 @@
+{
+ "enablePullDownRefresh": true,
+ "usingComponents": {
+ "popup": "mini-antui/es/popup/index"
+ }
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/goods-search/goods-search.wxml b/public/appmini/old/wechat/pages/goods-search/goods-search.wxml
new file mode 100755
index 000000000..5fcaffb09
--- /dev/null
+++ b/public/appmini/old/wechat/pages/goods-search/goods-search.wxml
@@ -0,0 +1,56 @@
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.title}}
+
+ ¥{{item.min_price}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/goods-search/goods-search.wxss b/public/appmini/old/wechat/pages/goods-search/goods-search.wxss
new file mode 100755
index 000000000..4c0158677
--- /dev/null
+++ b/public/appmini/old/wechat/pages/goods-search/goods-search.wxss
@@ -0,0 +1,96 @@
+/**
+ * 排序导航
+ */
+ .nav-sort {
+ background: #eee;
+ }
+.nav-sort-content .item {
+ height: 80rpx;
+ line-height: 80rpx;
+ width: 160rpx;
+}
+.nav-sort-content .item .icon {
+ width: 30rpx;
+ height: 30rpx;
+}
+.screening-submit {
+ width: 50rpx;
+ height: 50rpx;
+ position: absolute;
+ top: 15rpx;
+ right: 20rpx;
+}
+
+/**
+ * 商品列表
+ */
+ .scroll-box {
+ height: calc(100vh - 80rpx);
+ }
+.data-list {
+ overflow: hidden;
+}
+.data-list .items {
+ width: calc(50% - 5rpx);
+ margin-bottom: 10rpx;
+ padding-bottom: 20rpx;
+}
+.data-list .items:nth-child(2n) {
+ float: right;
+}
+.data-list .items:nth-child(2n+1) {
+ float: left;
+}
+.data-list .items image {
+ width: 100%;
+ height: 200px !important;
+}
+.data-list .items .base {
+ text-align: left;
+ font-size: 32rpx;
+ padding: 0 15rpx;
+}
+.data-list .items .base,
+.data-list .items .base .price {
+ margin-top: 15rpx;
+}
+
+/**
+ * 条件
+ */
+.popup-form {
+ height: calc(100vh - 20rpx);
+ padding: 20rpx 20rpx 0 20rpx;
+}
+.popup-form input {
+ font-size: 24rpx;
+ height: 50rpx;
+ line-height: 50rpx;
+ background: #fbfbfb;
+ border-radius: 6rpx;
+}
+.screening-price input {
+ width: 220rpx;
+}
+.screening-price .separator {
+ margin-top: 20rpx;
+ width: 30rpx;
+}
+.popup-form .keywords input {
+ width: 490rpx;
+}
+.popup-form .item:not(:last-child) {
+ margin-bottom: 50rpx;
+}
+.popup-form .item .title {
+ margin-bottom: 10rpx;
+ font-size: 28rpx;
+}
+.popup-form .form-submit {
+ height: 80rpx;
+ line-height: 80rpx;
+ position: absolute;
+ left: 0;
+ bottom: 0;
+ border-radius: 0;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/index/index.js b/public/appmini/old/wechat/pages/index/index.js
new file mode 100755
index 000000000..6b8cf7253
--- /dev/null
+++ b/public/appmini/old/wechat/pages/index/index.js
@@ -0,0 +1,109 @@
+const app = getApp();
+Page({
+ data: {
+ indicator_dots: false,
+ indicator_color: 'rgba(0, 0, 0, .3)',
+ indicator_active_color: '#e31c55',
+ autoplay: true,
+ circular: true,
+ data_list_loding_status: 1,
+ data_bottom_line_status: false,
+ data_list: [],
+ common_shop_notice: null,
+ common_app_is_enable_search: 1,
+ common_app_is_enable_answer: 1,
+ load_status: 0,
+ },
+
+ onShow() {
+ this.init();
+ },
+
+ // 获取数据列表
+ init() {
+ var self = this;
+
+ // 加载loding
+ this.setData({
+ data_list_loding_status: 1,
+ });
+
+ // 加载loding
+ wx.request({
+ url: app.get_request_url("index", "index"),
+ method: "POST",
+ data: {},
+ dataType: "json",
+ success: res => {
+ wx.stopPullDownRefresh();
+ self.setData({load_status: 1});
+
+ if (res.data.code == 0) {
+ var data = res.data.data;
+ self.setData({
+ data_list: data.data_list,
+ indicator_dots: (data.data_list.length > 1),
+ autoplay: (data.data_list.length > 1),
+ common_shop_notice: data.common_shop_notice || null,
+ common_app_is_enable_search: data.common_app_is_enable_search,
+ common_app_is_enable_answer: data.common_app_is_enable_answer,
+ data_list_loding_status: data.data_list.length == 0 ? 0 : 3,
+ data_bottom_line_status: true,
+ });
+ } else {
+ self.setData({
+ data_list_loding_status: 0,
+ data_bottom_line_status: true,
+ });
+
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.stopPullDownRefresh();
+ self.setData({
+ data_list_loding_status: 2,
+ data_bottom_line_status: true,
+ load_status: 1,
+ });
+
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ },
+
+ // 搜索事件
+ search_input_event(e) {
+ var keywords = e.detail.value || null;
+ if (keywords == null) {
+ wx.showToast({content: '请输入搜索关键字'});
+ return false;
+ }
+
+ // 进入搜索页面
+ wx.navigateTo({
+ url: '/pages/goods-search/goods-search?keywords='+keywords
+ });
+ },
+
+ // 下拉刷新
+ onPullDownRefresh() {
+ this.init();
+ },
+
+ // 自定义分享
+ onShareAppMessage() {
+ return {
+ title: app.data.application_title,
+ desc: app.data.application_describe,
+ path: '/pages/index/index?share=index'
+ };
+ },
+
+});
diff --git a/public/appmini/old/wechat/pages/index/index.json b/public/appmini/old/wechat/pages/index/index.json
new file mode 100755
index 000000000..126466a3f
--- /dev/null
+++ b/public/appmini/old/wechat/pages/index/index.json
@@ -0,0 +1,7 @@
+{
+ "enablePullDownRefresh": true,
+ "usingComponents": {
+ "component-home-nav": "/components/home-nav/home-nav",
+ "component-home-banner": "/components/home-banner/home-banner"
+ }
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/index/index.wxml b/public/appmini/old/wechat/pages/index/index.wxml
new file mode 100755
index 000000000..508d34375
--- /dev/null
+++ b/public/appmini/old/wechat/pages/index/index.wxml
@@ -0,0 +1,72 @@
+
+
+
+
+
+
+
+
+
+
+ {{common_shop_notice}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{floor.name}}
+
+
+
+
+ {{floor.describe}}
+
+
+
+
+
+
+
+
+ {{goods.title}}
+ ¥{{goods.min_price}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/index/index.wxss b/public/appmini/old/wechat/pages/index/index.wxss
new file mode 100755
index 000000000..b3127290b
--- /dev/null
+++ b/public/appmini/old/wechat/pages/index/index.wxss
@@ -0,0 +1,122 @@
+/**
+ * 搜索
+ */
+.search {
+ left: 0;
+ top: 20rpx;
+ box-sizing: border-box;
+ padding: 20rpx;
+ background: #d2364c;
+}
+.search-content {
+ border-radius: 6rpx;
+ position: relative;
+ opacity: 0.8;
+}
+.search icon {
+ position: absolute;
+ left: 15rpx;
+ top: 15rpx;
+}
+.search input {
+ font-size: 28rpx;
+ padding-left: 60rpx;
+ box-sizing: border-box;
+ height: 70rpx;
+ line-height: 70rpx;
+}
+
+ /**
+ * 楼层数据
+ */
+.floor-list, .floor-left {
+ overflow: hidden;
+ position: relative;
+}
+.floor .vice-name {
+ color: #fff;
+ margin-top: 20rpx;
+ padding: 0 10rpx;
+ font-size: 34rpx;
+ line-height: 48rpx;
+}
+.floor-left {
+ width: 40%;
+ height: 662rpx;
+}
+.floor-left image {
+ left: 0;
+ bottom: 0;
+ width: 100%;
+}
+.goods-list,
+.goods-list .goods {
+ overflow: hidden;
+}
+.floor-left image,
+.goods-list .goods:nth-child(1),
+.goods-list .goods:nth-child(2),
+.goods-list .goods:nth-child(1) .goods-base,
+.goods-list .goods:nth-child(2) .goods-base {
+ position: absolute;
+}
+
+.goods-list .goods image {
+ width: 100%;
+ height: 380rpx;
+}
+.goods-list .goods:nth-child(1),
+.goods-list .goods:nth-child(2) {
+ width: 60%;
+ height: 330rpx;
+}
+.goods-list .goods:nth-child(1) .goods-base,
+.goods-list .goods:nth-child(2) .goods-base {
+ padding-left: 10rpx;
+ width: calc(40% - 10rpx);
+ bottom: 20rpx;
+}
+.goods-list .goods:nth-child(1) image,
+.goods-list .goods:nth-child(2) image {
+ width: 60%;
+ height: 330rpx;
+ float: right;
+}
+.goods-list .goods:nth-child(1) {
+ top: 0;
+ right: 0;
+}
+.goods-list .goods:nth-child(2) {
+ top: 330rpx;
+ right: 0;
+}
+
+.goods-list .goods:nth-child(2),
+.goods-list .goods:nth-child(3),
+.goods-list .goods:nth-child(4),
+.goods-list .goods:nth-child(5),
+.goods-list .goods:nth-child(6) {
+ border-top: 1px solid #eee;
+}
+.goods-list .goods:nth-child(4),
+.goods-list .goods:nth-child(6) {
+ border-left: 1px solid #eee;
+}
+.goods-list .goods:nth-child(3),
+.goods-list .goods:nth-child(4),
+.goods-list .goods:nth-child(5),
+.goods-list .goods:nth-child(6) {
+ width: calc(50% - 1rpx);
+ height: 480rpx;
+ float: left;
+}
+.goods-list .goods-base {
+ padding: 0 10rpx;
+}
+.goods-base .goods-title {
+ line-height: 52rpx;
+ font-size: 32rpx;
+}
+.goods-base .sales-price {
+ font-size: 30rpx;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/login/login.js b/public/appmini/old/wechat/pages/login/login.js
new file mode 100755
index 000000000..10ebc8e4f
--- /dev/null
+++ b/public/appmini/old/wechat/pages/login/login.js
@@ -0,0 +1,172 @@
+const app = getApp();
+Page({
+ data: {
+ params: null,
+ user: null,
+ mobile: null,
+ verify_submit_text: '获取验证码',
+ verify_loading: false,
+ verify_disabled: false,
+ form_submit_loading: false,
+ verify_time_total: 60,
+ temp_clear_time: null,
+ },
+
+ /**
+ * 页面加载初始化
+ */
+ onLoad(option) {
+ // 标题设置
+ wx.setNavigationBar({title: '手机绑定'});
+
+ // 设置用户信息
+ this.setData({params: option, user: app.GetUserCacheInfo()});
+ },
+
+ /**
+ * 输入手机号码事件
+ */
+ bind_key_input(e)
+ {
+ this.setData({mobile: e.detail.value});
+ },
+
+ /**
+ * 短信验证码发送
+ */
+ verify_send()
+ {
+ // 数据验证
+ var validation = [{fields: 'mobile', msg: '请填写手机号码'}];
+ if(app.fields_check(this.data, validation))
+ {
+ // 网络请求
+ var $this = this;
+ wx.showLoading({content: '发送中...'});
+ this.setData({verify_submit_text: '发送中', verify_loading: true, verify_disabled: true});
+
+ wx.request({
+ url: app.get_request_url('regverifysend', 'user'),
+ method: 'POST',
+ data: {mobile: this.data.mobile},
+ dataType: 'json',
+ header: { 'content-type': 'application/x-www-form-urlencoded' },
+ success: (res) => {
+ wx.hideLoading();
+ if(res.data.code == 0)
+ {
+ this.setData({verify_loading: false});
+ var temp_time = this.data.verify_time_total;
+ this.data.temp_clear_time = setInterval(function()
+ {
+ if(temp_time <= 1)
+ {
+ clearInterval($this.data.temp_clear_time);
+ $this.setData({verify_submit_text: '获取验证码', verify_disabled: false});
+ } else {
+ temp_time--;
+ $this.setData({verify_submit_text: '剩余 '+temp_time+' 秒'});
+ }
+ }, 1000);
+ } else {
+ this.setData({verify_submit_text: '获取验证码', verify_loading: false, verify_disabled: false});
+
+ wx.showToast({
+ type: 'fail',
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.hideLoading();
+ this.setData({verify_submit_text: '获取验证码', verify_loading: false, verify_disabled: false});
+
+ wx.showToast({
+ type: 'fail',
+ content: '服务器请求出错'
+ });
+ }
+ });
+ }
+ },
+
+ /**
+ * 表单提交
+ */
+ formSubmit(e)
+ {
+ // 数据验证
+ var validation = [
+ {fields: 'mobile', msg: '请填写手机号码'},
+ {fields: 'verify', msg: '请填写验证码'},
+ {fields: 'alipay_openid', msg: '授权id不能为空'}
+ ];
+ e.detail.value['alipay_openid'] = this.data.user.alipay_openid;
+ e.detail.value['nickname'] = this.data.user.nickname;
+ e.detail.value['avatar'] = this.data.user.avatar;
+ e.detail.value['province'] = this.data.user.province;
+ e.detail.value['city'] = this.data.user.city;
+ e.detail.value['gender'] = this.data.user.gender;
+ e.detail.value['referrer'] = this.data.user.referrer;
+ e.detail.value['app_type'] = 'alipay';
+ if(app.fields_check(e.detail.value, validation))
+ {
+ wx.showLoading({content: '处理中...'});
+ this.setData({form_submit_loading: true});
+
+ // 网络请求
+ wx.request({
+ url: app.get_request_url('reg', 'user'),
+ method: 'POST',
+ data: e.detail.value,
+ dataType: 'json',
+ header: { 'content-type': 'application/x-www-form-urlencoded' },
+ success: (res) => {
+ wx.hideLoading();
+
+ if(res.data.code == 0 && (res.data.data || null) != null)
+ {
+ clearInterval(this.data.temp_clear_time);
+ wx.showToast({
+ type: 'success',
+ content: res.data.msg
+ });
+
+ wx.setStorage({
+ key: app.data.cache_user_info_key,
+ data: res.data.data
+ });
+
+ var event_callback = this.data.params.event_callback || null;
+ setTimeout(function()
+ {
+ // 触发回调函数
+ if(event_callback != null)
+ {
+ getCurrentPages()[getCurrentPages().length-2][event_callback]();
+ }
+ wx.navigateBack();
+ }, 1000);
+ } else {
+ this.setData({form_submit_loading: false});
+
+ wx.showToast({
+ type: 'fail',
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.hideLoading();
+ this.setData({form_submit_loading: false});
+
+ wx.showToast({
+ type: 'fail',
+ content: '服务器请求出错'
+ });
+ }
+ });
+ }
+ }
+
+});
diff --git a/public/appmini/old/wechat/pages/login/login.json b/public/appmini/old/wechat/pages/login/login.json
new file mode 100755
index 000000000..9a5b68f95
--- /dev/null
+++ b/public/appmini/old/wechat/pages/login/login.json
@@ -0,0 +1,3 @@
+{
+ "enablePullDownRefresh": false
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/login/login.wxml b/public/appmini/old/wechat/pages/login/login.wxml
new file mode 100755
index 000000000..b28406139
--- /dev/null
+++ b/public/appmini/old/wechat/pages/login/login.wxml
@@ -0,0 +1,10 @@
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/login/login.wxss b/public/appmini/old/wechat/pages/login/login.wxss
new file mode 100755
index 000000000..c322498fc
--- /dev/null
+++ b/public/appmini/old/wechat/pages/login/login.wxss
@@ -0,0 +1,49 @@
+.a-input{
+ padding: 0;
+}
+page{
+ background: #fff;
+ position: relative;
+ height: 100vh;
+}
+.content {
+ padding: 30% 40rpx 0 40rpx;
+}
+.content .mobile{
+ width: 100%;
+ margin: 20rpx 0;
+ border-bottom: solid 1px #eee;
+}
+.content input{
+ font-size: 28rpx;
+ color: #4e4e4e;
+ height: 40px;
+ line-height: 40px;
+}
+.content .code{
+ margin: 20rpx 0;
+ border-bottom: solid 1px #eee;
+}
+.content .code .verify{
+ width: 63%;
+}
+.content .code .verify-sub{
+ border: solid 1px #ff6482;
+ color: #ff6482;
+ width: 35%;
+ height: 35px;
+ line-height: 35px;
+ border-radius: 10rpx;
+}
+.content .code .verify-sub.sub-disabled{
+ border: solid 1px #eee;
+ color: #a6a6a6
+}
+.content .submit{
+ position: absolute;
+ left: 20rpx;
+ right: 20rpx;
+ bottom: 34rpx;
+ height: 90rpx;
+ line-height: 90rpx;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/message/message.js b/public/appmini/old/wechat/pages/message/message.js
new file mode 100755
index 000000000..3a8497ff3
--- /dev/null
+++ b/public/appmini/old/wechat/pages/message/message.js
@@ -0,0 +1,128 @@
+const app = getApp();
+Page({
+ data: {
+ data_list: [],
+ data_page_total: 0,
+ data_page: 1,
+ data_list_loding_status: 1,
+ data_bottom_line_status: false
+ },
+
+ onShow() {
+ wx.setNavigationBar({ title: app.data.common_pages_title.message });
+ this.init();
+ },
+
+ init() {
+ var user = app.GetUserInfo(this, "init");
+ if (user != false) {
+ // 用户未绑定用户则转到登录页面
+ if ((user.mobile || null) == null) {
+ wx.redirectTo({
+ url: "/pages/login/login?event_callback=init"
+ });
+ return false;
+ } else {
+ // 获取数据
+ this.get_data_list();
+ }
+ }
+ },
+
+ get_data_list(is_mandatory) {
+ // 分页是否还有数据
+ if ((is_mandatory || 0) == 0) {
+ if (this.data.data_bottom_line_status == true) {
+ return false;
+ }
+ } else {
+ this.setData({ data_bottom_line_status: false });
+ }
+
+ // 加载loding
+ wx.showLoading({ content: "加载中..." });
+ this.setData({
+ data_list_loding_status: 1
+ });
+
+ // 获取数据
+ wx.request({
+ url: app.get_request_url("Index", "Message"),
+ method: "POST",
+ data: {
+ page: this.data.data_page
+ },
+ dataType: "json",
+ header: { 'content-type': 'application/x-www-form-urlencoded' },
+ success: res => {
+ wx.hideLoading();
+ wx.stopPullDownRefresh();
+
+ if (res.data.code == 0) {
+ if (res.data.data.data.length > 0) {
+ if (this.data.data_page <= 1) {
+ var temp_data_list = res.data.data.data;
+ } else {
+ var temp_data_list = this.data.data_list;
+ var temp_data = res.data.data.data;
+ for (var i in temp_data) {
+ temp_data_list.push(temp_data[i]);
+ }
+ }
+ this.setData({
+ data_list: temp_data_list,
+ data_total: res.data.data.total,
+ data_page_total: res.data.data.page_total,
+ data_list_loding_status: 3,
+ data_page: this.data.data_page + 1
+ });
+
+ // 是否还有数据
+ if (
+ this.data.data_page > 1 &&
+ this.data.data_page > this.data.data_page_total
+ ) {
+ this.setData({ data_bottom_line_status: true });
+ }
+ } else {
+ this.setData({
+ data_list_loding_status: 0
+ });
+ }
+ } else {
+ this.setData({
+ data_list_loding_status: 0
+ });
+
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.hideLoading();
+ wx.stopPullDownRefresh();
+
+ this.setData({
+ data_list_loding_status: 2
+ });
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ },
+
+ // 下拉刷新
+ onPullDownRefresh() {
+ this.setData({ data_page: 1 });
+ this.get_data_list(1);
+ },
+
+ // 滚动加载
+ scroll_lower(e) {
+ this.get_data_list();
+ }
+});
diff --git a/public/appmini/old/wechat/pages/message/message.json b/public/appmini/old/wechat/pages/message/message.json
new file mode 100755
index 000000000..331ad4f3d
--- /dev/null
+++ b/public/appmini/old/wechat/pages/message/message.json
@@ -0,0 +1,3 @@
+{
+ "enablePullDownRefresh": true
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/message/message.wxml b/public/appmini/old/wechat/pages/message/message.wxml
new file mode 100755
index 000000000..2ed61ea3c
--- /dev/null
+++ b/public/appmini/old/wechat/pages/message/message.wxml
@@ -0,0 +1,23 @@
+
+
+
+
+ {{item.title}}
+ {{item.add_time_time}}
+
+ {{item.detail}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/message/message.wxss b/public/appmini/old/wechat/pages/message/message.wxss
new file mode 100755
index 000000000..d3d4b2e4f
--- /dev/null
+++ b/public/appmini/old/wechat/pages/message/message.wxss
@@ -0,0 +1,15 @@
+.data-card {
+ padding: 30rpx 20rpx;
+ font-size: 24rpx;
+ color: #a6a6a6;
+}
+.data-card .data-box {
+ margin-bottom: 20rpx;
+}
+.data-card .data-title {
+ font-size: 28rpx;
+ color: #4a4a4a;
+}
+.data-card .data-detail {
+ line-height: 36rpx;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/paytips/paytips.js b/public/appmini/old/wechat/pages/paytips/paytips.js
new file mode 100755
index 000000000..3da3696d3
--- /dev/null
+++ b/public/appmini/old/wechat/pages/paytips/paytips.js
@@ -0,0 +1,66 @@
+const app = getApp();
+Page({
+ data: {
+ params: {},
+ default_round_success_icon: app.data.default_round_success_icon,
+ default_round_error_icon: app.data.default_round_error_icon,
+ },
+
+ /**
+ * 页面加载初始化
+ */
+ onLoad(options)
+ {
+ var msg = null;
+ switch(options.code)
+ {
+ // 支付成功
+ case '9000' :
+ msg = '支付成功';
+ break;
+
+ // 正在处理中
+ case '8000' :
+ msg = '正在处理中';
+ break;
+
+ // 支付失败
+ case '4000' :
+ msg = '支付失败';
+ break;
+
+ // 用户中途取消
+ case '6001' :
+ msg = '已取消支付';
+ break;
+
+ // 网络连接出错
+ case '6002' :
+ msg = '网络连接出错';
+ break;
+
+ // 支付结果未知(有可能已经支付成功),请查询商户订单列表中订单的支付状态
+ case '6004':
+ msg = '支付结果未知';
+ break;
+
+ // 用户点击忘记密码导致快捷界面退出(only iOS)
+ case '99' :
+ msg = '用户取消支付';
+ break;
+
+ // 默认错误
+ default :
+ msg = '其它异常错误';
+ }
+ options['msg'] = msg;
+
+ // 设置信息
+ this.setData({params: options});
+ },
+
+ // 返回
+ back_event(e) {
+ wx.navigateBack();
+ }
+});
diff --git a/public/appmini/old/wechat/pages/paytips/paytips.json b/public/appmini/old/wechat/pages/paytips/paytips.json
new file mode 100755
index 000000000..9a5b68f95
--- /dev/null
+++ b/public/appmini/old/wechat/pages/paytips/paytips.json
@@ -0,0 +1,3 @@
+{
+ "enablePullDownRefresh": false
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/paytips/paytips.wxml b/public/appmini/old/wechat/pages/paytips/paytips.wxml
new file mode 100755
index 000000000..5503c09c7
--- /dev/null
+++ b/public/appmini/old/wechat/pages/paytips/paytips.wxml
@@ -0,0 +1,16 @@
+
+
+
+ {{params.msg}}
+
+ ¥{{params.total_price}}
+ 元
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/paytips/paytips.wxss b/public/appmini/old/wechat/pages/paytips/paytips.wxss
new file mode 100755
index 000000000..7c993957c
--- /dev/null
+++ b/public/appmini/old/wechat/pages/paytips/paytips.wxss
@@ -0,0 +1,33 @@
+page{
+ background: #fff;
+}
+.content{
+ padding-top: 15%;
+ text-align: center;
+}
+.content .pay-img{
+ display: block;
+ width:500rpx;
+ margin: 80rpx auto;
+}
+.content .pay-icon{
+ display: block;
+ width: 250rpx;
+ margin: 60rpx auto;
+}
+
+.btn-box{
+ text-align: center;
+ margin-top: 150rpx;
+}
+.btn-box button{
+ height: 90rpx;
+ line-height: 90rpx;
+ width: 300rpx;
+}
+.dis-block {
+ font-size: 48rpx;
+}
+.price-box {
+ margin-top: 20rpx;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/user-address-save/user-address-save.js b/public/appmini/old/wechat/pages/user-address-save/user-address-save.js
new file mode 100755
index 000000000..ccd954a2d
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-address-save/user-address-save.js
@@ -0,0 +1,321 @@
+const app = getApp();
+
+Page({
+ data: {
+ province_list: [],
+ city_list: [],
+ county_list: [],
+ province_id: null,
+ city_id: null,
+ county_id: null,
+
+ default_province: "请选择省",
+ default_city: "请选择市",
+ default_county: "请选择区/县",
+
+ params: null,
+ },
+
+ onLoad(params) {
+ this.setData({params: params});
+ },
+
+ onShow() {
+ if((this.data.params.id || null) == null)
+ {
+ var title = app.data.common_pages_title.user_address_save_add;
+ } else {
+ var title = app.data.common_pages_title.user_address_save_edit;
+ }
+ wx.setNavigationBar({title: title});
+ this.init();
+ },
+
+ init() {
+ var user = app.GetUserInfo(this, "init");
+ if (user != false) {
+ // 用户未绑定用户则转到登录页面
+ if ((user.mobile || null) == null) {
+ wx.redirectTo({
+ url: "/pages/login/login?event_callback=init"
+ });
+ return false;
+ } else {
+ // 获取地址数据
+ if((this.data.params.id || null) != null)
+ {
+ this.get_user_address();
+ }
+
+ // 获取省
+ this.get_province_list();
+ }
+ }
+ },
+
+ // 获取用户地址
+ get_user_address() {
+ var self = this;
+ // 加载loding
+ wx.showLoading({ content: "加载中..." });
+
+ wx.request({
+ url: app.get_request_url("detail", "useraddress"),
+ method: "POST",
+ data: self.data.params,
+ dataType: "json",
+ header: { 'content-type': 'application/x-www-form-urlencoded' },
+ success: res => {
+ wx.hideLoading();
+ if (res.data.code == 0) {
+ var data = res.data.data;
+ self.setData({
+ name: data.name,
+ tel: data.tel,
+ address: data.address,
+ province_id: data.province,
+ city_id: data.city,
+ county_id: data.county
+ });
+
+ self.get_city_list();
+ self.get_county_list();
+
+ setTimeout(function() {
+ self.init_value();
+ }, 500);
+ } else {
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.hideLoading();
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ },
+
+ // 获取选择的省市区
+ get_province_list() {
+ var self = this;
+ wx.request({
+ url: app.get_request_url("index", "region"),
+ method: "POST",
+ data: {},
+ dataType: "json",
+ header: { 'content-type': 'application/x-www-form-urlencoded' },
+ success: res => {
+ if (res.data.code == 0) {
+ var data = res.data.data;
+ self.setData({
+ province_list: data
+ });
+ } else {
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ },
+
+ get_city_list() {
+ var self = this;
+ if (self.data.province_id) {
+ wx.request({
+ url: app.get_request_url("index", "region"),
+ method: "POST",
+ data: {
+ pid: self.data.province_id
+ },
+ dataType: "json",
+ header: { 'content-type': 'application/x-www-form-urlencoded' },
+ success: res => {
+ if (res.data.code == 0) {
+ var data = res.data.data;
+ self.setData({
+ city_list: data
+ });
+ } else {
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ }
+ },
+
+ get_county_list() {
+ var self = this;
+ if (self.data.city_id) {
+ // 加载loding
+ wx.request({
+ url: app.get_request_url("index", "region"),
+ method: "POST",
+ data: {
+ pid: self.data.city_id
+ },
+ dataType: "json",
+ header: { 'content-type': 'application/x-www-form-urlencoded' },
+ success: res => {
+ if (res.data.code == 0) {
+ var data = res.data.data;
+ self.setData({
+ county_list: data
+ });
+ } else {
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ }
+ },
+
+ select_province(e) {
+ var value = e.detail.value,
+ data = this.data.province_list[value];
+ this.setData({
+ province_value: value,
+ province_id: data.id,
+ city_value: null,
+ county_value: null,
+ city_id: null,
+ county_id: null
+ });
+ this.get_city_list();
+ },
+
+ select_city(e) {
+ var value = e.detail.value,
+ data = this.data.city_list[value];
+ this.setData({
+ city_value: value,
+ city_id: data.id,
+ county_value: null,
+ county_id: null
+ });
+ this.get_county_list();
+ },
+
+ select_county(e) {
+ var value = e.detail.value,
+ data = this.data.county_list[value];
+ this.setData({
+ county_value: value,
+ county_id: data.id
+ });
+ },
+
+ init_value() {
+ var province_value = this.get_init_value("province_list", "province_id"),
+ city_value = this.get_init_value("city_list", "city_id"),
+ county_value = this.get_init_value("county_list", "county_id");
+ this.setData({
+ province_value: province_value,
+ city_value: city_value,
+ county_value: county_value
+ });
+ },
+
+ get_init_value(list, id) {
+ var data = this.data[list],
+ data_id = this.data[id],
+ value;
+ data.forEach((d, i) => {
+ if (d.id == data_id) {
+ value = i;
+ return false;
+ }
+ });
+ return value;
+ },
+
+ form_submit(e) {
+ var self = this,
+ data = self.data;
+ // 表单数据
+ var form_data = e.detail.value;
+
+ // 数据校验
+ var validation = [
+ { fields: "name", msg: "请填写姓名" },
+ { fields: "tel", msg: "请填写手机号" },
+ { fields: "province", msg: "请选择省份" },
+ { fields: "city", msg: "请选择城市" },
+ { fields: "county", msg: "请选择区县" },
+ { fields: "address", msg: "请填写详细地址" }
+ ];
+
+ form_data["province"] = data.province_id;
+ form_data["city"] = data.city_id;
+ form_data["county"] = data.county_id;
+ form_data["id"] = self.data.params.id || 0;
+
+ if (app.fields_check(form_data, validation)) {
+ // 加载loding
+ wx.showLoading({ content: "处理中..." });
+
+ wx.request({
+ url: app.get_request_url("save", "useraddress"),
+ method: "POST",
+ data: form_data,
+ dataType: "json",
+ header: { 'content-type': 'application/x-www-form-urlencoded' },
+ success: res => {
+ wx.hideLoading();
+ if (res.data.code == 0) {
+ wx.showToast({
+ type: "success",
+ content: res.data.msg
+ });
+ setTimeout(function() {
+ wx.navigateBack();
+ }, 1000);
+ } else {
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.hideLoading();
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ }
+ }
+});
diff --git a/public/appmini/old/wechat/pages/user-address-save/user-address-save.json b/public/appmini/old/wechat/pages/user-address-save/user-address-save.json
new file mode 100755
index 000000000..9a5b68f95
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-address-save/user-address-save.json
@@ -0,0 +1,3 @@
+{
+ "enablePullDownRefresh": false
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/user-address-save/user-address-save.wxml b/public/appmini/old/wechat/pages/user-address-save/user-address-save.wxml
new file mode 100755
index 000000000..b0581dcd5
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-address-save/user-address-save.wxml
@@ -0,0 +1,32 @@
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/user-address-save/user-address-save.wxss b/public/appmini/old/wechat/pages/user-address-save/user-address-save.wxss
new file mode 100755
index 000000000..947a112bf
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-address-save/user-address-save.wxss
@@ -0,0 +1,34 @@
+/* 填写信息 */
+.person-box{
+ padding: 20rpx 0;
+}
+.person-box input{
+ height: 100rpx;
+ line-height: 100rpx;
+ font-size: 28rpx;
+}
+.addressee .addressee-name{
+ width: 250rpx;
+ box-sizing: border-box;
+}
+.addressee .addressee-phone{
+ box-sizing: border-box;
+ width: calc(100% - 250rpx);
+}
+/* 三级联动 */
+.select-address{
+ box-sizing: border-box;
+ height: 100rpx;
+ line-height: 100rpx;
+ padding: 0 10rpx;
+}
+.select-address .section{
+ width: 33%;
+ box-sizing: border-box;
+ padding: 0 5rpx;
+}
+/* end 三级联动 */
+.addressee-address{
+ box-sizing: border-box;
+ width: 100%;
+}
diff --git a/public/appmini/old/wechat/pages/user-address/user-address.js b/public/appmini/old/wechat/pages/user-address/user-address.js
new file mode 100755
index 000000000..dab0fb422
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-address/user-address.js
@@ -0,0 +1,261 @@
+const app = getApp();
+Page({
+ data: {
+ data_list_loding_status: 1,
+ data_bottom_line_status: false,
+ data_list: [],
+ params: null,
+ is_default: 0,
+ },
+
+ onLoad(params) {
+ this.setData({params: params});
+ },
+
+ onShow() {
+ wx.setNavigationBar({title: app.data.common_pages_title.user_address});
+ this.init();
+ },
+
+ // 初始化
+ init() {
+ var user = app.GetUserInfo(this, "init");
+ if (user != false) {
+ // 用户未绑定用户则转到登录页面
+ if ((user.mobile || null) == null) {
+ wx.redirectTo({
+ url: "/pages/login/login?event_callback=init"
+ });
+ return false;
+ } else {
+ // 获取数据
+ this.get_data_list();
+ }
+ }
+ },
+
+ // 获取数据列表
+ get_data_list() {
+ // 加载loding
+ wx.showLoading({ content: "加载中..." });
+ this.setData({
+ data_list_loding_status: 1
+ });
+
+ // 获取数据
+ wx.request({
+ url: app.get_request_url("index", "useraddress"),
+ method: "POST",
+ data: {},
+ dataType: "json",
+ success: res => {
+ wx.hideLoading();
+ wx.stopPullDownRefresh();
+ if (res.data.code == 0) {
+ if (res.data.data.length > 0) {
+ // 获取当前默认地址
+ var is_default = 0;
+ for(var i in res.data.data)
+ {
+ if(res.data.data[i]['is_default'] == 1)
+ {
+ is_default = res.data.data[i]['id'];
+ }
+ }
+
+ // 设置数据
+ this.setData({
+ data_list: res.data.data,
+ is_default: is_default,
+ data_list_loding_status: 3,
+ data_bottom_line_status: true,
+ });
+ } else {
+ this.setData({
+ data_list_loding_status: 0
+ });
+ }
+ } else {
+ this.setData({
+ data_list_loding_status: 0
+ });
+
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.hideLoading();
+ wx.stopPullDownRefresh();
+
+ this.setData({
+ data_list_loding_status: 2
+ });
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ },
+
+ // 下拉刷新
+ onPullDownRefresh() {
+ this.get_data_list();
+ },
+
+ // 删除地址
+ address_delete_event(e) {
+ var index = e.currentTarget.dataset.index;
+ var value = e.currentTarget.dataset.value || null;
+ if(value == null)
+ {
+ wx.showToast({
+ type: "fail",
+ content: '地址ID有误'
+ });
+ return false;
+ }
+
+ var self = this;
+ wx.confirm({
+ title: "温馨提示",
+ content: "删除后不可恢复,确定继续吗?",
+ confirmButtonText: "确认",
+ cancelButtonText: "不了",
+ success: result => {
+ if (result.confirm) {
+ // 加载loding
+ wx.showLoading({ content: "处理中..." });
+
+ // 获取数据
+ wx.request({
+ url: app.get_request_url("delete", "useraddress"),
+ method: "POST",
+ data: {id: value},
+ dataType: "json",
+ success: res => {
+ wx.hideLoading();
+ if (res.data.code == 0)
+ {
+ var temp_data = self.data.data_list;
+ temp_data.splice(index, 1);
+ self.setData({
+ data_list: temp_data,
+ data_list_loding_status: temp_data.length == 0 ? 0 : 3,
+ data_bottom_line_status: temp_data.length == 0 ? false : true,
+ });
+
+ wx.showToast({
+ type: "success",
+ content: res.data.msg
+ });
+
+ // 当前删除是否存在缓存中,存在则删除
+ var cache_address = wx.getStorageSync({
+ key: app.data.cache_buy_user_address_select_key
+ });
+ if ((cache_address.data || null) != null) {
+ if (cache_address.data.id == value) {
+ // 删除地址缓存
+ wx.removeStorageSync({ key: app.data.cache_buy_user_address_select_key });
+ }
+ }
+
+ } else {
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.hideLoading();
+
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ }
+ }
+ });
+ },
+
+ // 默认地址设置
+ address_default_event(e) {
+ var value = e.currentTarget.dataset.value || null;
+ if(value == null)
+ {
+ wx.showToast({
+ type: "fail",
+ content: '地址ID有误'
+ });
+ return false;
+ }
+
+ var self = this;
+ if(value == self.data.is_default)
+ {
+ wx.showToast({
+ type: "success",
+ content: '设置成功'
+ });
+ return false;
+ }
+
+ // 加载loding
+ wx.showLoading({ content: "处理中..." });
+
+ // 获取数据
+ wx.request({
+ url: app.get_request_url("setdefault", "useraddress"),
+ method: "POST",
+ data: {id: value},
+ dataType: "json",
+ success: res => {
+ wx.hideLoading();
+ if (res.data.code == 0)
+ {
+ self.setData({is_default: value});
+
+ wx.showToast({
+ type: "success",
+ content: res.data.msg
+ });
+ } else {
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.hideLoading();
+
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ },
+
+ // 地址内容事件
+ address_conent_event(e) {
+ var index = e.currentTarget.dataset.index || 0;
+ var is_back = this.data.params.is_back || 0;
+ if(is_back == 1)
+ {
+ wx.setStorage({
+ key: app.data.cache_buy_user_address_select_key,
+ data: this.data.data_list[index]
+ });
+ wx.navigateBack();
+ }
+ },
+
+});
diff --git a/public/appmini/old/wechat/pages/user-address/user-address.json b/public/appmini/old/wechat/pages/user-address/user-address.json
new file mode 100755
index 000000000..3bd5ed8a4
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-address/user-address.json
@@ -0,0 +1,3 @@
+{
+ "enablePullDownRefresh": true
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/user-address/user-address.wxml b/public/appmini/old/wechat/pages/user-address/user-address.wxml
new file mode 100755
index 000000000..735294fd9
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-address/user-address.wxml
@@ -0,0 +1,39 @@
+
+
+
+
+
+ {{item.name}}
+ {{item.tel}}
+
+
+
+ {{item.province_name}}{{item.city_name}}{{item.county_name}}{{item.address}}
+
+
+
+
+
+
+ 设为默认地址
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/user-address/user-address.wxss b/public/appmini/old/wechat/pages/user-address/user-address.wxss
new file mode 100755
index 000000000..dff6f15ed
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-address/user-address.wxss
@@ -0,0 +1,29 @@
+.item {
+ padding: 10rpx 10rpx 0 10rpx;
+}
+.base, .address, .operation {
+ padding: 20rpx 0;
+}
+.address .item-icon {
+ width: 35rpx;
+ height: 35rpx !important;
+}
+.address .text {
+ line-height: 44rpx;
+ width: calc(100% - 40rpx);
+}
+.operation .default {
+ margin-top: 5rpx;
+}
+.operation .default .item-icon {
+ width: 50rpx;
+ height: 50rpx !important;
+ margin-right: 10rpx;
+ vertical-align: middle;
+}
+.operation .delete-submit {
+ margin-left: 20rpx;
+}
+.page {
+ padding-bottom: 85rpx;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/user-answer-list/user-answer-list.js b/public/appmini/old/wechat/pages/user-answer-list/user-answer-list.js
new file mode 100755
index 000000000..651b57c9c
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-answer-list/user-answer-list.js
@@ -0,0 +1,129 @@
+const app = getApp();
+Page({
+ data: {
+ data_list: [],
+ data_page_total: 0,
+ data_page: 1,
+ data_list_loding_status: 1,
+ data_bottom_line_status: false
+ },
+
+ onLoad() {},
+
+ onShow() {
+ wx.setNavigationBar({title: app.data.common_pages_title.user_answer_list});
+ this.init();
+ },
+
+ init() {
+ var user = app.GetUserInfo(this, "init");
+ if (user != false) {
+ // 用户未绑定用户则转到登录页面
+ if ((user.mobile || null) == null) {
+ wx.redirectTo({
+ url: "/pages/login/login?event_callback=init"
+ });
+ return false;
+ } else {
+ // 获取数据
+ this.get_data_list();
+ }
+ }
+ },
+
+ get_data_list(is_mandatory) {
+ // 分页是否还有数据
+ if ((is_mandatory || 0) == 0) {
+ if (this.data.data_bottom_line_status == true) {
+ return false;
+ }
+ }
+
+ // 加载loding
+ wx.showLoading({ content: "加载中..." });
+ this.setData({
+ data_list_loding_status: 1
+ });
+
+ // 获取数据
+ wx.request({
+ url: app.get_request_url("Index", "Answer"),
+ method: "POST",
+ data: {
+ page: this.data.data_page
+ },
+ dataType: "json",
+ header: { 'content-type': 'application/x-www-form-urlencoded' },
+ success: res => {
+ wx.hideLoading();
+ wx.stopPullDownRefresh();
+
+ if (res.data.code == 0) {
+ if (res.data.data.data.length > 0) {
+ if (this.data.data_page <= 1) {
+ var temp_data_list = res.data.data.data;
+ } else {
+ var temp_data_list = this.data.data_list;
+ var temp_data = res.data.data.data;
+ for (var i in temp_data) {
+ temp_data_list.push(temp_data[i]);
+ }
+ }
+ this.setData({
+ data_list: temp_data_list,
+ data_total: res.data.data.total,
+ data_page_total: res.data.data.page_total,
+ data_list_loding_status: 3,
+ data_page: this.data.data_page + 1
+ });
+
+ // 是否还有数据
+ if (this.data.data_page > 1 && this.data.data_page > this.data.data_page_total)
+ {
+ this.setData({ data_bottom_line_status: true });
+ } else {
+ this.setData({data_bottom_line_status: false});
+ }
+ } else {
+ this.setData({
+ data_list_loding_status: 0
+ });
+ }
+ } else {
+ this.setData({
+ data_list_loding_status: 0
+ });
+
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.hideLoading();
+ wx.stopPullDownRefresh();
+
+ this.setData({
+ data_list_loding_status: 2
+ });
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ },
+
+ // 下拉刷新
+ onPullDownRefresh() {
+ this.setData({ data_page: 1 });
+ this.get_data_list(1);
+ },
+
+ // 滚动加载
+ scroll_lower(e) {
+ this.get_data_list();
+ },
+
+});
diff --git a/public/appmini/old/wechat/pages/user-answer-list/user-answer-list.json b/public/appmini/old/wechat/pages/user-answer-list/user-answer-list.json
new file mode 100755
index 000000000..3bd5ed8a4
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-answer-list/user-answer-list.json
@@ -0,0 +1,3 @@
+{
+ "enablePullDownRefresh": true
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/user-answer-list/user-answer-list.wxml b/public/appmini/old/wechat/pages/user-answer-list/user-answer-list.wxml
new file mode 100755
index 000000000..b92be11a8
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-answer-list/user-answer-list.wxml
@@ -0,0 +1,22 @@
+
+
+
+ {{item.name}}
+ {{item.add_time}}
+
+
+ {{item.content}}
+
+
+ 答
+ {{item.reply}}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/user-answer-list/user-answer-list.wxss b/public/appmini/old/wechat/pages/user-answer-list/user-answer-list.wxss
new file mode 100755
index 000000000..3d7907524
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-answer-list/user-answer-list.wxss
@@ -0,0 +1,22 @@
+.item {
+ padding: 10rpx;
+}
+.item .base {
+ height: 80rpx;
+ line-height: 80rpx;
+}
+.item .base .name {
+ font-size: 28rpx;
+ color: #4e4e4e;
+}
+.item .content, .item .answer {
+ padding: 20rpx 0;
+}
+.item .answer .reply-icon {
+ border-radius: 5px;
+ padding: 0px 3px;
+ margin-right: 5px;
+}
+.item .answer .reply-content, .item .content .desc {
+ line-height: 42rpx;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/user-faovr/user-faovr.js b/public/appmini/old/wechat/pages/user-faovr/user-faovr.js
new file mode 100755
index 000000000..2cac25dab
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-faovr/user-faovr.js
@@ -0,0 +1,189 @@
+const app = getApp();
+Page({
+ data: {
+ data_list: [],
+ data_page_total: 0,
+ data_page: 1,
+ data_list_loding_status: 1,
+ data_bottom_line_status: false,
+ },
+
+ onShow() {
+ wx.setNavigationBar({title: app.data.common_pages_title.user_favor});
+ this.init();
+ },
+
+ init() {
+ var user = app.GetUserInfo(this, "init");
+ if (user != false) {
+ // 用户未绑定用户则转到登录页面
+ if ((user.mobile || null) == null) {
+ wx.redirectTo({
+ url: "/pages/login/login?event_callback=init"
+ });
+ return false;
+ } else {
+ // 获取数据
+ this.get_data_list();
+ }
+ }
+ },
+
+ // 获取数据
+ get_data_list(is_mandatory) {
+ // 分页是否还有数据
+ if ((is_mandatory || 0) == 0) {
+ if (this.data.data_bottom_line_status == true) {
+ return false;
+ }
+ }
+
+ // 加载loding
+ wx.showLoading({ content: "加载中..." });
+ this.setData({
+ data_list_loding_status: 1
+ });
+
+ // 获取数据
+ wx.request({
+ url: app.get_request_url("Index", "UserGoodsFavor"),
+ method: "POST",
+ data: {
+ page: this.data.data_page
+ },
+ dataType: "json",
+ header: { 'content-type': 'application/x-www-form-urlencoded' },
+ success: res => {
+ wx.hideLoading();
+ wx.stopPullDownRefresh();
+ if (res.data.code == 0) {
+ if (res.data.data.data.length > 0) {
+ if (this.data.data_page <= 1) {
+ var temp_data_list = res.data.data.data;
+ } else {
+ var temp_data_list = this.data.data_list;
+ var temp_data = res.data.data.data;
+ for (var i in temp_data) {
+ temp_data_list.push(temp_data[i]);
+ }
+ }
+ this.setData({
+ data_list: temp_data_list,
+ data_total: res.data.data.total,
+ data_page_total: res.data.data.page_total,
+ data_list_loding_status: 3,
+ data_page: this.data.data_page + 1
+ });
+
+ // 是否还有数据
+ if (this.data.data_page > 1 && this.data.data_page > this.data.data_page_total)
+ {
+ this.setData({ data_bottom_line_status: true });
+ } else {
+ this.setData({data_bottom_line_status: false});
+ }
+ } else {
+ this.setData({
+ data_list_loding_status: 0
+ });
+ }
+ } else {
+ this.setData({
+ data_list_loding_status: 0
+ });
+
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.hideLoading();
+ wx.stopPullDownRefresh();
+
+ this.setData({
+ data_list_loding_status: 2
+ });
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ },
+
+ // 下拉刷新
+ onPullDownRefresh() {
+ this.setData({
+ data_page: 1
+ });
+ this.get_data_list(1);
+ },
+
+ // 滚动加载
+ scroll_lower(e) {
+ this.get_data_list();
+ },
+
+ // 取消
+ cancel_event(e) {
+ wx.confirm({
+ title: "温馨提示",
+ content: "取消后不可恢复,确定继续吗?",
+ confirmButtonText: "确认",
+ cancelButtonText: "不了",
+ success: result => {
+ if (result.confirm) {
+ // 参数
+ var id = e.target.dataset.value;
+ var index = e.target.dataset.index;
+
+ // 加载loding
+ wx.showLoading({ content: "处理中..." });
+
+ wx.request({
+ url: app.get_request_url("Cancel", "UserGoodsFavor"),
+ method: "POST",
+ data: {id: id},
+ dataType: "json",
+ header: { 'content-type': 'application/x-www-form-urlencoded' },
+ success: res => {
+ wx.hideLoading();
+ if (res.data.code == 0) {
+ var temp_data_list = this.data.data_list;
+ temp_data_list.splice(index, 1);
+ this.setData({data_list: temp_data_list});
+ if(temp_data_list.length == 0)
+ {
+ this.setData({
+ data_list_loding_status: 0,
+ data_bottom_line_status: false,
+ });
+ }
+
+ wx.showToast({
+ type: "success",
+ content: res.data.msg
+ });
+ } else {
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.hideLoading();
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ }
+ }
+ });
+ },
+
+});
diff --git a/public/appmini/old/wechat/pages/user-faovr/user-faovr.json b/public/appmini/old/wechat/pages/user-faovr/user-faovr.json
new file mode 100755
index 000000000..331ad4f3d
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-faovr/user-faovr.json
@@ -0,0 +1,3 @@
+{
+ "enablePullDownRefresh": true
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/user-faovr/user-faovr.wxml b/public/appmini/old/wechat/pages/user-faovr/user-faovr.wxml
new file mode 100755
index 000000000..b98ac472b
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-faovr/user-faovr.wxml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+ {{item.title}}
+
+ ¥{{item.price}}
+ ¥{{item.original_price}}
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/user-faovr/user-faovr.wxss b/public/appmini/old/wechat/pages/user-faovr/user-faovr.wxss
new file mode 100755
index 000000000..a42637cab
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-faovr/user-faovr.wxss
@@ -0,0 +1,27 @@
+.goods-title {
+ line-height: 36rpx;
+}
+.goods-item {
+ padding: 20rpx 10rpx;
+ position: relative;
+}
+.goods-title {
+ margin-bottom: 10rpx;
+}
+.goods-image {
+ width: 160rpx;
+ height: 160rpx;
+ margin-right: 20rpx;
+}
+.item-base {
+ padding: 25rpx 10rpx 20rpx 10rpx;
+}
+
+.submit-cancel {
+ position: absolute;
+ right: 10rpx;
+ bottom: 20rpx;
+ border: 1px solid #f7c3b3;
+ color: #f7c3b3;
+ padding: 0 35rpx;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/user-goods-browse/user-goods-browse.js b/public/appmini/old/wechat/pages/user-goods-browse/user-goods-browse.js
new file mode 100755
index 000000000..149f7fc3f
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-goods-browse/user-goods-browse.js
@@ -0,0 +1,187 @@
+const app = getApp();
+Page({
+ data: {
+ data_list: [],
+ data_page_total: 0,
+ data_page: 1,
+ data_list_loding_status: 1,
+ data_bottom_line_status: false,
+ },
+
+ onShow() {
+ wx.setNavigationBar({ title: app.data.common_pages_title.user_goods_browse });
+ this.init();
+ },
+
+ init() {
+ var user = app.GetUserInfo(this, "init");
+ if (user != false) {
+ // 用户未绑定用户则转到登录页面
+ if ((user.mobile || null) == null) {
+ wx.redirectTo({
+ url: "/pages/login/login?event_callback=init"
+ });
+ return false;
+ } else {
+ // 获取数据
+ this.get_data_list();
+ }
+ }
+ },
+
+ // 获取数据
+ get_data_list(is_mandatory) {
+ // 分页是否还有数据
+ if ((is_mandatory || 0) == 0) {
+ if (this.data.data_bottom_line_status == true) {
+ return false;
+ }
+ }
+
+ // 加载loding
+ wx.showLoading({ content: "加载中..." });
+ this.setData({
+ data_list_loding_status: 1
+ });
+
+ // 获取数据
+ wx.request({
+ url: app.get_request_url("Index", "UserGoodsBrowse"),
+ method: "POST",
+ data: {
+ page: this.data.data_page
+ },
+ dataType: "json",
+ header: { 'content-type': 'application/x-www-form-urlencoded' },
+ success: res => {
+ wx.hideLoading();
+ wx.stopPullDownRefresh();
+ if (res.data.code == 0) {
+ if (res.data.data.data.length > 0) {
+ if (this.data.data_page <= 1) {
+ var temp_data_list = res.data.data.data;
+ } else {
+ var temp_data_list = this.data.data_list;
+ var temp_data = res.data.data.data;
+ for (var i in temp_data) {
+ temp_data_list.push(temp_data[i]);
+ }
+ }
+ this.setData({
+ data_list: temp_data_list,
+ data_total: res.data.data.total,
+ data_page_total: res.data.data.page_total,
+ data_list_loding_status: 3,
+ data_page: this.data.data_page + 1
+ });
+
+ // 是否还有数据
+ if (this.data.data_page > 1 && this.data.data_page > this.data.data_page_total) {
+ this.setData({ data_bottom_line_status: true });
+ } else {
+ this.setData({ data_bottom_line_status: false });
+ }
+ } else {
+ this.setData({
+ data_list_loding_status: 0
+ });
+ }
+ } else {
+ this.setData({
+ data_list_loding_status: 0
+ });
+
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.hideLoading();
+ wx.stopPullDownRefresh();
+
+ this.setData({
+ data_list_loding_status: 2
+ });
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ },
+
+ // 下拉刷新
+ onPullDownRefresh() {
+ this.setData({
+ data_page: 1
+ });
+ this.get_data_list(1);
+ },
+
+ // 滚动加载
+ scroll_lower(e) {
+ this.get_data_list();
+ },
+
+ // 删除
+ delete_event(e) {
+ wx.confirm({
+ title: "温馨提示",
+ content: "删除后不可恢复?,确定继续吗?",
+ confirmButtonText: "确认",
+ cancelButtonText: "不了",
+ success: result => {
+ if (result.confirm) {
+ // 参数
+ var id = e.target.dataset.value;
+ var index = e.target.dataset.index;
+
+ // 加载loding
+ wx.showLoading({ content: "处理中..." });
+
+ wx.request({
+ url: app.get_request_url("Delete", "UserGoodsBrowse"),
+ method: "POST",
+ data: { id: id },
+ dataType: "json",
+ header: { 'content-type': 'application/x-www-form-urlencoded' },
+ success: res => {
+ wx.hideLoading();
+ if (res.data.code == 0) {
+ var temp_data_list = this.data.data_list;
+ temp_data_list.splice(index, 1);
+ this.setData({ data_list: temp_data_list });
+ if (temp_data_list.length == 0) {
+ this.setData({
+ data_list_loding_status: 0,
+ data_bottom_line_status: false,
+ });
+ }
+
+ wx.showToast({
+ type: "success",
+ content: res.data.msg
+ });
+ } else {
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.hideLoading();
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ }
+ }
+ });
+ },
+
+});
diff --git a/public/appmini/old/wechat/pages/user-goods-browse/user-goods-browse.json b/public/appmini/old/wechat/pages/user-goods-browse/user-goods-browse.json
new file mode 100755
index 000000000..331ad4f3d
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-goods-browse/user-goods-browse.json
@@ -0,0 +1,3 @@
+{
+ "enablePullDownRefresh": true
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/user-goods-browse/user-goods-browse.wxml b/public/appmini/old/wechat/pages/user-goods-browse/user-goods-browse.wxml
new file mode 100755
index 000000000..3107eb36f
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-goods-browse/user-goods-browse.wxml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+ {{item.title}}
+
+ ¥{{item.price}}
+ ¥{{item.original_price}}
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/user-goods-browse/user-goods-browse.wxss b/public/appmini/old/wechat/pages/user-goods-browse/user-goods-browse.wxss
new file mode 100755
index 000000000..a42637cab
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-goods-browse/user-goods-browse.wxss
@@ -0,0 +1,27 @@
+.goods-title {
+ line-height: 36rpx;
+}
+.goods-item {
+ padding: 20rpx 10rpx;
+ position: relative;
+}
+.goods-title {
+ margin-bottom: 10rpx;
+}
+.goods-image {
+ width: 160rpx;
+ height: 160rpx;
+ margin-right: 20rpx;
+}
+.item-base {
+ padding: 25rpx 10rpx 20rpx 10rpx;
+}
+
+.submit-cancel {
+ position: absolute;
+ right: 10rpx;
+ bottom: 20rpx;
+ border: 1px solid #f7c3b3;
+ color: #f7c3b3;
+ padding: 0 35rpx;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/user-integral/user-integral.js b/public/appmini/old/wechat/pages/user-integral/user-integral.js
new file mode 100755
index 000000000..9f42f8419
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-integral/user-integral.js
@@ -0,0 +1,128 @@
+const app = getApp();
+Page({
+ data: {
+ data_list: [],
+ data_page_total: 0,
+ data_page: 1,
+ data_list_loding_status: 1,
+ data_bottom_line_status: false
+ },
+
+ onShow() {
+ wx.setNavigationBar({ title: app.data.common_pages_title.user_integral });
+ this.init();
+ },
+
+ init() {
+ var user = app.GetUserInfo(this, "init");
+ if (user != false) {
+ // 用户未绑定用户则转到登录页面
+ if ((user.mobile || null) == null) {
+ wx.redirectTo({
+ url: "/pages/login/login?event_callback=init"
+ });
+ return false;
+ } else {
+ // 获取数据
+ this.get_data_list();
+ }
+ }
+ },
+
+ get_data_list(is_mandatory) {
+ // 分页是否还有数据
+ if ((is_mandatory || 0) == 0) {
+ if (this.data.data_bottom_line_status == true) {
+ return false;
+ }
+ } else {
+ this.setData({ data_bottom_line_status: false });
+ }
+
+ // 加载loding
+ wx.showLoading({ content: "加载中..." });
+ this.setData({
+ data_list_loding_status: 1
+ });
+
+ // 获取数据
+ wx.request({
+ url: app.get_request_url("Index", "UserIntegral"),
+ method: "POST",
+ data: {
+ page: this.data.data_page
+ },
+ dataType: "json",
+ header: { 'content-type': 'application/x-www-form-urlencoded' },
+ success: res => {
+ wx.hideLoading();
+ wx.stopPullDownRefresh();
+
+ if (res.data.code == 0) {
+ if (res.data.data.data.length > 0) {
+ if (this.data.data_page <= 1) {
+ var temp_data_list = res.data.data.data;
+ } else {
+ var temp_data_list = this.data.data_list;
+ var temp_data = res.data.data.data;
+ for (var i in temp_data) {
+ temp_data_list.push(temp_data[i]);
+ }
+ }
+ this.setData({
+ data_list: temp_data_list,
+ data_total: res.data.data.total,
+ data_page_total: res.data.data.page_total,
+ data_list_loding_status: 3,
+ data_page: this.data.data_page + 1
+ });
+
+ // 是否还有数据
+ if (
+ this.data.data_page > 1 &&
+ this.data.data_page > this.data.data_page_total
+ ) {
+ this.setData({ data_bottom_line_status: true });
+ }
+ } else {
+ this.setData({
+ data_list_loding_status: 0
+ });
+ }
+ } else {
+ this.setData({
+ data_list_loding_status: 0
+ });
+
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.hideLoading();
+ wx.stopPullDownRefresh();
+
+ this.setData({
+ data_list_loding_status: 2
+ });
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ },
+
+ // 下拉刷新
+ onPullDownRefresh() {
+ this.setData({ data_page: 1 });
+ this.get_data_list(1);
+ },
+
+ // 滚动加载
+ scroll_lower(e) {
+ this.get_data_list();
+ }
+});
diff --git a/public/appmini/old/wechat/pages/user-integral/user-integral.json b/public/appmini/old/wechat/pages/user-integral/user-integral.json
new file mode 100755
index 000000000..331ad4f3d
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-integral/user-integral.json
@@ -0,0 +1,3 @@
+{
+ "enablePullDownRefresh": true
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/user-integral/user-integral.wxml b/public/appmini/old/wechat/pages/user-integral/user-integral.wxml
new file mode 100755
index 000000000..42809b1b1
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-integral/user-integral.wxml
@@ -0,0 +1,28 @@
+
+
+
+
+
+ {{item.type_name}}
+ {{item.add_time_time}}
+
+
+ 原始 {{item.original_integral}}
+ 最新 {{item.new_integral}}
+
+ {{item.msg}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/user-integral/user-integral.wxss b/public/appmini/old/wechat/pages/user-integral/user-integral.wxss
new file mode 100755
index 000000000..2aad7f9de
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-integral/user-integral.wxss
@@ -0,0 +1,21 @@
+.data-card {
+ padding: 30rpx 20rpx;
+ font-size: 24rpx;
+ color: #a6a6a6;
+}
+.data-card .data-box {
+ margin-bottom: 20rpx;
+}
+.data-card .data-title {
+ font-size: 28rpx;
+ color: #4a4a4a;
+}
+.data-card .data-detail {
+ line-height: 36rpx;
+}
+.data-value {
+ margin-bottom: 10rpx;
+}
+.data-value text:first-child {
+ margin-right: 20rpx;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/user-order-detail/user-order-detail.js b/public/appmini/old/wechat/pages/user-order-detail/user-order-detail.js
new file mode 100755
index 000000000..a6ab1e1f6
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-order-detail/user-order-detail.js
@@ -0,0 +1,100 @@
+const app = getApp();
+Page({
+ data: {
+ detail: null,
+ detail_list: [],
+ data_list_loding_status: 1,
+ data_list_loding_msg: '',
+ data_bottom_line_status: false,
+ params: null,
+ },
+
+ onLoad(params) {
+ this.setData({params: params});
+ this.init();
+ },
+
+ onShow() {
+ wx.setNavigationBar({title: app.data.common_pages_title.user_order_detail});
+ },
+
+ init() {
+ var self = this;
+ wx.showLoading({ content: "加载中..." });
+ this.setData({
+ data_list_loding_status: 1
+ });
+
+ wx.request({
+ url: app.get_request_url("detail", "order"),
+ method: "POST",
+ data: {
+ id: this.data.params.id
+ },
+ dataType: "json",
+ success: res => {
+ wx.hideLoading();
+ wx.stopPullDownRefresh();
+ if (res.data.code == 0) {
+ var data = res.data.data;
+ self.setData({
+ detail: data,
+ detail_list:[
+ {name: "订单号", value: data.order_no},
+ {name: "状态", value: data.status_name},
+ {name: "支付状态", value: data.pay_status_name},
+ {name: "单价", value: data.price},
+ {name: "总价", value: data.total_price},
+ {name: "优惠", value: data.preferential_price},
+ {name: "支付金额", value: data.pay_price},
+ {name: "支付方式", value: data.payment_name},
+ {name: "快递公司", value: data.express_name},
+ {name: "快递单号", value: data.expres_number},
+ {name: "用户留言", value: data.user_note},
+ {name: "创建时间", value: data.add_time},
+ {name: "确认时间", value: data.confirm_time},
+ {name: "支付时间", value: data.pay_time},
+ {name: "发货时间", value: data.delivery_time},
+ {name: "收货时间", value: data.collect_time},
+ {name: "取消时间", value: data.close_time},
+ {name: "关闭时间", value: data.close_time},
+ ],
+ data_list_loding_status: 3,
+ data_bottom_line_status: true,
+ data_list_loding_msg: '',
+ });
+ } else {
+ self.setData({
+ data_list_loding_status: 2,
+ data_bottom_line_status: false,
+ data_list_loding_msg: res.data.msg,
+ });
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.hideLoading();
+ wx.stopPullDownRefresh();
+ self.setData({
+ data_list_loding_status: 2,
+ data_bottom_line_status: false,
+ data_list_loding_msg: '服务器请求出错',
+ });
+
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ },
+
+ // 下拉刷新
+ onPullDownRefresh() {
+ this.init();
+ },
+
+});
diff --git a/public/appmini/old/wechat/pages/user-order-detail/user-order-detail.json b/public/appmini/old/wechat/pages/user-order-detail/user-order-detail.json
new file mode 100755
index 000000000..3bd5ed8a4
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-order-detail/user-order-detail.json
@@ -0,0 +1,3 @@
+{
+ "enablePullDownRefresh": true
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/user-order-detail/user-order-detail.wxml b/public/appmini/old/wechat/pages/user-order-detail/user-order-detail.wxml
new file mode 100755
index 000000000..af2bcca6b
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-order-detail/user-order-detail.wxml
@@ -0,0 +1,54 @@
+
+
+
+ {{detail.receive_name}}
+ {{detail.receive_tel}}
+
+
+
+ {{detail.receive_province_name}}{{detail.receive_city_name}}{{detail.receive_county_name}}{{detail.receive_address}}
+
+
+
+
+
+
+
+
+ {{item.title}}
+
+
+ {{spec.type}}:{{spec.value}}
+
+
+
+
+ ¥{{item.price}}
+ ¥{{item.original_price}}
+ x{{item.buy_number}}
+
+
+
+
+
+
+
+ {{item.name}}
+ {{item.value}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/user-order-detail/user-order-detail.wxss b/public/appmini/old/wechat/pages/user-order-detail/user-order-detail.wxss
new file mode 100755
index 000000000..7e108d205
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-order-detail/user-order-detail.wxss
@@ -0,0 +1,69 @@
+.address {
+ padding: 10rpx;
+}
+.address-base, .address-detail {
+ padding: 10rpx 35rpx 10rpx 10rpx;
+}
+.address-detail .icon {
+ width: 35rpx;
+ height: 35rpx !important;
+}
+.address-detail .text {
+ width: calc(100% - 40rpx);
+}
+.address-divider {
+ height: 4px;
+ background-image: url("/images/buy-address-divider.png");
+ background-repeat-y: no-repeat;
+}
+.address-detail .text, .goods-title {
+ line-height: 36rpx;
+}
+.no-address {
+ height: 85rpx;
+ line-height: 85rpx;
+}
+
+.goods-base {
+ min-height: 160rpx;
+ margin-left: 180rpx;
+}
+.goods .goods-item:not(:last-child) {
+ border-bottom: 1px dashed #efefef;
+}
+.goods-item {
+ padding: 20rpx 10rpx;
+}
+.goods-title, .goods-attribute {
+ margin-bottom: 10rpx;
+}
+.goods-image {
+ width: 160rpx;
+ height: 160rpx;
+ margin-right: 20rpx;
+}
+.goods-price {
+ position: relative;
+}
+.buy-number {
+ position: absolute;
+ right: 0;
+ bottom: 0;
+}
+
+.detail-list {
+ padding: 0 10rpx;
+}
+.detail-list .item {
+ padding: 20rpx 0;
+}
+.detail-list .item .title {
+ width: 25%;
+}
+.detail-list .item .content {
+ width: calc(75% - 30rpx);
+ margin-left: 20rpx;
+}
+.detail-list .item view {
+ line-height: 46rpx;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/user-order/user-order.js b/public/appmini/old/wechat/pages/user-order/user-order.js
new file mode 100755
index 000000000..92ee8e28a
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-order/user-order.js
@@ -0,0 +1,414 @@
+const app = getApp();
+Page({
+ data: {
+ data_list: [],
+ data_page_total: 0,
+ data_page: 1,
+ data_list_loding_status: 1,
+ data_bottom_line_status: false,
+ params: null,
+ input_keyword_value: '',
+ load_status: 0,
+ is_show_payment_popup: false,
+ payment_list: [],
+ payment_id: 0,
+ temp_pay_value: 0,
+ temp_pay_index: 0,
+ nav_status_list: [
+ { name: "全部", value: "-1" },
+ { name: "待付款", value: "1" },
+ { name: "待发货", value: "2" },
+ { name: "待收货", value: "3" },
+ { name: "已完成", value: "4" },
+ { name: "已失效", value: "5,6" },
+ ],
+ nav_status_index: 0,
+ },
+
+ onLoad(params) {
+ // 是否指定状态
+ var nav_status_index = 0;
+ if ((params.status || null) != null) {
+ for (var i in this.data.nav_status_list) {
+ if (this.data.nav_status_list[i]['value'] == params.status) {
+ nav_status_index = i;
+ break;
+ }
+ }
+ }
+
+ this.setData({
+ params: params,
+ nav_status_index: nav_status_index,
+ });
+ this.init();
+ },
+
+ onShow() {
+ wx.setNavigationBar({title: app.data.common_pages_title.user_order});
+ },
+
+ init() {
+ var user = app.GetUserInfo(this, "init");
+ if (user != false) {
+ // 用户未绑定用户则转到登录页面
+ if ((user.mobile || null) == null) {
+ wx.redirectTo({
+ url: "/pages/login/login?event_callback=init"
+ });
+ return false;
+ } else {
+ // 获取数据
+ this.get_data_list();
+ }
+ }
+ },
+
+ // 输入框事件
+ input_event(e) {
+ this.setData({input_keyword_value: e.detail.value});
+ },
+
+ // 获取数据
+ get_data_list(is_mandatory) {
+ // 分页是否还有数据
+ if ((is_mandatory || 0) == 0) {
+ if (this.data.data_bottom_line_status == true) {
+ return false;
+ }
+ }
+
+ // 加载loding
+ wx.showLoading({ content: "加载中..." });
+ this.setData({
+ data_list_loding_status: 1
+ });
+
+ // 参数
+ var order_status = ((this.data.nav_status_list[this.data.nav_status_index] || null) == null) ? -1 : this.data.nav_status_list[this.data.nav_status_index]['value'];
+
+ // 获取数据
+ wx.request({
+ url: app.get_request_url("index", "order"),
+ method: "POST",
+ data: {
+ page: this.data.data_page,
+ keywords: this.data.input_keyword_value || "",
+ status: order_status,
+ is_more: 1,
+ },
+ dataType: "json",
+ success: res => {
+ wx.hideLoading();
+ wx.stopPullDownRefresh();
+ if (res.data.code == 0) {
+ if (res.data.data.data.length > 0) {
+ if (this.data.data_page <= 1) {
+ var temp_data_list = res.data.data.data;
+
+ // 下订单支付处理
+ if(this.data.load_status == 0)
+ {
+ if((this.data.params.is_pay || 0) == 1 && (this.data.params.order_id || 0) != 0)
+ {
+ for(var i in temp_data_list)
+ {
+ if(this.data.params.order_id == temp_data_list[i]['id'])
+ {
+ this.pay_handle(this.data.params.order_id, i);
+ break;
+ }
+ }
+ }
+ }
+ } else {
+ var temp_data_list = this.data.data_list;
+ var temp_data = res.data.data.data;
+ for (var i in temp_data) {
+ temp_data_list.push(temp_data[i]);
+ }
+ }
+ this.setData({
+ data_list: temp_data_list,
+ data_total: res.data.data.total,
+ data_page_total: res.data.data.page_total,
+ data_list_loding_status: 3,
+ data_page: this.data.data_page + 1,
+ load_status: 1,
+ payment_list: res.data.data.payment_list || [],
+ });
+
+ // 是否还有数据
+ if (this.data.data_page > 1 && this.data.data_page > this.data.data_page_total)
+ {
+ this.setData({ data_bottom_line_status: true });
+ } else {
+ this.setData({data_bottom_line_status: false});
+ }
+ } else {
+ this.setData({
+ data_list_loding_status: 0,
+ load_status: 1,
+ data_list: [],
+ data_bottom_line_status: false,
+ });
+ }
+ } else {
+ this.setData({
+ data_list_loding_status: 0,
+ load_status: 1,
+ });
+
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.hideLoading();
+ wx.stopPullDownRefresh();
+
+ this.setData({
+ data_list_loding_status: 2,
+ load_status: 1,
+ });
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ },
+
+ // 下拉刷新
+ onPullDownRefresh() {
+ this.setData({
+ data_page: 1
+ });
+ this.get_data_list(1);
+ },
+
+ // 滚动加载
+ scroll_lower(e) {
+ this.get_data_list();
+ },
+
+ // 支付
+ pay_event(e) {
+ this.setData({
+ is_show_payment_popup: true,
+ temp_pay_value: e.target.dataset.value,
+ temp_pay_index: e.target.dataset.index,
+ });
+ },
+
+ // 支付弹窗关闭
+ payment_popup_event_close(e) {
+ this.setData({ is_show_payment_popup: false });
+ },
+
+ // 支付弹窗发起支付
+ popup_payment_event(e) {
+ var payment_id = e.target.dataset.value || 0;
+ this.setData({payment_id: payment_id});
+ this.payment_popup_event_close();
+ this.pay_handle(this.data.temp_pay_value, this.data.temp_pay_index);
+ },
+
+ // 支付方法
+ pay_handle(order_id, index) {
+ // 加载loding
+ wx.showLoading({ content: "请求中..." });
+
+ wx.request({
+ url: app.get_request_url("pay", "order"),
+ method: "POST",
+ data: {
+ id: order_id,
+ payment_id: this.data.payment_id,
+ },
+ dataType: "json",
+ success: res => {
+ wx.hideLoading();
+ if (res.data.code == 0) {
+ // 线下支付成功
+ if (res.data.data.is_under_line == 1) {
+ var temp_data_list = this.data.data_list;
+ temp_data_list[index]['status'] = 2;
+ temp_data_list[index]['status_name'] = '待发货';
+ this.setData({ data_list: temp_data_list });
+
+ wx.showToast({
+ type: "success",
+ content: '支付成功'
+ });
+ } else {
+ wx.tradePay({
+ tradeNO: res.data.data.data,
+ success: res => {
+ // 数据设置
+ if (res.resultCode == 9000) {
+ var temp_data_list = this.data.data_list;
+ temp_data_list[index]['status'] = 2;
+ temp_data_list[index]['status_name'] = '待发货';
+ this.setData({ data_list: temp_data_list });
+ }
+
+ // 跳转支付页面
+ wx.navigateTo({
+ url:
+ "/pages/paytips/paytips?code=" +
+ res.resultCode +
+ "&total_price=" +
+ this.data.data_list[index]['total_price']
+ });
+ },
+ fail: res => {
+ wx.showToast({
+ type: "fail",
+ content: "唤起支付模块失败"
+ });
+ }
+ });
+ }
+ } else {
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.hideLoading();
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ },
+
+ // 取消
+ cancel_event(e) {
+ wx.confirm({
+ title: "温馨提示",
+ content: "取消后不可恢复,确定继续吗?",
+ confirmButtonText: "确认",
+ cancelButtonText: "不了",
+ success: result => {
+ if (result.confirm) {
+ // 参数
+ var id = e.target.dataset.value;
+ var index = e.target.dataset.index;
+
+ // 加载loding
+ wx.showLoading({ content: "处理中..." });
+
+ wx.request({
+ url: app.get_request_url("cancel", "order"),
+ method: "POST",
+ data: {id: id},
+ dataType: "json",
+ success: res => {
+ wx.hideLoading();
+ if (res.data.code == 0) {
+ var temp_data_list = this.data.data_list;
+ temp_data_list[index]['status'] = 5;
+ temp_data_list[index]['status_name'] = '已取消';
+ this.setData({data_list: temp_data_list});
+
+ wx.showToast({
+ type: "success",
+ content: res.data.msg
+ });
+ } else {
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.hideLoading();
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ }
+ }
+ });
+ },
+
+ // 收货
+ collect_event(e) {
+ wx.confirm({
+ title: "温馨提示",
+ content: "请确认已收到货物或已完成,操作后不可恢复,确定继续吗?",
+ confirmButtonText: "确认",
+ cancelButtonText: "不了",
+ success: result => {
+ if (result.confirm) {
+ // 参数
+ var id = e.target.dataset.value;
+ var index = e.target.dataset.index;
+
+ // 加载loding
+ wx.showLoading({ content: "处理中..." });
+
+ wx.request({
+ url: app.get_request_url("collect", "order"),
+ method: "POST",
+ data: {id: id},
+ dataType: "json",
+ success: res => {
+ wx.hideLoading();
+ if (res.data.code == 0) {
+ var temp_data_list = this.data.data_list;
+ temp_data_list[index]['status'] = 4;
+ temp_data_list[index]['status_name'] = '已完成';
+ this.setData({data_list: temp_data_list});
+
+ wx.showToast({
+ type: "success",
+ content: res.data.msg
+ });
+ } else {
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.hideLoading();
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ }
+ }
+ });
+ },
+
+ // 催催
+ rush_event(e) {
+ wx.showToast({
+ type: "success",
+ content: "催促成功"
+ });
+ },
+
+ // 导航事件
+ nav_event(e) {
+ this.setData({
+ nav_status_index: e.target.dataset.index || 0,
+ data_page: 1,
+ });
+ this.get_data_list(1);
+ },
+});
diff --git a/public/appmini/old/wechat/pages/user-order/user-order.json b/public/appmini/old/wechat/pages/user-order/user-order.json
new file mode 100755
index 000000000..2a4ca3ef8
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-order/user-order.json
@@ -0,0 +1,6 @@
+{
+ "enablePullDownRefresh": true,
+ "usingComponents": {
+ "popup": "mini-antui/es/popup/index"
+ }
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/user-order/user-order.wxml b/public/appmini/old/wechat/pages/user-order/user-order.wxml
new file mode 100755
index 000000000..adf25eaa6
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-order/user-order.wxml
@@ -0,0 +1,70 @@
+
+
+
+ {{item.name}}
+ {{item.name}}
+
+
+
+
+
+
+
+
+ {{item.add_time}}
+ {{item.status_name}}
+
+
+
+
+
+ {{detail.title}}
+
+
+ {{spec.type}}:{{spec.value}}
+
+
+
+
+ ¥{{detail.price}}
+ ¥{{detail.original_price}}
+ x{{detail.buy_number}}
+
+
+ {{item.describe}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+ 没有支付方式
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/user-order/user-order.wxss b/public/appmini/old/wechat/pages/user-order/user-order.wxss
new file mode 100755
index 000000000..c83dd7751
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user-order/user-order.wxss
@@ -0,0 +1,80 @@
+/*
+ * 导航
+ */
+.nav {
+ background: #eee;
+ height: 80rpx;
+ line-height: 80rpx;
+}
+.nav .item {
+ width: 16.66%;
+}
+
+/*
+ * 列表
+ */
+.scroll-box{
+ height: calc(100vh - 80rpx);
+}
+.goods-base {
+ min-height: 160rpx;
+}
+.goods-title {
+ line-height: 36rpx;
+}
+.list-item .goods-item:not(:last-child) {
+ border-bottom: 1px dashed #efefef;
+}
+.goods-item {
+ padding: 20rpx 10rpx;
+}
+.goods-title, .goods-attribute {
+ margin-bottom: 10rpx;
+}
+.goods-image {
+ width: 160rpx;
+ height: 160rpx;
+ margin-right: 20rpx;
+}
+.goods-price {
+ position: relative;
+ margin-top: 10rpx;
+}
+.buy-number {
+ position: absolute;
+ right: 0;
+ bottom: 0;
+}
+.item-base, .item-describe, .item-operation {
+ padding: 25rpx 10rpx 20rpx 10rpx;
+}
+.submit-cancel {
+ border: 1px solid #f7c3b3;
+ color: #f7c3b3;
+}
+.item-operation button:not(:first-child) {
+ margin-left: 20rpx;
+}
+.item-operation button {
+ padding: 0 35rpx;
+}
+
+/**
+ * 支付方式
+ */
+.payment-list {
+ padding: 40rpx 0;
+}
+.payment-list .item {
+ width: 50%;
+}
+.payment-list .item-content {
+ margin: 20rpx;
+ padding: 20rpx 10rpx;
+}
+.payment-list .item-content image {
+ width: 50rpx;
+ height: 50rpx !important;
+ vertical-align: middle;
+ margin-right: 10rpx;
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/user/user.js b/public/appmini/old/wechat/pages/user/user.js
new file mode 100755
index 000000000..3ad1df792
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user/user.js
@@ -0,0 +1,186 @@
+const app = getApp();
+Page({
+ data: {
+ avatar: app.data.default_user_head_src,
+ nickname: "用户名",
+ customer_service_tel: null,
+ common_user_center_notice: null,
+ message_total: 0,
+ head_nav_list: [
+ { name: "订单总数", url: "user-order", count: 0 },
+ { name: "商品收藏", url: "user-faovr", count: 0 },
+ { name: "我的足迹", url: "user-goods-browse", count: 0 },
+ { name: "我的积分", url: "user-integral", count: 0 },
+ ],
+ user_order_status_list: [
+ { name: "待付款", status: 1, count: 0 },
+ { name: "待发货", status: 2, count: 0 },
+ { name: "待收货", status: 3, count: 0 },
+ { name: "已完成", status: 4, count: 0 },
+ ],
+ nav_lists: [
+ {
+ url: "user-order",
+ icon: "user-nav-order-icon",
+ is_show: 1,
+ name: "我的订单",
+ },
+ {
+ url: "user-address",
+ icon: "user-nav-address-icon",
+ is_show: 1,
+ name: "我的地址"
+ },
+ {
+ url: "user-faovr",
+ icon: "user-nav-faovr-icon",
+ is_show: 1,
+ name: "我的收藏"
+ },
+ {
+ url: "user-answer-list",
+ icon: "user-nav-answer-icon",
+ is_show: 1,
+ name: "我的留言"
+ }
+ ]
+ },
+
+ onShow() {
+ wx.setNavigationBar({title: app.data.common_pages_title.user});
+ this.init();
+ },
+
+ init(e) {
+ var user = app.GetUserInfo(this, "init"),
+ self = this;
+ if (user != false) {
+ // 用户未绑定用户则转到登录页面
+ if ((user.mobile || null) == null) {
+ wx.confirm({
+ title: '温馨提示',
+ content: '绑定手机号码',
+ confirmButtonText: '确认',
+ cancelButtonText: '暂不',
+ success: (result) => {
+ if(result.confirm) {
+ wx.navigateTo({
+ url: "/pages/login/login?event_callback=init"
+ });
+ }
+ self.setData({
+ avatar: user.avatar || app.data.default_user_head_src,
+ nickname: user.nickname,
+ });
+ self.get_data();
+ },
+ });
+ } else {
+ self.get_data();
+ }
+ }
+ },
+
+ // 获取数据
+ get_data() {
+ wx.request({
+ url: app.get_request_url("Center", "User"),
+ method: "POST",
+ data: {},
+ dataType: "json",
+ header: { 'content-type': 'application/x-www-form-urlencoded' },
+ success: res => {
+ wx.stopPullDownRefresh();
+ if (res.data.code == 0) {
+ var data = res.data.data;
+
+ // 订单数量处理
+ var temp_user_order_status_list = this.data.user_order_status_list;
+ if ((data.user_order_status || null) != null && data.user_order_status.length > 0) {
+ for (var i in temp_user_order_status_list) {
+ for (var t in data.user_order_status) {
+ if (temp_user_order_status_list[i]['status'] == data.user_order_status[t]['status']) {
+ temp_user_order_status_list[i]['count'] = data.user_order_status[t]['count'];
+ break;
+ }
+ }
+ }
+ }
+
+ // 头部导航总数
+ var temp_head_nav_list = this.data.head_nav_list;
+ temp_head_nav_list[0]['count'] = ((data.user_order_count || 0) == 0) ? 0 : data.user_order_count;
+ temp_head_nav_list[1]['count'] = ((data.user_goods_favor_count || 0) == 0) ? 0 : data.user_goods_favor_count;
+ temp_head_nav_list[2]['count'] = ((data.user_goods_browse_count || 0) == 0) ? 0 : data.user_goods_browse_count;
+ temp_head_nav_list[3]['count'] = ((data.integral || 0) == 0) ? 0 : data.integral;
+
+ this.setData({
+ user_order_status_list: temp_user_order_status_list,
+ customer_service_tel: data.customer_service_tel || null,
+ common_user_center_notice: data.common_user_center_notice || null,
+ avatar: (data.avatar != null) ? data.avatar : ((this.data.avatar || null) == null ? app.data.default_user_head_src : this.data.avatar),
+ nickname: (data.nickname != null) ? data.nickname : this.data.nickname,
+ message_total: ((data.common_message_total || 0) == 0) ? 0 : data.common_message_total,
+ head_nav_list: temp_head_nav_list,
+ 'nav_lists[3].is_show': (data.common_app_is_enable_answer == 1) ? 1 : 0,
+ });
+ } else {
+ wx.showToast({
+ type: "fail",
+ content: res.data.msg
+ });
+ }
+ },
+ fail: () => {
+ wx.stopPullDownRefresh();
+ wx.showToast({
+ type: "fail",
+ content: "服务器请求出错"
+ });
+ }
+ });
+ },
+
+ // 清除缓存
+ clear_storage(e) {
+ wx.clearStorage()
+ wx.showToast({
+ type: "success",
+ content: "清除缓存成功"
+ });
+ },
+
+ // 客服电话
+ call_event() {
+ if(this.data.customer_service_tel == null)
+ {
+ wx.showToast({
+ type: "fail",
+ content: "客服电话有误"
+ });
+ } else {
+ wx.makePhoneCall({ number: this.data.customer_service_tel });
+ }
+ },
+
+ // 下拉刷新
+ onPullDownRefresh(e) {
+ this.init(e);
+ },
+
+ // 头像查看
+ preview_event() {
+ if(app.data.default_user_head_src != this.data.avatar)
+ {
+ wx.previewImage({
+ current: 0,
+ urls: [this.data.avatar]
+ });
+ }
+ },
+
+ // 头像加载错误
+ user_avatar_error(e) {
+ this.setData({avatar: app.data.default_user_head_src});
+ },
+});
diff --git a/public/appmini/old/wechat/pages/user/user.json b/public/appmini/old/wechat/pages/user/user.json
new file mode 100755
index 000000000..75a025c11
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user/user.json
@@ -0,0 +1,6 @@
+{
+ "enablePullDownRefresh": true,
+ "usingComponents": {
+ "badge": "mini-antui/es/badge/index"
+ }
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/user/user.wxml b/public/appmini/old/wechat/pages/user/user.wxml
new file mode 100755
index 000000000..f7ff088fe
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user/user.wxml
@@ -0,0 +1,71 @@
+
+
+
+
+ {{nickname}}
+
+
+
+
+
+
+ {{item.count}}
+ {{item.name}}
+
+
+
+
+
+
+
+
+ 消息
+ {{message_total}}
+
+
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
+
+ {{items.name}}
+
+
+
+
+
+
+
+
+ 清除缓存
+
+
+
+
+ 联系客服
+ {{customer_service_tel}}
+
+
+
+
+
+ {{common_user_center_notice}}
+
+
+
+
+
diff --git a/public/appmini/old/wechat/pages/user/user.wxss b/public/appmini/old/wechat/pages/user/user.wxss
new file mode 100755
index 000000000..152f108bf
--- /dev/null
+++ b/public/appmini/old/wechat/pages/user/user.wxss
@@ -0,0 +1,88 @@
+/* 头部 */
+.head-box{
+ padding-top: 30rpx;
+ font-size: 24rpx;
+}
+.head-item .avatar {
+ width: 160rpx;
+ height: 160rpx;
+ border-radius: 50%;
+}
+.head-item .item-name{
+ font-size: 30rpx;
+ margin-top: 10rpx;
+}
+.head-item .item-icon {
+ width: 30rpx;
+ margin-right: 20rpx;
+}
+
+/* 头部导航 */
+.head-nav {
+ padding: 5px 0;
+ background: rgba(0,0,0,0.1);
+ margin-top: 30rpx;
+}
+.head-nav-item {
+ width: 25%;
+ padding: 5rpx 0;
+}
+.head-nav-item view {
+ line-height: 38rpx;
+}
+.head-nav-item view, .message-nav text {
+ color: #ffd7d7;
+}
+.message-nav {
+ position: absolute;
+ top: 20rpx;
+ right: 20rpx;
+}
+.message-nav image {
+ width: 28rpx;
+ height: 28rpx;
+ vertical-align: middle;
+}
+.message-nav text {
+ margin-left: 5rpx;
+ font-size: 24rpx;
+}
+
+/* 导航列表 */
+.nav-box .nav-item{
+ height: 100rpx;
+ box-sizing: border-box;
+ padding: 30rpx 20rpx;
+}
+.nav-box .nav-item .item-icon{
+ width: 40rpx;
+ height: 40rpx;
+ vertical-align: middle;
+}
+.nav-box .nav-item .item-name{
+ margin-left: 20rpx;
+}
+.nav-box .nav-item .item-arrow{
+ width: 25rpx;
+}
+
+.items-list {
+ padding: 15rpx 0;
+}
+.items-list .items {
+ width: 25%;
+ position: relative;
+}
+.items-list .items .items-icon {
+ width: 60rpx;
+ height: 60rpx;
+ margin-bottom: 6rpx;
+}
+.items-list .items .am-badge {
+ position: absolute;
+ top: 0;
+ left: calc(50% + 30rpx);
+}
+
+
+.user-notice { margin-top: 20rpx; padding: 0 10rpx 20rpx 10rpx; }
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/web-view/web-view.js b/public/appmini/old/wechat/pages/web-view/web-view.js
new file mode 100755
index 000000000..b6405a1c8
--- /dev/null
+++ b/public/appmini/old/wechat/pages/web-view/web-view.js
@@ -0,0 +1,11 @@
+const app = getApp();
+Page({
+ data: {
+ web_url: null,
+ },
+ onLoad(option) {
+ this.setData({
+ web_url: option.url || null,
+ })
+ }
+});
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/web-view/web-view.json b/public/appmini/old/wechat/pages/web-view/web-view.json
new file mode 100755
index 000000000..e79bc9dcc
--- /dev/null
+++ b/public/appmini/old/wechat/pages/web-view/web-view.json
@@ -0,0 +1,4 @@
+{
+ "defaultTitle": "加载中...",
+ "enablePullDownRefresh": false
+}
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/web-view/web-view.wxml b/public/appmini/old/wechat/pages/web-view/web-view.wxml
new file mode 100755
index 000000000..042476b0f
--- /dev/null
+++ b/public/appmini/old/wechat/pages/web-view/web-view.wxml
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/public/appmini/old/wechat/pages/web-view/web-view.wxss b/public/appmini/old/wechat/pages/web-view/web-view.wxss
new file mode 100755
index 000000000..e69de29bb
diff --git a/public/appmini/old/wechat/project.config.json b/public/appmini/old/wechat/project.config.json
new file mode 100644
index 000000000..ebac65307
--- /dev/null
+++ b/public/appmini/old/wechat/project.config.json
@@ -0,0 +1,36 @@
+{
+ "description": "项目配置文件。",
+ "packOptions": {
+ "ignore": []
+ },
+ "setting": {
+ "urlCheck": true,
+ "es6": true,
+ "postcss": true,
+ "minified": true,
+ "newFeature": true
+ },
+ "compileType": "miniprogram",
+ "libVersion": "2.2.3",
+ "appid": "wxe49d1244fc01d820",
+ "projectname": "%E6%B5%8B%E8%AF%95",
+ "isGameTourist": false,
+ "condition": {
+ "search": {
+ "current": -1,
+ "list": []
+ },
+ "conversation": {
+ "current": -1,
+ "list": []
+ },
+ "game": {
+ "currentL": -1,
+ "list": []
+ },
+ "miniprogram": {
+ "current": -1,
+ "list": []
+ }
+ }
+}
\ No newline at end of file