许成详 6 年之前
父節點
當前提交
e32aa12233

+ 1
- 1
dist/index.html 查看文件

@@ -1 +1 @@
1
-<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><link rel=stylesheet href=//at.alicdn.com/t/font_775069_dwqa9wy3lkh.css><link rel="shortcut icon" href=favorite.ico><title>城的空间后台管理系统</title><link href=./static/css/app.7d1c457223e13283a5bb3b8042d01c8b.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.3c9a16350e1e47228e4f.js></script><script type=text/javascript src=./static/js/app.5b118ab118a86ad1f8a5.js></script></body></html>
1
+<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><link rel=stylesheet href=//at.alicdn.com/t/font_775069_dwqa9wy3lkh.css><link rel="shortcut icon" href=favorite.ico><title>城的空间后台管理系统</title><link href=./static/css/app.83d0c0e7bdb025819eec501edcf8f187.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.3c9a16350e1e47228e4f.js></script><script type=text/javascript src=./static/js/app.33d0b8b0542e24dfdb3d.js></script></body></html>

+ 22
- 1
src/pages/system/marketingActivities/listOfLotteryActivities/index.vue 查看文件

@@ -120,6 +120,14 @@
120 120
                 size="mini"
121 121
                 type="success"
122 122
                 @click="getRecordListInfo(scope.row.Id)">抽奖记录</el-button>
123
+              <el-button
124
+                v-if="scope.row.Status === 1 && new Date(scope.row.EndDate).getTime() > new Date().getTime()"
125
+                size="mini"
126
+                type="primary"
127
+                v-clipboard:copy="clientUrl + '/game/luckdraw/#/?lotteryId=' + scope.row.Id"
128
+                v-clipboard:success="onCopy"
129
+                v-clipboard:error="onError"
130
+                >点击复制链接</el-button>
123 131
             </template>
124 132
           </el-table-column>
125 133
         </el-table>
@@ -331,7 +339,8 @@ export default {
331 339
   computed: {
332 340
     ...mapState({
333 341
       cases: x => x.app.cases.list,
334
-      defaultCaseId: x => x.app.cases.default
342
+      defaultCaseId: x => x.app.cases.default,
343
+      clientUrl: x => x.app.clientUrl,
335 344
     }),
336 345
     CaseId: {
337 346
       get () {
@@ -354,6 +363,18 @@ export default {
354 363
       'openActivity',
355 364
       'stopActivity',
356 365
     ]),
366
+    onCopy () {
367
+      this.$message({
368
+        type: 'success',
369
+        message: '复制成功!'
370
+      })
371
+    },
372
+    onError () {
373
+      this.$message({
374
+        type: 'error',
375
+        message: '复制失败!'
376
+      })
377
+    },
357 378
     toOpenActivity (id) { // 开启活动
358 379
       this.$confirm('确认开启此活动?', '提示', {
359 380
         confirmButtonText: '确定',

+ 22
- 1
src/pages/system/marketingActivities/snapUpList/index.vue 查看文件

@@ -94,6 +94,14 @@
94 94
                 size="mini"
95 95
                 type="success"
96 96
                 @click="getRecords(scope.row.FlashBuyId)">抢购记录</el-button>
97
+              <el-button
98
+                v-if="scope.row.FlashBuyStatus === 'active'"
99
+                size="mini"
100
+                type="primary"
101
+                v-clipboard:copy="clientUrl + '/wechat/user.html#/rush?flashBuyId=' + scope.row.FlashBuyId"
102
+                v-clipboard:success="onCopy"
103
+                v-clipboard:error="onError"
104
+                >点击复制链接</el-button>
97 105
             </template>
98 106
           </el-table-column>
99 107
         </el-table>
@@ -218,7 +226,8 @@ export default {
218 226
   computed: {
219 227
     ...mapState({
220 228
       cases: x => x.app.cases.list,
221
-      defaultCaseId: x => x.app.cases.default
229
+      defaultCaseId: x => x.app.cases.default,
230
+      clientUrl: x => x.app.clientUrl,
222 231
     }),
223 232
     CaseId: {
224 233
       get () {
@@ -239,6 +248,18 @@ export default {
239 248
       'deleteFlashbuy',
240 249
       'updateFlashbuyStatus',
241 250
     ]),
251
+    onCopy () {
252
+      this.$message({
253
+        type: 'success',
254
+        message: '复制成功!'
255
+      })
256
+    },
257
+    onError () {
258
+      this.$message({
259
+        type: 'error',
260
+        message: '复制失败!'
261
+      })
262
+    },
242 263
     openFlashBuy (id) { // 启用
243 264
       this.updateFlashbuyStatus({
244 265
         id,