Commit b9837a89 by 庄欣

f

parent 80ed80bd
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
......@@ -94,9 +94,7 @@
margin-top: -6vh;
}
#___container .userinfo {
margin-top: 10px;
}
#___container .allcen {
display: flex;
......
......@@ -59,5 +59,5 @@ var Manager = {
"若有任何疑问请联系米拍锁屏微信:mepai100。",
smsContent: "您的作品非常符合有米计划标准,米拍期望使用它进行流量增值运营,若有收益会与您分成,目前有事项还需和您确认,详情请在米拍-通知内查看",
pushContentN: "亲爱的摄影师,您的作品内容非常符合米拍有米计划的投稿标准,但目前图片在云端已被压缩,因图片分辨率较小或噪点较为明显,而无法通过第三方审核,我们期望您能将相应大图发送至米拍锁屏邮箱laigao@mepai.me,邮件标题请注明:【米拍锁屏】-米拍社区内昵称,若有任何疑问请联系米拍锁屏微信:mepai100。",
authType: "auth", //auth, pic
authType: "pic", //auth, pic
}
......@@ -44,15 +44,61 @@ fetch(UI).then(function(res) {
$(".wxIcon").attr("src", chrome.runtime.getURL("images/weixin.png"));
$(".emailIcon").attr("src", chrome.runtime.getURL("images/email.png"));
}).then(() => {
bindEvent();
$(".pushContent[name=pushContentAuth]").text(Manager.authContent);
$(".pushContent[name=pushContentPic]").text(Manager.picContent);
$(".pushContent[name=pushContentN]").text(Manager.pushContentN);
$(".pushSmsContent").text(Manager.smsContent);
$(".pushContent[name=pushContentAuth]").bind("input propertychange", function () {
Manager.authContent = $(this).text();
});
$(".pushContent[name=pushContentPic]").bind("input propertychange", function () {
Manager.picContent = $(this).text();
});
$(".pushContent[name=pushContentN]").bind("input propertychange", function () {
Manager.pushContentN = $(this).text();
});
onload();
openUi();
});
function bindEvent() {
function onload() {
$(".showUi").on("click", function () {
console.log("showUi")
showUi();
});
$(".show-tab").click(function () {
changeTab($(this).data("auth"));
});
$(".submitUserRemark").click(function () {
submitUserRemark();
})
$(".openMessageBox").click(function () {
openMessageBox();
})
$(".closeMessageBox").click(function () {
closeMessageBox();
})
$(".sendAll").click(function () {
sendAll();
})
$(".sendPushOnly").click(function () {
sendPushOnly();
})
$(".addZone").click(function () {
addZone() ;
});
$(".removeZone").click(function () {
removeZone();
});
$(".setUserPermission").click(function () {
var value = $(this).data("permission");
setUserPermission(value);
});
$(".setPermission").click(function () {
var value = $(this).data("permission");
setPermission(value);
});
changeTab(Manager.authType);
}
let urlCircle = [];
......
......@@ -205,7 +205,7 @@ function openUi() {
type: Manager.type
}, res => {
if (res.code.toString() === "100001") {
if (res.data.toString() !== "") {
if (!res.data instanceof Array) {
Manager.remark = res.data.remark;
Manager.permission = res.data.permission;
Manager.token = res.data.lock_token;
......@@ -233,15 +233,17 @@ function openUi() {
type: TYPE_USER
}, res => {
if (res.code.toString() === "100001") {
if (res.data.toString() !== "{}") {
if (!res.data instanceof Array) {
Manager.userRemark = res.data.remark;
Manager.userYyRemark = res.data.operate_remark;
Manager.userPermission = res.data.permission;
Manager.userToken = res.data.lock_token
}
Manager.authType = "now";
show();
}
})
Manager.authType = "now";
}
if (Manager.isWorks) {
getData(API.getIsYoumi, {
......@@ -255,11 +257,11 @@ function openUi() {
} else {
Manager.isYoumi = 0;
}
Manager.picContent = Manager.picContent.replace("{url}",
"https://m.mepai.me/works/" + Manager.objectId)
Manager.authType = "pic";
show();
});
Manager.picContent = Manager.picContent.replace("{url}",
"https://m.mepai.me/works/" + Manager.objectId)
Manager.authType = "pic";
}
if (Manager.isReading) {
getData(API.getIsYoumi, {
......@@ -273,8 +275,9 @@ function openUi() {
} else {
Manager.isYoumi = 0;
}
Manager.authType = "now";
show();
});
Manager.authType = "now";
}
if (Manager.isReading || Manager.isWorks) {
getData(API.getZone, {
......@@ -287,26 +290,36 @@ function openUi() {
} else {
Manager.inZone = true;
}
show();
})
}
} else {
Manager.err = "不在个人中心或作品详情或文章详情页";
show();
}
}
function setUserPermission(value) {
Manager.userPermission = value;
show();
}
function setPermission(value) {
Manager.permission = value;
show();
}
function sendAll() { //发送SMS
var $this = this;
if (confirm("确定发送")) {
$this._pushContent();
_pushContent();
var api = API.pushContactSms;
sendData(api, {
uid: this.user.id,
uid: Manager.user.id,
tid: 901349
}, (res) => {
if (res.code === "100001") {
$this.setInfo("发送短信成功");
setInfo("发送短信成功");
return;
} else {
showToast("发送短信操作失败:" + res.message + ";请联系管理员!");
......@@ -359,6 +372,26 @@ function showUi() {
function changeTab(type) {
Manager.authType = type;
$(".show-tab").removeClass("activeCls_on");
$(".show-tab").addClass("activeCls_off");
$(".pushContent").addClass("hidden");
switch(Manager.authType) {
case "auth":
$(".show-tab-auth").removeClass("activeCls_off");
$(".show-tab-auth").addClass("activeCls_on");
$(".pushContent[name=pushContentAuth]").removeClass("hidden");
break;
case "pic":
$(".show-tab-pic").removeClass("activeCls_off");
$(".show-tab-pic").addClass("activeCls_on");
$(".pushContent[name=pushContentPic]").removeClass("hidden");
break;
case "now":
$(".show-tab-now").removeClass("activeCls_off");
$(".show-tab-now").addClass("activeCls_on");
$(".pushContent[name=pushContentN]").removeClass("hidden");
break;
}
}
function setInfo(message) {
......@@ -374,6 +407,35 @@ function sendPushOnly() {
}
}
function openMessageBox() {
Manager.sendPush = true
if (Manager.sendPush) {
$(".worksInfoBox").addClass("hidden");
$(".userInfoBox").addClass("hidden");
$(".MessageBox").removeClass("hidden");
} else {
$(".worksInfoBox").removeClass("hidden");
$(".userInfoBox").removeClass("hidden");
$(".MessageBox").addClass("hidden");
}
show();
}
function closeMessageBox() {
Manager.sendPush = false;
if (Manager.sendPush) {
$(".worksInfoBox").addClass("hidden");
$(".userInfoBox").addClass("hidden");
$(".MessageBox").removeClass("hidden");
} else {
$(".worksInfoBox").removeClass("hidden");
$(".userInfoBox").removeClass("hidden");
$(".MessageBox").addClass("hidden");
}
show();
}
function showUserInfo(user) {
$(".userEmail").text(user.email);
$(".userId").text(user.id);
......@@ -384,5 +446,81 @@ function showUserInfo(user) {
function show() {
$(".objectId").text(Manager.objectId);
if (!Manager.sendPush) {
$(".NotSendPushStatus").removeClass("hidden");
$(".SendPushStatus").addClass("hidden");
} else {
$(".NotSendPushStatus").addClass("hidden");
$(".SendPushStatus").removeClass("hidden");
}
if (Manager.isYoumi.toString() === "1") {
$(".isYoumi").removeClass("hidden");
var youmiDom = $(".youmiTime");
if (Manager.dateyoumiCreateTime > Date.parse('2021-04-02')) {
youmiDom.removeClass("col-red") ;
youmiDom.addClass("col-green") ;
} else {
youmiDom.addClass("col-red") ;
youmiDom.removeClass("col-green") ;
}
youmiDom.text(Manager.youmiCreateTime);
} else {
$(".isYoumi").addClass("hidden");
}
if (Manager.inZone === false) {
$(".addZone").removeClass("hidden");
$(".removeZone").addClass("hidden");
} else {
$(".addZone").addClass("hidden");
$(".removeZone").removeClass("hidden");
}
var userPermissionDom = $(".userPermission");
userPermissionDom.removeClass("userPermission_on");
userPermissionDom.addClass("userPermission_off");
if (Manager.userPermission === undefined) {
Manager.userPermission = -1;
}
switch (Manager.userPermission.toString()) {
case "-1":
userPermissionDom.removeClass("userPermission_on");
$(".userPermission-2").removeClass("userPermission_off");
$(".userPermission-2").addClass("userPermission_on");
break;
case "0":
userPermissionDom.removeClass("userPermission_on");
$(".userPermission-0").removeClass("userPermission_off");
$(".userPermission-0").addClass("userPermission_on");
break;
case "1":
userPermissionDom.removeClass("userPermission_on");
$(".userPermission-1").removeClass("userPermission_off");
$(".userPermission-1").addClass("userPermission_on");
break;
}
var permissionDom = $(".permission");
permissionDom.removeClass("userPermission_on");
permissionDom.addClass("userPermission_off");
if (Manager.permission === undefined) {
Manager.permission = -1;
}
switch (Manager.permission.toString()) {
case "-1":
permissionDom.removeClass("userPermission_on");
$(".permission-2").removeClass("userPermission_off");
$(".permission-2").addClass("userPermission_on");
break;
case "0":
permissionDom.removeClass("userPermission_on");
$(".permission-0").removeClass("userPermission_off");
$(".permission-0").addClass("userPermission_on");
break;
case "1":
permissionDom.removeClass("userPermission_on");
$(".permission-1").removeClass("userPermission_off");
$(".permission-1").addClass("userPermission_on");
break;
}
}
......@@ -50,23 +50,22 @@
<div class="wei-600 col-fff userEmail" style="font-size: 18px;margin-left: 12px;flex-wrap: wrap;">
</div>
</div>
<div v-if="(authType == 'auth' || authType =='pic' | authType=='now') && canOpen && isAuth && !sendPush"
class="allcen "
<div class="allcen NotSendPushStatus "
style="width: 100%;position: absolute;bottom: 24px;left: 0;right: 0;margin: 0 auto;">
<div onclick="openMessageBox()" class="col-fff wei-500 allcen"
<div class="openMessageBox col-fff wei-500 allcen"
style="font-size: 16px;background: linear-gradient(34deg, #76B3FF, #0C7BB3);padding: 8px 16px;border-radius: 6px;box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.1);cursor: pointer;">
给作者发送消息
</div>
</div>
<div v-if="sendPush" class="allcen "
<div class="allcen SendPushStatus"
style="width: 100%;position: absolute;bottom: 24px;left: 0;right: 0;margin: 0 auto;">
<div v-on:click="sendPush=false" class="col-fff wei-500 allcen"
<div class="closeMessageBox col-fff wei-500 allcen"
style="font-size: 16px;background: linear-gradient(34deg, #76B3FF, #0C7BB3);padding: 8px 16px;border-radius: 6px;box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.1);min-width: 144px;cursor: pointer;">
返回
</div>
</div>
</div>
<div class="cuizhi-cc"
<div class="cuizhi-cc userInfoBox"
style="width: 280px;height: 100%;background: linear-gradient(66deg, #0C7BB3, #F2BAE8);padding: 24px 0;position: relative;justify-content: flex-start;"
:style="(!isWorks&&!isReading)?'width: 560px;background: linear-gradient(50deg, #0C7BB3, #F2BAE8);':''">
<div class="___container-anim-opacity">
......@@ -77,8 +76,8 @@
</div>
<div class="flex-c jube col-fff" style="margin-top: 6px;width: 233px;">
<div class="flex-c" style="cursor: pointer;" v-on:click="userPermission=-1">
<div class="" :class="userPermission==-1?'userPermission_on':'userPermission_off'"
<div class="flex-c setUserPermission" data-permission="-1" style="cursor: pointer;">
<div class="userPermission userPermission-2"
style="height: 14px;width: 14px;border-radius: 20px;">
</div>
<div class="wei-600 " style="margin-left: 6px;font-size: 14px;">
......@@ -86,16 +85,16 @@
</div>
</div>
<div class="flex-c" style="cursor: pointer;" v-on:click="userPermission=0">
<div class="" :class="userPermission==0?'userPermission_on':'userPermission_off'"
<div class="flex-c setUserPermission" data-permission="0" style="cursor: pointer;" >
<div class="userPermission userPermission-0"
style="height: 14px;width: 14px;border-radius: 20px;">
</div>
<div class="wei-600" style="margin-left: 6px;font-size: 14px;">
不可用
</div>
</div>
<div class="flex-c" style="cursor: pointer;" v-on:click="userPermission=1">
<div class="" :class="userPermission==1?'userPermission_on':'userPermission_off'"
<div class="flex-c setUserPermission" data-permission="1" style="cursor: pointer;">
<div class="userPermission userPermission-1"
style="height: 14px;width: 14px;border-radius: 20px;">
</div>
<div class="wei-600" style="margin-left: 6px;font-size: 14px;">
......@@ -124,7 +123,7 @@
</div>
<div class="allcen "
style="width: 233px;position: absolute;bottom: 24px;left: 0;right: 0;margin: 0 auto;">
<div v-on:click="submitUserRemark" class="col-fff wei-500 allcen"
<div class="submitUserRemark col-fff wei-500 allcen"
style="font-size: 16px;background: linear-gradient(34deg, #76B3FF, #0C7BB3);padding: 8px 16px;border-radius: 6px;box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.1);min-width: 144px;cursor: pointer;">
提交用户设置
</div>
......@@ -132,23 +131,19 @@
</div>
</div>
<div class="col-fff cuizhi-cc hidden"
<div class="col-fff cuizhi-cc worksInfoBox"
style="width: 280px;height: 100%;background: linear-gradient(144deg, #0C7BB3, #F2BAE8);padding: 24px 0;display: flex;justify-content: flex-start;position: relative;">
<div class=" ___container-anim-opacity" style="">
<div class="flex-c " style="border-radius: 4px;width: max-content;">
<div class="" style="height: 16px;width: 3px;background-color: #fff;border-radius: 4px;">
</div>
<div class="wei-600 col-fff" style="font-size: 16px;margin-left: 6px;">作品id:<span class="objectId"></span></div>
</div>
<div v-if="isYoumi == 1" class="allcen wei-600 "
<div class="allcen wei-600 isYoumi hidden"
style="width: 100%;margin-top: 4px;font-size: 14px;">
参与有米时间:
<div :class="dateyoumiCreateTime>youmitime?'col-green':'col-red'" style="margin-left: 6px;">
{{youmiCreateTime}}
<div class="youmiTime" style="margin-left: 6px;">
</div>
</div>
<div class="wei-600 " style="margin-top: 10px;font-size: 16px;">
<div class="flex-c">
......@@ -158,11 +153,11 @@
<a href="https://www.mepai.me/mp/secret/youmibeixuan" target="_blank"
style="color: #ffd217;margin-left: 6px;">编辑备选库</a>
<div class="allcen" style="margin-left: 6px;">
<div v-if="inZone === false" onclick="addZone()" class="col-fff wei-500 allcen"
<div class="col-fff wei-500 allcen addZone"
style="font-size: 14px;background: linear-gradient(34deg, #76B3FF, #0C7BB3);padding: 6px 10px;border-radius: 6px;box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.1);cursor: pointer;">
+推入作品
</div>
<div v-if="inZone === true" onclick="removeZone()" class="col-fff wei-500 allcen"
<div class="col-fff wei-500 allcen removeZone"
style="font-size: 14px;background: linear-gradient(34deg, #FF542E, #E7CA00);padding: 6px 10px;border-radius: 6px;box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.1);cursor: pointer;">
-移出作品
</div>
......@@ -176,8 +171,8 @@
</div>
<div class="flex-c jube" style="margin-top: 6px;width: 217px;">
<div class="flex-c" style="cursor: pointer;" onclick="permission=-1">
<div class="" :class="permission==-1?'userPermission_on':'userPermission_off'"
<div class="flex-c setPermission" data-permission="-1" style="cursor: pointer;">
<div class="permission permission-2"
style="height: 14px;width: 14px;border-radius: 20px;">
</div>
<div class="wei-600" style="margin-left: 6px;font-size: 14px;">
......@@ -185,16 +180,16 @@
</div>
</div>
<div class="flex-c" style="cursor: pointer;" onclick="permission=0">
<div class="" :class="permission==0?'userPermission_on':'userPermission_off'"
<div class="flex-c setPermission" data-permission="0" style="cursor: pointer;" >
<div class="permission permission-0"
style="height: 14px;width: 14px;border-radius: 20px;">
</div>
<div class="wei-600" style="margin-left: 6px;font-size: 14px;">
不可用
</div>
</div>
<div class="flex-c" style="cursor: pointer;" onclick="permission=1">
<div class="" :class="permission==1?'userPermission_on':'userPermission_off'"
<div class="flex-c setPermission" data-permission="1" style="cursor: pointer;">
<div class="permission permission-1"
style="height: 14px;width: 14px;border-radius: 20px;">
</div>
<div class="wei-600" style="margin-left: 6px;font-size: 14px;">
......@@ -232,7 +227,7 @@
</div>
</div>
</div>
<div class="col-fff cuizhi-cc hidden"
<div class="col-fff cuizhi-cc readingInfoBox hidden"
style="width: 280px;height: 100%;background: linear-gradient(144deg, #0C7BB3, #F2BAE8);padding: 24px 0;display: flex;justify-content: flex-start;position: relative;">
<div class=" ___container-anim-opacity"
style="justify-content: flex-start;margin-left: 24px;align-items: flex-start;">
......@@ -298,7 +293,7 @@
</div>
</div>
</div>
<div class="col-fff"
<div class="col-fff MessageBox hidden"
style="width: 560px;height: 100%;background: linear-gradient(72deg, #0C7BB3, #F2BAE8);padding: 24px 0;display: flex;">
<div class="cuizhi-cc ___container-anim-opacity"
style="justify-content: flex-start;margin-left: 24px;align-items: flex-start;width: 100%;">
......@@ -308,29 +303,23 @@
<div class="wei-600 col-fff" style="font-size: 16px;margin-left: 6px;">站内Push内容(可修改)</div>
</div>
<div class="flex-c jube-a" style="width: 100%;margin-top: 12px;">
<div class="col-fff wei-500" :class="authType=='auth' ? 'activeCls_on' : 'activeCls_off'"
onclick="changeTab('auth')"
<div class="col-fff wei-500 show-tab show-tab-auth" data-auth='auth'
style="font-size: 14px;padding: 8px 16px;border-radius: 6px;box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.1);cursor: pointer;">
要授权
</div>
<div v-show="isWorks" :class="authType=='pic' ? 'activeCls_on' : 'activeCls_off'"
class="col-fff wei-500" onclick="changeTab('pic')"
style="font-size: 14px;padding: 8px 16px;border-radius: 6px;box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.1);cursor: pointer;">
要大图
</div>
<div v-show="!isWorks" :class="authType=='now' ? 'activeCls_on' : 'activeCls_off'"
class="col-fff wei-500" onclick="changeTab('now')"
<div class="show-tab show-tab-pic col-fff wei-500" data-auth='pic'
style="font-size: 14px;padding: 8px 16px;border-radius: 6px;box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.1);cursor: pointer;">
要大图
</div>
</div>
<!--<div class="show-tab show-tab-now col-fff wei-500" data-auth='now'
style="font-size: 14px;padding: 8px 16px;border-radius: 6px;box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.1);cursor: pointer;">
要大图
</div>-->
</div>
<div class="allcen" style="margin: 9px auto;">
<textarea cols="50" rows="7" class="pushContent" name="pushContentAuth"
v-show="authType=='auth'" v-model="authContent"></textarea>
<textarea cols="50" rows="7" class="pushContent" name="pushContentPic" v-show="authType=='pic'"
v-model="picContent"></textarea>
<textarea cols="50" rows="7" class="pushContent" name="pushContentN" v-show="authType=='now'"
v-model="pushContentN"></textarea>
<textarea cols="50" rows="7" class="pushContent" name="pushContentAuth"></textarea>
<textarea cols="50" rows="7" class="pushContent" name="pushContentPic"></textarea>
<textarea cols="50" rows="7" class="pushContent" name="pushContentN"></textarea>
</div>
<div class="flex-c " style="border-radius: 4px;width: max-content;margin-top: 12px;">
<div class="" style="height: 16px;width: 3px;background-color: #fff;border-radius: 4px;">
......@@ -338,17 +327,17 @@
<div class="wei-600 col-fff" style="font-size: 16px;margin-left: 6px;">短信内容(不可修改)</div>
</div>
<div class="allcen" style="margin: 9px auto;">
<textarea cols="50" rows="4" class="pushSmsContent" v-model="smsContent" readonly></textarea>
<textarea cols="50" rows="4" class="pushSmsContent" readonly></textarea>
</div>
<div class="flex-c jube-a" style="width: 100%;margin-top: 16px;">
<div>
<div onclick="sendPushOnly()" class="col-fff wei-500 allcen"
<div class="col-fff wei-500 allcen sendPushOnly"
style="font-size: 14px;background: linear-gradient(234deg, #76B3FF, #0C7BB3);padding: 8px 16px;border-radius: 6px;box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.1);min-width: 144px;cursor: pointer;">
仅发送米拍站内PUSH
</div>
</div>
<div>
<div onclick="sendAll()" class="col-fff wei-500 allcen"
<div class="col-fff wei-500 allcen sendAll"
style="font-size: 14px;background: linear-gradient(34deg, #76B3FF, #0C7BB3);padding: 8px 16px;border-radius: 6px;box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.1);min-width: 144px;cursor: pointer;">
发送PUSH和短信
</div>
......@@ -364,128 +353,7 @@
<div class="danger" v-if="err != ''"></div>
<div class="info" v-if="info.length > 0" v-for="m,index in info"></div>
<!------------------- 作品开始 -------->
<div class="hr"></div>
<div class="workinfo row" style="margin-top:10px;">
<div class="col-md-12">
<div class="id-flex">
<div class="wei-500">作品id:<span class="objectId"></span></div>
<div v-if="isYoumi == 1" class="primary">(此作品已参加有米计划,参与时间:{{youmiCreateTime}})</div>
<div v-if="isYoumi == 0" class="danger">(此作品未参加有米计划)</div>
</div>
<div class="id-flex" style="margin: 8px 0;">
<div class="label">推荐作品到<a href="https://www.mepai.me/mp/secret/youmibeixuan"
target="_blank">编辑备选库</a>:</div>
<div v-if="inZone === false" class="form-group zone">
<button class="btn btn-primary primary small" v-on:click="addZone">+推荐入库</button>
</div>
<div v-if="inZone === true" class="form-group zone">
<button class="btn btn-danger danger small" v-on:click="removeZone">-已推入,点击移除</button>
</div>
</div>
<div class="id-flex">
<div class="label wei-500">该作品是否可被有米计划使用:</div>
<div class="input">
<input type="radio" name="permission" value="-1" v-model="permission" /> 未设置
<input type="radio" name="permission" value="0" v-model="permission" /> 不可用
<input type="radio" name="permission" value="1" v-model="permission" /> 可用
</div>
</div>
<div class="form-group" style="margin-top: 10px;">
<div class="label wei-500" style=""><label>备注该作品:</label></div>
<div class="input">
<textarea class="form-control" rows="5" cols="50" placeholder="备注内容" name="remark"
v-model="remark">
</textarea>
</div>
</div>
<div class="form-group" style="display: flex;justify-items: center;justify-content: center">
<button class="btn btn-primary primary large" onclick="submitRemark()">提交作品设置</button>
</div>
</div>
</div>
<!------------------- 作品结束 文章开始 -------->
<div class="readinginfo row hidden" style="margin-top:10px">
<div class="col-md-12">
<div class="id-flex">
<div>文章id:<span class="objectId"></span></div>
<div v-if="isYoumi == 1" class="primary">(此文章已参加有米计划,参与时间:{{youmiCreateTime}}) </div>
<div v-if="isYoumi == 0" class="danger">(此文章未参加有米计划)</div>
</div>
<div class="id-flex">
<div class="label wei-500">该文章是否可被有米计划使用</div>
<div class="input">
<input type="radio" name="permission" value="-1" v-model="permission" /> 未设置
<input type="radio" name="permission" value="0" v-model="permission" /> 不可用
<input type="radio" name="permission" value="1" v-model="permission" /> 可用
</div>
</div>
<div class="form-group">
<div class="label wei-500" style=""> <label>备注该文章:</label></div>
<div class="input">
<textarea class="form-control" rows="5" cols="50" placeholder="备注内容" name="remark"
v-model="remark"></textarea>
</div>
</div>
<div class="form-group" style="display: flex;justify-items: center;justify-content: center">
<button class="btn btn-primary primary large" v-on:click="submitRemark">提交文章设置</button>
</div>
</div>
</div>
<!------------------- 文章结束 -------->
<!------------------- 消息推送 ---------------->
<div class="form-group hidden" style="margin: 30px auto;display: flex;justify-content: center;margin-bottom: 0;"
v-if="(authType == 'auth' || authType =='pic' | authType=='now') && canOpen && isAuth && !sendPush">
<!-- <div class="hr"></div> -->
<button class="btn button-primary primary large" style="width: max-content;"
v-on:click="openMessageBox">给作者发送消息</button>
</div>
<div class="__messagebox_container" v-if="sendPush">
<label>站内Push内容(可修改)</label>
<div class="_button_groups">
<button class="btn-default" :class="authType=='auth' ? 'activeCls' : ''"
v-on:click="changeTab('auth')" style="color: #fff;">要授权</button>
<button class="btn-default" style="background: rgb(255, 159, 42)!important;color: #fff!important;"
:class="authType=='pic' ? 'activeCls' : ''" v-show="isWorks"
v-on:click="changeTab('pic')">要大图</button>
<button class="btn-default" :class="authType=='now' ? 'activeCls' : ''" v-show="!isWorks"
v-on:click="changeTab('now')">要大图</button>
</div>
<div class="auth">
<textarea cols="50" rows="7" class="pushContent" name="pushContentAuth" v-show="authType=='auth'"
v-model="authContent"></textarea>
<textarea cols="50" rows="7" class="pushContent" name="pushContentPic" v-show="authType=='pic'"
v-model="picContent"></textarea>
<textarea cols="50" rows="7" class="pushContent" name="pushContentN" v-show="authType=='now'"
v-model="pushContentN"></textarea>
</div>
<!-- <div class="upload">
<input type="file" name="uploadFile"/>
</div>-->
<div class="hr">
</div>
<label>短信内容(不可修改)</label>
<div class="auth">
<textarea cols="50" rows="4" class="pushSmsContent" readonly>{{smsContent}}</textarea>
</div>
<div class="_button_groups">
<div>
<button class="btn" v-on:click="sendPushOnly">仅发送米拍站内PUSH</button>
</div>
<div>
<button class="btn" v-on:click="sendAll">发送PUSH和短信</button>
</div>
</div>
</div>
</div>
</div>
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment