diff --git a/.env.development b/.env.development index 8be2c77..8c11028 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ NODE_ENV='development' # 请求域名前缀 -VUE_APP_URL='https://tongli.sz-trip.com' +VUE_APP_URL='https://changshu.js-dyyj.com' # 打包后输出目录 VUE_APP_OUTPUTDIR='dist_dev' \ No newline at end of file diff --git a/.env.production b/.env.production index 0eebcde..d222613 100644 --- a/.env.production +++ b/.env.production @@ -1,5 +1,5 @@ NODE_ENV='production' # 请求域名前缀 -VUE_APP_URL='https://tongli.sz-trip.com' +VUE_APP_URL='https://changshu.js-dyyj.com' # 打包后输出目录 VUE_APP_OUTPUTDIR='dist' \ No newline at end of file diff --git a/.env.test b/.env.test index 65b6253..c731c62 100644 --- a/.env.test +++ b/.env.test @@ -1,5 +1,5 @@ NODE_ENV='production' # 请求域名前缀 -VUE_APP_URL='https://tongli.sz-trip.com' +VUE_APP_URL='https://changshu.js-dyyj.com' # 打包后输出目录 VUE_APP_OUTPUTDIR='dist_test' \ No newline at end of file diff --git a/dist/index.html b/dist/index.html index 39f9652..f90f07a 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.0c09c0af.css b/dist/static/css/app.0c09c0af.css new file mode 100644 index 0000000..7e2a092 --- /dev/null +++ b/dist/static/css/app.0c09c0af.css @@ -0,0 +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-a47b2fe4]{width:10rem;max-height:60vh;overflow-x:hidden;overflow-y:auto;padding:0 .53333rem .53333rem}.top[data-v-a47b2fe4]{height:2.08rem;font-weight:500;font-size:.53333rem;color:#000}.top img[data-v-a47b2fe4]{width:.49333rem;height:.49333rem;margin-bottom:5px}.top div[data-v-a47b2fe4]{text-align:center;font-weight:500;font-size:.32rem;color:#00aea0;white-space:nowrap}.buy-btn[data-v-a47b2fe4]{margin:.48rem 0 0 auto;width:2.66667rem;height:.78667rem;background:#ff7f00;border-radius:.17333rem;line-height:.78667rem;text-align:center;font-weight:700;font-size:.42667rem;color:#fff}.img-box[data-v-a47b2fe4]{display:flex;overflow-x:auto}.img-box img[data-v-a47b2fe4]{width:2.4rem;height:2.4rem;border-radius:.36rem;margin-right:.36rem;-o-object-fit:cover;object-fit:cover}.img-box[data-v-a47b2fe4]::-webkit-scrollbar{display:none}.scenic-detail[data-v-a47b2fe4]{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-a47b2fe4]{flex-direction:column;align-items:left;width:6rem;height:100%}.scenic-detail .scenic-left div[data-v-a47b2fe4]{width:6rem}.scenic-detail .scenic-right[data-v-a47b2fe4]{width:2rem;font-weight:500;font-size:.32rem;color:#00aea0}.scenic-detail .scenic-right img[data-v-a47b2fe4]{width:.49333rem;height:.49333rem;margin-bottom:5px}.scenic-detail .scenic-right div[data-v-a47b2fe4]{text-align:center}.scenic-content[data-v-a47b2fe4]{margin-top:.56rem;font-weight:700;font-size:.42667rem;color:#000}.scenic-content div[data-v-a47b2fe4]{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-418bab50]{box-sizing:border-box}.mapContainer[data-v-418bab50]{width:100%;height:100vh}.type-box[data-v-418bab50]{position:fixed;z-index:2000;width:10rem;top:0;left:0;display:flex;overflow-x:auto;padding:.21333rem;background-color:#fff}.type-box .type-item[data-v-418bab50]{padding:0 .34667rem;line-height:.70667rem;background:#f2f2f2;border-radius:.17333rem;font-weight:500;font-size:.36rem;color:#333;margin-right:.36rem;flex-shrink:0}.type-box .type-active[data-v-418bab50]{background:#00aea0;color:#fff}.type-box .search[data-v-418bab50]{padding-right:.28rem;font-weight:700;font-size:.36rem;color:#00aea0;border-right:1px solid #ccc;display:flex;align-items:center;margin-right:.24rem;white-space:nowrap}.type-box .search img[data-v-418bab50]{width:.33333rem;height:.33333rem;margin-right:8px}.type-box[data-v-418bab50]::-webkit-scrollbar{display:none}.area-box[data-v-418bab50]{position:fixed;z-index:2000;top:2.04rem;right:.22667rem}.area-box>div[data-v-418bab50]{width:1.16rem;height:auto;background:#fff;border-radius:.57333rem;border:2px solid #fff;overflow:hidden}.area-box>div[data-v-418bab50]:last-child{margin-top:.32rem}.area-box>div:last-child .area-items[data-v-418bab50]{height:1.77333rem!important}.area-box .area-item[data-v-418bab50]{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-418bab50]{flex-direction:column;justify-content:space-around;height:1.33333rem}.area-box .area-items img[data-v-418bab50]{width:.50667rem;height:.50667rem}.area-box .area-active[data-v-418bab50]{background:linear-gradient(130deg,#9ee4fe,#7fd491);color:#000;font-weight:700}.addLine-box[data-v-418bab50]{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-418bab50]{font-weight:400;font-size:.38667rem;margin-top:.53333rem}.addLine-box .addLine-item input[data-v-418bab50]{outline:none;border:none;height:.36rem;width:5.06667rem;margin-left:.4rem}.addLine-box .addLine-item input[data-v-418bab50]::-moz-placeholder{color:#bebebe}.addLine-box .addLine-item input[data-v-418bab50]::placeholder{color:#bebebe}.addLine-box .addLine-item img[data-v-418bab50]{width:.26667rem;height:.26667rem}.addLine-box .addLine-btn[data-v-418bab50]{margin-top:.66667rem}.addLine-box .addLine-btn div[data-v-418bab50]{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-418bab50]:last-child{background:#71b580;color:#fff}.linePopup[data-v-418bab50]{overflow:visible}.linePopup .close-LineBtn[data-v-418bab50]{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/css/app.3c10ecc1.css b/dist/static/css/app.3c10ecc1.css deleted file mode 100644 index 455fe83..0000000 --- a/dist/static/css/app.3c10ecc1.css +++ /dev/null @@ -1 +0,0 @@ -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-09adea92]{box-sizing:border-box}.mapContainer[data-v-09adea92]{width:100%;height:100vh}.type-box[data-v-09adea92]{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-09adea92]{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-09adea92]{background:linear-gradient(130deg,#9ee4fe,#7fd491);font-weight:700}.type-box[data-v-09adea92]::-webkit-scrollbar{display:none}.area-box[data-v-09adea92]{position:fixed;z-index:2000;top:2.04rem;right:.22667rem}.area-box>div[data-v-09adea92]{width:1.16rem;height:auto;background:#fff;border-radius:.57333rem;border:2px solid #fff;overflow:hidden}.area-box>div[data-v-09adea92]:last-child{margin-top:.32rem}.area-box>div:last-child .area-items[data-v-09adea92]{height:1.77333rem!important}.area-box .area-item[data-v-09adea92]{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-09adea92]{flex-direction:column;justify-content:space-around;height:1.33333rem}.area-box .area-items img[data-v-09adea92]{width:.50667rem;height:.50667rem}.area-box .area-active[data-v-09adea92]{background:linear-gradient(130deg,#9ee4fe,#7fd491);color:#000;font-weight:700}.addLine-box[data-v-09adea92]{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-09adea92]{font-weight:400;font-size:.38667rem;margin-top:.53333rem}.addLine-box .addLine-item input[data-v-09adea92]{outline:none;border:none;height:.36rem;width:5.06667rem;margin-left:.4rem}.addLine-box .addLine-item input[data-v-09adea92]::-moz-placeholder{color:#bebebe}.addLine-box .addLine-item input[data-v-09adea92]::placeholder{color:#bebebe}.addLine-box .addLine-item img[data-v-09adea92]{width:.26667rem;height:.26667rem}.addLine-box .addLine-btn[data-v-09adea92]{margin-top:.66667rem}.addLine-box .addLine-btn div[data-v-09adea92]{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-09adea92]:last-child{background:#71b580;color:#fff}.linePopup[data-v-09adea92]{overflow:visible}.linePopup .close-LineBtn[data-v-09adea92]{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.02c0cefe.js b/dist/static/js/app.02c0cefe.js new file mode 100644 index 0000000..660f27d --- /dev/null +++ b/dist/static/js/app.02c0cefe.js @@ -0,0 +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":5880,"./kn.js":5880,"./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}})},3215: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 m=new u.ZP.Store({state:{},mutations:{},actions:{},modules:{namespaced:!0,user:h}}),_=i(5939),g=i(8848),f=i(5348);const b=_.Z.create({timeout:6e3});b.interceptors.request.use((e=>{const{customBaseURL:t}=e.params||{};t?(e.baseURL=t,delete e.params.customBaseURL):e.baseURL="https://changshu.js-dyyj.com";const i=m.state.user.userInfo.token;return e.headers["token"]=i,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._m(0),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))])}))],2):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()])]):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,content:e.detailContent,imgList:e.imgList,isCanBuy:e.isCanBuy,tel:e.tel}})],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=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"search"},[t("img",{attrs:{src:"https://static.ticket.sz-trip.com/changshu/images/map/search.png",alt:""}}),e._v(" 搜索 ")])}],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&&e.audioSrc?t("div",[e.isAudioPlay?t("img",{attrs:{src:"https://static.ticket.sz-trip.com/changshu/images/map/pause.png"},on:{click:function(t){return e.audioPlay(!1)}}}):t("img",{attrs:{src:"https://static.ticket.sz-trip.com/changshu/images/map/play.png"},on:{click:function(t){return e.audioPlay(!0)}}}),t("div",[e._v("讲解")])]):e._e()]),e.type&&e.imgList?t("div",{staticClass:"img-box"},e._l(e.imgList.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.tel?t("div",{on:{click:e.goTel}},[t("img",{attrs:{src:"https://static.ticket.sz-trip.com/changshu/images/map/phone.png"}}),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/changshu/images/map/location.png",alt:""}}),t("div",[e._v("导航")])])])]),e.isCanBuy?t("div",{staticClass:"buy-btn",on:{click:function(t){return e.util.gotoDetailMini(e.info)}}},[e._v("在线预订")]):e._e(),e.type?t("div",{staticClass:"scenic-content"},[e._v(" 简介: "),t("div",{domProps:{innerHTML:e._s(e.util.formateRichText(e.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,default:{}},audioSrc:{type:String,default:""},genreType:{type:String,default:""},imgList:{type:String,default:""},content:{type:String,default:""},isCanBuy:{type:Boolean,default:!1},tel:{type:String,default:""}},data(){return{isAudioPlay:!1}},mounted(){this.$refs.audio.src=this.util.showImg(this.audioSrc)||"",this.info.link_type=2},methods:{goTel(){window.location.href="tel:"+this.tel},audioPlay(e){e?(this.$refs.audio.play(),this.isAudioPlay=!0):(this.$refs.audio.pause(),this.isAudioPlay=!1)},endAudio(){this.isAudioPlay=!1}}},x=C,I=(0,l.Z)(x,S,L,!1,null,"a47b2fe4",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=[],O={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=O,P=(0,l.Z)(z,D,T,!1,null,"a58e1222",null),q=P.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=$,Z=(0,l.Z)(R,A,N,!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,detailContent:"",imgList:"",isCanBuy:!1,tel:""}},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())}))},changeArea(e){this.areaIndex=e,this.mapObj.destroy(),this.getAreaDetail(),this.getCategory()},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:1==this.basics.bg_tile?["base"]:[]}}),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.id,genre:i.goods?i.goods.genre:"",name:i.name,address:i.address,audioSrc:i.audio_file,spotId:i.id,detailContent:i.detail_content,imgList:i.album_images,tel:i.tel,position:new TMap.LatLng(JSON.parse(i.poi)[1],JSON.parse(i.poi)[0])}),t.push({id:"label",styleId:"label",position:new TMap.LatLng(JSON.parse(i.poi)[1],JSON.parse(i.poi)[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/changshu/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,this.detailContent=e.geometry.detailContent,this.imgList=e.geometry.imgList,this.tel=e.geometry.tel,["ticket"].includes(e.geometry.genre)?this.get({id:e.geometry.id,customBaseURL:"https://api.cloud.sz-trip.com"},"/api/product/get_product_detail").then((t=>{t.data&&("ticket"==e.geometry.genre&&(this.isCanBuy=!0,this.productType=!0),this.detailInfo=t.data,this.detailInfo.genre=e.geometry.genre,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=!0,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()}}},U=B,F=(0,l.Z)(U,v,k,!1,null,"418bab50",null),J=F.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,K={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}})},2708: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=[],O={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))}}},P=O,z=(0,l.Z)(P,D,T,!1,null,"a58e1222",null),q=z.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=$,Z=(0,l.Z)(R,A,N,!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:1==this.basics.bg_tile?["base"]:[]}}),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(JSON.parse(i.poi)[1],JSON.parse(i.poi)[0])}),t.push({id:"label",styleId:"label",position:new TMap.LatLng(JSON.parse(i.poi)[1],JSON.parse(i.poi)[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,"09adea92",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 { + const { customBaseURL } = config.params || {}; // 从请求参数中获取自定义的 baseURL + if (customBaseURL) { + config.baseURL = customBaseURL; // 如果有自定义的 baseURL,则使用它 + // 移除自定义的 baseURL 参数,避免传递到后端 + delete config.params.customBaseURL; + } else { + // 默认的 baseURL,可以根据环境变量设置 + config.baseURL = process.env.VUE_APP_URL; + } + const token = store.state.user.userInfo.token; config.headers['token'] = token config.headers['Content-Type'] = 'application/json;charset=UTF-8' diff --git a/src/libs/utils.js b/src/libs/utils.js index 263c7f3..e4bc48b 100644 --- a/src/libs/utils.js +++ b/src/libs/utils.js @@ -58,8 +58,8 @@ export default { openMap(item) { let data = { type: 'map', - lon: item.tengxun_map.lon, - lat: item.tengxun_map.lat, + lon: item.scene_lon, + lat: item.scene_lat, name: item.title, address: item.address } @@ -72,7 +72,7 @@ export default { if (img.indexOf('https://') != -1 || img.indexOf('http://') != -1) { return img; } else { - return 'https://tongli.sz-trip.com' + img; + return 'https://changshu.js-dyyj.com' + img; } }, // 跳回小程序 @@ -90,37 +90,38 @@ export default { return }else if(item.link_type == 2){ // 外部H5 - window.location.href = item.ext_link + // window.location.href = item.ext_link + window.location.href = 'https://m.cloud.sz-trip.com/MailMerchandiseDetail?type=ticket&id=' + item.id return } - switch (item.genre){ - // 景点 - case 'ticket': - uni.navigateTo({ - url: '/subPackages/ticketBooking/detail?id=' + item.id - }) - break; - // 酒店 - case 'hotel': - uni.navigateTo({ - url: '/subPackages/hotelHomestay/detail?id=' + item.id - }) - break; - // 美食 - case 'food': - uni.navigateTo({ - url: '/subPackages/food/foodDetail?id=' + item.id - }) - break; - // 攻略 - case 'article': - uni.navigateTo({ - url: '/subPackages/travelGuide/detail?id=' + item.id - }) - break; - default: - break; - } + // switch (item.genre){ + // // 景点 + // case 'ticket': + // uni.navigateTo({ + // url: '/subPackages/ticketBooking/detail?id=' + item.id + // }) + // break; + // // 酒店 + // case 'hotel': + // uni.navigateTo({ + // url: '/subPackages/hotelHomestay/detail?id=' + item.id + // }) + // break; + // // 美食 + // case 'food': + // uni.navigateTo({ + // url: '/subPackages/food/foodDetail?id=' + item.id + // }) + // break; + // // 攻略 + // case 'article': + // uni.navigateTo({ + // url: '/subPackages/travelGuide/detail?id=' + item.id + // }) + // break; + // default: + // break; + // } } } } diff --git a/src/views/Index.vue b/src/views/Index.vue index 5613cfd..33aebc0 100644 --- a/src/views/Index.vue +++ b/src/views/Index.vue @@ -4,6 +4,10 @@
+
{{item.name}}
@@ -24,7 +28,7 @@ -
+
+ :genreType="genreType" :content="detailContent" :imgList="imgList" :isCanBuy="isCanBuy" :tel="tel" /> @@ -130,6 +134,10 @@ audioSrc: '', genreType: '', isMyLine: false, // 是否有我的线路 + detailContent: '', + imgList: '', + isCanBuy: false, + tel: '' }; }, mounted() { @@ -157,7 +165,7 @@ if (res.data.length > 0) { this.getAreaDetail() this.getCategory() - this.getMyLine() + // this.getMyLine() } }) }, @@ -168,7 +176,7 @@ this.mapObj.destroy() this.getAreaDetail() this.getCategory() - this.getMyLine() + // this.getMyLine() }, // 根据code获取当前区域信息 getAreaDetail() { @@ -323,13 +331,15 @@ this.maps.forEach(item => { markers.push({ "styleId": 'marker', - id: item.goods ? (item.goods.genre == 'food' ? item.goods.id : item.goods - .scenic_id) : '', // 产品id + id: item.goods.id, // 产品id genre: item.goods ? item.goods.genre : '', // 产品类型 name: item.name, // 产品名称 - address: item.address, // 详情地址 + address: item.address, // 详情地址, audioSrc: item.audio_file, // 音频路径 spotId: item.id, // 点位id + detailContent: item.detail_content, // 简介 + imgList: item.album_images, // 图片 + tel: item.tel, // 电话 position: new TMap.LatLng(JSON.parse(item.poi)[1], JSON.parse(item.poi)[0]) }) @@ -353,7 +363,7 @@ "marker": new TMap.MarkerStyle({ "width": 27, "height": 33, - "src": 'https://static.ticket.sz-trip.com/yandu/images/map/scenic.png', + "src": 'https://static.ticket.sz-trip.com/changshu/images/map/scenic.png', "src": this.util.showImg(this.mapType.find(i => { return i.id == this.maps[0].category_id }).icon_image) @@ -427,29 +437,41 @@ } else { this.audioSrc = evt.geometry.audioSrc this.genreType = evt.geometry.genre - if (['ticket', 'hotel'].includes(evt.geometry.genre)) { - // 景点酒店 + this.detailContent = evt.geometry.detailContent + this.imgList = evt.geometry.imgList + this.tel = evt.geometry.tel + + if (['ticket'].includes(evt.geometry.genre)) { + // 景点 酒景 this.get({ - id: evt.geometry.id - }, '/api/scenic/getScenicById').then(res => { + id: evt.geometry.id, + customBaseURL: 'https://api.cloud.sz-trip.com' + }, '/api/product/get_product_detail').then(res => { if (res.data) { - this.productType = true + // 酒店类型展示购买按钮 + if(evt.geometry.genre == 'ticket') { + this.isCanBuy = true + this.productType = true + } + this.detailInfo = res.data this.detailInfo.genre = evt.geometry.genre this.detailShow = true } }) - } else if (evt.geometry.genre == 'food') { - this.get({ - goods_id: evt.geometry.id - }, '/api/goods/getGoodDetail').then(res => { - if (res.data) { - this.productType = true - this.detailInfo = res.data - this.detailShow = true - } - }) - } else { + } + // else if (evt.geometry.genre == 'food') { + // this.get({ + // goods_id: evt.geometry.id + // }, '/api/goods/getGoodDetail').then(res => { + // if (res.data) { + // this.productType = true + // this.detailInfo = res.data + // this.detailShow = true + // } + // }) + // } + else { // 停车场 卫生间等 this.detailInfo = { title: evt.geometry.name, @@ -458,7 +480,7 @@ lat: evt.geometry.position.lat } console.log(this.detailInfo) - this.productType = false + this.productType = true this.detailShow = true } } @@ -680,28 +702,47 @@ .type-box { position: fixed; z-index: 2000; - width: 723px; - height: 53px; - top: 22px; - left: 27px; + width: 750px; + top: 0; + left: 0; display: flex; overflow-x: auto; + padding: 16px; + background-color: #fff; .type-item { padding: 0 26px; line-height: 53px; - background: #FFFFFF; + background: #F2F2F2; border-radius: 13px; font-weight: 500; font-size: 27px; - color: #000000; + color: #333333; margin-right: 27px; flex-shrink: 0; } .type-active { - background: linear-gradient(130deg, #9EE4FE, #7FD491); + background: #00AEA0; + color: #fff; + } + + .search { + padding-right: 21px; font-weight: bold; + font-size: 27px; + color: #00AEA0; + border-right: 1px solid #CCCCCC; + display: flex; + align-items: center; + margin-right: 18px; + white-space: nowrap; + + img { + width: 25px; + height: 25px; + margin-right: 8px; + } } } diff --git a/src/views/compoents/productDetail.vue b/src/views/compoents/productDetail.vue index 463710a..9cdff19 100644 --- a/src/views/compoents/productDetail.vue +++ b/src/views/compoents/productDetail.vue @@ -3,11 +3,15 @@
{{info.title}} -
购买
+
+ + +
讲解
+
-
- +
+
@@ -16,23 +20,24 @@
地址:{{info.address}}
-
- - -
讲解
+
+ +
电话
- +
导航
+
在线预订
+
简介: -
+
@@ -48,15 +53,31 @@ }, info: { type: Object, - detault: {} + default: {} }, audioSrc: { type: String, - detault: '' + default: '' }, genreType: { type: String, - detault: '' + default: '' + }, + imgList: { + type: String, + default: '' + }, + content: { + type: String, + default: '' + }, + isCanBuy: { + type: Boolean, + default: false + }, + tel: { + type: String, + default: '' } }, data() { @@ -65,9 +86,14 @@ } }, mounted() { - this.$refs.audio.src = this.util.showImg(this.audioSrc) + this.$refs.audio.src = this.util.showImg(this.audioSrc) || '' + this.info.link_type = 2 }, methods: { + // 拨打电话 + goTel() { + window.location.href = 'tel:' + this.tel; + }, audioPlay(status) { console.log(this.$refs.audio.paused) if(status) { @@ -100,16 +126,32 @@ font-size: 40px; color: #000000; - .top-btn { - width: 133px; - line-height: 59px; - background: #F74A57; - border-radius: 13px; + img { + width: 37px; + height: 37px; + margin-bottom: 5px; + } + + div { text-align: center; - font-size: 32px; - color: #FFFFFF; + font-weight: 500; + font-size: 24px; + color: #00AEA0; + white-space: nowrap; } } + .buy-btn { + margin: 36px 0 0 auto; + width: 200px; + height: 59px; + background: #FF7F00; + border-radius: 13px; + line-height: 59px; + text-align: center; + font-weight: bold; + font-size: 32px; + color: #FFFFFF; + } .img-box { overflow-x: auto; display: flex; @@ -153,7 +195,7 @@ width: 150px; font-weight: 500; font-size: 24px; - color: #71B580; + color: #00AEA0; img { width: 37px;