Commit f95a8002 authored by Facius's avatar Facius

feat: 首页cell跳转

parent 84df2036
Pipeline #2927 canceled with stages
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<!-- <view class="weather-icon-view"> <!-- <view class="weather-icon-view">
<image :src="weather.icon"></image> <image :src="weather.icon"></image>
</view> --> </view> -->
<view class="weather-text">{{weather.weather}}</view> <view class="weather-text">{{ weather.weather }}</view>
<view>{{ weather.temp }}℃</view> <view>{{ weather.temp }}℃</view>
</view> </view>
</view> </view>
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
@confirm="handleComfirmDate" @confirm="handleComfirmDate"
bottomTip="※ 体验会员,仅非会员用户领取,每个ID限领1次" bottomTip="※ 体验会员,仅非会员用户领取,每个ID限领1次"
></u-picker> ></u-picker>
<PopNormal :visible.sync="visible" :isShare="true"/> <PopNormal :visible.sync="visible" :isShare="true" />
<u-toast ref="uToast" /> <u-toast ref="uToast" />
<mid-popup ref="midPopup"></mid-popup> <mid-popup ref="midPopup"></mid-popup>
<u-tabbar <u-tabbar
...@@ -160,8 +160,8 @@ import BillList from '@/components/bill-list' ...@@ -160,8 +160,8 @@ import BillList from '@/components/bill-list'
import PopNormal from '@/components/pop-normal' import PopNormal from '@/components/pop-normal'
import { tabbar } from '@/utils/settings.js' import { tabbar } from '@/utils/settings.js'
import { getWeather, bookRecord, monthRecord } from '@/api/maintain/index.js' import { getWeather, bookRecord, monthRecord } from '@/api/maintain/index.js'
import { checkVip } from "@/utils/common.js" import { checkVip } from '@/utils/common.js'
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex'
export default { export default {
components: { components: {
MidPopup, MidPopup,
...@@ -181,12 +181,11 @@ export default { ...@@ -181,12 +181,11 @@ export default {
income: '-', income: '-',
expense: '-', expense: '-',
}, },
list: [ list: [],
],
} }
}, },
computed: { computed: {
...mapGetters(['userInfo']), ...mapGetters(['userInfo']),
baseUrl() { baseUrl() {
return process.uniEnv.qn_base_url return process.uniEnv.qn_base_url
}, },
...@@ -268,19 +267,17 @@ export default { ...@@ -268,19 +267,17 @@ export default {
}, },
onLoad(options) { onLoad(options) {
if (options.q) { if (options.q) {
const q = decodeURIComponent(options.q) // 获取到二维码原始链接内容 const q = decodeURIComponent(options.q) // 获取到二维码原始链接内容
console.log(q) console.log(q)
} }
}, },
onShow() { onShow() {
console.log('----------------') console.log('----------------')
this.userInfo
this.getWeather() this.getWeather()
this.monthRecord() this.monthRecord()
this.bookRecord() this.bookRecord()
}, },
onReady() { onReady() {},
},
methods: { methods: {
getWeather() { getWeather() {
uni.getLocation({ uni.getLocation({
...@@ -326,8 +323,7 @@ export default { ...@@ -326,8 +323,7 @@ export default {
} }
} }
}) })
.catch((res) => { .catch((res) => {})
})
}, },
bookRecord() { bookRecord() {
bookRecord({}).then((res) => { bookRecord({}).then((res) => {
...@@ -350,11 +346,14 @@ export default { ...@@ -350,11 +346,14 @@ export default {
}, },
handleSelectCell(id) { handleSelectCell(id) {
console.log('-----------', id) console.log('-----------', id)
uni.navigateTo({
url: `/pages/bill/bill-detail/bill-detail?id=${id}`,
})
}, },
checkVip() { checkVip() {
// 测试数据 // 测试数据
return true return true
if (checkVip()) { if (checkVip()) {
return true return true
} else { } else {
...@@ -382,7 +381,7 @@ export default { ...@@ -382,7 +381,7 @@ export default {
return { return {
title: '扳手记账', title: '扳手记账',
path: `/pages/index/index?shareUserId=${this.userInfo.id}`, path: `/pages/index/index?shareUserId=${this.userInfo.id}`,
imageUrl: this.shareImage imageUrl: this.shareImage,
} }
}, },
// 好友 // 好友
...@@ -390,7 +389,7 @@ export default { ...@@ -390,7 +389,7 @@ export default {
return { return {
title: '扳手记账', title: '扳手记账',
path: `/pages/index/index?shareUserId=${this.userInfo.id}`, path: `/pages/index/index?shareUserId=${this.userInfo.id}`,
imageUrl: this.shareImage imageUrl: this.shareImage,
} }
}, },
}, },
......
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