This commit is contained in:
Gao xiaosong
2020-03-16 01:40:52 +08:00
parent 397082cdaf
commit e215701560
216 changed files with 11659 additions and 13905 deletions

View File

@ -131,7 +131,7 @@ __webpack_require__.r(__webpack_exports__);
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 59));
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 59));
@ -209,23 +209,23 @@ var _user = __webpack_require__(/*! @/api/user */ 19);function _interopRequireDe
step: 1 }).
then(function (res) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
that.$yrouter.replace({
path: "/pages/user/PersonalData/main" });
path: "/pages/user/PersonalData/index" });
}).
catch(function (res) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
that.$yrouter.replace({
path: "/pages/user/PersonalData/main" });
path: "/pages/user/PersonalData/index" });
});
} },
@ -234,29 +234,29 @@ var _user = __webpack_require__(/*! @/api/user */ 19);function _interopRequireDe
txt: "取消",
color: false,
callback: function callback() {
wx.showToast({
uni.showToast({
title: "已取消绑定",
icon: "none",
duration: 2000 });
that.$yrouter.replace({
path: "/pages/user/PersonalData/main" });
path: "/pages/user/PersonalData/index" });
} }] });
} else {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
that.$yrouter.replace({ path: "/pages/user/PersonalData/main" });
that.$yrouter.replace({ path: "/pages/user/PersonalData/index" });
}
}).
catch(function (res) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@ -281,7 +281,7 @@ var _user = __webpack_require__(/*! @/api/user */ 19);function _interopRequireDe
(0, _user.registerVerify)({ phone: phone }).
then(function (res) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@ -289,12 +289,13 @@ var _user = __webpack_require__(/*! @/api/user */ 19);function _interopRequireDe
that.sendCode();
}).
catch(function (res) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
});case 11:case "end":return _context2.stop();}}}, _callee2, this, [[2, 7]]);}));function code() {return _code.apply(this, arguments);}return code;}() } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ })

View File

@ -100,16 +100,6 @@ var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
if (!_vm._isMounted) {
_vm.e0 = function($event) {
return _vm.$yrouter.push({
path: "/pages/user/CustomerService/index",
query: {
id: _vm.item.uid
}
})
}
}
}
var recyclableRender = false
var staticRenderFns = []
@ -174,7 +164,13 @@ var _user = __webpack_require__(/*! @/api/user */ 19); //
//
//
//
var _default = { name: "CustomerList", data: function data() {return { list: [] };}, methods: { getList: function getList() {var _this = this;(0, _user.serviceList)().then(function (res) {_this.list = res.data;});} },
var _default = { name: "CustomerList", data: function data() {return { list: [] };}, methods: { goCustomerService: function goCustomerService(item) {this.$yrouter.push({ path: "/pages/user/CustomerService/index", query: { id: item.uid } });},
getList: function getList() {var _this = this;
(0, _user.serviceList)().then(function (res) {
_this.list = res.data;
});
} },
mounted: function mounted() {
this.getList();
} };exports.default = _default;

View File

@ -1 +1 @@
<view class="CustomerList _div data-v-668f00fd"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="__i0__" wx:key="id"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="item acea-row row-between-wrapper _div data-v-668f00fd" bindtap="__e"><view class="pictrue _div data-v-668f00fd"><image src="{{item.avatar}}" class="_img data-v-668f00fd"></image></view><view class="text line1 _div data-v-668f00fd">{{item.nickname}}</view></view></block></view>
<view class="CustomerList _div data-v-668f00fd"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="__i0__" wx:key="id"><view data-event-opts="{{[['tap',[['goCustomerService',['$0'],[[['list','id',item.id]]]]]]]}}" class="item acea-row row-between-wrapper _div data-v-668f00fd" bindtap="__e"><view class="pictrue _div data-v-668f00fd"><image src="{{item.avatar}}" class="_img data-v-668f00fd"></image></view><view class="text line1 _div data-v-668f00fd">{{item.nickname}}</view></view></block></view>

View File

@ -131,35 +131,7 @@ __webpack_require__.r(__webpack_exports__);
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
@ -358,36 +330,26 @@ var _dayjs = _interopRequireDefault(__webpack_require__(/*! dayjs */ 24));functi
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = { name: "PersonalData", components: {// VueCoreImageUpload
}, data: function data() {return { url: "".concat(_config.VUE_APP_API_URL, "/upload/image"), headers: { Authorization: "Bearer " + this.$store.state.token }, avatar: "", isWeixin: false, currentAccounts: 0, switchUserInfo: [], userIndex: 0 };}, watch: { $yroute: function $yroute(n) {if (n.name === "PersonalData") this.$store.dispatch("USERINFO", true);} }, computed: (0, _vuex.mapGetters)(["userInfo"]), mounted: function mounted() {this.avatar = this.userInfo.avatar;this.isWeixin = (0, _utils.isWeixin)();this.getUserInfo();}, methods: { switchAccounts: function switchAccounts(index) {var that = this;this.userIndex = index;var userInfo = this.switchUserInfo[this.userIndex];if (this.switchUserInfo.length <= 1) return true;if (userInfo === undefined) return this.$dialog.toast({ mes: "切换的账号不存在" });if (userInfo.user_type === "h5") {(0, _user.switchH5Login)().then(function (_ref) {var data = _ref.data;wx.hideLoading();var expires_time = (0, _dayjs.default)(data.expires_time);_store.default.commit("LOGIN", data.token, expires_time);that.$emit("changeswitch", false);location.reload();}).catch(function (err) {wx.hideLoading();return that.$dialog.toast({ mes: err });});} else {_cookie.default.set("loginType", "wechat", 60);wx.hideLoading();this.$store.commit("LOGOUT");this.$emit("changeswitch", false);}}, getUserInfo: function getUserInfo() {var _this = this;var that = this;(0, _user.getUser)().then(function (res) {var switchUserInfo = res.data.switchUserInfo;for (var i = 0; i < switchUserInfo.length; i++) {if (switchUserInfo[i].uid == that.userInfo.uid) that.userIndex = i;if (!that.isWeixin && switchUserInfo[i].user_type != "h5" && switchUserInfo[i].phone === "") switchUserInfo.splice(i, 1);}that.$set(_this, "switchUserInfo", switchUserInfo);});}, imageuploaded: function imageuploaded(res) {if (res.status !== 200) return this.$dialog.error(res.msg || "上传图片失败");if (this.switchUserInfo[this.userIndex] === undefined) return;this.$set(this.switchUserInfo[this.userIndex], "avatar", res.data.url);}, submit: function submit() {var _this2 = this;var userInfo = this.switchUserInfo[this.userIndex];(0, _user.postUserEdit)({ nickname: (0, _utils.trim)(this.userInfo.nickname), avatar: userInfo.avatar }).then(function (res) {_this2.$store.dispatch("USERINFO", true);_this2.$wx.showToast({ title: res.msg, icon: "none", duration: 2000 });_this2.$yrouter.back();}, function (error) {_this2.$dialog.error(error.msg);});}, logout: function logout() {var _this3 = this;this.$dialog.confirm({ mes: "确认退出登录?", opts: function opts() {(0, _user.getLogout)().then(function (res) {_this3.$store.commit("LOGOUT");clearAuthStatus();location.href = location.origin;}).catch(function (err) {});} });} } };exports.default = _default;
}, data: function data() {return { url: "".concat(_config.VUE_APP_API_URL, "/upload/image"), headers: { Authorization: "Bearer " + this.$store.state.token }, avatar: "", isWeixin: false, currentAccounts: 0, switchUserInfo: [], userIndex: 0 };}, watch: { $yroute: function $yroute(n) {if (n.name === "PersonalData") this.$store.dispatch("USERINFO", true);} }, computed: (0, _vuex.mapGetters)(["userInfo"]), mounted: function mounted() {this.avatar = this.userInfo.avatar;this.isWeixin = (0, _utils.isWeixin)();this.getUserInfo();}, methods: { goChangePassword: function goChangePassword() {this.$yrouter.push("/pages/user/ChangePassword/index");}, switchAccounts: function switchAccounts(index) {var that = this;this.userIndex = index;var userInfo = this.switchUserInfo[this.userIndex];if (this.switchUserInfo.length <= 1) return true;if (userInfo === undefined) return this.$dialog.toast({ mes: "切换的账号不存在" });if (userInfo.user_type === "h5") {(0, _user.switchH5Login)().then(function (_ref) {var data = _ref.data;uni.hideLoading();var expires_time = (0, _dayjs.default)(data.expires_time);_store.default.commit("LOGIN", data.token, expires_time);that.$emit("changeswitch", false);location.reload();}).catch(function (err) {uni.hideLoading();return that.$dialog.toast({ mes: err });});} else {_cookie.default.set("loginType", "wechat", 60);uni.hideLoading();this.$store.commit("LOGOUT");this.$emit("changeswitch", false);}}, getUserInfo: function getUserInfo() {var _this = this;var that = this;(0, _user.getUser)().then(function (res) {var switchUserInfo = res.data.switchUserInfo;for (var i = 0; i < switchUserInfo.length; i++) {if (switchUserInfo[i].uid == that.userInfo.uid) that.userIndex = i;if (!that.isWeixin && switchUserInfo[i].user_type != "h5" && switchUserInfo[i].phone === "") switchUserInfo.splice(i, 1);}that.$set(_this, "switchUserInfo", switchUserInfo);});}, imageuploaded: function imageuploaded(res) {if (res.status !== 200) return this.$dialog.error(res.msg || "上传图片失败");if (this.switchUserInfo[this.userIndex] === undefined) return;this.$set(this.switchUserInfo[this.userIndex], "avatar", res.data.url);}, submit: function submit() {var _this2 = this;var userInfo = this.switchUserInfo[this.userIndex];(0, _user.postUserEdit)({ nickname: (0, _utils.trim)(this.userInfo.nickname), avatar: userInfo.avatar }).then(function (res) {_this2.$store.dispatch("USERINFO", true);_this2.$uni.showToast({ title: res.msg, icon: "none", duration: 2000 });_this2.$yrouter.back();}, function (error) {_this2.$dialog.error(error.msg);
});
},
logout: function logout() {var _this3 = this;
this.$dialog.confirm({
mes: "确认退出登录?",
opts: function opts() {
(0, _user.getLogout)().
then(function (res) {
_this3.$store.commit("LOGOUT");
clearAuthStatus();
location.href = location.origin;
}).
catch(function (err) {});
} });
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ })

