!!com.aptana.scripting.model.BundleElement
author: ''
children:
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxerror]
  description: "通过error接口处理失败验证，所有接口通过wx对象(也可使用jWeixin对象)来调用，参数是一个对象，除了每个接口本身需要传的参\
    数之外，还有以下通用参数：\n\t1.success：接口调用成功时执行的回调函数。\n\t2.fail：接口调用失败时执行的回调函数。\n\t3.complete：\
    接口调用完成时执行的回调函数，无论成功或失败都会执行。\n\t4.cancel：用户点击取消时的回调函数，仅部分有用户取消操作的api才会用到。\n\t5.trigger:\
    \ 监听Menu中的按钮点击时触发的方法，该方法仅支持Menu中的相关接口。\n以上几个函数都带有一个参数，类型为对象，其中除了每个接口本身返回的数据之外，\
    还有一个通用属性errMsg，其值格式如下：\n\t1.调用成功时：\"xxx:ok\" ，其中xxx为调用的接口名\n\t2.用户取消时：\"xxx:cancel\"\
    ，其中xxx为调用的接口名\n\t3.调用失败时：其值为具体错误信息"
  displayName: wx.error
  expansion: "wx.error(function(res){\n\t// config信息验证失败会执行error函数，如签名过期导致验证失败，具体错\
    误信息可以打开config的debug模式查看，也可以在返回的res参数中查看，对于SPA可以在这里更新签名。\n\t$0\n});"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: &id001 []
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxready]
  description: 通过ready接口处理成功验证
  displayName: wx.ready
  expansion: "wx.ready(function(){\n\t// config信息验证后会执行ready方法，所有接口调用都必须在config接口获\
    得结果之后，config是一个客户端的异步操作，所以如果需要在页面加载时就调用相关接口，则须把相关接口放在ready函数中调用来确保正确执行。对于用户触发时\
    才调用的接口，则可以直接调用，不需要放在ready函数中。\n\t$0\n});"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxconfig]
  description: 通过config接口注入权限验证配置，所有需要使用JS-SDK的页面必须先注入配置信息，否则将无法调用（同一个url仅需调用一次，对于变化url的SPA的web app可在每次url变化时进行调用）。
  displayName: wx.config
  expansion: "wx.config({\n\tdebug: ${1:true/false}, // 开启调试模式,调用的所有api的返回值会在客户端alert出\
    来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。\n\tappId: '$2', // 必填，公众号的唯一标识\n\
    \ttimestamp: ${3:0}, // 必填，生成签名的时间戳\n\tnonceStr: '$4', // 必填，生成签名的随机串\n\tsignature:\
    \ '$5',// 必填，签名\n\tjsApiList: ['${6:onMenuShareTimeline/onMenuShareAppMessage/onMenuShareQQ/onMenuShareWeibo/startRecord/stopRecord/onVoiceRecordEnd/playVoice/pauseVoice/stopVoice/onVoicePlayEnd/uploadVoice/downloadVoice/chooseImage/previewImage/uploadImage/downloadImage/translateVoice/getNetworkType/openLocation/getLocation/hideOptionMenu/showOptionMenu/hideMenuItems/showMenuItems/hideAllNonBaseMenuItem/showAllNonBaseMenuItem/closeWindow/scanQRCode/chooseWXPay/openProductSpecificView/addCard/chooseCard/openCard}']\
    \ // 必填，需要使用的JS接口列表\n});"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxcheckjsapi]
  description: 判断当前客户端版本是否支持指定JS接口，checkJsApi接口是客户端6.0.2新引入的一个预留接口，第一期开放的接口均可不使用checkJsApi来检测
  displayName: wx.checkJsApi
  expansion: "wx.checkJsApi({\n\tjsApiList: ['${1:onMenuShareTimeline/onMenuShareAppMessage/onMenuShareQQ/onMenuShareWeibo/startRecord/stopRecord/onVoiceRecordEnd/playVoice/pauseVoice/stopVoice/onVoicePlayEnd/uploadVoice/downloadVoice/chooseImage/previewImage/uploadImage/downloadImage/translateVoice/getNetworkType/openLocation/getLocation/hideOptionMenu/showOptionMenu/hideMenuItems/showMenuItems/hideAllNonBaseMenuItem/showAllNonBaseMenuItem/closeWindow/scanQRCode/chooseWXPay/openProductSpecificView/addCard/chooseCard/openCard}'],\n\
    \tsuccess: function(res) {\n\t\t// 以键值对的形式返回，可用的api值true，不可用为false\n\t\t// 如：\
    {\"checkResult\":{\"chooseImage\":true},\"errMsg\":\"checkJsApi:ok\"}\n\t\t$0\n\
    \t}\n});"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxonmenusharetimeline]
  description: 获取“分享到朋友圈”按钮点击状态及自定义分享内容接口
  displayName: wx.onMenuShareTimeline
  expansion: "wx.onMenuShareTimeline({\n\ttitle: '$1', // 分享标题\n\tlink: '$2', // 分\
    享链接\n\timgUrl: '$3', // 分享图标\n\tsuccess: function () { \n\t\t// 用户确认分享后执行的回调函数\
    \n\t\t$4\n\t},\n\tcancel: function () { \n\t\t// 用户取消分享后执行的回调函数\n\t\t$5\n\t}\n\
    });"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxonmenushareappmessage]
  description: 获取“分享给朋友”按钮点击状态及自定义分享内容接口
  displayName: wx.onMenuShareAppMessage
  expansion: "wx.onMenuShareAppMessage({\n\ttitle: '$1', // 分享标题\n\tdesc: '$2', //\
    \ 分享描述\n\tlink: '$3', // 分享链接\n\timgUrl: '$4', // 分享图标\n\ttype: '${5:link/music/video}',\
    \ // 分享类型,music、video或link，不填默认为link\n\tdataUrl: '$6', // 如果type是music或video，则\
    要提供数据链接，默认为空\n\tsuccess: function () { \n\t\t// 用户确认分享后执行的回调函数\n\t\t$8\n\t},\n\
    \tcancel: function () { \n\t\t// 用户取消分享后执行的回调函数\n\t\t$9\n\t}\n});"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxonmenushareqq]
  description: 获取“分享到QQ”按钮点击状态及自定义分享内容接口
  displayName: wx.onMenuShareQQ
  expansion: "wx.onMenuShareQQ({\n\ttitle: '$1', // 分享标题\n\tdesc: '$2', // 分享描述\n\t\
    link: '$3', // 分享链接\n\timgUrl: '$4', // 分享图标\n\tsuccess: function () { \n\t\t\
    // 用户确认分享后执行的回调函数\n\t\t$5\n\t},\n\tcancel: function () { \n\t\t// 用户取消分享后执行的回调\
    函数\n\t\t$6\n\t}\n});"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxonmenushareweibo]
  description: 获取“分享到腾讯微博”按钮点击状态及自定义分享内容接口
  displayName: wx.onMenuShareWeibo
  expansion: "wx.onMenuShareWeibo({\n\ttitle: '$1', // 分享标题\n\tdesc: '$2', // 分享描述\
    \n\tlink: '$3', // 分享链接\n\timgUrl: '$4', // 分享图标\n\tsuccess: function () { \n\t\
    \t// 用户确认分享后执行的回调函数\n\t\t$5\n\t},\n\tcancel: function () { \n\t\t// 用户取消分享后执行的\
    回调函数\n\t\t$6\n\t}\n});"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxchooseimage]
  description: 拍照或从手机相册中选图接口
  displayName: wx.chooseImage
  expansion: "wx.chooseImage({\n\tsuccess: function (res) {\n\t\tvar localIds = res.localIds;\
    \ // 返回选定照片的本地ID列表，localId可以作为img标签的src属性显示图片\n\t\t$0\n\t}\n});"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxpreviewimage]
  description: 预览图片接口
  displayName: wx.previewImage
  expansion: "wx.previewImage({\n\tcurrent: '$1', // 当前显示的图片链接\n\turls: [$2] // 需要\
    预览的图片链接列表\n});"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxuploadimage]
  description: 上传图片接口
  displayName: wx.uploadImage
  expansion: "wx.uploadImage({\n\tlocalId: '$1', // 需要上传的图片的本地ID，由chooseImage接口获得\n\
    \tisShowProgressTips: ${2:1},// 默认为1，显示进度提示\n\tsuccess: function (res) {\n\t\t\
    var serverId = res.serverId; // 返回图片的服务器端ID\n\t\t$0\n\t}\n});"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxdownloadimage]
  description: 下载图片接口
  displayName: wx.downloadImage
  expansion: "wx.downloadImage({\n\tserverId: '$1', // 需要下载的图片的服务器端ID，由uploadImage接\
    口获得\n\tisShowProgressTips: ${2:1},// 默认为1，显示进度提示\n\tsuccess: function (res) {\n\
    \t\tvar localId = res.localId; // 返回图片下载后的本地ID\n\t\t$0\n\t}\n});"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxstartrecord]
  description: 开始录音接口
  displayName: wx.startRecord
  expansion: wx.startRecord();
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxstoprecord]
  description: 停止录音接口
  displayName: wx.stopRecord
  expansion: "wx.stopRecord({\n\tsuccess: function (res) {\n\t\tvar localId = res.localId;\n\
    \t\t$0\n\t}\n});"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxonvoicerecordend]
  description: 监听录音自动停止接口
  displayName: wx.onVoiceRecordEnd
  expansion: "wx.onVoiceRecordEnd({\n\t// 录音时间超过一分钟没有停止的时候会执行 complete 回调\n\tcomplete:\
    \ function (res) {\n\t\tvar localId = res.localId; \n\t\t$0\n\t}\n});"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxplayvoice]
  description: 播放语音接口
  displayName: wx.playVoice
  expansion: "wx.playVoice({\n\tlocalId: '$1' // 需要播放的音频的本地ID，由stopRecord接口获得\n});"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxpausevoice]
  description: 暂停播放接口
  displayName: wx.pauseVoice
  expansion: "wx.pauseVoice({\n    localId: '$1' // 需要暂停的音频的本地ID，由stopRecord接口获得\n\
    });"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxstopvoice]
  description: 停止播放接口
  displayName: wx.stopVoice
  expansion: "wx.stopVoice({\n\tlocalId: '$1' // 需要停止的音频的本地ID，由stopRecord接口获得\n});"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxonvoiceplayend]
  description: 监听语音播放完毕接口
  displayName: wx.onVoicePlayEnd
  expansion: "wx.onVoicePlayEnd({\n\tserverId: '$1', // 需要下载的音频的服务器端ID，由uploadVoice接\
    口获得\n\tsuccess: function (res) {\n\t\tvar localId = res.localId; // 返回音频的本地ID\n\
    \t\t$0\n\t}\n});"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxuploadvoice]
  description: 上传语音接口
  displayName: wx.uploadVoice
  expansion: "wx.uploadVoice({\n\tlocalId: '$1', // 需要上传的音频的本地ID，由stopRecord接口获得\n\
    \tisShowProgressTips: ${2:1},// 默认为1，显示进度提示\n\tsuccess: function (res) {\n\t\t\
    var serverId = res.serverId; // 返回音频的服务器端ID\n\t\t$0\n\t}\n});"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxdownloadvoice]
  description: 下载语音接口
  displayName: wx.downloadVoice
  expansion: "wx.downloadVoice({\n\tserverId: '$1', // 需要下载的音频的服务器端ID，由uploadVoice接\
    口获得\n\tisShowProgressTips: ${2:1},// 默认为1，显示进度提示\n\tsuccess: function (res) {\n\
    \t\tvar localId = res.localId; // 返回音频的本地ID\n\t\t$0\n\t}\n});"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxtranslatevoice]
  description: 识别音频并返回识别结果接口
  displayName: wx.translateVoice
  expansion: "wx.translateVoice({\n\tlocalId: '$1', // 需要识别的音频的本地Id，由录音相关接口获得\n\t\
    isShowProgressTips: ${2:1}, // 默认为1，显示进度提示\n\tsuccess: function (res) {\n\t\t\
    alert(res.translateResult); // 语音识别的结果\n\t\t$0\n\t}\n});"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxgetnetworktype]
  description: 获取网络状态接口
  displayName: wx.getNetworkType
  expansion: "wx.getNetworkType({\n\tsuccess: function (res) {\n\t\tvar networkType\
    \ = res.networkType; // 返回网络类型2g，3g，4g，wifi\n\t\t$0\n\t}\n});"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxopenlocation]
  description: 使用微信内置地图查看位置接口
  displayName: wx.openLocation
  expansion: "wx.openLocation({\n\tlatitude: ${1:0}, // 纬度，浮点数，范围为90 ~ -90\n\tlongitude:\
    \ ${2:0}, // 经度，浮点数，范围为180 ~ -180。\n\tname: '$3', // 位置名\n\taddress: '$4', //\
    \ 地址详情说明\n\tscale: ${5:1}, // 地图缩放级别,整形值,范围从1~28。默认为最大\n\tinfoUrl: '$6' // 在查看\
    位置界面底部显示的超链接,可点击跳转\n});"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxgetlocation]
  description: 获取地理位置接口
  displayName: wx.getLocation
  expansion: "wx.getLocation({\n\ttimestamp: ${1:0}, // 位置签名时间戳，仅当需要兼容6.0.2版本之前时提供\
    \n\tnonceStr: '$2', // 位置签名随机串，仅当需要兼容6.0.2版本之前时提供\n\taddrSign: '$3', // 位置签名，仅\
    当需要兼容6.0.2版本之前时提供，详见附录4\n\tsuccess: function (res) {\n\t\tvar longitude = res.longitude;\
    \ // 纬度，浮点数，范围为90 ~ -90\n\t\tvar latitude = res.latitude; // 经度，浮点数，范围为180 ~ -180。\
    \n\t\tvar speed = res.speed; // 速度，以米/每秒计\n\t\tvar accuracy = res.accuracy; //\
    \ 位置精度\n\t\t$0\n\t}\n});"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxhideoptionmenu]
  description: 隐藏右上角菜单接口
  displayName: wx.hideOptionMenu
  expansion: wx.hideOptionMenu();
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxshowoptionmenu]
  description: 显示右上角菜单接口
  displayName: wx.showOptionMenu
  expansion: wx.showOptionMenu();
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxclosewindow]
  description: 关闭当前网页窗口接口
  displayName: wx.closeWindow
  expansion: wx.closeWindow();
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxhidemenuitems]
  description: 批量隐藏功能按钮接口
  displayName: wx.hideMenuItems
  expansion: "wx.hideMenuItems({\n\tmenuList: [$1] // 要隐藏的菜单项\n});"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxshowmenuitems]
  description: 批量显示功能按钮接口
  displayName: wx.showMenuItems
  expansion: "wx.showMenuItems({\n\tmenuList: [$1] // 要显示的菜单项\n});"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxhideallnonbasemenuitem]
  description: 隐藏所有非基础按钮接口
  displayName: wx.hideAllNonBaseMenuItem
  expansion: wx.hideAllNonBaseMenuItem();
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxshowallnonbasemenuitem]
  description: 显示所有功能按钮接口
  displayName: wx.showAllNonBaseMenuItem
  expansion: wx.showAllNonBaseMenuItem();
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxscanqrcode]
  description: 调起微信扫一扫接口
  displayName: wx.scanQRCode
  expansion: "wx.scanQRCode({\n\tdesc: '$1',\n\tneedResult: ${2:0}, // 默认为0，扫描结果由微\
    信处理，1则直接返回扫描结果，\n\tscanType: [\"qrCode\",\"barCode\"], // 可以指定扫二维码还是一维码，默认二者都有\
    \n\tsuccess: function (res) {\n\t\tvar result = res.resultStr; // 当needResult\
    \ 为 1 时，扫码返回的结果\n\t\t$0\n\t}\n});"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxopenproductspecificview]
  description: 跳转微信商品页接口
  displayName: wx.openProductSpecificView
  expansion: "wx.openProductSpecificView({\n\tproductId: '$1', // 商品id\n\tviewType:\
    \ '$2' // 0.默认值，普通商品详情页1.扫一扫商品详情页2.小店商品详情页\n});"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxchoosecard]
  description: 调起适用于门店的卡券列表并获取用户选择列表
  displayName: wx.chooseCard
  expansion: "wx.chooseCard({\n\tshopId: '$1', // 门店Id\n\tcardType: '$2', // 卡券类型\n\
    \tcardId: '$3', // 卡券Id\n\ttimeStamp: ${4:0}, // 卡券签名时间戳\n\tnonceStr: '$5', //\
    \ 卡券签名随机串\n\tcardSign: '$6', // 卡券签名，详见附录6\n\tsuccess: function (res) {\n\t\t\
    var cardList= res.cardList; // 用户选中的卡券列表信息\n\t\t$0\n\t}\n});"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxaddcard]
  description: 批量添加卡券接口
  displayName: wx.addCard
  expansion: "wx.addCard({\n\tcardList: [{\n\t\tcardId: '$1',\n\t\tcardExt: '$2'\n\
    \t}], // 需要添加的卡券列表\n\tsuccess: function (res) {\n\t\tvar cardList = res.cardList;\
    \ // 添加的卡券列表信息\n\t\t$0\n\t}\n});"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxopencard]
  description: 查看微信卡包中的卡券接口
  displayName: wx.openCard
  expansion: "wx.openCard({\n\tcardList: [{\n\t\tcardId: '$1',\n\t\tcode: '$2'\n\t\
    }]// 需要打开的卡券列表\n});"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
- !!com.aptana.scripting.model.SnippetElement
  async: false
  category: null
  customProperties:
    prefix_values: [wxchoosewxpay]
  description: 发起一个微信支付请求
  displayName: wx.chooseWXPay
  expansion: "wx.chooseWXPay({\n\ttimestamp: ${1:0}, // 支付签名时间戳\n\tnoncestr: '$2',\
    \ // 支付签名随机串\n\tpackage: '$3', // 订单详情扩展字符串\n\tpaySign: '$4' // 支付签名\n});"
  iconPath: null
  id: null
  input: [none]
  inputPath: null
  keyBindingMap: null
  locationType: null
  menuId: null
  needApplyReContentAssist: false
  outputPath: null
  outputType: insert_as_snippet
  path: snippets\snippets.rb
  runType: current_thread
  scope: source.js
  tags: *id001
  version: null
  workingDirectoryType: UNDEFINED
copyright: ''
customProperties: null
decreaseIndentMarkers: &id002 {}
description: wx bundle for RadRails
displayName: bundle_name
fileTypeRegistry: *id002
fileTypes: *id001
foldingStartMarkers: *id002
foldingStopMarkers: *id002
increaseIndentMarkers: *id002
license: null
licenseUrl: null
path: bundle.rb
repository: ''
visible: true
