|
@@ -1,6 +1,5 @@
|
|
|
import {
|
|
|
getProducts,
|
|
|
- getTasks,
|
|
|
} from '~/api/global'
|
|
|
import {
|
|
|
buyVip,
|
|
@@ -54,18 +53,11 @@ Page({
|
|
|
let userInfo = await getMyInfo()
|
|
|
let vipTime = await getVipInfo()
|
|
|
this.setUser(userInfo.user)
|
|
|
- this.getTasks()
|
|
|
this.setData({
|
|
|
userInfo,
|
|
|
vipTime,
|
|
|
})
|
|
|
},
|
|
|
- async getTasks() {
|
|
|
- let tasks = await getTasks()
|
|
|
- this.setData({
|
|
|
- tasks
|
|
|
- })
|
|
|
- },
|
|
|
async getProducts() {
|
|
|
let products = await getProducts()
|
|
|
let productVip = products.find(item => {
|
|
@@ -140,7 +132,15 @@ Page({
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+ activationCode() {
|
|
|
+ wx.showModal({
|
|
|
+ title: '请输入激活码',
|
|
|
+ editable: true,
|
|
|
+ success(res) {
|
|
|
+ console.log(res);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
jump({
|
|
|
currentTarget
|
|
|
}) {
|
|
@@ -149,7 +149,6 @@ Page({
|
|
|
url: url
|
|
|
});
|
|
|
},
|
|
|
-
|
|
|
clipboar() {
|
|
|
wx.setClipboardData({
|
|
|
data: this.data.userInfo.user.eid,
|