|
|
|
@ -7,14 +7,15 @@ |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="width90 height120 backcorfff mart15" v-for="(agent,index) in agentCouponList" :key="index"> |
|
|
|
|
<image class="flleft agent_img margle mart10" v-if="agent.merchantLogo == null" src='../../../static/img/logo.png'></image> |
|
|
|
|
<image class="flleft agent_img margle mart10" v-if="agent.merchantLogo == null" |
|
|
|
|
src='../../../static/img/logo.png'></image> |
|
|
|
|
<image class="flleft agent_img margle mart10" v-else :src="image_url+agent.merchantLogo"></image> |
|
|
|
|
<view class="agent_title paddtop13"> |
|
|
|
|
<view class="font18 fcor333 width100">{{agent.highCoupon.couponName}}</view> |
|
|
|
|
<view class="width100 mart5 font14 fcor333 height22"> |
|
|
|
|
<view class="agent_left_num flleft text1"> |
|
|
|
|
<!-- <view class="agent_left_num flleft text1"> |
|
|
|
|
{{agent.highCouponCode.salesCode}} |
|
|
|
|
</view> |
|
|
|
|
</view> --> |
|
|
|
|
<view class="agent_right_num flright fotrt"> |
|
|
|
|
{{agent.highCoupon.salesPrice}}.00 |
|
|
|
|
</view> |
|
|
|
@ -26,11 +27,24 @@ |
|
|
|
|
v-if="typeId == 1">生成油码</button> |
|
|
|
|
<button class="flright backcorf06 fcorfff font15 agent_btn mart10" @click="jumpCouponDes(agent.id)" |
|
|
|
|
v-if="typeId == 2">查看详情</button> |
|
|
|
|
<view class="agent_ts font15 fcor333 fotrt" v-if="typeId == 2"> |
|
|
|
|
出售时间:{{agent.highCouponCode.receiveTime | formatDate('-')}}</view> |
|
|
|
|
<view class="agent_ts font15 fcor333 fotlt text1" v-if="typeId == 2"> |
|
|
|
|
备注:{{agent.remark}}</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<!-- /弹窗 --> |
|
|
|
|
<view :hidden="userFeedbackHidden" class="popup_content"> |
|
|
|
|
<view class="popup_title">填写备注</view> |
|
|
|
|
<view class="popup_textarea_item"> |
|
|
|
|
<textarea class="popup_textarea" placeholder='请填写您的备注信息...' v-model="feedbackContent"> |
|
|
|
|
</textarea> |
|
|
|
|
<view @click="submitFeedback()"> |
|
|
|
|
<button class="popup_button">提交备注</button> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="popup_overlay" :hidden="userFeedbackHidden" @click="hideDiv()"></view> |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
@ -38,7 +52,7 @@ |
|
|
|
|
getCodeListByAgentCoupon, |
|
|
|
|
generateCode |
|
|
|
|
} from "../../../Utils/Api.js"; |
|
|
|
|
let app =getApp(); |
|
|
|
|
let app = getApp(); |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
@ -49,7 +63,10 @@ |
|
|
|
|
typeId: '', |
|
|
|
|
reFreshs: '', |
|
|
|
|
couponId: '', |
|
|
|
|
image_url : app.globalData.imgUrl |
|
|
|
|
image_url: app.globalData.imgUrl, |
|
|
|
|
userFeedbackHidden: true, // 默认隐藏 |
|
|
|
|
feedbackContent: '', // 用户备注信息 |
|
|
|
|
couId: '' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
filters: { |
|
|
|
@ -70,6 +87,9 @@ |
|
|
|
|
return `${year}${spe}${month}${spe}${day}`; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onReachBottom() { |
|
|
|
|
this.getCodeListByAgentCoupon(); |
|
|
|
|
}, |
|
|
|
|
onLoad(option) { |
|
|
|
|
this.typeId = option.id; |
|
|
|
|
this.couponId = option.couponsId; |
|
|
|
@ -105,7 +125,7 @@ |
|
|
|
|
status: 1, |
|
|
|
|
pageSize: this.pageSize |
|
|
|
|
} |
|
|
|
|
} else if(this.typeId == 2){ |
|
|
|
|
} else if (this.typeId == 2) { |
|
|
|
|
params = { |
|
|
|
|
pageNum: pagenum, |
|
|
|
|
couponId: this.couponId, |
|
|
|
@ -131,17 +151,34 @@ |
|
|
|
|
|
|
|
|
|
//生成二维码 |
|
|
|
|
generateCode(item) { |
|
|
|
|
this.userFeedbackHidden = false; |
|
|
|
|
this.couId = item; |
|
|
|
|
}, |
|
|
|
|
hideDiv() { // 隐藏输入弹出框 |
|
|
|
|
this.userFeedbackHidden = true; |
|
|
|
|
}, |
|
|
|
|
// 提交备注 |
|
|
|
|
submitFeedback() { |
|
|
|
|
if (this.feedbackContent == '') { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: '请填写备注信息', |
|
|
|
|
icon: 'none', |
|
|
|
|
duration: 2000 |
|
|
|
|
}) |
|
|
|
|
} else { |
|
|
|
|
uni.showLoading({ |
|
|
|
|
title: '油码生成中...' |
|
|
|
|
}) |
|
|
|
|
let datas = { |
|
|
|
|
couponAgentCodeId: item |
|
|
|
|
couponAgentCodeId: this.couId, |
|
|
|
|
remark: this.feedbackContent |
|
|
|
|
} |
|
|
|
|
generateCode(datas).then(res => { |
|
|
|
|
uni.hideLoading() |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
this.userFeedbackHidden = true; |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '../../goods/coupons-info-details/coupons-info-details?id=' + item |
|
|
|
|
url: '../../goods/coupons-info-details/coupons-info-details?id=' + this.couId |
|
|
|
|
}) |
|
|
|
|
} else { |
|
|
|
|
uni.showToast({ |
|
|
|
@ -150,8 +187,10 @@ |
|
|
|
|
duration: 2000 |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
//查看详情 |
|
|
|
|
jumpCouponDes(ids) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
@ -220,4 +259,62 @@ |
|
|
|
|
margin-right: 95px; |
|
|
|
|
padding-top: 18px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 弹窗 |
|
|
|
|
.popup_overlay { |
|
|
|
|
|
|
|
|
|
position: fixed; |
|
|
|
|
top: 0%; |
|
|
|
|
left: 0%; |
|
|
|
|
width: 100%; |
|
|
|
|
height: 100%; |
|
|
|
|
background-color: black; |
|
|
|
|
z-index: 1001; |
|
|
|
|
-moz-opacity: 0.8; |
|
|
|
|
opacity: .80; |
|
|
|
|
filter: alpha(opacity=88); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.popup_content { |
|
|
|
|
position: fixed; |
|
|
|
|
top: 50%; |
|
|
|
|
left: 50%; |
|
|
|
|
width: 520upx; |
|
|
|
|
height: 550upx; |
|
|
|
|
margin-left: -270upx; |
|
|
|
|
margin-top: -270upx; |
|
|
|
|
border: 10px solid white; |
|
|
|
|
background-color: white; |
|
|
|
|
z-index: 1002; |
|
|
|
|
overflow: auto; |
|
|
|
|
border-radius: 20upx; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.popup_title { |
|
|
|
|
padding-top: 20upx; |
|
|
|
|
width: 480upx; |
|
|
|
|
text-align: center; |
|
|
|
|
font-size: 40rpx; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.popup_textarea_item { |
|
|
|
|
padding-top: 20rpx; |
|
|
|
|
height: 240rpx; |
|
|
|
|
width: 90%; |
|
|
|
|
background-color: #F1F1F1; |
|
|
|
|
margin-top: 30rpx; |
|
|
|
|
margin-left: 5%; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.popup_textarea { |
|
|
|
|
width: 410upx; |
|
|
|
|
font-size: 26upx; |
|
|
|
|
margin-left: 20upx; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.popup_button { |
|
|
|
|
color: white; |
|
|
|
|
background-color: #4399FC; |
|
|
|
|
border-radius: 10upx; |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|