From 49edf3b5b18597aacc3c05529712fbbe9720a805 Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期一, 31 七月 2023 14:38:03 +0800 Subject: [PATCH] no message --- pages/takeout/elm.vue | 37 +++++++++++++++++++++++++++++-------- 1 files changed, 29 insertions(+), 8 deletions(-) diff --git a/pages/takeout/elm.vue b/pages/takeout/elm.vue index 6d57def..e417552 100644 --- a/pages/takeout/elm.vue +++ b/pages/takeout/elm.vue @@ -34,19 +34,20 @@ 瑙勫垯璇存槑锛� </view> <view class="richtext-content"> - 1.绾㈠寘闇�鍏堥鍙栨墠鑳藉湪涓嬪崟椤甸潰浣跨敤; - 2.鍔犻绾㈠寘鍜屽鍗栫孩鍖呬笉鍐茬獊,鍙互鍚屾椂棰嗗彇,鍝釜绾㈠寘澶х敤鍝釜; - 3.鏃犺楗夸簡涔堟柊鑰佺敤鎴�,澶栧崠绾㈠寘鍜屽姞椁愮孩鍖呮瘡涓墜鏈哄彿姣忓ぉ鍧囧彲棰嗕竴娆�,绾㈠寘閲戦闅忔満鍙戞斁; + <view>1.绾㈠寘闇�鍏堥鍙栨墠鑳藉湪涓嬪崟椤甸潰浣跨敤;</view> + <view>2.鍔犻绾㈠寘鍜屽鍗栫孩鍖呬笉鍐茬獊,鍙互鍚屾椂棰嗗彇,鍝釜绾㈠寘澶х敤鍝釜;</view> + <view>3.鏃犺楗夸簡涔堟柊鑰佺敤鎴�,澶栧崠绾㈠寘鍜屽姞椁愮孩鍖呮瘡涓墜鏈哄彿姣忓ぉ鍧囧彲棰嗕竴娆�,绾㈠寘閲戦闅忔満鍙戞斁;</view> </view> </view> </view> </template> <script> import './elm.css' - import comUtils from '../../common/ComUtils.js' + import api from '@/common/tk_api.js' export default { data() { return { + api, optionsCurrent:3, qrcode:'', mtInfo:{}, @@ -61,6 +62,19 @@ ] } }, + onShareAppMessage: function() { + return { + title: '楗夸簡涔堢孩鍖�', + path: '/pages/takeout/elm', + // promise + } + }, + onShareTimeline() { + return { + title: '楗夸簡涔堢孩鍖�', + path: '/pages/takeout/elm', + } + }, onLoad() { this.IntiData() }, @@ -71,7 +85,7 @@ mask:true }); var that = this; - this.$http.post('/tkapi/api/taoke/ele_act', { + this.api.post('/api/taoke/ele_act', { type: this.optionsCurrent }).then(e => { uni.hideLoading(); @@ -93,12 +107,19 @@ }, toMt() { - uni.redirectTo({ - url:'./mt?dfgtoken='+comUtils.getUrlPar('dfgtoken') + uni.switchTab({ + url:'./mt' }) }, shareClick() { - window.location.href=this.mtInfo.h5; + uni.navigateToMiniProgram({ + appId: this.mtInfo.we_app_info.app_id, + path: this.mtInfo.we_app_info.page_path, + success(res) { + // 鎵撳紑鎴愬姛 + } + }) + // window.location.href=this.mtInfo.h5; }, } -- Gitblit v1.9.3