diff --git a/logo-back.png b/logo-back.png new file mode 100644 index 0000000..43a23bc Binary files /dev/null and b/logo-back.png differ diff --git a/logo.png b/logo.png index 43a23bc..a2247a8 100644 Binary files a/logo.png and b/logo.png differ diff --git a/xlcs-user/common/http.api.js b/xlcs-user/common/http.api.js index 050c8f7..a2457b7 100644 --- a/xlcs-user/common/http.api.js +++ b/xlcs-user/common/http.api.js @@ -24,10 +24,17 @@ const post_submit_order = '/order/auth/submitOrder' // 生成订单 const get_order_info = '/order/auth/getOrderInfoById' // 订单详情 const get_wx_login = '/user/weixin/wxLogin' // 微信用户登陆 const post_update_user = '/user/weixin/auth/updateUser' // 更新用户信息 -const get_weixin_payment = '/payment/weixin/createJsapi' // 获取微信支付信息 const get_find_user_order = '/order/auth/findUserOrderPage' // 获取用户订单信息 +const get_weixin_payment = '/payment/weixin/createJsapi' // 获取微信支付信息 const get_order_status = '/payment/weixin/queryPayStatus' // 获取订单状态 +// 后续需求 +const get_account_login = '/user/h5/login' // 用户登陆 +const post_register = '/user/h5/register' // 用户注册 +const post_h5_update_user = '/user/h5/auth/updateUser' // 更新用户信息 +const get_alipay_payment = '/payment/alipay/createJsapi' // 获取支付宝支付信息 +const get_order_alipay_status = '/payment/alipay/queryPayStatus' // 获取订单状态 + const install = (Vue, vm) => { const limit = 10; const page = 1 @@ -122,6 +129,12 @@ const install = (Vue, vm) => { const getWxLogin = (o) => vm.$u.get(get_wx_login + `/${o.code}`, { showLoading: false }) + // 账号密码登登录 + const getAccountLogin = (o) => vm.$u.post(get_account_login, o) + + + const postRegister = (o) => vm.$u.post(post_register, o) + // '/user/h5/register' // 用户注册 // 更新用户信息 const postUpdateUser = (o) => vm.$u.post(post_update_user, { ...o, @@ -156,6 +169,8 @@ const install = (Vue, vm) => { getOrderInfo, getWxPayment, getWxLogin, + getAccountLogin, + postRegister, postUpdateUser, getFindUserOrder, getOrderStatus diff --git a/xlcs-user/common/http.interceptor.js b/xlcs-user/common/http.interceptor.js index eab7a38..1bb22c7 100644 --- a/xlcs-user/common/http.interceptor.js +++ b/xlcs-user/common/http.interceptor.js @@ -1,6 +1,8 @@ const install = (Vue, vm) => { Vue.prototype.$u.http.setConfig({ - baseUrl: 'http://127.0.0.1:8200/api', + baseUrl: 'http://192.168.31.67:8200/api', + // baseUrl: 'http://127.0.0.1:8206/api', + // baseUrl: 'http://152.136.42.114:8200/api', loadingText: '请求中...', // 请求loading中的文字提示 loadingTime: 800, // 在此时间内,请求还没回来的话,就显示加载中动画,单位ms loadingMask: true, // 展示loading的时候,是否给一个透明的蒙层,防止触摸穿透 diff --git a/xlcs-user/manifest.json b/xlcs-user/manifest.json index 26663e8..f75fd12 100644 --- a/xlcs-user/manifest.json +++ b/xlcs-user/manifest.json @@ -1,5 +1,5 @@ { - "name" : "xlcs-user", + "name": "小鹿超市", "appid" : "__UNI__719160A", "description" : "", "versionName" : "1.0.0", @@ -17,7 +17,9 @@ "delay" : 0 }, /* 模块配置 */ - "modules" : {}, + "modules": { + "Payment": {} + }, /* 应用发布信息 */ "distribute" : { /* android打包配置 */ @@ -41,9 +43,57 @@ ] }, /* ios打包配置 */ - "ios" : {}, + "ios": { + "dSYMs": false + }, /* SDK配置 */ - "sdkConfigs" : {} + "sdkConfigs": { + "ad": {}, + "oauth": {}, + "payment": { + "alipay": { + "__platform__": [ + "ios", + "android" + ] + } + } + }, + "icons": { + "android": { + "hdpi": "unpackage/res/icons/72x72.png", + "xhdpi": "unpackage/res/icons/96x96.png", + "xxhdpi": "unpackage/res/icons/144x144.png", + "xxxhdpi": "unpackage/res/icons/192x192.png" + }, + "ios": { + "appstore": "unpackage/res/icons/1024x1024.png", + "ipad": { + "app": "unpackage/res/icons/76x76.png", + "app@2x": "unpackage/res/icons/152x152.png", + "notification": "unpackage/res/icons/20x20.png", + "notification@2x": "unpackage/res/icons/40x40.png", + "proapp@2x": "unpackage/res/icons/167x167.png", + "settings": "unpackage/res/icons/29x29.png", + "settings@2x": "unpackage/res/icons/58x58.png", + "spotlight": "unpackage/res/icons/40x40.png", + "spotlight@2x": "unpackage/res/icons/80x80.png" + }, + "iphone": { + "app@2x": "unpackage/res/icons/120x120.png", + "app@3x": "unpackage/res/icons/180x180.png", + "notification@2x": "unpackage/res/icons/40x40.png", + "notification@3x": "unpackage/res/icons/60x60.png", + "settings@2x": "unpackage/res/icons/58x58.png", + "settings@3x": "unpackage/res/icons/87x87.png", + "spotlight@2x": "unpackage/res/icons/80x80.png", + "spotlight@3x": "unpackage/res/icons/120x120.png" + } + } + } + }, + "uniStatistics": { + "enable": true } }, /* 快应用特有相关 */ @@ -62,6 +112,9 @@ "scope.userLocation" : { "desc" : "获取地理位置" } + }, + "uniStatistics": { + "enable": true } }, "mp-alipay" : { @@ -74,7 +127,8 @@ "usingComponents" : true }, "uniStatistics" : { - "enable" : false + "enable": false, + "version": "2" }, "vueVersion" : "2" } diff --git a/xlcs-user/pages.json b/xlcs-user/pages.json index a3d5be5..be90909 100644 --- a/xlcs-user/pages.json +++ b/xlcs-user/pages.json @@ -56,6 +56,20 @@ "navigationBarTitleText": "", "enablePullDownRefresh": false } + }, + { + "path": "pages/loginh5/loginh5", + "style": { + "navigationBarTitleText": "登录页", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/register/register", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } } ], "globalStyle": { @@ -97,25 +111,24 @@ ] }, "subPackages": [ - { - "root": "pagesLocation", - "pages": [ - { - "path": "myPickUpLocation/myPickUpLocation", - "style": { - "navigationBarTitleText": "我的提货点", - "enablePullDownRefresh": false - } - }, - { - "path": "choosePickUpLocation/choosePickUpLocation", - "style": { - "navigationBarTitleText": "选择其它提货点", - "enablePullDownRefresh": false - } - } - ] - }, + // { + // "root": "pagesLocation", + // "pages": [{ + // "path": "myPickUpLocation/myPickUpLocation", + // "style": { + // "navigationBarTitleText": "我的提货点", + // "enablePullDownRefresh": false + // } + // }, + // { + // "path": "choosePickUpLocation/choosePickUpLocation", + // "style": { + // "navigationBarTitleText": "选择其它提货点", + // "enablePullDownRefresh": false + // } + // } + // ] + // }, { "root": "pagesOrder", "pages": [ diff --git a/xlcs-user/pages/index/index.vue b/xlcs-user/pages/index/index.vue index 3dc3c6b..83bf25d 100644 --- a/xlcs-user/pages/index/index.vue +++ b/xlcs-user/pages/index/index.vue @@ -1,16 +1,16 @@