jufubao-forms 1.0.6 → 1.0.8-beta1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-forms",
3
- "version": "1.0.6",
3
+ "version": "1.0.8-beta1",
4
4
  "private": false,
5
5
  "description": "聚福宝表单业务插件库",
6
6
  "main": "index.js",
@@ -310,6 +310,7 @@
310
310
  onJfbLoad(options) {
311
311
  let imgHost = this.projectAttr['img_host'] || this.$settings.cdnUrl;
312
312
  this.imgHost = imgHost;
313
+ options.form_id = options.form_id || options.id;
313
314
 
314
315
  if (!this.isPreview){
315
316
  if(!options.form_id) {
@@ -140,6 +140,7 @@
140
140
  },
141
141
  marketToolText(){
142
142
  let toolText = {
143
+ 'prize-answer': '去抽奖',
143
144
  prize: '去抽奖',
144
145
  coupon: '去领券',
145
146
  walking: '健步走',
@@ -213,7 +214,7 @@
213
214
  handleMarketToolBtn(){
214
215
  let url = this.checkUrlIsValid(this.activity_page_url);
215
216
  if(url){
216
- if(this.marketing_tool === 'prize') url = url + '?id=' + this.activity_id;
217
+ if(this.marketing_tool === 'prize' || this.marketing_tool === 'prize-answer') url = url + '?id=' + this.activity_id;
217
218
  else if(this.marketing_tool === 'coupon') url = url + '?activity_id=' + this.activity_id;
218
219
  else url = url + `?id=${this.activity_id}&activity_id=${this.activity_id}&foreign_id=${this.foreign_id}`;
219
220
  this.$xdUniHelper.navigateTo({
@@ -256,7 +256,7 @@
256
256
  },
257
257
  methods: {
258
258
  onJfbLoad(options) {
259
-
259
+ options.form_id = options.form_id || options.id;
260
260
  if(!this.isPreview && !options.form_id) {
261
261
  return uni.showToast({
262
262
  title: '请配置表单id',
@@ -1,22 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * @description 第三方库
5
- * @param threePackagePath {String} 第三方库所在项目路径存放路径路
6
- * @param packname {String} 包名字
7
- * @returns {string|*}
8
- */
9
- const getPackagePath = (threePackagePath, packname = 'gxd-commands-bussiness')=>{
10
- if(packname === 'gxd-commands-bussiness') {
11
- return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-commands-bussiness/${threePackagePath}`;
12
- }
13
-
14
- if (packname === 'gxd-uni-library-editx') {
15
- return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-uni-library-editx/${threePackagePath}`;
16
- }
17
-
18
- };
19
-
20
- module.exports = {
21
- getPackagePath
22
- }