lalala %!s(int64=6) %!d(string=hai) anos
pai
achega
fba8a39428

+ 2 - 0
mobile-code/src/b-config.js

@@ -0,0 +1,2 @@
+// 项目配置--由bat脚本变更
+export const ProjectName = 'business'

+ 1 - 1
mobile-code/src/m-manifest.json → mobile-code/src/b-manifest.json

@@ -121,7 +121,7 @@
             "port": 81,
             "proxy": {
                 "/api": {
-                    "target": "http://api.m.huaml.com",
+                    "target": "http://api.b.huaml.com",
                     "secure": false,
                     "changeOrigin": true,
                     "pathRewrite": {

+ 318 - 0
mobile-code/src/b-pages.json

@@ -0,0 +1,318 @@
+{
+	"pages": [
+		{
+			"path": "admin/home/workbench",
+			"style": {
+				"navigationBarTitleText": "工作台"
+			}
+		},
+		{
+			"path": "admin/home/order",
+			"style": {
+				"navigationBarTitleText": "订单"
+			}
+		},
+		{
+			"path": "admin/home/member",
+			"style": {
+				"navigationBarTitleText": "客户"
+			}
+		},
+		{
+			"path": "pages/common/redirect",
+			"style": {
+				"navigationBarTitleText": "加载中..."
+			}
+		},
+		{
+			"path": "pages/common/webview",
+			"style": {
+				"navigationBarBackgroundColor": "#ffffff",
+				"navigationBarTextStyle": "black"
+			}
+		}
+	],
+	"subPackages": [
+		{
+			"root": "admin/order",
+			"pages": [
+				{
+					"path": "detail",
+					"style": {
+						"navigationBarTitleText": "详情"
+					}
+				},
+				{
+					"path": "ship",
+					"style": {
+						"navigationBarTitleText": "发货"
+					}
+				},
+				{
+					"path": "fill-form",
+					"style": {
+						"navigationBarTitleText": "填写收花人"
+					}
+				}
+			]
+		},
+		{
+			"root": "admin/member",
+			"pages": [
+				{
+					"path": "add",
+					"style": {
+						"navigationBarTitleText": "添加客户"
+					}
+				},
+				{
+					"path": "detail",
+					"style": {
+						"navigationBarTitleText": "客户详情"
+					}
+				}
+			]
+		},
+		{
+			"root": "admin/interest",
+			"pages": [
+				{
+					"path": "invite",
+					"style": {
+						"navigationBarTitleText": "邀请列表"
+					}
+				},
+				{
+					"path": "my-invite",
+					"style": {
+						"navigationBarTitleText": "我的邀请"
+					}
+				},
+				{
+					"path": "setting",
+					"style": {
+						"navigationBarTitleText": "奖励设置"
+					}
+				}
+			]
+		},
+		{
+			"root": "admin/coupon",
+			"pages": [
+				{
+					"path": "list",
+					"style": {
+						"navigationBarTitleText": "优惠券"
+					}
+				}
+			]
+		},
+		{
+			"root": "admin/ad",
+			"pages": [
+				{
+					"path": "list",
+					"style": {
+						"navigationBarTitleText": "广告列表"
+					}
+				},
+				{
+					"path": "add",
+					"style": {
+						"navigationBarTitleText": "添加广告"
+					}
+				},
+				{
+					"path": "sel-goods",
+					"style": {
+						"navigationBarTitleText": "商品选择"
+					}
+				}
+			]
+		},
+		{
+			"root": "admin/staff",
+			"pages": [
+				{
+					"path": "list",
+					"style": {
+						"navigationBarTitleText": "员工管理"
+					}
+				},
+				{
+					"path": "add",
+					"style": {
+						"navigationBarTitleText": "添加员工"
+					}
+				},
+				{
+					"path": "sel-member",
+					"style": {
+						"navigationBarTitleText": "客户列表"
+					}
+				}
+			]
+		},
+		{
+			"root": "admin/setting",
+			"pages": [
+				{
+					"path": "list",
+					"style": {
+						"navigationBarTitleText": "设置"
+					}
+				},
+				{
+					"path": "wx-menu",
+					"style": {
+						"navigationBarTitleText": "微信菜单设置"
+					}
+				},
+				{
+					"path": "coupon",
+					"style": {
+						"navigationBarTitleText": "新人领券设置"
+					}
+				},
+				{
+					"path": "level",
+					"style": {
+						"navigationBarTitleText": "会员等级设置"
+					}
+				},
+				{
+					"path": "password",
+					"style": {
+						"navigationBarTitleText": "密码设置"
+					}
+				}
+			]
+		},
+		{
+			"root": "admin/goodsManage",
+			"pages": [
+				{
+					"path": "list",
+					"style": {
+						"navigationBarTitleText": "商品管理"
+					}
+				},
+				{
+					"path": "category",
+					"style": {
+						"navigationBarTitleText": "分类管理"
+					}
+				},
+				{
+					"path": "add",
+					"style": {
+						"navigationBarTitleText": "添加商品"
+					}
+				},
+				{
+					"path": "img-store",
+					"style": {
+						"navigationBarTitleText": "图库管理"
+					}
+				},
+				{
+					"path": "goods-name",
+					"style": {
+						"navigationBarTitleText": "填写商品信息"
+					}
+				},
+				{
+					"path": "freight",
+					"style": {
+						"navigationBarTitleText": "运费设置"
+					}
+				},
+				{
+					"path": "price-increase",
+					"style": {
+						"navigationBarTitleText": "节假日自动涨价"
+					}
+				}
+			]
+		},
+		{
+			"root": "admin/statistics",
+			"pages": [
+				{
+					"path": "index",
+					"style": {
+						"navigationBarTitleText": "数据统计"
+					}
+				}
+			]
+		},
+		{
+			"root": "admin/assets",
+			"pages": [
+				{
+					"path": "list",
+					"style": {
+						"navigationBarTitleText": "收入明细"
+					}
+				}
+			]
+		},
+		{
+			"root": "pages/chat",
+			"pages": [
+				{
+					"path": "index",
+					"style": {
+						"navigationBarTitleText": "客服",
+						"enablePullDownRefresh": true
+					}
+				}
+			]
+		},
+		{
+			"root": "admin/template",
+			"pages": [
+				{
+					"path": "index",
+					"style": {
+						"navigationBarTitleText": "选择模板"
+					}
+				}
+			]
+		}
+	],
+	"globalStyle": {
+		// #ifdef H5
+		"navigationStyle": "custom",
+		// #endif
+		"navigationBarBackgroundColor": "#fff",
+		"navigationBarTitleText": "花卉宝",
+		"navigationBarTextStyle": "black"
+	},
+	"tabBar": {
+		"color": "#C0C4CC",
+		"selectedColor": "#3385FF",
+		"borderStyle": "black",
+		"backgroundColor": "#ffffff",
+		"list": [{
+				"pagePath": "admin/home/workbench",
+				"iconPath": "static/images/admin/workbench-no.png",
+				"selectedIconPath": "static/images/admin/workbench-is.png",
+				"text": "工作台"
+			},
+			{
+				"pagePath": "admin/home/order",
+				"iconPath": "static/images/admin/order-no.png",
+				"selectedIconPath": "static/images/admin/order-is.png",
+				"text": "订单"
+			},
+			{
+				"pagePath": "admin/home/member",
+				"iconPath": "static/images/admin/member-no.png",
+				"selectedIconPath": "static/images/admin/member-is.png",
+				"text": "客户"
+			}
+		]
+	}
+}
+

+ 1 - 1
mobile-code/src/m-uni.scss → mobile-code/src/b-uni.scss

@@ -12,7 +12,7 @@ $imgUrl: 'https://wximg.meijiabang.com/hkds/miniapp/images/';
 
 // 所有样式为公共样式,已在全局引用可直接使用
 // 主色
-$mainColor: #FF2842;
+$mainColor: #3385FF;
 $mainColor1: #049E2C;
 $auxiliaryColor2: #ff6900;
 

+ 2 - 2
mobile-code/src/config.js

@@ -1,2 +1,2 @@
-// 项目配置--由bat脚本变更
-export const ProjectName = 'business'
+// 项目配置--由bat脚本自动变更
+export const ProjectName = 'mobile'

+ 0 - 2
mobile-code/src/m-config.js

@@ -1,2 +0,0 @@
-// 项目配置--由bat脚本自动变更
-export const ProjectName = 'mobile'

+ 0 - 203
mobile-code/src/m-pages.json

@@ -1,203 +0,0 @@
-{
-	"pages": [
-		{
-			"path": "pages/home/index",
-			"style": {
-				"navigationBarTitleText": "加载中..."
-			}
-		},
-		{
-			"path": "pages/home/category",
-			"style": {
-				"navigationBarTitleText": "分类"
-			}
-		},
-		{
-			"path": "pages/home/shop",
-			"style": {
-				"navigationBarTitleText": "门店"
-			}
-		},
-		{
-			"path": "pages/home/user",
-			"style": {
-				"navigationBarTitleText": "我的"
-			}
-		},
-		{
-			"path": "pages/common/redirect",
-			"style": {
-				"navigationBarTitleText": "加载中..."
-			}
-		},
-		{
-			"path": "pages/common/webview",
-			"style": {
-				"navigationBarBackgroundColor": "#ffffff",
-				"navigationBarTextStyle": "black"
-			}
-		}
-	],
-	"subPackages": [
-		{
-			"root": "pages/user",
-			"pages": [
-				{
-					"path": "register",
-					"style": {
-						"navigationBarTitleText": "注册"
-					}
-				},
-				{
-					"path": "password",
-					"style": {
-						"navigationBarTitleText": "修改密码"
-					}
-				}
-			]
-		},
-		{
-			"root": "pages/goods",
-			"pages": [
-				{
-					"path": "detail",
-					"style": {
-						"navigationBarTitleText": "详情"
-					}
-				}
-			]
-		},
-		{
-			"root": "pages/pay",
-			"pages": [
-				{
-					"path": "index",
-					"style": {
-						"navigationBarTitleText": "支付"
-					}
-				}
-			]
-		},
-		{
-			"root": "pages/callback",
-			"pages": [
-				{
-					"path": "index"
-				}
-			]
-		},
-		{
-			"root": "pages/coupon",
-			"pages": [
-				{
-					"path": "list",
-					"style": {
-						"navigationBarTitleText": "优惠券",
-						"enablePullDownRefresh": true
-					}
-				}
-			]
-		},
-		{
-			"root": "pages/order",
-			"pages": [
-				{
-					"path": "list",
-					"style": {
-						"navigationBarTitleText": "订单列表",
-						"enablePullDownRefresh": true
-					}
-				},
-				{
-					"path": "detail",
-					"style": {
-						"navigationBarTitleText": "订单列表"
-					}
-				},
-				{
-					"path": "buy",
-					"style": {
-						"navigationBarTitleText": "订单确认"
-					}
-				},
-				{
-					"path": "comment",
-					"style": {
-						"navigationBarTitleText": "评价"
-					}
-				}
-			]
-		},
-		{
-			"root": "pages/interest",
-			"pages": [
-				{
-					"path": "invite",
-					"style": {
-						"navigationBarTitleText": "邀请排行",
-						"enablePullDownRefresh": true
-					}
-				},
-				{
-					"path": "level",
-					"style": {
-						"navigationBarTitleText": "会员等级",
-						"enablePullDownRefresh": true
-					}
-				}
-			]
-		},
-		{
-			"root": "pages/chat",
-			"pages": [
-				{
-					"path": "index",
-					"style": {
-						"navigationBarTitleText": "客服",
-						"enablePullDownRefresh": true
-					}
-				}
-			]
-		}
-	],
-	"globalStyle": {
-		// #ifdef H5
-		"navigationStyle": "custom",
-		// #endif
-		"navigationBarBackgroundColor": "#fff",
-		"navigationBarTitleText": "花卉宝",
-		"navigationBarTextStyle": "black"
-	},
-	"tabBar": {
-		"color": "#C0C4CC",
-		"selectedColor": "#fa436a",
-		"borderStyle": "black",
-		"backgroundColor": "#ffffff",
-		"list": [{
-				"pagePath": "pages/home/index",
-				"iconPath": "static/images/common/home-no.png",
-				"selectedIconPath": "static/images/common/home-is.png",
-				"text": "首页"
-			},
-			{
-				"pagePath": "pages/home/category",
-				"iconPath": "static/images/common/category-no.png",
-				"selectedIconPath": "static/images/common/category-is.png",
-				"text": "分类"
-			},
-			{
-				"pagePath": "pages/home/shop",
-				"iconPath": "static/images/common/shop-no.png",
-				"selectedIconPath": "static/images/common/shop-is.png",
-				"text": "门店"
-			},
-			{
-				"pagePath": "pages/home/user",
-				"iconPath": "static/images/common/user-no.png",
-				"selectedIconPath": "static/images/common/user-is.png",
-				"text": "我的"
-			}
-		]
-	}
-}
-

+ 2 - 2
mobile-code/src/manifest.json

@@ -90,7 +90,7 @@
         "usingComponents" : true,
         "permission" : {
             "scope.userLocation" : {
-                "desc" : "请点击确定"
+                "desc" : "获取位置信息后为您提供个性化推荐"
             }
         }
     },
@@ -121,7 +121,7 @@
             "port": 81,
             "proxy": {
                 "/api": {
-                    "target": "http://api.b.huaml.com",
+                    "target": "http://api.m.huaml.com",
                     "secure": false,
                     "changeOrigin": true,
                     "pathRewrite": {

+ 62 - 177
mobile-code/src/pages.json

@@ -1,21 +1,27 @@
 {
 	"pages": [
 		{
-			"path": "admin/home/workbench",
+			"path": "pages/home/index",
 			"style": {
-				"navigationBarTitleText": "工作台"
+				"navigationBarTitleText": "加载中..."
+			}
+		},
+		{
+			"path": "pages/home/category",
+			"style": {
+				"navigationBarTitleText": "分类"
 			}
 		},
 		{
-			"path": "admin/home/order",
+			"path": "pages/home/shop",
 			"style": {
-				"navigationBarTitleText": "订单"
+				"navigationBarTitleText": "门店"
 			}
 		},
 		{
-			"path": "admin/home/member",
+			"path": "pages/home/user",
 			"style": {
-				"navigationBarTitleText": "客户"
+				"navigationBarTitleText": "我的"
 			}
 		},
 		{
@@ -34,225 +40,109 @@
 	],
 	"subPackages": [
 		{
-			"root": "admin/order",
+			"root": "pages/user",
 			"pages": [
 				{
-					"path": "detail",
+					"path": "register",
 					"style": {
-						"navigationBarTitleText": "详情"
+						"navigationBarTitleText": "注册"
 					}
 				},
 				{
-					"path": "ship",
-					"style": {
-						"navigationBarTitleText": "发货"
-					}
-				},
-				{
-					"path": "fill-form",
+					"path": "password",
 					"style": {
-						"navigationBarTitleText": "填写收花人"
+						"navigationBarTitleText": "修改密码"
 					}
 				}
 			]
 		},
 		{
-			"root": "admin/member",
+			"root": "pages/goods",
 			"pages": [
-				{
-					"path": "add",
-					"style": {
-						"navigationBarTitleText": "添加客户"
-					}
-				},
 				{
 					"path": "detail",
 					"style": {
-						"navigationBarTitleText": "客户详情"
-					}
-				}
-			]
-		},
-		{
-			"root": "admin/interest",
-			"pages": [
-				{
-					"path": "invite",
-					"style": {
-						"navigationBarTitleText": "邀请列表"
-					}
-				},
-				{
-					"path": "my-invite",
-					"style": {
-						"navigationBarTitleText": "我的邀请"
-					}
-				},
-				{
-					"path": "setting",
-					"style": {
-						"navigationBarTitleText": "奖励设置"
+						"navigationBarTitleText": "详情"
 					}
 				}
 			]
 		},
 		{
-			"root": "admin/coupon",
+			"root": "pages/pay",
 			"pages": [
 				{
-					"path": "list",
+					"path": "index",
 					"style": {
-						"navigationBarTitleText": "优惠券"
+						"navigationBarTitleText": "支付"
 					}
 				}
 			]
 		},
 		{
-			"root": "admin/ad",
+			"root": "pages/callback",
 			"pages": [
 				{
-					"path": "list",
-					"style": {
-						"navigationBarTitleText": "广告列表"
-					}
-				},
-				{
-					"path": "add",
-					"style": {
-						"navigationBarTitleText": "添加广告"
-					}
-				},
-				{
-					"path": "sel-goods",
-					"style": {
-						"navigationBarTitleText": "商品选择"
-					}
+					"path": "index"
 				}
 			]
 		},
 		{
-			"root": "admin/staff",
+			"root": "pages/coupon",
 			"pages": [
 				{
 					"path": "list",
 					"style": {
-						"navigationBarTitleText": "员工管理"
-					}
-				},
-				{
-					"path": "add",
-					"style": {
-						"navigationBarTitleText": "添加员工"
-					}
-				},
-				{
-					"path": "sel-member",
-					"style": {
-						"navigationBarTitleText": "客户列表"
+						"navigationBarTitleText": "优惠券",
+						"enablePullDownRefresh": true
 					}
 				}
 			]
 		},
 		{
-			"root": "admin/setting",
+			"root": "pages/order",
 			"pages": [
 				{
 					"path": "list",
 					"style": {
-						"navigationBarTitleText": "设置"
-					}
-				},
-				{
-					"path": "wx-menu",
-					"style": {
-						"navigationBarTitleText": "微信菜单设置"
+						"navigationBarTitleText": "订单列表",
+						"enablePullDownRefresh": true
 					}
 				},
 				{
-					"path": "coupon",
+					"path": "detail",
 					"style": {
-						"navigationBarTitleText": "新人领券设置"
+						"navigationBarTitleText": "订单列表"
 					}
 				},
 				{
-					"path": "level",
+					"path": "buy",
 					"style": {
-						"navigationBarTitleText": "会员等级设置"
+						"navigationBarTitleText": "订单确认"
 					}
 				},
 				{
-					"path": "password",
+					"path": "comment",
 					"style": {
-						"navigationBarTitleText": "密码设置"
+						"navigationBarTitleText": "评价"
 					}
 				}
 			]
 		},
 		{
-			"root": "admin/goodsManage",
+			"root": "pages/interest",
 			"pages": [
 				{
-					"path": "list",
-					"style": {
-						"navigationBarTitleText": "商品管理"
-					}
-				},
-				{
-					"path": "category",
-					"style": {
-						"navigationBarTitleText": "分类管理"
-					}
-				},
-				{
-					"path": "add",
-					"style": {
-						"navigationBarTitleText": "添加商品"
-					}
-				},
-				{
-					"path": "img-store",
-					"style": {
-						"navigationBarTitleText": "图库管理"
-					}
-				},
-				{
-					"path": "goods-name",
-					"style": {
-						"navigationBarTitleText": "填写商品信息"
-					}
-				},
-				{
-					"path": "freight",
+					"path": "invite",
 					"style": {
-						"navigationBarTitleText": "运费设置"
+						"navigationBarTitleText": "邀请排行",
+						"enablePullDownRefresh": true
 					}
 				},
 				{
-					"path": "price-increase",
-					"style": {
-						"navigationBarTitleText": "节假日自动涨价"
-					}
-				}
-			]
-		},
-		{
-			"root": "admin/statistics",
-			"pages": [
-				{
-					"path": "index",
-					"style": {
-						"navigationBarTitleText": "数据统计"
-					}
-				}
-			]
-		},
-		{
-			"root": "admin/assets",
-			"pages": [
-				{
-					"path": "list",
+					"path": "level",
 					"style": {
-						"navigationBarTitleText": "收入明细"
+						"navigationBarTitleText": "会员等级",
+						"enablePullDownRefresh": true
 					}
 				}
 			]
@@ -268,17 +158,6 @@
 					}
 				}
 			]
-		},
-		{
-			"root": "admin/template",
-			"pages": [
-				{
-					"path": "index",
-					"style": {
-						"navigationBarTitleText": "选择模板"
-					}
-				}
-			]
 		}
 	],
 	"globalStyle": {
@@ -291,26 +170,32 @@
 	},
 	"tabBar": {
 		"color": "#C0C4CC",
-		"selectedColor": "#3385FF",
+		"selectedColor": "#fa436a",
 		"borderStyle": "black",
 		"backgroundColor": "#ffffff",
 		"list": [{
-				"pagePath": "admin/home/workbench",
-				"iconPath": "static/images/admin/workbench-no.png",
-				"selectedIconPath": "static/images/admin/workbench-is.png",
-				"text": "工作台"
+				"pagePath": "pages/home/index",
+				"iconPath": "static/images/common/home-no.png",
+				"selectedIconPath": "static/images/common/home-is.png",
+				"text": "首页"
+			},
+			{
+				"pagePath": "pages/home/category",
+				"iconPath": "static/images/common/category-no.png",
+				"selectedIconPath": "static/images/common/category-is.png",
+				"text": "分类"
 			},
 			{
-				"pagePath": "admin/home/order",
-				"iconPath": "static/images/admin/order-no.png",
-				"selectedIconPath": "static/images/admin/order-is.png",
-				"text": "订单"
+				"pagePath": "pages/home/shop",
+				"iconPath": "static/images/common/shop-no.png",
+				"selectedIconPath": "static/images/common/shop-is.png",
+				"text": "门店"
 			},
 			{
-				"pagePath": "admin/home/member",
-				"iconPath": "static/images/admin/member-no.png",
-				"selectedIconPath": "static/images/admin/member-is.png",
-				"text": "客户"
+				"pagePath": "pages/home/user",
+				"iconPath": "static/images/common/user-no.png",
+				"selectedIconPath": "static/images/common/user-is.png",
+				"text": "我的"
 			}
 		]
 	}

+ 223 - 215
mobile-code/src/pages/pay/index.vue

@@ -4,10 +4,13 @@
 			<div class="tabs-wrap">充值</div>
 		</block>
 		<block v-else>
-			<app-tabs :tabs="tabs" :currentTab="tabIndex" :isFixed="true" :borderLeft="true" @change="tabChange" itemWidth="50%" />
+			<div class="tabs-wrap">付款</div>
 		</block>
+		<!-- <block v-else>
+			<app-tabs :tabs="tabs" :currentTab="tabIndex" :isFixed="true" :borderLeft="true" @change="tabChange" itemWidth="50%" />
+		</block>-->
 		<!-- 直接付款 -->
-		<block v-if="tabIndex == 0">
+		<!-- <block v-if="tabIndex == 0">
 			<div class="pay-wrap" v-if="!$util.isEmpty(orderShop)">
 				<div class="logo-wrap">
 					<div class="logo-img">
@@ -21,7 +24,6 @@
 						<span>账户余额 ¥</span>
 						<span class="app-size-30">{{ shopUser.userAsset.balance }}</span>
 					</div>
-					<!-- 按钮 -->
 					<div class="btn-wrap">
 						<button v-if="!$util.isEmpty(shopUser) && shopUser.userAsset.balance && shopUser.userAsset.balance != '0.00'" class="button-com red" @click="balancePayFn">余额支付</button>
 						<button class="button-com green" v-if="isWxBrowser()" @click="wexinPayFn">微信支付</button>
@@ -29,45 +31,50 @@
 					</div>
 				</div>
 			</div>
-		</block>
+		</block>-->
 		<!-- 我要配送 -->
-		<block v-else>
-			<div class="delivery-wrap" v-if="!$util.isEmpty(orderShop)">
-				<div class="shop-logo-wrap" v-if="!$util.isEmpty(orderShop)">
-					<div class="logo-img">
-						<img :src="orderShop.merchant.smallLogoUrl | default_img" alt mode="widthFix" />
-					</div>
-					<div class="app-size-30">{{ orderShop.merchant.merchantName }}</div>
+		<!-- <block v-else> -->
+		<div class="delivery-wrap" v-if="!$util.isEmpty(orderShop)">
+			<div class="shop-logo-wrap" v-if="!$util.isEmpty(orderShop)">
+				<div class="logo-img">
+					<img :src="orderShop.merchant.smallLogoUrl | default_img" alt mode="widthFix" />
 				</div>
-				<div class="module-com pay-input-wrap">
-					<pay-input-module :focus="inpFocus" :num="amount" @focusFn="focusFn" @blurFn="blurFn" @clickKey="clickKeyFn" />
-					<div class="balance" v-if="!$util.isEmpty(shopUser) && shopUser.userAsset.balance != '0.00'">
-						<span>账户余额 ¥</span>
-						<span class="app-size-30">{{ shopUser.userAsset.balance }}</span>
-					</div>
+				<div class="app-size-30">{{ orderShop.merchant.merchantName }}</div>
+			</div>
+			<div class="module-com pay-input-wrap">
+				<pay-input-module :focus="inpFocus" :num="amount" @focusFn="focusFn" @blurFn="blurFn" @clickKey="clickKeyFn" />
+				<div class="balance" v-if="!$util.isEmpty(shopUser) && shopUser.userAsset.balance != '0.00'">
+					<span>账户余额 ¥</span>
+					<span class="app-size-30">{{ shopUser.userAsset.balance }}</span>
 				</div>
+			</div>
+			<button class="button-com red" @click="tabIndex = tabIndex == 0 ? 1 : 0">{{ tabIndex == 0 ? '我要配送' : '无需配送' }}</button>
+			<block v-if="tabIndex == 1">
 				<app-delivery-module ref="appDelivery" />
-				<!-- 可选优惠 -->
-				<div class="module-com discount-wrap" v-if="!$util.isEmpty(shopUser) && shopUser.userAsset.member && shopUser.userAsset.getCouponNum">
-					<div class="module-tit">可选优惠</div>
-					<div class="module-det">
-						<app-coupon-sel ref="couponSel" :price="amount" :discountArr="['member', 'coupon']" />
-					</div>
+			</block>
+			<!-- 可选优惠 -->
+			<div class="module-com discount-wrap" v-if="!$util.isEmpty(shopUser) && shopUser.userAsset.member && shopUser.userAsset.getCouponNum">
+				<div class="module-tit">可选优惠</div>
+				<div class="module-det">
+					<app-coupon-sel ref="couponSel" :price="amount" :discountArr="['member', 'coupon']" />
 				</div>
+			</div>
 
-				<!-- 匿名派送 -->
+			<!-- 匿名派送 -->
+			<block v-if="tabIndex == 1">
 				<div class="none-name-delivery flex-center">
 					<checkbox class="ljd-checkbox" @change="anonymityChange"></checkbox>
 					<span class="none-name-text">匿名派送</span>
 				</div>
-				<!-- 按钮 -->
-				<div class="btn-wrap">
-					<button v-if="!$util.isEmpty(shopUser) && shopUser.userAsset.balance && shopUser.userAsset.balance != '0.00'" class="button-com red" @click="balancePayFn">余额支付</button>
-					<button class="button-com green" v-if="isWxBrowser()" @click="wexinPayFn">微信支付</button>
-					<button class="button-com red" v-else @click="aliPayFn">支付宝支付</button>
-				</div>
+			</block>
+			<!-- 按钮 -->
+			<div class="btn-wrap">
+				<button v-if="!$util.isEmpty(shopUser) && shopUser.userAsset.balance && shopUser.userAsset.balance != '0.00'" class="button-com red" @click="balancePayFn">余额支付</button>
+				<button class="button-com green" v-if="isWxBrowser()" @click="wexinPayFn">微信支付</button>
+				<button class="button-com red" v-else @click="aliPayFn">支付宝支付</button>
 			</div>
-		</block>
+		</div>
+		<!-- </block> -->
 		<!-- <button @click="_pay">提交</button> -->
 		<!-- 支付密码弹窗 -->
 		<modal-module :show="passwordModal" @cancel="modalCancel" @click="passwordModalClick" :maskClosable="false" title="支付密码" padding="30rpx 30rpx">
@@ -88,205 +95,204 @@
 </template>
 
 <script>
-import { mapGetters } from 'vuex'
-import AppTabs from '@/components/plugin/tabs'
-import PayInputModule from './components/pay-input'
-import AppDeliveryModule from '@/components/app-delivery'
-// import { getMiniAppUrl } from '@/utils/common'
-import wexinPay from '@/utils/pay/wxPay'
-import ModalModule from '@/components/plugin/modal'
-import AppCouponSel from '@/components/app-coupon-sel'
-import { isLogin } from '@/utils/util'
-import { isWxBrowser } from '@/utils/common'
-// api
-import { fastPay } from '@/api/pay'
-import { recharge } from '@/api/member'
-import { getShopUser } from '@/utils/auth'
-import { getOrderShop } from '@/utils/config'
-export default {
-	name: 'pay',
-	components: {
-		AppTabs,
-		PayInputModule,
-		AppDeliveryModule,
-		ModalModule,
-		AppCouponSel
-	},
-	data() {
-		return {
-			constant: this.$constant,
-			inpFocus: false,
-			// tab
-			tabIndex: 0,
-			tabs: [
-				{
-					name: '直接付款'
+	import { mapGetters } from 'vuex'
+	import AppTabs from '@/components/plugin/tabs'
+	import PayInputModule from './components/pay-input'
+	import AppDeliveryModule from '@/components/app-delivery'
+	// import { getMiniAppUrl } from '@/utils/common'
+	import wexinPay from '@/utils/pay/wxPay'
+	import ModalModule from '@/components/plugin/modal'
+	import AppCouponSel from '@/components/app-coupon-sel'
+	import { isLogin } from '@/utils/util'
+	import { isWxBrowser } from '@/utils/common'
+	// api
+	import { fastPay } from '@/api/pay'
+	import { recharge } from '@/api/member'
+	import { getShopUser } from '@/utils/auth'
+	import { getOrderShop } from '@/utils/config'
+	export default {
+		name: 'pay',
+		components: {
+			AppTabs,
+			PayInputModule,
+			AppDeliveryModule,
+			ModalModule,
+			AppCouponSel
+		},
+		data() {
+			return {
+				constant: this.$constant,
+				inpFocus: false,
+				// tab
+				tabIndex: 0,
+				tabs: [
+					{
+						name: '直接付款'
+					},
+					{
+						name: '我要配送'
+					}
+				],
+				// 初始form
+				amount: '',
+				form: {
+					payWay: 0 // 0微信 1支付宝 2余额
 				},
-				{
-					name: '我要配送'
+				// 支付相关 ============
+				aliPayHtml: '',
+				passwordModal: false,
+				modalForm: {
+					payPassword: ''
+				},
+				appendFrm: {
+					anonymity: '0', // 是否匿名 0不 1要
+					sendDistance: '', // 配送距离,根据腾讯js进行计算
+					// goodsId: '', // 【商城下单特有字段】商品id
+					// goodsStyleId: '', // 【商城下单特有字段】商品款式id
+					// goodsNum: '', // 【商城下单特有字段】商品数量
+					// couponId: '0', // 优惠券id,默认0没有使用优惠券
+					receiveLat: '', // 收花人纬度
+					receiveLong: '' // 收花人经度
 				}
-			],
-			// 初始form
-			amount: '',
-			form: {
-				payWay: 0 // 0微信 1支付宝 2余额
-			},
-			// 支付相关 ============
-			aliPayHtml: '',
-			passwordModal: false,
-			modalForm: {
-				payPassword: ''
-			},
-			appendFrm: {
-				anonymity: '0', // 是否匿名 0不 1要
-				sendDistance: '', // 配送距离,根据腾讯js进行计算
-				// goodsId: '', // 【商城下单特有字段】商品id
-				// goodsStyleId: '', // 【商城下单特有字段】商品款式id
-				// goodsNum: '', // 【商城下单特有字段】商品数量
-				// couponId: '0', // 优惠券id,默认0没有使用优惠券
-				receiveLat: '', // 收花人纬度
-				receiveLong: '' // 收花人经度
-			}
-		}
-	},
-	computed: {
-		...mapGetters({ orderShop: 'getOrderShop' }),
-		...mapGetters({ shopUser: 'getShopUser' })
-	},
-	onLoad(option) {
-		// this.option = this.$util.isEmpty(option) || {
-		// 	account: 12358,
-		// 	shopId: 15680
-		// }
-		this.specialInit()
-	},
-	mounted() {
-	},
-	methods: {
-		isWxBrowser: isWxBrowser,
-		specialInit() {
-			// this.$util.getCheckLogin().then(res => {})
-			if (this.option.pageType) {
-				this.tabIndex = parseInt(this.option.pageType)
-			}
-			getOrderShop().then(res => {
-				this.inpFocus = true
-			})
-			if (isLogin()) {
-				getShopUser()
 			}
 		},
-		_pay() {
-			if (!this.amount) {
-				this.$msg('请先输入金额!')
-				return false
-			}
-			let params = {}
-			let host = null
-			if (this.option.pageStatus == 'recharge') {
-				params = {
-					amount: this.amount
+		computed: {
+			...mapGetters({ orderShop: 'getOrderShop' }),
+			...mapGetters({ shopUser: 'getShopUser' })
+		},
+		onLoad(option) {
+			// this.option = this.$util.isEmpty(option) || {
+			// 	account: 12358,
+			// 	shopId: 15680
+			// }
+			this.specialInit()
+		},
+		mounted() {},
+		methods: {
+			isWxBrowser: isWxBrowser,
+			specialInit() {
+				// this.$util.getCheckLogin().then(res => {})
+				if (this.option.pageType) {
+					this.tabIndex = parseInt(this.option.pageType)
 				}
-				host = recharge
-			} else {
-				params = {
-					needSend: this.tabIndex == 0 ? '0' : '1',
-					prePrice: this.amount,
-					payWay: this.form.payWay
-					// sourceType: 1,
-					// shopId: 15680
+				getOrderShop().then(res => {
+					this.inpFocus = true
+				})
+				if (isLogin()) {
+					getShopUser()
 				}
-				if (this.tabIndex == 1) {
-					let deliveryForm = this.$refs.appDelivery.form ? this.$refs.appDelivery.form : {}
-					let deliveryRegion = this.$refs.appDelivery.region ? this.$refs.appDelivery.region : {}
+			},
+			_pay() {
+				if (!this.amount) {
+					this.$msg('请先输入金额!')
+					return false
+				}
+				let params = {}
+				let host = null
+				if (this.option.pageStatus == 'recharge') {
 					params = {
-						...params,
-						...deliveryForm,
-						...deliveryRegion
+						amount: this.amount
 					}
+					host = recharge
+				} else {
+					params = {
+						needSend: this.tabIndex == 0 ? '0' : '1',
+						prePrice: this.amount,
+						payWay: this.form.payWay
+						// sourceType: 1,
+						// shopId: 15680
+					}
+					if (this.tabIndex == 1) {
+						let deliveryForm = this.$refs.appDelivery.form ? this.$refs.appDelivery.form : {}
+						let deliveryRegion = this.$refs.appDelivery.region ? this.$refs.appDelivery.region : {}
+						params = {
+							...params,
+							...deliveryForm,
+							...deliveryRegion
+						}
+					}
+					host = fastPay
 				}
-				host = fastPay
-			}
-			host(params).then(res => {
-				if (this.form.payWay == 0) {
-					wexinPay(res.data, this.paySuccess, this.payFail)
-				} else if (this.form.payWay == 1) {
-					this.aliPayHtml = res
-					this.$nextTick(() => {
-						this.$refs.alipayWap.children[0].submit()
-					})
-					// location.href = res.data
-				}
-				// window.location.href = res.data.pay_button.mweb_url
-			})
-		},
-		// tab切换
-		tabChange(e) {
-			this.tabIndex = e.index
-			this.inpFocus = true
-		},
-		// 点击输入框
-		focusFn() {
-			this.inpFocus = true
-		},
-		// 失焦
-		blurFn() {
-			this.inpFocus = false
-		},
-		// 点击键盘
-		clickKeyFn(val) {
-			this.amount = val
-		},
-		// 支付宝支付
-		aliPayFn() {
-			this.form.payWay = 1
-			this._pay()
-		},
-		// 微信支付
-		wexinPayFn() {
-			this.form.payWay = 0
-			this._pay()
-		},
-		// 余额支付
-		balancePayFn() {
-			this.form.payWay = 2
-			this.passwordModal = true
-		},
-		passwordModalClick(e) {
-			if (e.index === 0) {
-				this.modalCancel()
-			} else {
+				host(params).then(res => {
+					if (this.form.payWay == 0) {
+						wexinPay(res.data, this.paySuccess, this.payFail)
+					} else if (this.form.payWay == 1) {
+						this.aliPayHtml = res
+						this.$nextTick(() => {
+							this.$refs.alipayWap.children[0].submit()
+						})
+						// location.href = res.data
+					}
+					// window.location.href = res.data.pay_button.mweb_url
+				})
+			},
+			// tab切换
+			tabChange(e) {
+				this.tabIndex = e.index
+				this.inpFocus = true
+			},
+			// 点击输入框
+			focusFn() {
+				this.inpFocus = true
+			},
+			// 失焦
+			blurFn() {
+				this.inpFocus = false
+			},
+			// 点击键盘
+			clickKeyFn(val) {
+				this.amount = val
+			},
+			// 支付宝支付
+			aliPayFn() {
+				this.form.payWay = 1
 				this._pay()
-			}
-		},
-		modalCancel() {
-			this.passwordModal = false
-			this.modalForm.payPassword = ''
-		},
-		// 支付成功
-		paySuccess() {
-			// alert('支付成功!')
-			this.$util.pageTo({
-				url: '/pages/callback/index',
-				type: 2,
-				query: {
-					pagestatus: 3,
-					...this.params
-					// orderSn: this.option.orderSn,
-					// payDiscountPrice: res.data.discountAmount
+			},
+			// 微信支付
+			wexinPayFn() {
+				this.form.payWay = 0
+				this._pay()
+			},
+			// 余额支付
+			balancePayFn() {
+				this.form.payWay = 2
+				this.passwordModal = true
+			},
+			passwordModalClick(e) {
+				if (e.index === 0) {
+					this.modalCancel()
+				} else {
+					this._pay()
 				}
-			})
-		},
-		payFail() {
-			alert('支付失败!')
+			},
+			modalCancel() {
+				this.passwordModal = false
+				this.modalForm.payPassword = ''
+			},
+			// 支付成功
+			paySuccess() {
+				// alert('支付成功!')
+				this.$util.pageTo({
+					url: '/pages/callback/index',
+					type: 2,
+					query: {
+						pagestatus: 3,
+						...this.params
+						// orderSn: this.option.orderSn,
+						// payDiscountPrice: res.data.discountAmount
+					}
+				})
+			},
+			payFail() {
+				alert('支付失败!')
+			}
 		}
 	}
-}
 </script>
 
 <style lang="scss">
 	.app-content {
-		min-height: 0;
+		// min-height: 0;
 		padding-top: 100px;
 		// padding-bottom: 120px;
 	}
@@ -382,8 +388,10 @@ export default {
 		}
 		// 匿名派送
 		.none-name-delivery {
-			padding-left: 30px;
-			margin-top: 40px;
+			// padding-left: 30px;
+			padding: 26px 30px;
+			// margin-top: 40px;
+			background-color: #fff;
 			.none-name-text {
 				margin-left: 14px;
 				color: $fontColor2;

+ 1 - 1
mobile-code/src/uni.scss

@@ -12,7 +12,7 @@ $imgUrl: 'https://wximg.meijiabang.com/hkds/miniapp/images/';
 
 // 所有样式为公共样式,已在全局引用可直接使用
 // 主色
-$mainColor: #3385FF;
+$mainColor: #FF2842;
 $mainColor1: #049E2C;
 $auxiliaryColor2: #ff6900;