Commit ffb645fb by 庄欣

ok

parent 2f98a156
......@@ -201,7 +201,8 @@ input[type=radio] {
}
.activeCls {
background-color: #FF9F2A;
background-color: #FF9F2A!important;
color: #FFFF99!important;
}
.upload {
height: 100px;
......@@ -210,4 +211,21 @@ input[type=radio] {
align-content: center;
align-items: center;
padding-left: 30px;
}
.info {
display: flex;
justify-self: left;
padding-left: 20px;
color: #0277bd;
}
.btn-default {
background-color: #ffffff;
color: #333333;
width: auto;
padding-left: 20px;
padding-right: 20px;
border: none;
height: 30px;
border-radius: 2px;
}
\ No newline at end of file
......@@ -38,6 +38,7 @@ fetch(UI).then(function(res){
permission: "-1",
remark: "",
uploadIcon: uploadIcon,
info: [],
user: {
id: "",
mobile: "",
......@@ -61,6 +62,7 @@ fetch(UI).then(function(res){
userToken: "",
err: "",
loading: false,
youmiCreateTime: "",
sendPush: false,
authContent: "亲爱的摄影师,您的作品非常符合米拍有米计划的投稿标准," +
......@@ -70,10 +72,10 @@ fetch(UI).then(function(res){
"请联系米拍编少微信mepai110,进行详细沟通。",
picContent: "亲爱的摄影师,您的作品 {url} 中的第x张图,内容非常符合米拍有米计划的投稿标准," +
"但目前图片在云端已被压缩,因图片分辨率较小或噪点较为明显," +
"而无法通过第三方审核,我们期望您能将大图发送至米拍编少邮箱laigao@mepai.me," +
"而无法通过第三方审核,我们期望您能将大图发送至米拍编少邮箱laigao@mepai.me,邮件标题请注明:【米拍锁屏】-米拍社区内昵称," +
"若有任何疑问请联系米拍编少微信mepai110。",
smsContent:"您的作品非常符合有米计划标准,米拍期望使用它进行流量增值运营,若有收益会与您分成,目前有事项还需和您确认,详情请在米拍-通知内查看",
pushContentN: "亲爱的摄影师,您的作品内容非常符合米拍有米计划的投稿标准,但目前图片在云端已被压缩,因图片分辨率较小或噪点较为明显,而无法通过第三方审核,我们期望您能将相应大图发送至米拍编少邮箱laigao@mepai.me,若有任何疑问请联系米拍编少微信mepai110。",
pushContentN: "亲爱的摄影师,您的作品内容非常符合米拍有米计划的投稿标准,但目前图片在云端已被压缩,因图片分辨率较小或噪点较为明显,而无法通过第三方审核,我们期望您能将相应大图发送至米拍编少邮箱laigao@mepai.me,邮件标题请注明:【米拍锁屏】-米拍社区内昵称,若有任何疑问请联系米拍编少微信mepai110。",
authType: "auth", //auth, pic
API: {
......@@ -150,7 +152,13 @@ fetch(UI).then(function(res){
object_id: $this.objectId,
type : $this.type
}, data => {
$this.isYoumi = data.data;
if (data.data.result == 1) {
$this.isYoumi = 1;
$this.youmiCreateTime = data.data.create_time;
} else {
$this.isYoumi = 0;
}
});
$this.picContent = $this.picContent.replace("{url}", "https://m.mepai.me/works/" + $this.objectId)
$this.authType = "pic";
......@@ -160,7 +168,12 @@ fetch(UI).then(function(res){
object_id: $this.objectId,
type : $this.type
}, data => {
$this.isYoumi = data.data;
if (data.data.result == 1) {
$this.isYoumi = 1;
$this.youmiCreateTime = data.data.create_time;
} else {
$this.isYoumi = 0;
}
});
$this.authType = "now";
}
......@@ -425,43 +438,56 @@ fetch(UI).then(function(res){
changeTab(type) {
this.authType = type;
},
setInfo(message) {
var $this= this;
this.info.push(message);
setTimeout(function() {
$this.info = [];
}, 3000)
},
sendPushOnly() {
var $this = this;
if (confirm("确定发送PUSH?")) {
var api = this.API.pushContact;
var content = "";
switch (this.authType) {
case "auth":
content = this.authContent;
break;
case "pic":
content = this.smsContent;
break;
case "now":
content = this.pushContentN;
break;
}
var sendData = {
message: content,
uid: this.user.id
};
this.sendData(api, sendData, (res) => {
if (res.code === "100001") {
alert("发送PUSH成功");
return;
}else {
alert("发送PUSH操作失败:"+res.message +";请联系管理员!");
return
}
});
$this._pushContent();
}
},
_pushContent() {
var $this = this;
var api = this.API.pushContact;
var content = "";
switch (this.authType) {
case "auth":
content = this.authContent;
break;
case "pic":
content = this.picContent;
break;
case "now":
content = this.pushContentN;
break;
}
var sendData = {
message: content,
uid: this.user.id
};
this.sendData(api, sendData, (res) => {
if (res.code === "100001") {
$this.setInfo("发送PUSH成功");
return;
}else {
alert("发送PUSH操作失败:"+res.message +";请联系管理员!");
return
}
});
},
sendAll() { //发送SMS
this.sendPushOnly();
if (confirm("确定发送短信?")) {
var $this = this;
if (confirm("确定发送")) {
$this._pushContent();
var api = this.API.pushContactSms;
this.sendData(api, {uid: this.user.id, tid:901349}, (res) => {
if (res.code === "100001") {
alert("发送短信成功");
$this.setInfo("发送短信成功");
return;
}else {
alert("发送短信操作失败:"+res.message +";请联系管理员!");
......
......@@ -4,6 +4,7 @@
</div>
<div class="x" v-on:click="showUi"><img :src="closeX"></div>
<div class="danger" v-if="err != ''">{{err}}</div>
<div class="info" v-if="info.length > 0" v-for="m,index in info">{{m}}</div>
<!------------------- 用户开始 -------->
<div class="userinfo row" v-if="isUserInfo && canOpen && isAuth && !sendPush">
<div class="col-md-12">
......@@ -62,7 +63,7 @@
<div class="col-md-12">
<div class="id-flex">
<div>作品id:{{objectId}}</div>
<div v-if="isYoumi == 1" class="primary">(此作品已参加有米计划)</div>
<div v-if="isYoumi == 1" class="primary">(此作品已参加有米计划,参与时间:{{youmiCreateTime}})</div>
<div v-if="isYoumi == 0" class="danger">(此作品未参加有米计划)</div>
</div>
......@@ -107,7 +108,7 @@
<div class="col-md-12">
<div class="id-flex">
<div>文章id:{{objectId}}</div>
<div v-if="isYoumi == 1" class="primary">(此文章已参加有米计划)</div>
<div v-if="isYoumi == 1" class="primary">(此文章已参加有米计划,参与时间:{{youmiCreateTime}}) </div>
<div v-if="isYoumi == 0" class="danger">(此文章未参加有米计划)</div>
</div>
<!--<div v-if="inZone === false" class="form-group zone">
......@@ -154,14 +155,14 @@
<div class="__messagebox_container" v-if="sendPush">
<label>站内Push内容(可修改)</label>
<div class="_button_groups">
<button class="btn btn-primary " :class="authType=='auth' ? 'activeCls' : ''" v-on:click="changeTab('auth')">要授权</button>
<button class="btn btn-primary " :class="authType=='pic' ? 'activeCls' : ''" v-show="isWorks" v-on:click="changeTab('pic')">要大图</button>
<button class="btn btn-primary " :class="authType=='now' ? 'activeCls' : ''" v-show="!isWorks" v-on:click="changeTab('now')">要大图</button>
<button class="btn-default" :class="authType=='auth' ? 'activeCls' : ''" v-on:click="changeTab('auth')">要授权</button>
<button class="btn-default" :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'">{{authContent}}</textarea>
<textarea cols="50" rows="7" class="pushContent" name="pushContentPic" v-show="authType=='pic'">{{picContent}}</textarea>
<textarea cols="50" rows="7" class="pushContent" name="pushContentN" v-show="authType=='now'">{{pushContentN}}</textarea>
<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">
......
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