View File

@ -1 +1 @@
<view class="personal-data _div"><view class="wrapper _div"><view class="title _div">管理我的账号</view><view class="wrapList _div"><block wx:for="{{switchUserInfo}}" wx:for-item="item" wx:for-index="switchUserInfoIndex" wx:key="switchUserInfoIndex"><view class="{{['item acea-row row-between-wrapper _div',item.uid===userInfo.uid?'on':'']}}"><view class="picTxt acea-row row-between-wrapper _div"><view class="pictrue _div"><block wx:if="{{item.uid===userInfo.uid}}"><image class="alter _img" src="{{$VUE_APP_RESOURCES_URL+'/images/alter.png'}}"></image></block></view><view class="text _div"><view class="name line1 _div">{{item.nickname}}</view><view class="phone _div">{{"绑定手机号:"+item.phone}}</view></view></view><block wx:if="{{item.uid===userInfo.uid}}"><view class="currentBnt acea-row row-center-wrapper font-color-red _div">当前账号</view></block><block wx:else><view data-event-opts="{{[['tap',[['switchAccounts',['$0'],['index']]]]]}}" class="bnt font-color-red acea-row row-center-wrapper _div" bindtap="__e">使用账号</view></block></view></block></view></view><view class="list _div"><view class="item acea-row row-between-wrapper _div"><view class="_div">昵称</view><view class="input _div"><input type="text" data-event-opts="{{[['input',[['__set_model',['$0','nickname','$event',[]],['userInfo']]]]]}}" value="{{userInfo.nickname}}" bindinput="__e"/></view></view><view class="item acea-row row-between-wrapper _div"><view class="_div">ID号</view><view class="input acea-row row-between-wrapper _div"><input class="id" type="text" disabled value="{{userInfo.uid}}"/><label class="iconfont icon-suozi _span"></label></view></view><view class="item acea-row row-between-wrapper _div"><view class="_div">手机号</view><view class="input _div"><block wx:if="{{userInfo.phone}}"><input type="text" data-event-opts="{{[['input',[['__set_model',['$0','phone','$event',[]],['userInfo']]]]]}}" value="{{userInfo.phone}}" bindinput="__e"/></block><block wx:else><input class="id" type="text" value="未绑定" disabled/></block></view></view></view></view>
<view class="personal-data _div"><view class="wrapper _div"><view class="title _div">管理我的账号</view><view class="wrapList _div"><block wx:for="{{switchUserInfo}}" wx:for-item="item" wx:for-index="switchUserInfoIndex" wx:key="switchUserInfoIndex"><view class="{{['item acea-row row-between-wrapper _div',item.uid===userInfo.uid?'on':'']}}"><view class="picTxt acea-row row-between-wrapper _div"><view class="pictrue _div"><block wx:if="{{item.uid===userInfo.uid}}"><image class="alter _img" src="{{$VUE_APP_RESOURCES_URL+'/images/alter.png'}}"></image></block></view><view class="text _div"><view class="name line1 _div">{{item.nickname}}</view><view class="phone _div">{{"绑定手机号:"+item.phone}}</view></view></view><block wx:if="{{item.uid===userInfo.uid}}"><view class="currentBnt acea-row row-center-wrapper font-color-red _div">当前账号</view></block><block wx:else><view data-event-opts="{{[['tap',[['switchAccounts',['$0'],['index']]]]]}}" class="bnt font-color-red acea-row row-center-wrapper _div" bindtap="__e">使用账号</view></block></view></block></view></view><view class="list _div"><view class="item acea-row row-between-wrapper _div"><view class="_div">昵称</view><view class="input _div"><input type="text" data-event-opts="{{[['input',[['__set_model',['$0','nickname','$event',[]],['userInfo']]]]]}}" value="{{userInfo.nickname}}" bindinput="__e"/></view></view><view class="item acea-row row-between-wrapper _div"><view class="_div">ID号</view><view class="input acea-row row-between-wrapper _div"><input class="id" type="text" disabled value="{{userInfo.uid}}"/><label class="iconfont icon-suozi _span"></label></view></view><view class="item acea-row row-between-wrapper _div"><view class="_div">手机号</view><view class="input _div"><block wx:if="{{userInfo.phone}}"><input type="text" data-event-opts="{{[['input',[['__set_model',['$0','phone','$event',[]],['userInfo']]]]]}}" value="{{userInfo.phone}}" bindinput="__e"/></block><block wx:else><input class="id" type="text" value="未绑定" disabled/></block></view></view><view data-event-opts="{{[['tap',[['goChangePassword']]]]}}" class="item acea-row row-between-wrapper _div" bindtap="__e"><view class="_div">密码</view><view class="input acea-row row-between-wrapper _div"><label class="_span">点击修改密码</label><label class="iconfont icon-suozi _span"></label></view></view></view></view>

View File

