Showing
2 changed files
with
21 additions
and
3 deletions
1 | /* global wx */ | 1 | /* global wx */ |
2 | import $ from 'yoho-jquery'; | 2 | import $ from 'yoho-jquery'; |
3 | +import tip from 'plugin/tip'; | ||
3 | 4 | ||
4 | class LinkHandle { | 5 | class LinkHandle { |
5 | constructor() { | 6 | constructor() { |
@@ -65,9 +66,7 @@ class LinkHandle { | @@ -65,9 +66,7 @@ class LinkHandle { | ||
65 | } else if (paramsObj.action === 'go.shop') { // 店铺 | 66 | } else if (paramsObj.action === 'go.shop') { // 店铺 |
66 | path = `/pages/goodsList/brandStore?shopId=${paramsObj.params.shop_id}`; | 67 | path = `/pages/goodsList/brandStore?shopId=${paramsObj.params.shop_id}`; |
67 | } else { | 68 | } else { |
68 | - wx.miniProgram.postMessage({ | ||
69 | - message: '暂不支持,请使用Yoho!buy有货app选购' | ||
70 | - }); | 69 | + tip.show('暂不支持,请使用Yoho!buy有货APP选购'); |
71 | } | 70 | } |
72 | 71 | ||
73 | return path; | 72 | return path; |
@@ -373,3 +373,22 @@ li { | @@ -373,3 +373,22 @@ li { | ||
373 | transform-origin: right center; | 373 | transform-origin: right center; |
374 | } | 374 | } |
375 | } | 375 | } |
376 | + | ||
377 | +.yoho-tip { | ||
378 | + position: fixed; | ||
379 | + display: none; | ||
380 | + text-align: center; | ||
381 | + width: 50%; | ||
382 | + padding: 15PX; | ||
383 | + top: 50%; | ||
384 | + left: 50%; | ||
385 | + margin-left: -25%; | ||
386 | + margin-top: -45PX; | ||
387 | + background-color: rgba(0, 0, 0, 0.7); | ||
388 | + color: #fff; | ||
389 | + font-size: 24px; | ||
390 | + border: none; | ||
391 | + z-index: 100; | ||
392 | + box-sizing: border-box; | ||
393 | + border-radius: 10PX; | ||
394 | +} |
-
Please register or login to post a comment