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