@ -100,14 +100,6 @@ var render = function() {
var _c = _vm._self._c || _h
var m0 = __webpack_require__(/*! @/assets/images/logo.png */ 56)
if (!_vm._isMounted) {
_vm.e0 = function($event) {
return _vm.$yrouter.push({
name: "Login"
})
}
}
_vm.$mp.data = Object.assign(
{},
{
@ -196,10 +188,6 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
@ -256,11 +244,7 @@ var _SendVerifyCode = _interopRequireDefault(__webpack_require__(/*! @/mixins/Se
//
//
//
//
//
//
//
var _default = { name: "Register", mixins: [_SendVerifyCode.default], methods: { code: function code() {this.sendCode();} } };exports.default = _default;
var _default = { name: "Register", mixins: [_SendVerifyCode.default], methods: { code: function code() {this.sendCode();}, goLogin: function goLogin() {this.$yrouter.push({ path: "/pages/user/Login/index" });} } };exports.default = _default;
/***/ })

View File

@ -1 +1 @@
<view class="register absolute _div"><view class="shading _div"><view class="pictrue acea-row row-center-wrapper _div"><image src="{{$root.m0}}" class="_img"></image></view></view><view class="whiteBg _div"><view class="title _div">注册账号</view><view class="list _div"><view class="item _div"><view class="_div"><svg class="icon" vue-id="398a87c5-1" aria-hidden="true" bind:__l="__l" vue-slots="{{['default']}}"><use vue-id="{{('398a87c5-2')+','+('398a87c5-1')}}" xlink:href="#icon-phone_" bind:__l="__l"></use></svg><input type="text" placeholder="输入手机号码"/></view></view><view class="item _div"><view class="align-left _div"><svg class="icon" vue-id="398a87c5-3" aria-hidden="true" bind:__l="__l" vue-slots="{{['default']}}"><use vue-id="{{('398a87c5-4')+','+('398a87c5-3')}}" xlink:href="#icon-code_1" bind:__l="__l"></use></svg><input class="codeIput" type="text" placeholder="填写验证码"/><button class="{{['code',disabled===true?'on':'']}}" disabled="{{disabled}}" data-event-opts="{{[['tap',[['code',['$event']]]]]}}" bindtap="__e">{{''+text+''}}</button></view></view><view class="item _div"><view class="_div"><svg class="icon" vue-id="398a87c5-5" aria-hidden="true" bind:__l="__l" vue-slots="{{['default']}}"><use vue-id="{{('398a87c5-6')+','+('398a87c5-5')}}" xlink:href="#icon-code_" bind:__l="__l"></use></svg><input type="text" placeholder="填写您的登录密码"/></view></view></view><view class="logon _div">注册</view><view class="tip _div">已有账号?<label data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="font-color-red _span" bindtap="__e">立即登录</label></view></view><view class="bottom _div"></view></view>
<view class="register absolute _div"><view class="shading _div"><view class="pictrue acea-row row-center-wrapper _div"><image src="{{$root.m0}}" class="_img"></image></view></view><view class="whiteBg _div"><view class="title _div">注册账号</view><view class="list _div"><view class="item _div"><view class="_div"><svg class="icon" vue-id="398a87c5-1" aria-hidden="true" bind:__l="__l" vue-slots="{{['default']}}"><use vue-id="{{('398a87c5-2')+','+('398a87c5-1')}}" xlink:href="#icon-phone_" bind:__l="__l"></use></svg><input type="text" placeholder="输入手机号码"/></view></view><view class="item _div"><view class="align-left _div"><svg class="icon" vue-id="398a87c5-3" aria-hidden="true" bind:__l="__l" vue-slots="{{['default']}}"><use vue-id="{{('398a87c5-4')+','+('398a87c5-3')}}" xlink:href="#icon-code_1" bind:__l="__l"></use></svg><input class="codeIput" type="text" placeholder="填写验证码"/><button class="{{['code',disabled===true?'on':'']}}" disabled="{{disabled}}" data-event-opts="{{[['tap',[['code',['$event']]]]]}}" bindtap="__e">{{text}}</button></view></view><view class="item _div"><view class="_div"><svg class="icon" vue-id="398a87c5-5" aria-hidden="true" bind:__l="__l" vue-slots="{{['default']}}"><use vue-id="{{('398a87c5-6')+','+('398a87c5-5')}}" xlink:href="#icon-code_" bind:__l="__l"></use></svg><input type="text" placeholder="填写您的登录密码"/></view></view></view><view class="logon _div">注册</view><view class="tip _div">已有账号?<label data-event-opts="{{[['tap',[['goLogin']]]]}}" class="font-color-red _span" bindtap="__e">立即登录</label></view></view><view class="bottom _div"></view></view>

View File

@ -100,14 +100,6 @@ var render = function() {
var _c = _vm._self._c || _h
var m0 = __webpack_require__(/*! @/assets/images/logo.png */ 56)
if (!_vm._isMounted) {
_vm.e0 = function($event) {
return _vm.$yrouter.push({
name: "Login"
})
}
}
_vm.$mp.data = Object.assign(
{},
{
@ -186,19 +178,6 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
@ -229,6 +208,9 @@ var _validate = _interopRequireWildcard(__webpack_require__(/*! @/utils/validate
},
mixins: [_SendVerifyCode.default],
methods: {
goLogin: function goLogin() {
this.$yrouter.push({ path: "/pages/user/Login/index" });
},
registerReset: function () {var _registerReset2 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee() {var that, account, captcha, password;return _regenerator.default.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:
that = this;
account = that.account, captcha = that.captcha, password = that.password;_context.prev = 2;_context.next = 5;return (

View File

@ -1 +1 @@
<view class="register absolute _div"><view class="shading _div"><view class="pictrue acea-row row-center-wrapper _div"><image src="{{$root.m0}}" class="_img"></image></view></view><view class="whiteBg _div"><view class="title _div">找回密码</view><view class="list _div"><view class="item _div"><view class="_div"><svg class="icon" vue-id="d92a6c1e-1" aria-hidden="true" bind:__l="__l" vue-slots="{{['default']}}"><use vue-id="{{('d92a6c1e-2')+','+('d92a6c1e-1')}}" xlink:href="#icon-phone_" bind:__l="__l"></use></svg><input type="text" placeholder="输入手机号码" data-event-opts="{{[['input',[['__set_model',['','account','$event',[]]]]]]}}" value="{{account}}" bindinput="__e"/></view></view><view class="item _div"><view class="align-left _div"><svg class="icon" vue-id="d92a6c1e-3" aria-hidden="true" bind:__l="__l" vue-slots="{{['default']}}"><use vue-id="{{('d92a6c1e-4')+','+('d92a6c1e-3')}}" xlink:href="#icon-code_1" bind:__l="__l"></use></svg><input class="codeIput" type="text" placeholder="填写验证码" data-event-opts="{{[['input',[['__set_model',['','captcha','$event',[]]]]]]}}" value="{{captcha}}" bindinput="__e"/><button class="{{['code',disabled===true?'on':'']}}" disabled="{{disabled}}" data-event-opts="{{[['tap',[['code',['$event']]]]]}}" bindtap="__e">{{''+text+''}}</button></view></view><view class="item _div"><view class="_div"><svg class="icon" vue-id="d92a6c1e-5" aria-hidden="true" bind:__l="__l" vue-slots="{{['default']}}"><use vue-id="{{('d92a6c1e-6')+','+('d92a6c1e-5')}}" xlink:href="#icon-code_" bind:__l="__l"></use></svg><input type="password" placeholder="填写您的登录密码" data-event-opts="{{[['input',[['__set_model',['','password','$event',[]]]]]]}}" value="{{password}}" bindinput="__e"/></view></view></view><view data-event-opts="{{[['tap',[['registerReset',['$event']]]]]}}" class="logon _div" bindtap="__e">确认</view><view class="tip _div"><label data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="font-color-red _span" bindtap="__e">立即登录</label></view></view><view class="bottom _div"></view></view>
<view class="register absolute _div"><view class="shading _div"><view class="pictrue acea-row row-center-wrapper _div"><image src="{{$root.m0}}" class="_img"></image></view></view><view class="whiteBg _div"><view class="title _div">找回密码</view><view class="list _div"><view class="item _div"><view class="_div"><svg class="icon" vue-id="d92a6c1e-1" aria-hidden="true" bind:__l="__l" vue-slots="{{['default']}}"><use vue-id="{{('d92a6c1e-2')+','+('d92a6c1e-1')}}" xlink:href="#icon-phone_" bind:__l="__l"></use></svg><input type="text" placeholder="输入手机号码" data-event-opts="{{[['input',[['__set_model',['','account','$event',[]]]]]]}}" value="{{account}}" bindinput="__e"/></view></view><view class="item _div"><view class="align-left _div"><svg class="icon" vue-id="d92a6c1e-3" aria-hidden="true" bind:__l="__l" vue-slots="{{['default']}}"><use vue-id="{{('d92a6c1e-4')+','+('d92a6c1e-3')}}" xlink:href="#icon-code_1" bind:__l="__l"></use></svg><input class="codeIput" type="text" placeholder="填写验证码" data-event-opts="{{[['input',[['__set_model',['','captcha','$event',[]]]]]]}}" value="{{captcha}}" bindinput="__e"/><button class="{{['code',disabled===true?'on':'']}}" disabled="{{disabled}}" data-event-opts="{{[['tap',[['code',['$event']]]]]}}" bindtap="__e">{{text}}</button></view></view><view class="item _div"><view class="_div"><svg class="icon" vue-id="d92a6c1e-5" aria-hidden="true" bind:__l="__l" vue-slots="{{['default']}}"><use vue-id="{{('d92a6c1e-6')+','+('d92a6c1e-5')}}" xlink:href="#icon-code_" bind:__l="__l"></use></svg><input type="password" placeholder="填写您的登录密码" data-event-opts="{{[['input',[['__set_model',['','password','$event',[]]]]]]}}" value="{{password}}" bindinput="__e"/></view></view></view><view data-event-opts="{{[['tap',[['registerReset',['$event']]]]]}}" class="logon _div" bindtap="__e">确认</view><view class="tip _div"><label data-event-opts="{{[['tap',[['goLogin']]]]}}" class="font-color-red _span" bindtap="__e">立即登录</label></view></view><view class="bottom _div"></view></view>

View File

@ -83,79 +83,6 @@ var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
if (!_vm._isMounted) {
_vm.e0 = function($event) {
return _vm.$yrouter.push("/pages/user/PersonalData/index")
}
_vm.e1 = function($event) {
return _vm.$yrouter.push({
path: "/pages/user/PersonalData/index"
})
}
_vm.e2 = function($event) {
return _vm.$yrouter.push({
path: "/pages/user/UserAccount/index"
})
}
_vm.e3 = function($event) {
return _vm.$yrouter.push("/pages/user/promotion/UserPromotion/index")
}
_vm.e4 = function($event) {
return _vm.$yrouter.push("/pages/user/signIn/Integral/index")
}
_vm.e5 = function($event) {
return _vm.$yrouter.push("/pages/user/coupon/UserCoupon/index")
}
_vm.e6 = function($event) {
return _vm.$yrouter.push("/pages/order/MyOrder/index")
}
_vm.e7 = function($event) {
return _vm.$yrouter.push({
path: "/pages/order/MyOrder/index",
query: {
type: 0
}
})
}
_vm.e8 = function($event) {
return _vm.$yrouter.push({
path: "/pages/order/MyOrder/index",
query: {
type: 1
}
})
}
_vm.e9 = function($event) {
return _vm.$yrouter.push({
path: "/pages/order/MyOrder/index",
query: {
type: 2
}
})
}
_vm.e10 = function($event) {
return _vm.$yrouter.push({
path: "/pages/order/MyOrder/index",
query: {
type: 3
}
})
}
_vm.e11 = function($event) {
return _vm.$yrouter.push("/pages/order/ReturnList/index")
}
}
}
var recyclableRender = false
var staticRenderFns = []
@ -189,27 +116,7 @@ __webpack_require__.r(__webpack_exports__);
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
@ -505,27 +412,8 @@ var _vuex = __webpack_require__(/*! vuex */ 16); //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var SwitchWindow = function SwitchWindow() {return __webpack_require__.e(/*! import() | components/SwitchWindow */ "components/SwitchWindow").then(__webpack_require__.bind(null, /*! @/components/SwitchWindow */ 536));};var NAME = "User";var _default = { name: NAME, components: { SwitchWindow: SwitchWindow }, props: {}, data: function data() {return { userInfo: {}, MyMenus: [], orderStatusNum: {}, switchActive: false, isWeixin: false };}, computed: (0, _vuex.mapGetters)(["wxCode"]), watch: { $yroute: function $yroute(n) {if (n.name === NAME) this.User();} }, mounted: function mounted() {console.log('这个是个人中心');this.User();this.MenuUser();this.isWeixin = (0, _utils.isWeixin)();}, methods: { getPhoneNumber: function getPhoneNumber(e) {var _this = this;console.log(e.mp.detail);if (e.mp.detail.errMsg == "getPhoneNumber:ok") {wx.showLoading({ title: "绑定中" });wx.login({ success: function success(loginRes) {(0, _user.bindingPhone)({ code: loginRes.code, encryptedData: e.mp.detail.encryptedData, iv: e.mp.detail.iv }).then(function (res) {_this.User();wx.hideLoading();wx.showToast({ title: res.msg, icon: "success", duration: 2000 });}).catch(function (error) {wx.showToast({ title: error.msg || error.response.data.msg, icon: "none", duration: 2000 });});} });} else {wx.showToast({ title: "已拒绝授权", icon: "none", duration: 2000 });}}, changeswitch: function changeswitch(data) {this.switchActive = data;}, User: function User() {var that = this;(0, _user.getUser)().then(function (res) {that.userInfo = res.data;that.orderStatusNum = res.data.orderStatusNum;});}, MenuUser: function MenuUser() {var that = this;(0, _user.getMenuUser)().then(function (res) {that.MyMenus = res.data.routine_my_menus;});}, goPages: function goPages(index) {var url = this.MyMenus[index].wxapp_url;if (url === "/pages/user/promotion/UserPromotion/main" && this.userInfo.statu === 1) {if (!this.userInfo.isPromoter) return this.$dialog.toast({ mes: "您还没有推广权限!!" });}if (url === "/pages/orderAdmin/OrderIndex/main" && !this.userInfo.adminid) {return this.$dialog.toast({ mes: "您还不是管理员!!" });}this.$yrouter.push({ path: this.MyMenus[index].wxapp_url });} }, onShow: function onShow() {this.User();this.MenuUser();this.isWeixin = (0, _utils.isWeixin)();} };exports.default = _default;
var SwitchWindow = function SwitchWindow() {return __webpack_require__.e(/*! import() | components/SwitchWindow */ "components/SwitchWindow").then(__webpack_require__.bind(null, /*! @/components/SwitchWindow */ 536));};var NAME = "User";var _default = { name: NAME, components: { SwitchWindow: SwitchWindow }, props: {}, data: function data() {return { userInfo: {}, MyMenus: [], orderStatusNum: {}, switchActive: false, isWeixin: false };}, computed: (0, _vuex.mapGetters)(["wxCode"]), watch: { $yroute: function $yroute(n) {if (n.name === NAME) this.User();} }, mounted: function mounted() {console.log("这个是个人中心");this.User();this.MenuUser();this.isWeixin = (0, _utils.isWeixin)();}, methods: { goReturnList: function goReturnList() {this.$yrouter.push("/pages/order/ReturnList/index");}, goMyOrder: function goMyOrder(type) {this.$yrouter.push({ path: "/pages/order/MyOrder/index", query: { type: type } });}, goUserCoupon: function goUserCoupon() {this.$yrouter.push("/pages/user/coupon/UserCoupon/index");}, goIntegral: function goIntegral() {this.$yrouter.push("/pages/user/signIn/Integral/index");}, goUserPromotion: function goUserPromotion() {this.$yrouter.push("/pages/user/promotion/UserPromotion/index");}, goUserAccount: function goUserAccount() {this.$yrouter.push({ path: "/pages/user/UserAccount/index" });}, goPersonalData: function goPersonalData() {this.$yrouter.push("/pages/user/PersonalData/index");}, getPhoneNumber: function getPhoneNumber(e) {var _this = this;console.log(e.mp.detail);if (e.mp.detail.errMsg == "getPhoneNumber:ok") {uni.showLoading({ title: "绑定中" });wx.login({ success: function success(loginRes) {(0, _user.bindingPhone)({ code: loginRes.code, encryptedData: e.mp.detail.encryptedData, iv: e.mp.detail.iv }).then(function (res) {_this.User();uni.hideLoading();uni.showToast({ title: res.msg, icon: "success", duration: 2000 });}).catch(function (error) {uni.showToast({ title: error.msg || error.response.data.msg, icon: "none", duration: 2000 });});} });} else {uni.showToast({ title: "已拒绝授权", icon: "none", duration: 2000 });}}, changeswitch: function changeswitch(data) {this.switchActive = data;}, User: function User() {var that = this;(0, _user.getUser)().then(function (res) {that.userInfo = res.data;that.orderStatusNum = res.data.orderStatusNum;});}, MenuUser: function MenuUser() {var that = this;(0, _user.getMenuUser)().then(function (res) {that.MyMenus = res.data.routine_my_menus;});}, goPages: function goPages(index) {var url = this.MyMenus[index].uniapp_url;if (url === "/pages/user/promotion/UserPromotion/index" && this.userInfo.statu === 1) {if (!this.userInfo.isPromoter) return this.$dialog.toast({ mes: "您还没有推广权限!!" });}if (url === "/pages/orderAdmin/OrderIndex/index" && !this.userInfo.adminid) {return this.$dialog.toast({ mes: "您还不是管理员!!" });}this.$yrouter.push({ path: this.MyMenus[index].uniapp_url });} }, onShow: function onShow() {this.User();this.MenuUser();this.isWeixin = (0, _utils.isWeixin)();} };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ }),

File diff suppressed because one or more lines are too long

View File

@ -98,25 +98,6 @@ var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
if (!_vm._isMounted) {
_vm.e0 = function($event) {
return _vm.$yrouter.push({
path: "/pages/user/UserBill/index",
query: {
id: 0
}
})
}
_vm.e1 = function($event) {
return _vm.$yrouter.push({
path: "/pages/user/UserBill/index",
query: {
id: 1
}
})
}
}
}
var recyclableRender = false
var staticRenderFns = []
@ -214,6 +195,9 @@ var _user = __webpack_require__(/*! @/api/user */ 19);var Recommend = function R
this.getActivity();
},
methods: {
goUserBill: function goUserBill(id) {
this.$yrouter.push({ path: "/pages/user/UserBill/index", query: { id: id } });
},
getIndex: function getIndex() {
var that = this;
(0, _user.getBalance)().then(

View File

@ -1 +1 @@
<view class="my-account _div"><view class="wrapper _div"><view class="header _div"><view class="headerCon _div"><view class="account acea-row row-top row-between _div"><view class="assets _div"><view class="_div">总资产(元)</view><view class="money _div">{{now_money}}</view></view></view><view class="cumulative acea-row row-top _div"><view class="item _div"><view class="_div">累计消费(元)</view><view class="money _div">{{orderStatusSum}}</view></view></view></view></view><view class="nav acea-row row-middle _div"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="item _div" bindtap="__e"><view class="pictrue _div"><image src="{{$VUE_APP_RESOURCES_URL+'/images/record1.png'}}" class="_img"></image></view><view class="_div">账单记录</view></view><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="item _div" bindtap="__e"><view class="pictrue _div"><image src="{{$VUE_APP_RESOURCES_URL+'/images/record2.png'}}" class="_img"></image></view><view class="_div">消费记录</view></view></view><view class="advert acea-row row-between-wrapper _div"></view></view><recommend vue-id="3977060c-1" bind:__l="__l"></recommend></view>
<view class="my-account _div"><view class="wrapper _div"><view class="header _div"><view class="headerCon _div"><view class="account acea-row row-top row-between _div"><view class="assets _div"><view class="_div">总资产(元)</view><view class="money _div">{{now_money}}</view></view></view><view class="cumulative acea-row row-top _div"><view class="item _div"><view class="_div">累计消费(元)</view><view class="money _div">{{orderStatusSum}}</view></view></view></view></view><view class="nav acea-row row-middle _div"><view data-event-opts="{{[['tap',[['goUserBill',[0]]]]]}}" class="item _div" bindtap="__e"><view class="pictrue _div"><image src="{{$VUE_APP_RESOURCES_URL+'/images/record1.png'}}" class="_img"></image></view><view class="_div">账单记录</view></view><view data-event-opts="{{[['tap',[['goUserBill',[1]]]]]}}" class="item _div" bindtap="__e"><view class="pictrue _div"><image src="{{$VUE_APP_RESOURCES_URL+'/images/record2.png'}}" class="_img"></image></view><view class="_div">消费记录</view></view></view><view class="advert acea-row row-between-wrapper _div"></view></view><recommend vue-id="3977060c-1" bind:__l="__l"></recommend></view>

View File

@ -133,7 +133,7 @@ __webpack_require__.r(__webpack_exports__);
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
@ -307,15 +307,15 @@ var _default = { components: { Loading: Loading }, data: function data() {return
that.addressList.push.apply(that.addressList, res.data);that.loadend = res.data.length < that.limit; //判断所有数据是否加载完成;
that.page = that.page + 1;});}, /**
* 编辑地址
*/editAddress: function editAddress(index) {this.$yrouter.push({ path: "/pages/user/address/AddAddress/main", query: { id: this.addressList[index].id } });}, /**
* 删除地址
*/delAddress: function delAddress(index) {var that = this;var address = this.addressList[index];var id = address.id;(0, _user.getAddressRemove)(id).then(function () {that.$dialog.toast({ mes: "删除成功!", callback: function callback() {that.addressList.splice(index, 1);that.$set(that, "addressList", that.addressList);} });});}, /**
* 设置默认地址
*/radioChange: function radioChange(id) {var _this = this;(0, _user.getAddressDefaultSet)(id).then(function (res) {_this.refresh();wx.showToast({ title: res.msg, icon: "none", duration: 2000 });});}, /**
* 新增地址
*/addAddress: function addAddress() {this.$yrouter.push({ path: "/pages/user/address/AddAddress/main" });}, getAddress: function getAddress() {
*/editAddress: function editAddress(index) {this.$yrouter.push({ path: "/pages/user/address/AddAddress/index", query: { id: this.addressList[index].id } });}, /**
* 删除地址
*/delAddress: function delAddress(index) {var that = this;var address = this.addressList[index];var id = address.id;(0, _user.getAddressRemove)(id).then(function () {that.$dialog.toast({ mes: "删除成功!", callback: function callback() {that.addressList.splice(index, 1);that.$set(that, "addressList", that.addressList);} });});}, /**
* 设置默认地址
*/radioChange: function radioChange(id) {var _this = this;(0, _user.getAddressDefaultSet)(id).then(function (res) {_this.refresh();uni.showToast({ title: res.msg, icon: "none", duration: 2000 });});}, /**
* 新增地址
*/addAddress: function addAddress() {this.$yrouter.push({ path: "/pages/user/address/AddAddress/index" });}, getAddress: function getAddress() {
// openAddress().then(userInfo => {
// wx.showLoading({ title: "加载中" });
// uni.showLoading({ title: "加载中" });
// postAddress({
// real_name: userInfo.userName,
// phone: userInfo.telNumber,
@ -334,15 +334,16 @@ var _default = { components: { Loading: Loading }, data: function data() {return
// this.loadend = false;
// this.addressList = [];
// this.AddressList();
// wx.hideLoading();
// uni.hideLoading();
// this.$dialog.toast({ mes: "添加成功" });
// })
// .catch(err => {
// wx.hideLoading();
// uni.hideLoading();
// this.$dialog.error(err.msg || "添加失败");
// });
// });
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ }),

View File

@ -98,13 +98,6 @@ var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
if (!_vm._isMounted) {
_vm.e0 = function($event) {
return _vm.$yrouter.push({
path: "/pages/user/promotion/UserPromotion/index"
})
}
}
}
var recyclableRender = false
var staticRenderFns = []
@ -148,9 +141,6 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
//
//
//
//
//
//
var _default =
{
name: "CashAudit",
@ -165,7 +155,10 @@ var _default =
var myData = new Date();
this.time = myData.toLocaleString();
},
methods: {} };exports.default = _default;
methods: {
goUserPromotion: function goUserPromotion() {
this.$yrouter.push({ path: "/pages/user/promotion/UserPromotion/index" });
} } };exports.default = _default;
/***/ })

View File

@ -1 +1 @@
<view class="cash-audit _div"><view class="pictrue _div"><image src="{{$VUE_APP_RESOURCES_URL+'/images/examine.png'}}" class="_img"></image></view><view class="tip _div">提现申请已提交,等待人工审核</view><view class="time _div">{{time}}</view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="bnt bg-color-red _div" bindtap="__e">好的</view></view>
<view class="cash-audit _div"><view class="pictrue _div"><image src="{{$VUE_APP_RESOURCES_URL+'/images/examine.png'}}" class="_img"></image></view><view class="tip _div">提现申请已提交,等待人工审核</view><view class="time _div">{{time}}</view><view data-event-opts="{{[['tap',[['goUserPromotion']]]]}}" class="bnt bg-color-red _div" bindtap="__e">好的</view></view>

View File

@ -133,7 +133,7 @@ __webpack_require__.r(__webpack_exports__);
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
@ -226,7 +226,7 @@ var _default = { name: "Poster", components: {// swiper,
var downloadUrl = imgsrc;
if (!wx.saveImageToPhotosAlbum) {
wx.showModal({
uni.showModal({
title: "提示",
content:
"当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。" });
@ -272,6 +272,7 @@ var _default = { name: "Poster", components: {// swiper,
"poster" + this.activeIndex);
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ }),

View File

@ -98,27 +98,6 @@ var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
if (!_vm._isMounted) {
_vm.e0 = function($event) {
return _vm.$yrouter.push("/pages/user/promotion/CashRecord/index")
}
_vm.e1 = function($event) {
return _vm.$yrouter.push("/pages/user/promotion/Poster/index")
}
_vm.e2 = function($event) {
return _vm.$yrouter.push("/pages/user/promotion/PromoterList/index")
}
_vm.e3 = function($event) {
return _vm.$yrouter.push("/pages/user/promotion/CommissionDetails/index")
}
_vm.e4 = function($event) {
return _vm.$yrouter.push("/pages/user/promotion/PromoterOrder/index")
}
}
}
var recyclableRender = false
var staticRenderFns = []
@ -183,18 +162,6 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
@ -251,19 +218,11 @@ var _user = __webpack_require__(/*! @/api/user */ 19); //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = { name: "UserPromotion", components: {}, props: {}, data: function data() {return { Info: { lastDayCount: 0, extractCount: 0, commissionCount: 0 } };}, mounted: function mounted() {this.getInfo();}, methods: { getInfo: function getInfo() {var that = this;(0, _user.getSpreadInfo)().then(function (res) {that.Info = res.data;}, function (err) {that.$dialog.message(err.msg);});}, toCash: function toCash() {this.$yrouter.push({ path: "/pages/user/promotion/UserCash/main" });} } };exports.default = _default;
var _default = { name: "UserPromotion", components: {}, props: {}, data: function data() {return { Info: { lastDayCount: 0, extractCount: 0, commissionCount: 0 } };}, mounted: function mounted() {this.getInfo();}, methods: { goPoster: function goPoster() {this.$yrouter.push("/pages/user/promotion/Poster/index");}, goCashRecord: function goCashRecord() {this.$yrouter.push("/pages/user/promotion/CashRecord/index");}, goPromoterList: function goPromoterList() {this.$yrouter.push("/pages/user/promotion/PromoterList/index");}, goCommissionDetails: function goCommissionDetails() {this.$yrouter.push("/pages/user/promotion/CommissionDetails/index");}, goPromoterOrder: function goPromoterOrder() {this.$yrouter.push("/pages/user/promotion/PromoterOrder/index");}, getInfo: function getInfo() {var that = this;(0, _user.getSpreadInfo)().then(function (res) {that.Info = res.data;}, function (err) {that.$dialog.message(err.msg);});
},
toCash: function toCash() {
this.$yrouter.push({ path: "/pages/user/promotion/UserCash/index" });
} } };exports.default = _default;
/***/ })

View File

@ -1 +1 @@
<view class="my-promotion _div"><view class="header _div"><view class="name acea-row row-center-wrapper _div"><view class="_div">当前佣金</view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="record _div" bindtap="__e">提现记录<label class="iconfont icon-xiangyou _span"></label></view></view><view class="num _div">{{Info.commissionCount}}</view><view class="profit acea-row row-between-wrapper _div"><view class="item _div"><view class="_div">昨日收益</view><view class="money _div">{{Info.lastDayCount}}</view></view><view class="item _div"><view class="_div">累积已提</view><view class="money _div">{{Info.extractCount}}</view></view></view></view><view data-event-opts="{{[['tap',[['toCash',['$event']]]]]}}" class="bnt bg-color-red _div" bindtap="__e">立即提现</view><view class="list acea-row row-between-wrapper _div"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="item acea-row row-center-wrapper row-column _div" bindtap="__e"><label class="iconfont icon-erweima _span"></label><view class="_div">推广名片</view></view><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="item acea-row row-center-wrapper row-column _div" bindtap="__e"><label class="iconfont icon-tongji _span"></label><view class="_div">推广人统计</view></view><view data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" class="item acea-row row-center-wrapper row-column _div" bindtap="__e"><label class="iconfont icon-qiandai _span"></label><view class="_div">佣金明细</view></view><view data-event-opts="{{[['tap',[['e4',['$event']]]]]}}" class="item acea-row row-center-wrapper row-column _div" bindtap="__e"><label class="iconfont icon-dingdan _span"></label><view class="_div">推广人订单</view></view></view></view>
<view class="my-promotion _div"><view class="header _div"><view class="name acea-row row-center-wrapper _div"><view class="_div">当前佣金</view><view data-event-opts="{{[['tap',[['goCashRecord']]]]}}" class="record _div" bindtap="__e">提现记录<label class="iconfont icon-xiangyou _span"></label></view></view><view class="num _div">{{Info.commissionCount}}</view><view class="profit acea-row row-between-wrapper _div"><view class="item _div"><view class="_div">昨日收益</view><view class="money _div">{{Info.lastDayCount}}</view></view><view class="item _div"><view class="_div">累积已提</view><view class="money _div">{{Info.extractCount}}</view></view></view></view><view data-event-opts="{{[['tap',[['toCash',['$event']]]]]}}" class="bnt bg-color-red _div" bindtap="__e">立即提现</view><view class="list acea-row row-between-wrapper _div"><view data-event-opts="{{[['tap',[['goPoster']]]]}}" class="item acea-row row-center-wrapper row-column _div" bindtap="__e"><label class="iconfont icon-erweima _span"></label><view class="_div">推广名片</view></view><view data-event-opts="{{[['tap',[['goPromoterList']]]]}}" class="item acea-row row-center-wrapper row-column _div" bindtap="__e"><label class="iconfont icon-tongji _span"></label><view class="_div">推广人统计</view></view><view data-event-opts="{{[['tap',[['goCommissionDetails']]]]}}" class="item acea-row row-center-wrapper row-column _div" bindtap="__e"><label class="iconfont icon-qiandai _span"></label><view class="_div">佣金明细</view></view><view data-event-opts="{{[['tap',[['goPromoterOrder']]]]}}" class="item acea-row row-center-wrapper row-column _div" bindtap="__e"><label class="iconfont icon-dingdan _span"></label><view class="_div">推广人订单</view></view></view></view>

View File

@ -204,6 +204,7 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
var _user = __webpack_require__(/*! @/api/user */ 19); //
@ -278,8 +279,11 @@ var _user = __webpack_require__(/*! @/api/user */ 19); //
//
//
//
//
var Loading = function Loading() {return __webpack_require__.e(/*! import() | components/Loading */ "components/Loading").then(__webpack_require__.bind(null, /*! @/components/Loading */ 494));};var DataFormat = function DataFormat() {return __webpack_require__.e(/*! import() | components/DataFormat */ "components/DataFormat").then(__webpack_require__.bind(null, /*! @/components/DataFormat */ 577));};var _default = { name: "Integral", components: { Loading: Loading, DataFormat: DataFormat }, props: {}, data: function data() {return { navList: [{ name: "分值明细", icon: "icon-mingxi" // { name: "分值提升", icon: "icon-tishengfenzhi" }
}], current: 0, where: { page: 1, limit: 15 }, data: { sign: 1, integral: 1, all: 1 }, list: [], info: [], loaded: false, loading: false };}, mounted: function mounted() {this.getIntegral();this.getInfo();}, onReachBottom: function onReachBottom() {!this.loading && this.getInfo();}, methods: { nav: function nav(index) {this.current = index;}, getInfo: function getInfo() {var that = this;if (that.loaded == true || that.loading == true) return;that.loading = true;(0, _user.getIntegralList)(that.where).then(function (res) {that.loading = false;that.loaded = res.data.length < that.where.limit;that.loadTitle = that.loaded ? "人家是有底线的" : "上拉加载更多";that.where.page = that.where.page + 1;that.list.push.apply(that.list, res.data);}, function (err) {that.$dialog.message(err.msg);});}, getIntegral: function getIntegral() {var that = this;(0, _user.postSignUser)(that.data).then(function (res) {that.info = res.data;}, function (err) {that.$dialog.message(err.msg);});} } };exports.default = _default;
}], current: 0, where: { page: 1, limit: 15 }, data: { sign: 1, integral: 1, all: 1 }, list: [], info: [], loaded: false, loading: false };}, mounted: function mounted() {this.getIntegral();this.getInfo();}, onReachBottom: function onReachBottom() {!this.loading && this.getInfo();}, methods: { goSignIn: function goSignIn() {this.$yrouter.push("/pages/user/signIn/Sign/index");}, goHome: function goHome() {this.$yrouter.switchTab("/pages/home/index");}, nav: function nav(index) {this.current = index;}, getInfo: function getInfo() {var that = this;if (that.loaded == true || that.loading == true) return;that.loading = true;(0, _user.getIntegralList)(that.where).then(function (res) {that.loading = false;that.loaded = res.data.length < that.where.limit;that.loadTitle = that.loaded ? "人家是有底线的" : "上拉加载更多";that.where.page = that.where.page + 1;that.list.push.apply(that.list, res.data);}, function (err) {that.$dialog.message(err.msg);});}, getIntegral: function getIntegral() {var that = this;(0, _user.postSignUser)(that.data).then(function (res) {that.info = res.data;}, function (err) {that.$dialog.message(err.msg);});
} } };exports.default = _default;
/***/ }),

