Commit f95a8002 authored by Facius's avatar Facius

feat: 首页cell跳转

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