Browse Source

总导航内容的添加

master
W夏日 2 years ago
parent
commit
4ed574bd93
  1. 10
      agentApp/pages.json
  2. 37
      agentApp/pages/allpages/index.vue
  3. 22
      agentApp/pages/payment/payment.vue
  4. BIN
      agentApp/static/page/aplay.png
  5. BIN
      agentApp/static/page/location.png
  6. BIN
      agentApp/static/page/people.png

10
agentApp/pages.json

@ -5,7 +5,7 @@
"path" : "pages/allpages/index", "path" : "pages/allpages/index",
"style" : "style" :
{ {
"navigationBarTitleText": "调试所有页面",
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#1783FF", "navigationBarBackgroundColor": "#1783FF",
"navigationBarTextStyle": "white" "navigationBarTextStyle": "white"
// "enablePullDownRefresh": false // "enablePullDownRefresh": false
@ -61,6 +61,14 @@
"navigationBarTextStyle": "black" "navigationBarTextStyle": "black"
} }
},
{
"path" : "pages/payment/payment",
"style" :
{
"navigationBarTitleText" : "",
"enablePullDownRefresh" : false
}
} }
], ],

37
agentApp/pages/allpages/index.vue

@ -4,11 +4,11 @@
<button @click="goPage(0)">商户登录</button> <button @click="goPage(0)">商户登录</button>
<button @click="goPage(0)">商户主页</button> <button @click="goPage(0)">商户主页</button>
<text>用户相关</text> <text>用户相关</text>
<button @click="goPage(0)">用户支付页面</button>
<button @click="goPage(0)">用户支付页面2</button>
<button @click="goPage(3)">用户支付页面</button>
<button @click="goPage(3)">用户支付页面2</button>
<text>代理商相关</text> <text>代理商相关</text>
<button @click="goPage(0)">代理商登录</button>
<button @click="goPage(0)">代理商主页</button>
<button @click="goPage(1)">代理商登录</button>
<button @click="goPage(2)">代理商主页</button>
</view> </view>
</template> </template>
@ -16,16 +16,33 @@
export default { export default {
data() { data() {
return { return {
bgColor: '#bgColor',
value: 1,
show:false,
title:'',
content:''
}; };
}, },
methods: { methods: {
goPage(num) { goPage(num) {
switch(num) {
case 1:
uni.navigateTo({
url: '/pages/login/index'
});
break;
case 2:
uni.navigateTo({
url: '/pages/index/index'
});
break;
case 3:
uni.navigateTo({
url: '/pages/payment/payment'
});
break;
default:
uni.navigateTo({
url: '/pages/login/index'
});
break;
}
} }
} }
} }

22
agentApp/pages/payment/payment.vue

@ -0,0 +1,22 @@
<template>
<view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
}
}
</script>
<style>
</style>

BIN
agentApp/static/page/aplay.png

After

Width: 30  |  Height: 30  |  Size: 558 B

BIN
agentApp/static/page/location.png

After

Width: 30  |  Height: 36  |  Size: 458 B

BIN
agentApp/static/page/people.png

After

Width: 110  |  Height: 110  |  Size: 3.2 KiB

Loading…
Cancel
Save