Commit 29cd5170 authored by miko's avatar miko

aa

parent 5759fb9f
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ProjectTasksOptions"> <component name="ProjectTasksOptions">
<TaskOptions isEnabled="true"> <TaskOptions isEnabled="false">
<option name="arguments" value="-i &quot;&quot; s/&quot;\ rpx&quot;/rpx/g $FilePath$" /> <option name="arguments" value="-i &quot;&quot; s/&quot;\ rpx&quot;/rpx/g $FilePath$" />
<option name="checkSyntaxErrors" value="true" /> <option name="checkSyntaxErrors" value="true" />
<option name="description" /> <option name="description" />
......
{ {
"description": "A WePY project", "description": "A WePY project",
"setting": { "setting": {
"urlCheck": true, "urlCheck": false,
"es6": false, "es6": true,
"postcss": false, "postcss": false,
"minified": false, "minified": false,
"newFeature": true, "newFeature": true,
"coverView": true, "coverView": true,
"autoAudits": false, "nodeModules": true,
"showShadowRootInWxmlPanel": true, "autoAudits": false,
"scopeDataCheck": false, "showShadowRootInWxmlPanel": true,
"checkInvalidKey": true, "scopeDataCheck": false,
"checkSiteMap": true, "checkInvalidKey": true,
"uploadWithSourceMap": true, "checkSiteMap": true,
"babelSetting": { "uploadWithSourceMap": true,
"ignore": [], "compileHotReLoad": false,
"disablePlugins": [], "useMultiFrameRuntime": false,
"outputPath": "" "useApiHook": true,
}, "babelSetting": {
"nodeModules": true "ignore": [],
}, "disablePlugins": [],
"compileType": "miniprogram", "outputPath": ""
"appid": "wx5cda879d33846e26", },
"projectname": "mpshaodai", "useIsolateContext": true,
"miniprogramRoot": "weapp/", "useCompilerModule": false,
"simulatorType": "wechat", "userConfirmedUseCompilerModuleSwitch": false,
"simulatorPluginLibVersion": {}, "packNpmManually": false,
"condition": {} "packNpmRelationList": [],
"minifyWXSS": true
},
"compileType": "miniprogram",
"appid": "wx5cda879d33846e26",
"projectname": "mpshaodai",
"miniprogramRoot": "weapp/",
"simulatorType": "wechat",
"simulatorPluginLibVersion": {},
"condition": {}
} }
\ No newline at end of file
...@@ -12,9 +12,13 @@ ...@@ -12,9 +12,13 @@
height: 100%; height: 100%;
} }
.pc{ .pc{
background: #FE991B!important; background: #FAC135!important;
} }
.sc{
background: #0468C3!important;
}
.mytabbar { .mytabbar {
--tabbar-item-font-size: 32rpx; --tabbar-item-font-size: 32rpx;
//--tabbar-item-icon-size:61px; //--tabbar-item-icon-size:61px;
...@@ -31,13 +35,14 @@ wepy.use(vuex); ...@@ -31,13 +35,14 @@ wepy.use(vuex);
wepy.app({ wepy.app({
hooks: { hooks: {
// App 级别 hook,对整个 App 生效 // App 级别 hook,对整个 App 生效
// 同时存在 Page hook 和 App hook 时,优先执行 Page hook,返回值再交由 App hook 处 // 同时存在 Page hook 和 App hook 时,优先执行 Page hook,返回值再交由 App hook 处
'before-setData': function (dirty) { // 'before-setData': function (dirty) {
console.log('setData dirty: ', dirty); // console.log('setData dirty: ', dirty);
return dirty; // return dirty;
} // }
}, },
globalData: { globalData: {
userInfo: null userInfo: null
...@@ -46,8 +51,6 @@ wepy.app({ ...@@ -46,8 +51,6 @@ wepy.app({
onLaunch() { onLaunch() {
this.testAsync(); this.testAsync();
eventHub.$on('app-launch', (...args) => { eventHub.$on('app-launch', (...args) => {
console.log('app-launch event emitted, the params are:');
console.log(args);
}); });
wx.getSystemInfo({ wx.getSystemInfo({
success: res => { success: res => {
...@@ -56,7 +59,6 @@ wepy.app({ ...@@ -56,7 +59,6 @@ wepy.app({
this.$options.config.statusbarHeight = res.statusBarHeight; this.$options.config.statusbarHeight = res.statusBarHeight;
}, fail(err) { }, fail(err) {
console.log(err);
} }
}) })
}, },
...@@ -72,7 +74,6 @@ wepy.app({ ...@@ -72,7 +74,6 @@ wepy.app({
async testAsync () { async testAsync () {
let d = await this.sleep(3); let d = await this.sleep(3);
console.log(d);
} }
}, },
config:{ config:{
...@@ -82,7 +83,10 @@ wepy.app({ ...@@ -82,7 +83,10 @@ wepy.app({
titleIcon_width: "87", titleIcon_width: "87",
title_top: "24", title_top: "24",
title_text: "xxx", // iphone X + 24 title_text: "xxx", // iphone X + 24
prefix: 24 prefix: 24,
urlPrefix: 'https://tmallab.com/sd/api'
// urlPrefix: "http://127.0.0.1:8888/api"
} }
}); });
</script> </script>
...@@ -90,9 +94,14 @@ wepy.app({ ...@@ -90,9 +94,14 @@ wepy.app({
{ {
pages: [ pages: [
'pages/index', 'pages/index',
'pages/progress' 'pages/progress',
], ],
<!--"plugins": {-->
<!--"ocr-plugin": {-->
<!--"version": "3.0.2",-->
<!--"provider": "wx4418e3e031e551be"-->
<!--}-->
<!--},-->
window: { window: {
navigationStyle: "custom", navigationStyle: "custom",
backgroundTextStyle: 'light', backgroundTextStyle: 'light',
...@@ -100,6 +109,7 @@ wepy.app({ ...@@ -100,6 +109,7 @@ wepy.app({
navigationBarTextStyle: 'black' navigationBarTextStyle: 'black'
} }
, ,
"tabBar": { "tabBar": {
"custom": true, "custom": true,
...@@ -122,3 +132,5 @@ wepy.app({ ...@@ -122,3 +132,5 @@ wepy.app({
} }
} }
</config> </config>
src/assets/tab1.png

3.22 KB | W: | H:

src/assets/tab1.png

2.09 KB | W: | H:

src/assets/tab1.png
src/assets/tab1.png
src/assets/tab1.png
src/assets/tab1.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/tab1s.png

4.64 KB | W: | H:

src/assets/tab1s.png

3.11 KB | W: | H:

src/assets/tab1s.png
src/assets/tab1s.png
src/assets/tab1s.png
src/assets/tab1s.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/tab2.png

1.02 KB | W: | H:

src/assets/tab2.png

1.28 KB | W: | H:

src/assets/tab2.png
src/assets/tab2.png
src/assets/tab2.png
src/assets/tab2.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/tab2s.png

2.66 KB | W: | H:

src/assets/tab2s.png

1.36 KB | W: | H:

src/assets/tab2s.png
src/assets/tab2s.png
src/assets/tab2s.png
src/assets/tab2s.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -3,13 +3,15 @@ module.exports = { ...@@ -3,13 +3,15 @@ module.exports = {
get, get,
upload upload
} }
const app = getApp().$wepy.$options
// LOG控制 // LOG控制
const isLog = false const isLog = false
// 网络请求超时 // 网络请求超时
const timeOut = 30 * 1000 const timeOut = 30 * 1000
const prefix = 'http://127.0.0.1:8888/api' const prefix = app.config.urlPrefix
// MARK 网络请求 // MARK 网络请求
function get(url, data) { function get(url, data) {
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment