Commit bae41163 by 李伟康

修改ID

1 parent 58163d92
...@@ -43,12 +43,15 @@ Page({ ...@@ -43,12 +43,15 @@ Page({
if (!res) { if (!res) {
const { const {
userInfo userInfo
} = this.data, { } = this.data
let {
id,
activityId, activityId,
businessId, businessId,
source, source,
linkId linkId
} = this.options } = this.options
if(!activityId) activityId = id
if (!userInfo.nickName) return this.getNickNameAndHeadUrl() if (!userInfo.nickName) return this.getNickNameAndHeadUrl()
try { try {
const { const {
...@@ -131,7 +134,7 @@ Page({ ...@@ -131,7 +134,7 @@ Page({
// 绑定来源 0:权益会员卡;1:调查问卷;2:群接龙 // 绑定来源 0:权益会员卡;1:调查问卷;2:群接龙
if (source > -1) query += `&source=${source}` if (source > -1) query += `&source=${source}`
if (recordId) query += `&recordId=${recordId}` if (recordId) query += `&recordId=${recordId}`
if(awardInfoId) query += `&awardInfoId=${awardInfoId}` if (awardInfoId) query += `&awardInfoId=${awardInfoId}`
this.linkQuery = query this.linkQuery = query
this.setData({ this.setData({
show: true show: true
......
...@@ -36,6 +36,7 @@ Component({ ...@@ -36,6 +36,7 @@ Component({
type = 'digit' type = 'digit'
} }
list.push({ list.push({
describeId,
maxlength, maxlength,
type, type,
detail: '', detail: '',
......
...@@ -32,6 +32,13 @@ ...@@ -32,6 +32,13 @@
border-radius: 16rpx; border-radius: 16rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
overflow: hidden; overflow: hidden;
display: flex;
align-items: center;
padding-left: 40rpx;
.icon{
width: 52rpx;
height: 52rpx;
}
} }
} }
.btn { .btn {
......
...@@ -4,6 +4,9 @@ ...@@ -4,6 +4,9 @@
<view class="delivery-content"> <view class="delivery-content">
<block wx:for="{{list}}" wx:key="index"> <block wx:for="{{list}}" wx:key="index">
<view class="delivery-item"> <view class="delivery-item">
<view class="icon">
<glsx-image src="activity/icon-{{item.describeId}}.png"></glsx-image>
</view>
<van-field value="{{item.detail}}" type="{{item.type}}" maxlength="{{item.maxlength}}" placeholder="{{item.placeholder}}" bindchange="onChange" data-index="{{index}}" /> <van-field value="{{item.detail}}" type="{{item.type}}" maxlength="{{item.maxlength}}" placeholder="{{item.placeholder}}" bindchange="onChange" data-index="{{index}}" />
</view> </view>
</block> </block>
......
...@@ -68,8 +68,9 @@ page { ...@@ -68,8 +68,9 @@ page {
} }
.btn { .btn {
width: 96rpx; min-width: 96rpx;
height: 52rpx; height: 52rpx;
padding: 0 20rpx;
background: #3772EC; background: #3772EC;
border-radius: 26rpx; border-radius: 26rpx;
position: absolute; position: absolute;
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<view class="btn text-center" data-code="{{item.code}}" bindtap="open">查看</view> <view class="btn text-center" data-code="{{item.code}}" bindtap="open">查看</view>
</block> </block>
<block wx:if="{{item.exchangeType == 0 && item.status == 8 && !item.isAddressFlag}}"> <block wx:if="{{item.exchangeType == 0 && item.status == 8 && !item.isAddressFlag}}">
<view class="btn text-center" data-award-info-id="{{item.awardInfoId}}" bindtap="writeDelivery">填写</view> <view class="btn text-center" data-award-info-id="{{item.awardInfoId}}" bindtap="writeDelivery">去填写</view>
</block> </block>
</view> </view>
</block> </block>
......
...@@ -26,10 +26,24 @@ ...@@ -26,10 +26,24 @@
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
.icon-title {
position: absolute;
left: 50%;
transform: translateX(-50%);
top: -230rpx;
width: 438rpx;
height: 76rpx;
}
.card { .card {
flex-direction: column; flex-direction: column;
.content-icon { .content-icon {
position: absolute;
left: 50%;
transform: translateX(-50%);
width: 228rpx;
height: 228rpx;
top: -120rpx; top: -120rpx;
} }
......
<block wx:if="{{show}}"> <block wx:if="{{show}}">
<view class="box"> <view class="box">
<view class="content"> <view class="content">
<view class="icon-title">
<glsx-image src="activity/success.png"></glsx-image>
></view>
<view class="card flex"> <view class="card flex">
<view class=""></view> <view class="content-icon">
<glsx-image src="activity/coupon.png"></glsx-image>
</view>
<view class="name"> <view class="name">
恭喜你获得{{item.couponName}}一张 恭喜你获得{{item.couponName}}一张
</view> </view>
......
...@@ -35,6 +35,7 @@ Page({ ...@@ -35,6 +35,7 @@ Page({
const { const {
options options
} = this } = this
this.options.relayLotteryId = options.id
if (options.isLogin) this.getGroupEnterInfo(options) if (options.isLogin) this.getGroupEnterInfo(options)
else this.jumpLoading() //直接打开时跳转、防止sessionId失效 else this.jumpLoading() //直接打开时跳转、防止sessionId失效
}, },
...@@ -64,7 +65,7 @@ Page({ ...@@ -64,7 +65,7 @@ Page({
console.log('openGid:', data) console.log('openGid:', data)
const res = await wx.p.api.userApi.openGIdtoChatId({ const res = await wx.p.api.userApi.openGIdtoChatId({
merchantId: options.merchantId, merchantId: options.merchantId,
openGid: 'GtsOh6zJoHmautQCAxaxaUzIxYNo' || data openGid: data
}) })
console.log('chatId:', res.data) console.log('chatId:', res.data)
options.chatId = res.data || '' options.chatId = res.data || ''
...@@ -297,10 +298,8 @@ Page({ ...@@ -297,10 +298,8 @@ Page({
try { try {
const { const {
params, params,
userInfo
} = this.data, { } = this.data, {
relayLotteryId, id: relayLotteryId,
chatId
} = this.options } = this.options
console.log(params) console.log(params)
if (!params.name) throw '请输入名称!' if (!params.name) throw '请输入名称!'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!