...
|
...
|
@@ -42,21 +42,24 @@ function point(type, trend) { |
|
|
}
|
|
|
|
|
|
$('.set-world').click(function() {
|
|
|
let trendWord = $('.trend-world-area').val();
|
|
|
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
url: '/activity/set-trend-world',
|
|
|
data: {
|
|
|
trendWord: $('.trend-world-area').val()
|
|
|
trendWord: trendWord
|
|
|
},
|
|
|
success: function(result) {
|
|
|
tip.show(result.message);
|
|
|
|
|
|
if (result.code === 200) {
|
|
|
let copyUrl = `//m.yohobuy.com/?openby:yohobuy={"action":"go.copy","params":{"text":"${trendWord}","message":"复制成功"}}`; // eslint-disable-line
|
|
|
|
|
|
point(1, $('.trend-world-area').val());
|
|
|
|
|
|
$('.trend-code').html($('.trend-world-area').val());
|
|
|
$('.copy-code').attr('href', copyUrl);
|
|
|
|
|
|
setTimeout(function() {
|
|
|
$('.set-trend-world').hide();
|
...
|
...
|
|