Commit bae41163 by 李伟康

修改ID

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