Commit 8c30811a authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 2b43b53b
...@@ -117,40 +117,15 @@ ...@@ -117,40 +117,15 @@
ttLoging() { ttLoging() {
var that = this; var that = this;
var obj = tt.getLaunchOptionsSync() var obj = tt.getLaunchOptionsSync()
var channel = 'douyin' // 渠道
var bookId = ''; var bookId = '';
var remark1 = ''; // 预留
var remark2 = ''; // 预留
var remark3 = ''; // 预留
var remark4 = ''; // 预留
var remark5 = ''; // 预留
var remark6 = ''; // 预留
var thirdParam = ''; var thirdParam = '';
var tips2 = ''; var tips2 = '';
var album_id = obj.query.tt_album_id ?? '';
var episode_id = obj.query.tt_episode_id ?? '';
uni.setStorage({
key: 'tt_album_id',
data: album_id
});
uni.setStorage({
key: 'tt_episode_id',
data: episode_id
});
// 抖音feed页参数 // 抖音feed页参数
thirdParam = JSON.stringify(obj.query); thirdParam = JSON.stringify(obj.query);
bookId = obj.query.book_id ?? '' bookId = obj.query.book_id ?? ''
tips2 = obj.query.tips2 ?? '' tips2 = obj.query.tips2 ?? ''
remark1 = obj.query.remark1 ?? ''
remark2 = obj.query.remark2 ?? ''
remark3 = obj.query.remark3 ?? ''
remark4 = obj.query.remark4 ?? ''
remark5 = obj.query.remark5 ?? ''
remark6 = obj.query.remark6 ?? ''
if (this.tips1 == 'mints_book' || tips2 == 'mints_book') { if (this.tips1 == 'mints_book' || tips2 == 'mints_book') {
this.slotParam = JSON.stringify(obj.query); this.slotParam = JSON.stringify(obj.query);
...@@ -162,23 +137,10 @@ ...@@ -162,23 +137,10 @@
success(res) { success(res) {
login({ login({
channel: channel, vedioId: bookId,
clueToken: '',
anonymousCode: res.anonymousCode,
code: res.code, code: res.code,
adId: '', anonymousCode: res.anonymousCode,
advertiserId: '', thirdParam: thirdParam
reqId: '',
remark1: remark1,
remark2: remark2,
remark3: remark3,
remark4: remark4,
remark5: remark5,
remark6: remark6,
thirdParam: thirdParam,
promotionId: '',
projectId: '',
bookId: bookId,
}) })
}, },
fail(res) { fail(res) {
...@@ -242,7 +204,7 @@ ...@@ -242,7 +204,7 @@
line-height: 100rpx; line-height: 100rpx;
margin-top: 30rpx; margin-top: 30rpx;
width: 400rpx; width: 400rpx;
background: #09bb07; background: black;
color: #fff; color: #fff;
border-radius: 20rpx; border-radius: 20rpx;
...@@ -254,7 +216,8 @@ ...@@ -254,7 +216,8 @@
} }
.info { .info {
height: 100rpx; height: 100rpx;
color: #fff;
line-height: 100rpx; line-height: 100rpx;
font-size: 30rpx; font-size: 30rpx;
margin-left: 20rpx; margin-left: 20rpx;
......
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