init
This commit is contained in:
commit
34c283677a
13
@babel/runtime/helpers/Objectvalues.js
Normal file
13
@babel/runtime/helpers/Objectvalues.js
Normal file
@ -0,0 +1,13 @@
|
||||
if (!Object.values) {
|
||||
Object.values = function(obj) {
|
||||
if (obj !== Object(obj)) throw new TypeError("Object.values called on a non-object");
|
||||
var val = [];
|
||||
var key;
|
||||
for (key in obj) {
|
||||
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
||||
val.push(obj[key]);
|
||||
}
|
||||
}
|
||||
return val;
|
||||
};
|
||||
}
|
10
@babel/runtime/helpers/arrayWithoutHoles.js
Normal file
10
@babel/runtime/helpers/arrayWithoutHoles.js
Normal file
@ -0,0 +1,10 @@
|
||||
function _arrayWithoutHoles(arr) {
|
||||
if (Array.isArray(arr)) {
|
||||
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
|
||||
arr2[i] = arr[i];
|
||||
}
|
||||
return arr2;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = _arrayWithoutHoles;
|
15
@babel/runtime/helpers/defineProperty.js
Normal file
15
@babel/runtime/helpers/defineProperty.js
Normal file
@ -0,0 +1,15 @@
|
||||
function _defineProperty(obj, key, value) {
|
||||
if (key in obj) {
|
||||
Object.defineProperty(obj, key, {
|
||||
value: value,
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
writable: true
|
||||
});
|
||||
} else {
|
||||
obj[key] = value;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
module.exports = _defineProperty;
|
7
@babel/runtime/helpers/interopRequireDefault.js
Normal file
7
@babel/runtime/helpers/interopRequireDefault.js
Normal file
@ -0,0 +1,7 @@
|
||||
function _interopRequireDefault(obj) {
|
||||
return obj && obj.__esModule ? obj : {
|
||||
default: obj
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = _interopRequireDefault;
|
5
@babel/runtime/helpers/iterableToArray.js
Normal file
5
@babel/runtime/helpers/iterableToArray.js
Normal file
@ -0,0 +1,5 @@
|
||||
function _iterableToArray(iter) {
|
||||
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
||||
}
|
||||
|
||||
module.exports = _iterableToArray;
|
5
@babel/runtime/helpers/nonIterableSpread.js
Normal file
5
@babel/runtime/helpers/nonIterableSpread.js
Normal file
@ -0,0 +1,5 @@
|
||||
function _nonIterableSpread() {
|
||||
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
||||
}
|
||||
|
||||
module.exports = _nonIterableSpread;
|
13
@babel/runtime/helpers/objectWithoutProperties.js
Normal file
13
@babel/runtime/helpers/objectWithoutProperties.js
Normal file
@ -0,0 +1,13 @@
|
||||
var objectWithoutPropertiesLoose = require("./objectWithoutPropertiesLoose");
|
||||
|
||||
function _objectWithoutProperties(e, t) {
|
||||
if (null == e) return {};
|
||||
var o, r, i = objectWithoutPropertiesLoose(e, t);
|
||||
if (Object.getOwnPropertySymbols) {
|
||||
var p = Object.getOwnPropertySymbols(e);
|
||||
for (r = 0; r < p.length; r++) o = p[r], 0 <= t.indexOf(o) || Object.prototype.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
module.exports = _objectWithoutProperties;
|
14
@babel/runtime/helpers/objectWithoutPropertiesLoose.js
Normal file
14
@babel/runtime/helpers/objectWithoutPropertiesLoose.js
Normal file
@ -0,0 +1,14 @@
|
||||
function _objectWithoutPropertiesLoose(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = {};
|
||||
var sourceKeys = Object.keys(source);
|
||||
var key, i;
|
||||
for (i = 0; i < sourceKeys.length; i++) {
|
||||
key = sourceKeys[i];
|
||||
if (excluded.indexOf(key) >= 0) continue;
|
||||
target[key] = source[key];
|
||||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
module.exports = _objectWithoutPropertiesLoose;
|
11
@babel/runtime/helpers/toConsumableArray.js
Normal file
11
@babel/runtime/helpers/toConsumableArray.js
Normal file
@ -0,0 +1,11 @@
|
||||
var arrayWithoutHoles = require("./arrayWithoutHoles");
|
||||
|
||||
var iterableToArray = require("./iterableToArray");
|
||||
|
||||
var nonIterableSpread = require("./nonIterableSpread");
|
||||
|
||||
function _toConsumableArray(arr) {
|
||||
return arrayWithoutHoles(arr) || iterableToArray(arr) || nonIterableSpread();
|
||||
}
|
||||
|
||||
module.exports = _toConsumableArray;
|
17
@babel/runtime/helpers/typeof.js
Normal file
17
@babel/runtime/helpers/typeof.js
Normal file
@ -0,0 +1,17 @@
|
||||
function _typeof2(o) {
|
||||
return (_typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
||||
return typeof o;
|
||||
} : function(o) {
|
||||
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
||||
})(o);
|
||||
}
|
||||
|
||||
function _typeof(o) {
|
||||
return "function" == typeof Symbol && "symbol" === _typeof2(Symbol.iterator) ? module.exports = _typeof = function(o) {
|
||||
return _typeof2(o);
|
||||
} : module.exports = _typeof = function(o) {
|
||||
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : _typeof2(o);
|
||||
}, _typeof(o);
|
||||
}
|
||||
|
||||
module.exports = _typeof;
|
196
app.js
Normal file
196
app.js
Normal file
@ -0,0 +1,196 @@
|
||||
var e = require("@babel/runtime/helpers/interopRequireDefault")(require("@babel/runtime/helpers/typeof")), t = require("utils/core.js");
|
||||
|
||||
App({
|
||||
onShow: function(i) {
|
||||
var r = this;
|
||||
1007 != i.scene && 1008 != i.scene && 1044 != i.scene || void 0 !== a && a.getShareParams().then(function(a) {
|
||||
var i = r.getCache("usermid");
|
||||
if ("object" != (0, e.default)(i) && null != i && "" != i) {
|
||||
var n = {};
|
||||
n.mid = a.custom_params, r.url(n), r.setCache("usermid", n), wx.setStorageSync("livemid", a.custom_params);
|
||||
}
|
||||
"object" == (0, e.default)(i) && "" != a.custom_params && null != a.custom_params && (i.mid = a.custom_params,
|
||||
r.url(i), r.setCache("usermid", i), wx.setStorageSync("livemid", a.custom_params)),
|
||||
"" != i && null != i || ((i = {}).mid = 0);
|
||||
var o = r;
|
||||
if (i.mid < 1) {
|
||||
var s = a.share_openid;
|
||||
t.post("member/get_member", {
|
||||
shar_openid: s
|
||||
}, function(e) {
|
||||
i.mid = e.member.id, o.setCache("usermid", i);
|
||||
}, !0, !0);
|
||||
}
|
||||
}).catch(function(e) {
|
||||
console.log("get share params", e);
|
||||
});
|
||||
var n = this;
|
||||
this.onLaunch();
|
||||
try {
|
||||
"" != this.getCache("userinfo_id") && t.get("member", {}, function(e) {
|
||||
n.setCache("userinfo_id", e.id);
|
||||
});
|
||||
} catch (e) {}
|
||||
},
|
||||
onLaunch: function() {
|
||||
var e = this;
|
||||
wx.getSystemInfo({
|
||||
success: function(t) {
|
||||
"0" == t.model.indexOf("iPhone X") ? e.setCache("isIpx", t.model) : e.setCache("isIpx", "");
|
||||
}
|
||||
});
|
||||
var t = this;
|
||||
wx.getSystemInfo({
|
||||
success: function(e) {
|
||||
wx.setStorageSync("systemInfo", e);
|
||||
var a = e.windowWidth, i = e.windowHeight;
|
||||
t.globalData.ww = a, t.globalData.hh = i;
|
||||
}
|
||||
}), setTimeout(function() {
|
||||
t.scanCarts();
|
||||
}, 50);
|
||||
},
|
||||
scanCarts: function() {
|
||||
var e = this;
|
||||
t.get("member/cart/get_cart", {}, function(t) {
|
||||
if (e.getCache("userinfo_openid")) {
|
||||
var a = 0, i = t.merch_list;
|
||||
if (void 0 === i) {
|
||||
i = t.list;
|
||||
for (var r = 0; r < i.length; r++) a += parseInt(i[r].total);
|
||||
} else if (null != i) for (var n = 0; n < i.length; n++) for (var o = i[n].list, s = 0; s < o.length; s++) a += parseInt(o[s].total);
|
||||
var c = e.globalData.tabnum;
|
||||
0 != a && "" != c ? wx.setTabBarBadge({
|
||||
index: c,
|
||||
text: "" + a
|
||||
}) : wx.removeTabBarBadge({
|
||||
index: c
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
checkAuth: function(e, a) {
|
||||
var i = "/pages/auth/index", r = getCurrentPages(), n = r[r.length - 1];
|
||||
if (console.log(n), "pages/auth/index" == n.route || "/pages/auth/index" == n.route) return !0;
|
||||
var o = {
|
||||
params: n.options || null,
|
||||
url: n.route
|
||||
};
|
||||
if (o.params.hasOwnProperty("scene")) {
|
||||
var s = {}, c = decodeURIComponent(o.params.scene).split("&").shift().split("=");
|
||||
s.id = c[1], o.params = s;
|
||||
}
|
||||
this.setCache("routeData", o);
|
||||
var u = this.getCache("userinfo");
|
||||
u && "1" != a ? t.get("member", {}, function(e) {
|
||||
e.error && wx.navigateTo({
|
||||
url: i
|
||||
});
|
||||
}) : u || "1" != a || wx.navigateTo({
|
||||
url: i
|
||||
}), e && e();
|
||||
},
|
||||
requirejs: function(e) {
|
||||
return require("utils/" + e + ".js");
|
||||
},
|
||||
getConfig: function() {
|
||||
if (null !== this.globalData.api) return {
|
||||
api: this.globalData.api,
|
||||
approot: this.globalData.approot,
|
||||
appid: this.globalData.appid
|
||||
};
|
||||
var e = wx.getExtConfigSync();
|
||||
return this.globalData.api = e.config.api, this.globalData.approot = e.config.approot,
|
||||
this.globalData.appid = e.config.appid, e.config;
|
||||
},
|
||||
getCache: function(e, t) {
|
||||
var a = +new Date() / 1e3, i = "";
|
||||
a = parseInt(a);
|
||||
try {
|
||||
(i = wx.getStorageSync(e + this.globalData.appid)).expire > a || 0 == i.expire ? i = i.value : (i = "",
|
||||
this.removeCache(e));
|
||||
} catch (e) {
|
||||
i = void 0 === t ? "" : t;
|
||||
}
|
||||
return i = i || "";
|
||||
},
|
||||
setCache: function(e, t, a) {
|
||||
var i = +new Date() / 1e3, r = !0, n = {
|
||||
expire: a ? i + parseInt(a) : 0,
|
||||
value: t
|
||||
};
|
||||
try {
|
||||
wx.setStorageSync(e + this.globalData.appid, n);
|
||||
} catch (e) {
|
||||
r = !1;
|
||||
}
|
||||
return r;
|
||||
},
|
||||
removeCache: function(e) {
|
||||
var t = !0;
|
||||
try {
|
||||
wx.removeStorageSync(e + this.globalData.appid);
|
||||
} catch (e) {
|
||||
t = !1;
|
||||
}
|
||||
return t;
|
||||
},
|
||||
close: function() {
|
||||
this.globalDataClose.flag = !0, wx.reLaunch({
|
||||
url: "/pages/index/index"
|
||||
});
|
||||
},
|
||||
getSet: function() {
|
||||
var e = this;
|
||||
"" == e.getCache("cacheset") && setTimeout(function() {
|
||||
var a = e.getCache("cacheset");
|
||||
t.get("cacheset", {
|
||||
version: a.version
|
||||
}, function(t) {
|
||||
t.update && e.setCache("cacheset", t.data);
|
||||
});
|
||||
}, 10);
|
||||
},
|
||||
url: function(e) {
|
||||
e = e || {};
|
||||
var t, a, i = {}, r = this.getCache("usermid");
|
||||
t = e.mid || "", a = e.merchid || "";
|
||||
var n = e.mid || r.mid || "";
|
||||
for (var o in r) void 0 !== r[o] && (i[o] = r[o]);
|
||||
i.mid = "number" == typeof t && t > 0 ? t : r.mid, i.mid = t, "" != r ? ("" != r.merchid && void 0 !== r.merchid || (i.merchid = a),
|
||||
i.mid = n) : (i.mid = n, i.merchid = a), this.setCache("usermid", i);
|
||||
},
|
||||
impower: function(e, t, a) {
|
||||
wx.getSetting({
|
||||
success: function(i) {
|
||||
i.authSetting["scope." + e] || wx.showModal({
|
||||
title: "用户未授权",
|
||||
content: "您点击了拒绝授权,暂时无法" + t + ",点击去设置可重新获取授权喔~",
|
||||
confirmText: "去设置",
|
||||
success: function(e) {
|
||||
e.confirm ? wx.openSetting({
|
||||
success: function(e) {}
|
||||
}) : "route" == a ? wx.switchTab({
|
||||
url: "/pages/index/index"
|
||||
}) : "details" == a || wx.navigateTo({
|
||||
url: "/pages/index/index"
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
globalDataClose: {
|
||||
flag: !1
|
||||
},
|
||||
globalData: {
|
||||
appid: "wxcef6b3319f9c3b5e",
|
||||
api: "http://we2.cnp5.cn/app/ewei_shopv2_api.php?i=1",
|
||||
approot: "http://we2.cnp5.cn/addons/ewei_shopv2/",
|
||||
|
||||
userInfo: null,
|
||||
isgoods: false,
|
||||
tabnum: 2
|
||||
}
|
||||
});
|
||||
// 播播资源网 www.ttbobo.com
|
198
app.json
Normal file
198
app.json
Normal file
@ -0,0 +1,198 @@
|
||||
{
|
||||
"pages": [
|
||||
"pages/index/index",
|
||||
"pages/custom/index",
|
||||
"pages/creditshop/detail/index",
|
||||
"pages/creditshop/comment/index",
|
||||
"pages/creditshop/express/index",
|
||||
"pages/shop/notice/index/index",
|
||||
"pages/shop/notice/detail/detail",
|
||||
"pages/shop/caregory/index",
|
||||
"pages/goods/index/index",
|
||||
"pages/goods/region/index",
|
||||
"pages/goods/detail/index",
|
||||
"pages/goods/package/index",
|
||||
"pages/goods/package/detail/index",
|
||||
"pages/goods/poster/poster",
|
||||
"pages/order/index",
|
||||
"pages/order/detail/index",
|
||||
"pages/order/express/index",
|
||||
"pages/order/comment/index",
|
||||
"pages/order/refund/index",
|
||||
"pages/order/singlerefund/index",
|
||||
"pages/order/create/index",
|
||||
"pages/order/store/index",
|
||||
"pages/order/store/map",
|
||||
"pages/order/pay/index",
|
||||
"pages/member/index/index",
|
||||
"pages/member/info/index",
|
||||
"pages/member/bind/index",
|
||||
"pages/member/favorite/index",
|
||||
"pages/member/history/index",
|
||||
"pages/member/withdraw/index",
|
||||
"pages/member/log/index",
|
||||
"pages/member/address/index",
|
||||
"pages/member/address/post",
|
||||
"pages/member/address/select",
|
||||
"pages/member/cart/index",
|
||||
"pages/member/middlejump/middlejump",
|
||||
"pages/verifygoods/index",
|
||||
"pages/verifygoods/detail/index",
|
||||
"pages/sale/coupon/index/index",
|
||||
"pages/sale/coupon/detail/index",
|
||||
"pages/sale/coupon/my/detail/index",
|
||||
"pages/sale/coupon/my/index/index",
|
||||
"pages/sale/coupon/my/showcoupons2/index",
|
||||
"pages/sale/coupon/my/list/index",
|
||||
"pages/public/coupon/index",
|
||||
"pages/message/auth/index",
|
||||
"pages/web/index",
|
||||
"pages/map/index",
|
||||
"pages/order/pay/share/share",
|
||||
"pages/order/pay/coupons/coupons",
|
||||
"pages/creditshop/log/index",
|
||||
"pages/creditshop/log/detail/index",
|
||||
"pages/creditshop/lists/index",
|
||||
"pages/creditshop/creditlog/index",
|
||||
"pages/creditshop/create/index",
|
||||
"pages/creditshop/verify/index",
|
||||
"pages/creditshop/index",
|
||||
"pages/order/cycle/index",
|
||||
"pages/order/cycle/address",
|
||||
"pages/order/cycle/order",
|
||||
"pages/order/express/number",
|
||||
"pages/member/membercard/index",
|
||||
"pages/member/membercard/detail/index",
|
||||
"pages/member/membercard/pay/index",
|
||||
"pages/transfer/groups/index",
|
||||
"pages/transfer/bargain/index",
|
||||
"pages/transfer/seckill/index",
|
||||
"pages/quickbuy/index",
|
||||
"friendcoupon/index",
|
||||
"pages/transfer/commission/index",
|
||||
"pages/auth/index",
|
||||
"pages/order/waitpay/index",
|
||||
"pages/quickbuy/5"
|
||||
],
|
||||
"window": {
|
||||
"backgroundColor": "#fafafa",
|
||||
"backgroundTextStyle": "light",
|
||||
"navigationBarBackgroundColor": "#fff",
|
||||
"navigationBarTextStyle": "black"
|
||||
},
|
||||
"tabBar": {
|
||||
"color": "#999999",
|
||||
"selectedColor": "#ff5555",
|
||||
"borderStyle": "white",
|
||||
"backgroundColor": "#f7f7fa",
|
||||
"list": [
|
||||
{
|
||||
"pagePath": "pages/index/index",
|
||||
"text": "首页",
|
||||
"iconPath": "static/images/tabbar/icon-1.png",
|
||||
"selectedIconPath": "static/images/tabbar/icon-1-active.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/shop/caregory/index",
|
||||
"text": "全部分类",
|
||||
"iconPath": "static/images/tabbar/icon-2.png",
|
||||
"selectedIconPath": "static/images/tabbar/icon-2-active.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/member/cart/index",
|
||||
"text": "购物车",
|
||||
"iconPath": "static/images/tabbar/icon-4.png",
|
||||
"selectedIconPath": "static/images/tabbar/icon-4-active.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/member/index/index",
|
||||
"text": "会员中心",
|
||||
"iconPath": "static/images/tabbar/icon-5.png",
|
||||
"selectedIconPath": "static/images/tabbar/icon-5-active.png"
|
||||
}
|
||||
]
|
||||
},
|
||||
"subPackages": [
|
||||
{
|
||||
"root": "bargain/",
|
||||
"pages": [
|
||||
"index/index",
|
||||
"detail/detail",
|
||||
"rule/rule",
|
||||
"act/act",
|
||||
"bargain/bargain",
|
||||
"purchase/purchase"
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "commission/",
|
||||
"pages": [
|
||||
"pages/poster/index",
|
||||
"pages/qrcode/index",
|
||||
"pages/index",
|
||||
"pages/log/index",
|
||||
"pages/log/detail",
|
||||
"pages/down/index",
|
||||
"pages/apply/index",
|
||||
"pages/withdraw/index",
|
||||
"pages/order/index",
|
||||
"pages/register/index",
|
||||
"pages/return/index"
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "seckill/",
|
||||
"pages": [
|
||||
"pages/index/index"
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "dividend/",
|
||||
"pages": [
|
||||
"pages/index/index",
|
||||
"pages/down/index",
|
||||
"pages/withdraw/index",
|
||||
"pages/order/index",
|
||||
"pages/log/index",
|
||||
"pages/log/detail/index",
|
||||
"pages/apply/index",
|
||||
"pages/register/index"
|
||||
]
|
||||
|
||||
},
|
||||
|
||||
{
|
||||
"root": "groups/",
|
||||
"pages": [
|
||||
"index/index",
|
||||
"category/index",
|
||||
"mygroups/index",
|
||||
"goods/index",
|
||||
"order/index",
|
||||
"confirm/index",
|
||||
"rules/index",
|
||||
"groups_detail/index",
|
||||
"join/index",
|
||||
"jointeam/index",
|
||||
"order_detail/index",
|
||||
"pay/index",
|
||||
"refund/index",
|
||||
"express/index",
|
||||
"express/number"
|
||||
]
|
||||
}
|
||||
],
|
||||
"permission": {
|
||||
"scope.userLocation": {
|
||||
"desc": "你的位置信息将用于小程序位置接口的效果展示"
|
||||
}
|
||||
},
|
||||
"requiredPrivateInfos": [
|
||||
"getLocation",
|
||||
|
||||
"chooseAddress"
|
||||
],
|
||||
"navigateToMiniProgramAppIdList": [],
|
||||
"debug": false,
|
||||
"sitemapLocation": "sitemap.json"
|
||||
}
|
25
bargain/act/act.js
Normal file
25
bargain/act/act.js
Normal file
@ -0,0 +1,25 @@
|
||||
var a = getApp(), e = a.requirejs("core");
|
||||
|
||||
a.requirejs("jquery"), a.requirejs("foxui");
|
||||
|
||||
Page({
|
||||
data: {
|
||||
goods: {},
|
||||
mid: ""
|
||||
},
|
||||
onLoad: function(i) {
|
||||
var t = this;
|
||||
e.get("bargain/act", i, function(a) {
|
||||
t.setData({
|
||||
goods: a.goods,
|
||||
mid: a.mid
|
||||
});
|
||||
}), a.getCache("isIpx") ? t.setData({
|
||||
isIpx: !0,
|
||||
iphonexnavbar: "fui-iphonex-navbar"
|
||||
}) : t.setData({
|
||||
isIpx: !1,
|
||||
iphonexnavbar: ""
|
||||
});
|
||||
}
|
||||
});
|
6
bargain/act/act.json
Normal file
6
bargain/act/act.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationBarBackgroundColor": "#ffffff",
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "砍价中",
|
||||
"usingComponents": {}
|
||||
}
|
52
bargain/act/act.wxml
Normal file
52
bargain/act/act.wxml
Normal file
@ -0,0 +1,52 @@
|
||||
<view class="page navbar">
|
||||
<view class="fui-goods-group" wx:if="{{goods}}">
|
||||
<navigator class="fui-goods-item" hoverClass="none" openType="navigate" url="../bargain/bargain?id={{item[0]['actor_id']}}&mid={{mid}}" wx:for="{{goods}}" wx:key="item">
|
||||
<view class="image" style="background-image:url({{item[0]['thumb']}})"></view>
|
||||
<view class="detail goods_list_detail">
|
||||
<view class="name">{{item[0]['title']}}</view>
|
||||
<view wx:if="{{item[0]['type']==0}}">
|
||||
<view class="status success" wx:if="{{item[0]['label_swi']==0}}">进行中</view>
|
||||
<view class="status default" wx:if="{{item[0]['label_swi']==1}}">已超时</view>
|
||||
<view class="status default" wx:if="{{item[0]['label_swi']==2}}">已结束</view>
|
||||
<view class="status danger" wx:if="{{item[0]['label_swi']==3}}">已到底价</view>
|
||||
</view>
|
||||
<view wx:if="{{item[0]['type']==1}}">
|
||||
<view class="status success" wx:if="{{item[0]['label_swi']==0}}">进行中</view>
|
||||
<view class="status default" wx:if="{{item[0]['label_swi']==1}}">已超时</view>
|
||||
<view class="status default" wx:if="{{item[0]['label_swi']==2}}">已结束</view>
|
||||
<view class="status danger" wx:if="{{item[0]['label_swi']==3}}">已到底价</view>
|
||||
</view>
|
||||
<view class="price">
|
||||
<view class="text original">原价:¥{{item[0]['start_price']}}</view>
|
||||
</view>
|
||||
<view class="currentPrice">
|
||||
当前价:¥{{item[0]['now_price']}}
|
||||
<text class="floorPrice"></text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-goods-remark icox icox-qianjin-copy"></view>
|
||||
</navigator>
|
||||
</view>
|
||||
<view class="empty" wx:if="{{!goods}}">
|
||||
<view>暂无砍价中商品</view>
|
||||
</view>
|
||||
<view class="fui-navbar footer-nav {{iphonexnavbar}}">
|
||||
<navigator class="nav-item" hoverClass="none" openType="switchTab" url="/pages/index/index">
|
||||
<span class="icox icox-shouye1"></span>
|
||||
<span class="label">商城首页</span>
|
||||
</navigator>
|
||||
<navigator class="nav-item" hoverClass="none" openType="redirect" url="../index/index">
|
||||
<span class="icox icox-quanbukanjia"></span>
|
||||
<span class="label">全部砍价</span>
|
||||
</navigator>
|
||||
<navigator class="nav-item active" hoverClass="none" openType="redirect" url="../act/act">
|
||||
<span class="icox icox-kanjiazhong"></span>
|
||||
<span class="label">砍价中</span>
|
||||
</navigator>
|
||||
<navigator class="nav-item" hoverClass="none" openType="redirect" url="../purchase/purchase">
|
||||
<span class="icox icox-yigoumai"></span>
|
||||
<span class="label">已购买</span>
|
||||
</navigator>
|
||||
</view>
|
||||
<view class="{{isIpx?'fui-iphonex-button':''}}"></view>
|
||||
</view>
|
117
bargain/act/act.wxss
Normal file
117
bargain/act/act.wxss
Normal file
@ -0,0 +1,117 @@
|
||||
.fui-goods-item .detail.goods_list_detail {
|
||||
padding-right: 30rpx;
|
||||
}
|
||||
|
||||
.fui-goods-item .detail.goods_list_detail .name {
|
||||
height: 46rpx;
|
||||
line-height: 46rpx;
|
||||
-webkit-line-clamp: 1;
|
||||
}
|
||||
|
||||
.fui-goods-item .detail.goods_list_detail .status {
|
||||
font-size: 20rpx;
|
||||
height: 30rpx;
|
||||
line-height: 30rpx;
|
||||
background: #999;
|
||||
display: inline-block;
|
||||
width: 98rpx;
|
||||
text-align: center;
|
||||
border-radius: 20rpx;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.fui-goods-item .detail.goods_list_detail .status.success {
|
||||
background: #3fce0d;
|
||||
}
|
||||
|
||||
.fui-goods-item .detail.goods_list_detail .status.danger {
|
||||
background: #ff5555;
|
||||
}
|
||||
|
||||
.fui-goods-item .detail .price {
|
||||
margin-top: 0;
|
||||
height: 46rpx;
|
||||
line-height: 46rpx;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
|
||||
.fui-goods-item .detail .price .text {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.fui-goods-item .detail .price .text.original {
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
.fui-goods-item .detail .currentPrice {
|
||||
height: 40rpx;
|
||||
line-height: 40rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: bold;
|
||||
color: #ff5555;
|
||||
}
|
||||
|
||||
.fui-goods-remark {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 26rpx;
|
||||
margin-left: 30rpx;
|
||||
font-size: 26rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.fui-label {
|
||||
height: 30rpx;
|
||||
line-height: 32rpx;
|
||||
border-radius: 30rpx;
|
||||
font-size: 20rpx;
|
||||
color: #fff;
|
||||
width: 86rpx;
|
||||
text-align: center;
|
||||
background: #999;
|
||||
margin-top: 6rpx;
|
||||
}
|
||||
|
||||
.floorPrice {
|
||||
float: right;
|
||||
margin-right: -104rpx;
|
||||
background: #ff5555;
|
||||
color: #fff;
|
||||
width: 152rpx;
|
||||
text-align: center;
|
||||
line-height: 52rpx;
|
||||
border-radius: 52rpx;
|
||||
font-size: 24rpx;
|
||||
font-weight: normal;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.navbar .empty {
|
||||
text-align: center;
|
||||
padding-top: 88rpx;
|
||||
}
|
||||
|
||||
.navbar .empty view {
|
||||
position: relative;
|
||||
font-size: 28rpx;
|
||||
color: #999;
|
||||
line-height: 128rpx;
|
||||
}
|
||||
|
||||
.navbar .empty view:before {
|
||||
position: absolute;
|
||||
content: '';
|
||||
width: 140rpx;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
top: 60rpx;
|
||||
left: 130rpx;
|
||||
}
|
||||
|
||||
.navbar .empty view:after {
|
||||
position: absolute;
|
||||
content: '';
|
||||
width: 140rpx;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
top: 60rpx;
|
||||
right: 130rpx;
|
||||
}
|
170
bargain/bargain/bargain.js
Normal file
170
bargain/bargain/bargain.js
Normal file
@ -0,0 +1,170 @@
|
||||
var a = getApp(), i = a.requirejs("core"), t = (a.requirejs("jquery"), a.requirejs("foxui"),
|
||||
a.requirejs("wxParse/wxParse"));
|
||||
|
||||
Page({
|
||||
data: {
|
||||
label: "/static/images/label.png",
|
||||
showtab: "family",
|
||||
bargainid: "",
|
||||
layer: !1,
|
||||
cutPrice: "",
|
||||
error_hint: !1,
|
||||
error_hint_title: "",
|
||||
list: {},
|
||||
bargain: {},
|
||||
bargain_set: {},
|
||||
istimeTitle: "剩余时间",
|
||||
bargain_record: {},
|
||||
bargain_actor: {},
|
||||
swi: "",
|
||||
trade_swi: "",
|
||||
myself_swi: "",
|
||||
mid: "",
|
||||
randomHint: {
|
||||
0: "大王,您即将触及我的价格底线,不要放弃继续砍价吧~",
|
||||
1: "主人,达到价格底线就可以带我回家啦!等你哦~",
|
||||
2: "加把劲,再砍一刀,马上就到底价了哦~",
|
||||
3: "砍到底价才能购买哦,邀请小伙伴来帮忙吧!",
|
||||
4: "叫上您的小伙伴来砍价,我们的的目标是底价买买买!"
|
||||
},
|
||||
marked_words: "",
|
||||
arrived: "",
|
||||
timeout: 0,
|
||||
bargain_share: {}
|
||||
},
|
||||
onLoad: function(r) {
|
||||
a.url(r), wx.showShareMenu({
|
||||
menus: [ "shareAppMessage", "shareTimeline" ]
|
||||
});
|
||||
var e = this;
|
||||
a.getCache("isIpx") ? e.setData({
|
||||
isIpx: !0,
|
||||
iphonexnavbar: "fui-iphonex-navbar"
|
||||
}) : e.setData({
|
||||
isIpx: !1,
|
||||
iphonexnavbar: ""
|
||||
}), i.get("bargain/bargain", r, function(a) {
|
||||
if (1 != a.error) {
|
||||
if (0 == a.error) {
|
||||
1 == a.unequalMid && wx.navigateTo({
|
||||
url: "../bargain/bargain?id=" + a.id + "&mid=" + a.mid
|
||||
}), e.setData({
|
||||
list: a.list,
|
||||
bargain: a.bargain,
|
||||
bargain_set: a.bargain_set,
|
||||
bargain_record: a.bargain_record,
|
||||
bargain_actor: a.bargain_actor,
|
||||
swi: a.swi,
|
||||
trade_swi: a.trade_swi,
|
||||
myself_swi: a.myself_swi,
|
||||
bargainid: a.list.id,
|
||||
mid: a.mid,
|
||||
arrived: a.arrived,
|
||||
timeout: a.timeout,
|
||||
bargain_share: a.bargain_share
|
||||
}), t.wxParse("wxParseData", "html", a.bargain.content, e, "0"), "" == a.bargain.rule || null == a.bargain.rule ? t.wxParse("wxParseDataRule", "html", a.bargain_set.rule, e, "0") : t.wxParse("wxParseDataRule", "html", a.bargain.rule, e, "0"),
|
||||
e.countDown(a.bargain.start_time, a.bargain.end_time, "istime"), clearInterval(e.data.timer);
|
||||
var i = setInterval(function() {
|
||||
e.countDown(a.bargain.start_time, a.bargain.end_time, "istime");
|
||||
}, 1e3);
|
||||
e.setData({
|
||||
timer: i
|
||||
});
|
||||
}
|
||||
} else e.setData({
|
||||
upper_limit: !0,
|
||||
upper_limitTitle: a.message
|
||||
});
|
||||
});
|
||||
var n = Math.floor(4 * Math.random()), s = e.data.randomHint[n];
|
||||
e.setData({
|
||||
marked_words: s
|
||||
});
|
||||
},
|
||||
goodsTab: function(a) {
|
||||
this.setData({
|
||||
showtab: a.currentTarget.dataset.tap
|
||||
});
|
||||
},
|
||||
cutPrice: function() {
|
||||
var t = this;
|
||||
a.checkAuth(function() {
|
||||
var a = "/pages/auth/index", r = t, e = r.data.bargainid, n = r.data.mid;
|
||||
i.get("bargain/bargain", {
|
||||
id: e,
|
||||
ajax: 151,
|
||||
mid: n
|
||||
}, function(i) {
|
||||
-1 != i.error ? 1 != i.error ? 0 == i.error && i.cutPrice ? r.setData({
|
||||
layer: !0,
|
||||
cutPrice: i.cutPrice
|
||||
}) : wx.redirectTo({
|
||||
url: a
|
||||
}) : r.setData({
|
||||
error_hint: !0,
|
||||
error_hint_title: i.message
|
||||
}) : wx.navigateTo({
|
||||
url: a
|
||||
});
|
||||
});
|
||||
});
|
||||
},
|
||||
closeLayer: function() {
|
||||
this.setData({
|
||||
layer: !1
|
||||
});
|
||||
var a = this.data.bargainid, i = this.data.mid;
|
||||
this.onLoad({
|
||||
id: a,
|
||||
mid: i
|
||||
});
|
||||
},
|
||||
goBackPrev: function() {
|
||||
wx.navigateBack({
|
||||
delta: 1
|
||||
});
|
||||
},
|
||||
countDown: function(a, i, t) {
|
||||
var r = parseInt(Date.now() / 1e3), e = parseInt((a > r ? a : i) - r), n = Math.floor(e / 86400), s = Math.floor((e - 24 * n * 60 * 60) / 3600), o = Math.floor((e - 24 * n * 60 * 60 - 3600 * s) / 60), g = [ n, s, o, Math.floor(e - 24 * n * 60 * 60 - 3600 * s - 60 * o) ];
|
||||
if (this.setData({
|
||||
time: g
|
||||
}), "istime") {
|
||||
var d = "";
|
||||
a > r ? (d = "未开始", this.setData({
|
||||
istime: 0
|
||||
})) : a <= r && i > r ? (d = "剩余时间", this.setData({
|
||||
istime: 1
|
||||
})) : (d = "活动已经结束,下次早点来~", this.setData({
|
||||
istime: 2
|
||||
})), this.setData({
|
||||
istimeTitle: d
|
||||
});
|
||||
}
|
||||
},
|
||||
closeError: function() {
|
||||
this.setData({
|
||||
error_hint: !1
|
||||
});
|
||||
},
|
||||
seekHelp: function() {
|
||||
this.onShareAppMessage();
|
||||
},
|
||||
onShareAppMessage: function(a) {
|
||||
var i = this.data.bargainid, t = this.data.mid, r = this.data.bargain_share, e = {
|
||||
title: r.content || "帮砍价",
|
||||
path: "/bargain/bargain/bargain?id=" + i + "&mid=" + t,
|
||||
success: function(a) {},
|
||||
fail: function(a) {}
|
||||
};
|
||||
return r.logo && (e.imageUrl = r.logo), e;
|
||||
},
|
||||
onShareTimeline: function(a) {
|
||||
var i = this.data.bargainid, t = this.data.mid, r = this.data.bargain_share, e = {
|
||||
title: r.content || "帮砍价",
|
||||
path: "/bargain/bargain/bargain?id=" + i + "&mid=" + t,
|
||||
success: function(a) {},
|
||||
fail: function(a) {}
|
||||
};
|
||||
return r.logo && (e.imageUrl = r.logo), e;
|
||||
}
|
||||
});
|
6
bargain/bargain/bargain.json
Normal file
6
bargain/bargain/bargain.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationBarBackgroundColor": "#ffffff",
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "砍价详情",
|
||||
"usingComponents": {}
|
||||
}
|
118
bargain/bargain/bargain.wxml
Normal file
118
bargain/bargain/bargain.wxml
Normal file
@ -0,0 +1,118 @@
|
||||
<import src="/utils/wxParse/wxParse.wxml"></import>
|
||||
<view class="page navbar nobuy" style="">
|
||||
<view class="bargain-shop">
|
||||
<view class="user">
|
||||
<image src="{{list.head_image}}"></image>
|
||||
<text>{{list.nickname}}</text>
|
||||
</view>
|
||||
<navigator class="goodsinfo flex" url="../detail/detail?id={{bargain.id}}">
|
||||
<view class="image">
|
||||
<image mode="aspectFit" src="{{bargain.thumb}}"></image>
|
||||
</view>
|
||||
<view class="goodsinner">
|
||||
<view class="title">{{bargain.title}}</view>
|
||||
<view class="price">原价:{{bargain.start_price}}</view>
|
||||
<view class="status">库存{{bargain.stock}} | 已售{{bargain.sold}}</view>
|
||||
</view>
|
||||
</navigator>
|
||||
<view class="prices">
|
||||
<view class="current">
|
||||
¥{{list.now_price}}<text>当前价</text>
|
||||
</view>
|
||||
<view class="cut">
|
||||
已砍金额<text>¥{{list.bargain_price}}</text>
|
||||
</view>
|
||||
<view class="time" wx:if="{{istime==1&&timeout==0}}">
|
||||
{{istimeTitle}}<text class="number" wx:for="{{time}}" wx:key="item">{{item}}{{index==0?'天':''}}{{index==1?'时':''}}{{index==2?'分':''}}{{index==3?'秒':''}}</text>
|
||||
</view>
|
||||
<view class="time" style="background:#999" wx:if="{{istime==2||timeout==1}}">
|
||||
活动已结束
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell-group">
|
||||
<view class="title">
|
||||
<view class="fui-tab fui-tab-danger" id="tab">
|
||||
<view bindtap="goodsTab" class="item {{showtab=='family'?'active':''}}" data-tap="family">亲友团</view>
|
||||
<view bindtap="goodsTab" class="item {{showtab=='info'?'active':''}}" data-tap="info">商品详情</view>
|
||||
<view bindtap="goodsTab" class="item {{showtab=='rule'?'active':''}}" data-tap="rule">活动规则</view>
|
||||
<view bindtap="goodsTab" class="item {{showtab=='join'?'active':''}}" data-tap="join" wx:if="{{bargain_set.partin>-10000}}">参与榜</view>
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<view wx:if="{{showtab=='family'}}">
|
||||
<view class="fui-cell" wx:for="{{bargain_record}}" wx:key="item">
|
||||
<view class="fui-cell-label">
|
||||
<image src="{{item.head_image}}"></image>
|
||||
</view>
|
||||
<view class="fui-cell-info">
|
||||
<view class="title">{{item.nickname}}</view>
|
||||
<view class="text">{{item.bargain_time}}</view>
|
||||
</view>
|
||||
<view class="fui-cell-remark noremark danger">
|
||||
<text wx:if="{{item.bargain_price<=0}}">{{item.bargain_price}}</text>
|
||||
<text wx:if="{{item.bargain_price>0}}">+{{item.bargain_price}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view wx:if="{{showtab=='info'}}">
|
||||
<template is="wxParse" data="{{wxParseData:wxParseData.nodes}}"></template>
|
||||
</view>
|
||||
<view wx:if="{{showtab=='rule'}}">
|
||||
<template is="wxParse" data="{{wxParseData:wxParseDataRule.nodes}}"></template>
|
||||
</view>
|
||||
<view wx:if="{{showtab=='join'&&bargain_set.partin>-10000}}">
|
||||
<view class="fui-cell" wx:for="{{bargain_actor}}" wx:key="item">
|
||||
<view class="fui-cell-label">
|
||||
<image src="{{item.head_image}}"></image>
|
||||
</view>
|
||||
<view class="fui-cell-info">
|
||||
<view class="title">{{item.nickname}}</view>
|
||||
<view class="text">{{item.update_time}}</view>
|
||||
</view>
|
||||
<view class="fui-cell-remark noremark danger">
|
||||
<text wx:if="{{item.bargain_price<=0}}">{{item.bargain_price}}</text>
|
||||
<text wx:if="{{item.bargain_price>0}}">+{{item.bargain_price}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="buytips" style="{{isIpx?'bottom:168rpx':''}}" wx:if="{{trade_swi!=1&&myself_swi==0&&istime==1&&timeout==0}}">{{marked_words}}</view>
|
||||
<view class="fui-navbar flex {{iphonexnavbar}}" wx:if="{{swi==111&&istime==1&&timeout==0}}">
|
||||
<navigator class="buybtn" url="/pages/order/create/index?bargainid={{list.id}}" wx:if="{{trade_swi==5&&trade_swi!=0&&arrived==0}}">立即购买</navigator>
|
||||
<view class="buybtn" wx:if="{{trade_swi==2}}">已经结束</view>
|
||||
<view class="buybtn" wx:if="{{trade_swi==3}}">库存不足</view>
|
||||
<view class="buybtn" wx:if="{{trade_swi==4}}">没到底价</view>
|
||||
<view bindtap="cutPrice" class="bargainBuy" wx:if="{{trade_swi!=1&&myself_swi==1}}">立即砍价</view>
|
||||
<button bindtap="seekHelp" class="bargainBuy" openType="share" wx:if="{{trade_swi!=0&&myself_swi==0&&arrived==0}}">找人帮砍</button>
|
||||
</view>
|
||||
<view class="fui-navbar flex {{iphonexnavbar}}" wx:if="{{swi=='222'&&istime==1&&timeout==0}}">
|
||||
<navigator class="buybtn" url="../detail/detail?id={{bargain.id}}">我也要砍</navigator>
|
||||
<view bindtap="cutPrice" class="bargainBuy">帮砍一刀</view>
|
||||
</view>
|
||||
<view class="fui-navbar {{iphonexnavbar}}" wx:if="{{swi==111&&arrived==1&&(trade_swi==0||trade_swi==5)&&myself_swi==0}}">
|
||||
<navigator class="bargainBuy" url="/pages/order/create/index?bargainid={{list.id}}">立即购买</navigator>
|
||||
</view>
|
||||
<view class="fui-navbar {{iphonexnavbar}}" wx:if="{{trade_swi==1}}">
|
||||
<navigator class="bargainBuy" url="/pages/order/detail/index?id={{list.order}}">查看订单</navigator>
|
||||
</view>
|
||||
<view class="{{isIpx?'fui-iphonex-button':''}}"></view>
|
||||
<view bindtap="closeLayer" class="layer" wx:if="{{layer}}">
|
||||
<view class="content">
|
||||
<view class="icox icox-close"></view>
|
||||
<image src="/static/images/success.png"></image>
|
||||
<view style="line-height:82rpx;font-size:28rpx">恭喜你成功砍掉</view>
|
||||
<view style="line-height:70rpx;font-size:66rpx;font-weight:bold;color:#ff5555">{{cutPrice}}元</view>
|
||||
<view class="layerbtn">知道了</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="layer" wx:if="{{error_hint}}">
|
||||
<view class="showModal">
|
||||
<view class="inner">{{error_hint_title}}</view>
|
||||
<view class="operate flex">
|
||||
<view bindtap="closeError" class="flex1">确定</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
276
bargain/bargain/bargain.wxss
Normal file
276
bargain/bargain/bargain.wxss
Normal file
@ -0,0 +1,276 @@
|
||||
.page.navbar.nobuy {
|
||||
padding-bottom: 180rpx;
|
||||
}
|
||||
|
||||
.bargain-shop {
|
||||
background: #fff;
|
||||
padding: 0 24rpx;
|
||||
}
|
||||
|
||||
.user {
|
||||
font-size: 26rpx;
|
||||
color: #666;
|
||||
line-height: 100rpx;
|
||||
}
|
||||
|
||||
.user image {
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
border-radius: 50%;
|
||||
vertical-align: middle;
|
||||
margin-right: 20rpx;
|
||||
float: left;
|
||||
margin-top: 24rpx;
|
||||
}
|
||||
|
||||
.bargain-shop .goodsinfo {
|
||||
height: 228rpx;
|
||||
width: 100%;
|
||||
background: #f7f7f7;
|
||||
padding: 32rpx;
|
||||
box-sizing: border-box;
|
||||
font-size: 26rpx;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.bargain-shop .goodsinfo .title {
|
||||
height: 50rpx;
|
||||
line-height: 50rpx;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 1;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.bargain-shop .goodsinfo .price {
|
||||
height: 60rpx;
|
||||
line-height: 60rpx;
|
||||
}
|
||||
|
||||
.bargain-shop .goodsinfo .status {
|
||||
height: 50rpx;
|
||||
line-height: 50rpx;
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.goodsinfo .image image {
|
||||
width: 160rpx;
|
||||
height: 160rpx;
|
||||
margin-right: 24rpx;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.bargain-shop .prices {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.bargain-shop .prices .current {
|
||||
font-size: 70rpx;
|
||||
font-weight: bold;
|
||||
color: #ff5555;
|
||||
line-height: 76rpx;
|
||||
margin-top: 50rpx;
|
||||
}
|
||||
|
||||
.bargain-shop .prices.delay .current {
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.bargain-shop .prices.delay .current text {
|
||||
border: 1px solid #666;
|
||||
}
|
||||
|
||||
.bargain-shop .prices.delay .time {
|
||||
background: #999;
|
||||
}
|
||||
|
||||
.bargain-shop .prices .current text {
|
||||
font-size: 18rpx;
|
||||
height: 30rpx;
|
||||
border: 1px solid #ff5555;
|
||||
font-weight: normal;
|
||||
display: inline-block;
|
||||
line-height: 30rpx;
|
||||
vertical-align: middle;
|
||||
margin-top: -6px;
|
||||
}
|
||||
|
||||
.bargain-shop .prices .cut {
|
||||
line-height: 50rpx;
|
||||
color: #999;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.bargain-shop .prices .cut text {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.bargain-shop .prices .time {
|
||||
min-width: 390rpx;
|
||||
display: inline-block;
|
||||
height: 64rpx;
|
||||
border-radius: 64rpx;
|
||||
font-size: 24rpx;
|
||||
color: #fff;
|
||||
line-height: 64rpx;
|
||||
padding: 0 48rpx;
|
||||
margin: 22rpx 0 44rpx;
|
||||
background: linear-gradient(to right,#ff8955 0%,#f94343 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffff8955, endColorstr=#fff94343,gradientType='1');
|
||||
}
|
||||
|
||||
.bargain-shop .prices .time.delay {
|
||||
background: #999;
|
||||
}
|
||||
|
||||
.bargain-list {
|
||||
margin-top: 20rpx;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.fui-tab {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.tabcontent {
|
||||
padding: 0 24rpx;
|
||||
}
|
||||
|
||||
.fui-cell-group .fui-cell .fui-cell-label {
|
||||
width: 80rpx;
|
||||
}
|
||||
|
||||
.fui-cell-group .fui-cell .title {
|
||||
font-size: 26rpx;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.fui-cell-group .fui-cell .text {
|
||||
font-size: 20rpx;
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
.fui-cell .fui-cell-label image {
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.fui-cell-group .fui-cell .fui-cell-remark.noremark.danger {
|
||||
color: #ff5555;
|
||||
}
|
||||
|
||||
.fui-navbar .buybtn {
|
||||
width: 240rpx;
|
||||
height: 100%;
|
||||
line-height: 100rpx;
|
||||
color: #666;
|
||||
text-align: center;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
.fui-navbar .bargainBuy {
|
||||
background: #ff5555;
|
||||
-webkit-box-flex: 1;
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
line-height: 100rpx;
|
||||
color: #fff;
|
||||
font-size: 28rpx;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.buytips {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 100rpx;
|
||||
background: #fbf7dc;
|
||||
font-size: 22rpx;
|
||||
height: 60rpx;
|
||||
line-height: 60rpx;
|
||||
text-align: center;
|
||||
color: #ff8c5a;
|
||||
}
|
||||
|
||||
.layer {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: rgba(0,0,0,0.5);
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
.layer .content {
|
||||
width: 420rpx;
|
||||
height: 460rpx;
|
||||
background: #fff;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
margin-left: -210rpx;
|
||||
margin-top: -230rpx;
|
||||
border-radius: 10rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.layer .content .icox-close {
|
||||
position: absolute;
|
||||
right: 10rpx;
|
||||
top: 0;
|
||||
line-height: 52rpx;
|
||||
font-size: 24rpx;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.layer .content image {
|
||||
width: 86rpx;
|
||||
height: 103rpx;
|
||||
margin-top: 56rpx;
|
||||
}
|
||||
|
||||
.layer .content .layerbtn {
|
||||
width: 300rpx;
|
||||
background: #ff5555;
|
||||
line-height: 72rpx;
|
||||
border-radius: 72rpx;
|
||||
color: #fff;
|
||||
margin: 0 auto;
|
||||
margin-top: 36rpx;
|
||||
}
|
||||
|
||||
.layer .showModal {
|
||||
width: 560rpx;
|
||||
background: #fff;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
margin-left: -280rpx;
|
||||
margin-top: -196rpx;
|
||||
}
|
||||
|
||||
.layer .showModal .inner {
|
||||
padding: 58rpx 52rpx;
|
||||
font-size: 28rpx;
|
||||
line-height: 36rpx;
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
|
||||
.layer .showModal .operate {
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
text-align: center;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
.layer .showModal .operate view:last-child {
|
||||
border-left: 1px solid #eee;
|
||||
color: #00c201;
|
||||
}
|
132
bargain/detail/detail.js
Normal file
132
bargain/detail/detail.js
Normal file
@ -0,0 +1,132 @@
|
||||
var t = getApp(), i = t.requirejs("core"), a = (t.requirejs("jquery"), t.requirejs("foxui"),
|
||||
t.requirejs("wxParse/wxParse"));
|
||||
|
||||
Page({
|
||||
data: {
|
||||
id: "",
|
||||
layer: !1,
|
||||
goods: {},
|
||||
istimeTitle: "",
|
||||
timer: 0,
|
||||
upper_limit: !1,
|
||||
upper_limitTitle: "",
|
||||
act_swi: "",
|
||||
error_hint: !1,
|
||||
error_hint_title: "",
|
||||
advHeight: 1
|
||||
},
|
||||
imageLoad: function(t) {
|
||||
var i = t.detail.height, a = t.detail.width, e = Math.floor(750 * i / a);
|
||||
i == a ? this.setData({
|
||||
advHeight: 750
|
||||
}) : this.setData({
|
||||
advHeight: e
|
||||
});
|
||||
},
|
||||
onLoad: function(e) {
|
||||
var r = this;
|
||||
t.getCache("isIpx") ? r.setData({
|
||||
isIpx: !0,
|
||||
iphonexnavbar: "fui-iphonex-navbar"
|
||||
}) : r.setData({
|
||||
isIpx: !1,
|
||||
iphonexnavbar: ""
|
||||
}), i.get("bargain/get_detail", e, function(t) {
|
||||
if (r.setData({
|
||||
goods: t.list
|
||||
}), r.setData({
|
||||
id: t.list.id,
|
||||
act_swi: t.list.act_swi
|
||||
}), a.wxParse("wxParseData", "html", t.list.content, r, "0"), r.countDown(t.list.start_time, t.list.end_time, "istime"),
|
||||
1 == t.list.isStart) {
|
||||
clearInterval(r.data.timer);
|
||||
var i = setInterval(function() {
|
||||
r.countDown(t.list.start_time, t.list.end_time, "istime");
|
||||
}, 1e3);
|
||||
r.setData({
|
||||
timer: i
|
||||
});
|
||||
}
|
||||
}), wx.setNavigationBarTitle({
|
||||
title: "砍价商品详情"
|
||||
});
|
||||
},
|
||||
cutPrice: function() {
|
||||
this.setData({
|
||||
layer: !0
|
||||
});
|
||||
},
|
||||
closeLayer: function() {
|
||||
this.setData({
|
||||
layer: !1
|
||||
});
|
||||
},
|
||||
countDown: function(t, i, a) {
|
||||
var e = parseInt(Date.now() / 1e3), r = parseInt((t > e ? t : i) - e), s = Math.floor(r / 86400), n = Math.floor((r - 24 * s * 60 * 60) / 3600), o = Math.floor((r - 24 * s * 60 * 60 - 3600 * n) / 60), l = [ s, n, o, Math.floor(r - 24 * s * 60 * 60 - 3600 * n - 60 * o) ];
|
||||
if (this.setData({
|
||||
time: l
|
||||
}), "istime") {
|
||||
var h = "";
|
||||
t > e ? (h = "未开始", this.setData({
|
||||
istime: 0
|
||||
})) : t <= e && i > e ? (h = "剩余时间", this.setData({
|
||||
istime: 1
|
||||
})) : (h = "活动已经结束,下次早点来~", this.setData({
|
||||
istime: 2
|
||||
})), this.setData({
|
||||
istimeTitle: h
|
||||
});
|
||||
}
|
||||
},
|
||||
backhome: function() {
|
||||
wx.switchTab({
|
||||
url: "/pages/index/index"
|
||||
});
|
||||
},
|
||||
goJoin: function() {
|
||||
t.checkAuth(function() {}, 1);
|
||||
var a = this, e = a.data.id;
|
||||
i.get("bargain/join", {
|
||||
id: e
|
||||
}, function(t) {
|
||||
if (1 != t.error) {
|
||||
if (0 == t.error) {
|
||||
if (1 == t.initiate) return void a.setData({
|
||||
upper_limit: !0,
|
||||
upper_limitTitle: "您已经发起过一次本商品的砍价活动,是否立即查看?",
|
||||
act_swi: t.bargainid
|
||||
});
|
||||
wx.navigateTo({
|
||||
url: "../bargain/bargain?id=" + t.id + "&mid=" + t.mid
|
||||
});
|
||||
}
|
||||
} else a.setData({
|
||||
error_hint: !0,
|
||||
error_hint_title: t.message
|
||||
});
|
||||
});
|
||||
},
|
||||
alreadyHave: function() {
|
||||
t.checkAuth(function() {}, 1);
|
||||
this.setData({
|
||||
upper_limit: !0,
|
||||
upper_limitTitle: "您已经发起过一次本商品的砍价活动,是否立即查看?"
|
||||
});
|
||||
},
|
||||
closeUpper: function() {
|
||||
this.setData({
|
||||
upper_limit: !1
|
||||
});
|
||||
},
|
||||
affirmUpper: function() {
|
||||
var t = this.data.act_swi;
|
||||
wx.navigateTo({
|
||||
url: "../bargain/bargain?id=" + t
|
||||
});
|
||||
},
|
||||
closeError: function() {
|
||||
this.setData({
|
||||
error_hint: !1
|
||||
});
|
||||
}
|
||||
});
|
3
bargain/detail/detail.json
Normal file
3
bargain/detail/detail.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
115
bargain/detail/detail.wxml
Normal file
115
bargain/detail/detail.wxml
Normal file
@ -0,0 +1,115 @@
|
||||
<import src="/utils/wxParse/wxParse.wxml"></import>
|
||||
<view class="page navbar">
|
||||
<view class="goods-detail-goods">
|
||||
<swiper circular="true" class="index-adcs-sqiper" indicatorDots="true" style="width:100%;height:{{advHeight}}rpx;">
|
||||
<swiper-item wx:for="{{goods.thumbs}}" wx:for-index="idx" wx:key="item">
|
||||
<image bindload="{{idx==0?'imageLoad':''}}" class="goodsadvimg" data-url="{{item}}" src="{{item}}"></image>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
<view class="countDown">
|
||||
<text wx:if="{{istime==0}}">{{istimeTitle}}</text>
|
||||
<text wx:elif="{{istime==1}}">{{istimeTitle}}:<text class="number" wx:for="{{time}}" wx:key="item">{{item}}{{index==0?'天':''}}{{index==1?'时':''}}{{index==2?'分':''}}{{index==3?'秒':''}}</text>
|
||||
</text>
|
||||
<text wx:else>{{istimeTitle}}</text>
|
||||
</view>
|
||||
<view class="fui-cell-group fui-detail-group" style="margin-top:0">
|
||||
<view class="fui-cell">
|
||||
<view class="fui-cell-text name">
|
||||
<image src="/static/images/label.png"></image>
|
||||
<text selectable="true">{{goods.title}}</text>
|
||||
</view>
|
||||
<navigator class="fui-cell-remark rule" style="margin-left: 60rpx;" url="../rule/rule?id={{goods.id}}&mid={{goods.mid}}">
|
||||
<i class="icox icox-activity" style="font-size:42rpx;color: #fd5555;"></i>
|
||||
<view style="font-size: 20rpx;color: #666;margin-top:-6rpx;">规则</view>
|
||||
</navigator>
|
||||
</view>
|
||||
<view class="subtitle">{{goods.subtitle}}</view>
|
||||
<view class="fui-cell price" wx:if="{{goods.type==1}}">
|
||||
<text style="display:inline-block;line-height:48rpx">底价</text>
|
||||
<text class="miniprice" selectable="true">¥{{goods.end_price}}</text>
|
||||
<text class="original_price">¥{{goods.start_price}}</text>
|
||||
</view>
|
||||
<view class="fui-cell price" wx:elif="{{goods.type==0}}">
|
||||
<text style="display:inline-block;line-height:48rpx">原价</text>
|
||||
<text class="miniprice" selectable="true">¥{{goods.start_price}}</text>
|
||||
<text class="original_price" style="color:{{goods['custom']['cutmore_color']}}">¥{{goods.custom.cutmore}}</text>
|
||||
</view>
|
||||
<view class="fui-cell">
|
||||
<view class="fui-cell-text number">
|
||||
已有{{goods.act_times}}人参与砍价
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="detail-rule">
|
||||
<view class="detail-rule-top">
|
||||
砍价流程
|
||||
</view>
|
||||
<view class="detail-rule-bottom">
|
||||
<view class="step active">
|
||||
<view class="num">1</view>
|
||||
<view class="text">选择心仪商品</view>
|
||||
</view>
|
||||
<view class="step">
|
||||
<view class="num">2</view>
|
||||
<view class="text">邀请好友砍价</view>
|
||||
</view>
|
||||
<view class="step">
|
||||
<view class="num">3</view>
|
||||
<view class="text">砍到底价后支付</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell-group">
|
||||
<view class="fui-cell">
|
||||
<view class="fui-cell-info">商品详情</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="goods-detail-info">
|
||||
<view class="wxParse">
|
||||
<template is="wxParse" data="{{wxParseData:wxParseData.nodes}}"></template>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-navbar {{iphonexnavbar}}">
|
||||
<navigator bindtap="backhome" class="nav-item" openType="switchTab">
|
||||
<view class="icox icox-homepage"></view>
|
||||
<view class="label">首页</view>
|
||||
</navigator>
|
||||
<navigator class="nav-item" url="../act/act">
|
||||
<view class="icox icox-people"></view>
|
||||
<view class="label">我的</view>
|
||||
</navigator>
|
||||
<navigator class="nav-item btn buybtn" url="/pages/order/create/index?id={{goods.goodsid}}">直接购买</navigator>
|
||||
<view bindtap="{{act_swi?'alreadyHave':'goJoin'}}" class="nav-item btn bargainBuy" wx:if="{{goods.swi==0}}">立即砍价</view>
|
||||
<view class="nav-item btn noBargain" wx:if="{{goods.swi==1}}">尚未开始</view>
|
||||
<view class="nav-item btn noBargain" wx:if="{{goods.swi==2}}">已经结束</view>
|
||||
<view class="nav-item btn noBargain" wx:if="{{goods.swi==3}}">库存不足</view>
|
||||
</view>
|
||||
<view class="{{isIpx?'fui-iphonex-button':''}}"></view>
|
||||
<view class="layer" wx:if="{{layer}}">
|
||||
<view class="content">
|
||||
<view bindtap="closeLayer" class="icox icox-close"></view>
|
||||
<image src="/static/images/success.png"></image>
|
||||
<view style="line-height:82rpx;font-size:28rpx">恭喜你成功砍掉</view>
|
||||
<view style="line-height:70rpx;font-size:66rpx;font-weight:bold;color:#ff5555">4.56元</view>
|
||||
<view class="layerbtn">知道了</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="layer" wx:if="{{upper_limit}}">
|
||||
<view class="showModal">
|
||||
<view class="inner">{{upper_limitTitle}}</view>
|
||||
<view class="operate flex">
|
||||
<view bindtap="closeUpper" class="flex1">取消</view>
|
||||
<view bindtap="affirmUpper" class="flex1">确定</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="layer" wx:if="{{error_hint}}">
|
||||
<view class="showModal">
|
||||
<view class="inner">{{error_hint_title}}</view>
|
||||
<view class="operate flex">
|
||||
<view bindtap="closeError" class="flex1">确定</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
238
bargain/detail/detail.wxss
Normal file
238
bargain/detail/detail.wxss
Normal file
@ -0,0 +1,238 @@
|
||||
.goodsadvimg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.name image {
|
||||
display: inline-block;
|
||||
width: 50rpx;
|
||||
height: 24rpx;
|
||||
vertical-align: middle;
|
||||
margin-top: -5rpx;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
|
||||
.countDown {
|
||||
height: 52rpx;
|
||||
width: 100%;
|
||||
background: linear-gradient(to right,#fe8a54 0%,#f94543 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#fffe8a54, endColorstr=#fff94543,gradientType='1');
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
line-height: 52rpx;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.fui-cell-group .fui-cell .fui-cell-remark.rule::after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.fui-cell-group .fui-cell:before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.fui-cell-group .fui-cell .original_price {
|
||||
float: right;
|
||||
text-decoration: line-through;
|
||||
font-size: 22rpx;
|
||||
color: #999;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
.fui-cell-group .fui-cell {
|
||||
padding: 12rpx 24rpx;
|
||||
}
|
||||
|
||||
.fui-cell-group .fui-cell.price {
|
||||
color: #ff5555;
|
||||
font-size: 20rpx;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.fui-cell-group .fui-cell.price .miniprice {
|
||||
font-size: 44rpx;
|
||||
font-weight: bold;
|
||||
display: inline-block;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
.fui-cell-group .fui-cell .fui-cell-text {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.fui-cell-group .fui-cell .fui-cell-text.number {
|
||||
font-size: 24rpx;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.detail-rule {
|
||||
background: #fff;
|
||||
margin-top: 20rpx;
|
||||
padding: 0 24rpx;
|
||||
height: 200rpx;
|
||||
}
|
||||
|
||||
.detail-rule .detail-rule-top {
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
font-size: 24rpx;
|
||||
border-bottom: 1px solid #ededed;
|
||||
}
|
||||
|
||||
.detail-rule .detail-rule-bottom {
|
||||
padding-top: 26rpx;
|
||||
font-size: 24rpx;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.detail-rule .detail-rule-bottom .step {
|
||||
float: left;
|
||||
width: 230rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.detail-rule .detail-rule-bottom .step.active {
|
||||
color: #ff5555;
|
||||
}
|
||||
|
||||
.detail-rule .detail-rule-bottom .step.active .num {
|
||||
background: #ff5555;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.detail-rule .detail-rule-bottom .num {
|
||||
width: 30rpx;
|
||||
height: 30rpx;
|
||||
border-radius: 50%;
|
||||
background: #ccc;
|
||||
text-align: center;
|
||||
font-size: 22rpx;
|
||||
line-height: 30rpx;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
margin-bottom: 20rpx;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.detail-rule .detail-rule-bottom .num:before {
|
||||
position: absolute;
|
||||
content: '';
|
||||
width: 200rpx;
|
||||
top: 14rpx;
|
||||
left: 30rpx;
|
||||
border-bottom: 1px dashed #eee;
|
||||
}
|
||||
|
||||
.detail-rule .detail-rule-bottom .num:after {
|
||||
position: absolute;
|
||||
content: '';
|
||||
border: 6rpx solid transparent;
|
||||
border-left: 6rpx solid #ccc;
|
||||
top: 8rpx;
|
||||
left: 130rpx;
|
||||
}
|
||||
|
||||
.detail-rule .detail-rule-bottom .step:last-child .num:before,.detail-rule .detail-rule-bottom .step:last-child .num:after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.fui-navbar .nav-item .icox {
|
||||
font-size: 50rpx;
|
||||
}
|
||||
|
||||
.nav-item.buybtn {
|
||||
background: #fe9501;
|
||||
}
|
||||
|
||||
.nav-item.bargainBuy {
|
||||
background: #ff5654;
|
||||
}
|
||||
|
||||
.nav-item.noBargain {
|
||||
background: #f2f2f2;
|
||||
color: #b2b2b2!important;
|
||||
border: 1px solid #f2f2f2;
|
||||
}
|
||||
|
||||
.layer {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: rgba(0,0,0,0.5);
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
.layer .content {
|
||||
width: 420rpx;
|
||||
height: 460rpx;
|
||||
background: #fff;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
margin-left: -210rpx;
|
||||
margin-top: -230rpx;
|
||||
border-radius: 10rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.layer .content .icox-close {
|
||||
position: absolute;
|
||||
right: 10rpx;
|
||||
top: 0;
|
||||
line-height: 52rpx;
|
||||
font-size: 24rpx;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.layer .content image {
|
||||
width: 86rpx;
|
||||
height: 103rpx;
|
||||
margin-top: 56rpx;
|
||||
}
|
||||
|
||||
.layer .content .layerbtn {
|
||||
width: 300rpx;
|
||||
background: #ff5555;
|
||||
line-height: 72rpx;
|
||||
border-radius: 72rpx;
|
||||
color: #fff;
|
||||
margin: 0 auto;
|
||||
margin-top: 36rpx;
|
||||
}
|
||||
|
||||
.layer .showModal {
|
||||
width: 560rpx;
|
||||
background: #fff;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
margin-left: -280rpx;
|
||||
margin-top: -196rpx;
|
||||
}
|
||||
|
||||
.layer .showModal .inner {
|
||||
padding: 58rpx 52rpx;
|
||||
font-size: 28rpx;
|
||||
line-height: 36rpx;
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
|
||||
.layer .showModal .operate {
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
text-align: center;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
.layer .showModal .operate view:last-child {
|
||||
border-left: 1px solid #eee;
|
||||
color: #00c201;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
padding: 0 24rpx;
|
||||
}
|
54
bargain/index/index.js
Normal file
54
bargain/index/index.js
Normal file
@ -0,0 +1,54 @@
|
||||
var t = getApp(), e = t.requirejs("core");
|
||||
|
||||
t.requirejs("jquery"), t.requirejs("foxui");
|
||||
|
||||
Page({
|
||||
onPullDownRefresh: function() {
|
||||
this.onLoad();
|
||||
},
|
||||
data: {
|
||||
list: {},
|
||||
emptyHint: !1,
|
||||
label: "/static/images/label.png"
|
||||
},
|
||||
onLoad: function() {
|
||||
var a = this;
|
||||
e.get("bargain/get_list", {}, function(t) {
|
||||
a.setData({
|
||||
list: t.list
|
||||
}), 0 == t.error && setTimeout(function() {
|
||||
wx.stopPullDownRefresh();
|
||||
}, 1500);
|
||||
}), t.getCache("isIpx") ? a.setData({
|
||||
isIpx: !0,
|
||||
iphonexnavbar: "fui-iphonex-navbar"
|
||||
}) : a.setData({
|
||||
isIpx: !1,
|
||||
iphonexnavbar: ""
|
||||
});
|
||||
},
|
||||
bindFocus: function() {
|
||||
this.setData({
|
||||
fromsearch: !0
|
||||
});
|
||||
},
|
||||
bindback: function() {
|
||||
this.setData({
|
||||
fromsearch: !1
|
||||
}), this.onLoad();
|
||||
},
|
||||
bindSearch: function(t) {
|
||||
var a = this, i = t.detail.value;
|
||||
e.get("bargain/get_list", {
|
||||
keywords: i
|
||||
}, function(t) {
|
||||
t.list.length <= 0 ? a.setData({
|
||||
emptyHint: !0
|
||||
}) : a.setData({
|
||||
emptyHint: !1
|
||||
}), a.setData({
|
||||
list: t.list
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
8
bargain/index/index.json
Normal file
8
bargain/index/index.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"navigationBarBackgroundColor": "#ffffff",
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "全部砍价",
|
||||
"enablePullDownRefresh": true,
|
||||
"backgroundTextStyle": "dark",
|
||||
"usingComponents": {}
|
||||
}
|
55
bargain/index/index.wxml
Normal file
55
bargain/index/index.wxml
Normal file
@ -0,0 +1,55 @@
|
||||
<view class="page navbar bargain">
|
||||
<view class="fui-header flex">
|
||||
<view class="searchbar flex1">
|
||||
<text class="icox icox-search"></text>
|
||||
<input bindconfirm="bindSearch" bindfocus="bindFocus" bindinput="bindInput" focus="{{focusin}}" name="search" placeholder="输入关键字进行搜索" value="{{params.keywords}}"></input>
|
||||
</view>
|
||||
<view bindtap="bindback" class="cancel" wx:if="{{fromsearch}}">取消</view>
|
||||
</view>
|
||||
<view class="fui-goods-group block" wx:if="{{list}}">
|
||||
<view class="fui-goods-item pull-left" wx:for="{{list}}" wx:key="item">
|
||||
<navigator hoverClass="none" openType="navigate" url="../detail/detail?id={{item.id}}">
|
||||
<view class="image" style="background-image:url({{item.thumb}})"></view>
|
||||
</navigator>
|
||||
<view class="detail goods_list_detail">
|
||||
<navigator hoverClass="none" openType="navigate" url="">
|
||||
<view class="name">
|
||||
<image src="/static/images/label.png"></image>{{item.title}}</view>
|
||||
</navigator>
|
||||
<view class="price">
|
||||
<view class="text">
|
||||
<text wx:if="{{item.type==1}}">¥{{item.end_price}}</text>
|
||||
<text wx:else>砍多少减多少</text>
|
||||
</view>
|
||||
<view class="original_price">¥{{item.minprice}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="empty" wx:if="{{!list}}">
|
||||
<view>暂无砍价商品</view>
|
||||
</view>
|
||||
<view class="searchEmpty" wx:if="{{emptyHint}}">
|
||||
<image src="/static/images/search_empty.png"></image>
|
||||
<view class="text">暂时没有任何商品</view>
|
||||
</view>
|
||||
<view class="fui-navbar footer-nav {{iphonexnavbar}}">
|
||||
<navigator class="nav-item" hoverClass="none" openType="switchTab" url="/pages/index/index">
|
||||
<span class="icox icox-shouye1"></span>
|
||||
<span class="label">商城首页</span>
|
||||
</navigator>
|
||||
<navigator class="nav-item active" hoverClass="none" openType="redirect" url="../index/index">
|
||||
<span class="icox icox-quanbukanjia"></span>
|
||||
<span class="label">全部砍价</span>
|
||||
</navigator>
|
||||
<navigator class="nav-item" hoverClass="none" openType="redirect" url="../act/act">
|
||||
<span class="icox icox-kanjiazhong"></span>
|
||||
<span class="label">砍价中</span>
|
||||
</navigator>
|
||||
<navigator class="nav-item" hoverClass="none" openType="redirect" url="../purchase/purchase">
|
||||
<span class="icox icox-yigoumai"></span>
|
||||
<span class="label">已购买</span>
|
||||
</navigator>
|
||||
</view>
|
||||
<view class="{{isIpx?'fui-iphonex-button':''}}"></view>
|
||||
</view>
|
144
bargain/index/index.wxss
Normal file
144
bargain/index/index.wxss
Normal file
@ -0,0 +1,144 @@
|
||||
.fui-header::after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.fui-header .searchbar {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.fui-header .cancel {
|
||||
width: 80rpx;
|
||||
}
|
||||
|
||||
.fui-header .searchbar text.icox {
|
||||
height: 36rpx;
|
||||
vertical-align: middle;
|
||||
position: absolute;
|
||||
top: 15rpx;
|
||||
left: 30rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.fui-header .searchbar input {
|
||||
background: #fff;
|
||||
border-radius: 8rpx;
|
||||
padding-left: 62rpx;
|
||||
font-size: 24rpx;
|
||||
color: #999999;
|
||||
height: 60rpx;
|
||||
line-height: 60rpx;
|
||||
border: none;
|
||||
margin: 0 20rpx;
|
||||
}
|
||||
|
||||
.fui-header .icon {
|
||||
padding-right: 4rpx;
|
||||
}
|
||||
|
||||
.fui-header .cancel {
|
||||
font-size: 30rpx;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.bargain .fui-goods-group {
|
||||
margin-top: 88rpx;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.fui-goods-group.block .fui-goods-item {
|
||||
padding: 0;
|
||||
padding-bottom: 16rpx;
|
||||
}
|
||||
|
||||
.fui-goods-group.block .fui-goods-item:nth-child(2n-1) {
|
||||
padding-right: 8rpx;
|
||||
}
|
||||
|
||||
.fui-goods-group.block .fui-goods-item:nth-child(2n) {
|
||||
padding-left: 8rpx;
|
||||
}
|
||||
|
||||
.bargain .fui-goods-group.block .fui-goods-item .detail {
|
||||
padding: 10px 24rpx 14rpx;
|
||||
}
|
||||
|
||||
.fui-goods-item .detail .price {
|
||||
font-size: 26rpx;
|
||||
margin-top: 14rpx;
|
||||
}
|
||||
|
||||
.fui-goods-item .detail .price .text {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.fui-goods-item .detail .price .original_price {
|
||||
color: #999;
|
||||
font-size: 24rpx;
|
||||
text-decoration: line-through;
|
||||
margin-top: 2rpx;
|
||||
}
|
||||
|
||||
.name image {
|
||||
display: inline-block;
|
||||
width: 50rpx;
|
||||
height: 24rpx;
|
||||
vertical-align: middle;
|
||||
margin-top: -5rpx;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
|
||||
.bargain .empty {
|
||||
text-align: center;
|
||||
padding-top: 88rpx;
|
||||
}
|
||||
|
||||
.bargain .empty view {
|
||||
position: relative;
|
||||
font-size: 28rpx;
|
||||
color: #999;
|
||||
line-height: 128rpx;
|
||||
}
|
||||
|
||||
.bargain .empty view:before {
|
||||
position: absolute;
|
||||
content: '';
|
||||
width: 140rpx;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
top: 60rpx;
|
||||
left: 130rpx;
|
||||
}
|
||||
|
||||
.bargain .empty view:after {
|
||||
position: absolute;
|
||||
content: '';
|
||||
width: 140rpx;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
top: 60rpx;
|
||||
right: 130rpx;
|
||||
}
|
||||
|
||||
.searchEmpty {
|
||||
text-align: center;
|
||||
padding-top: 196rpx;
|
||||
}
|
||||
|
||||
.searchEmpty image {
|
||||
width: 240rpx;
|
||||
height: 240rpx;
|
||||
}
|
||||
|
||||
.searchEmpty .text {
|
||||
line-height: 105rpx;
|
||||
font-size: 28rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.flex1 {
|
||||
-webkit-box-flex: 1;
|
||||
flex: 1;
|
||||
}
|
25
bargain/purchase/purchase.js
Normal file
25
bargain/purchase/purchase.js
Normal file
@ -0,0 +1,25 @@
|
||||
var a = getApp(), e = a.requirejs("core");
|
||||
|
||||
a.requirejs("jquery"), a.requirejs("foxui");
|
||||
|
||||
Page({
|
||||
data: {
|
||||
goods: {},
|
||||
mid: ""
|
||||
},
|
||||
onLoad: function(i) {
|
||||
var r = this;
|
||||
e.get("bargain/purchase", i, function(a) {
|
||||
r.setData({
|
||||
goods: a.goods,
|
||||
mid: a.mid
|
||||
});
|
||||
}), a.getCache("isIpx") ? r.setData({
|
||||
isIpx: !0,
|
||||
iphonexnavbar: "fui-iphonex-navbar"
|
||||
}) : r.setData({
|
||||
isIpx: !1,
|
||||
iphonexnavbar: ""
|
||||
});
|
||||
}
|
||||
});
|
6
bargain/purchase/purchase.json
Normal file
6
bargain/purchase/purchase.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationBarBackgroundColor": "#ffffff",
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "已购买",
|
||||
"usingComponents": {}
|
||||
}
|
37
bargain/purchase/purchase.wxml
Normal file
37
bargain/purchase/purchase.wxml
Normal file
@ -0,0 +1,37 @@
|
||||
<view class="page navbar">
|
||||
<view class="fui-goods-group" wx:if="{{goods}}">
|
||||
<navigator class="fui-goods-item" hoverClass="none" openType="navigate" url="../bargain/bargain?id={{item[0]['actor_id']}}&mid={{mid}}" wx:for="{{goods}}" wx:key="item">
|
||||
<view class="image" style="background-image:url({{item[0]['thumb']}})"></view>
|
||||
<view class="detail goods_list_detail">
|
||||
<view class="name">{{item[0]['title']}}</view>
|
||||
<view class="price">
|
||||
<view class="text original">原价:¥{{item[0]['start_price']}}</view>
|
||||
</view>
|
||||
<view class="currentPrice">当前价:¥{{item[0]['now_price']}}</view>
|
||||
</view>
|
||||
<view class="fui-goods-remark icox icox-qianjin-copy"></view>
|
||||
</navigator>
|
||||
</view>
|
||||
<view class="empty" wx:if="{{!goods}}">
|
||||
<view>暂无已购买砍价商品</view>
|
||||
</view>
|
||||
<view class="fui-navbar footer-nav {{iphonexnavbar}}">
|
||||
<navigator class="nav-item" hoverClass="none" openType="switchTab" url="/pages/index/index">
|
||||
<span class="icox icox-shouye1"></span>
|
||||
<span class="label">商城首页</span>
|
||||
</navigator>
|
||||
<navigator class="nav-item" hoverClass="none" openType="redirect" url="../index/index">
|
||||
<span class="icox icox-quanbukanjia"></span>
|
||||
<span class="label">全部砍价</span>
|
||||
</navigator>
|
||||
<navigator class="nav-item" hoverClass="none" openType="redirect" url="../act/act">
|
||||
<span class="icox icox-kanjiazhong"></span>
|
||||
<span class="label">砍价中</span>
|
||||
</navigator>
|
||||
<navigator class="nav-item active" hoverClass="none" openType="redirect" url="../purchase/purchase">
|
||||
<span class="icox icox-yigoumai"></span>
|
||||
<span class="label">已购买</span>
|
||||
</navigator>
|
||||
</view>
|
||||
<view class="{{isIpx?'fui-iphonex-button':''}}"></view>
|
||||
</view>
|
67
bargain/purchase/purchase.wxss
Normal file
67
bargain/purchase/purchase.wxss
Normal file
@ -0,0 +1,67 @@
|
||||
.fui-goods-item .detail.goods_list_detail .name {
|
||||
height: 56rpx;
|
||||
line-height: 56rpx;
|
||||
-webkit-line-clamp: 1;
|
||||
}
|
||||
|
||||
.fui-goods-item .detail .price {
|
||||
margin-top: 0;
|
||||
height: 46rpx;
|
||||
line-height: 46rpx;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
|
||||
.fui-goods-item .detail .price .text {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.fui-goods-item .detail .price .text.original {
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
.fui-goods-item .detail .currentPrice {
|
||||
height: 60rpx;
|
||||
line-height: 60rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: bold;
|
||||
color: #ff5555;
|
||||
}
|
||||
|
||||
.fui-goods-remark {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 26rpx;
|
||||
margin-left: 30rpx;
|
||||
font-size: 26rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.navbar .empty {
|
||||
text-align: center;
|
||||
padding-top: 88rpx;
|
||||
}
|
||||
|
||||
.navbar .empty view {
|
||||
position: relative;
|
||||
font-size: 28rpx;
|
||||
color: #999;
|
||||
line-height: 128rpx;
|
||||
}
|
||||
|
||||
.navbar .empty view:before {
|
||||
position: absolute;
|
||||
content: '';
|
||||
width: 140rpx;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
top: 60rpx;
|
||||
left: 130rpx;
|
||||
}
|
||||
|
||||
.navbar .empty view:after {
|
||||
position: absolute;
|
||||
content: '';
|
||||
width: 140rpx;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
top: 60rpx;
|
||||
right: 130rpx;
|
||||
}
|
14
bargain/rule/rule.js
Normal file
14
bargain/rule/rule.js
Normal file
@ -0,0 +1,14 @@
|
||||
var e = getApp(), r = e.requirejs("core"), a = (e.requirejs("jquery"), e.requirejs("foxui"),
|
||||
e.requirejs("wxParse/wxParse"));
|
||||
|
||||
Page({
|
||||
data: {
|
||||
list: {}
|
||||
},
|
||||
onLoad: function(e) {
|
||||
var s = this;
|
||||
r.get("bargain/rule", e, function(e) {
|
||||
a.wxParse("wxParseData", "html", e.rule.rule, s, "0");
|
||||
});
|
||||
}
|
||||
});
|
6
bargain/rule/rule.json
Normal file
6
bargain/rule/rule.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationBarBackgroundColor": "#ffffff",
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "规则",
|
||||
"usingComponents": {}
|
||||
}
|
6
bargain/rule/rule.wxml
Normal file
6
bargain/rule/rule.wxml
Normal file
@ -0,0 +1,6 @@
|
||||
<import src="/utils/wxParse/wxParse.wxml"></import>
|
||||
<view class="page" style="background:#fff;padding:0 24rpx">
|
||||
<view class="fui-content">
|
||||
<template is="wxParse" data="{{wxParseData:wxParseData.nodes}}"></template>
|
||||
</view>
|
||||
</view>
|
0
bargain/rule/rule.wxss
Normal file
0
bargain/rule/rule.wxss
Normal file
77
commission/pages/apply/index.js
Normal file
77
commission/pages/apply/index.js
Normal file
@ -0,0 +1,77 @@
|
||||
var a = getApp(), t = a.requirejs("core"), e = a.requirejs("jquery"), n = a.requirejs("foxui");
|
||||
|
||||
Page({
|
||||
data: {},
|
||||
onShow: function() {
|
||||
this.getData();
|
||||
},
|
||||
getData: function() {
|
||||
var a = this;
|
||||
t.get("commission/apply", {}, function(n) {
|
||||
e.isEmptyObject(n.type_array) ? (t.alert(n.message || "没有提现方式!"), setTimeout(function() {
|
||||
70001 == n.error ? wx.redirectTo({
|
||||
url: "/pages/member/info/index"
|
||||
}) : wx.navigateBack();
|
||||
}, 2e3)) : (n.show = !0, e.isArray(n.last_data) && (n.last_data = {}), n.last_data && (n.last_data.alipay1 = n.last_data.alipay,
|
||||
n.last_data.bankcard1 = n.last_data.bankcard), n.bankIndex = n.bankIndex || 0, a.setData(n));
|
||||
}, !1, !0);
|
||||
},
|
||||
typeChange: function(a) {
|
||||
var t = a.currentTarget.dataset.name;
|
||||
this.setData({
|
||||
applytype: t
|
||||
});
|
||||
},
|
||||
bankChange: function(a) {
|
||||
var t = a.detail.value;
|
||||
this.setData({
|
||||
bankIndex: t
|
||||
});
|
||||
},
|
||||
inputChange: function(a) {
|
||||
var t = this.data.last_data, n = a.currentTarget.dataset.type, i = e.trim(a.detail.value);
|
||||
t[n] = i, this.setData({
|
||||
last_data: t
|
||||
});
|
||||
},
|
||||
submit: function(a) {
|
||||
var e, i = this, s = this.data;
|
||||
if (s.cansettle && !s.isSubmit) {
|
||||
if (0 == s.applytype) var r = "提现到余额"; else if (1 == s.applytype) r = "提现到微信钱包"; else if (2 == s.applytype) r = "提现到支付宝"; else if (3 == s.applytype) r = "提现到银行卡";
|
||||
var l = {
|
||||
type: s.applytype
|
||||
};
|
||||
if (2 == s.applytype) {
|
||||
if (!s.last_data.realname) return void n.toast(i, "请填写姓名");
|
||||
if (!s.last_data.alipay) return void n.toast(i, "请填写支付宝帐号");
|
||||
if (!s.last_data.alipay1) return void n.toast(i, "请确认支付宝帐号");
|
||||
if (s.last_data.alipay != s.last_data.alipay1) return void n.toast(i, "两次填写的支付宝不一致");
|
||||
r += "?姓名:" + s.last_data.realname + " 支付宝帐号:" + s.last_data.alipay, l.realname = s.last_data.realname,
|
||||
l.alipay = s.last_data.alipay, l.alipay1 = s.last_data.alipay1;
|
||||
} else if (3 == s.applytype) {
|
||||
if (!s.banklist[s.bankIndex].bankname) return void n.toast(i, "请选择提现银行");
|
||||
if (!s.last_data.realname) return void n.toast(i, "请填写姓名");
|
||||
if (!s.last_data.openbank) return void n.toast(i, "请填写开户行");
|
||||
if (!s.last_data.bankcard) return void n.toast(i, "请填写银行卡号");
|
||||
if (!s.last_data.bankcard1) return void n.toast(i, "请确认银行卡号");
|
||||
if (s.last_data.bankcard != s.last_data.bankcard1) return void n.toast(i, "两次填写的银行卡号不一致");
|
||||
r += "?姓名:" + s.last_data.realname + " 银行:" + s.banklist[s.bankIndex].bankname + "开户行:" + s.last_data.openbank + " 卡号:" + s.last_data.bankcard,
|
||||
l.realname = s.last_data.realname, l.bankname = s.banklist[s.bankIndex].bankname,
|
||||
l.bankcard = s.last_data.bankcard, l.openbank = s.last_data.openbank, l.bankcard1 = s.last_data.bankcard1;
|
||||
}
|
||||
e = s.applytype < 2 ? "确认要" + r + "?" : "确认要" + r, s.set_array.charge > 0 && (e += " 扣除手续费 " + s.deductionmoney + " 元,实际到账金额 " + s.realmoney + " 元"),
|
||||
t.confirm(e, function() {
|
||||
i.setData({
|
||||
isSubmit: !0
|
||||
}), t.post("commission/apply", l, function(a) {
|
||||
if (a.error) return n.toast(i, a.message), void i.setData({
|
||||
isSubmit: !1
|
||||
});
|
||||
n.toast(i, "提现申请成功,请等待审核"), setTimeout(function() {
|
||||
wx.navigateBack();
|
||||
}, 500);
|
||||
}, !0, !0);
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
4
commission/pages/apply/index.json
Normal file
4
commission/pages/apply/index.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "申请提现",
|
||||
"usingComponents": {}
|
||||
}
|
142
commission/pages/apply/index.wxml
Normal file
142
commission/pages/apply/index.wxml
Normal file
@ -0,0 +1,142 @@
|
||||
<loading wx:if="{{!show}}">加载中...</loading>
|
||||
<view class="page apply" wx:if="{{show}}">
|
||||
<view class="fui-cell-group">
|
||||
<view class="fui-cell" style="padding-top:40rpx">
|
||||
<view class="fui-cell-info" style="font-size: .7rem;color: #666;">我的{{set['texts']['commission_ok']}}</view>
|
||||
</view>
|
||||
<view class="fui-cell" style="padding-bottom:40rpx;padding-top:0;">
|
||||
<view class="fui-cell-label price">¥</view>
|
||||
<view class="fui-cell-info price">{{commission_ok}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell-group">
|
||||
<view class="fui-cell">
|
||||
<view class="fui-cell-label">提现方式</view>
|
||||
</view>
|
||||
<radio-group wx:for="{{type_array}}" wx:key="item">
|
||||
<label bindtap="typeChange" data-name="0" wx:if="{{item.type=='0'}}">
|
||||
<view class="fui-cell applyradio">
|
||||
<view class="fui-cell-icon">
|
||||
<image alt="" src="/static/images/icon-white/ye.png"></image>
|
||||
</view>
|
||||
<view class="fui-cell-info">
|
||||
{{item.title}}
|
||||
</view>
|
||||
<view class="fui-cell-remark noremark">
|
||||
<radio checked="{{applytype==0?'checked':''}}" class="fui-radio fui-radio-danger" color="#ff5555" data-type="0" id="applytype" value="1"></radio>
|
||||
</view>
|
||||
</view>
|
||||
</label>
|
||||
<label bindtap="typeChange" data-name="1" wx:if="{{item.type=='1'}}">
|
||||
<view class="fui-cell applyradio">
|
||||
<view class="fui-cell-icon">
|
||||
<image alt="" src="/static/images/icon-white/wx.png"></image>
|
||||
</view>
|
||||
<view class="fui-cell-info">
|
||||
{{item.title}}
|
||||
</view>
|
||||
<view class="fui-cell-remark noremark">
|
||||
<radio checked="{{applytype==1?'checked':''}}" class="fui-radio fui-radio-danger" color="#ff5555" data-type="1" value="1"></radio>
|
||||
</view>
|
||||
</view>
|
||||
</label>
|
||||
<label bindtap="typeChange" data-name="2" wx:if="{{item.type=='2'}}">
|
||||
<view class="fui-cell applyradio">
|
||||
<view class="fui-cell-icon">
|
||||
<image alt="" src="/static/images/icon-white/zfb.png"></image>
|
||||
</view>
|
||||
<view class="fui-cell-info">
|
||||
{{item.title}}
|
||||
</view>
|
||||
<view class="fui-cell-remark noremark">
|
||||
<radio checked="{{applytype==2?'checked':''}}" class="fui-radio fui-radio-danger" color="#ff5555" data-type="2" value="1"></radio>
|
||||
</view>
|
||||
</view>
|
||||
</label>
|
||||
<block wx:if="{{applytype==2&&item.type=='2'}}">
|
||||
<view class="fui-cell">
|
||||
<view class="fui-cell-label">姓名</view>
|
||||
<view class="fui-cell-info">
|
||||
<input bindinput="inputChange" class="fui-input" data-type="realname" max="25" placeholder="请输入姓名" type="text" value="{{last_data.realname}}"></input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell">
|
||||
<view class="fui-cell-label">支付宝帐号</view>
|
||||
<view class="fui-cell-info">
|
||||
<input bindinput="inputChange" class="fui-input" data-type="alipay" max="25" placeholder="请输入支付宝账号" value="{{last_data.alipay}}"></input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell alipay-group">
|
||||
<view class="fui-cell-label">确认帐号</view>
|
||||
<view class="fui-cell-info">
|
||||
<input bindinput="inputChange" class="fui-input" data-type="alipay1" max="25" placeholder="请确认支付宝账号" value="{{last_data.alipay1}}"></input>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<label bindtap="typeChange" data-name="3" wx:if="{{item.type=='3'}}">
|
||||
<view class="fui-cell applyradio">
|
||||
<view class="fui-cell-icon">
|
||||
<image alt="" src="/static/images/icon-white/yinhangka.png"></image>
|
||||
</view>
|
||||
<view class="fui-cell-info">
|
||||
{{item.title}}
|
||||
</view>
|
||||
<view class="fui-cell-remark noremark">
|
||||
<radio checked="{{applytype==3?'checked':''}}" class="fui-radio fui-radio-danger" color="#ff5555" data-type="3" value="1"></radio>
|
||||
</view>
|
||||
</view>
|
||||
</label>
|
||||
</radio-group>
|
||||
<view class="fui-cell" wx:if="{{applytype==3}}">
|
||||
<view class="fui-cell-label">姓名</view>
|
||||
<view class="fui-cell-info">
|
||||
<input bindinput="inputChange" class="fui-input" data-type="realname" max="25" placeholder="请输入姓名" type="text" value="{{last_data.realname}}"></input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell" wx:if="{{applytype==3}}">
|
||||
<view class="fui-cell-label">
|
||||
<span class="re-g">选择银行</span>
|
||||
</view>
|
||||
<picker bindchange="bankChange" class="fui-cell-info" range="{{banklist}}" rangeKey="bankname" value="{{bankIndex}}">{{banklist[bankIndex]['bankname']}}</picker>
|
||||
<view class="fui-cell-remark"></view>
|
||||
</view>
|
||||
<block wx:if="{{applytype==3}}">
|
||||
<view class="fui-cell alipay-group">
|
||||
<view class="fui-cell-label">开户行</view>
|
||||
<view class="fui-cell-info">
|
||||
<input bindinput="inputChange" class="fui-input" data-type="openbank" max="25" placeholder="请输入开户行" value="{{last_data.openbank}}"></input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell alipay-group">
|
||||
<view class="fui-cell-label">银行卡号</view>
|
||||
<view class="fui-cell-info">
|
||||
<input bindinput="inputChange" class="fui-input" data-type="bankcard" max="25" placeholder="请输入银行卡号" value="{{last_data.bankcard}}"></input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell alipay-group">
|
||||
<view class="fui-cell-label">确认卡号</view>
|
||||
<view class="fui-cell-info">
|
||||
<input bindinput="inputChange" class="fui-input" data-type="bankcard1" max="25" placeholder="请确认银行卡号" value="{{last_data.bankcard1}}"></input>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="fui-cell-group" wx:if="{{set_array['charge']>0}}">
|
||||
<view class="fui-cell">
|
||||
<view class="fui-cell-info"> 佣金提现{{set['texts']['commission_charge']}} {{set_array['charge']}}%</view>
|
||||
</view>
|
||||
<view class="fui-cell" wx:if="{{set_array['end']>0}}">
|
||||
<view class="fui-cell-info"> {{set['texts']['commission_charge']}}金额在¥{{set_array['begin']}}到¥{{set_array['end']}}间免收</view>
|
||||
</view>
|
||||
<view class="fui-cell" wx:if="{{deductionmoney>0}}">
|
||||
<view class="fui-cell-info"> 本次提现将{{set['texts']['commission_charge']}}金额 ¥ {{deductionmoney}}</view>
|
||||
</view>
|
||||
<view class="fui-cell">
|
||||
<view class="fui-cell-info">本次提现实际到账金额 ¥ {{realmoney}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view bindtap="submit" class="btn btn-warning mtop block {{!cansettle||isSubmit?'disabled':''}}">下一步</view>
|
||||
<view class="fui-toast {{FoxUIToast.show?'in':'out'}}">
|
||||
<view class="text">{{FoxUIToast.text}}</view>
|
||||
</view>
|
||||
</view>
|
23
commission/pages/apply/index.wxss
Normal file
23
commission/pages/apply/index.wxss
Normal file
@ -0,0 +1,23 @@
|
||||
.apply .fui-cell {
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.fui-cell-group .fui-cell .fui-cell-icon {
|
||||
width: auto;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.apply .fui-cell image {
|
||||
width: 52rpx;
|
||||
height: 52rpx;
|
||||
}
|
||||
|
||||
.apply .fui-cell .price {
|
||||
font-size: 40rpx;
|
||||
width: 40rpx;
|
||||
color: #ff8000;
|
||||
}
|
||||
|
||||
.fui-cell-group .fui-cell::before {
|
||||
display: none;
|
||||
}
|
53
commission/pages/down/index.js
Normal file
53
commission/pages/down/index.js
Normal file
@ -0,0 +1,53 @@
|
||||
var t = getApp().requirejs("core");
|
||||
|
||||
Page({
|
||||
data: {
|
||||
level: 1,
|
||||
page: 1,
|
||||
list: [],
|
||||
canUser: !0
|
||||
},
|
||||
onLoad: function() {
|
||||
this.getSet(), this.getList();
|
||||
},
|
||||
onReachBottom: function() {
|
||||
this.data.loaded || this.data.list.length == this.data.total || this.getList();
|
||||
},
|
||||
onPullDownRefresh: function() {
|
||||
wx.stopPullDownRefresh();
|
||||
},
|
||||
getSet: function() {
|
||||
var e = this;
|
||||
t.get("commission/down/get_set", {}, function(t) {
|
||||
wx.setNavigationBarTitle({
|
||||
title: t.textdown + "(" + t.total + ")"
|
||||
}), delete t.error, t.show = !0, e.setData(t);
|
||||
});
|
||||
},
|
||||
getList: function() {
|
||||
var e = this;
|
||||
t.get("commission/down/get_list", {
|
||||
page: e.data.page,
|
||||
level: e.data.level
|
||||
}, function(t) {
|
||||
var a = {
|
||||
total: t.total,
|
||||
pagesize: t.pagesize
|
||||
};
|
||||
t.list.length > 0 && (a.page = e.data.page + 1, a.list = e.data.list.concat(t.list),
|
||||
t.list.length < t.pagesize && (a.loaded = !0)), e.setData(a);
|
||||
}, this.data.show);
|
||||
},
|
||||
myTab: function(e) {
|
||||
var a = this, s = t.pdata(e).level;
|
||||
if (a.setData({
|
||||
level: s,
|
||||
page: 1,
|
||||
list: [],
|
||||
loaded: !1
|
||||
}), !a.data.canUser) return !1;
|
||||
a.data.canUser = !1, setTimeout(function() {
|
||||
a.getList(), a.data.canUser = !0;
|
||||
}, 300);
|
||||
}
|
||||
});
|
5
commission/pages/down/index.json
Normal file
5
commission/pages/down/index.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"enablePullDownRefresh": true,
|
||||
"backgroundTextStyle": "dark",
|
||||
"usingComponents": {}
|
||||
}
|
39
commission/pages/down/index.wxml
Normal file
39
commission/pages/down/index.wxml
Normal file
@ -0,0 +1,39 @@
|
||||
<loading wx:if="{{!show}}">加载中...</loading>
|
||||
<view class="page navbar com-down" wx:if="{{show}}">
|
||||
<view class="fui-tab fui-tab-warning">
|
||||
<view bindtap="myTab" class="item {{level==item.level?'active':''}}" data-level="{{item.level}}" wx:for="{{levels}}">{{item.name}}(<text>{{item.total}}</text>)</view>
|
||||
</view>
|
||||
<view class="fui-title" wx:if="{{list.length>0}}">
|
||||
<i class="icox icox-star text-danger"></i> 代表已成为{{textagent}}的{{down}}
|
||||
</view>
|
||||
<view class="fui-list-group" wx:if="{{list.length>0}}">
|
||||
<view class="fui-list" wx:for="{{list}}">
|
||||
<view class="fui-list-media">
|
||||
<image src="{{item.avatar}}"></image>
|
||||
</view>
|
||||
<view class="fui-list-inner">
|
||||
<view class="row">
|
||||
<view class="row-text">
|
||||
<i class="icox icox-star text-danger" wx:if="{{item.isagent==1&&item.status==1}}"></i>{{item.nickname||'未获取'}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="subtitle" wx:if="{{item.isagent==1&&item.status==1}}">成为{{textagent}}时间: {{item.agenttime}}</view>
|
||||
<view class="subtitle" wx:else>注册时间: {{item.createtime}}</view>
|
||||
</view>
|
||||
<view class="row-remark" wx:if="{{item.isagent==1&&item.status==1}}">
|
||||
<view>+{{item.commission_total}}</view>
|
||||
<view>{{item.agentcount}}个成员</view>
|
||||
</view>
|
||||
<view class="row-remark" wx:else>
|
||||
<view>消费: {{item.moneycount+textyuan}}</view>
|
||||
<view>{{item.ordercount}}个订单</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="center" wx:if="{{list.length<1}}">
|
||||
<view class="empty-tip">
|
||||
<image class="light" src="/static/images/icon/nomeb.png"></image>
|
||||
<view class="text-cancel">暂时没有任何数据</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
35
commission/pages/down/index.wxss
Normal file
35
commission/pages/down/index.wxss
Normal file
@ -0,0 +1,35 @@
|
||||
@import "../../static/css/commission.wxss";
|
||||
|
||||
.com-down .subtitle {
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.com-down .image-32 {
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
}
|
||||
|
||||
image {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.com-down .fui-list-media image {
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.com-down .fui-list-inner .row {
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
.com-down .row-remark {
|
||||
text-align: right;
|
||||
position: relative;
|
||||
flex-shrink: 0;
|
||||
padding-left: 25rpx;
|
||||
min-width: 150rpx;
|
||||
color: #000;
|
||||
font-size: 24rpx;
|
||||
}
|
23
commission/pages/index.js
Normal file
23
commission/pages/index.js
Normal file
@ -0,0 +1,23 @@
|
||||
var t = getApp().requirejs("core");
|
||||
|
||||
Page({
|
||||
data: {},
|
||||
onLoad: function(t) {
|
||||
this.setData({
|
||||
options: t
|
||||
});
|
||||
},
|
||||
onShow: function() {
|
||||
this.getData();
|
||||
},
|
||||
getData: function() {
|
||||
var e = this;
|
||||
t.get("commission/index", {}, function(t) {
|
||||
7e4 != t.error ? (t.show = !0, e.setData(t), wx.setNavigationBarTitle({
|
||||
title: t.set.texts.center
|
||||
})) : wx.redirectTo({
|
||||
url: "/commission/pages/register/index"
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
4
commission/pages/index.json
Normal file
4
commission/pages/index.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "分销中心",
|
||||
"usingComponents": {}
|
||||
}
|
99
commission/pages/index.wxml
Normal file
99
commission/pages/index.wxml
Normal file
@ -0,0 +1,99 @@
|
||||
<loading wx:if="{{!show}}">加载中...</loading>
|
||||
<view class="page commission" wx:if="{{show}}">
|
||||
<view class="user-info">
|
||||
<view class="fui-list">
|
||||
<view class="fui-list-media">
|
||||
<image src="{{member['avatar']}}"></image>
|
||||
</view>
|
||||
<view class="fui-list-inner">
|
||||
<view class="title">{{member['nickname']}}</view>
|
||||
<view class="text">{{set['texts']['up']}}:{{agentname}}</view>
|
||||
<view class="subtitle">{{levelname}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell-group" wx:if="{{set['hideicode']==0}}">
|
||||
<view class="fui-cell">
|
||||
<view class="fui-cell-icon">
|
||||
<text class="icox icox-yaoqingma" style="color: #feb312;"></text>
|
||||
</view>
|
||||
<view class="fui-cell-text">我的{{set['texts']['icode']}}:{{member['id']}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="userblock">
|
||||
<view class="line total">
|
||||
<view class="num">{{member['commission_pay']}}</view>
|
||||
<view class="title">{{set['texts']['commission_pay']}}({{set['texts']['yuan']}})</view>
|
||||
</view>
|
||||
<view class="line able">
|
||||
<view class="text">
|
||||
<view class="num">{{member['commission_ok']}}</view>
|
||||
<view class="title">{{set['texts']['commission_ok']}}({{set['texts']['yuan']}})</view>
|
||||
</view>
|
||||
<navigator class="btn btn-warning pull-right {{member['commission_ok']==0?' disabled':''}}" hoverClass="none" openType="navigate" url="{{member['commission_ok']==0?'':'./withdraw/index'}}">{{set['texts']['commission']}}{{set['texts']['withdraw']}}</navigator>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-block-group">
|
||||
<navigator class="fui-block-child" url="./withdraw/index">
|
||||
<view class="icon" style="color: #ff4357;">
|
||||
<i class="icox icox-qian"></i>
|
||||
</view>
|
||||
<view class="text">
|
||||
<view class="title">{{set['texts']['commission1']}}</view>
|
||||
<text>{{member['commission_total']}}</text>
|
||||
{{set['texts']['yuan']}}
|
||||
</view>
|
||||
</navigator>
|
||||
<navigator class="fui-block-child" url="./order/index">
|
||||
<view class="icon" style="color: #9ec9f4;">
|
||||
<i class="icox icox-dingdan2"></i>
|
||||
</view>
|
||||
<view class="text">
|
||||
<view class="title">{{set['texts']['order']}}</view>
|
||||
<text>{{member['ordercount0']}}</text>
|
||||
笔
|
||||
</view>
|
||||
</navigator>
|
||||
<navigator class="fui-block-child" url="./log/index">
|
||||
<view class="icon" style="color: #ffbe2e;">
|
||||
<i class="icox icox-tixian1"></i>
|
||||
</view>
|
||||
<view class="text">
|
||||
<view class="title">{{set['texts']['commission_detail']}}</view>
|
||||
<text>{{member['applycount']}}</text>
|
||||
笔
|
||||
</view>
|
||||
</navigator>
|
||||
<navigator class="fui-block-child" url="./down/index">
|
||||
<view class="icon" style="color: #ff6e02;">
|
||||
<i class="icox icox-heilongjiangtubiao11"></i>
|
||||
</view>
|
||||
<view class="text">
|
||||
<view class="title">{{set['texts']['mydown']}}</view>
|
||||
<text>{{member['downcount']}}</text>
|
||||
人
|
||||
</view>
|
||||
</navigator>
|
||||
</view>
|
||||
<navigator class="fui-cell-group" url="/dividend/pages/index/index" wx:if="{{set.commissionshow==1}}">
|
||||
<view class="fui-cell">
|
||||
<view class="fui-cell-icon">
|
||||
<text class="icox {{set.postercount>0?'icox-zhuyi':'icox-erweima1'}}" style="color: #feb312;"></text>
|
||||
</view>
|
||||
<view class="fui-cell-text">分红中心</view>
|
||||
<view class="fui-cell-remark" style="font-size: 20rpx;"></view>
|
||||
</view>
|
||||
</navigator>
|
||||
<navigator class="fui-cell-group" url="{{set.postercount>0?'./poster/index':'./qrcode/index'}}" wx:if="{{set.closed_qrcode==0||set.postercount>0}}">
|
||||
<view class="fui-cell">
|
||||
<view class="fui-cell-icon">
|
||||
<text class="icox {{set.postercount>0?'icox-zhuyi':'icox-erweima1'}}" style="color: #feb312;"></text>
|
||||
</view>
|
||||
<view class="fui-cell-text">{{set.postercount>0?'邀请您的好友':'推广二维码'}}</view>
|
||||
<view class="fui-cell-remark" style="font-size: 20rpx;"></view>
|
||||
</view>
|
||||
</navigator>
|
||||
</view>
|
||||
<navigator class="commission-shouye" openType="switchTab" url="/pages/index/index">
|
||||
<text class="icox icox-shouye"></text>
|
||||
</navigator>
|
268
commission/pages/index.wxss
Normal file
268
commission/pages/index.wxss
Normal file
@ -0,0 +1,268 @@
|
||||
.commission .user-info {
|
||||
width: 100%;
|
||||
border-bottom: 1px solid #fea23d;
|
||||
background: #fea23d;
|
||||
padding: 8rpx 0;
|
||||
}
|
||||
|
||||
.commission .user-info image {
|
||||
border-radius: 50%;
|
||||
width: 120rpx;
|
||||
height: 120rpx;
|
||||
}
|
||||
|
||||
.commission .fui-list-media {
|
||||
margin-right: 28rpx;
|
||||
}
|
||||
|
||||
.commission .user-info .title {
|
||||
color: #fff;
|
||||
font-size: 28rpx;
|
||||
line-height: 40rpx;
|
||||
font-weight: bold;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.commission .user-info .subtitle {
|
||||
color: #fff;
|
||||
font-size: 22rpx;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
width: auto;
|
||||
display: inline-block;
|
||||
border: 1rpx solid #fff;
|
||||
border-radius: 34rpx;
|
||||
line-height: 32rpx;
|
||||
max-width: 100%;
|
||||
padding: 0 12rpx;
|
||||
box-sizing: border-box;
|
||||
height: 36rpx;
|
||||
}
|
||||
|
||||
.commission .user-info .text {
|
||||
color: #fff;
|
||||
font-size: 22rpx;
|
||||
line-height: 40rpx;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.commission .userblock {
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
.commission .userblock .line {
|
||||
padding: 15rpx 0 15rpx 0;
|
||||
}
|
||||
|
||||
.commission .userblock .line.total {
|
||||
height: 166rpx;
|
||||
background: #fff;
|
||||
padding: 32rpx 24rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.commission .userblock .line.total .title {
|
||||
color: #000;
|
||||
font-size: 24rpx;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.commission .userblock .line.total .num {
|
||||
font-size: 40rpx;
|
||||
color: #ff8000;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.commission .userblock .line.able {
|
||||
font-size: 27rpx;
|
||||
height: 166rpx;
|
||||
background: #fff;
|
||||
padding: 0 24rpx;
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
-webkit-box-pack: justify;
|
||||
-ms-flex-pack: justify;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.commission .userblock .line.able .num {
|
||||
font-size: 40rpx;
|
||||
color: #ff8000;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.commission .userblock .line .text {
|
||||
padding-right: 230rpx;
|
||||
}
|
||||
|
||||
.commission .userblock .line .btn {
|
||||
width: auto;
|
||||
padding: 0 24rpx;
|
||||
border: 1px solid #fff;
|
||||
border-radius: 56rpx;
|
||||
height: 56rpx;
|
||||
line-height: 54rpx;
|
||||
margin-right: 0;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
|
||||
.commission .userblock .line.able:after {
|
||||
content: " ";
|
||||
position: absolute;
|
||||
left: 20rpx;
|
||||
right: 20rpx;
|
||||
top: -1px;
|
||||
height: 1px;
|
||||
border-top: 1px solid #ebebeb;
|
||||
color: #D9D9D9;
|
||||
transform-origin: 0 0;
|
||||
transform: scaleY(0.5);
|
||||
}
|
||||
|
||||
.commission .fui-block-group {
|
||||
}
|
||||
|
||||
.commission .fui-block-group:after {
|
||||
content: " ";
|
||||
position: absolute;
|
||||
left: 20rpx;
|
||||
right: 20rpx;
|
||||
top: 50%;
|
||||
height: 1px;
|
||||
border-top: 1px solid #ebebeb;
|
||||
color: #D9D9D9;
|
||||
transform-origin: 0 0;
|
||||
transform: scaleY(0.5);
|
||||
}
|
||||
|
||||
.commission .fui-block-group:before {
|
||||
content: " ";
|
||||
position: absolute;
|
||||
top: 20rpx;
|
||||
bottom: 20rpx;
|
||||
left: 50%;
|
||||
width: 1px;
|
||||
border-left: 1px solid #ebebeb;
|
||||
color: #D9D9D9;
|
||||
transform-origin: 0 0;
|
||||
transform: scaleX(0.5);
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.commission .fui-block-group .fui-block-child {
|
||||
width: 50%;
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
-webkit-box-pack: start;
|
||||
-ms-flex-pack: start;
|
||||
justify-content: flex-start;
|
||||
padding-left: 24rpx;
|
||||
height: 148rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.fui-block-group .fui-block-child::after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.fui-block-group .fui-block-child::before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.commission .fui-block-group .fui-block-child .icon {
|
||||
height: auto;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.fui-block-group .fui-block-child .icon i {
|
||||
font-size: 52rpx;
|
||||
}
|
||||
|
||||
.commission .fui-block-group .fui-block-child .icon image {
|
||||
width: 70rpx;
|
||||
height: 70rpx;
|
||||
}
|
||||
|
||||
.commission .fui-block-group .fui-block-child .text {
|
||||
height: auto;
|
||||
line-height: 1.5;
|
||||
margin-left: 24rpx;
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.commission .fui-block-group .fui-block-child .title {
|
||||
height: auto;
|
||||
line-height: normal;
|
||||
font-size: 28rpx;
|
||||
color: #000;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.commission .fui-block-group .fui-block-child .text text {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.edtion {
|
||||
width: 100%;
|
||||
position: fixed;
|
||||
bottom: 100rpx;
|
||||
color: #999999;
|
||||
font-size: 14px;
|
||||
text-align: center;
|
||||
padding: 20rpx 0;
|
||||
}
|
||||
|
||||
.commission-shouye {
|
||||
position: fixed;
|
||||
right: 20rpx;
|
||||
z-index: 999;
|
||||
font-size: 22rpx;
|
||||
color: #fff;
|
||||
width: 84rpx;
|
||||
height: 84rpx;
|
||||
transition: all .7s;
|
||||
background: rgba(0,0,0,0.5);
|
||||
bottom: 280rpx;
|
||||
}
|
||||
|
||||
.commission-shouye {
|
||||
width: 90rpx;
|
||||
height: 90rpx;
|
||||
background: #ff5555;
|
||||
position: fixed;
|
||||
right: 20rpx;
|
||||
bottom: 80rpx;
|
||||
border-radius: 50%;
|
||||
text-align: center;
|
||||
padding: 0;
|
||||
line-height: 90rpx;
|
||||
}
|
||||
|
||||
.commission-shouye {
|
||||
bottom: 235rpx;
|
||||
}
|
||||
|
||||
.commission-shouye .icox {
|
||||
font-size: 50rpx;
|
||||
color: #fff;
|
||||
}
|
36
commission/pages/log/detail.js
Normal file
36
commission/pages/log/detail.js
Normal file
@ -0,0 +1,36 @@
|
||||
var t = getApp().requirejs("core");
|
||||
|
||||
Page({
|
||||
data: {
|
||||
page: 1,
|
||||
list: []
|
||||
},
|
||||
onLoad: function(t) {
|
||||
t.id > 0 && this.setData({
|
||||
id: t.id
|
||||
}), this.getList();
|
||||
},
|
||||
onReachBottom: function() {
|
||||
this.data.loaded || this.data.list.length == this.data.total || this.getList();
|
||||
},
|
||||
onPullDownRefresh: function() {
|
||||
wx.stopPullDownRefresh();
|
||||
},
|
||||
getList: function() {
|
||||
var a = this;
|
||||
t.get("commission/log/detail_list", {
|
||||
page: a.data.page,
|
||||
id: a.data.id
|
||||
}, function(t) {
|
||||
var e = {
|
||||
total: t.total,
|
||||
pagesize: t.pagesize,
|
||||
show: !0,
|
||||
textyuan: t.textyuan,
|
||||
textcomm: t.textcomm
|
||||
};
|
||||
t.list.length > 0 && (e.page = a.data.page + 1, e.list = a.data.list.concat(t.list),
|
||||
t.list.length < t.pagesize && (e.loaded = !0)), a.setData(e);
|
||||
}, this.data.show);
|
||||
}
|
||||
});
|
4
commission/pages/log/detail.json
Normal file
4
commission/pages/log/detail.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "详情",
|
||||
"usingComponents": {}
|
||||
}
|
34
commission/pages/log/detail.wxml
Normal file
34
commission/pages/log/detail.wxml
Normal file
@ -0,0 +1,34 @@
|
||||
<loading wx:if="{{!show}}">加载中...</loading>
|
||||
<view class="page log-detail" wx:if="{{show}}">
|
||||
<view class="fui-list-group" wx:for="{{list}}">
|
||||
<view class="fui-list" style="font-size: 24rpx;color: #000;">
|
||||
<text selectable="true" style="margin-right:40rpx">申请{{textcomm}}: {{item.ordercommission+textyuan}}</text>
|
||||
<text selectable="true">审核{{textcomm}}: {{item.orderpay+textyuan}}</text>
|
||||
</view>
|
||||
<view class="fui-list" style="background: #f9f9f9" wx:for="{{item.goods}}" wx:for-item="g">
|
||||
<view class="fui-list-media">
|
||||
<image src="{{g.thumb}}"></image>
|
||||
</view>
|
||||
<view class="fui-list-inner">
|
||||
<view class="row">
|
||||
<view class="row-text">{{g.title}}</view>
|
||||
</view>
|
||||
<view class="subtitle">{{textcomm}}: {{g.commission+textyuan}}</view>
|
||||
</view>
|
||||
<view class="row-remark">
|
||||
<view>{{g.level}}级</view>
|
||||
<view class="text-danger">{{g.statusstr}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-list">
|
||||
<view class="fui-list-inner">
|
||||
<view class="subtitle2">
|
||||
<text selectable="true">订单编号: {{item.ordersn}}</text>
|
||||
</view>
|
||||
<view class="subtitle2">
|
||||
<text selectable="true">订单金额: {{item.goodsprice+textyuan}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
26
commission/pages/log/detail.wxss
Normal file
26
commission/pages/log/detail.wxss
Normal file
@ -0,0 +1,26 @@
|
||||
@import "../../static/css/commission.wxss";
|
||||
|
||||
.log-detail .fui-list .fui-list-inner .subtitle {
|
||||
font-size: 24rpx;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.log-detail .fui-list .fui-list-inner .row .row-text {
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.log-detail .row-remark {
|
||||
text-align: right;
|
||||
position: relative;
|
||||
flex-shrink: 0;
|
||||
padding-left: 25rpx;
|
||||
font-size: 24rpx;
|
||||
color: #000;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.log-detail .fui-list .fui-list-inner .subtitle2 {
|
||||
font-size: 22rpx;
|
||||
color: #999;
|
||||
}
|
47
commission/pages/log/index.js
Normal file
47
commission/pages/log/index.js
Normal file
@ -0,0 +1,47 @@
|
||||
var t = getApp().requirejs("core");
|
||||
|
||||
Page({
|
||||
data: {
|
||||
status: 0,
|
||||
page: 1,
|
||||
list: []
|
||||
},
|
||||
onLoad: function() {
|
||||
this.getList();
|
||||
},
|
||||
onReachBottom: function() {
|
||||
this.data.loaded || this.data.list.length == this.data.total || this.getList();
|
||||
},
|
||||
onPullDownRefresh: function() {
|
||||
wx.stopPullDownRefresh();
|
||||
},
|
||||
getList: function() {
|
||||
var a = this;
|
||||
t.get("commission/log/get_list", {
|
||||
page: a.data.page,
|
||||
status: a.data.status
|
||||
}, function(t) {
|
||||
var s = {
|
||||
total: t.total,
|
||||
pagesize: t.pagesize,
|
||||
commissioncount: t.commissioncount,
|
||||
textyuan: t.textyuan,
|
||||
textcomm: t.textcomm,
|
||||
textcomd: t.textcomd,
|
||||
show: !0
|
||||
};
|
||||
t.list.length > 0 && (s.page = a.data.page + 1, s.list = a.data.list.concat(t.list),
|
||||
t.list.length < t.pagesize && (s.loaded = !0)), a.setData(s), wx.setNavigationBarTitle({
|
||||
title: t.textcomd + "(" + t.total + ")"
|
||||
});
|
||||
}, this.data.show);
|
||||
},
|
||||
myTab: function(a) {
|
||||
var s = t.pdata(a).status;
|
||||
this.setData({
|
||||
status: s,
|
||||
page: 1,
|
||||
list: []
|
||||
}), this.getList();
|
||||
}
|
||||
});
|
5
commission/pages/log/index.json
Normal file
5
commission/pages/log/index.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"enablePullDownRefresh": true,
|
||||
"backgroundTextStyle": "dark",
|
||||
"usingComponents": {}
|
||||
}
|
55
commission/pages/log/index.wxml
Normal file
55
commission/pages/log/index.wxml
Normal file
@ -0,0 +1,55 @@
|
||||
<loading wx:if="{{!show}}">加载中...</loading>
|
||||
<view class="page com-log" wx:if="{{show}}">
|
||||
<view class="fui-cell-group" style="margin-top:0px;background: #fea23d;color: #fff;">
|
||||
<view class="fui-cell">
|
||||
<view class="fui-cell-info" style="width:auto;color: #fff;text-align:left">预计{{textcomm}}<text>+{{commissioncount}}</text>{{textyuan}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-tab fui-tab-warning">
|
||||
<view bindtap="myTab" class="item {{status==0?'active':''}}" data-status="0">所有</view>
|
||||
<view bindtap="myTab" class="item {{status==1?'active':''}}" data-status="1">待审核</view>
|
||||
<view bindtap="myTab" class="item {{status==2?'active':''}}" data-status="2">待打款</view>
|
||||
<view bindtap="myTab" class="item {{status==3?'active':''}}" data-status="3">已打款</view>
|
||||
<view bindtap="myTab" class="item {{status==4?'active':''}}" data-status="4">无效</view>
|
||||
</view>
|
||||
<view class="fui-list-group" style="background:#f3f3f3" wx:if="{{list.length>0}}">
|
||||
<navigator hoverClass="none" openType="navigate" style="background:#fff; display:block;margin-top: 20rpx;" url="../log/detail?id={{item.id}}" wx:for="{{list}}">
|
||||
<view class="fui-list">
|
||||
<view class="fui-list-inner">
|
||||
<view class="row">
|
||||
<view class="row-text" wx:if="{{item.type==0}}">提现到余额</view>
|
||||
<view class="row-text" wx:if="{{item.type==1}}">提现到微信红包</view>
|
||||
<view class="row-text" wx:if="{{item.type==2}}">提现到支付宝</view>
|
||||
<view class="row-text" wx:if="{{item.type==3}}">提现到银行卡</view>
|
||||
</view>
|
||||
<view class="subtitle">{{item.dealtime}}</view>
|
||||
</view>
|
||||
<view class="row-remark">
|
||||
<view style="font-size: 30rpx;{{item.status==-1?'color:#b2b2b2;':''}}{{item.status==-2?'color:#b2b2b2;':''}}">+{{item.commission_pay}}</view>
|
||||
<view style="color:#b2b2b2;{{item.status==1?'color:#ff8000;':''}}{{item.status==2?'color:#ff5555;':''}}{{item.status==3?'color:#04ab02;':''}}">{{item.statusstr}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-list particulars">
|
||||
<view class="div">
|
||||
<view>申请{{textcomm}}</view>
|
||||
<view style="color: #999">{{item.commission}}</view>
|
||||
</view>
|
||||
<view class="div">
|
||||
<view>实际金额</view>
|
||||
<view style="color: #999">{{item.deductionmoney}}</view>
|
||||
</view>
|
||||
<view class="div">
|
||||
<view>提现手续费</view>
|
||||
<view style="color: #999">{{item.deductionmoney+textyuan}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-list-inner" style="background: #f9f9f9;text-align: center;line-height:84rpx;color: #666;font-size:24rpx">查看提现详情</view>
|
||||
</navigator>
|
||||
</view>
|
||||
<view class="center" wx:if="{{list.length<1}}">
|
||||
<view class="empty-tip">
|
||||
<image class="light" src="/static/images/icon/nolist.png"></image>
|
||||
<view class="text-cancel">暂时没有任何数据</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
61
commission/pages/log/index.wxss
Normal file
61
commission/pages/log/index.wxss
Normal file
@ -0,0 +1,61 @@
|
||||
@import "../../static/css/commission.wxss";
|
||||
|
||||
.com-log .fui-cell-group .fui-cell .fui-cell-label {
|
||||
width: auto;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
.com-log .fui-cell-group .fui-cell .fui-cell-info {
|
||||
text-align: right;
|
||||
color: #333;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
.com-log .fui-list .fui-list-inner .row .row-text {
|
||||
font-size: 28rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.com-log .fui-tab .item {
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
.com-log .fui-list .fui-list-inner .row .row-text {
|
||||
font-size: 26rpx;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.com-log .fui-list .fui-list-inner .subtitle {
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.com-log .row-remark {
|
||||
text-align: right;
|
||||
position: relative;
|
||||
flex-shrink: 0;
|
||||
padding-left: 25rpx;
|
||||
line-height: 1.5;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.com-log .fui-list.particulars {
|
||||
height: 88rpx;
|
||||
}
|
||||
|
||||
.com-log .fui-list.particulars .div {
|
||||
-webkit-box-flex: 1;
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
font-size: 22rpx;
|
||||
border-right: 1px solid #ededed;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.com-log .fui-list.particulars .div:last-child {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.com-log .row-remark::before {
|
||||
display: none;
|
||||
}
|
48
commission/pages/order/index.js
Normal file
48
commission/pages/order/index.js
Normal file
@ -0,0 +1,48 @@
|
||||
var t = getApp().requirejs("core");
|
||||
|
||||
Page({
|
||||
data: {
|
||||
status: "",
|
||||
page: 1,
|
||||
list: []
|
||||
},
|
||||
onLoad: function() {
|
||||
this.getList();
|
||||
},
|
||||
onReachBottom: function() {
|
||||
this.data.loaded || this.data.list.length == this.data.total || this.getList();
|
||||
},
|
||||
onPullDownRefresh: function() {
|
||||
wx.stopPullDownRefresh();
|
||||
},
|
||||
toggleSend: function(t) {
|
||||
if (this.data.openorderdetail || this.data.openorderbuyer) {
|
||||
var a = t.currentTarget.dataset.index, e = this.data.list[a].code, s = this.data.list;
|
||||
s[a].code = 1 == e ? 0 : 1, this.setData({
|
||||
list: s
|
||||
});
|
||||
}
|
||||
},
|
||||
getList: function() {
|
||||
var a = this;
|
||||
t.get("commission/order/get_list", {
|
||||
page: a.data.page,
|
||||
status: a.data.status
|
||||
}, function(t) {
|
||||
delete t.error;
|
||||
var e = t;
|
||||
e.show = !0, t.list.length > 0 && (e.page = a.data.page + 1, e.list = a.data.list.concat(t.list),
|
||||
t.list.length < t.pagesize && (e.loaded = !0)), a.setData(e), wx.setNavigationBarTitle({
|
||||
title: t.textorder
|
||||
});
|
||||
}, this.data.show);
|
||||
},
|
||||
myTab: function(a) {
|
||||
var e = t.pdata(a).status;
|
||||
this.setData({
|
||||
status: e,
|
||||
page: 1,
|
||||
list: []
|
||||
}), this.getList();
|
||||
}
|
||||
});
|
3
commission/pages/order/index.json
Normal file
3
commission/pages/order/index.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
62
commission/pages/order/index.wxml
Normal file
62
commission/pages/order/index.wxml
Normal file
@ -0,0 +1,62 @@
|
||||
<loading wx:if="{{!show}}">加载中...</loading>
|
||||
<view class="page navbar com-order" wx:if="{{show}}">
|
||||
<view class="fui-cell-group" style="margin-top:0px;background: #fea23d;color: #fff;">
|
||||
<view class="fui-cell">
|
||||
<view class="fui-cell-info" style="width:auto;color: #fff;text-align:left">{{textctotal}}<text>{{comtotal}}</text>{{textyuan}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-tab fui-tab-warning">
|
||||
<view bindtap="myTab" class="item {{status==''?'active':''}}" data-status="">所有</view>
|
||||
<view bindtap="myTab" class="item {{status=='0'?'active':''}}" data-status="0">待付款</view>
|
||||
<view bindtap="myTab" class="item {{status=='1'?'active':''}}" data-status="1">已付款</view>
|
||||
<view bindtap="myTab" class="item {{status=='3'?'active':''}}" data-status="3">已完成</view>
|
||||
</view>
|
||||
<view class="fui-cell-group {{item.code==1?'toggleSend-group':''}}" wx:for="{{list}}">
|
||||
<view class="fui-list">
|
||||
<view class="fui-list-media">
|
||||
<image class="round" src="{{item.buyer.avatar}}" style="width:1.4rem;height:1.4rem;border-radius: 50%"></image>
|
||||
</view>
|
||||
<view class="fui-list-inner">
|
||||
<view class="row">
|
||||
<view class="row-text" style="font-size: 24rpx">{{item.buyer.nickname}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-list-angle" style="margin: 0;font-size: 24rpx;color:#b2b2b2;{{item.status=='已付款'?'color:#ff8000;':''}} {{item.status=='已完成'?'color:#04ab02;':''}} {{item.status=='待付款'?'color:#ff5555;':''}}"> {{item.status}}</view>
|
||||
</view>
|
||||
<view class="fui-list no-border" style="background: #f9f9f9;margin-top: 4rpx" wx:for="{{item.order_goods}}">
|
||||
<view class="fui-list-media">
|
||||
<image src="{{item.thumb}}" style="width:2.5rem;height:2.5rem;"></image>
|
||||
</view>
|
||||
<view class="fui-list-inner">
|
||||
<view class="row">
|
||||
<view class="row-text" style="font-size: 24rpx;color: #000">{{item.title}}</view>
|
||||
</view>
|
||||
<view class="subtitle" style="font-size: 24rpx;color: #999;">{{item.optionname}}</view>
|
||||
</view>
|
||||
<view class="row-remark">
|
||||
<view>预计</view>
|
||||
<view>+{{item.commission}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-list" style="font-size: 22rpx;color: #999;line-height: 38rpx;display:block">
|
||||
<view>
|
||||
<text selectable="true">分销等级:{{item.level}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text selectable="true">订单编号:{{item.ordersn}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text selectable="true">下单时间:{{item.createtime}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-list" style="font-size: 22rpx;justify-content: flex-end;border-top: 1rpx solid #ebebeb;">
|
||||
预计佣金:<span class="right" style="font-size: 32rpx">+{{item.commission}}</span>
|
||||
</view>
|
||||
</view>
|
||||
<view class="center" wx:if="{{list.length<1}}">
|
||||
<view class="empty-tip">
|
||||
<image class="light" src="/static/images/icon/nolist.png"></image>
|
||||
<view class="text-cancel">暂时没有任何数据</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
33
commission/pages/order/index.wxss
Normal file
33
commission/pages/order/index.wxss
Normal file
@ -0,0 +1,33 @@
|
||||
@import "../../static/css/commission.wxss";
|
||||
|
||||
.com-order .fui-cell-group .fui-cell .fui-cell-label {
|
||||
width: auto;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
.com-order .fui-cell-group .fui-cell .fui-cell-info {
|
||||
text-align: right;
|
||||
color: #333;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
.com-order .fui-list .fui-list-inner .row .row-text {
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
.com-order .fui-cell-group {
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
.com-order .fui-cell-group .details {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.com-order .fui-cell-group.toggleSend-group .details {
|
||||
display: flex;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
|
||||
.fui-cell-group.toggleSend-group .fui-cell .fui-cell-remark::after {
|
||||
transform: rotate(135deg);
|
||||
}
|
168
commission/pages/poster/index.js
Normal file
168
commission/pages/poster/index.js
Normal file
@ -0,0 +1,168 @@
|
||||
var t = getApp(), e = t.requirejs("core"), a = t.requirejs("foxui"), s = 0, i = 0, o = 0, r = "";
|
||||
|
||||
Page({
|
||||
data: {
|
||||
full: !1,
|
||||
scrollleft: "",
|
||||
margin: "",
|
||||
showloading: !0,
|
||||
accredit: "",
|
||||
index: 0,
|
||||
errMsg: "",
|
||||
check: "/static/images/check.png",
|
||||
posterArr: []
|
||||
},
|
||||
onLoad: function() {
|
||||
var t = this;
|
||||
wx.getSystemInfo({
|
||||
success: function(e) {
|
||||
var a = e.screenWidth, s = e.windowHeight;
|
||||
t.setData({
|
||||
posterwidth: a,
|
||||
windowHeight: s,
|
||||
index: 0
|
||||
});
|
||||
}
|
||||
}), e.json("commission/poster", {}, function(e) {
|
||||
if (0 == e.error) t.setData({
|
||||
posterArr: e.poster || [],
|
||||
posterboxwidth: t.data.posterwidth * e.poster.length
|
||||
}), t.getImage(0); else {
|
||||
if (7e4 == e.error) return void wx.redirectTo({
|
||||
url: "../register/index"
|
||||
});
|
||||
if (70001 == e.error) return void wx.redirectTo({
|
||||
url: "/pages/member/info/index"
|
||||
});
|
||||
a.toast(t, e.message);
|
||||
}
|
||||
});
|
||||
},
|
||||
onshow: function() {
|
||||
this.setData({
|
||||
index: 0
|
||||
});
|
||||
},
|
||||
savePicture: function() {
|
||||
var t = this;
|
||||
wx.getSetting({
|
||||
success: function(e) {
|
||||
e.authSetting["scope.writePhotosAlbum"] ? (wx.showLoading({
|
||||
title: "图片下载中..."
|
||||
}), setTimeout(function() {
|
||||
wx.hideLoading();
|
||||
}, 1e3), wx.downloadFile({
|
||||
url: t.data.posterArr[t.data.index].poster,
|
||||
success: function(e) {
|
||||
wx.saveImageToPhotosAlbum({
|
||||
filePath: e.tempFilePath,
|
||||
success: function(e) {
|
||||
a.toast(t, "保存图片成功");
|
||||
},
|
||||
fail: function(e) {
|
||||
t.setData({
|
||||
errMsg: e.errMsg
|
||||
}), a.toast(t, "保存图片失败");
|
||||
}
|
||||
});
|
||||
}
|
||||
})) : wx.authorize({
|
||||
scope: "scope.writePhotosAlbum",
|
||||
fail: function() {
|
||||
wx.showModal({
|
||||
title: "警告",
|
||||
content: "您点击了拒绝授权,将无法正常使用保存图片或视频的功能体验,请删除小程序重新进入。"
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
getImage: function(t) {
|
||||
var e = this.data.posterArr, a = this;
|
||||
setTimeout(function() {
|
||||
if (1 == a.data.full) {
|
||||
if (e[t].poster) return;
|
||||
a.requestImg(t);
|
||||
} else {
|
||||
if (e[t].thumb) return;
|
||||
a.requestImg(t);
|
||||
}
|
||||
}, 10);
|
||||
},
|
||||
requestImg: function(t) {
|
||||
var s = this.data.posterArr, i = this;
|
||||
i.setData({
|
||||
showloading: !0
|
||||
}), e.json("commission/poster/getimage", {
|
||||
id: s[t].id
|
||||
}, function(e) {
|
||||
0 == e.error ? (s[t].thumb = e.thumb, s[t].poster = e.poster, i.setData({
|
||||
posterArr: s
|
||||
})) : a.toast(i, "保存图片失败");
|
||||
});
|
||||
},
|
||||
touchStart: function(t) {
|
||||
s = t.touches[0].pageX, i = t.touches[0].pageY, r = setInterval(function() {
|
||||
o++;
|
||||
}, 1e3);
|
||||
},
|
||||
touchMove: function(t) {
|
||||
var e = t.touches[0].pageX, a = t.touches[0].pageY;
|
||||
this.setData({
|
||||
moveY: a,
|
||||
touchMove: e
|
||||
}), e - s <= -60 && o < 10 && this.setData({
|
||||
diff: e - s,
|
||||
touchMove: e
|
||||
}), e - s >= 60 && o < 10 && this.setData({
|
||||
diff: e - s
|
||||
});
|
||||
},
|
||||
touchEnd: function(t) {
|
||||
var e = this.data.index, a = Math.abs(this.data.moveY - i), n = Math.abs(this.data.touchMove - s) - a;
|
||||
clearInterval(r), o = 0, this.data.diff > 40 && n > 0 ? 0 == e ? e = 0 : e-- : this.data.diff < -40 && n > 0 && (e == this.data.posterArr.length - 1 ? e = this.data.posterArr.length - 1 : e++);
|
||||
var h = e * this.data.posterwidth;
|
||||
this.setData({
|
||||
left: h,
|
||||
diff: 0,
|
||||
index: e
|
||||
}), this.getImage(e);
|
||||
},
|
||||
pre: function() {
|
||||
var t = this.data.index;
|
||||
0 == t ? t = 0 : t--;
|
||||
var e = t * this.data.posterwidth;
|
||||
this.setData({
|
||||
left: e,
|
||||
index: t
|
||||
}), this.getImage(t);
|
||||
},
|
||||
next: function() {
|
||||
var t = this.data.index;
|
||||
t == this.data.posterArr.length - 1 ? t = this.data.posterArr.length - 1 : t++;
|
||||
var e = t * this.data.posterwidth;
|
||||
this.setData({
|
||||
left: e,
|
||||
index: t
|
||||
}), this.getImage(t);
|
||||
},
|
||||
loadImg: function(t) {
|
||||
var a = this.data.posterArr, s = t.detail.height, i = e.pdata(t).index;
|
||||
e.pdata(t).poster ? a[i].posterLoaded = !0 : a[i].thumbLoaded = !0, this.setData({
|
||||
lgimgheight: s,
|
||||
showloading: !1,
|
||||
posterArr: a
|
||||
});
|
||||
},
|
||||
enlarge: function() {
|
||||
this.setData({
|
||||
full: !0
|
||||
}), this.getImage(this.data.index);
|
||||
},
|
||||
ensmall: function() {
|
||||
this.setData({
|
||||
full: !1
|
||||
}), this.getImage(this.data.index);
|
||||
}
|
||||
});
|
5
commission/pages/poster/index.json
Normal file
5
commission/pages/poster/index.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"backgroundColor": "#ffffff",
|
||||
"navigationBarTitleText": "邀请您的好友",
|
||||
"usingComponents": {}
|
||||
}
|
47
commission/pages/poster/index.wxml
Normal file
47
commission/pages/poster/index.wxml
Normal file
@ -0,0 +1,47 @@
|
||||
<view class="poster {{full?'full':''}}">
|
||||
<view bindtouchmove="touchMove" bindtouchstart="touchStart" catchtouchend="touchEnd" class="poster_box" style="margin-left:{{-left}}px;width:{{posterboxwidth}}px" wx:if="{{!full}}">
|
||||
<view class="posterimg poster_show" style="width:{{posterwidth}}px" wx:for="{{posterArr}}">
|
||||
<image bindload="loadImg" class="image" data-index="{{index}}" mode="widthFix" src="{{item.thumb}}" style="display: {{item.thumbLoaded?'block':'none'}};"></image>
|
||||
<view class="loading " wx:if="{{!item.thumbLoaded}}">
|
||||
<view class="sk-three-bounce">
|
||||
<view class="sk-child sk-bounce1"></view>
|
||||
<view class="sk-child sk-bounce2"></view>
|
||||
<view class="sk-child sk-bounce3"></view>
|
||||
</view>
|
||||
</view>
|
||||
<image catchtap="enlarge" class="check" src="{{check}}" wx:if="{{item.thumbLoaded}}"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view bindtap="pre" class="pre" wx:if="{{index>0}}">
|
||||
<text class="icox icox-qianjin-copy-copy"></text>
|
||||
</view>
|
||||
<view bindtap="next" class="next" wx:if="{{index<posterArr.length-1}}">
|
||||
<text class="icox icox-qianjin-copy"></text>
|
||||
</view>
|
||||
<view bindtouchend="touchEnd" bindtouchmove="touchMove" bindtouchstart="touchStart" class="poster_box" style="margin-left:{{-left}}px;width:{{posterboxwidth}}px" wx:if="{{full}}">
|
||||
<view class="posterimg poster_show" style="width:{{posterwidth}}px;height:{{windowHeight}}px" wx:for="{{posterArr}}">
|
||||
<view class="loading " wx:if="{{!item.posterLoaded}}">
|
||||
<view class="sk-three-bounce">
|
||||
<view class="sk-child sk-bounce1"></view>
|
||||
<view class="sk-child sk-bounce2"></view>
|
||||
<view class="sk-child sk-bounce3"></view>
|
||||
</view>
|
||||
</view>
|
||||
<image bindload="loadImg" data-index="{{index}}" data-poster="true" mode="widthFix" src="{{item.poster}}" style="width:100%;height:{{lgimgheight}}rpx; display: {{item.posterLoaded?'block':'none'}};"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tips" wx:if="{{!full}}">
|
||||
<view bindtap="savePicture" class="savepic">保存图片</view>
|
||||
<text class="icox icox-zhuyi" style="color:#ffd800"></text>
|
||||
保存至相册
|
||||
</view>
|
||||
<view class="pos_bot" wx:if="{{full}}">
|
||||
<text class="icox icox-zhuyi" style="color:#ffd800"></text>
|
||||
左右滑动切换模版
|
||||
<text bindtap="savePicture" class="btn btn-danger btn-sm">保存图片</text>
|
||||
<text bindtap="ensmall" class="btn btn-danger-o btn-sm">返回选择</text>
|
||||
</view>
|
||||
<view class="fui-toast {{FoxUIToast.show?'in':'out'}}">
|
||||
<view class="text">{{FoxUIToast.text}}</view>
|
||||
</view>
|
303
commission/pages/poster/index.wxss
Normal file
303
commission/pages/poster/index.wxss
Normal file
@ -0,0 +1,303 @@
|
||||
page {
|
||||
height: 100%;
|
||||
background: #fff;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.poster {
|
||||
background: #fffbec;
|
||||
padding-top: 90rpx;
|
||||
height: 946rpx;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.posterimg {
|
||||
height: 855rpx;
|
||||
display: block;
|
||||
position: relative;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.full .posterimg {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.poster .check {
|
||||
width: 150rpx;
|
||||
height: 150rpx;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
margin-left: -75rpx;
|
||||
top: 50%;
|
||||
margin-top: -75rpx;
|
||||
}
|
||||
|
||||
.posterimg image {
|
||||
width: 480rpx;
|
||||
height: 100%;
|
||||
display: block;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.posterimg .image {
|
||||
border-radius: 10rpx;
|
||||
box-shadow: 0 0 10px rgba(0,0,0,0.3);
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.loading {
|
||||
background: #fff;
|
||||
width: 484rpx;
|
||||
height: 100%;
|
||||
border-radius: 10rpx;
|
||||
box-shadow: 0 0 10px rgba(0,0,0,0.3);
|
||||
display: block;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.savepic {
|
||||
width: 306rpx;
|
||||
height: 86rpx;
|
||||
line-height: 86rpx;
|
||||
background: #ff5555;
|
||||
border-radius: 40rpx;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
position: absolute;
|
||||
top: -113rpx;
|
||||
left: 50%;
|
||||
margin-left: -153rpx;
|
||||
margin-bottom: -43rpx;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
|
||||
.tips {
|
||||
margin-top: 70rpx;
|
||||
font-size: 26rpx;
|
||||
color: #999;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.poster_box {
|
||||
transition: margin-left 1s;
|
||||
}
|
||||
|
||||
.poster.full {
|
||||
height: 100%;
|
||||
overflow-y: scroll;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.pre,.next {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
}
|
||||
|
||||
.pre text,.next text {
|
||||
font-size: 60rpx;
|
||||
color: #fff;
|
||||
text-shadow: 2px 3px 3px rgba(0,0,0,0.2);
|
||||
}
|
||||
|
||||
.pre {
|
||||
left: 0;
|
||||
position: absolute;
|
||||
z-index: 999;
|
||||
animation: pre 1.5s infinite ease-in-out;
|
||||
}
|
||||
|
||||
.next {
|
||||
right: 0;
|
||||
position: absolute;
|
||||
z-index: 999;
|
||||
animation: next 1.5s infinite ease-in-out;
|
||||
}
|
||||
|
||||
@-webkit-keyframes next {
|
||||
0%,30% {
|
||||
opacity: 0.8;
|
||||
transform: translate(-8px,0px);
|
||||
}
|
||||
|
||||
60% {
|
||||
opacity: 0.8;
|
||||
transform: translate(0px,0);
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 0.8;
|
||||
transform: translate(-8px,0px);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes next {
|
||||
0%,30% {
|
||||
opacity: 0.8;
|
||||
transform: translate(-8px,0px);
|
||||
}
|
||||
|
||||
60% {
|
||||
opacity: 0.8;
|
||||
transform: translate(0px,0);
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 0.8;
|
||||
transform: translate(-8px,0px);
|
||||
}
|
||||
}
|
||||
|
||||
@-webkit-keyframes pre {
|
||||
0%,30% {
|
||||
opacity: 0.8;
|
||||
transform: translate(8px,0px);
|
||||
}
|
||||
|
||||
60% {
|
||||
opacity: 0.8;
|
||||
transform: translate(0px,0);
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 0.8;
|
||||
transform: translate(8px,0px);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes pre {
|
||||
0%,30% {
|
||||
opacity: 0.8;
|
||||
transform: translate(8px,0px);
|
||||
}
|
||||
|
||||
60% {
|
||||
opacity: 0.8;
|
||||
transform: translate(0px,0);
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 0.8;
|
||||
transform: translate(8px,0px);
|
||||
}
|
||||
}
|
||||
|
||||
.ani {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.txt {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.pos_bot {
|
||||
position: fixed;
|
||||
height: 100rpx;
|
||||
width: 100%;
|
||||
background: rgba(255,255,255,0.8);
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
line-height: 100rpx;
|
||||
padding: 0 0 0 15rpx;
|
||||
font-size: 26rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.pos_bot .icox {
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
|
||||
.pos_bot .btn-danger-o {
|
||||
border-radius: 50rpx;
|
||||
color: #ff5555;
|
||||
border: 1px solid #ff5555;
|
||||
height: 52rpx;
|
||||
float: right;
|
||||
margin-top: 24rpx;
|
||||
}
|
||||
|
||||
.pos_bot .btn-danger {
|
||||
border-radius: 50rpx;
|
||||
background-color: #ff5555;
|
||||
border-color: #ff5555;
|
||||
height: 52rpx;
|
||||
float: right;
|
||||
margin: 24rpx 25rpx 0 12rpx;
|
||||
}
|
||||
|
||||
.loading {
|
||||
width: 484rpx;
|
||||
height: 100%;
|
||||
border-radius: 10rpx;
|
||||
box-shadow: 0 0 10px rgba(0,0,0,0.4);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.full .loading {
|
||||
box-shadow: none;
|
||||
background: #fffbec;
|
||||
}
|
||||
|
||||
.sk-three-bounce {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 160rpx;
|
||||
margin-left: -80rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.sk-three-bounce .sk-child {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background-color: #333;
|
||||
border-radius: 100%;
|
||||
display: inline-block;
|
||||
animation: sk-three-bounce 1.1s ease-in-out 0s infinite both;
|
||||
}
|
||||
|
||||
.sk-three-bounce .sk-bounce1 {
|
||||
background: rgba(68,171,247,0.2);
|
||||
animation-delay: -0.32s;
|
||||
}
|
||||
|
||||
.sk-three-bounce .sk-bounce2 {
|
||||
background: rgba(68,171,247,0.2);
|
||||
animation-delay: -0.16s;
|
||||
}
|
||||
|
||||
.sk-three-bounce .sk-bounce3 {
|
||||
background: rgba(68,171,247,0.2);
|
||||
}
|
||||
|
||||
@-webkit-keyframes sk-three-bounce {
|
||||
0%,80%,100% {
|
||||
transform: scale(0);
|
||||
background: rgba(68,171,247,0.2);
|
||||
}
|
||||
|
||||
40% {
|
||||
transform: scale(1);
|
||||
background: rgba(68,171,247,1);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes sk-three-bounce {
|
||||
0%,80%,100% {
|
||||
transform: scale(0);
|
||||
background: rgba(68,171,247,0.2);
|
||||
}
|
||||
|
||||
40% {
|
||||
transform: scale(1);
|
||||
background: rgba(68,171,247,1);
|
||||
}
|
||||
}
|
27
commission/pages/qrcode/index.js
Normal file
27
commission/pages/qrcode/index.js
Normal file
@ -0,0 +1,27 @@
|
||||
var e = getApp().requirejs("core");
|
||||
|
||||
Page({
|
||||
data: {
|
||||
showimage: !1
|
||||
},
|
||||
onLoad: function(e) {},
|
||||
onShow: function() {
|
||||
this.getData();
|
||||
},
|
||||
getData: function() {
|
||||
var o = this;
|
||||
e.get("commission/qrcode", {}, function(e) {
|
||||
70001 != e.error ? (e.show = !0, o.setData(e), o.getImage()) : wx.redirectTo({
|
||||
url: "/pages/member/info/index"
|
||||
});
|
||||
});
|
||||
},
|
||||
getImage: function() {
|
||||
var o = this;
|
||||
e.post("commission/qrcode", {}, function(e) {
|
||||
70001 != e.error ? (e.showimage = !0, o.setData(e)) : wx.redirectTo({
|
||||
url: "/pages/member/info/index"
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
4
commission/pages/qrcode/index.json
Normal file
4
commission/pages/qrcode/index.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "二维码",
|
||||
"usingComponents": {}
|
||||
}
|
52
commission/pages/qrcode/index.wxml
Normal file
52
commission/pages/qrcode/index.wxml
Normal file
@ -0,0 +1,52 @@
|
||||
<view class="page qrcode">
|
||||
<view class="fui-cell-group" wx:if="{{!showimage}}">
|
||||
<view class="fui-cell">
|
||||
<view class="fui-cell-info text-center">
|
||||
<div class="fui-preloader"></div>
|
||||
<br></br>正在生成海报,请稍后...</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="qrcode-img" wx:if="{{showimage}}">
|
||||
<image mode="widthFix" src="{{img}}"></image>
|
||||
</view>
|
||||
<view class="fui-title">{{set['qrcode_title']==''?'如何赚钱':set['qrcode_title']}}</view>
|
||||
<view class="fui-list-group">
|
||||
<view wx:if="{{set['qrcode']==''||set['qrcode']!=''&&set['qrcode_content']==''}}">
|
||||
<view class="fui-list">
|
||||
<view class="fui-list-media">第一步</view>
|
||||
<view class="fui-list-inner">
|
||||
<view class="text">转发商品链接或商品图片给微信好友;</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-list">
|
||||
<view class="fui-list-media">第二步</view>
|
||||
<view class="fui-list-inner">
|
||||
<view class="text">从您转发的链接或图片进入商城的好友,{{set['become_child']==1?'如果您的好友下单,':''}}{{set['become_child']==2?'如果您的好友下单并付款,':''}}系统将自动锁定成为您的客户, 他们在微信商城中购买任何商品,您都可以获得{{set['texts']['commission1']}};</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-list">
|
||||
<view class="fui-list-media">第三步</view>
|
||||
<view class="fui-list-inner">
|
||||
<view class="text">您可以在{{set['texts']['center']}}查看【{{set['texts']['mydown']}}】和【{{set['texts']['order']}}】,好友确认收货后{{set['texts']['commission']}}方可{{set['texts']['withdraw']}}。</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view wx:if="{{set['qrcode']!=''&&set['qrcode_content']!=''}}">
|
||||
<view class="fui-list">
|
||||
<view class="fui-list-inner">
|
||||
<view class="text">{{set['qrcode_content']}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-list" wx:if="{{set['qrcode']==''||set['qrcode']!=''&&set['qrcode_remark']==''}}">
|
||||
<view class="fui-card">
|
||||
说明:分享后会带有独有的推荐码,您的好友访问之后,系统会自动检测并记录客户关系。如果您的好友已被其他人抢先发展成了客户,他就不能成为您的客户,以最早发展成为客户为准。
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-list" wx:if="{{set['qrcode']!=''&&set['qrcode_remark']!=''}}">
|
||||
<view class="fui-card">
|
||||
说明:{{set['qrcode_remark']}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
20
commission/pages/qrcode/index.wxss
Normal file
20
commission/pages/qrcode/index.wxss
Normal file
@ -0,0 +1,20 @@
|
||||
.qrcode-img {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.qrcode-img image {
|
||||
height: 1000rpx;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.qrcode .fui-card {
|
||||
background: #fe924a;
|
||||
color: #fff;
|
||||
box-shadow: 0 0.1rem 0.1rem rgba(204,204,204,0.3);
|
||||
border: 1px solid #ccc;
|
||||
margin: 20rpx;
|
||||
position: relative;
|
||||
border-radius: 6rpx;
|
||||
font-size: 30rpx;
|
||||
padding: 20rpx;
|
||||
}
|
94
commission/pages/register/index.js
Normal file
94
commission/pages/register/index.js
Normal file
@ -0,0 +1,94 @@
|
||||
var e = getApp(), t = e.requirejs("core"), i = e.requirejs("biz/diyform");
|
||||
|
||||
Page({
|
||||
data: {
|
||||
areas: []
|
||||
},
|
||||
onLoad: function(t) {
|
||||
var i = this;
|
||||
setTimeout(function() {
|
||||
i.setData({
|
||||
areas: e.getCache("cacheset").areas
|
||||
});
|
||||
}, 300), e.checkAuth(function() {}, 1), i.setData({
|
||||
options: t
|
||||
});
|
||||
},
|
||||
onShow: function() {
|
||||
this.getData();
|
||||
},
|
||||
getData: function() {
|
||||
var e = this;
|
||||
t.get("commission/register", {}, function(t) {
|
||||
70003 != t.error ? (t.show = !0, wx.setNavigationBarTitle({
|
||||
title: "申请成为" + t.set.texts.agent || "申请"
|
||||
}), e.setData(t), e.setData({
|
||||
diyform: {
|
||||
f_data: t.f_data,
|
||||
fields: t.fields
|
||||
}
|
||||
})) : wx.redirectTo({
|
||||
url: "../index"
|
||||
});
|
||||
});
|
||||
},
|
||||
inputChange: function(e) {
|
||||
"realname" == e.target.id ? this.setData({
|
||||
"member.realname": e.detail.value
|
||||
}) : "mobile" == e.target.id ? this.setData({
|
||||
"member.mobile": e.detail.value
|
||||
}) : "weixin" == e.target.id ? this.setData({
|
||||
"member.weixin": e.detail.value
|
||||
}) : "icode" == e.target.id && (this.setData({
|
||||
"member.icode": e.detail.value
|
||||
}), this.data.mid = e.detail.value);
|
||||
},
|
||||
submit: function(e) {
|
||||
if (0 == this.data.template_flag) {
|
||||
if (!this.data.member.realname) return void t.alert("请填写,真实姓名!");
|
||||
if (!this.data.member.mobile) return void t.alert("请填写,手机号!");
|
||||
var a = {
|
||||
realname: this.data.member.realname,
|
||||
mobile: this.data.member.mobile,
|
||||
icode: this.data.member.icode
|
||||
};
|
||||
} else {
|
||||
var r = this.data.diyform;
|
||||
if (!i.verify(this, r)) return void t.alert("请检查必填项是否填写");
|
||||
a = {
|
||||
memberdata: this.data.diyform.f_data,
|
||||
agentid: this.data.mid,
|
||||
icode: this.data.member.icode,
|
||||
weixin: this.data.member.weixin
|
||||
};
|
||||
}
|
||||
t.post("commission/register", a, function(e) {
|
||||
0 != e.error ? t.alert(e.message) : wx.redirectTo({
|
||||
url: 1 == e.check ? "../index" : "../register/index",
|
||||
fail: function() {
|
||||
wx.switchTab({
|
||||
url: 1 == e.check ? "../index" : "../register/index"
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
DiyFormHandler: function(e) {
|
||||
return i.DiyFormHandler(this, e);
|
||||
},
|
||||
selectArea: function(e) {
|
||||
return i.selectArea(this, e);
|
||||
},
|
||||
bindChange: function(e) {
|
||||
return i.bindChange(this, e);
|
||||
},
|
||||
onCancel: function(e) {
|
||||
return i.onCancel(this, e);
|
||||
},
|
||||
onConfirm: function(e) {
|
||||
return i.onConfirm(this, e);
|
||||
},
|
||||
getIndex: function(e, t) {
|
||||
return i.getIndex(e, t);
|
||||
}
|
||||
});
|
3
commission/pages/register/index.json
Normal file
3
commission/pages/register/index.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
190
commission/pages/register/index.wxml
Normal file
190
commission/pages/register/index.wxml
Normal file
@ -0,0 +1,190 @@
|
||||
<loading wx:if="{{!show}}">加载中...</loading>
|
||||
<view class="page register" wx:if="{{show}}">
|
||||
<view class="fui-content">
|
||||
<image mode="widthFix" src="{{set['regbg']}}"></image>
|
||||
</view>
|
||||
<block wx:if="{{member['status']==0&&member['isagent']==0&&set['become']==1}}">
|
||||
<view class="fui-cell-group">
|
||||
<view class="fui-cell-title">欢迎加入<text class="text-danger">{{shopname}}</text>,请填写申请信息</view>
|
||||
<view class="fui-cell">
|
||||
<view class="fui-cell-label">邀请人</view>
|
||||
<view class="fui-cell-info">
|
||||
<text class="text-danger">{{agent?agent['nickname']:'总店'}}</text>(请核对)</view>
|
||||
</view>
|
||||
<view class="fui-cell" wx:if="{{hideicode==0}}">
|
||||
<view class="fui-cell-label">{{set.texts.icode}}</view>
|
||||
<view class="fui-cell-info">
|
||||
<input bindinput="inputChange" class="fui-input" id="icode" placeholder="请填写{{set['texts']['icode']}}" type="text" value="{{mid>0?mid:''}}"></input>
|
||||
</view>
|
||||
</view>
|
||||
<include src="/pages/common/diyform.wxml"></include>
|
||||
<view class="fui-cell must" wx:if="{{template_flag==0}}">
|
||||
<view class="fui-cell-label">姓名</view>
|
||||
<view class="fui-cell-info">
|
||||
<input bindinput="inputChange" class="fui-input" id="realname" placeholder="请填写真实姓名,用于结算" type="text" value="{{member.realname}}"></input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell must" wx:if="{{template_flag==0}}">
|
||||
<view class="fui-cell-label">手机号</view>
|
||||
<view class="fui-cell-info">
|
||||
<input bindinput="inputChange" class="fui-input" id="mobile" placeholder="请填写手机号码,方便联系" type="number" value="{{member.mobile}}"></input>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view bindtap="submit" class="btn btn-danger block btn-submit">申请成为{{set['texts']['agent']}}</view>
|
||||
<view class="fui-list-group" wx:if="{{set['register_bottom']==''}}">
|
||||
<view class="fui-list">
|
||||
<view class="fui-list-media">
|
||||
<text class="icox icox-vip"></text>
|
||||
</view>
|
||||
<view class="fui-list-inner">
|
||||
<view class="subtitle">{{set['texts']['agent']}}特权</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-list">
|
||||
<view class="fui-list-media">
|
||||
<text class="icox icox-erweima1" style="color: #feb312;"></text>
|
||||
</view>
|
||||
<view class="fui-list-inner">
|
||||
<view class="subtitle">独立小店</view>
|
||||
<view class="text">拥有自己的小店及推广二维码</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-list">
|
||||
<view class="fui-list-media">
|
||||
<text class="icox icox-qian" style="color:#ff5555"></text>
|
||||
</view>
|
||||
<view class="fui-list-inner">
|
||||
<view class="subtitle">销售拿{{set['texts']['commission']}}</view>
|
||||
<view class="text">成为{{set['texts']['agent']}}后卖出商品,您可以获得{{set['texts']['commission']}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-list">
|
||||
<view class="fui-list-inner">
|
||||
<view class="text">{{set['texts']['agent']}}的商品销售统一由厂家直接收款、直接发货,并提供产品的售后服务,{{set['texts']['commission1']}}由厂家统一设置。</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-list-group" wx:if="{{set['register_bottom']=='1'}}">
|
||||
<view class="fui-list" wx:if="{{set['register_bottom_title1']!=''&&set['register_bottom_content1']!=''}}">
|
||||
<view class="fui-list-media">
|
||||
<text class="icox icox-vip"></text>
|
||||
</view>
|
||||
<view class="fui-list-inner">
|
||||
<view class="subtitle">{{set['register_bottom_title1']}}</view>
|
||||
<view class="text">{{set['register_bottom_content1']}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-list" wx:if="{{set['register_bottom_title2']!=''&&set['register_bottom_content2']!=''}}">
|
||||
<view class="fui-list-media">
|
||||
<text class="icox icox-erweima1" style="color: #feb312;"></text>
|
||||
</view>
|
||||
<view class="fui-list-inner">
|
||||
<view class="subtitle">{{set['register_bottom_title2']}}</view>
|
||||
<view class="text">{{set['register_bottom_content2']}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-list" wx:if="{{set['register_bottom_title3']!=''&&set['register_bottom_content3']!=''}}">
|
||||
<view class="fui-list-media">
|
||||
<text class="icox icox-qian" style="color:#ff5555"></text>
|
||||
</view>
|
||||
<view class="fui-list-inner">
|
||||
<view class="subtitle">{{set['register_bottom_title3']}}</view>
|
||||
<view class="text">{{set['register_bottom_content3']}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-list" wx:if="{{set['register_bottom_remark']!=''}}">
|
||||
<view class="fui-list-inner">
|
||||
<view class="text">{{set['register_bottom_remark']}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-list-group" wx:if="{{set['register_bottom']=='2'}}">
|
||||
<view class="fui-list">
|
||||
<view class="fui-list-inner">
|
||||
<rich-text nodes="{{set['register_bottom_content']}}"></rich-text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<view class="fui-list-group" wx:if="{{set['open_protocol']==1&&set['become']==1&&set['applytitle']!=''}}">
|
||||
<view class="fui-list">
|
||||
<view class="fui-list-media">
|
||||
<text class="icox icox-vip" style="color: #feb312;"></text>
|
||||
</view>
|
||||
<view class="fui-list-inner">
|
||||
<view class="subtitle">{{set['applytitle']}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-list">
|
||||
<view class="fui-list-inner">
|
||||
<rich-text nodes="{{set['applycontent']}}"></rich-text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<block wx:if="{{set['become']==2&&status==0}}">
|
||||
<view class="fui-list-group">
|
||||
<view class="fui-list-group-title">
|
||||
<image src="/static/images/icon/nolist.png"></image>
|
||||
<text class="remind">友情提醒</text>
|
||||
</view>
|
||||
<view class="fui-list">
|
||||
<view class="fui-list-inner">
|
||||
<view class="text">本店累计消费满 <text class="text-danger text-bold">{{order_totalcount}}</text>次,才可成为<text class="text-danger text-bold">{{shopname}}</text>购物中心分销商,您已消费<text class="text-danger text-bold">{{order_count}}</text>次,请继续努力!</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<navigator class="btn btn-danger block" openType="switchTab" url="/pages/index/index">继续去购物</navigator>
|
||||
</block>
|
||||
<block wx:if="{{set['become']==3&&status==0}}">
|
||||
<view class="fui-list-group">
|
||||
<view class="fui-list-group-title">
|
||||
<image src="/static/images/icon/nolist.png"></image>
|
||||
<text class="remind">友情提醒</text>
|
||||
</view>
|
||||
<view class="fui-list">
|
||||
<view class="fui-list-inner">
|
||||
<view class="text">本店累计消费满 <text class="text-danger text-bold">{{money_totalcount}}</text>{{set['texts']['yuan']}},才可成为<text class="text-danger text-bold">{{shopname}}</text>购物中心分销商,您已消费<text class="text-danger text-bold">{{moneycount}}</text>{{set['texts']['yuan']}},请继续努力!</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<navigator class="btn btn-danger block" openType="switchTab" url="/pages/index/index">继续去购物</navigator>
|
||||
</block>
|
||||
<block wx:if="{{set['become']==4&&status==0&&member['isagent']==0}}">
|
||||
<view class="fui-list-group">
|
||||
<view class="fui-list-group-title">
|
||||
<image src="/static/images/icon/nolist.png"></image>
|
||||
<text class="remind">友情提醒</text>
|
||||
</view>
|
||||
<view wx:for="{{buy_goods}}" wx:key="index">
|
||||
<navigator url="/pages/goods/detail/index?id={{item.id}}">
|
||||
<view class="fui-list">
|
||||
<view class="fui-list-media">
|
||||
<image src="{{item.thumb}}"></image>
|
||||
</view>
|
||||
<view class="fui-list-inner">
|
||||
<view class="text">{{item.title}}</view>
|
||||
<view class="text">{{item.marketprice}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</navigator>
|
||||
</view>
|
||||
<view class="fui-list">
|
||||
<view class="fui-list-inner">
|
||||
<view class="text">本店需购买此商品才可成为<text class="text-danger text-bold">{{shopname}}</text>购物中心{{set['texts']['agent']}},请现在去购买吧!</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<navigator class="btn btn-danger block" url="/pages/goods/detail/index?id={{buy_goods[0]['id']}}">现在就去购买</navigator>
|
||||
</block>
|
||||
<view class="wait" wx:if="{{member['status']==0&&member['isagent']==1}}">
|
||||
<image src="/static/images/icon/wait-128.png"></image>
|
||||
<view>谢谢您的支持,请等待审核!</view>
|
||||
<navigator class="btn btn-danger" openType="switchTab" url="/pages/index/index">去商城逛逛</navigator>
|
||||
</view>
|
||||
</view>
|
||||
<navigator class="commission-shouye" openType="switchTab" url="/pages/index/index">
|
||||
<text class="icox icox-shouye"></text>
|
||||
</navigator>
|
||||
<include src="/pages/common/city-picker.wxml"></include>
|
||||
<view class="fui-mask {{showPicker?'show':''}}"></view>
|
836
commission/pages/register/index.wxss
Normal file
836
commission/pages/register/index.wxss
Normal file
@ -0,0 +1,836 @@
|
||||
.nav-mask {
|
||||
position: fixed;
|
||||
z-index: 999;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background: rgba(0,0,0,0.5);
|
||||
display: none;
|
||||
}
|
||||
|
||||
.picker-modal {
|
||||
background: #fefefe;
|
||||
height: 260px;
|
||||
position: fixed;
|
||||
bottom: -2rem;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 1000;
|
||||
transform: translate3d(0,100%,0);
|
||||
}
|
||||
|
||||
.picker-modal.city-picker {
|
||||
z-index: 2000;
|
||||
}
|
||||
|
||||
.picker-modal.in {
|
||||
transition-duration: 300ms;
|
||||
transform: translate3d(0,0,0);
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.picker-modal.out {
|
||||
transition-duration: 300ms;
|
||||
transform: translate3d(0,100%,0);
|
||||
}
|
||||
|
||||
.picker-modal .picker-control {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 40px;
|
||||
border-bottom: 1px solid #f1f1f1;
|
||||
padding: 0 30rpx;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
|
||||
.picker-modal .picker-control .cancel {
|
||||
width: 50%;
|
||||
text-align: left;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.picker-modal .picker-control .confirm {
|
||||
width: 50%;
|
||||
text-align: right;
|
||||
color: #20b21f;
|
||||
}
|
||||
|
||||
.picker-modal .picker {
|
||||
width: 100%;
|
||||
height: 220px;
|
||||
}
|
||||
|
||||
.picker-modal .picker .item {
|
||||
line-height: 40px;
|
||||
}
|
||||
|
||||
picker-view-column {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.coupon-picker {
|
||||
background: #f5f5f5;
|
||||
}
|
||||
|
||||
.coupon-picker,.gift-picker {
|
||||
max-height: 880rpx;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
width: 100%;
|
||||
padding-bottom: 76rpx;
|
||||
z-index: 1001;
|
||||
}
|
||||
|
||||
.coupon-picker .coupontitle,.gift-picker .gifttitle {
|
||||
font-size: 28rpx;
|
||||
color: #666;
|
||||
line-height: 100rpx;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
padding-left: 20rpx;
|
||||
padding-right: 20rpx;
|
||||
}
|
||||
|
||||
.coupon-picker .coupontitle text {
|
||||
font-size: 40rpx;
|
||||
}
|
||||
|
||||
.coupon-picker .option-picker-inner {
|
||||
background: #f5f5f5;
|
||||
border-top: 1px solid #eee;
|
||||
box-shadow: 0 0 8rpx rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.fui-navbar,.fui-footer {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
bottom: 0;
|
||||
height: 98rpx;
|
||||
background: #fff;
|
||||
box-shadow: 0 0 4px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.coupon-list {
|
||||
height: auto;
|
||||
padding: 0 20rpx 80rpx 20rpx;
|
||||
overflow: auto;
|
||||
max-height: 700rpx;
|
||||
}
|
||||
|
||||
.coupon-item {
|
||||
margin-top: 20rpx;
|
||||
background: #ffffff;
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
height: 140rpx;
|
||||
}
|
||||
|
||||
.coupon-dots {
|
||||
height: inherit;
|
||||
width: 16rpx;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -10rpx;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.coupon-dots i {
|
||||
height: 16rpx;
|
||||
width: 16rpx;
|
||||
border-radius: 16rpx;
|
||||
background: #f5f5f5;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.coupon-dots:before,.coupon-dots:after {
|
||||
content: "";
|
||||
height: 20rpx;
|
||||
width: 20rpx;
|
||||
background: #f5f5f5;
|
||||
border-radius: 20rpx;
|
||||
position: absolute;
|
||||
left: 210rpx;
|
||||
}
|
||||
|
||||
.coupon-dots:before {
|
||||
top: -10rpx;
|
||||
}
|
||||
|
||||
.coupon-dots:after {
|
||||
bottom: -10rpx;
|
||||
}
|
||||
|
||||
.coupon-item .coupon-left {
|
||||
height: inherit;
|
||||
width: 210rpx;
|
||||
background: #55b5ff;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.coupon-item .coupon-left .single {
|
||||
font-size: 60rpx;
|
||||
}
|
||||
|
||||
.coupon-item .coupon-left .subtitle {
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.coupon-item .coupon-right {
|
||||
padding: 20rpx;
|
||||
-webkit-box-flex: 1;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.coupon-item .coupon-right .title {
|
||||
font-size: 32rpx;
|
||||
height: 48rpx;
|
||||
line-height: 48rpx;
|
||||
color: #1a1a1a;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.coupon-item .coupon-right .usetime {
|
||||
line-height: 56rpx;
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.coupon-item .coupon-right .usetime .text {
|
||||
-webkit-box-flex: 1;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.coupon-list.mini .coupon-item .coupon-after {
|
||||
width: 160rpx;
|
||||
padding-right: 20rpx;
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.coupon-list.mini .coupon-item .coupon-after .coupon-btn {
|
||||
width: 140rpx;
|
||||
height: 60rpx;
|
||||
line-height: 60rpx;
|
||||
border: 1px solid #55b5ff;
|
||||
border-radius: 60rpx;
|
||||
color: #55b5ff;
|
||||
text-align: center;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.coupon-item.pink .coupon-left,.coupon-item.pink .coupon-type {
|
||||
background: #fd72d4;
|
||||
}
|
||||
|
||||
.coupon-item.pink .coupon-after .coupon-btn {
|
||||
border-color: #fd72d4;
|
||||
color: #fd72d4;
|
||||
}
|
||||
|
||||
.coupon-list.mini .coupon-item.red .coupon-left,.coupon-item.red .coupon-type {
|
||||
background: #fd5554;
|
||||
}
|
||||
|
||||
.coupon-list.mini .coupon-item.red .coupon-after .coupon-btn {
|
||||
border-color: #fd5554;
|
||||
color: #fd5554;
|
||||
}
|
||||
|
||||
.coupon-list.mini .coupon-item.org .coupon-left,.coupon-item.red .coupon-type {
|
||||
background: #ff913f;
|
||||
}
|
||||
|
||||
.coupon-list.mini .coupon-item.org .coupon-after .coupon-btn {
|
||||
border-color: #ff913f;
|
||||
color: #ff913f;
|
||||
}
|
||||
|
||||
.option-picker {
|
||||
height: auto;
|
||||
width: 100%;
|
||||
z-index: 1001;
|
||||
}
|
||||
|
||||
.goods-picker .option-picker-options {
|
||||
height: 600rpx;
|
||||
}
|
||||
|
||||
.option-picker .option-picker-cell {
|
||||
padding: 8rpx 20rpx 20rpx 20rpx;
|
||||
}
|
||||
|
||||
.option-picker .option-picker-options {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow-y: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
height: 750rpx;
|
||||
}
|
||||
|
||||
.option-picker .option-picker-cell.goodinfo {
|
||||
padding-left: 220rpx;
|
||||
padding-top: 20rpx;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.option-picker .option-picker-cell.goodinfo:after,.option-picker .option-picker-cell.option:after {
|
||||
content: " ";
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 20rpx;
|
||||
right: 20rpx;
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
|
||||
.option-picker .option-picker-cell.goodinfo .closebtn {
|
||||
width: 44rpx;
|
||||
height: 44rpx;
|
||||
position: absolute;
|
||||
top: 20rpx;
|
||||
right: 20rpx;
|
||||
text-align: center;
|
||||
line-height: 44rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.option-picker .option-picker-cell.goodinfo .closebtn .icon {
|
||||
font-size: 61rpx;
|
||||
}
|
||||
|
||||
.option-picker .option-picker-cell.goodinfo .img {
|
||||
height: 168rpx;
|
||||
width: 168rpx;
|
||||
background: #fff;
|
||||
padding: 4rpx;
|
||||
border: 1px solid #eee;
|
||||
border-radius: 2px;
|
||||
position: absolute;
|
||||
top: -50rpx;
|
||||
left: 20rpx;
|
||||
box-shadow: 0 0 8rpx rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.option-picker .option-picker-cell.goodinfo .img img {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.option-picker .option-picker-cell.goodinfo .info {
|
||||
font-size: 28rpx;
|
||||
height: 37rpx;
|
||||
line-height: 37rpx;
|
||||
}
|
||||
|
||||
.option-picker .option-picker-cell.goodinfo .info-total {
|
||||
font-size: 26rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.option-picker .option-picker-cell.goodinfo .info-price .price {
|
||||
font-size: 32rpx;
|
||||
}
|
||||
|
||||
.option-picker .option-picker-cell.goodinfo .info-titles {
|
||||
font-size: 26rpx;
|
||||
color: #000;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.option-picker .option-picker-cell.option {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.option-picker .option-picker-cell.option .title {
|
||||
font-size: 28rpx;
|
||||
height: auto;
|
||||
overflow: hidden;
|
||||
color: #000;
|
||||
line-height: 78rpx;
|
||||
}
|
||||
|
||||
.option-picker .option-picker-cell.option .select {
|
||||
font-size: 29rpx;
|
||||
color: #666;
|
||||
height: auto;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.option-picker .option-picker-cell.option .select .nav {
|
||||
height: auto;
|
||||
width: auto;
|
||||
border: 0;
|
||||
float: left;
|
||||
margin: 16rpx 20rpx 0 0;
|
||||
}
|
||||
|
||||
.option-picker .option-picker-cell .fui-number {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.option-picker .fui-navbar {
|
||||
text-shadow: none;
|
||||
height: 90rpx;
|
||||
}
|
||||
|
||||
.option-picker .fui-navbar .btn {
|
||||
border: none;
|
||||
font-size: 29rpx;
|
||||
color: #fff;
|
||||
border-radius: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
height: 100%;
|
||||
line-height: 90rpx;
|
||||
}
|
||||
|
||||
.option-picker .fui-navbar .cartbtn {
|
||||
background: #fe9402;
|
||||
}
|
||||
|
||||
.option-picker .fui-navbar .buybtn,.option-picker .fui-navbar .confirmbtn {
|
||||
background: #fd5555;
|
||||
}
|
||||
|
||||
.option-picker-inner {
|
||||
background: #fff;
|
||||
border-top: 2rpx solid #eee;
|
||||
box-shadow: 0 0 8rpx rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.option-picker .fui-navbar .btn.disabled {
|
||||
color: #ccc;
|
||||
background: #ececec;
|
||||
}
|
||||
|
||||
.option-picker .diyform-container:before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.option-picker .fui-number {
|
||||
backface-visibility: hidden;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
display: flex;
|
||||
font-size: 33rpx;
|
||||
-webkit-box-pack: justify;
|
||||
-ms-flex-pack: justify;
|
||||
justify-content: space-between;
|
||||
margin: 0;
|
||||
height: 61rpx;
|
||||
width: 205rpx;
|
||||
}
|
||||
|
||||
.option-picker .fui-number:before {
|
||||
content: " ";
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
border-top: 2rpx solid #d9d9d9;
|
||||
}
|
||||
|
||||
.option-picker .fui-number:after {
|
||||
content: " ";
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
border-top: 1px solid #d9d9d9;
|
||||
}
|
||||
|
||||
.option-picker .fui-number .num {
|
||||
-webkit-box-flex: 1;
|
||||
flex: 1;
|
||||
height: 61rpx;
|
||||
overflow: hidden;
|
||||
line-height: inherit;
|
||||
color: #666;
|
||||
text-align: center;
|
||||
border: 0;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
.option-picker .fui-number .minus,.option-picker .fui-number .plus {
|
||||
height: inherit;
|
||||
width: 61rpx;
|
||||
font-size: 41rpx;
|
||||
font-weight: bold;
|
||||
color: #999;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
line-height: 61rpx;
|
||||
background: #f7f7f7;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.option-picker .fui-number .minus:before,.option-picker .fui-number .plus:before {
|
||||
content: " ";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
border-left: 1px solid #d9d9d9;
|
||||
}
|
||||
|
||||
.option-picker .fui-number .minus:after,.option-picker .fui-number .plus:after {
|
||||
content: " ";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
border-right: 1px solid #d9d9d9;
|
||||
}
|
||||
|
||||
.option-picker .fui-number .minus.disabled,.option-picker .fui-number .plus.disabled {
|
||||
background: #fff;
|
||||
color: #ebebeb;
|
||||
}
|
||||
|
||||
.option-picker .fui-number.small {
|
||||
height: 40rpx;
|
||||
width: 128rpx;
|
||||
}
|
||||
|
||||
.option-picker .fui-number.small .minus,.option-picker .fui-number.small .plus {
|
||||
width: 41rpx;
|
||||
line-height: 41rpx;
|
||||
font-size: 31rpx;
|
||||
}
|
||||
|
||||
.fui-modal.goodslist {
|
||||
position: fixed;
|
||||
max-height: 780rpx;
|
||||
width: 660rpx;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%,-55%);
|
||||
bottom: auto;
|
||||
}
|
||||
|
||||
.fui-modal.goodslist .option-picker .option-picker-inner {
|
||||
margin: 0;
|
||||
overflow-y: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
height: auto;
|
||||
max-height: 640rpx;
|
||||
overflow: hidden;
|
||||
border-top-left-radius: 12rpx;
|
||||
border-top-right-radius: 12rpx;
|
||||
padding: 30rpx;
|
||||
}
|
||||
|
||||
.fui-modal.goodslist .option-picker .option-picker-options {
|
||||
max-height: 440rpx;
|
||||
overflow: auto;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.fui-modal.goodslist .fui-navbar {
|
||||
padding: 30rpx 0;
|
||||
position: static;
|
||||
border-bottom-left-radius: 12rpx;
|
||||
border-bottom-right-radius: 12rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.fui-modal.goodslist .option-picker .fui-navbar .btn {
|
||||
width: 290rpx;
|
||||
border: none;
|
||||
font-size: 29rpx;
|
||||
color: #fff;
|
||||
border-radius: 10rpx;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
height: 84rpx;
|
||||
line-height: 84rpx;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.fui-modal.goodslist .option-picker .fui-navbar .btn.cartbtn {
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
|
||||
.fui-modal.goodslist .option-picker-cell.goodinfo {
|
||||
position: static;
|
||||
display: flex;
|
||||
padding-left: 30rpx;
|
||||
}
|
||||
|
||||
.fui-modal.goodslist .option-picker .option-picker-cell.goodinfo .img {
|
||||
position: static;
|
||||
}
|
||||
|
||||
.fui-modal.goodslist .option-picker .option-picker-cell.goodinfo:after,.option-picker .option-picker-cell.option:after {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.fui-modal.goodslist .fui-list {
|
||||
background: #f7f7f7;
|
||||
}
|
||||
|
||||
.fui-modal.goodslist .fui-list-inner {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
height: 100rpx;
|
||||
}
|
||||
|
||||
.fui-modal.goodslist .fui-list-inner .subtitle {
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
.fui-modal.goodslist .fui-list-inner .price {
|
||||
font-size: 30rpx;
|
||||
line-height: 30rpx;
|
||||
color: #ff5555;
|
||||
}
|
||||
|
||||
.fui-modal.goodslist .option-picker .fui-navbar .cartbtn {
|
||||
color: #333;
|
||||
border: 1px solid #e5e5e5;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.sold-out-gift {
|
||||
position: absolute;
|
||||
z-index: 4;
|
||||
background: rgba(255,255,255,.8);
|
||||
width: 100%;
|
||||
height: 104rpx;
|
||||
line-height: 104rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.gift-goods-group {
|
||||
font-size: 28rpx;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.gift-goods-group .subtitle {
|
||||
color: #666;
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
.gift-goods-group .gift-title {
|
||||
padding: 0 12rpx;
|
||||
width: 120rpx;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.fui-list {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.gift-list-group {
|
||||
padding: 0 15rpx;
|
||||
height: auto;
|
||||
overflow: auto;
|
||||
max-height: 700rpx;
|
||||
}
|
||||
|
||||
.gift-list .radio {
|
||||
height: 106rpx;
|
||||
line-height: 106rpx;
|
||||
color: #ff5555;
|
||||
vertical-align: middle;
|
||||
font-size: 24rpx;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
|
||||
.gift-list .wx-radio-input {
|
||||
display: inline-block;
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
}
|
||||
|
||||
.gift-list .fui-list {
|
||||
margin-bottom: 5rpx;
|
||||
}
|
||||
|
||||
.gift-list .fui-list:before {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.gift-list .fui-list .fui-list-inner .subtitle {
|
||||
font-size: 24rpx;
|
||||
color: #000;
|
||||
line-height: 50rpx;
|
||||
}
|
||||
|
||||
.gift-list .fui-list .fui-list-inner .row .row-text {
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
.gift-list .row-remark {
|
||||
text-align: right;
|
||||
position: relative;
|
||||
flex-shrink: 0;
|
||||
padding-left: 25rpx;
|
||||
font-size: 24rpx;
|
||||
color: #000;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.gift-list .row-remark view {
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
.gift-list .fui-list .fui-list-inner .subtitle2 {
|
||||
font-size: 22rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.gift-list .fui-navbar.btn {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.act-cell {
|
||||
padding: 0 36rpx;
|
||||
margin-top: 40rpx;
|
||||
}
|
||||
|
||||
.act-cell-title {
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.act-tips {
|
||||
display: inline-block;
|
||||
width: 18rpx;
|
||||
height: 18rpx;
|
||||
border: 1px solid #ff5555;
|
||||
transform: rotate(45deg);
|
||||
margin-right: 26rpx;
|
||||
}
|
||||
|
||||
.act-cell-inner {
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
line-height: 28rpx;
|
||||
padding-left: 55rpx;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
.goods-picker .option-Commission {
|
||||
display: none;
|
||||
vertical-align: middle;
|
||||
margin-top: -12rpx;
|
||||
padding: 0 20rpx;
|
||||
height: 36rpx;
|
||||
line-height: 36rpx;
|
||||
border-radius: 36rpx;
|
||||
color: #fff;
|
||||
font-size: 20rpx;
|
||||
margin-left: 20rpx;
|
||||
background: linear-gradient(to right,#f0b938 0%,#f09938 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#fff0b938, endColorstr=#fff09938,gradientType='1');
|
||||
}
|
||||
|
||||
.goods-picker .option-Commission.show {
|
||||
display: inline-block!important;
|
||||
}
|
||||
|
||||
.sold-out-gift {
|
||||
position: absolute;
|
||||
z-index: 4;
|
||||
background: rgba(255,255,255,.8);
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
line-height: 104rpx;
|
||||
text-align: center;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.register .fui-list-group .fui-list .image-32 {
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
}
|
||||
|
||||
.fui-list-group .fui-list-inner {
|
||||
font-size: 30rpx;
|
||||
}
|
||||
|
||||
.register .fui-content image {
|
||||
width: 100%;
|
||||
height: 242rpx;
|
||||
}
|
||||
|
||||
.remind {
|
||||
margin-top: 12rpx;
|
||||
}
|
||||
|
||||
.wait {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.commission-shouye {
|
||||
position: fixed;
|
||||
right: 20rpx;
|
||||
z-index: 999;
|
||||
font-size: 22rpx;
|
||||
color: #fff;
|
||||
width: 84rpx;
|
||||
height: 84rpx;
|
||||
transition: all .7s;
|
||||
background: rgba(0,0,0,0.5);
|
||||
bottom: 280rpx;
|
||||
}
|
||||
|
||||
.commission-shouye {
|
||||
width: 90rpx;
|
||||
height: 90rpx;
|
||||
background: #ff5555;
|
||||
position: fixed;
|
||||
right: 20rpx;
|
||||
bottom: 80rpx;
|
||||
border-radius: 50%;
|
||||
text-align: center;
|
||||
padding: 0;
|
||||
line-height: 90rpx;
|
||||
}
|
||||
|
||||
.commission-shouye {
|
||||
bottom: 190rpx;
|
||||
}
|
||||
|
||||
.commission-shouye .icox {
|
||||
font-size: 50rpx;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.wait image {
|
||||
width: 220rpx;
|
||||
height: 220rpx;
|
||||
margin: 50rpx 0;
|
||||
}
|
||||
|
||||
.wait view {
|
||||
margin: 20rpx;
|
||||
color: #666;
|
||||
}
|
53
commission/pages/return/index.js
Normal file
53
commission/pages/return/index.js
Normal file
@ -0,0 +1,53 @@
|
||||
var t = getApp(), a = t.requirejs("core");
|
||||
|
||||
Page({
|
||||
data: {
|
||||
type: 0,
|
||||
page: 1,
|
||||
list: []
|
||||
},
|
||||
onLoad: function() {
|
||||
this.getList();
|
||||
},
|
||||
onShow: function() {
|
||||
t.getCache("userinfo_openid") || wx.navigateTo({
|
||||
url: "/pages/auth/index"
|
||||
});
|
||||
},
|
||||
onReachBottom: function() {
|
||||
this.data.loaded || this.data.list.length == this.data.total || this.getList();
|
||||
},
|
||||
onPullDownRefresh: function() {
|
||||
wx.stopPullDownRefresh();
|
||||
},
|
||||
getList: function() {
|
||||
var t = this;
|
||||
a.get("member.fullback.get_list", {
|
||||
page: t.data.page,
|
||||
type: t.data.type
|
||||
}, function(a) {
|
||||
var e = {
|
||||
total: a.total,
|
||||
pagesize: a.pagesize,
|
||||
list: a.list,
|
||||
show: !0
|
||||
};
|
||||
a.list.length > 0 && (e.page = t.data.page + 1, e.list = t.data.list.concat(a.list),
|
||||
a.list.length < a.pagesize && (e.loaded = !0)), t.setData(e);
|
||||
}), a.get("member.fullback.get_all", {}, function(a) {
|
||||
!1 !== a.info.day ? t.setData({
|
||||
info: a.info
|
||||
}) : t.setData({
|
||||
info: !1
|
||||
});
|
||||
});
|
||||
},
|
||||
myTab: function(t) {
|
||||
var a = t.currentTarget.dataset.type;
|
||||
this.setData({
|
||||
type: a,
|
||||
page: 1,
|
||||
list: []
|
||||
}), this.getList();
|
||||
}
|
||||
});
|
4
commission/pages/return/index.json
Normal file
4
commission/pages/return/index.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "全返记录",
|
||||
"usingComponents": {}
|
||||
}
|
73
commission/pages/return/index.wxml
Normal file
73
commission/pages/return/index.wxml
Normal file
@ -0,0 +1,73 @@
|
||||
<loading wx:if="{{!show}}">加载中...</loading>
|
||||
<view class="full-info" wx:if="{{info}}">
|
||||
<view class="time">
|
||||
创建时间: <span>{{info.createtime}} </span>
|
||||
</view>
|
||||
<view class="flex">
|
||||
<view>
|
||||
¥{{info.allprice}} <p>全返总额</p>
|
||||
</view>
|
||||
<view>
|
||||
¥{{info.hasprice}}<p>已返金额</p>
|
||||
</view>
|
||||
<view>
|
||||
{{info.day}} <p>返还天数 </p>
|
||||
</view>
|
||||
<view>
|
||||
{{info.fullbackday}} <p>已返天数</p>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-tab fui-tab-danger">
|
||||
<view bindtap="myTab" class="item {{type==0?'active':''}}" data-type="0">未完成</view>
|
||||
<view bindtap="myTab" class="item {{type==1?'active':''}}" data-type="1">已完成</view>
|
||||
</view>
|
||||
<view class="page com-log" wx:if="true">
|
||||
<view class="fui-list-group" wx:for="{{list}}" wx:key="key">
|
||||
<view class="fui-list" style="font-size: 24rpx;color: #000;">
|
||||
<text selectable="true" style="margin-right:40rpx">每天返回¥{{item.priceevery}},剩{{item.surplusday}}天</text>
|
||||
</view>
|
||||
<view class="fui-list" style="background: #f9f9f9">
|
||||
<view class="fui-list-media">
|
||||
<image src="{{item.thumb}}"></image>
|
||||
</view>
|
||||
<view class="fui-list-inner" style="padding-right: 126rpx;">
|
||||
<view class="row">
|
||||
<view class="row-text">{{item.title}}</view>
|
||||
</view>
|
||||
<view class="subtitle">{{item.optionname}}</view>
|
||||
</view>
|
||||
<view class="fui-list-remark" style="">
|
||||
<view class="text" style="color: #ffac1f;">
|
||||
<block wx:if="{{type==0}}">进行中</block>
|
||||
<block wx:if="{{type==1}}">已完成</block>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-list">
|
||||
<view class="fui-list-inner">
|
||||
<view class="subtitle2">
|
||||
<text selectable="true">总金额: ¥{{item.price}}</text>
|
||||
</view>
|
||||
<view class="subtitle2">
|
||||
<text selectable="true">已返金额: ¥{{item.surplusprice}}</text>
|
||||
</view>
|
||||
<view class="subtitle2">
|
||||
<text selectable="true">已返: {{item.fullbackday}}天</text>
|
||||
</view>
|
||||
<view class="subtitle2">
|
||||
<text selectable="true">创建时间: {{item.createtime}} </text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="center" wx:if="{{list.length<1}}">
|
||||
<view class="empty-tip">
|
||||
<image class="light" src="/static/images/icon/nolist.png"></image>
|
||||
<view class="text-cancel">暂时没有任何数据</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-loading empty" wx:if="{{loaded&&list.length>0}}">
|
||||
<view class="text">没有更多了</view>
|
||||
</view>
|
||||
</view>
|
76
commission/pages/return/index.wxss
Normal file
76
commission/pages/return/index.wxss
Normal file
@ -0,0 +1,76 @@
|
||||
@import "../../static/css/commission.wxss";
|
||||
|
||||
.fui-list .fui-list-inner .subtitle {
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.fui-list .fui-list-inner .row .row-text {
|
||||
font-size: 24rpx;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.row-remark {
|
||||
text-align: right;
|
||||
position: relative;
|
||||
flex-shrink: 0;
|
||||
padding-left: 25rpx;
|
||||
font-size: 24rpx;
|
||||
color: #000;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.fui-list .fui-list-inner .subtitle2 {
|
||||
font-size: 22rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.fui-list .fui-list-remark {
|
||||
position: absolute;
|
||||
top: 38rpx;
|
||||
right: 50rpx;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.fui-tab {
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 9999;
|
||||
width: 100%;
|
||||
border-top: 1rpx solid #ebebeb;
|
||||
}
|
||||
|
||||
.fui-list-group:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.full-info {
|
||||
background: #ff5555;
|
||||
padding: 24rpx;
|
||||
color: #fff;
|
||||
margin-bottom: 24rpx;
|
||||
}
|
||||
|
||||
.full-info .time {
|
||||
font-size: 22rpx;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.full-info .flex {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.full-info .flex view {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
font-size: 30rpx;
|
||||
margin-top: 24rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.full-info .flex view p {
|
||||
font-size: 24rpx;
|
||||
display: block;
|
||||
line-height: 48rpx;
|
||||
font-weight: normal;
|
||||
}
|
39
commission/pages/withdraw/index.js
Normal file
39
commission/pages/withdraw/index.js
Normal file
@ -0,0 +1,39 @@
|
||||
var t = getApp(), a = t.requirejs("core");
|
||||
|
||||
Page({
|
||||
data: {
|
||||
code: 0
|
||||
},
|
||||
onShow: function() {
|
||||
this.getData();
|
||||
t.getCache("isIpx") ? this.setData({
|
||||
isIpx: !0,
|
||||
iphonexnavbar: "fui-iphonex-navbar",
|
||||
paddingb: "padding-b"
|
||||
}) : this.setData({
|
||||
isIpx: !1,
|
||||
iphonexnavbar: "",
|
||||
paddingb: ""
|
||||
});
|
||||
},
|
||||
getData: function() {
|
||||
var t = this;
|
||||
a.get("commission/withdraw", {}, function(a) {
|
||||
a.show = !0, t.setData(a), wx.setNavigationBarTitle({
|
||||
title: a.set.texts.commission1
|
||||
});
|
||||
});
|
||||
},
|
||||
toggleSend: function(t) {
|
||||
0 == t.currentTarget.dataset.id ? this.setData({
|
||||
code: 1
|
||||
}) : this.setData({
|
||||
code: 0
|
||||
});
|
||||
},
|
||||
withdraw: function(t) {
|
||||
this.data.cansettle && wx.navigateTo({
|
||||
url: "../apply/index"
|
||||
});
|
||||
}
|
||||
});
|
4
commission/pages/withdraw/index.json
Normal file
4
commission/pages/withdraw/index.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "分销佣金",
|
||||
"usingComponents": {}
|
||||
}
|
102
commission/pages/withdraw/index.wxml
Normal file
102
commission/pages/withdraw/index.wxml
Normal file
@ -0,0 +1,102 @@
|
||||
<view class="{{isIpx?'fui-iphonex-button':''}}"></view>
|
||||
<loading wx:if="{{!show}}">加载中...</loading>
|
||||
<view class="page withdraw navbar {{paddingb}}" wx:if="{{show}}">
|
||||
<view class="header">
|
||||
<navigator class="btn pull-right" hoverClass="none" openType="navigate" url="../log/index">{{set['texts']['commission_detail']}}</navigator>
|
||||
<view class="text">
|
||||
<view class="num">{{member['commission_total']}}</view>
|
||||
<view>{{set['texts']['commission_total']}}({{set['texts']['yuan']}})</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell-group">
|
||||
<view class="fui-cell">
|
||||
<view class="fui-cell-label">{{set['texts']['commission_ok']}}</view>
|
||||
<view class="fui-cell-info"></view>
|
||||
<view class="fui-cell-remark noremark">
|
||||
<text class="text-warning">{{member['commission_ok']}}<text>{{set['texts']['yuan']}}</text>
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell-group">
|
||||
<view class="fui-cell">
|
||||
<view class="fui-cell-label">{{set['texts']['commission_apply']}}</view>
|
||||
<view class="fui-cell-info"></view>
|
||||
<view class="fui-cell-remark noremark">
|
||||
<text>{{member['commission_apply']}}<text>{{set['texts']['yuan']}}</text>
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell">
|
||||
<view class="fui-cell-label">{{set['texts']['commission_check']}}</view>
|
||||
<view class="fui-cell-info"></view>
|
||||
<view class="fui-cell-remark noremark">
|
||||
<text>{{member['commission_check']}}<text>{{set['texts']['yuan']}}</text>
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell">
|
||||
<view class="fui-cell-label">{{set['texts']['commission_fail']}}</view>
|
||||
<view class="fui-cell-info"></view>
|
||||
<view class="fui-cell-remark noremark">
|
||||
<text>{{member['commission_fail']}}<text>{{set['texts']['yuan']}}</text>
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell">
|
||||
<view class="fui-cell-label">{{set['texts']['commission_pay']}}</view>
|
||||
<view class="fui-cell-info"></view>
|
||||
<view class="fui-cell-remark noremark">
|
||||
<text>{{member['commission_pay']}}<text>{{set['texts']['yuan']}}</text>
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell" wx:if="{{member['commission_charge']>0}}">
|
||||
<view class="fui-cell-label">{{set['texts']['commission_charge']}}</view>
|
||||
<view class="fui-cell-info"></view>
|
||||
<view class="fui-cell-remark noremark">
|
||||
<text>{{member['commission_charge']}}<text>{{set['texts']['yuan']}}</text>
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell-group">
|
||||
<view class="fui-cell">
|
||||
<view class="fui-cell-label">{{set['texts']['commission_wait']}}</view>
|
||||
<view class="fui-cell-info"></view>
|
||||
<view class="fui-cell-remark noremark">
|
||||
<text>{{member['commission_wait']}}<text>{{set['texts']['yuan']}}</text>
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell">
|
||||
<view class="fui-cell-label">{{set['texts']['commission_lock']}}</view>
|
||||
<view class="fui-cell-info"></view>
|
||||
<view class="fui-cell-remark noremark">
|
||||
<text>{{member['commission_lock']}}<text>{{set['texts']['yuan']}}</text>
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell-group {{code?'':'toggleSend-group'}}">
|
||||
<navigator bindtap="toggleSend" class="fui-cell" data-id="{{code}}" hoverClass="none" url="">
|
||||
<view class="fui-cell-info color">
|
||||
用户需知
|
||||
</view>
|
||||
<view class="fui-cell-remark"></view>
|
||||
</navigator>
|
||||
<view class="apply send-code">
|
||||
<view wx:if="{{set['settledays']>0}}">买家确认收货(<span class="text-danger">{{set['settledays']}}天</span> )后,{{set['texts']['commission']}}可{{set['texts']['withdraw']}}。结算期内,买家退货,{{set['texts']['commission']}}将自动扣除。</view>
|
||||
<view wx:else>买家确认收货后,立即获得{{set['texts']['commission1']}}</view>
|
||||
<view wx:if="{{set['withdraw']>0}}">注意:可用{{set['texts']['commission']}}满 <span class="text-warning">{{set['withdraw']}}{{set['texts']['yuan']}}</span> 后才能申请{{set['texts']['withdraw']}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-navbar {{iphonexnavbar}}">
|
||||
<view bindtap="withdraw" class="nav-item btn btn-warning block {{!cansettle?'disabled':''}}" wx:if="{{set['texts']['withdraw']==''}}">
|
||||
我要提现
|
||||
</view>
|
||||
<view bindtap="withdraw" class="nav-item btn btn-warning block {{!cansettle?'disabled':''}}" wx:if="{{set['texts']['withdraw']!=''}}">
|
||||
我要{{set['texts']['withdraw']}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
79
commission/pages/withdraw/index.wxss
Normal file
79
commission/pages/withdraw/index.wxss
Normal file
@ -0,0 +1,79 @@
|
||||
.withdraw .header {
|
||||
height: auto;
|
||||
color: #fff;
|
||||
padding: 48rpx 20rpx;
|
||||
background: #fea23d;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.withdraw .header .text {
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
font-size: 26rpx;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.withdraw .header .btn.pull-right {
|
||||
position: absolute;
|
||||
top: 5rpx;
|
||||
right: 5rpx;
|
||||
border: 0;
|
||||
color: #9d5200;
|
||||
text-decoration: underline;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.withdraw .header .text .num {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.withdraw .header .btn {
|
||||
height: 50rpx;
|
||||
width: auto;
|
||||
padding: 0 15rpx;
|
||||
border: 1px solid #fff;
|
||||
line-height: 50rpx;
|
||||
border-radius: 25rpx;
|
||||
font-size: 30rpx;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.withdraw .fui-cell-group .fui-cell .fui-cell-icon {
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
|
||||
.withdraw .fui-cell-group .fui-cell .fui-cell-label {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.withdraw .fui-cell-group .fui-cell .fui-cell-text {
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
|
||||
.withdraw .fui-cell-group .color {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.send-code {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.fui-cell-group.toggleSend-group .send-code {
|
||||
display: block;
|
||||
font-size: 26rpx;
|
||||
padding: 6rpx 30rpx 20rpx 30rpx;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.fui-cell-group.toggleSend-group .fui-cell .fui-cell-remark::after {
|
||||
transform: rotate(135deg);
|
||||
}
|
||||
|
||||
.fui-navbar,.fui-footer {
|
||||
height: 90rpx;
|
||||
}
|
||||
|
||||
.fui-navbar .nav-item.btn.btn-warning {
|
||||
height: 90rpx;
|
||||
border-radius: 0;
|
||||
}
|
44
commission/static/css/commission.wxss
Normal file
44
commission/static/css/commission.wxss
Normal file
@ -0,0 +1,44 @@
|
||||
.row-remark {
|
||||
text-align: right;
|
||||
position: relative;
|
||||
flex-shrink: 0;
|
||||
padding-left: 20rpx;
|
||||
color: #aaa;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
|
||||
.row-remark:before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 1px;
|
||||
height: 100%;
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
.center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.edtion {
|
||||
color: #999999;
|
||||
font-size: 14px;
|
||||
text-align: center;
|
||||
padding: 20rpx 0;
|
||||
}
|
||||
|
||||
.empty-tip {
|
||||
padding: 150rpx;
|
||||
}
|
||||
|
||||
.light {
|
||||
height: 240rpx;
|
||||
width: 240rpx;
|
||||
}
|
||||
|
||||
.text-cancel {
|
||||
padding: 40rpx;
|
||||
color: #999;
|
||||
font-size: 30rpx;
|
||||
}
|
88
dividend/pages/apply/index.js
Normal file
88
dividend/pages/apply/index.js
Normal file
@ -0,0 +1,88 @@
|
||||
var a = getApp(), t = a.requirejs("/core"), e = a.requirejs("/foxui");
|
||||
|
||||
a.requirejs("jquery");
|
||||
|
||||
Page({
|
||||
data: {
|
||||
radios: {
|
||||
balance: {
|
||||
checked: 0,
|
||||
name: "余额"
|
||||
},
|
||||
weixin: {
|
||||
checked: 0,
|
||||
name: "微信"
|
||||
},
|
||||
alipay: {
|
||||
checked: 0,
|
||||
name: "支付宝"
|
||||
},
|
||||
card: {
|
||||
checked: 0,
|
||||
name: "银行卡"
|
||||
}
|
||||
},
|
||||
args: {}
|
||||
},
|
||||
onLoad: function(a) {
|
||||
var e = this;
|
||||
t.get("dividend/apply", "", function(a) {
|
||||
e.setData({
|
||||
msg: a
|
||||
}), a.member;
|
||||
});
|
||||
},
|
||||
selected: function(a) {
|
||||
var t = this.data.radios, e = a.currentTarget.dataset.status;
|
||||
for (var i in t) e == i ? (t[i].checked = 1 != a.currentTarget.dataset.checked,
|
||||
this.setData({
|
||||
radios: t,
|
||||
"args.type": a.currentTarget.dataset.type
|
||||
})) : (t[i].checked = !1, this.setData({
|
||||
radios: t
|
||||
}));
|
||||
},
|
||||
changeinput: function(a) {
|
||||
var t = a.detail.value, e = a.target.dataset.input, i = this.data.args;
|
||||
i[e] = t, this.setData({
|
||||
args: i
|
||||
});
|
||||
},
|
||||
bindpullldown: function(a) {
|
||||
console.error(a.detail.value);
|
||||
var t = a.detail.value, e = this.data.msg.banklist;
|
||||
this.data.args;
|
||||
for (var i in e) i == t && this.setData({
|
||||
"args.bankname": e[t].bankname,
|
||||
index: t
|
||||
});
|
||||
},
|
||||
submit: function() {
|
||||
var a = "", i = this.data.args;
|
||||
if (0 == i.type) a = "余额"; else if (1 == i.type) a = "微信钱包"; else if (2 == i.type) {
|
||||
if (a = "支付宝", !i.realname) return void e.toast(this, "请输入姓名");
|
||||
if (!i.alipay) return void e.toast(this, "请输入支付宝账号");
|
||||
if (!i.alipay1) return void e.toast(this, "请输入支付宝确认账号");
|
||||
if (i.alipay != i.alipay1) return void e.toast(this, "支付宝账号不一致");
|
||||
} else if (3 == i.type) {
|
||||
if (a = "银行卡", !i.realname1) return void e.toast(this, "请输入姓名");
|
||||
if (!i.bankname) return void e.toast(this, "请选择银行");
|
||||
if (!i.openbank) return void e.toast(this, "请输入开户行");
|
||||
if (!i.bankcard) return void e.toast(this, "请输入银行卡账号");
|
||||
if (!i.bankcard1) return void e.toast(this, "请输入银行卡确认账号");
|
||||
if (i.bankcard != i.bankcard1) return void e.toast(this, "银行卡账号不一致");
|
||||
i.realname = i.realname1;
|
||||
}
|
||||
wx.showModal({
|
||||
title: "提示",
|
||||
content: "确认提现到" + a + "吗?",
|
||||
success: function(a) {
|
||||
a.confirm && t.post("dividend/apply", i, function(a) {
|
||||
wx.navigateBack({
|
||||
detail: 1
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
4
dividend/pages/apply/index.json
Normal file
4
dividend/pages/apply/index.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "申请提现",
|
||||
"usingComponents": {}
|
||||
}
|
123
dividend/pages/apply/index.wxml
Normal file
123
dividend/pages/apply/index.wxml
Normal file
@ -0,0 +1,123 @@
|
||||
<view class="page">
|
||||
<view class="header">
|
||||
<view class="title">我的提现</view>
|
||||
<view class="price">¥{{msg.dividend_ok}}</view>
|
||||
</view>
|
||||
<view class="content fui-cell-group">
|
||||
<view class="fui-cell" style="color: #999;font-size:28rpx">提现方式</view>
|
||||
<view class="fui-cell" wx:if="{{msg.type_array[0].title}}">
|
||||
<view class="fui-cell-icon">
|
||||
<text class="icox icox-daituikuan2" style="color: #d6aa3f;"></text>
|
||||
</view>
|
||||
<view class="fui-cell-text">
|
||||
<p class="text">提现到余额</p>
|
||||
</view>
|
||||
<view class="fui-cell-remark noremark">
|
||||
<radio bindtap="selected" checked="{{radios.balance.checked==1?true:false}}" color="#cfa943" data-checked="{{radios.balance.checked}}" data-status="balance" data-type="0"></radio>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell" wx:if="{{msg.type_array[1].title}}">
|
||||
<view class="fui-cell-icon">
|
||||
<text class="icox icox-weixinzhifu" style="color: #05c907"></text>
|
||||
</view>
|
||||
<view class="fui-cell-text">
|
||||
<p class="text">提现到微信钱包</p>
|
||||
</view>
|
||||
<view class="fui-cell-remark noremark">
|
||||
<radio bindtap="selected" checked="{{radios.weixin.checked==1?true:false}}" color="#cfa943" data-checked="{{radios.weixin.checked}}" data-status="weixin" data-type="1"></radio>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell" wx:if="{{msg.type_array[2].title}}">
|
||||
<view class="fui-cell-icon">
|
||||
<text class="icox icox-zhifubao" style="color: #168fea;"></text>
|
||||
</view>
|
||||
<view class="fui-cell-text">
|
||||
<p class="text">提现到支付宝</p>
|
||||
</view>
|
||||
<view class="fui-cell-remark noremark">
|
||||
<radio bindtap="selected" checked="{{radios.alipay.checked==1?true:false}}" color="#cfa943" data-checked="{{radios.alipay.checked}}" data-status="alipay" data-type="2"></radio>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell" wx:if="{{radios.alipay.checked==1}}">
|
||||
<view class="fui-cell-label">姓名</view>
|
||||
<view class="fui-cell-info"></view>
|
||||
<view class="fui-cell-remark noremark">
|
||||
<input bindinput="changeinput" data-input="realname" placeholder="请填写姓名" placeholderStyle="color:#ccc" type="text"></input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell" wx:if="{{radios.alipay.checked==1}}">
|
||||
<view class="fui-cell-label">支付宝账号</view>
|
||||
<view class="fui-cell-info"></view>
|
||||
<view class="fui-cell-remark noremark">
|
||||
<input bindinput="changeinput" data-input="alipay" placeholder="请填写支付宝账号" placeholderStyle="color:#ccc" type="text"></input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell" wx:if="{{radios.alipay.checked==1}}">
|
||||
<view class="fui-cell-label">确认账号</view>
|
||||
<view class="fui-cell-info"></view>
|
||||
<view class="fui-cell-remark noremark">
|
||||
<input bindinput="changeinput" data-input="alipay1" placeholder="请填写支付宝账号" placeholderStyle="color:#ccc" type="text"></input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell" wx:if="{{msg.type_array[3].title}}">
|
||||
<view class="fui-cell-icon">
|
||||
<text class="icox icox-yinhangqia" style="color: #e96c6a"></text>
|
||||
</view>
|
||||
<view class="fui-cell-text">
|
||||
<p class="text">提现到银行卡</p>
|
||||
</view>
|
||||
<view class="fui-cell-remark noremark">
|
||||
<radio bindtap="selected" checked="{{radios.card.checked==1?true:false}}" color="#cfa943" data-checked="{{radios.card.checked}}" data-status="card" data-type="3"></radio>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell" wx:if="{{radios.card.checked==1}}">
|
||||
<view class="fui-cell-label">姓名</view>
|
||||
<view class="fui-cell-info"></view>
|
||||
<view class="fui-cell-remark noremark">
|
||||
<input bindinput="changeinput" data-input="realname1" placeholder="请填写姓名" placeholderStyle="color:#ccc" type="text"></input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell" wx:if="{{radios.card.checked==1}}">
|
||||
<view class="fui-cell-label">选择银行</view>
|
||||
<view class="fui-cell-info"></view>
|
||||
<view class="fui-cell-remark">
|
||||
<picker bindchange="bindpullldown" class="serve-picker" data-input="{{msg.banklist[index]}}" mode="selector" range="{{msg.banklist}}" rangeKey="bankname" value="{{index}}">
|
||||
{{msg.banklist[index].bankname||'请选择银行'}}
|
||||
</picker>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell" wx:if="{{radios.card.checked==1}}">
|
||||
<view class="fui-cell-label">开户行</view>
|
||||
<view class="fui-cell-info"></view>
|
||||
<view class="fui-cell-remark noremark">
|
||||
<input bindinput="changeinput" data-input="openbank" placeholder="请填写开户行" placeholderStyle="color:#ccc" type="text"></input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell" wx:if="{{radios.card.checked==1}}">
|
||||
<view class="fui-cell-label">银行卡号</view>
|
||||
<view class="fui-cell-info"></view>
|
||||
<view class="fui-cell-remark noremark">
|
||||
<input bindinput="changeinput" data-input="bankcard" placeholder="请填写银行卡号" placeholderStyle="color:#ccc" type="text"></input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell" wx:if="{{radios.card.checked==1}}">
|
||||
<view class="fui-cell-label">确认卡号</view>
|
||||
<view class="fui-cell-info"></view>
|
||||
<view class="fui-cell-remark noremark">
|
||||
<input bindinput="changeinput" data-input="bankcard1" placeholder="请填写银行卡号" placeholderStyle="color:#ccc" type="text"></input>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view bindtap="submit" class="submit">下一步</view>
|
||||
<view class="tip">
|
||||
<view>详情说明</view>
|
||||
<view wx:if="{{msg.set_array.charge!=0}}">分红提现{{msg.set.texts.dividend_charge}}{{msg.set_array.charge}}%</view>
|
||||
<view wx:if="{{msg.set_array.end!=0}}">{{msg.set.texts.dividend_charge}}金额在¥{{msg.set_array.begin}}到¥{{msg.set_array.end}}间免收</view>
|
||||
<view wx:if="{{msg.deductionmoney!=0}}">本次提现将{{msg.set.texts.dividend_charge}}金额¥{{msg.deductionmoney}}</view>
|
||||
<view wx:if="{{msg.set_array.charge!=0}}">本次提现实际到账金额<text style="color: #cfa943;">¥{{msg.realmoney}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-toast {{FoxUIToast.show?'in':'out'}}">
|
||||
<view class="text">{{FoxUIToast.text}}</view>
|
||||
</view>
|
68
dividend/pages/apply/index.wxss
Normal file
68
dividend/pages/apply/index.wxss
Normal file
@ -0,0 +1,68 @@
|
||||
.header {
|
||||
height: 173rpx;
|
||||
background: #1c1b21;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
padding: 0 24rpx;
|
||||
}
|
||||
|
||||
.header .title {
|
||||
font-size: 28rpx;
|
||||
color: #999;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.header .price {
|
||||
font-size: 40rpx;
|
||||
color: #cfa943;
|
||||
}
|
||||
|
||||
.content .cell {
|
||||
line-height: 88rpx;
|
||||
font-size: 28rpx;
|
||||
color: #666;
|
||||
display: flex;
|
||||
position: relative;
|
||||
padding-left: 24rpx;
|
||||
border-bottom: 1rpx solid #ededed;
|
||||
}
|
||||
|
||||
.submit {
|
||||
width: 702rpx;
|
||||
height: 80rpx;
|
||||
background: #1c1b21;
|
||||
margin: 36rpx auto 20rpx;
|
||||
font-size: 34rpx;
|
||||
text-align: center;
|
||||
line-height: 80rpx;
|
||||
color: #cfa943;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
|
||||
.tip {
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
line-height: 36rpx;
|
||||
padding: 0 24rpx;
|
||||
margin-bottom: 60rpx;
|
||||
}
|
||||
|
||||
.fui-cell-group .fui-cell .fui-cell-remark {
|
||||
text-align: right;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
radio {
|
||||
transform: scale(0.8);
|
||||
position: absolute;
|
||||
right: -20rpx;
|
||||
top: -22rpx;
|
||||
}
|
||||
|
||||
picker {
|
||||
float: left;
|
||||
font-size: 26rpx;
|
||||
color: #ccc;
|
||||
line-height: 44rpx;
|
||||
}
|
48
dividend/pages/down/index.js
Normal file
48
dividend/pages/down/index.js
Normal file
@ -0,0 +1,48 @@
|
||||
var t = getApp(), a = t.requirejs("/core");
|
||||
|
||||
t.requirejs("jquery");
|
||||
|
||||
Page({
|
||||
data: {
|
||||
list: [],
|
||||
page: 1,
|
||||
loading: !1
|
||||
},
|
||||
onLoad: function() {
|
||||
this.getlist();
|
||||
},
|
||||
onPullDownRefresh: function() {
|
||||
wx.stopPullDownRefresh();
|
||||
},
|
||||
onReachBottom: function() {
|
||||
this.data.loading || this.data.list.length == this.data.total || this.getlist();
|
||||
},
|
||||
getlist: function() {
|
||||
var t = this;
|
||||
t.setData({
|
||||
loading: !0
|
||||
}), console.error(t.data.loading), a.get("dividend/down", {
|
||||
page: t.data.page
|
||||
}, function(a) {
|
||||
console.error(a);
|
||||
var e = {
|
||||
total: a.total,
|
||||
pagesize: a.pagesize
|
||||
};
|
||||
if (0 == a.error) {
|
||||
if (a.list.length > 0) {
|
||||
e.page = t.data.page + 1;
|
||||
var o = t.data.list.concat(a.list);
|
||||
}
|
||||
t.setData({
|
||||
member: a.member,
|
||||
list: o,
|
||||
loading: !1,
|
||||
total: a.total,
|
||||
page: e.page,
|
||||
stop: !1
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
6
dividend/pages/down/index.json
Normal file
6
dividend/pages/down/index.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationBarTitleText": "我的下线",
|
||||
"enablePullDownRefresh": true,
|
||||
"backgroundTextStyle": "dark",
|
||||
"usingComponents": {}
|
||||
}
|
28
dividend/pages/down/index.wxml
Normal file
28
dividend/pages/down/index.wxml
Normal file
@ -0,0 +1,28 @@
|
||||
<view class="page">
|
||||
<navigator class="my-list" hoverClass="none" openType="navigate" wx:for="{{list}}">
|
||||
<view class="my-list-media">
|
||||
<image src="{{item.avatar}}"></image>
|
||||
</view>
|
||||
<view class="my-list-inner">
|
||||
<view class="text">
|
||||
<view class="title">{{item.nickname}}</view>
|
||||
<view class="subtitle">注册时间:{{item.createtime}}</view>
|
||||
</view>
|
||||
<view class="nums">
|
||||
<view class="num">+{{item.moneycount}}</view>
|
||||
<view class="num-order">{{item.ordercount}}个订单</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="my-list-remark noremark"></view>
|
||||
</navigator>
|
||||
<view class="fui-loading" wx:if="{{loading}}">
|
||||
<view class="icon"></view>
|
||||
<view class="text">正在加载</view>
|
||||
</view>
|
||||
<view class="fui-loading empty" wx:if="{{list.length==total&&total>0&&loading==false}}">
|
||||
<view class="text">没有更多了</view>
|
||||
</view>
|
||||
<view class="fui-loading empty" wx:if="{{total<=0&&!loading}}">
|
||||
<view class="text">暂时没有任何下线</view>
|
||||
</view>
|
||||
</view>
|
95
dividend/pages/down/index.wxss
Normal file
95
dividend/pages/down/index.wxss
Normal file
@ -0,0 +1,95 @@
|
||||
page {
|
||||
background: #fff;
|
||||
padding-bottom: 120rpx;
|
||||
}
|
||||
|
||||
.nomargin {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.my-list {
|
||||
position: relative;
|
||||
display: flex;
|
||||
padding: 30rpx 24rpx;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.my-list-media image {
|
||||
border-radius: 50%;
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
}
|
||||
|
||||
.my-list-inner {
|
||||
padding-left: 24rpx;
|
||||
flex: 1;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.my-list-inner .text,.my-list-inner .nums {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.my-list-inner .title {
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.my-list-inner .subtitle {
|
||||
font-size: 24rpx;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.my-list-inner .num {
|
||||
font-size: 24rpx;
|
||||
color: #000;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.my-list-inner .num-order {
|
||||
font-size: 24rpx;
|
||||
color: #666;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.my-list-remark {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.my-list-remark::before {
|
||||
position: absolute;
|
||||
content: " ";
|
||||
display: inline-block;
|
||||
transform: rotate(45deg);
|
||||
height: 16rpx;
|
||||
width: 16rpx;
|
||||
border-width: 1px 1px 0 0;
|
||||
border-color: #C8C8CD;
|
||||
border-style: solid;
|
||||
top: -1px;
|
||||
margin-left: .3em;
|
||||
}
|
||||
|
||||
.my-list-remark.noremark::before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.my-list:before {
|
||||
content: " ";
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
height: 0;
|
||||
border-bottom: 1rpx solid #ebebeb;
|
||||
transform-origin: 0 0;
|
||||
transform: scaleY(0.5);
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.fui-loading.line .text,.fui-loading.empty .text {
|
||||
background: #fff;
|
||||
}
|
44
dividend/pages/index/index.js
Normal file
44
dividend/pages/index/index.js
Normal file
@ -0,0 +1,44 @@
|
||||
var e = getApp(), t = e.requirejs("/core"), i = e.requirejs("/foxui");
|
||||
|
||||
e.requirejs("jquery");
|
||||
|
||||
Page({
|
||||
data: {
|
||||
loading: !1
|
||||
},
|
||||
onLoad: function(t) {
|
||||
this.setData({
|
||||
imgUrl: e.globalData.approot
|
||||
}), this.getlist();
|
||||
},
|
||||
getlist: function() {
|
||||
var a = this;
|
||||
t.get("dividend", "", function(t) {
|
||||
1 == t.error && (console.error(t.message), i.toast(a, t.message), setTimeout(function() {
|
||||
wx.reLaunch({
|
||||
url: "/pages/index/index"
|
||||
});
|
||||
}, 1e3));
|
||||
var r = e.getCache("userinfo");
|
||||
a.setData({
|
||||
userinfo: r
|
||||
}), a.setData({
|
||||
message: t
|
||||
}), t.member ? wx.setNavigationBarTitle({
|
||||
title: t.set.texts.center || "分红中心"
|
||||
}) : wx.redirectTo({
|
||||
url: "/dividend/pages/register/index"
|
||||
});
|
||||
});
|
||||
},
|
||||
found: function() {
|
||||
var e = this;
|
||||
e.setData({
|
||||
loading: !0
|
||||
}), t.post("dividend/createTeam", "", function(t) {
|
||||
0 == t.error && (e.setData({
|
||||
loading: !1
|
||||
}), i.toast(e, "创建完成"), e.getlist());
|
||||
});
|
||||
}
|
||||
});
|
4
dividend/pages/index/index.json
Normal file
4
dividend/pages/index/index.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "分红中心",
|
||||
"usingComponents": {}
|
||||
}
|
73
dividend/pages/index/index.wxml
Normal file
73
dividend/pages/index/index.wxml
Normal file
@ -0,0 +1,73 @@
|
||||
<loading wx:if="{{loading}}">加载中...</loading>
|
||||
<image src="{{imgUrl+'/demo/logo.jpg'}}"></image>
|
||||
<view class="page">
|
||||
<view class="member-header">
|
||||
<view class="img">
|
||||
<image src="{{message.member.avatar||userinfo.avatarUrl}}"></image>
|
||||
</view>
|
||||
<view class="inner">
|
||||
<view class="title">{{message.member.nickname||'未更新'}}</view>
|
||||
<view>
|
||||
<text class="subtitle">{{message.set.texts.agent}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<block wx:if="{{message.isbuild==0}}">
|
||||
<view class="member-group">
|
||||
<view class="member-cell">
|
||||
<view class="member-cell-inner column">
|
||||
<text>请先点击创建团队。</text>
|
||||
<text>团队创建后才能获得{{message.set.texts.dividend}}收益。</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view bindtap="found" class="btn block setteam" style="background: #1b1a20; color: #cfa943; border-color: #1b1a20;margin-top: 40rpx">创建团队</view>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<navigator class="member-group" hoverClass="none" openType="navigate" url="/dividend/pages/order/index">
|
||||
<view class="member-cell">
|
||||
<view class="member-cell-inner column">{{message.set.texts.dividend}}订单</view>
|
||||
<view class="member-cell-remark column"></view>
|
||||
</view>
|
||||
</navigator>
|
||||
<navigator class="member-group" hoverClass="none" openType="navigate" url="/dividend/pages/withdraw/index">
|
||||
<view class="member-cell">
|
||||
<view class="member-cell-inner column">{{message.set.texts.dividend}}佣金</view>
|
||||
<view class="member-cell-remark column"></view>
|
||||
</view>
|
||||
</navigator>
|
||||
<view class="member-group">
|
||||
<view class="member-cell">
|
||||
<view class="member-cell-inner column">{{message.set.texts.dividend_pay}}({{message.set.texts.yuan}})</view>
|
||||
<view class="member-cell-remark noremark column">¥{{message.member.dividend_pay}}</view>
|
||||
</view>
|
||||
<view class="member-cell">
|
||||
<view class="member-cell-inner column">{{message.set.texts.dividend_ok}}({{message.set.texts.yuan}})</view>
|
||||
<view class="member-cell-remark noremark column">¥{{message.member.dividend_ok}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="member-group card">
|
||||
<navigator class="item" hoverClass="none" openType="navigate" url="/dividend/pages/log/index">
|
||||
<view class="item-icon column">
|
||||
<text class="icox icox-tixianmingxi"></text>
|
||||
</view>
|
||||
<view class="item-inner column">
|
||||
<view class="title">{{message.set.texts.withdraw}}明细</view>
|
||||
<view class="subtitle">{{message.member.applycount}}单</view>
|
||||
</view>
|
||||
</navigator>
|
||||
<navigator class="item" hoverClass="none" openType="navigate" url="/dividend/pages/down/index">
|
||||
<view class="item-icon column">
|
||||
<text class="icox icox-wodetuandui"></text>
|
||||
</view>
|
||||
<view class="item-inner column">
|
||||
<view class="title">我的团员</view>
|
||||
<view class="subtitle">{{message.member.groupscount}}个</view>
|
||||
</view>
|
||||
</navigator>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="fui-toast {{FoxUIToast.show?'in':'out'}}">
|
||||
<view class="text">{{FoxUIToast.text}}</view>
|
||||
</view>
|
196
dividend/pages/index/index.wxss
Normal file
196
dividend/pages/index/index.wxss
Normal file
@ -0,0 +1,196 @@
|
||||
.column {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.member-header {
|
||||
height: 193rpx;
|
||||
background: #1c1b20;
|
||||
position: relative;
|
||||
display: flex;
|
||||
padding: 0 24rpx;
|
||||
}
|
||||
|
||||
.member-header .img {
|
||||
width: 120rpx;
|
||||
height: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.member-header .img image {
|
||||
width: 120rpx;
|
||||
height: 120rpx;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.inner {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
color: #fff;
|
||||
font-size: 28rpx;
|
||||
padding-left: 24rpx;
|
||||
}
|
||||
|
||||
.inner .title {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.inner .subtitle {
|
||||
display: inline-block;
|
||||
height: 32rpx;
|
||||
font-size: 22rpx;
|
||||
color: #cfa943;
|
||||
border: 1rpx solid #cfa943;
|
||||
border-radius: 16rpx;
|
||||
line-height: 32rpx;
|
||||
padding: 0 12rpx;
|
||||
margin-top: 22rpx;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
|
||||
.set {
|
||||
width: 85rpx;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
color: #fff;
|
||||
padding: 22rpx 26rpx 0 0;
|
||||
font-size: 36rpx;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.member-group {
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
.member-cell {
|
||||
height: 108rpx;
|
||||
padding: 0 24rpx;
|
||||
background: #fff;
|
||||
display: flex;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.member-cell::after {
|
||||
content: " ";
|
||||
position: absolute;
|
||||
left: 24rpx;
|
||||
right: 24rpx;
|
||||
bottom: 0;
|
||||
height: 0;
|
||||
border-bottom: 1rpx solid #D9D9D9;
|
||||
color: #D9D9D9;
|
||||
transform-origin: 0 0;
|
||||
transform: scaleY(0.5);
|
||||
}
|
||||
|
||||
.member-cell:last-child:after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.member-cell-inner {
|
||||
color: #333;
|
||||
font-size: 28rpx;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.member-cell-remark {
|
||||
margin-right: 0;
|
||||
position: relative;
|
||||
font-size: 40rpx;
|
||||
color: #cfa943;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.member-cell-remark::before {
|
||||
position: absolute;
|
||||
content: " ";
|
||||
display: inline-block;
|
||||
transform: rotate(45deg);
|
||||
height: 16rpx;
|
||||
width: 16rpx;
|
||||
border-width: 1px 1px 0 0;
|
||||
border-color: #C8C8CD;
|
||||
border-style: solid;
|
||||
top: 50%;
|
||||
right: 8rpx;
|
||||
margin-top: -8rpx;
|
||||
}
|
||||
|
||||
.member-cell-remark.noremark::before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.fui-cell-icon text {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.member-group.card {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.member-group .item {
|
||||
display: flex;
|
||||
background: #fff;
|
||||
width: 50%;
|
||||
height: 148rpx;
|
||||
}
|
||||
|
||||
.member-group .item text {
|
||||
font-size: 54rpx;
|
||||
color: #cfa943;
|
||||
margin: 0 36rpx;
|
||||
}
|
||||
|
||||
.member-group .item .item-inner {
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.member-group .item .item-inner .subtitle {
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.member-group.card::after {
|
||||
position: absolute;
|
||||
border-top: 1rpx solid #ededed;
|
||||
left: 24rpx;
|
||||
right: 24rpx;
|
||||
top: 50rpx;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.member-group.card::before {
|
||||
content: " ";
|
||||
position: absolute;
|
||||
left: 24rpx;
|
||||
right: 24rpx;
|
||||
top: 50%;
|
||||
height: 0;
|
||||
border-top: 1rpx solid #D9D9D9;
|
||||
color: #D9D9D9;
|
||||
transform-origin: 0 0;
|
||||
transform: scaleY(0.5);
|
||||
display: none;
|
||||
}
|
||||
|
||||
.member-group.card::after {
|
||||
content: " ";
|
||||
position: absolute;
|
||||
top: 24rpx;
|
||||
bottom: 24rpx;
|
||||
left: 50%;
|
||||
width: 0;
|
||||
border-left: 1rpx solid #D9D9D9;
|
||||
color: #D9D9D9;
|
||||
transform-origin: 0 0;
|
||||
transform: scaleX(0.5);
|
||||
}
|
50
dividend/pages/log/detail/index.js
Normal file
50
dividend/pages/log/detail/index.js
Normal file
@ -0,0 +1,50 @@
|
||||
var t = getApp(), a = t.requirejs("/core");
|
||||
|
||||
t.requirejs("jquery");
|
||||
|
||||
Page({
|
||||
data: {
|
||||
list: [],
|
||||
page: 1,
|
||||
status: "all",
|
||||
loading: !1,
|
||||
args: {
|
||||
id: ""
|
||||
}
|
||||
},
|
||||
onLoad: function(t) {
|
||||
var a = {
|
||||
id: t.id
|
||||
};
|
||||
this.setData({
|
||||
"args.id": t.id
|
||||
}), this.getlist(a);
|
||||
},
|
||||
onReachBottom: function() {
|
||||
this.data.page, this.data.status;
|
||||
var t = this.data.args;
|
||||
this.getlist(t);
|
||||
},
|
||||
getlist: function(t) {
|
||||
var s = this;
|
||||
s.setData({
|
||||
loading: !0
|
||||
}), a.get("dividend/log/orders", t, function(a) {
|
||||
if (console.error(a), 0 == a.error) {
|
||||
if (a.list.length > 0 && s.data.list.length < a.total) {
|
||||
var i = s.data.list.concat(a.list);
|
||||
t.page = t.page + 1;
|
||||
}
|
||||
s.setData({
|
||||
sysset: a.sysset,
|
||||
set: a.set,
|
||||
list: i,
|
||||
loading: !1,
|
||||
total: a.total,
|
||||
page: t.page,
|
||||
stop: !1
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
4
dividend/pages/log/detail/index.json
Normal file
4
dividend/pages/log/detail/index.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "提现详情",
|
||||
"usingComponents": {}
|
||||
}
|
33
dividend/pages/log/detail/index.wxml
Normal file
33
dividend/pages/log/detail/index.wxml
Normal file
@ -0,0 +1,33 @@
|
||||
<view class="page">
|
||||
<view class="fui-cell-group" wx:for="{{list}}">
|
||||
<view class="fui-cell-title">
|
||||
<view class="text">审核金额:<text class="status">{{item.orderpay}}{{set.texts.yuan}}</text>
|
||||
</view>
|
||||
<view class="inner"></view>
|
||||
<view class="text status">
|
||||
<block wx:if="{{item.dividend_status==1}}">待审核</block>
|
||||
<block wx:if="{{item.dividend_status==2}}">待打款</block>
|
||||
<block wx:if="{{item.dividend_status==3}}">已打款</block>
|
||||
<block wx:if="{{item.dividend_status==-1}}">无效</block>
|
||||
<block wx:if="{{item.dividend_status==-2}}">驳回</block>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell-content" wx:for="{{item.goods}}" wx:for-item="items">
|
||||
<view class="img column">
|
||||
<image src="{{items.thumb}}"></image>
|
||||
</view>
|
||||
<view class="inner column">
|
||||
<view class="title">{{items.title}}</view>
|
||||
<view class="subtitle">
|
||||
<text class="num">x{{items.total}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fui-cell-footbar">
|
||||
<view class="item">订单编号:{{item.ordersn}}</view>
|
||||
<view class="item">订单金额: ¥{{item.goodsprice}}</view>
|
||||
<view class="item">申请{{set.texts.dividend}}: {{item.dividend_price}}{{set.texts.yuan}}</view>
|
||||
<view class="item">提现手续费: ¥{{item.deductionmoney}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
103
dividend/pages/log/detail/index.wxss
Normal file
103
dividend/pages/log/detail/index.wxss
Normal file
@ -0,0 +1,103 @@
|
||||
.column {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.fui-cell-title {
|
||||
display: flex;
|
||||
font-size: 26rpx;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.fui-cell-title .inner {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.fui-cell-content {
|
||||
background: #f9f9f9;
|
||||
height: 130rpx;
|
||||
margin-bottom: 5rpx;
|
||||
display: flex;
|
||||
padding: 0 24rpx;
|
||||
}
|
||||
|
||||
.fui-cell-content .img {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.fui-cell-content .inner {
|
||||
flex: 1;
|
||||
padding-left: 16rpx;
|
||||
font-size: 24rpx;
|
||||
color: #333;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.fui-cell-content .inner .title {
|
||||
width: 580rpx;
|
||||
margin-bottom: 10rpx;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.fui-cell-content .inner .subtitle {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.fui-cell-content .inner .subtitle .text {
|
||||
color: #999;
|
||||
flex: 1;
|
||||
font-size: 22rpx;
|
||||
margin-bottom: 10rpx;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
|
||||
.fui-cell-content .inner .subtitle .num {
|
||||
color: #999;
|
||||
width: 216rpx;
|
||||
font-size: 22rpx;
|
||||
margin-bottom: 10rpx;
|
||||
text-align: left;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.fui-cell-content .remark {
|
||||
width: 100rpx;
|
||||
padding-left: 16rpx;
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
text-align: right;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.fui-cell-content .remark::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 20rpx;
|
||||
bottom: 20rpx;
|
||||
border-left: 1rpx solid #ededed;
|
||||
}
|
||||
|
||||
.fui-cell-content .remark .text {
|
||||
color: #333;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
|
||||
.status {
|
||||
color: #cfa943!important;
|
||||
}
|
||||
|
||||
.fui-cell-footbar {
|
||||
padding: 20rpx 24rpx;
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
line-height: 40rpx;
|
||||
}
|
58
dividend/pages/log/index.js
Normal file
58
dividend/pages/log/index.js
Normal file
@ -0,0 +1,58 @@
|
||||
var t = getApp(), a = t.requirejs("/core");
|
||||
|
||||
t.requirejs("jquery");
|
||||
|
||||
Page({
|
||||
data: {
|
||||
list: [],
|
||||
page: 1,
|
||||
status: "all",
|
||||
loading: !1
|
||||
},
|
||||
onLoad: function() {
|
||||
this.getlist({
|
||||
page: 1,
|
||||
status: ""
|
||||
});
|
||||
},
|
||||
tab: function(t) {
|
||||
var a = t.currentTarget.dataset.status, s = {
|
||||
page: 1,
|
||||
status: "all" == a ? "" : a
|
||||
};
|
||||
console.error(a), this.setData({
|
||||
status: a,
|
||||
list: []
|
||||
}), this.getlist(s);
|
||||
},
|
||||
onReachBottom: function() {
|
||||
var t = {
|
||||
page: this.data.page,
|
||||
status: this.data.status
|
||||
};
|
||||
this.getlist(t);
|
||||
},
|
||||
getlist: function(t) {
|
||||
var s = this;
|
||||
s.setData({
|
||||
loading: !0
|
||||
}), a.get("dividend/log/get_list", t, function(a) {
|
||||
if (console.error(a), 0 == a.error) {
|
||||
if (a.list.length > 0) {
|
||||
var e = s.data.list.concat(a.list);
|
||||
t.page = t.page + 1;
|
||||
}
|
||||
s.setData({
|
||||
dividendcount: a.dividendcount,
|
||||
list: e,
|
||||
loading: !1,
|
||||
total: a.total,
|
||||
page: t.page,
|
||||
stop: !1
|
||||
});
|
||||
}
|
||||
}), s.setData({
|
||||
loading: !1
|
||||
});
|
||||
}
|
||||
});
|
4
dividend/pages/log/index.json
Normal file
4
dividend/pages/log/index.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "提现明细",
|
||||
"usingComponents": {}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user