|
|
@ -20,7 +20,8 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="width100 line1 mart5"></view> |
|
|
|
<view class="width100 line1 mart5"></view> |
|
|
|
<view class="width90"> |
|
|
|
<view class="width90"> |
|
|
|
<button class="flright backcorf06 fcorfff font15 agent_btn mart10" @click="generateCode(agent.id)" |
|
|
|
<button class="flright backcorf06 fcorfff font15 agent_btn mart10" |
|
|
|
|
|
|
|
@click="generateCode(agent.id,agent.highCoupon.couponSource)" |
|
|
|
v-if="typeId == 1 && typeid == 1">生成油码</button> |
|
|
|
v-if="typeId == 1 && typeid == 1">生成油码</button> |
|
|
|
<button class="flright backcorf06 fcorfff font15 agent_btn mart10" @click="jumpCouponDes(agent.id)" |
|
|
|
<button class="flright backcorf06 fcorfff font15 agent_btn mart10" @click="jumpCouponDes(agent.id)" |
|
|
|
v-if="typeId == 2 && typeid == 1">查看详情</button> |
|
|
|
v-if="typeId == 2 && typeid == 1">查看详情</button> |
|
|
@ -28,7 +29,8 @@ |
|
|
|
v-if="typeId == 2 && agent.remark !=null && typeid == 1"> |
|
|
|
v-if="typeId == 2 && agent.remark !=null && typeid == 1"> |
|
|
|
备注:{{agent.remark}}</view> |
|
|
|
备注:{{agent.remark}}</view> |
|
|
|
|
|
|
|
|
|
|
|
<button class="flright backcorf06 fcorfff font15 agent_btn mart10" @click="generateCode(agent.id)" |
|
|
|
<button class="flright backcorf06 fcorfff font15 agent_btn mart10" |
|
|
|
|
|
|
|
@click="generateCode(agent.id,agent.highCoupon.couponSource)" |
|
|
|
v-if="typeId == 1 && typeid == 2">生成兑换码</button> |
|
|
|
v-if="typeId == 1 && typeid == 2">生成兑换码</button> |
|
|
|
<button class="flright backcorf06 fcorfff font15 agent_btn mart10" @click="jumpCouponDes(agent.id)" |
|
|
|
<button class="flright backcorf06 fcorfff font15 agent_btn mart10" @click="jumpCouponDes(agent.id)" |
|
|
|
v-if="typeId == 2 && (typeid == 2 || typeid == 3) ">查看详情</button> |
|
|
|
v-if="typeId == 2 && (typeid == 2 || typeid == 3) ">查看详情</button> |
|
|
@ -40,12 +42,14 @@ |
|
|
|
|
|
|
|
|
|
|
|
<!-- /弹窗 --> |
|
|
|
<!-- /弹窗 --> |
|
|
|
<view :hidden="userFeedbackHidden" class="popup_content"> |
|
|
|
<view :hidden="userFeedbackHidden" class="popup_content"> |
|
|
|
<view class="popup_title">填写备注</view> |
|
|
|
<view class="popup_title">填写信息</view> |
|
|
|
|
|
|
|
<input class="width90 pop_input font14 mart20 marb10" maxlength="11" v-model="feedPhone" placeholder="输入手机号" |
|
|
|
|
|
|
|
type="number" v-if="couponSource == 4" /> |
|
|
|
<view class="popup_textarea_item"> |
|
|
|
<view class="popup_textarea_item"> |
|
|
|
<textarea class="popup_textarea" placeholder='请填写您的备注信息...' v-model="feedbackContent"> |
|
|
|
<textarea class="popup_textarea" placeholder='请填写您的备注信息...' v-model="feedbackContent"> |
|
|
|
</textarea> |
|
|
|
</textarea> |
|
|
|
<view @click="submitFeedback()"> |
|
|
|
<view @click="submitFeedback()"> |
|
|
|
<button class="popup_button">提交备注</button> |
|
|
|
<button class="popup_button mart20 fontlet">提交</button> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -56,7 +60,8 @@ |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import { |
|
|
|
import { |
|
|
|
getCodeListByAgentCoupon, |
|
|
|
getCodeListByAgentCoupon, |
|
|
|
generateCode |
|
|
|
generateCode, |
|
|
|
|
|
|
|
pushGzSinopec |
|
|
|
} from "../../../Utils/Api.js"; |
|
|
|
} from "../../../Utils/Api.js"; |
|
|
|
let app = getApp(); |
|
|
|
let app = getApp(); |
|
|
|
export default { |
|
|
|
export default { |
|
|
@ -74,6 +79,8 @@ |
|
|
|
image_url: app.globalData.imgUrl, |
|
|
|
image_url: app.globalData.imgUrl, |
|
|
|
userFeedbackHidden: true, // 默认隐藏 |
|
|
|
userFeedbackHidden: true, // 默认隐藏 |
|
|
|
feedbackContent: '', // 用户备注信息 |
|
|
|
feedbackContent: '', // 用户备注信息 |
|
|
|
|
|
|
|
feedPhone: '', //推送手机 |
|
|
|
|
|
|
|
couponSource: '', //类型 |
|
|
|
couId: '', |
|
|
|
couId: '', |
|
|
|
typeid: '' |
|
|
|
typeid: '' |
|
|
|
} |
|
|
|
} |
|
|
@ -155,7 +162,7 @@ |
|
|
|
type: 1, |
|
|
|
type: 1, |
|
|
|
pageSize: this.pageSize |
|
|
|
pageSize: this.pageSize |
|
|
|
} |
|
|
|
} |
|
|
|
} else if(this.typeid == 2){ |
|
|
|
} else if (this.typeid == 2) { |
|
|
|
params = { |
|
|
|
params = { |
|
|
|
pageNum: pagenum, |
|
|
|
pageNum: pagenum, |
|
|
|
couponId: this.couponId, |
|
|
|
couponId: this.couponId, |
|
|
@ -163,7 +170,7 @@ |
|
|
|
type: 2, |
|
|
|
type: 2, |
|
|
|
pageSize: this.pageSize |
|
|
|
pageSize: this.pageSize |
|
|
|
} |
|
|
|
} |
|
|
|
}else if(this.typeid == 3){ |
|
|
|
} else if (this.typeid == 3) { |
|
|
|
params = { |
|
|
|
params = { |
|
|
|
pageNum: pagenum, |
|
|
|
pageNum: pagenum, |
|
|
|
couponId: this.couponId, |
|
|
|
couponId: this.couponId, |
|
|
@ -190,25 +197,59 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//生成二维码 |
|
|
|
//生成二维码 |
|
|
|
generateCode(item) { |
|
|
|
generateCode(item, item1) { |
|
|
|
this.userFeedbackHidden = false; |
|
|
|
this.userFeedbackHidden = false; |
|
|
|
this.couId = item; |
|
|
|
this.couId = item; |
|
|
|
|
|
|
|
this.couponSource = item1; |
|
|
|
}, |
|
|
|
}, |
|
|
|
hideDiv() { // 隐藏输入弹出框 |
|
|
|
hideDiv() { // 隐藏输入弹出框 |
|
|
|
this.userFeedbackHidden = true; |
|
|
|
this.userFeedbackHidden = true; |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 提交备注 |
|
|
|
// 提交备注 |
|
|
|
submitFeedback() { |
|
|
|
submitFeedback() { |
|
|
|
|
|
|
|
if (this.feedPhone == '' && this.couponSource == 4) { |
|
|
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
|
|
title: '请填写推送手机号', |
|
|
|
|
|
|
|
icon: 'none', |
|
|
|
|
|
|
|
duration: 2000 |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
if (this.feedbackContent == '') { |
|
|
|
if (this.feedbackContent == '') { |
|
|
|
uni.showToast({ |
|
|
|
uni.showToast({ |
|
|
|
title: '请填写备注信息', |
|
|
|
title: '请填写备注信息', |
|
|
|
icon: 'none', |
|
|
|
icon: 'none', |
|
|
|
duration: 2000 |
|
|
|
duration: 2000 |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
uni.showLoading({ |
|
|
|
|
|
|
|
title: '生成中...' |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
if (this.couponSource == 4) { |
|
|
|
|
|
|
|
let datas = { |
|
|
|
|
|
|
|
couponAgentCodeId: this.couId, |
|
|
|
|
|
|
|
remark: this.feedbackContent, |
|
|
|
|
|
|
|
phone: this.feedPhone |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
pushGzSinopec(datas).then(res => { |
|
|
|
|
|
|
|
uni.hideLoading() |
|
|
|
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
|
|
|
this.userFeedbackHidden = true; |
|
|
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
|
|
url: '../../goods/coupons-info-details/coupons-info-details?id=' + this |
|
|
|
|
|
|
|
.couId |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
|
|
title: res.return_msg, |
|
|
|
|
|
|
|
icon: 'none', |
|
|
|
|
|
|
|
duration: 2000 |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
uni.showLoading({ |
|
|
|
|
|
|
|
title: '生成中...' |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
let datas = { |
|
|
|
let datas = { |
|
|
|
couponAgentCodeId: this.couId, |
|
|
|
couponAgentCodeId: this.couId, |
|
|
|
remark: this.feedbackContent |
|
|
|
remark: this.feedbackContent |
|
|
@ -230,6 +271,8 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//查看详情 |
|
|
|
//查看详情 |
|
|
@ -317,10 +360,10 @@ |
|
|
|
|
|
|
|
|
|
|
|
.popup_content { |
|
|
|
.popup_content { |
|
|
|
position: fixed; |
|
|
|
position: fixed; |
|
|
|
top: 50%; |
|
|
|
top: 40%; |
|
|
|
left: 50%; |
|
|
|
left: 50%; |
|
|
|
width: 520upx; |
|
|
|
width: 520upx; |
|
|
|
height: 550upx; |
|
|
|
height: 600upx; |
|
|
|
margin-left: -270upx; |
|
|
|
margin-left: -270upx; |
|
|
|
margin-top: -270upx; |
|
|
|
margin-top: -270upx; |
|
|
|
border: 10px solid white; |
|
|
|
border: 10px solid white; |
|
|
@ -337,9 +380,16 @@ |
|
|
|
font-size: 40rpx; |
|
|
|
font-size: 40rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.pop_input { |
|
|
|
|
|
|
|
// border-bottom: 1px solid #F1F1F1; |
|
|
|
|
|
|
|
height: 50rpx; |
|
|
|
|
|
|
|
line-height: 50rpx; |
|
|
|
|
|
|
|
padding-left: 20rpx; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.popup_textarea_item { |
|
|
|
.popup_textarea_item { |
|
|
|
padding-top: 20rpx; |
|
|
|
padding-top: 20rpx; |
|
|
|
height: 240rpx; |
|
|
|
height: 200rpx; |
|
|
|
width: 90%; |
|
|
|
width: 90%; |
|
|
|
background-color: #F1F1F1; |
|
|
|
background-color: #F1F1F1; |
|
|
|
margin-top: 30rpx; |
|
|
|
margin-top: 30rpx; |
|
|
@ -348,6 +398,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
.popup_textarea { |
|
|
|
.popup_textarea { |
|
|
|
width: 410upx; |
|
|
|
width: 410upx; |
|
|
|
|
|
|
|
height: 200rpx; |
|
|
|
font-size: 26upx; |
|
|
|
font-size: 26upx; |
|
|
|
margin-left: 20upx; |
|
|
|
margin-left: 20upx; |
|
|
|
} |
|
|
|
} |
|
|
|