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
fb235a2e
authored
Dec 26, 2020
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
=H5会员中心BUG修复
parent
e8738e49
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
14 additions
and
8 deletions
src/store/modules/user/inqueryList.js
src/views/user/coupon.vue
src/views/user/inqueryList.vue
src/views/user/inquiry.vue
src/views/user/shipping.vue
view/29.js
view/43.js
view/44.js
view/47.js
view/app.js
src/store/modules/user/inqueryList.js
View file @
fb235a2e
...
...
@@ -25,10 +25,13 @@ const actions = {
var
params
=
{
user_id
:
Until
.
getCookie
(
"Yo4teW_uid"
),
page
:
1
,
limit
:
100
,
status
:
payload
.
status
limit
:
100
}
if
(
payload
.
status
!=
99
){
params
.
status
=
payload
.
status
}
Services
.
getInqueryList
(
qs
.
stringify
(
params
)).
then
((
res
)
=>
{
let
data
=
res
.
data
;
state
.
loading
=
false
;
...
...
src/views/user/coupon.vue
View file @
fb235a2e
<
template
>
<section
class=
"coupon"
>
<Header
:title=
"title"
></Header>
<van-tabs
@
change=
"tabs"
>
<van-tabs
@
change=
"tabs"
:active=
"active"
>
<van-tab
:title=
"'未使用('+counts['-1']+')'"
></van-tab>
<van-tab
:title=
"'使用记录('+counts['1']+')'"
></van-tab>
<van-tab
:title=
"'已过期('+counts['-2']+')'"
></van-tab>
...
...
@@ -56,7 +56,7 @@
data
()
{
return
{
title
:
"优惠劵"
,
active
:
0
,
active
:
"0"
,
status
:
-
1
,
}
},
...
...
src/views/user/inqueryList.vue
View file @
fb235a2e
...
...
@@ -61,7 +61,7 @@
}
else
if
(
index
==
2
){
this
.
status
=
1
}
else
{
this
.
status
=
""
this
.
status
=
99
}
this
.
$store
.
dispatch
({
type
:
'getInqueryList'
,
...
...
src/views/user/inquiry.vue
View file @
fb235a2e
...
...
@@ -97,6 +97,9 @@
}
},
created
()
{
this
.
$store
.
dispatch
({
type
:
"getCommonParams"
})
this
.
imgSrc
=
productionUrlPc
+
'public/verify'
;
},
methods
:
{
...
...
src/views/user/shipping.vue
View file @
fb235a2e
...
...
@@ -15,7 +15,7 @@
<div
class=
"ri-text"
>
<p>
{{
userInfo
.
user_info
.
user_name
||
userInfo
.
user_info
.
mobile
}}
</p>
<p>
联系电话:
{{
userInfo
.
user_info
.
mobile
}}
</p>
<p>
{{
userInfo
.
company_info
.
com_address
}}
</p>
<p>
{{
userInfo
.
company_info
.
com_address
||
" "
}}
</p>
</div>
</div>
<div
class=
"wuliudanhao"
v-if=
"wlInfo"
>
快递单号:
{{
wlInfo
.
shipping_no
}}
<span
@
click=
"copy(wlInfo.shipping_no)"
>
复制
</span></div>
...
...
view/29.js
View file @
fb235a2e
This diff is collapsed.
Click to expand it.
view/43.js
View file @
fb235a2e
This diff is collapsed.
Click to expand it.
view/44.js
View file @
fb235a2e
This diff is collapsed.
Click to expand it.
view/47.js
View file @
fb235a2e
...
...
@@ -20,7 +20,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"section\",\n { staticClass: \"shipping\" },\n [\n _c(\n \"textarea\",\n {\n staticStyle: { position: \"absolute\", top: \"-9999px\" },\n attrs: { id: \"domainxk\" }\n },\n [_vm._v(_vm._s(_vm.copyCon))]\n ),\n _c(\"div\", { staticClass: \"ship-header clr\" }, [\n _c(\"div\", { staticClass: \"fl c-6\" }, [_vm._v(\"订单编号\")]),\n _c(\"div\", { staticClass: \"fl\" }, [\n _c(\n \"span\",\n {\n on: {\n click: function($event) {\n return _vm.copy(_vm.order_sn)\n }\n }\n },\n [_vm._v(\"复制\")]\n ),\n _vm._v(_vm._s(_vm.order_sn))\n ]),\n _c(\"div\", { staticClass: \"fl c-6\" }, [_vm._v(\"快递公司\")]),\n _vm.wlInfo\n ? _c(\"div\", { staticClass: \"fl\" }, [\n _vm._v(_vm._s(_vm.wlInfo.shipping_name))\n ])\n : _vm._e()\n ]),\n _c(\"div\", { staticClass: \"ship-cp\" }, [\n _c(\"div\", { staticClass: \"cp-t \" }, [\n _vm.userInfo.user_info.user_head\n ? _c(\"img\", {\n attrs: { src: _vm.userInfo.user_info.user_head, alt: \"猎芯网\" }\n })\n : _c(\"img\", {\n attrs: {\n src:\n \"https://static.ichunt.com/dist/res/home/images/headimg/boy9.png\",\n alt: \"猎芯网\"\n }\n }),\n _c(\"div\", { staticClass: \"ri-text\" }, [\n _c(\"p\", [\n _vm._v(\n _vm._s(\n _vm.userInfo.user_info.user_name ||\n _vm.userInfo.user_info.mobile\n )\n )\n ]),\n _c(\"p\", [\n _vm._v(\"联系电话:\" + _vm._s(_vm.userInfo.user_info.mobile))\n ]),\n _c(\"p\", [
_vm._v(_vm._s(_vm.userInfo.company_info.com_address))
])\n ])\n ]),\n _vm.wlInfo\n ? _c(\"div\", { staticClass: \"wuliudanhao\" }, [\n _vm._v(\"快递单号:\" + _vm._s(_vm.wlInfo.shipping_no) + \" \"),\n _c(\n \"span\",\n {\n on: {\n click: function($event) {\n return _vm.copy(_vm.wlInfo.shipping_no)\n }\n }\n },\n [_vm._v(\"复制\")]\n )\n ])\n : _vm._e()\n ]),\n _vm.wlInfo\n ? _c(\n \"div\",\n { staticClass: \"ship-box\" },\n _vm._l(_vm.wlInfo.info, function(item, index) {\n return _c(\n \"div\",\n { staticClass: \"wu-group \", class: { act: index == 0 } },\n [\n _c(\"div\", { staticClass: \"time-gh\" }, [\n _vm._v(_vm._s(item.AcceptTime.substring(5, 10))),\n _c(\"span\", [\n _vm._v(_vm._s(item.AcceptTime.substring(11, 16)))\n ])\n ]),\n _c(\"div\", { staticClass: \"g-te\" }, [\n _vm._v(\n \"\\n \" +\n _vm._s(item.AcceptStation) +\n \"\\n \"\n )\n ])\n ]\n )\n }),\n 0\n )\n : _vm._e(),\n _vm.loading\n ? _c(\"van-loading\", {\n staticClass: \"loading-background\",\n attrs: { type: \"spinner\", color: \"#000\" }\n })\n : _vm._e()\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/user/shipping.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%22776792e8-vue-loader-template%22%7D!./node_modules/_vue-loader@15.9.5@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.5@vue-loader/lib??vue-loader-options"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"section\",\n { staticClass: \"shipping\" },\n [\n _c(\n \"textarea\",\n {\n staticStyle: { position: \"absolute\", top: \"-9999px\" },\n attrs: { id: \"domainxk\" }\n },\n [_vm._v(_vm._s(_vm.copyCon))]\n ),\n _c(\"div\", { staticClass: \"ship-header clr\" }, [\n _c(\"div\", { staticClass: \"fl c-6\" }, [_vm._v(\"订单编号\")]),\n _c(\"div\", { staticClass: \"fl\" }, [\n _c(\n \"span\",\n {\n on: {\n click: function($event) {\n return _vm.copy(_vm.order_sn)\n }\n }\n },\n [_vm._v(\"复制\")]\n ),\n _vm._v(_vm._s(_vm.order_sn))\n ]),\n _c(\"div\", { staticClass: \"fl c-6\" }, [_vm._v(\"快递公司\")]),\n _vm.wlInfo\n ? _c(\"div\", { staticClass: \"fl\" }, [\n _vm._v(_vm._s(_vm.wlInfo.shipping_name))\n ])\n : _vm._e()\n ]),\n _c(\"div\", { staticClass: \"ship-cp\" }, [\n _c(\"div\", { staticClass: \"cp-t \" }, [\n _vm.userInfo.user_info.user_head\n ? _c(\"img\", {\n attrs: { src: _vm.userInfo.user_info.user_head, alt: \"猎芯网\" }\n })\n : _c(\"img\", {\n attrs: {\n src:\n \"https://static.ichunt.com/dist/res/home/images/headimg/boy9.png\",\n alt: \"猎芯网\"\n }\n }),\n _c(\"div\", { staticClass: \"ri-text\" }, [\n _c(\"p\", [\n _vm._v(\n _vm._s(\n _vm.userInfo.user_info.user_name ||\n _vm.userInfo.user_info.mobile\n )\n )\n ]),\n _c(\"p\", [\n _vm._v(\"联系电话:\" + _vm._s(_vm.userInfo.user_info.mobile))\n ]),\n _c(\"p\", [
\n _vm._v(_vm._s(_vm.userInfo.company_info.com_address || \" \"))\n
])\n ])\n ]),\n _vm.wlInfo\n ? _c(\"div\", { staticClass: \"wuliudanhao\" }, [\n _vm._v(\"快递单号:\" + _vm._s(_vm.wlInfo.shipping_no) + \" \"),\n _c(\n \"span\",\n {\n on: {\n click: function($event) {\n return _vm.copy(_vm.wlInfo.shipping_no)\n }\n }\n },\n [_vm._v(\"复制\")]\n )\n ])\n : _vm._e()\n ]),\n _vm.wlInfo\n ? _c(\n \"div\",\n { staticClass: \"ship-box\" },\n _vm._l(_vm.wlInfo.info, function(item, index) {\n return _c(\n \"div\",\n { staticClass: \"wu-group \", class: { act: index == 0 } },\n [\n _c(\"div\", { staticClass: \"time-gh\" }, [\n _vm._v(_vm._s(item.AcceptTime.substring(5, 10))),\n _c(\"span\", [\n _vm._v(_vm._s(item.AcceptTime.substring(11, 16)))\n ])\n ]),\n _c(\"div\", { staticClass: \"g-te\" }, [\n _vm._v(\n \"\\n \" +\n _vm._s(item.AcceptStation) +\n \"\\n \"\n )\n ])\n ]\n )\n }),\n 0\n )\n : _vm._e(),\n _vm.loading\n ? _c(\"van-loading\", {\n staticClass: \"loading-background\",\n attrs: { type: \"spinner\", color: \"#000\" }\n })\n : _vm._e()\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/user/shipping.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%22776792e8-vue-loader-template%22%7D!./node_modules/_vue-loader@15.9.5@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.5@vue-loader/lib??vue-loader-options"
);
/***/
}),
...
...
view/app.js
View file @
fb235a2e
...
...
@@ -4769,7 +4769,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue_
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"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/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../util */ \"./src/util/index.js\");\n\n\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.9.4@qs/lib/index.js\");\n\nvue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"]);\nvar state = {\n loading: false,\n lists: []\n};\nvar mutations = {};\nvar actions = {\n getInqueryList: function getInqueryList(_ref, payload) {\n var commit = _ref.commit;\n state.loading = true;\n var params = {\n user_id: _util__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getCookie(\"Yo4teW_uid\"),\n page: 1,\n limit: 100
,\n status: payload.status\n };
\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].getInqueryList(qs.stringify(params)).then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.err_code == 0) {\n state.lists = data.data.list;\n }\n }).catch(function (err) {\n state.loading = false;\n });\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/user/inqueryList.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/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../util */ \"./src/util/index.js\");\n\n\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.9.4@qs/lib/index.js\");\n\nvue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"]);\nvar state = {\n loading: false,\n lists: []\n};\nvar mutations = {};\nvar actions = {\n getInqueryList: function getInqueryList(_ref, payload) {\n var commit = _ref.commit;\n state.loading = true;\n var params = {\n user_id: _util__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getCookie(\"Yo4teW_uid\"),\n page: 1,\n limit: 100
\n };\n\n if (payload.status != 99) {\n params.status = payload.status;\n }\n
\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].getInqueryList(qs.stringify(params)).then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.err_code == 0) {\n state.lists = data.data.list;\n }\n }).catch(function (err) {\n state.loading = false;\n });\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/user/inqueryList.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