Commit 35713a43 authored by Edwise's avatar Edwise 🍷

Merge remote-tracking branch 'refs/remotes/origin/tianmaoxiaoyuan' into tianmaoxiaoyuan

parents 3b2b6603 c17eff98
{
"success": true,
"code": "nostrud",
"data": [
{
"taskType": "jcA",
"title": "w5Qd%",
"rewards": 2,
"taskRateType": 2,
"waitReceive": -59123924.96824288,
"status": -22575314.240724027,
"completeTimes": -88356510.39271703,
"times": "3",
"todayCompleteTimes": -15114879.481988683,
"itemIds": "esse",
"url": "ex Lorem deserunt"
}
],
"message": "pariatur ut id irure sit"
}
\ No newline at end of file
{"success":true,"data":{"openId":"incididunt non"},"code":"dolor ex"}
\ No newline at end of file
...@@ -23,6 +23,11 @@ const request = tbccRequest({ ...@@ -23,6 +23,11 @@ const request = tbccRequest({
// api handle 列表 // api handle 列表
const apiList = { const apiList = {
...capi, ...capi,
getTaskList: {
handle: 'getTaskList',
method: 'get',
isShowLoading: false
},
receiveObjectPrize: { receiveObjectPrize: {
handle: 'receiveObjectPrize', handle: 'receiveObjectPrize',
method: 'get', method: 'get',
......
...@@ -2,12 +2,12 @@ import cloud from '@tbmp/mp-cloud-sdk'; ...@@ -2,12 +2,12 @@ import cloud from '@tbmp/mp-cloud-sdk';
import tbcc from './tbcc-sdk'; import tbcc from './tbcc-sdk';
cloud.init({ cloud.init({
env: 'online' // 云函数环境 test 测试环境 online 线上环境 env: 'test' // 云函数环境 test 测试环境 online 线上环境
}); });
App({ App({
requestType: 'cloud', // yapi,cloud: 云函数 requestType: 'cloud', // yapi,cloud: 云函数
requestType: 'local', // yapi,cloud: 云函数 // requestType: 'local', // yapi,cloud: 云函数
cloudName: 'tmallCat', // 主云函数项目名 tmallCat cloudName: 'tmallCat', // 主云函数项目名 tmallCat
// cloudName: 'bubbleSurviva', // 主云函数项目名 tmallCat // cloudName: 'bubbleSurviva', // 主云函数项目名 tmallCat
cloud, cloud,
...@@ -25,7 +25,7 @@ App({ ...@@ -25,7 +25,7 @@ App({
*/ */
handleQuery(query) { handleQuery(query) {
const { activityId } = query; const { activityId } = query;
this.activityId = activityId || '5f34e1c4964f9706aa7d803c'; this.activityId = activityId || '5f6b09b3c3ad342fed5a0b21';
} }
}); });
...@@ -32,13 +32,22 @@ ...@@ -32,13 +32,22 @@
position: absolute; position: absolute;
transform-origin: 0rpx 0rpx 0rpx; transform-origin: 0rpx 0rpx 0rpx;
} }
.task_list {
width: 100%;
height: auto;
/* background-color: black; */
display: flex;
flex-flow: row wrap;
align-content: flex-start;
padding: 162rpx 0 0 41rpx;
}
.task .task_item { .task .task_item {
width: 668rpx; width: 668rpx;
height: 141rpx; height: 141rpx;
opacity: 1; opacity: 1;
left: 41rpx; margin: 0 0rpx 16rpx 0;
top: 162rpx; position: relative;
position: absolute;
transform-origin: 0rpx 0rpx 0rpx; transform-origin: 0rpx 0rpx 0rpx;
} }
.task .task_item .task_itembg { .task .task_item .task_itembg {
...@@ -112,7 +121,7 @@ ...@@ -112,7 +121,7 @@
transform-origin: 0rpx 0rpx 0rpx; transform-origin: 0rpx 0rpx 0rpx;
} }
.task .task_item .task_title { .task .task_item .task_title {
width: 52rpx; /* width: 52rpx; */
height: 26rpx; height: 26rpx;
opacity: 1; opacity: 1;
left: 139rpx; left: 139rpx;
......
...@@ -2,18 +2,21 @@ ...@@ -2,18 +2,21 @@
<view class="task "> <view class="task ">
<image class="task_bg " src={{resList['7d24398f-622f-4f20-9d7e-2d7237d7bc6b'].url}} /> <image class="task_bg " src={{resList['7d24398f-622f-4f20-9d7e-2d7237d7bc6b'].url}} />
<image class="task_close " onTap="onModalClose" src={{resList['33778cbf-8c4f-4d6f-a8e8-9ebc6f0c5cd0'].url}} /> <image class="task_close " onTap="onModalClose" src={{resList['33778cbf-8c4f-4d6f-a8e8-9ebc6f0c5cd0'].url}} />
<view class="task_item "> <view class="task_list">
<image class="task_itembg " src={{resList['b44bac8c-652f-496d-9bc1-165e30d71b02'].url}} /> <view class="task_item " a:for="{{list}}">
<image class="task_receivebtn " src={{resList['b9f1cc3f-4620-44d8-85ae-187be0745ace'].url}} /> <image class="task_itembg " src={{resList['b44bac8c-652f-496d-9bc1-165e30d71b02'].url}} />
<image class="task_gobtn " src={{resList['9ee176ed-5204-4524-97f9-bf17ee698aa8'].url}} /> <image class="task_receivebtn " src={{resList['b9f1cc3f-4620-44d8-85ae-187be0745ace'].url}} />
<image class="task_disabedbtn " src={{resList['0e0684af-21c7-48e2-9114-8599c1de33f1'].url}} /> <image class="task_gobtn " src={{resList['9ee176ed-5204-4524-97f9-bf17ee698aa8'].url}} />
<image class="task_sginicon " src={{resList['ca4c78b3-caf5-435b-ba32-f187f24d1795'].url}} /> <image class="task_disabedbtn " src={{resList['0e0684af-21c7-48e2-9114-8599c1de33f1'].url}} />
<image class="task_inviteicon " src={{resList['61cf4c2c-54e4-4cde-aa16-78ee5d17ab06'].url}} /> <image class="task_sginicon " src={{resList['ca4c78b3-caf5-435b-ba32-f187f24d1795'].url}} />
<image class="task_focusicon " src={{resList['61cf4c2c-54e4-4cde-aa16-78ee5d17ab06'].url}} /> <image class="task_inviteicon " src={{resList['61cf4c2c-54e4-4cde-aa16-78ee5d17ab06'].url}} />
<image class="task_readicon " src={{resList['61cf4c2c-54e4-4cde-aa16-78ee5d17ab06'].url}} /> <image class="task_focusicon " src={{resList['61cf4c2c-54e4-4cde-aa16-78ee5d17ab06'].url}} />
<label class="task_title ">签到</label> <image class="task_readicon " src={{resList['61cf4c2c-54e4-4cde-aa16-78ee5d17ab06'].url}} />
<label class="task_award ">精力 +10</label> <label class="task_title ">签到</label>
<label class="task_progress ">(10/10)</label> <label class="task_award ">精力 +10</label>
<label class="task_progress ">(10/10)</label>
</view>
</view> </view>
</view> </view>
</view> </view>
\ No newline at end of file
'use strict'; 'use strict';
import resList from '../../resconfig/resList'; import resList from '../../resconfig/resList';
import API from '../../api';
const app = getApp();
const { tbcc } = app;
const { commonToast } = tbcc.tb;
Component({ Component({
props: {}, props: {},
data: {resList: resList}, data: { resList: resList, list: [
1,2,3,4
] },
async didMount() {
const { success, data, message } = await API.getTaskList().catch(res => {
commonToast(res && res.message);
}) || {};
},
methods: { methods: {
onModalClose() { onModalClose() {
const { onModalClose } = this.props; const { onModalClose } = this.props;
onModalClose && onModalClose(); onModalClose && onModalClose();
console.log('com task onModalClose') // console.log('com task onModalClose')
} }
} }
......
...@@ -28,6 +28,7 @@ Page({ ...@@ -28,6 +28,7 @@ Page({
data: { data: {
catType: 1, catType: 1,
catName: '', catName: '',
taskModalVisible:0,
recallCatInfo:{}, recallCatInfo:{},
taskModalVisible: false, taskModalVisible: false,
messageModalVisible: false, messageModalVisible: false,
...@@ -74,7 +75,7 @@ Page({ ...@@ -74,7 +75,7 @@ Page({
// }) // })
// }, 500) // }, 500)
//授权和登录先搞 //授权和登录先搞
// this.getAuth(); this.getAuth();
my.__onMessage__ = (e) => { my.__onMessage__ = (e) => {
this.onMessage(e) this.onMessage(e)
} }
...@@ -98,11 +99,12 @@ Page({ ...@@ -98,11 +99,12 @@ Page({
}, },
spark_startEngine() { spark_startEngine() {
console.log('spark_startEngine') console.log('spark_startEngine',my)
var self = this; var self = this;
my.createCanvas({ my.createCanvas({
id: 'canvas', id: 'canvas',
success: ccc => { success: ccc => {
console.log('createCanvas success' );
const dpr = my.getSystemInfoSync().pixelRatio; const dpr = my.getSystemInfoSync().pixelRatio;
const windowWidth = my.getSystemInfoSync().windowWidth; const windowWidth = my.getSystemInfoSync().windowWidth;
const windowHeight = my.getSystemInfoSync().windowHeight; const windowHeight = my.getSystemInfoSync().windowHeight;
...@@ -119,7 +121,8 @@ Page({ ...@@ -119,7 +121,8 @@ Page({
this.main.addGlobalEvent("loading", self.showLoadingHandler, self); this.main.addGlobalEvent("loading", self.showLoadingHandler, self);
this.main.addGlobalEvent("hideloading", self.hideLoadingHandler, self); this.main.addGlobalEvent("hideloading", self.hideLoadingHandler, self);
} }
} },
fail:()=>{console.log('createCanvas fail' );}
}); });
}, },
...@@ -253,15 +256,14 @@ Page({ ...@@ -253,15 +256,14 @@ Page({
console.log('未授权成功', err); console.log('未授权成功', err);
}); });
if (userInfo) { if (userInfo) {
console.log('userInfo', userInfo); console.log('授权成功 userInfo', userInfo);
const { const {
nickName, nickName,
avatar avatar
} = userInfo; } = userInfo;
app.nickName = nickName; app.nickName = nickName;
app.avatar = avatar; app.avatar = avatar;
this.init(); this.login();
// this.login();
} }
}, },
/** /**
......
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