Commit cf68cc0c authored by 郭志伟's avatar 郭志伟

Merge branch 'fix/goods' into 'master'

Fix/goods

See merge request !135
parents f0d3a612 a48aec29
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Description:众安50万意外险 * @Description:众安50万意外险
* @Date: 2020-07-27 15:46:37 * @Date: 2020-07-27 15:46:37
* @LastEditors: gzw * @LastEditors: gzw
* @LastEditTime: 2020-08-29 11:26:18 * @LastEditTime: 2020-08-29 16:18:42
*/ */
import goodsBg from "@/assets/images/goods/detail/yiwaixian/bg.png"; import goodsBg from "@/assets/images/goods/detail/yiwaixian/bg.png";
import title from "@/assets/images/goods/detail/yiwaixian/title.png"; import title from "@/assets/images/goods/detail/yiwaixian/title.png";
...@@ -135,7 +135,7 @@ export default { ...@@ -135,7 +135,7 @@ export default {
popupArray: [ popupArray: [
{ {
title: "保险条款", title: "保险条款",
url: "https://mangguo-contract-pdf.qthbx.com/zhong-an-baoxiantiaokuan-v1/" url: "https://mangguo-contract.qthbx.com/zhong-an-baoxiantiaokuan-v1/"
}, },
{ {
title: "投保须知及声明", title: "投保须知及声明",
...@@ -147,7 +147,6 @@ export default { ...@@ -147,7 +147,6 @@ export default {
url: "https://mangguo-contract.qthbx.com/fu-wu-xie-yi-v1/" url: "https://mangguo-contract.qthbx.com/fu-wu-xie-yi-v1/"
}, },
{ title: "保险计划" }, { title: "保险计划" },
{ title: "保险计划" },
{ title: "理赔信息" }, { title: "理赔信息" },
{ title: "完整费率" }, { title: "完整费率" },
{ {
......
...@@ -9,7 +9,7 @@ export const list = param => { ...@@ -9,7 +9,7 @@ export const list = param => {
export const getLink = () => { export const getLink = () => {
return req.get("third/bainian/insurance_url", { return req.get("third/bainian/insurance_url", {
params: { params: {
goBackUrl: `${window.location.origin}/policy/detail/` goBackUrl: `${window.location.origin}/policy`
} }
}); });
}; };
......
...@@ -5,7 +5,14 @@ ...@@ -5,7 +5,14 @@
<svg-icon icon-class="triangle-right" slot="button" /> <svg-icon icon-class="triangle-right" slot="button" />
</div> </div>
<cr-popup v-model="show" position="bottom" get-container="body"> <cr-popup v-model="show" position="bottom" get-container="body">
<cr-area ref="area" :value="value" :list="areaList" @cancel="onCancel" @confirm="onConfirm" /> <cr-area
ref="area"
:value="value"
:list="areaList"
:item-height="44"
@cancel="onCancel"
@confirm="onConfirm"
/>
</cr-popup> </cr-popup>
</div> </div>
</template> </template>
...@@ -45,7 +52,9 @@ export default { ...@@ -45,7 +52,9 @@ export default {
setTimeout(() => { setTimeout(() => {
const $area = this.$refs.area; const $area = this.$refs.area;
const $picker = $area.$refs.picker; const $picker = $area.$refs.picker;
const val = this.value; let val = this.value;
if (!val) return;
val = "" + val;
let columns = ""; let columns = "";
$area.selectedCodes = [`${val.substring(0, 2)}0000`, `${val.substring(0, 4)}00`, val]; $area.selectedCodes = [`${val.substring(0, 2)}0000`, `${val.substring(0, 4)}00`, val];
$area.renderProvince(); $area.renderProvince();
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
type="date" type="date"
:min-date="minDate" :min-date="minDate"
:max-date="maxDate" :max-date="maxDate"
:item-height="44"
@confirm="onConfirm" @confirm="onConfirm"
@cancel="onCancel" @cancel="onCancel"
/> />
......
...@@ -2,6 +2,13 @@ ...@@ -2,6 +2,13 @@
@import "var.less"; @import "var.less";
@import "mixins.less"; @import "mixins.less";
* {
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
-khtml-user-select: none;
user-select: none;
}
html, html,
body, body,
#app { #app {
......
...@@ -94,6 +94,7 @@ ...@@ -94,6 +94,7 @@
<script> <script>
import Card from "@/components/Card"; import Card from "@/components/Card";
import { getCulsuggestion } from "@/api/consultant"; import { getCulsuggestion } from "@/api/consultant";
import { getLink } from "@/api/product";
import avator from "@/assets/images/consultant/avator.png"; import avator from "@/assets/images/consultant/avator.png";
import goods from "@/api/goodsList.mock"; import goods from "@/api/goodsList.mock";
export default { export default {
...@@ -104,6 +105,7 @@ export default { ...@@ -104,6 +105,7 @@ export default {
data() { data() {
return { return {
avator, avator,
goods,
goodInfo: { goodInfo: {
ensure: [] ensure: []
} }
...@@ -113,7 +115,7 @@ export default { ...@@ -113,7 +115,7 @@ export default {
ensureList() { ensureList() {
return this.goodInfo.ensure return this.goodInfo.ensure
? this.goodInfo.ensure.map(item => { ? this.goodInfo.ensure.map(item => {
item.detailIndex = goods.findIndex(it => it.id === item.productNo); item.detailIndex = this.goods.findIndex(it => it.id === item.productNo);
return item; return item;
}) })
: []; : [];
...@@ -121,6 +123,7 @@ export default { ...@@ -121,6 +123,7 @@ export default {
}, },
mounted() { mounted() {
this.getSuggestion(); this.getSuggestion();
this.getGoodsLink();
}, },
methods: { methods: {
tagFilter(type) { tagFilter(type) {
...@@ -168,7 +171,7 @@ export default { ...@@ -168,7 +171,7 @@ export default {
return _type; return _type;
}, },
goDetail(index) { goDetail(index) {
const goodItem = goods[index]; const goodItem = this.goods[index];
if (!goodItem.allow) { if (!goodItem.allow) {
return; return;
} }
...@@ -187,6 +190,17 @@ export default { ...@@ -187,6 +190,17 @@ export default {
if (res) { if (res) {
this.goodInfo = res; this.goodInfo = res;
} }
},
async getGoodsLink() {
if (!this.mongoToken) return;
const res = await getLink();
if (res) {
this.goods.forEach(item => {
if (item.productNo === "BNZJX001") {
item.url = res.url;
}
});
}
} }
} }
}; };
......
...@@ -849,17 +849,16 @@ export default { ...@@ -849,17 +849,16 @@ export default {
this.generateOrder("li"); this.generateOrder("li");
}, },
relationOptionChange(relation) { relationOptionChange(relation) {
relation && this.relationChange(relation, this.clearInsured); relation && this.relationChange(relation, true);
setTimeout(() => {
this.clearInsured = true; this.clearInsured = true;
}, 1000);
}, },
relationChange(relation, clear = false) { relationChange(relation, clear = false) {
if (clear) { if (clear) {
this.formData.insuredUserInfo = { this.$set(this.formData, "insuredUserInfo", {
relation, relation,
longTerm: "1" longTerm: "1"
}; });
this.$forceUpdate();
} }
this.familyList.forEach(item => { this.familyList.forEach(item => {
const { relation, nameMask: name, idNoMask: idNo, userInfoSecId } = item; const { relation, nameMask: name, idNoMask: idNo, userInfoSecId } = item;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment