jmash-core-mp 0.1.66 → 0.1.68

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.
@@ -17,6 +17,8 @@ const defaultConfig = {
17
17
  welcomeLogo: "/images/mall/img-1.png",
18
18
  // 公众号APPID-索易科技
19
19
  officialAccountId: "wx2ec7549343d60f3a",
20
+ // 公众号文章URL
21
+ officialAccountArticleUrl: "",
20
22
  };
21
23
  const config = { ...defaultConfig };
22
24
  function setConfig(cfg) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmash-core-mp",
3
- "version": "0.1.66",
3
+ "version": "0.1.68",
4
4
  "private": false,
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -303,17 +303,16 @@ createComponent({
303
303
  this.pickerOptShow = true;
304
304
  if (this.$refs.pickerOption) this.$refs.pickerOption.show();
305
305
  },
306
- // 关闭弹框
306
+ // 关闭弹框(未确认,索引回滚到当前值对应项)
307
307
  handlePickerOptClose() {
308
308
  this.pickerOptShow = false;
309
309
  if (this.$refs.pickerOption) this.$refs.pickerOption.hide();
310
+ this._feedbackPickerOpt();
310
311
  },
311
- // 滚动选择
312
+ // 滚动选择(仅记录索引,显示文本保持已确认值,避免未确认关闭时显示与数据不一致)
312
313
  handlePickerOptChange(e: EventBase) {
313
314
  const index = e.detail.selectedIndex as number[];
314
- const item = this.pickerData[index[0]];
315
315
  this.pickerOptSelectedIndex = index;
316
- this.pickerOptDisplayText = item[this.pickerOptions.valueLable];
317
316
  },
318
317
  // 确认选择
319
318
  handlePickerOptConfirm(e: EventBase) {
@@ -5,7 +5,7 @@
5
5
  <input class="search-input" placeholder-style="color: {{ color }};"
6
6
  style="color: {{ color }}; background-color: {{ backColor }}; width: {{ isSearchBtn ? '60%' : '100%' }}; {{ isSearchBtn ? '' : 'padding-right: 40rpx' }}"
7
7
  focus="{{ focus }}" placeholder="{{ placeholder }}" disabled="{{ disabled }}" value="{{ likeName }}"
8
- bind:input="handleInput" bind:tap="handleTap" />
8
+ bind:input="handleInput" bind:change="handleChange" bind:tap="handleTap" />
9
9
  <view class="search-btn" wx:if="{{ isSearchBtn }}">
10
10
  <slot></slot>
11
11
  </view>
@@ -74,6 +74,10 @@ createComponent({
74
74
  handleInput(e: EventBase) {
75
75
  this.triggerEvent("handleSearch", e.detail.value)
76
76
  },
77
+ // 输入框改变事件
78
+ handleChange(e: EventBase) {
79
+ this.triggerEvent("handelChange", e.detail.value)
80
+ },
77
81
  // 一般用于点击搜索框跳转到搜索页
78
82
  handleTap() {
79
83
  this.triggerEvent("click")
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <!-- 授权登录 -->
3
- <cube-modal wx:ref="loginModal" visible="{{ isVisible }}" noBuiltInBtns="true" maskClosable="false" z-index="999"
3
+ <cube-modal wx:ref="loginModal" visible="{{ isVisible }}" noBuiltInBtns="true" maskClosable="false" z-index="999999"
4
4
  bind:cancel="onClose" mask-opacity="0.1" class="login-popup">
5
5
  <!-- 标题区域 -->
6
6
  <view class="popup-header" slot="header">
@@ -19,6 +19,8 @@ const defaultConfig: AppConfig = {
19
19
  welcomeLogo: "/images/mall/img-1.png",
20
20
  // 公众号APPID-索易科技
21
21
  officialAccountId: "wx2ec7549343d60f3a",
22
+ // 公众号文章URL
23
+ officialAccountArticleUrl: "",
22
24
  };
23
25
 
24
26
  const config: AppConfig = { ...defaultConfig };