diff --git a/locale/en.json b/locale/en.json index 975b0958..5870a8db 100644 --- a/locale/en.json +++ b/locale/en.json @@ -570,7 +570,8 @@ "bogx42": "price", "3kdgjl": "Sales price", "by7052": "Already ", - "tq1976": "URL event is empty", + "tq1976": "The URL value is empty", + "uyghj2": "Copy value is empty", "98v424": "Store data is incorrect", "721e2h": "Event not processed(" } diff --git a/locale/zh.json b/locale/zh.json index 71fbdda1..72a4b948 100644 --- a/locale/zh.json +++ b/locale/zh.json @@ -560,7 +560,8 @@ "bogx42": "售价", "3kdgjl": "销售价", "by7052": "已", - "tq1976": "url事件为空", + "tq1976": "url值为空", + "uyghj2": "复制值为空", "98v424": "门店数据有误", "721e2h": "事件未处理(" } diff --git a/pages/goods-detail/goods-detail.vue b/pages/goods-detail/goods-detail.vue index 9ffc72c5..155d274a 100644 --- a/pages/goods-detail/goods-detail.vue +++ b/pages/goods-detail/goods-detail.vue @@ -1138,6 +1138,7 @@ switch (type) { // 展示型、拨打电话 case 'show': + case 'tel': app.globalData.call_tel(value || this.common_app_customer_service_tel); break; // 规格选择(展示模式)、购买、加入购物车 @@ -1151,12 +1152,21 @@ break; // url事件 case 'url': + case 'link': if (value == null) { app.globalData.showToast(this.$t('goods-detail.goods-detail.tq1976')); return false; } app.globalData.url_open(value); break; + // 复制事件 + case 'copy': + if (value == null) { + app.globalData.showToast(this.$t('goods-detail.goods-detail.uyghj2')); + return false; + } + app.globalData.text_copy_event(value); + break; // 门店 case 'plugins-realstore': if((this.plugins_realstore_data || null) == null || (this.plugins_realstore_data.data || null) == null) {