第一次提交
This commit is contained in:
1
unpackage/dist/build/mp-weixin/pages/agent/qrcode/qrcode.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/agent/qrcode/qrcode.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/agent/qrcode/qrcode"],{"00e2":function(e,t,n){"use strict";n.r(t);var o=n("195c"),a=n("bdb6");for(var u in a)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(u);n("d3a9");var c=n("828b"),i=Object(c["a"])(a["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=i.exports},"195c":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}));var o=function(){var e=this.$createElement;this._self._c},a=[]},"70ee":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{qrcode_url:""}},mounted:function(){this.getData()},methods:{getData:function(){var t=this;e.showLoading({title:"加载中"});var n=t.getPlatform();t._get("plus.agent.qrcode/poster",{source:n},(function(n){e.hideLoading(),t.qrcode_url=n.data.qrcode}))},savePosterImg:function(){var t=this;e.showLoading({title:"加载中"}),e.downloadFile({url:t.qrcode_url,success:function(n){e.hideLoading(),e.saveImageToPhotosAlbum({filePath:n.tempFilePath,success:function(n){e.showToast({title:"保存成功",icon:"success",duration:2e3}),t.isCreatedImg=!1},fail:function(t){console.log(t.errMsg),"saveImageToPhotosAlbum:fail auth deny"===t.errMsg&&(e.showToast({title:"请允许访问相册后重试",icon:"none",duration:1e3}),setTimeout((function(){e.openSetting()}),1e3))},complete:function(e){console.log("complete")}})}})}}};t.default=n}).call(this,n("df3c")["default"])},"993f":function(e,t,n){"use strict";(function(e,t){var o=n("47a9");n("7d57");o(n("3240"));var a=o(n("00e2"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},aa22:function(e,t,n){},bdb6:function(e,t,n){"use strict";n.r(t);var o=n("70ee"),a=n.n(o);for(var u in o)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(u);t["default"]=a.a},d3a9:function(e,t,n){"use strict";var o=n("aa22"),a=n.n(o);a.a}},[["993f","common/runtime","common/vendor"]]]);
|
||||
4
unpackage/dist/build/mp-weixin/pages/agent/qrcode/qrcode.json
vendored
Normal file
4
unpackage/dist/build/mp-weixin/pages/agent/qrcode/qrcode.json
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "推广二维码",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/agent/qrcode/qrcode.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/agent/qrcode/qrcode.wxml
vendored
Normal file
@ -0,0 +1 @@
|
||||
<view class="qrcode"><image src="{{qrcode_url}}" mode="widthFix"></image><view class="btns-wrap"><button class="btn-red" type="default" data-event-opts="{{[['tap',[['savePosterImg',['$event']]]]]}}" bindtap="__e">保存图片</button></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/agent/qrcode/qrcode.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/agent/qrcode/qrcode.wxss
vendored
Normal file
@ -0,0 +1 @@
|
||||
.qrcode image{width:100%}.btns-wrap{position:fixed;height:88rpx;right:0;bottom:0;left:0;display:flex;z-index:10}.btns-wrap .btn-red{width:100%;height:88rpx;line-height:88rpx;border-radius:0}
|
||||
Reference in New Issue
Block a user