|
|
|
@ -99,26 +99,26 @@
|
|
|
|
|
<a href="@Url.Action("Index","Home",new { area="Admin" })">管理</a>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<canvas id="android_app" style="width:180px;height:180px;"></canvas>
|
|
|
|
|
<canvas id="ios_app" style="width:180px;height:180px;"></canvas>
|
|
|
|
|
</div>
|
|
|
|
|
@*<div class="row">
|
|
|
|
|
<canvas id="android_app" style="width:180px;height:180px;"></canvas>
|
|
|
|
|
<canvas id="ios_app" style="width:180px;height:180px;"></canvas>
|
|
|
|
|
</div>*@
|
|
|
|
|
</div>
|
|
|
|
|
</footer>
|
|
|
|
|
</div>
|
|
|
|
|
@(await Html.PartialAsync("_Footer"))
|
|
|
|
|
@RenderSection("scripts", required: false)
|
|
|
|
|
<script src="~/js/site.js"></script>
|
|
|
|
|
<script src="~/lib/qrcode/qrcode.min.js"></script>
|
|
|
|
|
<script>
|
|
|
|
|
var androidUrl = location.protocol + '//' + location.host + '@Url.Content("~/app.apk")';
|
|
|
|
|
QRCode.toCanvas(document.getElementById('android_app'), androidUrl, {width:150}, function (error) {
|
|
|
|
|
if (error) console.error(error)
|
|
|
|
|
})
|
|
|
|
|
var iosUrl = '@iosAppUrl'; 'itms-services://?action=download-manifest&url='+ location.protocol + '//' + location.host + '@Url.Content("~/Info.plist")';
|
|
|
|
|
QRCode.toCanvas(document.getElementById('ios_app'), iosUrl, { width: 150 },function (error) {
|
|
|
|
|
if (error) console.error(error)
|
|
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
@*<script src="~/lib/qrcode/qrcode.min.js"></script>
|
|
|
|
|
<script>
|
|
|
|
|
var androidUrl = location.protocol + '//' + location.host + '@Url.Content("~/app.apk")';
|
|
|
|
|
QRCode.toCanvas(document.getElementById('android_app'), androidUrl, {width:150}, function (error) {
|
|
|
|
|
if (error) console.error(error)
|
|
|
|
|
})
|
|
|
|
|
var iosUrl = '@iosAppUrl'; 'itms-services://?action=download-manifest&url='+ location.protocol + '//' + location.host + '@Url.Content("~/Info.plist")';
|
|
|
|
|
QRCode.toCanvas(document.getElementById('ios_app'), iosUrl, { width: 150 },function (error) {
|
|
|
|
|
if (error) console.error(error)
|
|
|
|
|
})
|
|
|
|
|
</script>*@
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|