|
@@ -20,12 +20,26 @@ Page({
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
- toDetails() {
|
|
|
+ async toDetails() {
|
|
|
const {
|
|
|
objectname,
|
|
|
objectid
|
|
|
} = this.data.detailsData;
|
|
|
- console.log(objectname, objectid)
|
|
|
+
|
|
|
+ const res = await _Http.basic({
|
|
|
+ "classname": "saletool.common.auth",
|
|
|
+ "method": "isAuth",
|
|
|
+ "content": {
|
|
|
+ objectid,
|
|
|
+ objectname
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ if (res.msg != '成功' || res.data[0].isAuth != 1) return wx.showToast({
|
|
|
+ title: '暂无权限进入应用',
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+
|
|
|
switch (objectname) {
|
|
|
case 'sat_courseware':
|
|
|
wx.navigateTo({
|