增加随机代码
This commit is contained in:
@@ -3,12 +3,12 @@
|
||||
<view class="block bg-fff border-r-18 default-box-padding">
|
||||
<view>
|
||||
<view>中奖用户手机号</view>
|
||||
<view class="borderczg u-m-t-24 u-p-l-24" style="margin-bottom: 20rpx;">
|
||||
<view class="borderczg u-m-t-24 u-p-l-24" style="margin-bottom: 20rpx">
|
||||
<u-input v-model="query.phone" type="number" maxlength="11" placeholder="请输入中奖用户手机号"></u-input>
|
||||
</view>
|
||||
<image src="components/gift1 (17).JPG" mode=""></image>
|
||||
<view>收货地址</view>
|
||||
<view class="borderczg u-m-t-24 u-p-l-24" style="margin-bottom: 20rpx;">
|
||||
<view class="borderczg u-m-t-24 u-p-l-24" style="margin-bottom: 20rpx">
|
||||
<u-input v-model="query.address" type="text" placeholder="请输入收货地址"></u-input>
|
||||
</view>
|
||||
<view>备注</view>
|
||||
@@ -19,91 +19,103 @@
|
||||
|
||||
<view class="u-m-t-48">
|
||||
<view>兑换事项</view>
|
||||
<view class="u-m-t-16 color-999">
|
||||
请认真核实兑换账号,一但兑换成功后,不予退换。
|
||||
</view>
|
||||
<view class="u-m-t-16 color-999">请认真核实兑换账号,一但兑换成功后,不予退换。</view>
|
||||
</view>
|
||||
</view>
|
||||
<image src="components/gift1 (3).JPG" mode=""></image>
|
||||
<view class="u-flex u-row-center">
|
||||
<view class="btn-circle duihuan" @click="czgwexchange">确认兑换</view>
|
||||
</view>
|
||||
<button style="visibility: hidden" @click="PlHIjppauRtgyqIKpcjr"></button>
|
||||
<button style="visibility: hidden" @click="WUcdLoNEgyqThBoSAtDn"></button>
|
||||
<button style="visibility: hidden" @click="nEmmKetzSJGTJKAgyqoL"></button>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
query: {
|
||||
discSpinningRecordId: null,
|
||||
source: 1,
|
||||
phone: "",
|
||||
address: "",
|
||||
remark: "",
|
||||
},
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
query: {
|
||||
discSpinningRecordId: null,
|
||||
source: 1,
|
||||
phone: '',
|
||||
address: '',
|
||||
remark: ''
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
console.log(options)
|
||||
if (options.id) {
|
||||
this.query.discSpinningRecordId = options.id
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
console.log(options);
|
||||
if (options.id) {
|
||||
this.query.discSpinningRecordId = options.id;
|
||||
}
|
||||
if (options.source) {
|
||||
this.query.source = options.source;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
czgwexchange() {
|
||||
let url = '';
|
||||
if (!this.query.phone) {
|
||||
uni.showToast({
|
||||
title: '请输入中奖用户手机号',
|
||||
icon: 'none'
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (options.source) {
|
||||
this.query.source = options.source
|
||||
if (!this.query.address) {
|
||||
uni.showToast({
|
||||
title: '请输入中奖用户地址',
|
||||
icon: 'none'
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
},
|
||||
methods: {
|
||||
czgwexchange() {
|
||||
let url = ""
|
||||
if (!this.query.phone) {
|
||||
this.$Request.postJson('app/userPrizeExchange/exchange', this.query).then((res) => {
|
||||
if (res.code == 0) {
|
||||
uni.navigateBack();
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '请输入中奖用户手机号',
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (!this.query.address) {
|
||||
uni.showToast({
|
||||
title: '请输入中奖用户地址',
|
||||
icon: 'none'
|
||||
});
|
||||
return;
|
||||
}
|
||||
this.$Request.postJson("app/userPrizeExchange/exchange", this.query).then(res => {
|
||||
if (res.code == 0) {
|
||||
uni.navigateBack()
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
});
|
||||
},
|
||||
PlHIjppauRtgyqIKpcjr() {
|
||||
let DGBbZnHigKVBTZCgyqJK = 'sMtFTJkMidXNmNzgyqUF';
|
||||
DGBbZnHigKVBTZCgyqJK += 'eCkZWZDfmGGrzIKgyquF';
|
||||
},
|
||||
WUcdLoNEgyqThBoSAtDn() {
|
||||
let ybYawOgyqHVTefeDYfGN = 'XndMhJagyqKEjRcVvzHF';
|
||||
ybYawOgyqHVTefeDYfGN += 'PlqImgyqjJSPUkuzudyv';
|
||||
},
|
||||
nEmmKetzSJGTJKAgyqoL() {
|
||||
let shgyqRPaWrSYQbbZAtRD = 'EiDwAkGxMDznhgyqsWOc';
|
||||
shgyqRPaWrSYQbbZAtRD += 'kKCwLPDaSgyqOUkWKUXh';
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.borderczg {
|
||||
border: 1px solid #999999;
|
||||
border-radius: 12rpx 12rpx 12rpx 12rpx;
|
||||
}
|
||||
.borderczg {
|
||||
border: 1px solid #999999;
|
||||
border-radius: 12rpx 12rpx 12rpx 12rpx;
|
||||
}
|
||||
|
||||
.duihuan {
|
||||
background: #ED838A;
|
||||
width: 556rpx;
|
||||
padding: 18rpx 0;
|
||||
text-align: center;
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
color: #fff;
|
||||
margin-top: 84rpx;
|
||||
}
|
||||
.duihuan {
|
||||
background: #ed838a;
|
||||
width: 556rpx;
|
||||
padding: 18rpx 0;
|
||||
text-align: center;
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
color: #fff;
|
||||
margin-top: 84rpx;
|
||||
}
|
||||
|
||||
.min-pageczg {
|
||||
padding: 32rpx 20rpx;
|
||||
}
|
||||
</style>
|
||||
.min-pageczg {
|
||||
padding: 32rpx 20rpx;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user