mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-06 22:26:42 +08:00
Compare commits
5 Commits
feature/FM
...
release/FM
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
247ad5e13e | ||
|
|
44bd097ae2 | ||
|
|
c20dda510e | ||
|
|
cf0661b6ba | ||
|
|
a9809d32bd |
@@ -390,3 +390,10 @@ export function saveOrderType(data) {
|
||||
})
|
||||
}
|
||||
|
||||
export function changeOrderStatus(data) {
|
||||
return request({
|
||||
url: getUrl('/sale/order/changeOrderStatus', 1),
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
@@ -31,7 +31,8 @@
|
||||
data-vv-name="单选"
|
||||
v-for="(items, indexs) in item.options" :key="indexs"
|
||||
>
|
||||
<van-radio :name="items.option" :label="items.option" class="mr150 ml70">{{items.item}} ({{items.score}}分)</van-radio>
|
||||
<!-- <van-radio :name="items.option" :label="items.option" class="mr150 ml70">{{items.item}} ({{items.score}}分)</van-radio>-->
|
||||
<van-radio :name="items.option" :label="items.option" class="mr150 ml70">{{items.item}}</van-radio>
|
||||
</van-radio-group>
|
||||
<div style=" font-size:13px" v-if="item.remarks" v-html="item.remarks">
|
||||
</div>
|
||||
@@ -43,11 +44,23 @@
|
||||
<div class="bottom-btn bg-white">
|
||||
<van-button type="danger" size="large" @click="next" :disabled="isDisabled" v-no-more-click="1000">提交问卷</van-button>
|
||||
</div>
|
||||
<van-dialog v-model="thisdialogshow" :showConfirmButton="false">
|
||||
<div slot="title">
|
||||
<p style="color: #E9332E;">提示</p>
|
||||
</div>
|
||||
<div style="padding: 20px 30px 20px;font-size: 14px;">
|
||||
<div style="line-height: 20px;">根据风险测评结果,您不适合投保万能型或分红型保险产品,建议您停止投保。</div>
|
||||
</div>
|
||||
<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;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() {
|
||||
@@ -56,6 +69,8 @@ export default {
|
||||
],
|
||||
isDisabled:true,
|
||||
salePageFlag: '6',
|
||||
thisdialogshow:false,
|
||||
productType:'',
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@@ -72,6 +87,7 @@ created(){
|
||||
getOrderDetail({ orderNo: this.$route.query.orderNo }).then(res => {
|
||||
if (res.result == 0) {
|
||||
this.question =JSON.parse( res.orderDTO.riskEvaluationDTO.quentionAnswer)
|
||||
this.productType = res.orderDTO.orderInfoDTO.productType
|
||||
this.isDisabledType()
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
@@ -100,6 +116,38 @@ mounted(){
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
thisdialogfunc1(){
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/sale/answerSuccess?orderNo=' + this.$route.query.orderNo,
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/sale/answerSuccess?orderNo=' + this.$route.query.orderNo
|
||||
}
|
||||
})
|
||||
},
|
||||
thisdialogfunc2(){
|
||||
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') {
|
||||
return this.$dialog
|
||||
@@ -159,21 +207,42 @@ methods:{
|
||||
}
|
||||
saveInformation(data).then(res => {
|
||||
if (res.result == '0') {
|
||||
let that = this
|
||||
localStorage.removeItem('changeCard')
|
||||
if (!this.$route.query.salePageFlag) {
|
||||
//不是从导航栏进入
|
||||
localStorage.salePageFlag = '7'
|
||||
}
|
||||
that.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/sale/answerSuccess?orderNo=' + this.$route.query.orderNo,
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/sale/answerSuccess?orderNo=' + this.$route.query.orderNo
|
||||
}
|
||||
})
|
||||
if(this.productType == '1' || this.productType == '2') {
|
||||
getOrderDetail({ orderNo: this.$route.query.orderNo }).then(res => {
|
||||
if (res.result == 0) {
|
||||
if(res.orderDTO.riskEvaluationDTO.totalScore >= 60 && res.orderDTO.riskEvaluationDTO.totalScore <= 85){
|
||||
this.thisdialogshow = true
|
||||
} else {
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/sale/answerSuccess?orderNo=' + this.$route.query.orderNo,
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/sale/answerSuccess?orderNo=' + this.$route.query.orderNo
|
||||
}
|
||||
})
|
||||
}
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/sale/answerSuccess?orderNo=' + this.$route.query.orderNo,
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/sale/answerSuccess?orderNo=' + this.$route.query.orderNo
|
||||
}
|
||||
})
|
||||
}
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user