View File

@ -1 +1 @@
<view data-ref="container" class="integral-details _div vue-ref"><view class="header _div"><view class="currentScore _div">当前积分</view><view class="_div">{{info.integral}}</view><view class="line _div"></view></view><view class="wrapper _div"><view class="nav acea-row _div"><block wx:for="{{navList}}" wx:for-item="item" wx:for-index="navListIndex" wx:key="navListIndex"><view data-event-opts="{{[['tap',[['nav',[navListIndex]]]]]}}" class="{{['item acea-row row-center-wrapper _div',current===navListIndex?'on':'']}}" bindtap="__e"><label class="{{['iconfont _span',item.icon]}}"></label>{{item.name+''}}</view></block></view><view class="list _div" hidden="{{current!==0}}"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="listIndex" wx:key="listIndex"><view class="item acea-row row-between-wrapper _div"><view class="_div"><view class="state _div">{{item.title}}</view><view class="_div"><data-format vue-id="{{'63e16316-1-'+listIndex}}" data="{{item.addTime}}" bind:__l="__l"></data-format></view></view><block wx:if="{{item.pm==1}}"><view class="num _div">{{"+"+item.number}}</view></block><block wx:if="{{item.pm==0}}"><view class="num font-color-red _div">{{'-'+item.number+''}}</view></block></view></block></view></view><loading vue-id="63e16316-2" loaded="{{loaded}}" loading="{{loading}}" bind:__l="__l"></loading></view>
<view data-ref="container" class="integral-details _div vue-ref"><view class="header _div"><view class="currentScore _div">当前积分</view><view class="_div">{{info.integral}}</view><view class="line _div"></view></view><view class="wrapper _div"><view class="nav acea-row _div"><block wx:for="{{navList}}" wx:for-item="item" wx:for-index="navListIndex" wx:key="navListIndex"><view data-event-opts="{{[['tap',[['nav',[navListIndex]]]]]}}" class="{{['item acea-row row-center-wrapper _div',current===navListIndex?'on':'']}}" bindtap="__e"><label class="{{['iconfont _span',item.icon]}}"></label>{{''+item.name+''}}</view></block></view><view class="list _div" hidden="{{current!==0}}"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="listIndex" wx:key="listIndex"><view class="item acea-row row-between-wrapper _div"><view class="_div"><view class="state _div">{{item.title}}</view><view class="_div"><data-format vue-id="{{'63e16316-1-'+listIndex}}" data="{{item.addTime}}" bind:__l="__l"></data-format></view></view><block wx:if="{{item.pm==1}}"><view class="num _div">{{"+"+item.number}}</view></block><block wx:if="{{item.pm==0}}"><view class="num font-color-red _div">{{"-"+item.number}}</view></block></view></block></view></view><loading vue-id="63e16316-2" loaded="{{loaded}}" loading="{{loading}}" bind:__l="__l"></loading></view>

