diff --git a/dist/index.html b/dist/index.html
index d8e8f07..3e77897 100644
--- a/dist/index.html
+++ b/dist/index.html
@@ -1 +1 @@
-
地图
\ No newline at end of file
+地图
\ No newline at end of file
diff --git a/dist/static/css/app.1a26ba93.css b/dist/static/css/app.de2108a7.css
similarity index 83%
rename from dist/static/css/app.1a26ba93.css
rename to dist/static/css/app.de2108a7.css
index 283dfee..61e9806 100644
--- a/dist/static/css/app.1a26ba93.css
+++ b/dist/static/css/app.de2108a7.css
@@ -1 +1 @@
-div{box-sizing:border-box}.flex-between{justify-content:space-between}.flex-around,.flex-between{display:flex;align-items:center}.flex-around{justify-content:space-around}.flex-center{display:flex;justify-content:center;align-items:center}.text-overflow{overflow-x:hidden;overflow-y:inherit;text-overflow:ellipsis;white-space:nowrap}.text-overflowRows{overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;word-break:break-all;display:-webkit-box;-webkit-box-orient:vertical}.bg[data-v-1ee6a532]{width:10rem;max-height:60vh;overflow-x:hidden;overflow-y:auto;padding:0 .53333rem .53333rem}.top[data-v-1ee6a532]{height:2.08rem;font-weight:500;font-size:.53333rem;color:#000}.top .top-btn[data-v-1ee6a532]{width:1.77333rem;line-height:.78667rem;background:#f74a57;border-radius:.17333rem;text-align:center;font-size:.42667rem;color:#fff}.img-box[data-v-1ee6a532]{display:flex;overflow-x:auto}.img-box img[data-v-1ee6a532]{width:2.4rem;height:2.4rem;border-radius:.36rem;margin-right:.36rem;-o-object-fit:cover;object-fit:cover}.img-box[data-v-1ee6a532]::-webkit-scrollbar{display:none}.scenic-detail[data-v-1ee6a532]{width:8.93333rem;height:1.93333rem;background:#e8f6eb;border-radius:.17333rem;margin-top:.48rem;padding:.4rem .26667rem .4rem .33333rem;font-weight:500;font-size:.36rem;color:#000}.scenic-detail .scenic-left[data-v-1ee6a532]{flex-direction:column;align-items:left;width:6rem;height:100%}.scenic-detail .scenic-left div[data-v-1ee6a532]{width:6rem}.scenic-detail .scenic-right[data-v-1ee6a532]{width:2rem;font-weight:500;font-size:.32rem;color:#71b580}.scenic-detail .scenic-right img[data-v-1ee6a532]{width:.49333rem;height:.49333rem;margin-bottom:5px}.scenic-detail .scenic-right div[data-v-1ee6a532]{text-align:center}.scenic-content[data-v-1ee6a532]{margin-top:.56rem;font-weight:700;font-size:.42667rem;color:#000}.scenic-content div[data-v-1ee6a532]{font-weight:500;font-size:.36rem;color:#333;line-height:.58667rem;margin-top:10px}.bg[data-v-a58e1222]{width:10rem;min-height:40vh;max-height:60vh;overflow-x:hidden;overflow-y:auto;padding:.53333rem .36rem 0}.top[data-v-a58e1222]{font-weight:500;font-size:.53333rem;color:#000}.top span[data-v-a58e1222]{font-weight:400;font-size:.32rem;color:#666;margin-left:.26667rem;vertical-align:text-bottom}.center[data-v-a58e1222]{height:auto;margin-top:.66667rem}.center .center-items[data-v-a58e1222]{position:relative;padding-bottom:.36rem}.center .center-items .center-item[data-v-a58e1222]{width:7.64rem;height:2.68rem;background:#fff;box-shadow:0 0 .26667rem 0 hsla(0,0%,56%,.3);border-radius:.17333rem;padding:7px;display:flex}.center .center-items .center-item .center-img[data-v-a58e1222]{width:2.49333rem;height:2.49333rem;border-radius:7px;-o-object-fit:cover;object-fit:cover}.center .center-items .center-item .center-content[data-v-a58e1222]{padding:7px 0;margin-left:.2rem;display:flex;flex-direction:column;justify-content:space-between;width:4.58667rem}.center .center-items .center-item .center-content .title[data-v-a58e1222]{font-weight:700;font-size:.38667rem;color:#333;width:4.58667rem}.center .center-items .center-item .center-content .subtitle[data-v-a58e1222]{font-weight:500;font-size:.30667rem;color:#666;width:4.58667rem}.center .center-items .center-item .center-content .location[data-v-a58e1222]{font-weight:700;font-size:.30667rem;color:#71b580;display:flex;align-items:center;margin-left:auto}.center .center-items .center-item .center-content .location img[data-v-a58e1222]{width:.42667rem;height:.42667rem;margin-right:5px}.center .center-items img[data-v-a58e1222]{width:.44rem;height:.44rem}.center .center-btns[data-v-a58e1222]{position:relative}.center .center-btns .center-btn[data-v-a58e1222]{width:7.64rem;line-height:.97333rem;background:#71b580;border-radius:.17333rem;text-align:center;font-weight:400;font-size:.38667rem;color:#fff}.center .center-btns div[data-v-a58e1222]:last-child{width:.44rem}.center .center-num[data-v-a58e1222]{width:.50667rem;line-height:.50667rem;background:#71b580;border-radius:50%;text-align:center;font-weight:500;font-size:.42667rem;color:#fff;position:relative}.center .center-line[data-v-a58e1222]{position:absolute;width:2px;height:100%;background:#71b580;top:1.13333rem;left:.24rem}.btns[data-v-a58e1222]{width:9.46667rem;height:2.30667rem;background:#fff}.btns div[data-v-a58e1222]{width:3.10667rem;line-height:.89333rem;background:#eaeaea;border-radius:.17333rem;text-align:center;font-weight:400;font-size:.36rem;color:#000}.btns div[data-v-a58e1222]:last-child{background:#71b580;color:#fff}.bg[data-v-3d7625cc]{width:10rem;padding:.57333rem 0 1.28rem .36rem;position:relative;overflow:visible}.boxs[data-v-3d7625cc]{max-height:40vh;overflow-y:auto}.title[data-v-3d7625cc]{font-weight:700;font-size:.49333rem;color:#111}.subtitle[data-v-3d7625cc]{font-weight:500;font-size:.32rem;color:#666;margin-top:.2rem}.box[data-v-3d7625cc]{margin-top:.65333rem}.box .item[data-v-3d7625cc]{display:flex;align-items:center;padding-left:.54667rem;height:1.54667rem;position:relative;padding-bottom:.25333rem}.box .item .line[data-v-3d7625cc]{width:0;height:100%;border-left:3px dashed #71b580;position:absolute;top:0;left:.85333rem}.box .item .lineF[data-v-3d7625cc]{height:50%;top:auto;bottom:5px}.box .item .lineE[data-v-3d7625cc]{height:50%;top:5px}.box .item .num[data-v-3d7625cc]{width:.70667rem;height:.70667rem;line-height:.70667rem;background:#fff;border-radius:50%;border:2px solid #71b580;text-align:center;font-weight:700;font-size:.42667rem;color:#71b580;position:relative}.box .item .numS[data-v-3d7625cc]{background:#71b580;color:#fff}.box .item .content[data-v-3d7625cc]{width:7.96rem;height:1.29333rem;background-image:url(https://static.ticket.sz-trip.com/yandu/images/map/lineBg.png);background-size:100% 100%;font-weight:500;font-size:.37333rem;color:#333;display:flex;align-items:center;padding-left:.66667rem}.box .item .contents[data-v-3d7625cc]{background-image:url(https://static.ticket.sz-trip.com/yandu/images/map/lineBgs.png);color:#fff}.info[data-v-3d7625cc]{width:7.64rem;height:2.69333rem;background:#fff;box-shadow:0 0 .26667rem 0 rgba(0,0,0,.3);border-radius:.17333rem;position:absolute;top:-4.13333rem;left:1.17333rem;padding:5px;display:flex}.info .info-img[data-v-3d7625cc]{width:2.49333rem;height:2.49333rem;border-radius:7px;-o-object-fit:cover;object-fit:cover}.info .info-content[data-v-3d7625cc]{padding:7px 0 3px;margin-left:.2rem;display:flex;flex-direction:column;justify-content:space-between;width:4.58667rem}.info .info-content .title[data-v-3d7625cc]{font-weight:700;font-size:.38667rem;color:#333;width:4.58667rem}.info .info-content .subtitle[data-v-3d7625cc]{font-weight:500;font-size:.30667rem;color:#666;width:4.58667rem;margin-top:0}.info .info-content .location[data-v-3d7625cc]{font-weight:700;font-size:.30667rem;color:#71b580;display:flex;align-items:center;margin-left:auto}.info .info-content .location img[data-v-3d7625cc]{width:.42667rem;height:.42667rem;margin-right:5px}.strategy-info[data-v-3d7625cc]{width:9.29333rem;height:2.84rem;background:#fff;box-shadow:0 1px .21333rem 0 hsla(0,0%,60%,.35);border-radius:.26667rem;margin-top:.33333rem;padding:.17333rem;display:flex}.strategy-info .strategy-img[data-v-3d7625cc]{-o-object-fit:cover;object-fit:cover;width:2.49333rem;height:2.49333rem;border-radius:.17333rem}.strategy-info .strategy-content[data-v-3d7625cc]{width:6.06667rem;margin-left:.24rem;flex-direction:column;padding:5px 0;align-items:flex-start}.strategy-info .strategy-content .strategy-title[data-v-3d7625cc]{font-weight:700;font-size:.41333rem;color:#111}.strategy-info .strategy-content .strategy-subtitle[data-v-3d7625cc]{font-weight:500;font-size:.36rem;color:#888;width:100%}.strategy-info .strategy-content .strategy-subtitle div[data-v-3d7625cc]{display:flex;align-items:center}.strategy-info .strategy-content .strategy-subtitle img[data-v-3d7625cc]{width:.36rem;margin-right:5px}.strategy-info .strategy-content .strategy-subtitle .strategy-userImg[data-v-3d7625cc]{width:.49333rem!important;height:.49333rem!important}div[data-v-5f75c33c]{box-sizing:border-box}.mapContainer[data-v-5f75c33c]{width:100%;height:100vh}.type-box[data-v-5f75c33c]{position:fixed;z-index:2000;width:9.64rem;height:.70667rem;top:.29333rem;left:.36rem;display:flex;overflow-x:auto}.type-box .type-item[data-v-5f75c33c]{padding:0 .34667rem;line-height:.70667rem;background:#fff;border-radius:.17333rem;font-weight:500;font-size:.36rem;color:#000;margin-right:.36rem;flex-shrink:0}.type-box .type-active[data-v-5f75c33c]{background:linear-gradient(130deg,#9ee4fe,#7fd491);font-weight:700}.type-box[data-v-5f75c33c]::-webkit-scrollbar{display:none}.area-box[data-v-5f75c33c]{position:fixed;z-index:2000;top:2.04rem;right:.22667rem}.area-box>div[data-v-5f75c33c]{width:1.16rem;height:auto;background:#fff;border-radius:.57333rem;border:2px solid #fff;overflow:hidden}.area-box>div[data-v-5f75c33c]:last-child{margin-top:.32rem}.area-box>div:last-child .area-items[data-v-5f75c33c]{height:1.77333rem!important}.area-box .area-item[data-v-5f75c33c]{height:1.24rem;display:flex;align-items:center;justify-content:center;text-align:center;border-top:1px solid #d8d8d8;font-weight:500;font-size:.29333rem;color:#666}.area-box .area-items[data-v-5f75c33c]{flex-direction:column;justify-content:space-around;height:1.33333rem}.area-box .area-items img[data-v-5f75c33c]{width:.50667rem;height:.50667rem}.area-box .area-active[data-v-5f75c33c]{background:linear-gradient(130deg,#9ee4fe,#7fd491);color:#000;font-weight:700}.addLine-box[data-v-5f75c33c]{width:8.97333rem;height:5.50667rem;background:#fff;border-radius:.36rem;padding:.42667rem .44rem 0 .49333rem;font-weight:700;font-size:.53333rem;color:#000}.addLine-box .addLine-item[data-v-5f75c33c]{font-weight:400;font-size:.38667rem;margin-top:.53333rem}.addLine-box .addLine-item input[data-v-5f75c33c]{outline:none;border:none;height:.36rem;width:5.06667rem;margin-left:.4rem}.addLine-box .addLine-item input[data-v-5f75c33c]::-moz-placeholder{color:#bebebe}.addLine-box .addLine-item input[data-v-5f75c33c]::placeholder{color:#bebebe}.addLine-box .addLine-item img[data-v-5f75c33c]{width:.26667rem;height:.26667rem}.addLine-box .addLine-btn[data-v-5f75c33c]{margin-top:.66667rem}.addLine-box .addLine-btn div[data-v-5f75c33c]{width:3.10667rem;line-height:.89333rem;background:#eaeaea;border-radius:.17333rem;text-align:center;font-weight:500;font-size:.38667rem;color:#000}.addLine-box .addLine-btn div[data-v-5f75c33c]:last-child{background:#71b580;color:#fff}.linePopup[data-v-5f75c33c]{overflow:visible}.linePopup .close-LineBtn[data-v-5f75c33c]{width:1.96rem;line-height:.89333rem;background:rgba(0,0,0,.56);border-radius:.17333rem;text-align:center;font-weight:500;font-size:.36rem;color:#fff;position:absolute;right:.26667rem;top:-1.33333rem}
\ No newline at end of file
+div{box-sizing:border-box}.flex-between{justify-content:space-between}.flex-around,.flex-between{display:flex;align-items:center}.flex-around{justify-content:space-around}.flex-center{display:flex;justify-content:center;align-items:center}.text-overflow{overflow-x:hidden;overflow-y:inherit;text-overflow:ellipsis;white-space:nowrap}.text-overflowRows{overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;word-break:break-all;display:-webkit-box;-webkit-box-orient:vertical}.bg[data-v-1ee6a532]{width:10rem;max-height:60vh;overflow-x:hidden;overflow-y:auto;padding:0 .53333rem .53333rem}.top[data-v-1ee6a532]{height:2.08rem;font-weight:500;font-size:.53333rem;color:#000}.top .top-btn[data-v-1ee6a532]{width:1.77333rem;line-height:.78667rem;background:#f74a57;border-radius:.17333rem;text-align:center;font-size:.42667rem;color:#fff}.img-box[data-v-1ee6a532]{display:flex;overflow-x:auto}.img-box img[data-v-1ee6a532]{width:2.4rem;height:2.4rem;border-radius:.36rem;margin-right:.36rem;-o-object-fit:cover;object-fit:cover}.img-box[data-v-1ee6a532]::-webkit-scrollbar{display:none}.scenic-detail[data-v-1ee6a532]{width:8.93333rem;height:1.93333rem;background:#e8f6eb;border-radius:.17333rem;margin-top:.48rem;padding:.4rem .26667rem .4rem .33333rem;font-weight:500;font-size:.36rem;color:#000}.scenic-detail .scenic-left[data-v-1ee6a532]{flex-direction:column;align-items:left;width:6rem;height:100%}.scenic-detail .scenic-left div[data-v-1ee6a532]{width:6rem}.scenic-detail .scenic-right[data-v-1ee6a532]{width:2rem;font-weight:500;font-size:.32rem;color:#71b580}.scenic-detail .scenic-right img[data-v-1ee6a532]{width:.49333rem;height:.49333rem;margin-bottom:5px}.scenic-detail .scenic-right div[data-v-1ee6a532]{text-align:center}.scenic-content[data-v-1ee6a532]{margin-top:.56rem;font-weight:700;font-size:.42667rem;color:#000}.scenic-content div[data-v-1ee6a532]{font-weight:500;font-size:.36rem;color:#333;line-height:.58667rem;margin-top:10px}.bg[data-v-a58e1222]{width:10rem;min-height:40vh;max-height:60vh;overflow-x:hidden;overflow-y:auto;padding:.53333rem .36rem 0}.top[data-v-a58e1222]{font-weight:500;font-size:.53333rem;color:#000}.top span[data-v-a58e1222]{font-weight:400;font-size:.32rem;color:#666;margin-left:.26667rem;vertical-align:text-bottom}.center[data-v-a58e1222]{height:auto;margin-top:.66667rem}.center .center-items[data-v-a58e1222]{position:relative;padding-bottom:.36rem}.center .center-items .center-item[data-v-a58e1222]{width:7.64rem;height:2.68rem;background:#fff;box-shadow:0 0 .26667rem 0 hsla(0,0%,56%,.3);border-radius:.17333rem;padding:7px;display:flex}.center .center-items .center-item .center-img[data-v-a58e1222]{width:2.49333rem;height:2.49333rem;border-radius:7px;-o-object-fit:cover;object-fit:cover}.center .center-items .center-item .center-content[data-v-a58e1222]{padding:7px 0;margin-left:.2rem;display:flex;flex-direction:column;justify-content:space-between;width:4.58667rem}.center .center-items .center-item .center-content .title[data-v-a58e1222]{font-weight:700;font-size:.38667rem;color:#333;width:4.58667rem}.center .center-items .center-item .center-content .subtitle[data-v-a58e1222]{font-weight:500;font-size:.30667rem;color:#666;width:4.58667rem}.center .center-items .center-item .center-content .location[data-v-a58e1222]{font-weight:700;font-size:.30667rem;color:#71b580;display:flex;align-items:center;margin-left:auto}.center .center-items .center-item .center-content .location img[data-v-a58e1222]{width:.42667rem;height:.42667rem;margin-right:5px}.center .center-items img[data-v-a58e1222]{width:.44rem;height:.44rem}.center .center-btns[data-v-a58e1222]{position:relative}.center .center-btns .center-btn[data-v-a58e1222]{width:7.64rem;line-height:.97333rem;background:#71b580;border-radius:.17333rem;text-align:center;font-weight:400;font-size:.38667rem;color:#fff}.center .center-btns div[data-v-a58e1222]:last-child{width:.44rem}.center .center-num[data-v-a58e1222]{width:.50667rem;line-height:.50667rem;background:#71b580;border-radius:50%;text-align:center;font-weight:500;font-size:.42667rem;color:#fff;position:relative}.center .center-line[data-v-a58e1222]{position:absolute;width:2px;height:100%;background:#71b580;top:1.13333rem;left:.24rem}.btns[data-v-a58e1222]{width:9.46667rem;height:2.30667rem;background:#fff}.btns div[data-v-a58e1222]{width:3.10667rem;line-height:.89333rem;background:#eaeaea;border-radius:.17333rem;text-align:center;font-weight:400;font-size:.36rem;color:#000}.btns div[data-v-a58e1222]:last-child{background:#71b580;color:#fff}.bg[data-v-3d7625cc]{width:10rem;padding:.57333rem 0 1.28rem .36rem;position:relative;overflow:visible}.boxs[data-v-3d7625cc]{max-height:40vh;overflow-y:auto}.title[data-v-3d7625cc]{font-weight:700;font-size:.49333rem;color:#111}.subtitle[data-v-3d7625cc]{font-weight:500;font-size:.32rem;color:#666;margin-top:.2rem}.box[data-v-3d7625cc]{margin-top:.65333rem}.box .item[data-v-3d7625cc]{display:flex;align-items:center;padding-left:.54667rem;height:1.54667rem;position:relative;padding-bottom:.25333rem}.box .item .line[data-v-3d7625cc]{width:0;height:100%;border-left:3px dashed #71b580;position:absolute;top:0;left:.85333rem}.box .item .lineF[data-v-3d7625cc]{height:50%;top:auto;bottom:5px}.box .item .lineE[data-v-3d7625cc]{height:50%;top:5px}.box .item .num[data-v-3d7625cc]{width:.70667rem;height:.70667rem;line-height:.70667rem;background:#fff;border-radius:50%;border:2px solid #71b580;text-align:center;font-weight:700;font-size:.42667rem;color:#71b580;position:relative}.box .item .numS[data-v-3d7625cc]{background:#71b580;color:#fff}.box .item .content[data-v-3d7625cc]{width:7.96rem;height:1.29333rem;background-image:url(https://static.ticket.sz-trip.com/yandu/images/map/lineBg.png);background-size:100% 100%;font-weight:500;font-size:.37333rem;color:#333;display:flex;align-items:center;padding-left:.66667rem}.box .item .contents[data-v-3d7625cc]{background-image:url(https://static.ticket.sz-trip.com/yandu/images/map/lineBgs.png);color:#fff}.info[data-v-3d7625cc]{width:7.64rem;height:2.69333rem;background:#fff;box-shadow:0 0 .26667rem 0 rgba(0,0,0,.3);border-radius:.17333rem;position:absolute;top:-4.13333rem;left:1.17333rem;padding:5px;display:flex}.info .info-img[data-v-3d7625cc]{width:2.49333rem;height:2.49333rem;border-radius:7px;-o-object-fit:cover;object-fit:cover}.info .info-content[data-v-3d7625cc]{padding:7px 0 3px;margin-left:.2rem;display:flex;flex-direction:column;justify-content:space-between;width:4.58667rem}.info .info-content .title[data-v-3d7625cc]{font-weight:700;font-size:.38667rem;color:#333;width:4.58667rem}.info .info-content .subtitle[data-v-3d7625cc]{font-weight:500;font-size:.30667rem;color:#666;width:4.58667rem;margin-top:0}.info .info-content .location[data-v-3d7625cc]{font-weight:700;font-size:.30667rem;color:#71b580;display:flex;align-items:center;margin-left:auto}.info .info-content .location img[data-v-3d7625cc]{width:.42667rem;height:.42667rem;margin-right:5px}.strategy-info[data-v-3d7625cc]{width:9.29333rem;height:2.84rem;background:#fff;box-shadow:0 1px .21333rem 0 hsla(0,0%,60%,.35);border-radius:.26667rem;margin-top:.33333rem;padding:.17333rem;display:flex}.strategy-info .strategy-img[data-v-3d7625cc]{-o-object-fit:cover;object-fit:cover;width:2.49333rem;height:2.49333rem;border-radius:.17333rem}.strategy-info .strategy-content[data-v-3d7625cc]{width:6.06667rem;margin-left:.24rem;flex-direction:column;padding:5px 0;align-items:flex-start}.strategy-info .strategy-content .strategy-title[data-v-3d7625cc]{font-weight:700;font-size:.41333rem;color:#111}.strategy-info .strategy-content .strategy-subtitle[data-v-3d7625cc]{font-weight:500;font-size:.36rem;color:#888;width:100%}.strategy-info .strategy-content .strategy-subtitle div[data-v-3d7625cc]{display:flex;align-items:center}.strategy-info .strategy-content .strategy-subtitle img[data-v-3d7625cc]{width:.36rem;margin-right:5px}.strategy-info .strategy-content .strategy-subtitle .strategy-userImg[data-v-3d7625cc]{width:.49333rem!important;height:.49333rem!important}div[data-v-dcee786a]{box-sizing:border-box}.mapContainer[data-v-dcee786a]{width:100%;height:100vh}.type-box[data-v-dcee786a]{position:fixed;z-index:2000;width:9.64rem;height:.70667rem;top:.29333rem;left:.36rem;display:flex;overflow-x:auto}.type-box .type-item[data-v-dcee786a]{padding:0 .34667rem;line-height:.70667rem;background:#fff;border-radius:.17333rem;font-weight:500;font-size:.36rem;color:#000;margin-right:.36rem;flex-shrink:0}.type-box .type-active[data-v-dcee786a]{background:linear-gradient(130deg,#9ee4fe,#7fd491);font-weight:700}.type-box[data-v-dcee786a]::-webkit-scrollbar{display:none}.area-box[data-v-dcee786a]{position:fixed;z-index:2000;top:2.04rem;right:.22667rem}.area-box>div[data-v-dcee786a]{width:1.16rem;height:auto;background:#fff;border-radius:.57333rem;border:2px solid #fff;overflow:hidden}.area-box>div[data-v-dcee786a]:last-child{margin-top:.32rem}.area-box>div:last-child .area-items[data-v-dcee786a]{height:1.77333rem!important}.area-box .area-item[data-v-dcee786a]{height:1.24rem;display:flex;align-items:center;justify-content:center;text-align:center;border-top:1px solid #d8d8d8;font-weight:500;font-size:.29333rem;color:#666}.area-box .area-items[data-v-dcee786a]{flex-direction:column;justify-content:space-around;height:1.33333rem}.area-box .area-items img[data-v-dcee786a]{width:.50667rem;height:.50667rem}.area-box .area-active[data-v-dcee786a]{background:linear-gradient(130deg,#9ee4fe,#7fd491);color:#000;font-weight:700}.addLine-box[data-v-dcee786a]{width:8.97333rem;height:5.50667rem;background:#fff;border-radius:.36rem;padding:.42667rem .44rem 0 .49333rem;font-weight:700;font-size:.53333rem;color:#000}.addLine-box .addLine-item[data-v-dcee786a]{font-weight:400;font-size:.38667rem;margin-top:.53333rem}.addLine-box .addLine-item input[data-v-dcee786a]{outline:none;border:none;height:.36rem;width:5.06667rem;margin-left:.4rem}.addLine-box .addLine-item input[data-v-dcee786a]::-moz-placeholder{color:#bebebe}.addLine-box .addLine-item input[data-v-dcee786a]::placeholder{color:#bebebe}.addLine-box .addLine-item img[data-v-dcee786a]{width:.26667rem;height:.26667rem}.addLine-box .addLine-btn[data-v-dcee786a]{margin-top:.66667rem}.addLine-box .addLine-btn div[data-v-dcee786a]{width:3.10667rem;line-height:.89333rem;background:#eaeaea;border-radius:.17333rem;text-align:center;font-weight:500;font-size:.38667rem;color:#000}.addLine-box .addLine-btn div[data-v-dcee786a]:last-child{background:#71b580;color:#fff}.linePopup[data-v-dcee786a]{overflow:visible}.linePopup .close-LineBtn[data-v-dcee786a]{width:1.96rem;line-height:.89333rem;background:rgba(0,0,0,.56);border-radius:.17333rem;text-align:center;font-weight:500;font-size:.36rem;color:#fff;position:absolute;right:.26667rem;top:-1.33333rem}
\ No newline at end of file
diff --git a/dist/static/js/app.6218bf07.js b/dist/static/js/app.13e0ffa9.js
similarity index 55%
rename from dist/static/js/app.6218bf07.js
rename to dist/static/js/app.13e0ffa9.js
index 78c8dd6..d50b37f 100644
--- a/dist/static/js/app.6218bf07.js
+++ b/dist/static/js/app.13e0ffa9.js
@@ -1 +1 @@
-(function(){var __webpack_modules__={6700:function(e,t,i){var s={"./af":3906,"./af.js":3906,"./ar":902,"./ar-dz":3853,"./ar-dz.js":3853,"./ar-kw":299,"./ar-kw.js":299,"./ar-ly":6825,"./ar-ly.js":6825,"./ar-ma":6379,"./ar-ma.js":6379,"./ar-ps":3639,"./ar-ps.js":3639,"./ar-sa":7700,"./ar-sa.js":7700,"./ar-tn":2059,"./ar-tn.js":2059,"./ar.js":902,"./az":6043,"./az.js":6043,"./be":7936,"./be.js":7936,"./bg":4078,"./bg.js":4078,"./bm":4014,"./bm.js":4014,"./bn":9554,"./bn-bd":7114,"./bn-bd.js":7114,"./bn.js":9554,"./bo":6529,"./bo.js":6529,"./br":5437,"./br.js":5437,"./bs":9647,"./bs.js":9647,"./ca":9951,"./ca.js":9951,"./cs":6113,"./cs.js":6113,"./cv":7965,"./cv.js":7965,"./cy":5858,"./cy.js":5858,"./da":3515,"./da.js":3515,"./de":2831,"./de-at":6263,"./de-at.js":6263,"./de-ch":1127,"./de-ch.js":1127,"./de.js":2831,"./dv":4510,"./dv.js":4510,"./el":8616,"./el.js":8616,"./en-au":4595,"./en-au.js":4595,"./en-ca":3545,"./en-ca.js":3545,"./en-gb":9609,"./en-gb.js":9609,"./en-ie":3727,"./en-ie.js":3727,"./en-il":3302,"./en-il.js":3302,"./en-in":6305,"./en-in.js":6305,"./en-nz":9128,"./en-nz.js":9128,"./en-sg":4569,"./en-sg.js":4569,"./eo":650,"./eo.js":650,"./es":6358,"./es-do":4214,"./es-do.js":4214,"./es-mx":8639,"./es-mx.js":8639,"./es-us":232,"./es-us.js":232,"./es.js":6358,"./et":7279,"./et.js":7279,"./eu":5515,"./eu.js":5515,"./fa":7981,"./fa.js":7981,"./fi":7090,"./fi.js":7090,"./fil":9208,"./fil.js":9208,"./fo":2799,"./fo.js":2799,"./fr":3463,"./fr-ca":2213,"./fr-ca.js":2213,"./fr-ch":2848,"./fr-ch.js":2848,"./fr.js":3463,"./fy":1468,"./fy.js":1468,"./ga":8163,"./ga.js":8163,"./gd":2898,"./gd.js":2898,"./gl":6312,"./gl.js":6312,"./gom-deva":682,"./gom-deva.js":682,"./gom-latn":9178,"./gom-latn.js":9178,"./gu":5009,"./gu.js":5009,"./he":2795,"./he.js":2795,"./hi":7009,"./hi.js":7009,"./hr":6506,"./hr.js":6506,"./hu":9565,"./hu.js":9565,"./hy-am":9215,"./hy-am.js":9215,"./id":5626,"./id.js":5626,"./is":6649,"./is.js":6649,"./it":151,"./it-ch":3217,"./it-ch.js":3217,"./it.js":151,"./ja":9830,"./ja.js":9830,"./jv":3751,"./jv.js":3751,"./ka":3365,"./ka.js":3365,"./kk":5980,"./kk.js":5980,"./km":9571,"./km.js":9571,"./kn":8911,"./kn.js":8911,"./ko":6809,"./ko.js":6809,"./ku":6773,"./ku-kmr":257,"./ku-kmr.js":257,"./ku.js":6773,"./ky":5505,"./ky.js":5505,"./lb":553,"./lb.js":553,"./lo":1237,"./lo.js":1237,"./lt":1563,"./lt.js":1563,"./lv":1057,"./lv.js":1057,"./me":6495,"./me.js":6495,"./mi":3096,"./mi.js":3096,"./mk":3874,"./mk.js":3874,"./ml":6055,"./ml.js":6055,"./mn":7747,"./mn.js":7747,"./mr":7113,"./mr.js":7113,"./ms":8687,"./ms-my":7948,"./ms-my.js":7948,"./ms.js":8687,"./mt":4532,"./mt.js":4532,"./my":4655,"./my.js":4655,"./nb":6961,"./nb.js":6961,"./ne":2512,"./ne.js":2512,"./nl":8448,"./nl-be":2936,"./nl-be.js":2936,"./nl.js":8448,"./nn":9031,"./nn.js":9031,"./oc-lnc":5174,"./oc-lnc.js":5174,"./pa-in":118,"./pa-in.js":118,"./pl":3448,"./pl.js":3448,"./pt":3518,"./pt-br":2447,"./pt-br.js":2447,"./pt.js":3518,"./ro":817,"./ro.js":817,"./ru":262,"./ru.js":262,"./sd":8990,"./sd.js":8990,"./se":3842,"./se.js":3842,"./si":7711,"./si.js":7711,"./sk":756,"./sk.js":756,"./sl":3772,"./sl.js":3772,"./sq":6187,"./sq.js":6187,"./sr":732,"./sr-cyrl":5713,"./sr-cyrl.js":5713,"./sr.js":732,"./ss":9455,"./ss.js":9455,"./sv":9770,"./sv.js":9770,"./sw":959,"./sw.js":959,"./ta":6459,"./ta.js":6459,"./te":5302,"./te.js":5302,"./tet":7975,"./tet.js":7975,"./tg":1294,"./tg.js":1294,"./th":2385,"./th.js":2385,"./tk":4613,"./tk.js":4613,"./tl-ph":8668,"./tl-ph.js":8668,"./tlh":8190,"./tlh.js":8190,"./tr":4506,"./tr.js":4506,"./tzl":3440,"./tzl.js":3440,"./tzm":9852,"./tzm-latn":2350,"./tzm-latn.js":2350,"./tzm.js":9852,"./ug-cn":730,"./ug-cn.js":730,"./uk":99,"./uk.js":99,"./ur":2100,"./ur.js":2100,"./uz":6002,"./uz-latn":6322,"./uz-latn.js":6322,"./uz.js":6002,"./vi":4207,"./vi.js":4207,"./x-pseudo":4674,"./x-pseudo.js":4674,"./yo":570,"./yo.js":570,"./zh-cn":3644,"./zh-cn.js":3644,"./zh-hk":2591,"./zh-hk.js":2591,"./zh-mo":9503,"./zh-mo.js":9503,"./zh-tw":8080,"./zh-tw.js":8080};function a(e){var t=n(e);return i(t)}function n(e){if(!i.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}a.keys=function(){return Object.keys(s)},a.resolve=n,e.exports=a,a.id=6700},3864:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{P:function(){return setStore},b:function(){return getStore}});var _libs_tools__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1603);const keyName="-",setStore=(e={})=>{let{name:t,content:i,type:s}=e;t=keyName+t;let a={dataType:typeof i,content:i,type:s,datetime:(new Date).getTime()};s?window.sessionStorage.setItem(t,JSON.stringify(a)):window.localStorage.setItem(t,JSON.stringify(a))},getStore=(params={})=>{let{name:name,debug:debug}=params;name=keyName+name;let obj={},content;if(obj=window.sessionStorage.getItem(name),(0,_libs_tools__WEBPACK_IMPORTED_MODULE_0__.H)(obj)&&(obj=window.localStorage.getItem(name)),!(0,_libs_tools__WEBPACK_IMPORTED_MODULE_0__.H)(obj)){try{obj=JSON.parse(obj)}catch{return obj}return debug?obj:("string"==obj.dataType?content=obj.content:"number"==obj.dataType?content=Number(obj.content):"boolean"==obj.dataType?content=eval(obj.content):"object"==obj.dataType&&(content=obj.content),content)}}},1603:function(e,t,i){"use strict";function s(e){if("boolean"==typeof e)return!1;if("number"==typeof e)return!1;if(e instanceof Array){if(0==e.length)return!0}else{if(!(e instanceof Object))return"null"==e||null==e||"undefined"==e||void 0==e||""==e;if("{}"===JSON.stringify(e))return!0}return!1}i.d(t,{H:function(){return s}})},5880:function(e,t,i){"use strict";var s=i(6369),a=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"app"}},[t("keep-alive",[e.$route.meta.keepAlive?t("router-view"):e._e()],1),e.$route.meta.keepAlive?e._e():t("router-view")],1)},n=[],o={name:"App",mounted(){}},r=o,l=i(1001),c=(0,l.Z)(r,a,n,!1,null,null,null),d=c.exports,u=i(3822),p=i(3864),h={state:{userInfo:(0,p.b)({name:"userInfo"})||"",lineDetail:(0,p.b)({})},mutations:{changeUserInfo(e,t){e.userInfo=t,(0,p.P)({name:"userInfo",content:e.userInfo,type:"session"}),t&&t.token&&localStorage.setItem("userInfo",JSON.stringify(t))},changeLineDetail(e,t){e.lineDetail=t,(0,p.P)({name:"lineDetail",content:e.lineDetail,type:"session"})}},getters:{},actions:{}};s.ZP.use(u.ZP);var _=new u.ZP.Store({state:{},mutations:{},actions:{},modules:{namespaced:!0,user:h}}),m=i(5939),g=i(8848),f=i(5348);const b=m.Z.create({baseURL:"https://tongli.sz-trip.com",timeout:6e3});b.interceptors.request.use((e=>{const t=_.state.user.userInfo.token;return e.headers["token"]=t,e.headers["Content-Type"]="application/json;charset=UTF-8",g.Z.loading({message:"加载中...",forbidClick:!0,duration:0}),e}),(e=>Promise.reject(e))),b.interceptors.response.use((e=>{if(g.Z.clear(),200===e.status||1===e.status)return e.data}),(e=>{if(e.response&&e.response.status)switch(e.response.status){case 401:f.Z.confirm({title:"提示",message:"请登录后操作",confirmButtonText:"去登录"}).then((()=>{}));break;case 404:g.Z.fail({type:"fail",message:"网络繁忙,请刷新再试",forbidClick:!0,duration:2e3});break;default:g.Z.fail({type:"fail",message:"网络繁忙,请刷新再试",forbidClick:!0,duration:2e3});break}})),s.ZP.prototype.get=(e,t,i)=>new Promise(((s,a)=>{b.get(t,{params:e},i).then((e=>{s(e)})).catch((e=>{a(e)}))})),s.ZP.prototype.post=(e,t,i)=>new Promise(((s,a)=>{b.post(t,e,i).then((e=>{s(e)})).catch((e=>{a(e)}))}));i(3434);var y=i(2631),v=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"mapContainer",attrs:{id:"mapContainer"}}),e.typeShow?t("div",{staticClass:"type-box"},e._l(e.mapType,(function(i,s){return t("div",{class:["type-item",{"type-active":s==e.typeIndex}],on:{click:function(t){return e.getSpotsByCategory(s)}}},[e._v(e._s(i.name))])})),0):e._e(),e.typeShow?t("div",{staticClass:"area-box"},[t("div",[t("div",{staticClass:"area-item area-items",on:{click:function(t){e.areaMore=!e.areaMore}}},[t("img",{attrs:{src:"https://static.ticket.sz-trip.com/yandu/images/map/"+(e.areaMore?"topIcon.png":"bottomIcon.png"),alt:""}}),e._v(" "+e._s(e.areaMore?"收起":"展开")+" ")]),e.areaMore?t("div",e._l(e.areaList,(function(i,s){return t("div",{key:s,class:["area-item",{"area-active":s==e.areaIndex}],on:{click:function(t){return e.changeArea(s)}}},[e._v(" "+e._s(i.name)+" ")])})),0):e._e()]),t("div",[e.isMyLine?t("div",{staticClass:"area-item area-items",on:{click:e.addLine}},[t("img",{attrs:{src:"https://static.ticket.sz-trip.com/yandu/images/map/myLine.png",alt:""}}),e._v(" 我的"),t("br"),e._v("行程 ")]):t("div",{staticClass:"area-item area-items",on:{click:e.addLine}},[t("img",{attrs:{src:"https://static.ticket.sz-trip.com/yandu/images/map/addLine.png",alt:""}}),e._v(" 添加"),t("br"),e._v("行程 ")]),t("div",{staticClass:"area-item area-items",on:{click:e.gotoLine}},[t("img",{attrs:{src:"https://static.ticket.sz-trip.com/yandu/images/map/line.png",alt:""}}),e._v(" 线路"),t("br"),e._v("推荐 ")])])]):e._e(),t("van-popup",{attrs:{"overlay-style":{"background-color":"rgba(0, 0, 0, 0)"},position:"bottom",round:""},on:{close:e.audioPause},model:{value:e.detailShow,callback:function(t){e.detailShow=t},expression:"detailShow"}},[t("ProductDetail",{ref:"detailRef",attrs:{type:e.productType,info:e.detailInfo,audioSrc:e.audioSrc,genreType:e.genreType}})],1),t("van-popup",{attrs:{position:"center",round:""},model:{value:e.addLineShow,callback:function(t){e.addLineShow=t},expression:"addLineShow"}},[t("div",{staticClass:"addLine-box"},[e._v(" 添加行程 "),t("div",{staticClass:"addLine-item"},[e._v(" 线路名称: "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.lineName,expression:"lineName"}],attrs:{type:"text",placeholder:"请输入线路名称"},domProps:{value:e.lineName},on:{input:function(t){t.target.composing||(e.lineName=t.target.value)}}})]),t("div",{staticClass:"addLine-item"},[e._v(" 开始时间: "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.lineDate,expression:"lineDate"}],attrs:{type:"text",placeholder:"请选择出发时间",readonly:""},domProps:{value:e.lineDate},on:{click:function(t){e.lineDateShow=!0},input:function(t){t.target.composing||(e.lineDate=t.target.value)}}}),t("img",{attrs:{src:"https://static.ticket.sz-trip.com/yandu/images/map/dateRight.png",alt:""}})]),t("div",{staticClass:"addLine-btn flex-around"},[t("div",{on:{click:function(t){e.addLineShow=!1}}},[e._v("取消")]),t("div",{on:{click:e.lineClick}},[e._v("下一步")])])])]),t("van-popup",{attrs:{round:"",position:"bottom"},model:{value:e.lineDateShow,callback:function(t){e.lineDateShow=t},expression:"lineDateShow"}},[t("van-datetime-picker",{attrs:{type:"date",title:"选择年月日"},on:{confirm:e.lineDateConfirm,cancel:function(t){e.lineDateShow=!1}},model:{value:e.currentDate,callback:function(t){e.currentDate=t},expression:"currentDate"}})],1),t("van-popup",{attrs:{round:"",position:"bottom"},model:{value:e.lineRouteShow,callback:function(t){e.lineRouteShow=t},expression:"lineRouteShow"}},[t("LineRoute",{ref:"lineRouteRef",attrs:{lineItem:e.addLineInfo}})],1),t("van-popup",{staticClass:"linePopup",attrs:{overlay:!1,"overlay-style":{"background-color":"rgba(0, 0, 0, 0)"},round:"",position:"bottom"},on:{close:e.closeLine},model:{value:e.lineDetailShow,callback:function(t){e.lineDetailShow=t},expression:"lineDetailShow"}},[t("div",{staticClass:"close-LineBtn",on:{click:e.closeLine}},[e._v(" 退出线路 ")]),t("LineDetail",{on:{changeCenter:e.changeMapCenter}})],1)],1)},k=[],w=(i(7658),i(6797)),j=i.n(w),S=function(){var e=this,t=e._self._c;return t("div",{staticClass:"bg"},[t("div",{staticClass:"top flex-between"},[e._v(" "+e._s(e.info.title)+" "),e.type?t("div",{staticClass:"top-btn",on:{click:function(t){return e.util.gotoDetailMini(e.info)}}},[e._v("购买")]):e._e()]),e.type&&e.info.list_images?t("div",{staticClass:"img-box"},e._l(e.info.list_images.split(","),(function(i,s){return t("img",{attrs:{src:e.util.showImg(i),alt:""}})})),0):e._e(),t("div",{staticClass:"scenic-detail flex-between",style:{marginTop:e.type?"":"0"}},[t("div",{staticClass:"scenic-left flex-between"},[e.type?t("div",{staticClass:"text-overflow"},[e._v("营业时间:"+e._s(e.info.open_time)+"-"+e._s(e.info.close_time))]):e._e(),t("div",{class:[e.type?"text-overflow":"text-overflowRows"]},[e._v("地址:"+e._s(e.info.address))])]),t("div",{staticClass:"scenic-right flex-between"},[e.type&&e.audioSrc?t("div",[e.isAudioPlay?t("img",{attrs:{src:"https://static.ticket.sz-trip.com/yandu/images/map/pause.png"},on:{click:function(t){return e.audioPlay(!1)}}}):t("img",{attrs:{src:"https://static.ticket.sz-trip.com/yandu/images/map/play.png"},on:{click:function(t){return e.audioPlay(!0)}}}),t("div",[e._v("讲解")])]):t("div"),t("div",{on:{click:function(t){return e.util.openMap(e.info)}}},[t("img",{attrs:{src:"https://static.ticket.sz-trip.com/yandu/images/map/navigation.png",alt:""}}),t("div",[e._v("导航")])])])]),e.type?t("div",{staticClass:"scenic-content"},[e._v(" 简介: "),t("div",{domProps:{innerHTML:e._s(e.util.formateRichText(e.info.feature_content))}})]):e._e(),t("audio",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"audio",attrs:{src:e.audioSrc,controls:""},on:{ended:e.endAudio}})])},L=[],C={props:{type:{type:Boolean,default:!0},info:{type:Object,detault:{}},audioSrc:{type:String,detault:""},genreType:{type:String,detault:""}},data(){return{isAudioPlay:!1}},mounted(){this.$refs.audio.src=this.util.showImg(this.audioSrc)},methods:{audioPlay(e){e?(this.$refs.audio.play(),this.isAudioPlay=!0):(this.$refs.audio.pause(),this.isAudioPlay=!1)},endAudio(){this.isAudioPlay=!1}}},I=C,x=(0,l.Z)(I,S,L,!1,null,"1ee6a532",null),M=x.exports,D=function(){var e=this,t=e._self._c;return t("div",{staticClass:"bg"},[t("div",{staticClass:"top"},[e._v(" "+e._s(e.lineName)+" "),t("span",[e._v(e._s(e.lineDate))])]),t("div",{staticClass:"center"},[e._l(e.list,(function(i,s){return t("div",{key:s,staticClass:"center-items flex-between"},[t("div",{staticClass:"center-line"}),t("div",{staticClass:"center-num"},[e._v(e._s(s+1))]),t("div",{staticClass:"center-item"},[t("img",{staticClass:"center-img",attrs:{src:e.util.showImg(i.image)}}),t("div",{staticClass:"center-content"},[t("div",{staticClass:"title text-overflow"},[e._v(e._s(i.title))]),t("div",{staticClass:"subtitle text-overflow"},[e._v("营业时间:"+e._s(i.open_time)+"-"+e._s(i.close_time))]),t("div",{staticClass:"subtitle text-overflow"},[e._v("地址:"+e._s(i.address))]),t("div",{staticClass:"location",on:{click:function(t){return e.util.openMap(i)}}},[t("img",{attrs:{src:"https://static.ticket.sz-trip.com/yandu/images/map/lineLocation.png",alt:""}}),e._v(" 导航 ")])])]),t("img",{attrs:{src:"https://static.ticket.sz-trip.com/yandu/images/map/delLine.png",alt:""},on:{click:function(t){return e.delLine(s)}}})])})),t("div",{staticClass:"center-btns flex-between",on:{click:e.addLine}},[0==e.list.length?t("div",{staticClass:"center-line",style:{top:0==e.list.length?"20px":""}}):e._e(),t("div",{staticClass:"center-num"},[e._v(e._s(0==e.list.length?"1":""))]),t("div",{staticClass:"center-btn"},[e._v(" +添加行程 ")]),t("div")])],2),t("div",{staticClass:"btns flex-around"},[t("div",{on:{click:function(t){return e.submit(0)}}},[e._v("取消")]),t("div",{on:{click:function(t){return e.submit(1)}}},[e._v("保存")])])])},T=[],P={props:["lineItem"],data(){return{lineName:sessionStorage.getItem("lineName"),lineDate:sessionStorage.getItem("lineDate"),list:[],spotIds:[]}},mounted(){this.list=[],this.spotIds=[]},watch:{lineItem:{handler(e,t){e&&this.addLineList()},immediate:!0}},methods:{upData(){this.lineName=sessionStorage.getItem("lineName"),this.lineDate=sessionStorage.getItem("lineDate")},addLine(){this.$parent.$parent.addlineRoute(1)},addLineList(){["ticket","hotel"].includes(this.lineItem.genre)?this.get({id:this.lineItem.id},"/api/scenic/getScenicById").then((e=>{e.data&&(this.spotIds.push(this.lineItem.spotId),this.list.push(e.data))})):"food"==this.lineItem.genre&&this.get({goods_id:this.lineItem.id},"/api/goods/getGoodDetail").then((e=>{e.data&&(this.spotIds.push(this.lineItem.spotId),this.list.push(e.data))})),this.$parent.$parent.lineRouteShow=!0},delLine(e){this.list.splice(e,1),this.spotIds.splice(e,1)},submit(e){e?this.post({name:sessionStorage.getItem("lineName"),date:sessionStorage.getItem("lineDate"),scenic_id:sessionStorage.getItem("lineCode"),spot_id:this.spotIds.toString()},"/api/emap/addUserLinePoints").then((e=>{1==e.code&&(this.$toast("添加成功"),setTimeout((()=>{this.$parent.$parent.isMyLine=!0,this.$parent.$parent.addlineRoute(0)}),800),setTimeout((()=>{this.list=[],this.spotIds=[]}),2e3))})):(this.list=[],this.spotIds=[],this.$parent.$parent.addlineRoute(0))}}},O=P,q=(0,l.Z)(O,D,T,!1,null,"a58e1222",null),z=q.exports,A=function(){var e=this,t=e._self._c;return t("div",{staticClass:"bg"},[e.info?t("div",{staticClass:"info"},[t("img",{staticClass:"info-img",attrs:{src:e.util.showImg(e.info.image)}}),t("div",{staticClass:"info-content"},[t("div",{staticClass:"title text-overflow"},[e._v(e._s(e.info.title))]),t("div",{staticClass:"subtitle text-overflow"},[e._v("营业时间:"+e._s(e.info.open_time)+"-"+e._s(e.info.close_time))]),t("div",{staticClass:"subtitle text-overflow"},[e._v("地址:"+e._s(e.info.address))]),t("div",{staticClass:"location",on:{click:function(t){return e.util.openMap(e.info)}}},[t("img",{attrs:{src:"https://static.ticket.sz-trip.com/yandu/images/map/lineLocation.png",alt:""}}),e._v(" 导航 ")])])]):e._e(),t("div",{staticClass:"boxs"},[t("div",{staticClass:"title"},[e._v(e._s(e.detail.name))]),e.detail&&e.detail.points?t("div",{staticClass:"subtitle"},[e._v(e._s(e.detail.points.length)+"个景点")]):e._e(),e.detail&&e.detail.points?t("div",{staticClass:"box"},e._l(e.detail.points,(function(i,s){return t("div",{key:s,staticClass:"item"},[t("div",{class:["line",{lineF:0==s,lineE:s+1==e.detail.points.length,lineS:s==e.selectIndex}]}),t("div",{class:["num",{numS:s==e.selectIndex,numE:s+1==e.detail.points.length}]},[e._v(" "+e._s(0==s?"起":s+1==e.detail.points.length?"终":s+1)+" ")]),t("div",{class:["content",{contents:e.selectIndex==s}],on:{click:function(t){return e.choosePoint(i,s)}}},[e._v(" "+e._s(i.name)+" ")])])})),0):e._e(),e.strategyInfo?t("div",[t("div",{staticClass:"title"},[e._v("推荐攻略")]),t("div",{staticClass:"strategy-info",on:{click:function(t){return e.util.gotoDetailMini(e.strategyInfo)}}},[t("img",{staticClass:"strategy-img",attrs:{src:e.util.showImg(e.strategyInfo.image)}}),t("div",{staticClass:"strategy-content flex-between"},[t("div",{staticClass:"strategy-title text-overflowRows"},[e._v(e._s(e.strategyInfo.title))]),t("div",{staticClass:"strategy-subtitle flex-between"},[t("div",[t("img",{attrs:{src:e.util.showImg(e.strategyInfo.author_img),alt:""}}),e._v(" "+e._s(e.strategyInfo.author)+" ")]),t("div",[t("img",{attrs:{src:"https://static.ticket.sz-trip.com/yandu/images/map/eye.png",alt:""}}),e._v(" "+e._s(e.strategyInfo.view)+" ")])])])])]):e._e()])])},$=[],N={data(){return{detail:{},selectIndex:null,info:null,strategyInfo:null}},mounted(){this.detail=this.$store.state.user.lineDetail,this.get({id:this.detail.article_id},"/api/article/getArticleById").then((e=>{e.data.id&&(this.strategyInfo=e.data)}))},methods:{choosePoint(e,t){if(this.selectIndex==t)return this.info=null,void(this.selectIndex=null);this.selectIndex=t,["ticket","hotel"].includes(e.goods.genre)?this.get({id:e.goods.scenic_id},"/api/scenic/getScenicById").then((t=>{t.data&&(this.info=t.data,this.$emit("changeCenter",e.lonlat))})):"food"==e.goods.genre&&this.get({goods_id:e.goods.id},"/api/goods/getGoodDetail").then((t=>{t.data&&(this.info=t.data,this.$emit("changeCenter",e.lonlat))}))}}},R=N,Z=(0,l.Z)(R,A,$,!1,null,"3d7625cc",null),E=Z.exports,B={components:{ProductDetail:M,LineRoute:z,LineDetail:E},data(){return{mapObj:null,mapMarker:null,basics:{},mapType:[],typeShow:!0,typeIndex:-1,areaList:[],areaIndex:0,areaMore:!0,detailShow:!1,productType:!0,addLineShow:!1,lineName:"",lineDate:"",lineDateShow:!1,currentDate:new Date,lineRouteShow:!1,lineAddStatus:!1,addLineInfo:"",maps:[],lineDetailShow:!1,lineInfo:{},detailInfo:{},audioSrc:"",genreType:"",isMyLine:!1,mapSrc:""}},mounted(){this.getAreaList(),this.$route.query.token&&this.$store.commit("changeUserInfo",{token:this.$route.query.token}),sessionStorage.getItem("addUserLine")&&(this.lineName="",this.lineDate="",this.addLineShow=!0,sessionStorage.removeItem("addUserLine"))},activated(){},methods:{getAreaList(){this.post({},"/api/emap/get_map_list").then((e=>{this.areaList=e.data,e.data.length>0&&(this.getAreaDetail(),this.getCategory(),this.getMyLine())}))},changeArea(e){this.areaIndex=e,this.mapObj.destroy(),this.getAreaDetail(),this.getCategory(),this.getMyLine()},getAreaDetail(){this.post({code:this.areaList[this.areaIndex].code},"/api/emap/get_init").then((e=>{this.basics=e.data,this.basics.center_poi=JSON.parse(this.basics.center_poi),this.basics.lb_poi=JSON.parse(this.basics.lb_poi),this.basics.rt_poi=JSON.parse(this.basics.rt_poi),this.mapSrc=this.basics.tile_image_formatter,this.$nextTick((()=>{this.initMap()}))}))},getCategory(){this.post({code:this.areaList[this.areaIndex].code},"/api/emap/getByCategory").then((e=>{this.mapType=e.data,this.mapType.length>0&&this.getSpotsByCategory(0)}))},getSpotsByCategory(e){this.typeIndex=e,this.post({code:this.areaList[this.areaIndex].code,category_id:this.mapType[this.typeIndex].id},"/api/emap/getSpotsByCategory").then((e=>{this.maps=e.data,this.lineAddStatus=!1,this.$store.state.user.lineDetail&&this.$store.state.user.lineDetail.points.length>0||(this.clearMarkers(),this.maps.length>0&&this.setMarkers())}))},getMyLine(){this.post({type:1,code:this.areaList[this.areaIndex].code},"/api/emap/getLineByCode").then((e=>{e.data&&e.data.length>0?this.isMyLine=!0:this.isMyLine=!1}))},initMap(){this.basics.center_poi[1],this.basics.center_poi[0];var e=new TMap.LatLng(this.basics.center_poi[1],this.basics.center_poi[0]),t=new TMap.LatLng(this.basics.rt_poi[1],this.basics.rt_poi[0]),i=new TMap.LatLng(this.basics.lb_poi[1],this.basics.lb_poi[0]),s=new TMap.LatLngBounds(i,t);this.mapObj=new TMap.Map("mapContainer",{center:e,boundary:s,zoom:10,minZoom:10,maxZoom:15,showControl:!0,viewMode:"2D",rotatable:!1,rotation:0,pitchable:!1,baseMap:{type:"vector",features:[]}}),this.mapObj.removeControl(TMap.constants.DEFAULT_CONTROL_ID.ZOOM),this.mapObj.removeControl(TMap.constants.DEFAULT_CONTROL_ID.ROTATION);new TMap.ImageTileLayer({getTileUrl:(e,t,i)=>{let s=this.mapSrc+i+"/"+e+"/"+t+".png";return s},tileSize:256,minZoom:10,maxZoom:15,visible:!0,zIndex:5e3,opacity:1,map:this.mapObj});this.$store.state.user.lineDetail&&this.$store.state.user.lineDetail.points.length>0&&this.$nextTick((()=>{this.showLineDetail()}))},setMarkers(){let e=[],t=[];this.maps.forEach((i=>{e.push({styleId:"marker",id:i.goods?"food"==i.goods.genre?i.goods.id:i.goods.scenic_id:"",genre:i.goods?i.goods.genre:"",name:i.name,address:i.address,audioSrc:i.audio_file,spotId:i.id,position:new TMap.LatLng(i.poi_gcj02[1],i.poi_gcj02[0])}),t.push({id:"label",styleId:"label",position:new TMap.LatLng(i.poi_gcj02[1],i.poi_gcj02[0]),content:i.name,properties:{title:"label"}})})),this.multiMarker=new TMap.MultiMarker({id:"marker-layer",map:this.mapObj,styles:{marker:new TMap.MarkerStyle({width:24,height:30,src:"https://static.ticket.sz-trip.com/yandu/images/map/scenic.png",src:this.util.showImg(this.mapType.find((e=>e.id==this.maps[0].category_id)).icon_image)})},geometries:e}),this.multiMarker.on("click",this.markerClick),this.multiLabel=new TMap.MultiLabel({id:"label-layer",map:this.mapObj,collisionOptions:{sameSource:!0},styles:{label:new TMap.LabelStyle({color:"#FFF",size:13,offset:{x:0,y:15},angle:0,alignment:"center",verticalAlignment:"middle",backgroundColor:"rgba(0, 0, 0, .5)",borderRadius:7,padding:"2px 8px"})},geometries:t})},clearMarkers(){this.multiMarker&&(this.multiMarker.setMap(null),this.multiMarker=null),this.multiLabel&&(this.multiLabel.setMap(null),this.multiLabel=null)},changeMapCenter(e){this.mapObj.panTo(new TMap.LatLng(e[1],e[0]))},markerClick(e){this.lineAddStatus?this.$dialog.confirm({title:"",message:"是否将"+e.geometry.name+"加入行程?"}).then((()=>{this.addLineInfo=e.geometry})).catch((()=>{})):(this.audioSrc=e.geometry.audioSrc,this.genreType=e.geometry.genre,["ticket","hotel"].includes(e.geometry.genre)?this.get({id:e.geometry.id},"/api/scenic/getScenicById").then((t=>{t.data&&(this.productType=!0,this.detailInfo=t.data,this.detailInfo.genre=e.geometry.genre,this.detailShow=!0)})):"food"==e.geometry.genre?this.get({goods_id:e.geometry.id},"/api/goods/getGoodDetail").then((e=>{e.data&&(this.productType=!0,this.detailInfo=e.data,this.detailShow=!0)})):(this.detailInfo={title:e.geometry.name,address:e.geometry.address,lon:e.geometry.position.lng,lat:e.geometry.position.lat},this.productType=!1,this.detailShow=!0))},gotoLine(){this.$router.push({path:"/lineList",query:{code:this.areaList[this.areaIndex].code}})},audioPause(){this.$refs.detailRef.audioPlay(!1)},addLine(){this.$store.commit("changeLineDetail",{}),this.isMyLine?this.$router.push({path:"/lineList",query:{code:this.areaList[this.areaIndex].code,type:"1"}}):(this.lineName="",this.lineDate="",this.addLineShow=!0)},lineDateConfirm(){this.lineDate=j()(this.currentDate).format("YYYY-MM-DD"),this.lineDateShow=!1},lineClick(){0==this.lineName.trim().length||0==this.lineDate.trim().length?this.$toast("请输入行程信息"):(sessionStorage.setItem("lineName",this.lineName),sessionStorage.setItem("lineDate",this.lineDate),sessionStorage.setItem("lineCode",this.areaList[this.areaIndex].id),this.addLineShow=!1,this.lineRouteShow=!0,this.$nextTick((()=>{this.$refs.lineRouteRef.upData()})))},addlineRoute(e){this.lineRouteShow=!1,e?this.post({code:this.areaList[this.areaIndex].code},"/api/emap/getUserSpotsByCategory").then((e=>{1==e.code&&(this.maps=e.data,this.lineAddStatus=!0,this.typeShow=!1,this.clearMarkers(),this.maps.length>0&&this.setMarkers(),this.multiMarker.setStyles({marker:new TMap.MarkerStyle({width:24,height:30,src:"https://static.ticket.sz-trip.com/yandu/images/map/add.png"})}))})):(this.clearMarkers(),this.typeShow=!0,this.lineAddStatus=!1,this.setMarkers())},showLineDetail(){this.clearMarkers(),this.typeShow=!1,this.lineDetailShow=!0;let e=this.$store.state.user.lineDetail,t=[],i=[];e.points.forEach(((s,a)=>{t.push(new TMap.LatLng(s.lonlat[1],s.lonlat[0])),i.push({id:"label",styleId:"label",position:new TMap.LatLng(s.lonlat[1],s.lonlat[0]),content:0==a?"起":a+1==e.points.length?"终":(a+1).toString(),properties:{title:"label"}})})),this.multiLabel=new TMap.MultiLabel({id:"label-layer",map:this.mapObj,collisionOptions:{sameSource:!0},styles:{label:new TMap.LabelStyle({color:"#FF7F00",size:16,offset:{x:0,y:0},angle:0,alignment:"center",verticalAlignment:"middle",backgroundColor:"#fff",borderRadius:50,padding:"8px",width:23,height:23})},geometries:i}),this.MultiPolyline=new TMap.MultiPolyline({id:"polyline-layer",map:this.mapObj,styles:{style_blue:new TMap.PolylineStyle({width:4,color:"#3777FF",borderWidth:2,borderColor:"#FFF",lineCap:"butt"})},geometries:[{id:"style_blue",styleId:"style_blue",paths:t}]}),setTimeout((()=>{this.$store.commit("changeLineDetail",{})}),1e3)},closeLine(){this.lineDetailShow=!1,this.$store.commit("changeLineDetail",{}),this.clearMarkers(),this.MultiPolyline&&(this.MultiPolyline.setMap(null),this.MultiPolyline=null),this.typeShow=!0,this.setMarkers()}}},F=B,U=(0,l.Z)(F,v,k,!1,null,"5f75c33c",null),J=U.exports;s.ZP.use(y.Z);const V=[{path:"/",name:"index",meta:{title:"首页",keepAlive:!1},component:J},{path:"/lineList",name:"lineList",meta:{title:"",keepAlive:!1},component:()=>i.e(102).then(i.bind(i,2102))}],W=new y.Z({mode:"history",base:"/",routes:V});var H=W,G={install(e){e.prototype.util={formateRichText(e){if(!e)return"";var t=new RegExp("
'),t=new RegExp("section","g"),e=e.replace(t,"div"),t=new RegExp("↵","g"),e=e.replace(t,"
"),e=e.replace(/e(d)}).$mount("#app")}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var i=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(i.exports,i,i.exports,__webpack_require__),i.loaded=!0,i.exports}__webpack_require__.m=__webpack_modules__,function(){var e=[];__webpack_require__.O=function(t,i,s,a){if(!i){var n=1/0;for(c=0;c=a)&&Object.keys(__webpack_require__.O).every((function(e){return __webpack_require__.O[e](i[r])}))?i.splice(r--,1):(o=!1,a0&&e[c-1][2]>a;c--)e[c]=e[c-1];e[c]=[i,s,a]}}(),function(){__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return __webpack_require__.d(t,{a:t}),t}}(),function(){__webpack_require__.d=function(e,t){for(var i in t)__webpack_require__.o(t,i)&&!__webpack_require__.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}}(),function(){__webpack_require__.f={},__webpack_require__.e=function(e){return Promise.all(Object.keys(__webpack_require__.f).reduce((function(t,i){return __webpack_require__.f[i](e,t),t}),[]))}}(),function(){__webpack_require__.u=function(e){return"static/js/"+e+".bf962f89.js"}}(),function(){__webpack_require__.miniCssF=function(e){return"static/css/"+e+".73f801e1.css"}}(),function(){__webpack_require__.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="taihulake:";__webpack_require__.l=function(i,s,a,n){if(e[i])e[i].push(s);else{var o,r;if(void 0!==a)for(var l=document.getElementsByTagName("script"),c=0;c{let{name:t,content:i,type:s}=e;t=keyName+t;let a={dataType:typeof i,content:i,type:s,datetime:(new Date).getTime()};s?window.sessionStorage.setItem(t,JSON.stringify(a)):window.localStorage.setItem(t,JSON.stringify(a))},getStore=(params={})=>{let{name:name,debug:debug}=params;name=keyName+name;let obj={},content;if(obj=window.sessionStorage.getItem(name),(0,_libs_tools__WEBPACK_IMPORTED_MODULE_0__.H)(obj)&&(obj=window.localStorage.getItem(name)),!(0,_libs_tools__WEBPACK_IMPORTED_MODULE_0__.H)(obj)){try{obj=JSON.parse(obj)}catch{return obj}return debug?obj:("string"==obj.dataType?content=obj.content:"number"==obj.dataType?content=Number(obj.content):"boolean"==obj.dataType?content=eval(obj.content):"object"==obj.dataType&&(content=obj.content),content)}}},1603:function(e,t,i){"use strict";function s(e){if("boolean"==typeof e)return!1;if("number"==typeof e)return!1;if(e instanceof Array){if(0==e.length)return!0}else{if(!(e instanceof Object))return"null"==e||null==e||"undefined"==e||void 0==e||""==e;if("{}"===JSON.stringify(e))return!0}return!1}i.d(t,{H:function(){return s}})},5042:function(e,t,i){"use strict";var s=i(6369),a=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"app"}},[t("keep-alive",[e.$route.meta.keepAlive?t("router-view"):e._e()],1),e.$route.meta.keepAlive?e._e():t("router-view")],1)},n=[],o={name:"App",mounted(){}},r=o,l=i(1001),c=(0,l.Z)(r,a,n,!1,null,null,null),d=c.exports,u=i(3822),p=i(3864),h={state:{userInfo:(0,p.b)({name:"userInfo"})||"",lineDetail:(0,p.b)({})},mutations:{changeUserInfo(e,t){e.userInfo=t,(0,p.P)({name:"userInfo",content:e.userInfo,type:"session"}),t&&t.token&&localStorage.setItem("userInfo",JSON.stringify(t))},changeLineDetail(e,t){e.lineDetail=t,(0,p.P)({name:"lineDetail",content:e.lineDetail,type:"session"})}},getters:{},actions:{}};s.ZP.use(u.ZP);var _=new u.ZP.Store({state:{},mutations:{},actions:{},modules:{namespaced:!0,user:h}}),m=i(5939),g=i(8848),f=i(5348);const b=m.Z.create({baseURL:"https://tongli.sz-trip.com",timeout:6e3});b.interceptors.request.use((e=>{const t=_.state.user.userInfo.token;return e.headers["token"]=t,e.headers["Content-Type"]="application/json;charset=UTF-8",g.Z.loading({message:"加载中...",forbidClick:!0,duration:0}),e}),(e=>Promise.reject(e))),b.interceptors.response.use((e=>{if(g.Z.clear(),200===e.status||1===e.status)return e.data}),(e=>{if(e.response&&e.response.status)switch(e.response.status){case 401:f.Z.confirm({title:"提示",message:"请登录后操作",confirmButtonText:"去登录"}).then((()=>{}));break;case 404:g.Z.fail({type:"fail",message:"网络繁忙,请刷新再试",forbidClick:!0,duration:2e3});break;default:g.Z.fail({type:"fail",message:"网络繁忙,请刷新再试",forbidClick:!0,duration:2e3});break}})),s.ZP.prototype.get=(e,t,i)=>new Promise(((s,a)=>{b.get(t,{params:e},i).then((e=>{s(e)})).catch((e=>{a(e)}))})),s.ZP.prototype.post=(e,t,i)=>new Promise(((s,a)=>{b.post(t,e,i).then((e=>{s(e)})).catch((e=>{a(e)}))}));i(3434);var y=i(2631),v=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"mapContainer",attrs:{id:"mapContainer"}}),e.typeShow?t("div",{staticClass:"type-box"},e._l(e.mapType,(function(i,s){return t("div",{class:["type-item",{"type-active":s==e.typeIndex}],on:{click:function(t){return e.getSpotsByCategory(s)}}},[e._v(e._s(i.name))])})),0):e._e(),e.typeShow?t("div",{staticClass:"area-box"},[t("div",[t("div",{staticClass:"area-item area-items",on:{click:function(t){e.areaMore=!e.areaMore}}},[t("img",{attrs:{src:"https://static.ticket.sz-trip.com/yandu/images/map/"+(e.areaMore?"topIcon.png":"bottomIcon.png"),alt:""}}),e._v(" "+e._s(e.areaMore?"收起":"展开")+" ")]),e.areaMore?t("div",e._l(e.areaList,(function(i,s){return t("div",{key:s,class:["area-item",{"area-active":s==e.areaIndex}],on:{click:function(t){return e.changeArea(s)}}},[e._v(" "+e._s(i.name)+" ")])})),0):e._e()]),t("div",[e.isMyLine?t("div",{staticClass:"area-item area-items",on:{click:e.addLine}},[t("img",{attrs:{src:"https://static.ticket.sz-trip.com/yandu/images/map/myLine.png",alt:""}}),e._v(" 我的"),t("br"),e._v("行程 ")]):t("div",{staticClass:"area-item area-items",on:{click:e.addLine}},[t("img",{attrs:{src:"https://static.ticket.sz-trip.com/yandu/images/map/addLine.png",alt:""}}),e._v(" 添加"),t("br"),e._v("行程 ")]),t("div",{staticClass:"area-item area-items",on:{click:e.gotoLine}},[t("img",{attrs:{src:"https://static.ticket.sz-trip.com/yandu/images/map/line.png",alt:""}}),e._v(" 线路"),t("br"),e._v("推荐 ")])])]):e._e(),t("van-popup",{attrs:{"overlay-style":{"background-color":"rgba(0, 0, 0, 0)"},position:"bottom",round:""},on:{close:e.audioPause},model:{value:e.detailShow,callback:function(t){e.detailShow=t},expression:"detailShow"}},[t("ProductDetail",{ref:"detailRef",attrs:{type:e.productType,info:e.detailInfo,audioSrc:e.audioSrc,genreType:e.genreType}})],1),t("van-popup",{attrs:{position:"center",round:""},model:{value:e.addLineShow,callback:function(t){e.addLineShow=t},expression:"addLineShow"}},[t("div",{staticClass:"addLine-box"},[e._v(" 添加行程 "),t("div",{staticClass:"addLine-item"},[e._v(" 线路名称: "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.lineName,expression:"lineName"}],attrs:{type:"text",placeholder:"请输入线路名称"},domProps:{value:e.lineName},on:{input:function(t){t.target.composing||(e.lineName=t.target.value)}}})]),t("div",{staticClass:"addLine-item"},[e._v(" 开始时间: "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.lineDate,expression:"lineDate"}],attrs:{type:"text",placeholder:"请选择出发时间",readonly:""},domProps:{value:e.lineDate},on:{click:function(t){e.lineDateShow=!0},input:function(t){t.target.composing||(e.lineDate=t.target.value)}}}),t("img",{attrs:{src:"https://static.ticket.sz-trip.com/yandu/images/map/dateRight.png",alt:""}})]),t("div",{staticClass:"addLine-btn flex-around"},[t("div",{on:{click:function(t){e.addLineShow=!1}}},[e._v("取消")]),t("div",{on:{click:e.lineClick}},[e._v("下一步")])])])]),t("van-popup",{attrs:{round:"",position:"bottom"},model:{value:e.lineDateShow,callback:function(t){e.lineDateShow=t},expression:"lineDateShow"}},[t("van-datetime-picker",{attrs:{type:"date",title:"选择年月日"},on:{confirm:e.lineDateConfirm,cancel:function(t){e.lineDateShow=!1}},model:{value:e.currentDate,callback:function(t){e.currentDate=t},expression:"currentDate"}})],1),t("van-popup",{attrs:{round:"",position:"bottom"},model:{value:e.lineRouteShow,callback:function(t){e.lineRouteShow=t},expression:"lineRouteShow"}},[t("LineRoute",{ref:"lineRouteRef",attrs:{lineItem:e.addLineInfo}})],1),t("van-popup",{staticClass:"linePopup",attrs:{overlay:!1,"overlay-style":{"background-color":"rgba(0, 0, 0, 0)"},round:"",position:"bottom"},on:{close:e.closeLine},model:{value:e.lineDetailShow,callback:function(t){e.lineDetailShow=t},expression:"lineDetailShow"}},[t("div",{staticClass:"close-LineBtn",on:{click:e.closeLine}},[e._v(" 退出线路 ")]),t("LineDetail",{on:{changeCenter:e.changeMapCenter}})],1)],1)},k=[],w=(i(7658),i(6797)),j=i.n(w),S=function(){var e=this,t=e._self._c;return t("div",{staticClass:"bg"},[t("div",{staticClass:"top flex-between"},[e._v(" "+e._s(e.info.title)+" "),e.type?t("div",{staticClass:"top-btn",on:{click:function(t){return e.util.gotoDetailMini(e.info)}}},[e._v("购买")]):e._e()]),e.type&&e.info.list_images?t("div",{staticClass:"img-box"},e._l(e.info.list_images.split(","),(function(i,s){return t("img",{attrs:{src:e.util.showImg(i),alt:""}})})),0):e._e(),t("div",{staticClass:"scenic-detail flex-between",style:{marginTop:e.type?"":"0"}},[t("div",{staticClass:"scenic-left flex-between"},[e.type?t("div",{staticClass:"text-overflow"},[e._v("营业时间:"+e._s(e.info.open_time)+"-"+e._s(e.info.close_time))]):e._e(),t("div",{class:[e.type?"text-overflow":"text-overflowRows"]},[e._v("地址:"+e._s(e.info.address))])]),t("div",{staticClass:"scenic-right flex-between"},[e.type&&e.audioSrc?t("div",[e.isAudioPlay?t("img",{attrs:{src:"https://static.ticket.sz-trip.com/yandu/images/map/pause.png"},on:{click:function(t){return e.audioPlay(!1)}}}):t("img",{attrs:{src:"https://static.ticket.sz-trip.com/yandu/images/map/play.png"},on:{click:function(t){return e.audioPlay(!0)}}}),t("div",[e._v("讲解")])]):t("div"),t("div",{on:{click:function(t){return e.util.openMap(e.info)}}},[t("img",{attrs:{src:"https://static.ticket.sz-trip.com/yandu/images/map/navigation.png",alt:""}}),t("div",[e._v("导航")])])])]),e.type?t("div",{staticClass:"scenic-content"},[e._v(" 简介: "),t("div",{domProps:{innerHTML:e._s(e.util.formateRichText(e.info.feature_content))}})]):e._e(),t("audio",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"audio",attrs:{src:e.audioSrc,controls:""},on:{ended:e.endAudio}})])},L=[],x={props:{type:{type:Boolean,default:!0},info:{type:Object,detault:{}},audioSrc:{type:String,detault:""},genreType:{type:String,detault:""}},data(){return{isAudioPlay:!1}},mounted(){this.$refs.audio.src=this.util.showImg(this.audioSrc)},methods:{audioPlay(e){e?(this.$refs.audio.play(),this.isAudioPlay=!0):(this.$refs.audio.pause(),this.isAudioPlay=!1)},endAudio(){this.isAudioPlay=!1}}},C=x,I=(0,l.Z)(C,S,L,!1,null,"1ee6a532",null),M=I.exports,D=function(){var e=this,t=e._self._c;return t("div",{staticClass:"bg"},[t("div",{staticClass:"top"},[e._v(" "+e._s(e.lineName)+" "),t("span",[e._v(e._s(e.lineDate))])]),t("div",{staticClass:"center"},[e._l(e.list,(function(i,s){return t("div",{key:s,staticClass:"center-items flex-between"},[t("div",{staticClass:"center-line"}),t("div",{staticClass:"center-num"},[e._v(e._s(s+1))]),t("div",{staticClass:"center-item"},[t("img",{staticClass:"center-img",attrs:{src:e.util.showImg(i.image)}}),t("div",{staticClass:"center-content"},[t("div",{staticClass:"title text-overflow"},[e._v(e._s(i.title))]),t("div",{staticClass:"subtitle text-overflow"},[e._v("营业时间:"+e._s(i.open_time)+"-"+e._s(i.close_time))]),t("div",{staticClass:"subtitle text-overflow"},[e._v("地址:"+e._s(i.address))]),t("div",{staticClass:"location",on:{click:function(t){return e.util.openMap(i)}}},[t("img",{attrs:{src:"https://static.ticket.sz-trip.com/yandu/images/map/lineLocation.png",alt:""}}),e._v(" 导航 ")])])]),t("img",{attrs:{src:"https://static.ticket.sz-trip.com/yandu/images/map/delLine.png",alt:""},on:{click:function(t){return e.delLine(s)}}})])})),t("div",{staticClass:"center-btns flex-between",on:{click:e.addLine}},[0==e.list.length?t("div",{staticClass:"center-line",style:{top:0==e.list.length?"20px":""}}):e._e(),t("div",{staticClass:"center-num"},[e._v(e._s(0==e.list.length?"1":""))]),t("div",{staticClass:"center-btn"},[e._v(" +添加行程 ")]),t("div")])],2),t("div",{staticClass:"btns flex-around"},[t("div",{on:{click:function(t){return e.submit(0)}}},[e._v("取消")]),t("div",{on:{click:function(t){return e.submit(1)}}},[e._v("保存")])])])},T=[],P={props:["lineItem"],data(){return{lineName:sessionStorage.getItem("lineName"),lineDate:sessionStorage.getItem("lineDate"),list:[],spotIds:[]}},mounted(){this.list=[],this.spotIds=[]},watch:{lineItem:{handler(e,t){e&&this.addLineList()},immediate:!0}},methods:{upData(){this.lineName=sessionStorage.getItem("lineName"),this.lineDate=sessionStorage.getItem("lineDate")},addLine(){this.$parent.$parent.addlineRoute(1)},addLineList(){["ticket","hotel"].includes(this.lineItem.genre)?this.get({id:this.lineItem.id},"/api/scenic/getScenicById").then((e=>{e.data&&(this.spotIds.push(this.lineItem.spotId),this.list.push(e.data))})):"food"==this.lineItem.genre&&this.get({goods_id:this.lineItem.id},"/api/goods/getGoodDetail").then((e=>{e.data&&(this.spotIds.push(this.lineItem.spotId),this.list.push(e.data))})),this.$parent.$parent.lineRouteShow=!0},delLine(e){this.list.splice(e,1),this.spotIds.splice(e,1)},submit(e){e?this.post({name:sessionStorage.getItem("lineName"),date:sessionStorage.getItem("lineDate"),scenic_id:sessionStorage.getItem("lineCode"),spot_id:this.spotIds.toString()},"/api/emap/addUserLinePoints").then((e=>{1==e.code&&(this.$toast("添加成功"),setTimeout((()=>{this.$parent.$parent.isMyLine=!0,this.$parent.$parent.addlineRoute(0)}),800),setTimeout((()=>{this.list=[],this.spotIds=[]}),2e3))})):(this.list=[],this.spotIds=[],this.$parent.$parent.addlineRoute(0))}}},z=P,O=(0,l.Z)(z,D,T,!1,null,"a58e1222",null),q=O.exports,A=function(){var e=this,t=e._self._c;return t("div",{staticClass:"bg"},[e.info?t("div",{staticClass:"info"},[t("img",{staticClass:"info-img",attrs:{src:e.util.showImg(e.info.image)}}),t("div",{staticClass:"info-content"},[t("div",{staticClass:"title text-overflow"},[e._v(e._s(e.info.title))]),t("div",{staticClass:"subtitle text-overflow"},[e._v("营业时间:"+e._s(e.info.open_time)+"-"+e._s(e.info.close_time))]),t("div",{staticClass:"subtitle text-overflow"},[e._v("地址:"+e._s(e.info.address))]),t("div",{staticClass:"location",on:{click:function(t){return e.util.openMap(e.info)}}},[t("img",{attrs:{src:"https://static.ticket.sz-trip.com/yandu/images/map/lineLocation.png",alt:""}}),e._v(" 导航 ")])])]):e._e(),t("div",{staticClass:"boxs"},[t("div",{staticClass:"title"},[e._v(e._s(e.detail.name))]),e.detail&&e.detail.points?t("div",{staticClass:"subtitle"},[e._v(e._s(e.detail.points.length)+"个景点")]):e._e(),e.detail&&e.detail.points?t("div",{staticClass:"box"},e._l(e.detail.points,(function(i,s){return t("div",{key:s,staticClass:"item"},[t("div",{class:["line",{lineF:0==s,lineE:s+1==e.detail.points.length,lineS:s==e.selectIndex}]}),t("div",{class:["num",{numS:s==e.selectIndex,numE:s+1==e.detail.points.length}]},[e._v(" "+e._s(0==s?"起":s+1==e.detail.points.length?"终":s+1)+" ")]),t("div",{class:["content",{contents:e.selectIndex==s}],on:{click:function(t){return e.choosePoint(i,s)}}},[e._v(" "+e._s(i.name)+" ")])])})),0):e._e(),e.strategyInfo?t("div",[t("div",{staticClass:"title"},[e._v("推荐攻略")]),t("div",{staticClass:"strategy-info",on:{click:function(t){return e.util.gotoDetailMini(e.strategyInfo)}}},[t("img",{staticClass:"strategy-img",attrs:{src:e.util.showImg(e.strategyInfo.image)}}),t("div",{staticClass:"strategy-content flex-between"},[t("div",{staticClass:"strategy-title text-overflowRows"},[e._v(e._s(e.strategyInfo.title))]),t("div",{staticClass:"strategy-subtitle flex-between"},[t("div",[t("img",{attrs:{src:e.util.showImg(e.strategyInfo.author_img),alt:""}}),e._v(" "+e._s(e.strategyInfo.author)+" ")]),t("div",[t("img",{attrs:{src:"https://static.ticket.sz-trip.com/yandu/images/map/eye.png",alt:""}}),e._v(" "+e._s(e.strategyInfo.view)+" ")])])])])]):e._e()])])},$=[],N={data(){return{detail:{},selectIndex:null,info:null,strategyInfo:null}},mounted(){this.detail=this.$store.state.user.lineDetail,this.get({id:this.detail.article_id},"/api/article/getArticleById").then((e=>{e.data.id&&(this.strategyInfo=e.data)}))},methods:{choosePoint(e,t){if(this.selectIndex==t)return this.info=null,void(this.selectIndex=null);this.selectIndex=t,["ticket","hotel"].includes(e.goods.genre)?this.get({id:e.goods.scenic_id},"/api/scenic/getScenicById").then((t=>{t.data&&(this.info=t.data,this.$emit("changeCenter",e.lonlat))})):"food"==e.goods.genre&&this.get({goods_id:e.goods.id},"/api/goods/getGoodDetail").then((t=>{t.data&&(this.info=t.data,this.$emit("changeCenter",e.lonlat))}))}}},R=N,Z=(0,l.Z)(R,A,$,!1,null,"3d7625cc",null),E=Z.exports,B={components:{ProductDetail:M,LineRoute:q,LineDetail:E},data(){return{mapObj:null,mapMarker:null,basics:{},mapType:[],typeShow:!0,typeIndex:-1,areaList:[],areaIndex:0,areaMore:!0,detailShow:!1,productType:!0,addLineShow:!1,lineName:"",lineDate:"",lineDateShow:!1,currentDate:new Date,lineRouteShow:!1,lineAddStatus:!1,addLineInfo:"",maps:[],lineDetailShow:!1,lineInfo:{},detailInfo:{},audioSrc:"",genreType:"",isMyLine:!1}},mounted(){this.getAreaList(),this.$route.query.token&&this.$store.commit("changeUserInfo",{token:this.$route.query.token}),sessionStorage.getItem("addUserLine")&&(this.lineName="",this.lineDate="",this.addLineShow=!0,sessionStorage.removeItem("addUserLine"))},activated(){},methods:{getAreaList(){this.post({},"/api/emap/get_map_list").then((e=>{this.areaList=e.data,e.data.length>0&&(this.getAreaDetail(),this.getCategory(),this.getMyLine())}))},changeArea(e){this.areaIndex=e,this.mapObj.destroy(),this.getAreaDetail(),this.getCategory(),this.getMyLine()},getAreaDetail(){this.post({code:this.areaList[this.areaIndex].code},"/api/emap/get_init").then((e=>{this.basics=e.data,this.basics.center_poi=JSON.parse(this.basics.center_poi),this.basics.lb_poi=JSON.parse(this.basics.lb_poi),this.basics.rt_poi=JSON.parse(this.basics.rt_poi),this.$nextTick((()=>{this.initMap()}))}))},getCategory(){this.post({code:this.areaList[this.areaIndex].code},"/api/emap/getByCategory").then((e=>{this.mapType=e.data,this.mapType.length>0&&this.getSpotsByCategory(0)}))},getSpotsByCategory(e){this.typeIndex=e,this.post({code:this.areaList[this.areaIndex].code,category_id:this.mapType[this.typeIndex].id},"/api/emap/getSpotsByCategory").then((e=>{this.maps=e.data,this.lineAddStatus=!1,this.$store.state.user.lineDetail&&this.$store.state.user.lineDetail.points.length>0||(this.clearMarkers(),this.maps.length>0&&this.setMarkers())}))},getMyLine(){this.post({type:1,code:this.areaList[this.areaIndex].code},"/api/emap/getLineByCode").then((e=>{e.data&&e.data.length>0?this.isMyLine=!0:this.isMyLine=!1}))},initMap(){this.basics.center_poi[1],this.basics.center_poi[0];var e=new TMap.LatLng(this.basics.center_poi[1],this.basics.center_poi[0]),t=new TMap.LatLng(this.basics.rt_poi[1],this.basics.rt_poi[0]),i=new TMap.LatLng(this.basics.lb_poi[1],this.basics.lb_poi[0]),s=new TMap.LatLngBounds(i,t);this.mapObj=new TMap.Map("mapContainer",{center:e,boundary:s,zoom:this.basics.zoom,minZoom:this.basics.min_zoom,maxZoom:this.basics.max_zoom,showControl:!0,viewMode:"2D",rotatable:!1,rotation:0,pitchable:!1,baseMap:{type:"vector",features:[]}}),this.mapObj.removeControl(TMap.constants.DEFAULT_CONTROL_ID.ZOOM),this.mapObj.removeControl(TMap.constants.DEFAULT_CONTROL_ID.ROTATION);new TMap.ImageTileLayer({getTileUrl:(e,t,i)=>{let s=this.basics.tile_image_formatter+i+"/"+e+"/"+t+".png";return s},tileSize:256,minZoom:this.basics.min_zoom,maxZoom:this.basics.max_zoom,visible:!0,zIndex:5e3,opacity:1,map:this.mapObj});this.$store.state.user.lineDetail&&this.$store.state.user.lineDetail.points.length>0&&this.$nextTick((()=>{this.showLineDetail()}))},setMarkers(){let e=[],t=[];this.maps.forEach((i=>{e.push({styleId:"marker",id:i.goods?"food"==i.goods.genre?i.goods.id:i.goods.scenic_id:"",genre:i.goods?i.goods.genre:"",name:i.name,address:i.address,audioSrc:i.audio_file,spotId:i.id,position:new TMap.LatLng(i.poi_gcj02[1],i.poi_gcj02[0])}),t.push({id:"label",styleId:"label",position:new TMap.LatLng(i.poi_gcj02[1],i.poi_gcj02[0]),content:i.name,properties:{title:"label"}})})),this.multiMarker=new TMap.MultiMarker({id:"marker-layer",map:this.mapObj,styles:{marker:new TMap.MarkerStyle({width:27,height:33,src:"https://static.ticket.sz-trip.com/yandu/images/map/scenic.png",src:this.util.showImg(this.mapType.find((e=>e.id==this.maps[0].category_id)).icon_image)})},geometries:e}),this.multiMarker.on("click",this.markerClick),this.multiLabel=new TMap.MultiLabel({id:"label-layer",map:this.mapObj,collisionOptions:{sameSource:!0},styles:{label:new TMap.LabelStyle({color:"#FFF",size:13,offset:{x:0,y:15},angle:0,alignment:"center",verticalAlignment:"middle",backgroundColor:"rgba(0, 0, 0, .5)",borderRadius:7,padding:"2px 8px"})},geometries:t})},clearMarkers(){this.multiMarker&&(this.multiMarker.setMap(null),this.multiMarker=null),this.multiLabel&&(this.multiLabel.setMap(null),this.multiLabel=null)},changeMapCenter(e){this.mapObj.panTo(new TMap.LatLng(e[1],e[0]))},markerClick(e){this.lineAddStatus?this.$dialog.confirm({title:"",message:"是否将"+e.geometry.name+"加入行程?"}).then((()=>{this.addLineInfo=e.geometry})).catch((()=>{})):(this.audioSrc=e.geometry.audioSrc,this.genreType=e.geometry.genre,["ticket","hotel"].includes(e.geometry.genre)?this.get({id:e.geometry.id},"/api/scenic/getScenicById").then((t=>{t.data&&(this.productType=!0,this.detailInfo=t.data,this.detailInfo.genre=e.geometry.genre,this.detailShow=!0)})):"food"==e.geometry.genre?this.get({goods_id:e.geometry.id},"/api/goods/getGoodDetail").then((e=>{e.data&&(this.productType=!0,this.detailInfo=e.data,this.detailShow=!0)})):(this.detailInfo={title:e.geometry.name,address:e.geometry.address,lon:e.geometry.position.lng,lat:e.geometry.position.lat},this.productType=!1,this.detailShow=!0))},gotoLine(){this.$router.push({path:"/lineList",query:{code:this.areaList[this.areaIndex].code}})},audioPause(){this.$refs.detailRef.audioPlay(!1)},addLine(){this.$store.commit("changeLineDetail",{}),this.isMyLine?this.$router.push({path:"/lineList",query:{code:this.areaList[this.areaIndex].code,type:"1"}}):(this.lineName="",this.lineDate="",this.addLineShow=!0)},lineDateConfirm(){this.lineDate=j()(this.currentDate).format("YYYY-MM-DD"),this.lineDateShow=!1},lineClick(){0==this.lineName.trim().length||0==this.lineDate.trim().length?this.$toast("请输入行程信息"):(sessionStorage.setItem("lineName",this.lineName),sessionStorage.setItem("lineDate",this.lineDate),sessionStorage.setItem("lineCode",this.areaList[this.areaIndex].id),this.addLineShow=!1,this.lineRouteShow=!0,this.$nextTick((()=>{this.$refs.lineRouteRef.upData()})))},addlineRoute(e){this.lineRouteShow=!1,e?this.post({code:this.areaList[this.areaIndex].code},"/api/emap/getUserSpotsByCategory").then((e=>{1==e.code&&(this.maps=e.data,this.lineAddStatus=!0,this.typeShow=!1,this.clearMarkers(),this.maps.length>0&&this.setMarkers(),this.multiMarker.setStyles({marker:new TMap.MarkerStyle({width:27,height:33,src:"https://static.ticket.sz-trip.com/yandu/images/map/add.png"})}))})):(this.clearMarkers(),this.typeShow=!0,this.lineAddStatus=!1,this.setMarkers())},showLineDetail(){this.clearMarkers(),this.typeShow=!1,this.lineDetailShow=!0;let e=this.$store.state.user.lineDetail,t=[],i=[];e.points.forEach(((s,a)=>{t.push(new TMap.LatLng(s.lonlat[1],s.lonlat[0])),i.push({id:"label",styleId:"label",position:new TMap.LatLng(s.lonlat[1],s.lonlat[0]),content:0==a?"起":a+1==e.points.length?"终":(a+1).toString(),properties:{title:"label"}})})),this.multiLabel=new TMap.MultiLabel({id:"label-layer",map:this.mapObj,collisionOptions:{sameSource:!0},styles:{label:new TMap.LabelStyle({color:"#FF7F00",size:16,offset:{x:0,y:0},angle:0,alignment:"center",verticalAlignment:"middle",backgroundColor:"#fff",borderRadius:50,padding:"8px",width:23,height:23})},geometries:i}),this.MultiPolyline=new TMap.MultiPolyline({id:"polyline-layer",map:this.mapObj,styles:{style_blue:new TMap.PolylineStyle({width:4,color:"#3777FF",borderWidth:2,borderColor:"#FFF",lineCap:"butt"})},geometries:[{id:"style_blue",styleId:"style_blue",paths:t}]}),setTimeout((()=>{this.$store.commit("changeLineDetail",{})}),1e3)},closeLine(){this.lineDetailShow=!1,this.$store.commit("changeLineDetail",{}),this.clearMarkers(),this.MultiPolyline&&(this.MultiPolyline.setMap(null),this.MultiPolyline=null),this.typeShow=!0,this.setMarkers()}}},F=B,U=(0,l.Z)(F,v,k,!1,null,"dcee786a",null),J=U.exports;s.ZP.use(y.Z);const V=[{path:"/",name:"index",meta:{title:"首页",keepAlive:!1},component:J},{path:"/lineList",name:"lineList",meta:{title:"",keepAlive:!1},component:()=>i.e(102).then(i.bind(i,2102))}],W=new y.Z({mode:"history",base:"/",routes:V});var H=W,G={install(e){e.prototype.util={formateRichText(e){if(!e)return"";var t=new RegExp("
'),t=new RegExp("section","g"),e=e.replace(t,"div"),t=new RegExp("↵","g"),e=e.replace(t,"
"),e=e.replace(/e(d)}).$mount("#app")}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var i=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(i.exports,i,i.exports,__webpack_require__),i.loaded=!0,i.exports}__webpack_require__.m=__webpack_modules__,function(){var e=[];__webpack_require__.O=function(t,i,s,a){if(!i){var n=1/0;for(c=0;c=a)&&Object.keys(__webpack_require__.O).every((function(e){return __webpack_require__.O[e](i[r])}))?i.splice(r--,1):(o=!1,a0&&e[c-1][2]>a;c--)e[c]=e[c-1];e[c]=[i,s,a]}}(),function(){__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return __webpack_require__.d(t,{a:t}),t}}(),function(){__webpack_require__.d=function(e,t){for(var i in t)__webpack_require__.o(t,i)&&!__webpack_require__.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}}(),function(){__webpack_require__.f={},__webpack_require__.e=function(e){return Promise.all(Object.keys(__webpack_require__.f).reduce((function(t,i){return __webpack_require__.f[i](e,t),t}),[]))}}(),function(){__webpack_require__.u=function(e){return"static/js/"+e+".bf962f89.js"}}(),function(){__webpack_require__.miniCssF=function(e){return"static/css/"+e+".73f801e1.css"}}(),function(){__webpack_require__.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="taihulake:";__webpack_require__.l=function(i,s,a,n){if(e[i])e[i].push(s);else{var o,r;if(void 0!==a)for(var l=document.getElementsByTagName("script"),c=0;c=100?100:null;return e+(t[e]||t[n]||t[i])},week:{dow:1,doy:7}});return n}))},9571:function(e,t,n){(function(e,t){t(n(6797))})(0,(function(e){"use strict";
//! moment.js locale configuration
-var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"},i=e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}});return i}))},8911:function(e,t,n){(function(e,t){t(n(6797))})(0,(function(e){"use strict";
+var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"},i=e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}});return i}))},5880:function(e,t,n){(function(e,t){t(n(6797))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"},i=e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}});return i}))},6809:function(e,t,n){(function(e,t){t(n(6797))})(0,(function(e){"use strict";
//! moment.js locale configuration
diff --git a/src/views/Index.vue b/src/views/Index.vue
index b79ebb0..7e6b5d3 100644
--- a/src/views/Index.vue
+++ b/src/views/Index.vue
@@ -130,7 +130,6 @@
audioSrc: '',
genreType: '',
isMyLine: false, // 是否有我的线路
- mapSrc: ''
};
},
mounted() {
@@ -180,7 +179,6 @@
this.basics.center_poi = JSON.parse(this.basics.center_poi)
this.basics.lb_poi = JSON.parse(this.basics.lb_poi)
this.basics.rt_poi = JSON.parse(this.basics.rt_poi)
- this.mapSrc = this.basics.tile_image_formatter
this.$nextTick(() => {
this.initMap()
})
@@ -239,9 +237,9 @@
this.mapObj = new TMap.Map("mapContainer", {
center: center,
boundary: latlngBounds,
- zoom: 10, // 地图默认缩放级别
- minZoom: 10,
- maxZoom: 15,
+ zoom: this.basics.zoom, // 地图默认缩放级别
+ minZoom: this.basics.min_zoom,
+ maxZoom: this.basics.max_zoom,
showControl: true, // 是否显示地图上的控件
viewMode: '2D', // 地图视图模式,支持2D和3D,默认为3D。2D模式下俯仰角和旋转角度始终为0
rotatable: false, // 禁止旋转
@@ -268,13 +266,13 @@
let imageTile = new TMap.ImageTileLayer({
getTileUrl: (x, y, z) => {
//拼接瓦片URL
- let url = this.mapSrc + z + "/" + x +
+ let url = this.basics.tile_image_formatter + z + "/" + x +
"/" + y + ".png";
return url;
},
tileSize: 256, //瓦片像素尺寸
- minZoom: 10, //显示自定义瓦片的最小级别
- maxZoom: 15, //显示自定义瓦片的最大级别
+ minZoom: this.basics.min_zoom, //显示自定义瓦片的最小级别
+ maxZoom: this.basics.max_zoom, //显示自定义瓦片的最大级别
visible: true, //是否可见
zIndex: 5000, //层级高度(z轴)
opacity: 1, //图层透明度:1不透明,0为全透明
@@ -352,8 +350,8 @@
map: this.mapObj,
styles: {
"marker": new TMap.MarkerStyle({
- "width": 24,
- "height": 30,
+ "width": 27,
+ "height": 33,
"src": 'https://static.ticket.sz-trip.com/yandu/images/map/scenic.png',
"src": this.util.showImg(this.mapType.find(i => {
return i.id == this.maps[0].category_id
@@ -537,8 +535,8 @@
// 点击添加行程更换marker样式
this.multiMarker.setStyles({
"marker": new TMap.MarkerStyle({
- "width": 24,
- "height": 30,
+ "width": 27,
+ "height": 33,
"src": 'https://static.ticket.sz-trip.com/yandu/images/map/add.png'
})
})