|
|
@@ -1,4 +1,7 @@
|
|
|
const _Http = getApp().globalData.http;
|
|
|
+import {
|
|
|
+ createOrder
|
|
|
+} from "../../../utils/pay"
|
|
|
Page({
|
|
|
data: {
|
|
|
detailsData: []
|
|
|
@@ -25,7 +28,7 @@ Page({
|
|
|
objectname,
|
|
|
objectid
|
|
|
} = this.data.detailsData;
|
|
|
-
|
|
|
+/*
|
|
|
const res = await _Http.basic({
|
|
|
"classname": "saletool.common.auth",
|
|
|
"method": "isAuth",
|
|
|
@@ -39,7 +42,7 @@ Page({
|
|
|
title: '暂无权限进入应用',
|
|
|
icon: "none"
|
|
|
});
|
|
|
-
|
|
|
+ */
|
|
|
switch (objectname) {
|
|
|
case 'sat_courseware':
|
|
|
wx.navigateTo({
|
|
|
@@ -75,6 +78,10 @@ Page({
|
|
|
url: '/pages/tabbar/smartStore/folder?item=' + JSON.stringify(item),
|
|
|
})
|
|
|
break;
|
|
|
+
|
|
|
+ case 'sys_payorder':
|
|
|
+ createOrder()
|
|
|
+ break;
|
|
|
default:
|
|
|
console.log(objectname)
|
|
|
wx.showToast({
|