diff --git a/components/cloud-image.vue b/components/cloud-image.vue
index be3bc9b..603aeaf 100644
--- a/components/cloud-image.vue
+++ b/components/cloud-image.vue
@@ -1,6 +1,6 @@
-
+
@@ -51,7 +51,7 @@
},
watch: {
src:{
- handler(src) {
+ async handler(src) {
if (src&&src.substring(0, 8) == "cloud://") {
uniCloud.getTempFileURL({
@@ -59,7 +59,14 @@
}).then(res=>{
this.cSrc = res.fileList[0].tempFileURL
})
- }else{
+ } else if (src&&src.substring(0, 8) == "qiniu://") {
+ console.log(src)
+ const uniCloudStorageExtCo = uniCloud.importObject("ext-storage-co");
+ const res = await uniCloudStorageExtCo.getTempFileURL({src: src});
+ console.log(res.fileList[0].tempFileURL)
+ this.cSrc = res.fileList[0].tempFileURL
+
+ } else {
this.cSrc = src
}
},
diff --git a/index.html b/index.html
index c3ff205..1bc7027 100644
--- a/index.html
+++ b/index.html
@@ -1,6 +1,10 @@
+
+
+
+
-
-
diff --git a/pages/my/my.vue b/pages/my/my.vue
index 3f75419..52e5460 100644
--- a/pages/my/my.vue
+++ b/pages/my/my.vue
@@ -83,6 +83,18 @@
arrow: true,
type: 'my_follow'
},
+ {
+ name: '新增文章',
+ icon: '/static/center/icon-follow.png',
+ arrow: true,
+ type: 'edit_cms'
+ },
+ {
+ name: '文章管理',
+ icon: '/static/center/icon-follow.png',
+ arrow: true,
+ type: 'cms_list'
+ },
{
name: '提现',
icon: '/static/center/withdraw.png',
@@ -218,6 +230,28 @@
url: "/pages2/replyCommentList/replyCommentList"
})
}
+ } else if (e.type === "cms_list") {
+ let token = uni.getStorageSync("uni_id_token");
+ console.log(token);
+
+ if (!token) {
+ this.toLogin();
+ } else {
+ uni.navigateTo({
+ url: "/pages2/edit_list/edit_list"
+ })
+ }
+ } else if (e.type === "edit_cms") {
+ let token = uni.getStorageSync("uni_id_token");
+ console.log(token);
+
+ if (!token) {
+ this.toLogin();
+ } else {
+ uni.navigateTo({
+ url: "/pages2/editCms/editCms"
+ })
+ }
} else if (e.type === "my_collect") {
let token = uni.getStorageSync("uni_id_token");
console.log(token);
diff --git a/pages/preview/preview.vue b/pages/preview/preview.vue
deleted file mode 100644
index 89af6ef..0000000
--- a/pages/preview/preview.vue
+++ /dev/null
@@ -1,167 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- 新四军
- 抗美援朝
- 抗美援越
- 对越自卫反击战
- 和平时期退役兵
-
-
-
-
-
-
-
-
-
diff --git a/pages2/setting/setting.vue b/pages2/setting/setting.vue
index 925a784..d8d5214 100644
--- a/pages2/setting/setting.vue
+++ b/pages2/setting/setting.vue
@@ -1,21 +1,12 @@
-
-
-
+