Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gaoding/editor-miniprogram-sdk

Package Overview
Dependencies
Maintainers
22
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gaoding/editor-miniprogram-sdk - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

20

demo/components/editor-miniprogram-sdk/editor-miniprogram-sdk.js

@@ -58,5 +58,8 @@ Component({

observers: {
'thirdPartyUserCode': function(v) {
v && this.setUrl();
},
'thirdPartyUserCode,tokenData,templateId,thirdCateId,pageRoutes,currentPage,mode,image': function(v) {
const props = this.properties;
if(props.thirdPartyUserCode || props.tokenData) {
this.lazySetUrl();
}
}
},

@@ -77,6 +80,13 @@ methods: {

},
lazySetUrl() {
clearTimeout(this._timer);
this._timer = setTimeout(() => {
this.setUrl();
}, 10)
},
setUrl() {
console.log(this.getUrl() + '#wechat_redirect');
const url = this.getUrl() + '#wechat_redirect';
console.log(url);
this.setData({
url: this.getUrl() + '#wechat_redirect'
url
})

@@ -83,0 +93,0 @@ },

@@ -14,3 +14,2 @@ import { getCode } from '../../utils/util.js';

onLoad: function (options) {
this.setData({

@@ -17,0 +16,0 @@ query: options

{
"name": "@gaoding/editor-miniprogram-sdk",
"version": "0.0.4",
"version": "0.0.5",
"description": "稿定小程序编辑器对外 SDK",

@@ -5,0 +5,0 @@ "main": "src/editor-miniprogram-sdk.js",

@@ -58,5 +58,8 @@ Component({

observers: {
'thirdPartyUserCode': function(v) {
v && this.setUrl();
},
'thirdPartyUserCode,tokenData,templateId,thirdCateId,pageRoutes,currentPage,mode,image': function(v) {
const props = this.properties;
if(props.thirdPartyUserCode || props.tokenData) {
this.lazySetUrl();
}
}
},

@@ -77,6 +80,13 @@ methods: {

},
lazySetUrl() {
clearTimeout(this._timer);
this._timer = setTimeout(() => {
this.setUrl();
}, 10)
},
setUrl() {
console.log(this.getUrl() + '#wechat_redirect');
const url = this.getUrl() + '#wechat_redirect';
console.log(url);
this.setData({
url: this.getUrl() + '#wechat_redirect'
url
})

@@ -83,0 +93,0 @@ },

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc