Commit 84ff9c63 authored by mengcuiguang's avatar mengcuiguang

添加投放

parent 396cbd37
......@@ -3,21 +3,22 @@
<view class="body loading">
<view class="logo">
<image src="@/static/logo-about.png" mode="widthFix" style="border-radius: 20rpx;margin-bottom: 200rpx;" />
<view class="animation">
<text style="animation-delay: 0s;color: black;">C</text>
<text style="animation-delay: 0.1s;color: black;">o</text>
<text style="animation-delay: 0.2s;color: black;">m</text>
<text style="animation-delay: 0.3s;color: black;">p</text>
<text style="animation-delay: 0.4s;color: black;">a</text>
<text style="animation-delay: 0.4s;color: black;">n</text>
<text style="animation-delay: 0.5s;color: black;">i</text>
<text style="animation-delay: 0.6s;color: black;">o</text>
<text style="animation-delay: 0.7s;color: black;">n</text>
<text style="animation-delay: 0.8s;color: black;">x</text>
<text style="animation-delay: 0.9s;color: black;"></text>
<text style="animation-delay: 1s;color: black;"></text>
</view>
<view style="color: black;margin-top: 20rpx;font-size: 40rpx;">欢迎使用</view>
<view class="animation">
<text style="animation-delay: 0s;color: black;"></text>
<text style="animation-delay: 0.1s;color: black;"> </text>
<text style="animation-delay: 0.2s;color: black;"> </text>
<text style="animation-delay: 0.3s;color: black;"></text>
<text style="animation-delay: 0.4s;color: black;"> </text>
<text style="animation-delay: 0.4s;color: black;"> </text>
<text style="animation-delay: 0.5s;color: black;"></text>
<text style="animation-delay: 0.6s;color: black;"> </text>
<text style="animation-delay: 0.7s;color: black;"> </text>
<text style="animation-delay: 0.8s;color: black;"></text>
<text style="animation-delay: 0.9s;color: black;"> </text>
<text style="animation-delay: 1s;color: black;"> </text>
<text style="animation-delay: 1.1s;color: black;"></text>
</view>
<view style="color: black;margin-top: 40rpx;font-size: 40rpx;">欢迎使用</view>
</view>
</view>
</template>
......@@ -52,69 +53,67 @@
redirectTo('home');
}, 2300);
},
methods: {
wxlogin() {
let that = this
var obj = wx.getEnterOptionsSync()
var tempInviteUId = this.shareId;
methods: {
wxlogin() {
var obj = wx.getEnterOptionsSync()
var channel = '' // 渠道
var clueToken = '' // 归因参数
var adId = '' // 计划id
var advertiserId = '' // 账号id
var reqId = '' // 请求id
var promotionId = '' // aid
var productId='';
// console.log('uuid(32)='+uuid(32,32));
var channel = '' // 渠道
var clueToken = '' // 归因参数
var adId = '' // 计划id
var advertiserId = '' // 账号id
var reqId = '' // 请求id
var creativeId = '' // 创意id
if (obj.query.clueToken ?? '' != '') {
channel = 'tt'
clueToken = obj.query.clueToken ?? ''
adId = obj.query.adId ?? ''
advertiserId = obj.query.advertiserId ?? ''
reqId = obj.query.reqId ?? ''
creativeId = obj.query.creativeId ?? ''
}
if (obj.query.ksChannel ?? '' != '') {
channel = 'kuaishou'
clueToken = obj.query.callback ?? ''
adId = obj.query.ksCampaignId ?? ''
reqId = obj.query.ksUnitId ?? ''
creativeId = obj.query.ksCreativeId ?? ''
}
uni.login({
provider: 'weixin',
success: function(loginRes) {
that.post({
url: '/user/wechatlogin',
data: {
channel: channel,
clueToken: clueToken,
adId: adId,
advertiserId: advertiserId,
reqId: reqId,
creativeId: creativeId,
code: loginRes.code,
inviteUId: tempInviteUId
},
showLoading: false,
success: ({
data
}) => {
app.globalData.token = data.token;
app.globalData.userId = data.pk_id;
app.globalData.userInfo = data;
}
});
},
fail: function(err) {
if (obj.query.clueToken ?? '' != '') {
channel = 'tt'
clueToken = obj.query.clueToken ?? ''
adId = obj.query.adId ?? ''
advertiserId = obj.query.advertiserId ?? ''
reqId = obj.query.reqId ?? ''
promotionId = obj.query.promotionId ?? ''
productId = obj.query.productId ?? ''
}
if (obj.query.ksChannel ?? '' != '') {
channel = 'kuaishou'
advertiserId = obj.query.accountid ?? ''
clueToken = obj.query.callback ?? ''
adId = obj.query.aid ?? ''
}
uni.login({
provider: 'weixin',
success: function(loginRes) {
that.post({
url: '/user/wechatlogin',
data: {
channel: channel,
clueToken: clueToken,
adId: adId,
advertiserId: advertiserId,
reqId: reqId,
creativeId: creativeId,
code: loginRes.code,
inviteUId: tempInviteUId
},
showLoading: false,
success: ({
data
}) => {
app.globalData.token = data.token;
app.globalData.userId = data.pk_id;
app.globalData.userInfo = data;
}
});
},
fail: function(err) {
// 登录授权失败
message.notify('登录授权失败 错误码:'+err.code);
}
});
message.notify('登录授权失败 错误码:'+err.code);
}
});
}
}
};
......
......@@ -2,7 +2,7 @@
<view class="body">
<view
:style="'display: flex;flex-direction: row;align-items: center;margin: 20rpx;padding-left: 10rpx;margin-top:'+statusBarHeight+'px;'">
<image class="avatar" src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/bg_my_vip.png"></image>
<image class="avatar" src="@/static/logo-about.png"></image>
<view>
<view style="font-size: 26rpx;color: black;margin-left: 20rpx;">用户ID:{{userBean.idcode}}</view>
<!-- <view style="font-size: 32rpx;color: black;font-weight: 777;margin-left: 20rpx;">未登录</view> -->
......@@ -111,7 +111,30 @@
navigateTo(`/pagesA/vipPay/vipPay`)
},
handlePhone() {
let that = this
// 联系我们
this.post({
url: '/app/customerServiceNumbers',
showLoading: false,
success: ({
data
}) => {
let datas = data.customerServiceNumbers.split(',')
let corpid = datas[0]
let curl = datas[1]
wx.openCustomerServiceChat({
extInfo: {
url: curl
},
corpId: corpid,
success(res) {},
fail(e) {
console.log(e)
}
})
}
});
}
}
};
......
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