Commit 8c30811a authored by mengcuiguang's avatar mengcuiguang

代码优化

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