获客弹窗小于85分点击停止投保调用修改订单状态接口 以及按钮样式和文字修改

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2024-02-28 10:43:12 +08:00
parent cf0661b6ba
commit c20dda510e
2 changed files with 28 additions and 11 deletions

View File

@@ -390,3 +390,10 @@ export function saveOrderType(data) {
})
}
export function changeOrderStatus(data) {
return request({
url: getUrl('/sale/order/changeOrderStatus', 1),
method: 'post',
data
})
}

View File

@@ -51,16 +51,16 @@
<div style="padding: 20px 30px 20px;font-size: 14px;">
<div style="line-height: 20px;">根据风险测评结果您不适合投保万能型或分红型保险产品建议您停止投保</div>
</div>
<div style="text-align: center;">
<van-button type="danger" block style="font-size: 14px;background: #fff;color: #e9332e;line-height: 14px;" @click="thisdialogfunc1">已知晓不适宜继续投保但本人申请继续投保</van-button>
<van-button type="danger" block style="font-size: 14px;margin-top: 2px;" @click="thisdialogfunc2">停止投保</van-button>
<div style="text-align: center;display: flex;align-items: end;">
<van-button type="danger" style="font-size: 12px;background: #fff;color: #e9332e;line-height: 15px;width: 50%;padding: 0px 2px;" @click="thisdialogfunc1">已知晓不适宜继续投保但本人申请继续投保</van-button>
<van-button type="danger" style="font-size: 14px;margin-top: 2px;width: 50%;" @click="thisdialogfunc2">停止投保</van-button>
</div>
</van-dialog>
</div>
</template>
<script>
import { Collapse, CollapseItem, RadioGroup, Radio, Field, CellGroup, Icon } from 'vant'
import { saveInformation, getOrderDetail } from '@/api/ebiz/sale/sale'
import { saveInformation, getOrderDetail, changeOrderStatus } from '@/api/ebiz/sale/sale'
import IndexBar from '@/components/ebiz/sale/IndexBar'
export default {
data() {
@@ -128,15 +128,25 @@ methods:{
})
},
thisdialogfunc2(){
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/sale/list',
},
routerInfo: {
path: '/sale/list'
let params = {
orderNO:this.$route.query.orderNo
}
changeOrderStatus(params).then(res=>{
if(res.result == 0){
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/sale/list',
},
routerInfo: {
path: '/sale/list'
}
})
} else {
this.$toast(res.resultMessage)
}
})
},
appCallBack(data) {
if (data.trigger == 'left_button_click') {