完成分享

This commit is contained in:
2022-06-06 14:36:39 +08:00
parent 5ae2eb3541
commit c00ab572fb
14 changed files with 61 additions and 82 deletions
+5 -3
View File
@@ -1,11 +1,13 @@
import Taro from "@tarojs/taro"
import { BASE_URL } from "../constant"
//解析短码
export const analysisShortCodeApi = () => {
//解析短码(主要用于右上角按钮分享)
export const analysisShortCodeApi = (val) => {
//解析短码
Taro.request({
url:BASE_URL+'/v1/mall/shortCode',
method:"GET",
data:{md5_key: page.options?.share},
data:{md5_key: val},
success:(res) => {
if(res.data.code == 0) {
//绑定上下级