Shopify独立站和Wordpress商城如何实现无需插件包裹追踪功能?
本文有444个文字,大小约为2KB,预计阅读时间2分钟
原文标题:Shopify独立站和Wordpress商城如何实现无需插件包裹追踪功能?
Track123代码:
<script type="text/javascript">window.track123WidgetConfig = {"api_base":"https://www.track123.com","provider_type":"1","language":"en_US","theme_color":"#03F907","width_type":"auto","width_value":""};(function (e, t, n) {var r, i = e.getElementsByTagName(t)[0];if (e.getElementById(n)) return;r = e.createElement(t);r.src = "https://www.track123.com/track123-widget.min.js";i[xss_clean].insertBefore(r, i)})(document, "script", "track123-tracking-widget")</script>
<div id="track123-tracking-widget"></div>
17track代码:
<div style="margin-top: 10px; margin-bottom: 20px;"><!--Tracking number input box.--> <input class="Form__Input" type="text" placeholder="Enter your Tracking number" id="YQNum" maxlength="50" style="width: 100%; height: 57px;"> <!--The button is used to call script method.--> <input class="Button" style="background: #000; border-radius: 0; width: 100%; height: 50px; margin-left: 0px; color: #fff;" type="button" value="TRACK" onclick="doTrack()"> <!--Container to display the tracking result.-->
<div id="YQContainer"></div>
<!--脚本代码可放于页面底部,等到页面最后执行。--> <script type="text/javascript" src="//www.17track.net/externalcall.js"></script> <script type="text/javascript">
function doTrack() {
var num = document.getElementById("YQNum").value;
if(num===""){
alert("Enter your number.");
return;
}
YQV5.trackSingle({
//Required, Specify the container ID of the carrier content.
YQ_ContainerId:"YQContainer",
//Optional, specify tracking result height, max height 800px, default is 560px.
YQ_Height:560,
//Optional, select carrier, default to auto identify.
YQ_Fc:"0",
//Optional, specify UI language, default language is automatically detected based on the browser settings.
YQ_Lang:"en",
//Required, specify the number needed to be tracked.
YQ_Num:num
});
}
// ]]>
</script></div>
本文来源:https://google520.net/tutorials/254.html
版权声明:本文为向前网络工作室,未经站长允许不得转载。