diff --git a/main.js b/main.js index 4f8e24f..99677a0 100644 --- a/main.js +++ b/main.js @@ -62,7 +62,7 @@ Vue.prototype.reqByToken = (url, params, cb, method) => { cb(r.data.data) } else if (r.data.status === 2) { uni.navigateTo({ - url: '/pages/login/index' + url: '/package/pages/login/index' }) return false } else { diff --git a/manifest.json b/manifest.json index 1f786a3..fa7f975 100644 --- a/manifest.json +++ b/manifest.json @@ -59,7 +59,10 @@ "scope.userLocation" : { "desc" : "提供LBS服务" } - } + }, + "optimization":{ + "subPackages":true + } }, "mp-alipay" : { "usingComponents" : true diff --git a/pages/applyReg/applyReg.vue b/package/pages/applyReg/applyReg.vue similarity index 100% rename from pages/applyReg/applyReg.vue rename to package/pages/applyReg/applyReg.vue diff --git a/pages/buyMember/buyMember.vue b/package/pages/buyMember/buyMember.vue similarity index 82% rename from pages/buyMember/buyMember.vue rename to package/pages/buyMember/buyMember.vue index 8f1d671..2595915 100644 --- a/pages/buyMember/buyMember.vue +++ b/package/pages/buyMember/buyMember.vue @@ -38,6 +38,7 @@ - - diff --git a/static/memberBanner.jpg b/package/static/memberBanner.jpg similarity index 100% rename from static/memberBanner.jpg rename to package/static/memberBanner.jpg diff --git a/pages.json b/pages.json index 39f5e91..e154af5 100644 --- a/pages.json +++ b/pages.json @@ -1,29 +1,13 @@ { "pages": [ - { - "path": "pages/member/member", - "style": { - "navigationBarTitleText": "加入会员", - "navigationBarBackgroundColor":"#fff", - "navigationBarTextStyle": "black" - - } - }, - { - "path": "pages/applyReg/applyReg", - "style": { - "navigationBarTitleText": "推广人员注册", - "navigationBarBackgroundColor":"#fff", - "navigationBarTextStyle": "black" - } - }, - { - "path": "pages/login/index", - "style": { - "navigationBarTitleText": "登录授权", - "navigationBarBackgroundColor":"#fff", - "navigationBarTextStyle": "black" - } + { + "path": "pages/member/member", + "style": { + "navigationBarTitleText": "加入会员", + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle": "black" + + } }, { "path": "pages/active/active", @@ -32,15 +16,6 @@ "navigationBarBackgroundColor":"#FF578A", "navigationBarTextStyle": "white" - } - }, - { - "path": "pages/buyMember/buyMember", - "style": { - "navigationBarTitleText": "购买会员", - "navigationBarBackgroundColor":"#fff", - "navigationBarTextStyle": "black" - } }, @@ -237,7 +212,38 @@ } } - ], + ], + "subPackages": [{ + "root" : "package", + "pages":[ + { + "path": "pages/applyReg/applyReg", + "style": { + "navigationBarTitleText": "推广人员注册", + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle": "black" + } + }, + { + "path": "pages/login/index", + "style": { + "navigationBarTitleText": "登录授权", + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle": "black" + } + }, + + { + "path": "pages/buyMember/buyMember", + "style": { + "navigationBarTitleText": "购买会员", + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle": "black" + + } + } + ] + }], "globalStyle": { "navigationBarTextStyle": "black", "navigationBarTitleText": "优孕课堂", diff --git a/pages/member/member.vue b/pages/member/member.vue index ed692f3..8f676f2 100644 --- a/pages/member/member.vue +++ b/pages/member/member.vue @@ -1,13 +1,19 @@ @@ -234,15 +321,18 @@ width: 100%; height: 100vh; background: rgba(0, 0, 0, 0.5); - padding-top: 13vh; + // padding-top: 13vh; box-sizing: border-box; position: relative; } .shareCon { - width: 500rpx; - margin: 0 auto; - position: relative; + // width: 500rpx; + // margin: 0 auto; + //position: absolute; + //top: 45%; + //left: 50%; + // transform: translate(-50%, -50%); .code { width: 300rpx; diff --git a/project.config.json b/project.config.json new file mode 100644 index 0000000..a05b366 --- /dev/null +++ b/project.config.json @@ -0,0 +1,67 @@ +{ + "description": "项目配置文件", + "packOptions": { + "ignore": [] + }, + "setting": { + "bundle": false, + "userConfirmedBundleSwitch": false, + "urlCheck": true, + "scopeDataCheck": false, + "coverView": true, + "es6": true, + "postcss": true, + "compileHotReLoad": false, + "preloadBackgroundData": false, + "minified": true, + "autoAudits": false, + "newFeature": false, + "uglifyFileName": false, + "uploadWithSourceMap": true, + "useIsolateContext": true, + "nodeModules": false, + "enhance": true, + "useMultiFrameRuntime": true, + "useApiHook": true, + "useApiHostProcess": true, + "showShadowRootInWxmlPanel": true, + "packNpmManually": false, + "enableEngineNative": false, + "packNpmRelationList": [], + "minifyWXSS": true, + "showES6CompileOption": false + }, + "compileType": "miniprogram", + "libVersion": "2.19.0", + "appid": "wx9b4762770771d98a", + "projectname": "miniprogram-1", + "debugOptions": { + "hidedInDevtools": [] + }, + "scripts": {}, + "staticServerOptions": { + "baseURL": "", + "servePath": "" + }, + "isGameTourist": false, + "condition": { + "search": { + "list": [] + }, + "conversation": { + "list": [] + }, + "game": { + "list": [] + }, + "plugin": { + "list": [] + }, + "gamePlugin": { + "list": [] + }, + "miniprogram": { + "list": [] + } + } +} \ No newline at end of file diff --git a/static/1_01.jpg b/static/1_01.jpg deleted file mode 100644 index b72ecb0..0000000 Binary files a/static/1_01.jpg and /dev/null differ diff --git a/static/1_02.jpg b/static/1_02.jpg deleted file mode 100644 index f899d5e..0000000 Binary files a/static/1_02.jpg and /dev/null differ diff --git a/static/690x400.jpg b/static/690x400.jpg new file mode 100644 index 0000000..a16d8d0 Binary files /dev/null and b/static/690x400.jpg differ diff --git a/static/690x400.png b/static/690x400.png deleted file mode 100644 index ae9dea8..0000000 Binary files a/static/690x400.png and /dev/null differ diff --git a/static/750x500.jpg b/static/750x500.jpg new file mode 100644 index 0000000..1fac9e7 Binary files /dev/null and b/static/750x500.jpg differ diff --git a/static/750x500.png b/static/750x500.png deleted file mode 100644 index 1a2dfcc..0000000 Binary files a/static/750x500.png and /dev/null differ diff --git a/static/banner@3x.jpg b/static/banner@3x.jpg new file mode 100644 index 0000000..96fb583 Binary files /dev/null and b/static/banner@3x.jpg differ diff --git a/static/banner@3x.png b/static/banner@3x.png deleted file mode 100644 index 1116411..0000000 Binary files a/static/banner@3x.png and /dev/null differ diff --git a/static/bg_haibao@2x.jpg b/static/bg_haibao@2x.jpg new file mode 100644 index 0000000..7836078 Binary files /dev/null and b/static/bg_haibao@2x.jpg differ diff --git a/static/bg_haibao@2x.png b/static/bg_haibao@2x.png deleted file mode 100644 index e75a63e..0000000 Binary files a/static/bg_haibao@2x.png and /dev/null differ diff --git a/static/logo.jpg b/static/logo.jpg new file mode 100644 index 0000000..ca43b6b Binary files /dev/null and b/static/logo.jpg differ diff --git a/static/member_01.jpg b/static/member_01.jpg new file mode 100644 index 0000000..bbcd4ca Binary files /dev/null and b/static/member_01.jpg differ diff --git a/static/member_02.jpg b/static/member_02.jpg new file mode 100644 index 0000000..1f8fe3d Binary files /dev/null and b/static/member_02.jpg differ diff --git a/static/member_03.jpg b/static/member_03.jpg new file mode 100644 index 0000000..3d92f36 Binary files /dev/null and b/static/member_03.jpg differ diff --git a/static/member_04.jpg b/static/member_04.jpg new file mode 100644 index 0000000..9a11842 Binary files /dev/null and b/static/member_04.jpg differ diff --git a/static/shareBg.png b/static/shareBg.png new file mode 100644 index 0000000..2c15983 Binary files /dev/null and b/static/shareBg.png differ diff --git a/utils/weixin.js b/utils/weixin.js index e783555..31524b0 100644 --- a/utils/weixin.js +++ b/utils/weixin.js @@ -26,7 +26,7 @@ export const weixin = { const user_info1 = result.data.data.user_info user_info1.openid = user_info1.wechat_openid uni.setStorageSync(user_info_key, user_info1) - cb(result.data.data.user_info) + cb(user_info1) } }); }