diff --git a/common/config.js b/common/config.js
index ef54693..4c7923a 100644
--- a/common/config.js
+++ b/common/config.js
@@ -1,10 +1,10 @@
-const ROOTPATH1 = "https://dj-api.hnsiyao.cn/sqx_fast/"; //
-const ROOTPATH = "https://dj-api.hnsiyao.cn/sqx_fast/"; //后台服务域名
-const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
+// const ROOTPATH1 = "https://dj-api.hnsiyao.cn/sqx_fast/"; //
+// const ROOTPATH = "https://dj-api.hnsiyao.cn/sqx_fast/"; //后台服务域名
+// const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
-// const ROOTPATH1 = "https://video.hnsiyao.cn/sqx_fast/"; //
-// const ROOTPATH = "https://video.hnsiyao.cn/sqx_fast/"; //后台服务域名
-// const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
+const ROOTPATH1 = "https://video.hnsiyao.cn/sqx_fast/"; //
+const ROOTPATH = "https://video.hnsiyao.cn/sqx_fast/"; //后台服务域名
+const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
module.exports = {
APIHOST: ROOTPATH,
diff --git a/pages/task/index.vue b/pages/task/index.vue
index a0f6df3..532fed7 100644
--- a/pages/task/index.vue
+++ b/pages/task/index.vue
@@ -22,8 +22,8 @@
{{ item.detail }}
- {{ item.type == 1 ? item.buttonTitle : ( item.number <= 0 ? '立即领取' : `剩余${item.number}次`) }}
- {{ item.type == 1 ? item.buttonTitle : ( item.number <= 0 ? '立即领取' : `剩余${item.number}次`) }}
+ {{ item.type == 1 ? item.buttonTitle : item.number ? `${item.discNumber}/${item.number}` : ( item.discNumber <= 0 ? item.buttonTitle : `剩余${item.discNumber}次`) }}
+ {{ item.type == 1 ? item.buttonTitle : item.number ? `${item.discNumber}/${item.number}` : ( item.discNumber <= 0 ? item.buttonTitle : `剩余${item.discNumber}次`) }}
@@ -79,25 +79,22 @@
// jumpType (integer, optional): 跳转类型 1 内部路径 2 外部路径 ,
// type (integer, optional): 任务类型 1 普通任务 2 打卡任务 9 其它 ,
// buttonUrl
- if ( item.type == 1) {
- if ( item.jumpType == 1) {
- console.log(item.buttonUrl)
- uni.navigateTo({
- url: item.buttonUrl
- })
-
- } else if( item.jumpType == 3) {
- uni.switchTab({
- url: item.buttonUrl
- })
- } else {
- plus.runtime.openURL(item.buttonUrl)
- }
- } else {
+ if ( item.jumpType == 0) {
this.taskReceive(item.id)
+ } else if ( item.jumpType == 1) {
+ uni.navigateTo({
+ url: item.buttonUrl
+ })
+ } else if( item.jumpType == 3) {
+ uni.switchTab({
+ url: item.buttonUrl
+ })
+ } else if( item.jumpType == 2) {
+ plus.runtime.openURL(item.buttonUrl)
}
+
},
/**
@@ -114,6 +111,11 @@
icon: 'none'
})
this.getTaskdata()
+ } else {
+ uni.showToast({
+ title: res.msg,
+ icon: 'none'
+ })
}
})
},