|
|
@@ -32,8 +32,8 @@
|
|
|
<h1>分享链接</h1>
|
|
|
<p>随时随地使用手机查看店铺现货</p>
|
|
|
<vue-q-art :config="config"></vue-q-art>
|
|
|
- <input :value="url" readonly>
|
|
|
- <span id="copyLink" :data-clipboard-text="url">复制链接</span>
|
|
|
+ <input :value="hrefUrl" readonly>
|
|
|
+ <span id="copyLink" :data-clipboard-text="hrefUrl">复制链接</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -90,7 +90,8 @@ export default {
|
|
|
isOpen: false,
|
|
|
dialogVisible: false,
|
|
|
clipboard: {},
|
|
|
- showShare: false
|
|
|
+ showShare: false,
|
|
|
+ hrefUrl: 'https://www.usoftmall.com'
|
|
|
// config: {
|
|
|
// value: 'https://www.baidu.com',
|
|
|
// imagePath: '/images/all/default.png',
|
|
|
@@ -135,6 +136,7 @@ export default {
|
|
|
},
|
|
|
url: {
|
|
|
get: function () {
|
|
|
+ this.hrefUrl = window.location.protocol + '//' + window.location.host + '/mobile/share/storeShare/' + this.storeInfo.uuid
|
|
|
return '/mobile/share/storeShare/' + this.storeInfo.uuid
|
|
|
},
|
|
|
set: function () {
|
|
|
@@ -142,7 +144,7 @@ export default {
|
|
|
},
|
|
|
config () {
|
|
|
return {
|
|
|
- value: this.url,
|
|
|
+ value: window.location.protocol + '//' + window.location.host + this.url,
|
|
|
imagePath: '/images/all/default.png',
|
|
|
filter: 'color'
|
|
|
}
|