Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
decda114
authored
May 27, 2021
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
x
parent
930bb3ab
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
src/store/modules/ac618/ac618.js
src/views/ac618/ac618.vue
view/14.js
view/app.js
src/store/modules/ac618/ac618.js
View file @
decda114
...
@@ -16,7 +16,8 @@ const actions = {
...
@@ -16,7 +16,8 @@ const actions = {
issue
({
commit
},
payload
){
issue
({
commit
},
payload
){
state
.
loading
=
true
;
state
.
loading
=
true
;
var
params
=
{
var
params
=
{
id
:
payload
.
id
id
:
payload
.
id
,
check_valid_time
:
1
}
}
Services
.
issue
(
qs
.
stringify
(
params
)).
then
((
res
)
=>
{
Services
.
issue
(
qs
.
stringify
(
params
)).
then
((
res
)
=>
{
state
.
loading
=
false
;
state
.
loading
=
false
;
...
...
src/views/ac618/ac618.vue
View file @
decda114
...
@@ -8,13 +8,13 @@
...
@@ -8,13 +8,13 @@
<div
class=
"t1"
>
满1500可用
</div>
<div
class=
"t1"
>
满1500可用
</div>
<div
class=
"t2"
>
全场券
</div>
<div
class=
"t2"
>
全场券
</div>
<div
class=
"t3"
>
有效期:5.28-6.30
</div>
<div
class=
"t3"
>
有效期:5.28-6.30
</div>
<div
class=
"t4"
>
5.28 抢券
</div>
<div
class=
"t4"
>
立即领取
</div>
</div>
</div>
<div
class=
"yhq-item item100"
@
click=
"getYuq(259)"
>
<div
class=
"yhq-item item100"
@
click=
"getYuq(259)"
>
<div
class=
"t1"
>
满3000可用
</div>
<div
class=
"t1"
>
满3000可用
</div>
<div
class=
"t2"
>
全场券
</div>
<div
class=
"t2"
>
全场券
</div>
<div
class=
"t3"
>
有效期:5.28-6.30
</div>
<div
class=
"t3"
>
有效期:5.28-6.30
</div>
<div
class=
"t4"
>
5.28 抢券
</div>
<div
class=
"t4"
>
立即领取
</div>
</div>
</div>
<div
class=
"yhq-item item100 "
@
click=
"getYuq(260)"
>
<div
class=
"yhq-item item100 "
@
click=
"getYuq(260)"
>
<div
class=
"t1"
>
满100.1可用
</div>
<div
class=
"t1"
>
满100.1可用
</div>
...
...
view/14.js
View file @
decda114
This diff is collapsed.
Click to expand it.
view/app.js
View file @
decda114
...
@@ -4445,7 +4445,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue_
...
@@ -4445,7 +4445,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue_
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
"use strict"
;
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.12@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.11.2@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"]);\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.9.4@qs/lib/index.js\");\n\nvar state = {\n loading: false\n};\nvar mutations = {};\nvar actions = {\n issue: function issue(_ref, payload) {\n var commit = _ref.commit;\n state.loading = true;\n var params = {\n id: payload.id\n };\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].issue(qs.stringify(params)).then(function (res) {\n state.loading = false;\n var data = res.data;\n\n if (data.err_code == 0) {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: '领取成功',\n duration: 2000\n });\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: data.err_msg,\n duration: 3000\n });\n }\n }).catch(function (err) {\n state.loading = false;\n });\n } //issue\n\n};\nvar getters = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n state: state,\n mutations: mutations,\n actions: actions,\n getters: getters\n});\n\n//# sourceURL=webpack:///./src/store/modules/ac618/ac618.js?"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.12@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.11.2@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"]);\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.9.4@qs/lib/index.js\");\n\nvar state = {\n loading: false\n};\nvar mutations = {};\nvar actions = {\n issue: function issue(_ref, payload) {\n var commit = _ref.commit;\n state.loading = true;\n var params = {\n id: payload.id
,\n check_valid_time: 1
\n };\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].issue(qs.stringify(params)).then(function (res) {\n state.loading = false;\n var data = res.data;\n\n if (data.err_code == 0) {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: '领取成功',\n duration: 2000\n });\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: data.err_msg,\n duration: 3000\n });\n }\n }).catch(function (err) {\n state.loading = false;\n });\n } //issue\n\n};\nvar getters = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n state: state,\n mutations: mutations,\n actions: actions,\n getters: getters\n});\n\n//# sourceURL=webpack:///./src/store/modules/ac618/ac618.js?"
);
/***/
}),
/***/
}),
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment