Browse Source

上传代码

chanyi2.0
杨豪 3 years ago
parent
commit
fc371e820c
  1. 4
      config/index.js
  2. 6
      pages.json
  3. 10
      pages/home/index.vue
  4. 1
      pages/knowledge/components/secondMenu.vue
  5. 11
      pages/webView/index.vue

4
config/index.js

@ -1,8 +1,8 @@
// export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api';
// export const VUE_APP_API_URL = 'https://wxapi.yixiang.co/api'
// export const VUE_APP_API_URL = 'http://139.186.134.205:9006/api'
export const VUE_APP_API_URL = 'http://192.168.0.114:8088/api'
// export const VUE_APP_API_URL = 'https://www.cyjyyjy.com/api'
// export const VUE_APP_API_URL = 'http://192.168.0.114:8088/api'
export const VUE_APP_API_URL = 'https://www.cyjyyjy.com/api'
// export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api';
// export const VUE_APP_API_URL = 'https://thapi.xinxintuan.co/api'
// export const VUE_APP_API_URL = 'https://h5api.xinxintuan.co/api';

6
pages.json

@ -24,6 +24,12 @@
"navigationBarTitleText": "注册"
}
},
{
"path": "pages/webView/index",
"style": {
"navigationBarTitleText": "h5"
}
},
{
"path": "pages/launch/index",

10
pages/home/index.vue

@ -49,7 +49,7 @@
</view>
</view>
<view class="fortune-menu-box acea-row row-between">
<view class="fortune-menu-item acea-row row-middle ">
<view class="fortune-menu-item acea-row row-middle" @click="toWebView()">
<image src="../../static/f-menu1.png" mode=""></image>
<text>周公解梦</text>
</view>
@ -280,6 +280,12 @@ export default {
},
methods: {
...mapActions(['getLocation']),
// toWebView(){
// uni.navigateTo({
// url:'/pages/webView/index'
// })
// },
setDate(t){
console.log()
let str = t.split(" ")[0].split("-")[1] + "." + t.split(" ")[0].split("-")[2]
@ -306,7 +312,7 @@ export default {
this.todayDate += (this.chinese[m.charAt(0)] + "月");
}
//
console.log(d[d.length-1],'ddddddd')
// console.log(d[d.length-1],'ddddddd')
if (d.length == 2) {
if(d[d.length-1] == 0){
this.todayDate += (this.chinese[d.charAt(0)] + "十" + '日');

1
pages/knowledge/components/secondMenu.vue

@ -60,6 +60,7 @@
border-radius: 14rpx;
color: #222;
margin-right: 24rpx;
margin-bottom: 12rpx;
}
.menu-item-active{
color: #EB5744;

11
pages/webView/index.vue

@ -0,0 +1,11 @@
<template>
<view>
<web-view src="http://39.105.46.0:9501/"></web-view>
</view>
</template>
<script>
</script>
<style>
</style>
Loading…
Cancel
Save