View File

@ -1,4 +1,4 @@
.list{
}
.list {
}

View File

@ -100,15 +100,6 @@ var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
if (!_vm._isMounted) {
_vm.e0 = function($event) {
return _vm.$yrouter.push("/pages/user/signIn/SignRecord/index")
}
_vm.e1 = function($event) {
return _vm.$yrouter.push("/pages/user/signIn/SignRecord/index")
}
}
}
var recyclableRender = false
var staticRenderFns = []
@ -244,9 +235,6 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
@ -362,10 +350,7 @@ var _bc = __webpack_require__(/*! @/utils/bc */ 105); //
//
//
//
//
//
//
var _default = { name: "Sign", components: {}, props: {}, data: function data() {return { userInfo: {}, integral: 0, signCount: [], sign_index: 0, signSystemList: [], signList: [], page: 1, limit: 3, active: false, day: "" };}, mounted: function mounted() {this.signUser();this.signConfig();this.getSignList();}, methods: { // js给数字补0num需要补0的数字length长度补到多少位
var _default = { name: "Sign", components: {}, props: {}, data: function data() {return { userInfo: {}, integral: 0, signCount: [], sign_index: 0, signSystemList: [], signList: [], page: 1, limit: 3, active: false, day: "" };}, mounted: function mounted() {this.signUser();this.signConfig();this.getSignList();}, methods: { goSignRecord: function goSignRecord() {this.$yrouter.push("/pages/user/signIn/SignRecord/index");}, // js给数字补0num需要补0的数字length长度补到多少位
PrefixInteger: function PrefixInteger(num, length) {return (Array(length).join("0") + num).slice(-length).split("");}, //数字转中文
Rp: function Rp(n) {var cnum = ["零", "一", "二", "三", "四", "五", "六", "七", "八", "九"];var s = "";n = "" + n; // 数字转为字符串
for (var i = 0; i < n.length; i++) {s += cnum[parseInt(n.charAt(i))];}return s;}, // 获取用户信息

View File

@ -1 +1 @@
<view class="sign _div data-v-7363eabf"><view class="header bg-color-red _div data-v-7363eabf"><view class="headerCon acea-row row-between-wrapper _div data-v-7363eabf"><view class="left acea-row row-between-wrapper _div data-v-7363eabf"><view class="pictrue _div data-v-7363eabf"><image src="{{userInfo.avatar}}" class="_img data-v-7363eabf"></image></view><view class="text _div data-v-7363eabf"><view class="line1 _div data-v-7363eabf">{{userInfo.nickname}}</view><view class="integral acea-row _div data-v-7363eabf"><label class="_span data-v-7363eabf">{{"积分: "+userInfo.integral}}</label></view></view></view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="right acea-row row-middle _div data-v-7363eabf" bindtap="__e"><view class="iconfont icon-caidan _div data-v-7363eabf"></view><view class="_div data-v-7363eabf">明细</view></view></view></view><view class="wrapper _div data-v-7363eabf"><view class="list acea-row row-between-wrapper _div data-v-7363eabf"><block wx:for="{{signSystemList}}" wx:for-item="item" wx:for-index="signSystemListIndex" wx:key="signSystemListIndex"><view class="item _div data-v-7363eabf"><view class="{{['_div data-v-7363eabf',signSystemListIndex+1===signSystemList.length?'rewardTxt':'']}}">{{item.day}}</view><view class="{{['venus _div data-v-7363eabf',(signSystemListIndex+1===signSystemList.length?'reward':'')+' '+(sign_index>=signSystemListIndex+1?'venusSelect':'')]}}"></view><view class="{{['num _div data-v-7363eabf',sign_index>=signSystemListIndex+1?'on':'']}}">{{"+"+item.signNum}}</view></view></block></view><view data-event-opts="{{[['tap',[['goSign',['$event']]]]]}}" class="{{['but bg-color-red _div data-v-7363eabf',userInfo.is_day_sgin?'on':'']}}" bindtap="__e">{{userInfo.isDaySign?"已签到":"立即签到"}}</view><view class="lock _div data-v-7363eabf"></view></view><view class="wrapper wrapper2 _div data-v-7363eabf"><view class="tip _div data-v-7363eabf">已累计签到</view><view class="list2 acea-row row-center row-bottom _div data-v-7363eabf"><block wx:for="{{signCount}}" wx:for-item="item" wx:for-index="signCountIndex" wx:key="signCountIndex"><view class="item _div data-v-7363eabf">{{item||0}}</view></block><view class="data _div data-v-7363eabf">天</view></view><view class="tip2 _div data-v-7363eabf">{{"据说连续签到第"+day+"天可获得超额积分,一定要坚持签到哦~~~"}}</view><view class="list3 _div data-v-7363eabf"><block wx:for="{{signList}}" wx:for-item="item" wx:for-index="signListIndex" wx:key="signListIndex"><view class="item acea-row row-between-wrapper _div data-v-7363eabf"><view class="_div data-v-7363eabf"><view class="name line1 _div data-v-7363eabf">{{item.title}}</view><view class="data _div data-v-7363eabf">{{item.addTime}}</view></view><view class="num font-color-red _div data-v-7363eabf">{{"+"+item.number}}</view></view></block><block wx:if="{{signList.length>0}}"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="Loads acea-row row-center-wrapper _div data-v-7363eabf" bindtap="__e">点击加载更多<view class="iconfont icon-xiangyou acea-row row-center-wrapper _div data-v-7363eabf"></view></view></block></view></view><view class="{{['signTip acea-row row-center-wrapper _div data-v-7363eabf',active===true?'on':'']}}"><view class="signTipLight loadingpic _div data-v-7363eabf"><image src="{{$VUE_APP_RESOURCES_URL+'/images/light.png'}}" class="_img data-v-7363eabf"></image></view><view class="signTipCon _div data-v-7363eabf"><view class="state _div data-v-7363eabf">签到成功</view><view class="integral _div data-v-7363eabf">{{"获得"+integral+"积分"}}</view><view data-event-opts="{{[['tap',[['close',['$event']]]]]}}" class="signTipBnt _div data-v-7363eabf" bindtap="__e">好的</view></view></view><view class="mask _div data-v-7363eabf" hidden="{{active===false}}" data-event-opts="{{[['touchmove',[['',['$event']]]]]}}" bindtouchmove="__e"></view></view>
<view class="sign _div data-v-7363eabf"><view class="header bg-color-red _div data-v-7363eabf"><view class="headerCon acea-row row-between-wrapper _div data-v-7363eabf"><view class="left acea-row row-between-wrapper _div data-v-7363eabf"><view class="pictrue _div data-v-7363eabf"><image src="{{userInfo.avatar}}" class="_img data-v-7363eabf"></image></view><view class="text _div data-v-7363eabf"><view class="line1 _div data-v-7363eabf">{{userInfo.nickname}}</view><view class="integral acea-row _div data-v-7363eabf"><label class="_span data-v-7363eabf">{{"积分: "+userInfo.integral}}</label></view></view></view><view data-event-opts="{{[['tap',[['goSignRecord']]]]}}" class="right acea-row row-middle _div data-v-7363eabf" bindtap="__e"><view class="iconfont icon-caidan _div data-v-7363eabf"></view><view class="_div data-v-7363eabf">明细</view></view></view></view><view class="wrapper _div data-v-7363eabf"><view class="list acea-row row-between-wrapper _div data-v-7363eabf"><block wx:for="{{signSystemList}}" wx:for-item="item" wx:for-index="signSystemListIndex" wx:key="signSystemListIndex"><view class="item _div data-v-7363eabf"><view class="{{['_div data-v-7363eabf',signSystemListIndex+1===signSystemList.length?'rewardTxt':'']}}">{{item.day}}</view><view class="{{['venus _div data-v-7363eabf',(signSystemListIndex+1===signSystemList.length?'reward':'')+' '+(sign_index>=signSystemListIndex+1?'venusSelect':'')]}}"></view><view class="{{['num _div data-v-7363eabf',sign_index>=signSystemListIndex+1?'on':'']}}">{{"+"+item.signNum}}</view></view></block></view><view data-event-opts="{{[['tap',[['goSign',['$event']]]]]}}" class="{{['but bg-color-red _div data-v-7363eabf',userInfo.is_day_sgin?'on':'']}}" bindtap="__e">{{userInfo.isDaySign?"已签到":"立即签到"}}</view><view class="lock _div data-v-7363eabf"></view></view><view class="wrapper wrapper2 _div data-v-7363eabf"><view class="tip _div data-v-7363eabf">已累计签到</view><view class="list2 acea-row row-center row-bottom _div data-v-7363eabf"><block wx:for="{{signCount}}" wx:for-item="item" wx:for-index="signCountIndex" wx:key="signCountIndex"><view class="item _div data-v-7363eabf">{{item||0}}</view></block><view class="data _div data-v-7363eabf">天</view></view><view class="tip2 _div data-v-7363eabf">{{"据说连续签到第"+day+"天可获得超额积分,一定要坚持签到哦~~~"}}</view><view class="list3 _div data-v-7363eabf"><block wx:for="{{signList}}" wx:for-item="item" wx:for-index="signListIndex" wx:key="signListIndex"><view class="item acea-row row-between-wrapper _div data-v-7363eabf"><view class="_div data-v-7363eabf"><view class="name line1 _div data-v-7363eabf">{{item.title}}</view><view class="data _div data-v-7363eabf">{{item.addTime}}</view></view><view class="num font-color-red _div data-v-7363eabf">{{"+"+item.number}}</view></view></block><block wx:if="{{signList.length>0}}"><view data-event-opts="{{[['tap',[['goSignRecord']]]]}}" class="Loads acea-row row-center-wrapper _div data-v-7363eabf" bindtap="__e">点击加载更多<view class="iconfont icon-xiangyou acea-row row-center-wrapper _div data-v-7363eabf"></view></view></block></view></view><view class="{{['signTip acea-row row-center-wrapper _div data-v-7363eabf',active===true?'on':'']}}"><view class="signTipLight loadingpic _div data-v-7363eabf"><image src="{{$VUE_APP_RESOURCES_URL+'/images/light.png'}}" class="_img data-v-7363eabf"></image></view><view class="signTipCon _div data-v-7363eabf"><view class="state _div data-v-7363eabf">签到成功</view><view class="integral _div data-v-7363eabf">{{"获得"+integral+"积分"}}</view><view data-event-opts="{{[['tap',[['close',['$event']]]]]}}" class="signTipBnt _div data-v-7363eabf" bindtap="__e">好的</view></view></view><view class="mask _div data-v-7363eabf" hidden="{{active===false}}" data-event-opts="{{[['touchmove',[['',['$event']]]]]}}" bindtouchmove="__e"></view></view>