许成详 преди 6 години
родител
ревизия
e32aa12233

+ 1
- 1
dist/index.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.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
                 size="mini"
120
                 size="mini"
121
                 type="success"
121
                 type="success"
122
                 @click="getRecordListInfo(scope.row.Id)">抽奖记录</el-button>
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
             </template>
131
             </template>
124
           </el-table-column>
132
           </el-table-column>
125
         </el-table>
133
         </el-table>
331
   computed: {
339
   computed: {
332
     ...mapState({
340
     ...mapState({
333
       cases: x => x.app.cases.list,
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
     CaseId: {
345
     CaseId: {
337
       get () {
346
       get () {
354
       'openActivity',
363
       'openActivity',
355
       'stopActivity',
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
     toOpenActivity (id) { // 开启活动
378
     toOpenActivity (id) { // 开启活动
358
       this.$confirm('确认开启此活动?', '提示', {
379
       this.$confirm('确认开启此活动?', '提示', {
359
         confirmButtonText: '确定',
380
         confirmButtonText: '确定',

+ 22
- 1
src/pages/system/marketingActivities/snapUpList/index.vue Целия файл

94
                 size="mini"
94
                 size="mini"
95
                 type="success"
95
                 type="success"
96
                 @click="getRecords(scope.row.FlashBuyId)">抢购记录</el-button>
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
             </template>
105
             </template>
98
           </el-table-column>
106
           </el-table-column>
99
         </el-table>
107
         </el-table>
218
   computed: {
226
   computed: {
219
     ...mapState({
227
     ...mapState({
220
       cases: x => x.app.cases.list,
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
     CaseId: {
232
     CaseId: {
224
       get () {
233
       get () {
239
       'deleteFlashbuy',
248
       'deleteFlashbuy',
240
       'updateFlashbuyStatus',
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
     openFlashBuy (id) { // 启用
263
     openFlashBuy (id) { // 启用
243
       this.updateFlashbuyStatus({
264
       this.updateFlashbuyStatus({
244
         id,
265
         id,