Skip to content

Commit c2f7a40

Browse files
committed
update
1 parent 5cc3b80 commit c2f7a40

File tree

10 files changed

+7
-7
lines changed

10 files changed

+7
-7
lines changed

src/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
export default {
33
created () {
44
// 调用API从本地缓存中获取数据
5-
const logs = wx.getStorageSync('logs') || []
5+
const logs = swan.getStorageSync('logs') || []
66
logs.unshift(Date.now())
7-
wx.setStorageSync('logs', logs)
7+
swan.setStorageSync('logs', logs)
88
// this.log()
99
// console.log('app created and cache logs by setStorageSync')
1010
},

src/pages/index/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ export default {
5252
methods: {
5353
bindViewTap () {
5454
const url = '../logs/main'
55-
wx.navigateTo({ url })
55+
swan.navigateTo({ url })
5656
},
5757
getUserInfo () {
5858
// 调用登录接口
59-
// wx.login({
59+
// swan.login({
6060
// success: () => {
61-
// wx.getUserInfo({
61+
// swan.getUserInfo({
6262
// success: (res) => {
6363
// this.userInfo = res.userInfo
6464
// }

src/pages/logs/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default {
2828
data () {
2929
return {
3030
logs: [],
31-
imgUrls_: [
31+
imgUrls: [
3232
'http://mss.sankuai.com/v1/mss_51a7233366a4427fa6132a6ce72dbe54/newsPicture/05558951-de60-49fb-b674-dd906c8897a6',
3333
'http://mss.sankuai.com/v1/mss_51a7233366a4427fa6132a6ce72dbe54/coursePicture/0fbcfdf7-0040-4692-8f84-78bb21f3395d',
3434
'http://mss.sankuai.com/v1/mss_51a7233366a4427fa6132a6ce72dbe54/management-school-picture/7683b32e-4e44-4b2f-9c03-c21f34320870'
@@ -37,7 +37,7 @@ export default {
3737
},
3838
3939
created () {
40-
const logs = (wx.getStorageSync('logs') || [])
40+
const logs = (swan.getStorageSync('logs') || [])
4141
this.logs = logs.map(log => formatTime(new Date(log)))
4242
setTimeout(() => {
4343
// this.imgUrls = null

static/images/user.jpeg

8.57 KB
Loading

static/tabs/home-active.png

614 Bytes
Loading

static/tabs/home.png

474 Bytes
Loading

static/tabs/orders-active.png

141 Bytes
Loading

static/tabs/orders.png

133 Bytes
Loading

static/tabs/user-active.png

991 Bytes
Loading

static/tabs/user.png

792 Bytes
Loading

0 commit comments

Comments
 (0)