李志伟 3 年之前
父節點
當前提交
2d05b4cb19
共有 1 個檔案被更改,包括 2 行新增3 行删除
  1. 2
    3
      src/components/CompoentsOrder/OrderCard/index.jsx

+ 2
- 3
src/components/CompoentsOrder/OrderCard/index.jsx 查看文件

36
     Taro.scanCode({
36
     Taro.scanCode({
37
       onlyFromCamera: true,
37
       onlyFromCamera: true,
38
       success: (res) => {
38
       success: (res) => {
39
-
40
         if (res.path) {
39
         if (res.path) {
41
           getQrcode(parseQueryString(res.path.split('?')[1]).scene).then((res2) => {
40
           getQrcode(parseQueryString(res.path.split('?')[1]).scene).then((res2) => {
42
             const maid = res2.scene.split('=')[1].split('&')[0] //二维码的商铺id
41
             const maid = res2.scene.split('=')[1].split('&')[0] //二维码的商铺id
44
               Taro.navigateTo({
43
               Taro.navigateTo({
45
                 url: `/${res.path}&subOrderId=${item.subOrderId}`,
44
                 url: `/${res.path}&subOrderId=${item.subOrderId}`,
46
               });
45
               });
47
-            }else{
46
+            } else {
48
               Taro.showToast({
47
               Taro.showToast({
49
-                title: "非当前店铺套餐",
48
+                title: "非套餐对应店铺二维码",
50
                 icon: "none",
49
                 icon: "none",
51
                 duration: 2000,
50
                 duration: 2000,
52
               });
51
               });