|
|
|
<template>
|
|
|
|
<view>
|
|
|
|
<view class="width90 height120 backcorfff mart15">
|
|
|
|
<image class="flleft agent_img margle mart10" src='../../../static/img/logo.png'></image>
|
|
|
|
<view class="agent_title paddtop13">
|
|
|
|
<view class="font18 fcor333 width100">重庆中石化码商券</view>
|
|
|
|
<view class="width100 mart5 font14 fcor333 height22">
|
|
|
|
<view class="agent_left_num flleft">
|
|
|
|
42342424234234
|
|
|
|
</view>
|
|
|
|
<view class="agent_right_num flright fotrt">
|
|
|
|
300.00
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="width100 line1 mart5"></view>
|
|
|
|
<view class="width90">
|
|
|
|
<button class="flright backcorf06 fcorfff font15 agent_btn mart10" @click="generateCode">生成油码</button>
|
|
|
|
<view class="agent_ts font15 fcor333 fotrt">出售时间:2021.4.13 23:14</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="width90 height120 backcorfff mart15">
|
|
|
|
<image class="flleft agent_img margle mart10" src='../../../static/img/logo.png'></image>
|
|
|
|
<view class="agent_title paddtop13">
|
|
|
|
<view class="font18 fcor333 width100">重庆中石化码商券</view>
|
|
|
|
<view class="width100 mart5 font14 fcor333 height22">
|
|
|
|
<view class="agent_left_num flleft">
|
|
|
|
42342424234234
|
|
|
|
</view>
|
|
|
|
<view class="agent_right_num flright fotrt">
|
|
|
|
300.00
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="width100 line1 mart5"></view>
|
|
|
|
<view class="width90">
|
|
|
|
<button class="flright backcorf06 fcorfff font15 agent_btn mart10">生成油码</button>
|
|
|
|
<view class="agent_ts font15 fcor333 fotrt">出售时间:2021.4.13 23:14</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="width90 height120 backcorfff mart15">
|
|
|
|
<image class="flleft agent_img margle mart10" src='../../../static/img/logo.png'></image>
|
|
|
|
<view class="agent_title paddtop13">
|
|
|
|
<view class="font18 fcor333 width100">重庆中石化码商券</view>
|
|
|
|
<view class="width100 mart5 font14 fcor333 height22">
|
|
|
|
<view class="agent_left_num flleft">
|
|
|
|
42342424234234
|
|
|
|
</view>
|
|
|
|
<view class="agent_right_num flright fotrt">
|
|
|
|
300.00
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="width100 line1 mart5"></view>
|
|
|
|
<view class="width90">
|
|
|
|
<button class="flright backcorf06 fcorfff font15 agent_btn mart10">生成油码</button>
|
|
|
|
<view class="agent_ts font15 fcor333 fotrt">出售时间:2021.4.13 23:14</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import {
|
|
|
|
getCodeListByAgentCoupon,
|
|
|
|
generateCode
|
|
|
|
} from "../../../Utils/Api.js";
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
onLoad() {
|
|
|
|
this.getCodeListByAgentCoupon();
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
//查询列表
|
|
|
|
getCodeListByAgentCoupon() {
|
|
|
|
let datas = {
|
|
|
|
couponId: 23423529,
|
|
|
|
pageNum: 1,
|
|
|
|
pageSize: 10
|
|
|
|
}
|
|
|
|
getCodeListByAgentCoupon(datas).then(res => {
|
|
|
|
if (res.return_code == '000000') {} else {
|
|
|
|
uni.showToast({
|
|
|
|
title: res.return_msg,
|
|
|
|
icon: "none"
|
|
|
|
})
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
//生成二维码
|
|
|
|
generateCode() {
|
|
|
|
let datas = {
|
|
|
|
couponAgentCodeId: 8
|
|
|
|
}
|
|
|
|
generateCode(datas).then(res => {
|
|
|
|
if (res.return_code == '000000') {} else {
|
|
|
|
uni.navigateTo({
|
|
|
|
url: '../../goods/coupons-info-details/coupons-info-details?id=1'
|
|
|
|
})
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
page {
|
|
|
|
background-color: #f5f5f5;
|
|
|
|
}
|
|
|
|
|
|
|
|
.agent_img {
|
|
|
|
width: 50px;
|
|
|
|
height: 50px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.agent_title {
|
|
|
|
margin-left: 60px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.agent_left_num {
|
|
|
|
width: 55%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.agent_right_num {
|
|
|
|
width: 40%;
|
|
|
|
margin-right: 5%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.agent_btn {
|
|
|
|
width: 88px;
|
|
|
|
height: 35px;
|
|
|
|
line-height: 35px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.agent_ts {
|
|
|
|
margin-right: 95px;
|
|
|
|
padding-top: 18px;
|
|
|
|
}
|
|
|
|
</style>
|