Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
U
uni-pdtravel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
panyongping
uni-pdtravel
Commits
5ff7840d
Commit
5ff7840d
authored
Aug 09, 2021
by
zhoucong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
ca45e67b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
App.vue
App.vue
+3
-3
main.js.map
unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map
+1
-1
main.js
unpackage/dist/dev/mp-weixin/common/main.js
+5
-5
No files found.
App.vue
View file @
5ff7840d
...
...
@@ -6,12 +6,12 @@
//4.setStorageSync与setStorage的区别:如果后续的操作需要使用更新storage后保存的data,则使用setStorageSync使用异步性能更好,使用同步数据更安全
export
default
{
onLaunch
:
function
()
{
//初始化完成时触发(全局只触发一次
//
let openid=uni.getStorageSync("openid")
//
if(!openid){
let
openid
=
uni
.
getStorageSync
(
"openid"
)
if
(
!
openid
){
uni
.
navigateTo
({
url
:
"pages/vlog/vlogIndex/vlogIndex"
})
//
}
}
},
onShow
:
function
()
{
...
...
unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map
View file @
5ff7840d
{"version":3,"sources":["uni-app:///main.js","webpack:///C:/Users/admin/Desktop/zc/uni-pdtravel/App.vue?547a","webpack:///C:/Users/admin/Desktop/zc/uni-pdtravel/App.vue?9f11","uni-app:///App.vue","webpack:///C:/Users/admin/Desktop/zc/uni-pdtravel/App.vue?edf9","webpack:///C:/Users/admin/Desktop/zc/uni-pdtravel/App.vue?673d"],"names":["Vue","prototype","$request","request","use","uView","config","productionTip","App","mpType","app","$mount"],"mappings":";;;;;;;;;iDAAA,wCAAmB,iDAA4B;AAC/C;AACA;AACA;AACA,0D;;AAEAA,aAAIC,SAAJ,CAAcC,QAAd,GAAyBC,gBAAzB;AACAH,aAAII,GAAJ,CAAQC,gBAAR;;;AAGAL,aAAIM,MAAJ,CAAWC,aAAX,GAA2B,KAA3B;AACAC,aAAIC,MAAJ,GAAa,KAAb;AACA,IAAMC,GAAG,GAAG,IAAIV,YAAJ;AACLQ,YADK,EAAZ;;AAGA,UAAAE,GAAG,EAACC,MAAJ,G;;;;;;;;;;;;;;;;;;;;ACfA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACuD;AACL;AACc;;;AAGhE;AAC6J;AAC7J,gBAAgB,6KAAU;AAC1B,EAAE,yEAAM;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACe,gF;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAkkB,CAAgB,6mBAAG,EAAC,C;;;;;;;;;;;;ACCtlB;AACA;AACA;AACA;AACA;eACA;AACA;AACA;AACA;AACA;AACA,2CADA;;AAGA;AACA,GARA;AASA;;AAEA,GAXA;AAYA;;AAEA,GAdA,E;;;;;;;;;;;;ACNA;AAAA;AAAA;AAAA;AAA+iC,CAAgB,ujCAAG,EAAC,C;;;;;;;;;;ACAnkC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"common/main.js","sourcesContent":["import 'uni-pages';import '@dcloudio/uni-stat';import Vue from 'vue'\r\nimport App from './App'\r\nimport uView from 'uview-ui'\r\nimport request from 'common/request.js'\r\nimport \"./common/icon/iconfont.css\"\r\n\r\nVue.prototype.$request = request\r\nVue.use(uView)\r\n\r\n\r\nVue.config.productionTip = false\r\nApp.mpType = 'app'\r\nconst app = new Vue({\r\n ...App\r\n})\r\napp.$mount()","var render, staticRenderFns, recyclableRender, components\nvar renderjs\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"App.vue\"\nexport default component.exports","import mod from \"-!../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=script&lang=js&\"","<script>\n\t// 1、uni-app的页面生命周期仅在page页面有效,而单独封装的组件中【页面周期无效】,\n\t//但是Vue的生命周期依然有效 【Vue的生命周期在任何地方都是有效的,即你仍然可以在uni-app项目中使用Vue生命周期,但是不建议这么做】\n\t// 2、推荐使用uni-app里面的onLoad 代替 vue 里面的 created\n\t// 3、推荐使用uni-app里面的onReady 代替 vue 里面的 mounted\n\t//4.setStorageSync与setStorage的区别:如果后续的操作需要使用更新storage后保存的data,则使用setStorageSync使用异步性能更好,使用同步数据更安全\n\texport default {\n\t\tonLaunch: function() {//初始化完成时触发(全局只触发一次\r\n\t\t\t// let openid=uni.getStorageSync(\"openid\")\r\n\t\t\t// if(!openid){\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl: \"pages/vlog/vlogIndex/vlogIndex\"\r\n\t\t\t\t})\r\n\t\t\t// }\r\n\t\t},\n\t\tonShow: function() {\n\t\t\t\n\t\t},\n\t\tonHide: function() {\n\t\t\t\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\">\n@import \"uview-ui/index.scss\";\n/*\n1.页面背景颜色#f7f7f7\n2.分隔线颜色#DBDBDB\n3.正常字体颜色#333333\n4.灰色字体颜色#666666或者#999999\n5.主色调#3688FF\n6.正常字体大小28rpx,偏小一点的24rpx\n8.页面最外层与里面的第一层为padding:0 12px;\n9.css单位为rpx\n*/\npage{font-size:28rpx;color: #333333;background: #F7F7F7;height: 100%;}\nview,text,image{box-sizing:border-box;}\n.btn{background:linear-gradient(132deg, #ED400C 0%, #FB862C 100%);display: inline-block;color: #FFFFFF;font-size:28rpx;border-radius:8rpx;text-align: center;}\n</style>\n","import mod from \"-!../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1628473484907\n var cssReload = require(\"C:/Users/admin/Desktop/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["uni-app:///main.js",null,"webpack:///C:/Users/admin/Desktop/zc/uni-pdtravel/App.vue?9f11","uni-app:///App.vue","webpack:///C:/Users/admin/Desktop/zc/uni-pdtravel/App.vue?edf9","webpack:///C:/Users/admin/Desktop/zc/uni-pdtravel/App.vue?673d"],"names":["Vue","prototype","$request","request","use","uView","config","productionTip","App","mpType","app","$mount"],"mappings":";;;;;;;;;iDAAA,wCAAmB,iDAA4B;AAC/C;AACA;AACA;AACA,0D;;AAEAA,aAAIC,SAAJ,CAAcC,QAAd,GAAyBC,gBAAzB;AACAH,aAAII,GAAJ,CAAQC,gBAAR;;;AAGAL,aAAIM,MAAJ,CAAWC,aAAX,GAA2B,KAA3B;AACAC,aAAIC,MAAJ,GAAa,KAAb;AACA,IAAMC,GAAG,GAAG,IAAIV,YAAJ;AACLQ,YADK,EAAZ;;AAGA,UAAAE,GAAG,EAACC,MAAJ,G;;;;;;;;;;;;;;;;;;;;ACfA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACuD;AACL;AACc;;;AAGhE;AAC6J;AAC7J,gBAAgB,6KAAU;AAC1B,EAAE,yEAAM;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACe,gF;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAkkB,CAAgB,6mBAAG,EAAC,C;;;;;;;;;;;;ACCtlB;AACA;AACA;AACA;AACA;eACA;AACA;AACA;AACA;AACA;AACA,6CADA;;AAGA;AACA,GARA;AASA;;AAEA,GAXA;AAYA;;AAEA,GAdA,E;;;;;;;;;;;;ACNA;AAAA;AAAA;AAAA;AAA+iC,CAAgB,ujCAAG,EAAC,C;;;;;;;;;;ACAnkC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"common/main.js","sourcesContent":["import 'uni-pages';import '@dcloudio/uni-stat';import Vue from 'vue'\r\nimport App from './App'\r\nimport uView from 'uview-ui'\r\nimport request from 'common/request.js'\r\nimport \"./common/icon/iconfont.css\"\r\n\r\nVue.prototype.$request = request\r\nVue.use(uView)\r\n\r\n\r\nVue.config.productionTip = false\r\nApp.mpType = 'app'\r\nconst app = new Vue({\r\n ...App\r\n})\r\napp.$mount()","var render, staticRenderFns, recyclableRender, components\nvar renderjs\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"App.vue\"\nexport default component.exports","import mod from \"-!../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=script&lang=js&\"","<script>\n\t// 1、uni-app的页面生命周期仅在page页面有效,而单独封装的组件中【页面周期无效】,\n\t//但是Vue的生命周期依然有效 【Vue的生命周期在任何地方都是有效的,即你仍然可以在uni-app项目中使用Vue生命周期,但是不建议这么做】\n\t// 2、推荐使用uni-app里面的onLoad 代替 vue 里面的 created\n\t// 3、推荐使用uni-app里面的onReady 代替 vue 里面的 mounted\n\t//4.setStorageSync与setStorage的区别:如果后续的操作需要使用更新storage后保存的data,则使用setStorageSync使用异步性能更好,使用同步数据更安全\n\texport default {\n\t\tonLaunch: function() {//初始化完成时触发(全局只触发一次\r\n\t\t\tlet openid=uni.getStorageSync(\"openid\")\r\n\t\t\tif(!openid){\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl: \"pages/vlog/vlogIndex/vlogIndex\"\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t},\n\t\tonShow: function() {\n\t\t\t\n\t\t},\n\t\tonHide: function() {\n\t\t\t\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\">\n@import \"uview-ui/index.scss\";\n/*\n1.页面背景颜色#f7f7f7\n2.分隔线颜色#DBDBDB\n3.正常字体颜色#333333\n4.灰色字体颜色#666666或者#999999\n5.主色调#3688FF\n6.正常字体大小28rpx,偏小一点的24rpx\n8.页面最外层与里面的第一层为padding:0 12px;\n9.css单位为rpx\n*/\npage{font-size:28rpx;color: #333333;background: #F7F7F7;height: 100%;}\nview,text,image{box-sizing:border-box;}\n.btn{background:linear-gradient(132deg, #ED400C 0%, #FB862C 100%);display: inline-block;color: #FFFFFF;font-size:28rpx;border-radius:8rpx;text-align: center;}\n</style>\n","import mod from \"-!../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1628491968190\n var cssReload = require(\"C:/Users/admin/Desktop/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}
\ No newline at end of file
unpackage/dist/dev/mp-weixin/common/main.js
View file @
5ff7840d
...
...
@@ -104,12 +104,12 @@ __webpack_require__.r(__webpack_exports__);
//4.setStorageSync与setStorage的区别:如果后续的操作需要使用更新storage后保存的data,则使用setStorageSync使用异步性能更好,使用同步数据更安全
var
_default
=
{
onLaunch
:
function
onLaunch
()
{
//初始化完成时触发(全局只触发一次
// let openid=uni.getStorageSync("openid")
// if(!openid)
{
var
openid
=
uni
.
getStorageSync
(
"openid"
);
if
(
!
openid
)
{
uni
.
navigateTo
({
url
:
"pages/vlog/vlogIndex/vlogIndex"
});
//
}
}
},
onShow
:
function
onShow
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment