Commit 99a08d34 by 张杰

初始化源码

0 parents
Showing 301 changed files with 4724 additions and 0 deletions
var a = require("/utils/restapi.js");
require("/utils/util.js");
App({
onLaunch: function (a) {
var n = this;
console.log("onLaunch.option", a), n.globalData.app = this, n.globalData.scene = a.scene,
n.globalData.appId = wx.getAccountInfoSync().miniProgram.appId;
var o = 6,
t = !0;
wx.getSystemInfo({
success: function (a) {
"android" == a.platform && (o = 8, t = !1), n.globalData.systemInfo = {
statusBarPadding: o,
ios: t,
statusBarHeight: a.statusBarHeight,
phoneHeight: a.screenHeight - a.statusBarHeight
};
}
});
},
onShow: function (a) {
var n = this;
n.globalData.sceneData = a, n.globalData.scene = a.scene, console.log(a);
},
onHide: function () {},
login: function () {
var n = this;
wx.login({
success: function (o) {
var t = n;
t.globalData.code = o.code, a.jscodeLogin(o.code, t.globalData.appId, function (a) {
switch (console.log(a), a.returnCode) {
case "0":
t.globalData.userInfo = a.data, a.data.accountId ? t.loginSuccessCallback(a.data) : wx.navigateTo({
url: "/pages/login/index/index"
});
break;
case "-1":
"200205" == a.errId && t.getUserInfo();
break;
default:
wx.showToast({
title: a.message
});
}
});
}
});
},
getUserInfo: function () {
var a = this;
wx.getSetting({
success: function (n) {
n.authSetting["scope.userInfo"] ? a.userAuth() : wx.navigateTo({
url: "/pages/index/index"
});
},
fail: function (a) {
console.log(a);
}
});
},
userAuth: function () {
var a = this;
wx.getUserInfo({
withCredentials: !0,
lang: "zh_CN",
success: function (n) {
wx.checkSession({
success: function () {
a.authUserInfo(n);
},
fail: function () {
wx.login({
success: function (o) {
appInstance.globalData.code = o.code, a.authUserInfo(n);
}
});
}
});
},
fail: function (a) {
console.log(a);
}
});
},
authUserInfo: function (n) {
var o = this;
n.code = o.globalData.code, n.appId = o.globalData.appId, console.log("wechatAuthSetting", n),
a.authUserInfo(n, function (a) {
switch (console.log("authUserInfo", a), a.returnCode) {
case "0":
o.globalData.userInfo = a.data, a.data.accountId ? o.loginSuccessCallback(a.data) : wx.navigateTo({
url: "/pages/login/index/index"
});
break;
default:
wx.showToast({
title: a.message
});
}
}, function () {
console.log("authUserInfo request fail!");
});
},
showMessage: function (a) {
wx.showToast({
title: a,
icon: "none",
duration: 2e3
});
},
loginSuccessCallback: function (a) {
console.log(a)
let m = {}
m.merchantId = a.merchantId;
m.merchantName = a.merchantName;
m.merchantAccountLevel = a.merchantAccountLevel;
a.merchant = m;
this.globalData.userInfo = a;
this.globalData.accountId = a.accountId;
this.userInfoReadyCallback && this.userInfoReadyCallback(a);
},
jumpAuth: function () {
var a = this;
wx.login({
success: function (n) {
a.globalData.code = n.code, a.globalData.userInfo = null, wx.reLaunch({
url: "../../../pages/index/index"
});
}
});
},
globalData: {
scene: null,
app: null,
userInfo: null,
code: null,
accountId: null,
unionId: "",
authUserInfo: !1,
authPhone: !1,
curUserId: "",
filterPath: "",
loginSuccessCallback: function (a) {
this.app.loginSuccessCallback(a);
},
login: function () {
this.app.login();
},
systemInfo: null,
mapKey: "ZEJBZ-LVNRG-EXMQH-I74N6-EHNIS-WHF6E",
sceneData: null,
appId: null,
jumpAuth: function (a) {
a && (this.app.globalData.filterPath = a), this.app.jumpAuth();
}
}
});
\ No newline at end of file \ No newline at end of file
{
"pages": [
"pages/tab/index/index",
"pages/tab/personal/personal",
"pages/route/to",
"pages/webpage/webpage",
"pages/upgrade/upgrade",
"pages/auth/login/login",
"pages/login/index/index",
"pages/login/accountItems/accountItems",
"pages/order/index"
],
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "嘀嘀虎云EIMS",
"navigationBarTextStyle": "black"
},
"subPackages": [
{
"root": "packageIndex/",
"pages": [
"pages/index/index",
"pages/order/index",
"pages/address/list",
"pages/address/add",
"pages/search/index",
"pages/search/search"
]
},
{
"root": "packagePersonal/",
"pages": [
"pages/index/index"
]
}
],
"sitemapLocation": "sitemap.json"
}
\ No newline at end of file \ No newline at end of file
[is="components/vant/icon/index"] {
display: inline-flex;
align-items: center;
justify-content: center;
}
[is="components/vant/loading/index"] {
font-size: 0;
line-height: 1;
}
[is="components/vant/tab/index"] {
flex-shrink: 0;
width: 100%;
}
[is="components/vant/tabbar-item/index"] {
flex: 1;
}
image {
width: 100%;
height: 100%;
vertical-align: top;
}
.pull-left {
float: left;
}
.y-center {
top: 50%;
transform: translateY(-50%);
}
.x-center {
left: 50%;
transform: translateX(-50%);
}
.pull-right {
float: right;
}
.clearfix:after {
content: "";
display: block;
clear: both;
}
.after-none:after,.before-none:before {
display: none!important;
}
.inline {
display: inline-block!important;
vertical-align: middle;
}
.hidden {
display: none;
}
.flex-column {
flex-direction: column;
}
.flex-column,.flex-row {
display: flex;
}
.flex-row {
flex-direction: row;
}
.text-center {
text-align: center;
}
.text-left {
text-align: left;
}
.text-hide {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.text-bold {
font-weight: 700;
}
.mt-20 {
margin-top: 20rpx;
}
.fixed-bg {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(244,245,245,.5);
}
.box-center {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
.van-ellipsis {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.van-multi-ellipsis--l2 {
-webkit-line-clamp: 2;
}
.van-multi-ellipsis--l2,.van-multi-ellipsis--l3 {
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
}
.van-multi-ellipsis--l3 {
-webkit-line-clamp: 3;
}
.van-clearfix:after {
display: table;
clear: both;
content: "";
}
.van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom {
position: relative;
}
.van-hairline--bottom:after,.van-hairline--left:after,.van-hairline--right:after,.van-hairline--surround:after,.van-hairline--top-bottom:after,.van-hairline--top:after,.van-hairline:after {
position: absolute;
box-sizing: border-box;
transform-origin: center;
content: " ";
pointer-events: none;
top: -50%;
right: -50%;
bottom: -50%;
left: -50%;
border: 0 solid #eee;
transform: scale(.5);
}
.van-hairline--top:after {
border-top-width: 1px;
}
.van-hairline--left:after {
border-left-width: 1px;
}
.van-hairline--right:after {
border-right-width: 1px;
}
.van-hairline--bottom:after {
border-bottom-width: 1px;
}
.van-hairline--top-bottom:after {
border-width: 1px 0;
}
.van-hairline--surround:after {
border-width: 1px;
}
page {
background-color: #f8f9f9;
}
.bg-gray {
background-color: #f5f6f6;
height: 100vh;
}
.m-l-md {
margin-left: 20rpx;
}
.edit-btn {
position: fixed;
bottom: 152rpx;
left: 50%;
transform: translateX(-50%);
}
.edit-nav {
position: relative;
box-sizing: border-box;
background-image: linear-gradient(-56deg,#60bdff,#8c48ec);
box-shadow: 0 2px 4px 0 rgba(103,173,252,.3);
border-radius: 40rpx;
width: 480rpx;
font-size: 32rpx;
color: #fff;
padding: 18rpx 0;
text-align: center;
}
.tab-box {
box-shadow: 0 1px 2px 1px hsla(0,0%,72.9%,.1);
}
.nodata {
font-size: 24rpx;
color: #999;
text-align: center;
}
.nodata image {
width: 160rpx;
height: 158.4rpx;
margin-top: 258rpx;
margin-bottom: 33.6rpx;
}
.c_orange {
color: #ff8200;
}
\ No newline at end of file \ No newline at end of file
require("../../utils/restapi.js"), getApp();
Component({
properties: {
auth: {
type: Boolean,
value: !0,
observer: function(e, t) {
e && wx.redirectTo({
url: "../../../pages/index/index"
});
}
},
authType: {
type: Boolean,
value: !0
}
},
data: {
auth: !0,
type: !0,
appLogo: "",
appName: "",
gender: 1,
accountItems: [],
selectedUserId: ""
},
ready: function() {},
methods: {}
});
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {
"navigation-bar": "../navigationBar/navigationBar",
"auth-setting": "./authSetting",
"share": "../share/share"
}
}
\ No newline at end of file \ No newline at end of file
var t = require("../restapi"), a = require("../../utils/util"), e = getApp();
Component({
properties: {
config: {
type: [ String, Number ],
value: ""
},
displayConfig: {
type: String,
value: ""
}
},
data: {
icon: {
active: "https://img01.glsx.com.cn/weapp/resource/eims/radio_active.png",
normal: "https://img01.glsx.com.cn/weapp/resource/eims/radio_normal.png"
},
maxNumber: 9999,
configList: [],
form: {},
list: []
},
methods: {
onChange: function(t) {
var a = t.currentTarget.id, e = this.data.form;
e[a] = t.detail, console.log(e), this.setData({
form: e
});
},
inputEvent: function(t) {
var a = {};
a[t.currentTarget.id] = t.detail.value, this.setData(a);
},
getParams: function() {
var t = e.globalData.userInfo, a = {};
return a.merchantCode = t.merchant.merchantId, a;
},
getList: function() {
var a = this, e = a.getParams();
e.productConfigCode = a.data.config, (0, t.GETGHPRODUCTCONFIGOTHER)(e, function(t) {
if (console.log(t), 0 == t.returnCode) {
var e = (t.data || {}).listConfigOther || [], o = [], i = [];
e.map(function(t) {
var a = o.findIndex(function(a) {
return t.attribTypeId == a;
});
if (a >= 0) i[a].list.push(t); else {
var e = {};
e.name = t.attribTypeName, e.id = t.attribTypeId, e.list = [ t ], i.push(e), o.push(t.attribTypeId);
}
}), console.log(i), a.setData({
configList: i,
list: e
});
}
});
},
addEvent: function() {
var e = this, o = e.getParams(), i = e.data.form, n = [], r = e.data.list;
for (var s in i) !function(t) {
console.log(t);
var a = i[t], e = r.find(function(t) {
return t.attribInfoId == a;
});
e && n.push(e);
}(s);
return "N" != e.data.displayConfig && (!n || n.length <= 0) ? ((0, a.showToast)("请选择配置"),
!1) : e.data.total ? (o.productConfigCode = e.data.config, o.total = e.data.total,
o.remark = e.data.remark, o.listCartConfig = n, console.log(o), void (0, t.ADDGHPRODUCTCONFIGCART)(o, function(t) {
console.log(t), 0 == t.returnCode && ((0, a.showToast)("加入购物车成功"), e.triggerEvent("change", {
close: !1
}));
})) : ((0, a.showToast)("请设置发货数量"), !1);
},
updateNumber: function(t) {
var a = t.currentTarget.id;
console.log(t);
var e = {};
e[a] = t.detail, this.setData(e);
}
},
ready: function() {
console.log(this.data.config), this.getList();
}
});
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {
"van-radio": "../vant/radio/index",
"van-radio-group": "../vant/radio-group/index",
"van-stepper": "../vant/stepper/index",
"navigation-bar": "../navigationBar/navigationBar",
"auth-setting": "../authSetting/authSetting",
"share": "../share/share"
}
}
\ No newline at end of file \ No newline at end of file
<view class="page">
<view class="line" wx:for="{{configList}}" wx:key="index">
<view class="cell_head">{{item.name}}:</view>
<van-radio-group bind:change="onChange" id="{{item.id}}" value="{{form[item.id]}}">
<view class="cell_list">
<van-radio useIconSlot class="radio_box" iconSize="12px" labelClass="radio_label" name="{{k.attribInfoId}}" wx:for="{{item.list||[]}}" wx:for-index="idx" wx:for-item="k" wx:key="idx">
{{k.attribInfoName}}
<image class="radio_icon" mode="widthFix" slot="icon" src="{{form[item.id]==k.attribInfoId?icon.active:icon.normal}}"></image>
</van-radio>
</view>
</van-radio-group>
</view>
<view class="line">
<view class="cell_head cell_head_flex">
<text class="t1">数量:</text>
<view class="stepper_box">
<van-stepper bind:change="updateNumber" buttonSize="18px" customClass="van_stepper" id="total" inputClass="stepper_input" integer="{{true}}" max="{{maxNumber}}" min="0" minusClass="stepper_minus" plusClass="stepper_plus" value="{{total}}"></van-stepper>
</view>
</view>
</view>
<view class="line">
<view class="cell_head">备注:</view>
<view class="cell_list">
<textarea bindinput="inputEvent" class="cell_textarea" id="remark" maxlength="100" placeholder="请输入..." placeholderStyle="color:#999;font-size:12px;"></textarea>
</view>
</view>
<view class="footer">
<button bindtap="addEvent" class="btn">加入购物车</button>
</view>
</view>
.radio_icon {
width: 12px;
height: 12px;
}
.line {
padding: 10px;
}
.cell_head {
font-family: PingFangSC-Regular;
font-size: 14px;
color: #333;
letter-spacing: .2px;
}
.cell_list {
display: flex;
flex-wrap: wrap;
}
.cell_list .radio_box {
width: 25%;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #333;
letter-spacing: .17px;
margin: 5px 0;
}
.radio_box .radio_icon {
margin: 3px 0 0;
}
.radio_label {
margin-left: 4px!important;
}
.cell_head_flex {
display: flex;
align-items: center;
}
.cell_head_flex .t1 {
flex: 1;
}
.cell_head_flex .stepper_box {
flex: 1;
text-align: right;
}
.cell_textarea {
flex: 1;
background: hsla(0,0%,93.3%,.6);
border-radius: 2px;
padding: 10px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #333;
letter-spacing: .43px;
margin: 10px 0;
height: 80px;
}
.stepper_box {
position: relative;
text-align: right;
z-index: 1;
}
.van_stepper {
display: inline-block;
border: 1px solid #e1e1e1;
border-radius: 2px;
overflow: hidden;
background: #fff;
}
.stepper_input {
border-left: 1px solid #e1e1e1!important;
border-right: 1px solid #e1e1e1!important;
width: 40px!important;
font-size: 12px;
line-height: 18px;
}
.stepper_input,.stepper_minus,.stepper_plus {
background: #fff!important;
color: #333!important;
}
.footer {
background: #fff;
border: 0 solid #e1e1e1;
box-shadow: 0 1px 2px 1px hsla(0,0%,72.9%,.1);
padding: 10px 0;
text-align: center;
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 2;
}
.footer .btn {
background-image: linear-gradient(90deg,#4387e7,#9869ff);
border-radius: 20px;
height: 40px;
color: #fff;
font-weight: 400;
}
\ No newline at end of file \ No newline at end of file
var t = require("../restapi"), e = require("../../utils/util"), a = getApp();
Component({
properties: {
code: {
type: [ String, Number ],
value: ""
},
queryCondition: {
type: Object,
value: {}
},
spa: {
type: [ String, Number ],
value: ""
}
},
data: {
menuList: [],
menuActive: "",
show: !1,
maxNumber: 9999,
yearList: [],
yearActive: "",
checkList: [],
modelList: [],
remark: "",
totalList: {},
form: {},
icon: {
active: "https://img01.glsx.com.cn/weapp/resource/eims/radio_active.png",
normal: "https://img01.glsx.com.cn/weapp/resource/eims/radio_normal.png"
},
cList: {}
},
methods: {
menuEvent: function(t) {
var e = t.currentTarget.id;
this.setData({
menuActive: e
}), this.getYear();
},
showMore: function(t) {
var e = this.data.show;
this.setData({
show: !e
});
},
getParams: function() {
var t = a.globalData.userInfo, e = {};
return e.merchantCode = t.merchant.merchantId, e;
},
getYear: function() {
var o = this, i = {}, n = (o.getParams(), o.data.queryCondition), r = a.globalData.userInfo;
console.log(r), n.spaProductCode = o.data.spa || null, n.merchantCode = r.merchant.merchantId,
n.audiId = o.data.menuActive, o.data.code && (i.glsxProductCode = o.data.code || ""),
i.queryCondition = n, (0, t.LISTYEARMODE)(i, function(t) {
console.log(t), 0 == t.returnCode ? (o.setData({
yearList: t.data || []
}), o.getModel()) : (0, e.showToast)(t.message);
});
},
getCarseries: function() {
var o = this, i = {}, n = o.data.queryCondition, r = a.globalData.userInfo;
n.spaProductCode = o.data.spa || null, n.merchantCode = r.merchant.merchantId, o.data.code && (i.glsxProductCode = o.data.code || ""),
i.queryCondition = n, (0, t.LISTAUDIINFO)(i, function(t) {
if (console.log(t), 0 == t.returnCode) {
var a = t.data || [];
o.setData({
menuList: a,
menuActive: a[0] ? a[0].id : ""
}), a[0] && a[0].id ? o.getYear() : o.triggerEvent("change", {
close: !1
});
} else (0, e.showToast)(t.message);
});
},
getModel: function() {
var o = this, i = {}, n = o.data.queryCondition, r = a.globalData.userInfo;
o.data.code && (i.glsxProductCode = o.data.code || ""), n.merchantCode = r.merchant.merchantId,
i.queryCondition = n, i.modelYearId = o.data.yearActive, i.audiId = o.data.menuActive,
i.pageSize = 1e5, i.pageNo = 1, (0, t.PAGEMOTORCYCLE)(i, function(t) {
if (0 == t.returnCode) {
var a = (t.data || {}).listGhProductConfig || [];
a.map(function(t) {
var e = o.treatData(t.listConfigOther || []);
return t.configList = e, t.total = 0, t;
}), console.log(a), o.setData({
modelList: a
});
} else (0, e.showToast)(t.message);
});
},
yearEvent: function(t) {
var e = t.currentTarget.dataset.id;
this.setData({
yearActive: e
}), this.getModel();
},
inputEvent: function(t) {
var e = {};
e[t.currentTarget.id] = t.detail.value, this.setData(e);
},
addEvent: function() {
var a = this, o = a.getParams(), i = (a.data.form, []), n = a.data.checkList;
if (!n || n.length <= 0) return (0, e.showToast)("请选择车型"), !1;
n.map(function(t) {
var e = {};
e.productConfigCode = t.productConfigCode, e.total = t.total, e.remark = a.data.remark;
var o = t.listConfigOther || [], n = t.listCartConfig || [];
o.map(function(t) {
"F" == t.option && n.push({
id: t.attribInfoId
});
}), e.listCartConfig = n, i.push(e);
}), delete o.spaProductCode, o.listShopCarts = i, console.log(o), (0, t.BATCHADDGHPRODUCTCONFIGCART)(o, function(t) {
console.log(t), 0 == t.returnCode ? ((0, e.showToast)("加入购物车成功"), a.triggerEvent("change", {
close: !1
})) : (0, e.showToast)(t.message);
});
},
updateNumber: function(t) {
console.log(t);
var a = t.currentTarget.id, o = this.data.modelList, i = this.data.checkList || [], n = this.data.totalList || {}, r = Number(t.detail), s = this.data.maxNumber, d = this.data.cList || [], c = i.findIndex(function(t) {
return t.productConfigCode == a;
}), u = o.find(function(t) {
return t.productConfigCode == a;
}), l = o.findIndex(function(t) {
return t.productConfigCode == a;
});
if (r > s) return (0, e.showToast)("购买数量超过最大数量"), this.setData({
noPass: !1
}), !1;
console.log(u), u.total = r, u.listCartConfig = d[a], o[l] = u, t.detail > 0 ? (n[a] = t.detail,
c >= 0 ? i[c] = u : i.push(u)) : (delete n[a], c >= 0 && i.splice(c, 1)), this.setData({
checkList: i,
modelList: o,
totalList: n
});
},
treatData: function(t) {
var e = [], a = [];
return t.map(function(t) {
var o = e.findIndex(function(e) {
return t.attribTypeId == e;
});
if (o >= 0) "O" == t.option && a[o].list.push(t); else if ("O" == t.option) {
var i = {};
i.name = t.attribTypeName, i.id = t.id, i.list = [ t ], a.push(i), e.push(t.attribTypeId);
}
}), a;
},
radioChangeEvent: function(t) {
var e = t.currentTarget.id, a = t.currentTarget.dataset.mid, o = this.data.form, i = this.data.checkList || [], n = this.data.cList || [], r = i.findIndex(function(t) {
return console.log(t.productConfigCode + "---" + a), t.productConfigCode == a;
});
if (r >= 0) {
var s = i[r].listCartConfig || [];
s.push({
id: t.detail
}), i[r].listCartConfig = s;
} else {
var d = n[a] || [];
d.push({
id: t.detail
}), n[a] = d;
}
console.log(n), o[e] = t.detail, this.setData({
form: o,
checkList: i,
cList: n
}), console.log(i);
}
},
ready: function() {
console.log(this.data.queryCondition), this.getCarseries();
}
});
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {
"van-icon": "../vant/icon/index",
"van-stepper": "../vant/stepper/index",
"van-field": "../vant/field/index",
"no-data": "../nodata/index",
"van-radio": "../vant/radio/index",
"van-radio-group": "../vant/radio-group/index",
"navigation-bar": "../navigationBar/navigationBar",
"auth-setting": "../authSetting/authSetting",
"share": "../share/share"
}
}
\ No newline at end of file \ No newline at end of file
<view class="page">
<view class="model_box">
<view class="model_menu" wx:if="{{menuList&&menuList.length>0}}">
<view bindtap="menuEvent" class="menu {{menuActive==item.id?'active':''}}" id="{{item.id}}" wx:for="{{menuList}}" wx:key="index">
{{item.name}}
</view>
</view>
<view class="model_content">
<view class="tag_hidden"></view>
<view class="overlay" wx:if="{{show}}"></view>
<view class="tag_list {{show?'tag_show':''}}" wx:if="{{yearList&&yearList.length>0}}">
<view class="tag_inner">
<view bind:tap="yearEvent" class="tag {{yearActive==''?'active':''}}" data-id="">
全部
</view>
<view bind:tap="yearEvent" class="tag {{yearActive==item.id?'active':''}}" data-id="{{item.id}}" wx:for="{{yearList}}" wx:key="index">
{{item.name}}
</view>
</view>
<view bindtap="showMore" class="tag_arrow" wx:if="{{yearList&&yearList.length>=3}}">
<van-icon class="arrow_icon" name="arrow-down" size="14px" wx:if="{{!show}}"></van-icon>
<van-icon class="arrow_icon" name="arrow-up" size="14px" wx:else></van-icon>
</view>
</view>
<view class="list_box" wx:if="{{modelList&&modelList.length>0}}">
<view class="cell van-hairline--bottom" wx:for="{{modelList}}" wx:key="index">
<view class="title">{{item.motorcycle}}</view>
<view class="">
<view class="config_line" wx:for="{{item.configList}}" wx:for-index="odx" wx:for-item="km" wx:key="odx">
<view class="config_cell_head">{{km.name}}:</view>
<van-radio-group bind:change="radioChangeEvent" data-mid="{{item.productConfigCode}}" id="{{km.id}}" value="{{form[km.id]}}">
<view class="config_cell_list">
<van-radio useIconSlot class="radio_box" iconSize="12px" labelClass="radio_label" name="{{k.attribInfoId}}" wx:for="{{km.list||[]}}" wx:for-index="idx" wx:for-item="k" wx:key="idx">
{{k.attribInfoName}}
<image class="radio_icon" mode="widthFix" slot="icon" src="{{form[km.id]==k.attribInfoId?icon.active:icon.normal}}"></image>
</van-radio>
</view>
</van-radio-group>
</view>
</view>
<view class="stepper_box">
<van-stepper bind:change="updateNumber" buttonSize="18px" customClass="van_stepper" id="{{item.productConfigCode}}" inputClass="stepper_input" integer="{{true}}" max="{{maxNumber}}" min="0" minusClass="stepper_minus" plusClass="stepper_plus" value="{{totalList[item.productConfigCode]||0}}"></van-stepper>
</view>
</view>
</view>
<view class="line" wx:if="{{modelList&&modelList.length>0}}">
<view class="cell_head">备注:</view>
<view class="cell_list">
<input bindinput="inputEvent" class="cell_textarea" id="remark" maxlength="100" placeholder="请输入..." placeholderStyle="color:#999;font-size:12px;" type="text" value="{{remark}}"></input>
</view>
</view>
</view>
</view>
<view class="model_nodata" wx:if="{{(!modelList||modelList.length<=0)&&(!yearList||yearList.length<=0)}}">
<no-data name="暂无产品信息"></no-data>
</view>
</view>
.model_box,.page {
height: 100%;
}
.model_box {
background: #fff;
flex: 1;
display: flex;
position: relative;
overflow: hidden;
}
.model_menu {
width: 86px;
background: #f2f2f2;
border-radius: 2px;
font-family: PingFangSC-Regular;
font-size: 14px;
color: #333;
letter-spacing: 0;
text-align: center;
padding: 10px;
overflow-y: auto;
}
.model_menu .menu {
padding: 10px 0;
line-height: 2;
}
.model_menu .active {
color: #ff8a31;
}
.model_content {
flex: 1;
overflow-y: auto;
height: 100%;
position: relative;
padding-bottom: 80px;
}
.footer {
background: #fff;
border: 0 solid #e1e1e1;
box-shadow: 0 1px 2px 1px hsla(0,0%,72.9%,.1);
padding: 10px 0;
text-align: center;
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 2;
}
.footer .btn {
background-image: linear-gradient(90deg,#4387e7,#9869ff);
border-radius: 20px;
height: 40px;
color: #fff;
font-weight: 400;
}
.tag_hidden {
height: 44px;
}
.tag_list {
z-index: 3;
background: #fff;
padding: 10px;
position: absolute;
top: 0;
left: 0;
right: 0;
display: flex;
height: 24px;
overflow: hidden;
}
.tag_show {
height: auto;
overflow: initial;
}
.tag_list .tag_inner {
flex: 1;
}
.tag_list .tag_arrow {
padding: 4px 0;
}
.tag_inner .tag {
display: inline-block;
padding: 2px 10px;
border: 1px solid hsla(0,0%,59.2%,.6);
border-radius: 10px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #333;
letter-spacing: .2px;
margin: 4px;
}
.tag_inner .active {
background: #ff8a31;
color: #fff;
border: 1px solid #ff8a31;
}
.model_content .overlay {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: #000;
opacity: .65;
z-index: 2;
}
.list_box {
padding: 10px;
}
.cell {
position: relative;
padding: 10px 0;
margin: 0 0 10px;
}
.cell:after {
display: block;
content: "";
height: 1px;
position: absolute;
left: 0;
right: 0;
bottom: 0;
background: #eee;
transform: scaleY(.5);
}
.cell .title {
font-family: PingFangSC-Medium;
font-size: 14px;
color: #333;
letter-spacing: .4px;
font-weight: 700;
}
.stepper_box {
position: relative;
text-align: right;
z-index: 1;
padding-top: 5px;
}
.van_stepper {
display: inline-block;
border: 1px solid #e1e1e1;
border-radius: 2px;
overflow: hidden;
background: #fff;
}
.stepper_input {
border-left: 1px solid #e1e1e1!important;
border-right: 1px solid #e1e1e1!important;
width: 40px!important;
font-size: 12px;
line-height: 18px;
}
.stepper_input,.stepper_minus,.stepper_plus {
background: #fff!important;
color: #333!important;
}
.cell_list {
position: relative;
height: 80px;
}
.line {
padding: 10px 10px 60px;
}
.cell_head {
font-size: 14px;
letter-spacing: .2px;
}
.cell_head,.cell_textarea {
font-family: PingFangSC-Regular;
color: #333;
}
.cell_textarea {
background: hsla(0,0%,93.3%,.6);
border-radius: 2px;
padding: 10px;
font-size: 12px;
letter-spacing: .43px;
margin: 10px 0;
}
.model_nodata {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
.config_line {
padding: 10px 0;
}
.config_cell_head {
font-family: PingFangSC-Regular;
font-size: 14px;
color: #333;
letter-spacing: .2px;
}
.config_cell_list {
display: flex;
flex-wrap: wrap;
}
.config_cell_list .radio_box {
width: 25%;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #333;
letter-spacing: .17px;
margin: 5px 0;
}
.radio_box .radio_icon {
margin: 3px 0 0;
width: 12px;
height: 12px;
}
.radio_label {
margin-left: 4px!important;
}
\ No newline at end of file \ No newline at end of file
var e = getApp();
Component({
properties: {
titleText: {
type: String,
value: "嘀加"
},
showBtn: {
type: Boolean,
value: !0
},
showBack: {
type: Boolean,
value: !1
},
showHome: {
type: Boolean,
value: !1
},
intercept: {
type: Boolean,
value: !0
},
opacity: {
type: Boolean,
value: !1
},
bgColor: null
},
data: {
statusBarHeight: 0,
statusBarPadding: 0,
btn: [ {
url: "images/back.png"
}, {
url: "images/home.png"
} ],
ios: !1
},
methods: {
navigation: function(e) {
0 == e.currentTarget.dataset.index ? (this.triggerEvent("navigateBack"), this.properties.intercept && (console.log(getCurrentPages()),
getCurrentPages().length > 1 ? wx.navigateBack({
delta: 1,
fail: function(e) {
wx.switchTab({
url: "/packageIndex/pages/index/index"
});
}
}) : wx.switchTab({
url: "/packageIndex/pages/index/index"
}))) : wx.switchTab({
url: "/packageIndex/pages/index/index"
});
},
goHome: function() {
wx.switchTab({
url: "/packageIndex/pages/index/index"
});
}
},
ready: function() {
var t = this, a = e.globalData.systemInfo;
this.setData({
ios: a.ios,
statusBarPadding: a.statusBarPadding,
statusBarHeight: a.statusBarHeight
}), wx.nextTick(function() {
wx.createSelectorQuery().in(t).select("#navigation-bar").boundingClientRect(function(e) {
t.triggerEvent("getNavHeight", e.height);
}).exec();
});
}
});
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {
"navigation-bar": "./navigationBar",
"auth-setting": "../authSetting/authSetting",
"share": "../share/share"
}
}
\ No newline at end of file \ No newline at end of file
<view class="navigation-bar" id="navigation-bar" style="padding-top:{{statusBarHeight}}px;background:{{opacity?'rgba(0,0,0,0.3)':'#FFF'}} ;">
<view class="navigation-bar-box" style="padding:{{statusBarPadding}}px">
<view class="navigation-bar-btn" wx:if="{{!showBack&&showBtn&&!showHome}}">
<view bindtap="navigation" class="navigation-bar-img" data-index="{{index}}" wx:for="{{btn}}" wx:key="*this">
<image src="{{item.url}}"></image>
</view>
</view>
<view bindtap="navigation" class="navigation-bar-back" data-index="0" wx:if="{{showBack}}">
<image src="{{opacity?'images/back-w.png':'images/back.png'}}"></image>
</view>
<view bindtap="goHome" class="navigation-bar-home" wx:if="{{showHome}}">
<image src="images/share_home.png"></image>
</view>
<view class="navigation-bar-titleText {{ios?'ios':''}} {{showHome?ios?'':'android':''}}" style="margin-left:{{ios?'0':showBack?'0':'10'}}px;top:{{ios?statusBarHeight+statusBarPadding+1:'0'}}px;color:{{opacity?'#fff':'#333'}}" wx:if="{{ios?true:statusBarPadding!=0?true:false}}">{{titleText}}</view>
</view>
</view>
.navigation-bar {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 9;
height: 44px;
padding-top: 20px;
}
.navigation-bar-box {
position: relative;
width: 70%;
height: 32px;
display: flex;
align-items: center;
padding-top: 6px;
}
.navigation-bar-titleText {
display: inline-block;
font-size: 18px;
color: #333;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-left: 10px;
max-width: calc(100% - 76.5px);
}
.navigation-bar-btn {
position: relative;
width: 86.5px;
height: 32px;
border: 1px solid #cecece;
border-radius: 100px;
box-sizing: border-box;
}
.navigation-bar-back {
position: relative;
width: 32px;
height: 32px;
transform: translateX(-6px);
}
.navigation-bar-back image {
width: 18px;
height: 18px;
position: absolute;
top: 50%;
left: 6px;
transform: translateY(-50%);
}
.navigation-bar-img {
float: left;
width: 50%;
height: 100%;
position: relative;
}
.navigation-bar-img image {
width: 18px;
height: 18px;
}
.navigation-bar-btn:after,.navigation-bar-img image {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
.navigation-bar-btn:after {
content: "";
width: 1px;
height: 18.5px;
background: #cecece;
}
.navigation-bar-home {
position: absolute;
top: 50%;
left: 5px;
width: 42px;
height: 32px;
border: 1px solid #cecece;
border-radius: 100px;
transform: translateY(-50%);
}
.navigation-bar-home image {
width: 16px;
height: 16px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
.ios {
position: fixed;
max-width: 40%;
top: 0;
left: 50%;
transform: translateX(-50%);
margin-left: 0;
font-weight: 700;
}
.android {
margin-left: 60px!important;
}
\ No newline at end of file \ No newline at end of file
Component({
properties: {
name: {
type: String,
value: "暂无数据"
},
icon: {
type: String,
value: "https://img01.glsx.com.cn/weapp/resource/eims/nodata.png"
}
},
data: {},
methods: {}
});
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {
"navigation-bar": "../navigationBar/navigationBar",
"auth-setting": "../authSetting/authSetting",
"share": "../share/share"
}
}
\ No newline at end of file \ No newline at end of file
<view class="nodata">
<image class="icon" mode="widthFix" src="{{icon}}"></image>
<view class="txt">{{name}}</view>
<slot class="button_box"></slot>
</view>
.nodata {
font-family: PingFangSC-Regular;
font-size: 14px;
color: #999;
letter-spacing: .88px;
text-align: center;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
.nodata .icon {
width: 120px;
}
.nodata .txt {
line-height: 2;
margin: 15px 0;
}
.button_box {
margin: 10px 0;
}
\ No newline at end of file \ No newline at end of file
var t = function(t) {
return t && t.__esModule ? t : {
default: t
};
}(require("../utils/restapi.js"));
require("../utils/util");
module.exports = {
PAGEPRODUCTBYSPACODE: function(e, n, u) {
t.default.req("/webapp-supplychain-jst/gh/pageProductBySpaCode", e, {}, "POST", "json", "text", n, u);
},
LISTGHSHOPPINGCART: function(e, n, u) {
t.default.req("/webapp-supplychain-jst/gh/listGhShoppingCart", e, {}, "POST", "json", "text", n, u);
},
UPDATEGHPRODUCTCONFIGCART: function(e, n, u) {
t.default.req("/webapp-supplychain-jst/gh/updateGhProductConfigCart", e, {}, "POST", "json", "text", n, u);
},
DELGHPRODUCTCONFIGCART: function(e, n, u) {
t.default.req("/webapp-supplychain-jst/gh/delGhProductConfigCart", e, {}, "POST", "json", "text", n, u);
},
ADDGHPRODUCTCONFIGCART: function(e, n, u) {
t.default.req("/webapp-supplychain-jst/gh/addGhProductConfigCart", e, {}, "POST", "json", "text", n, u);
},
GETGHPRODUCTCONFIGOTHER: function(e, n, u) {
t.default.req("/webapp-supplychain-jst/gh/getGhProductConfigOther", e, {}, "POST", "json", "text", n, u);
},
LISTYEARMODE: function(e, n, u) {
t.default.req("/webapp-supplychain-jst/gh/listYearMode", e, {}, "POST", "json", "text", n, u);
},
LISTAUDIINFO: function(e, n, u) {
t.default.req("/webapp-supplychain-jst/gh/listAudiInfo", e, {}, "POST", "json", "text", n, u);
},
PAGEMOTORCYCLE: function(e, n, u) {
t.default.req("/webapp-supplychain-jst/gh/pageMotorcycle", e, {}, "POST", "json", "text", n, u);
},
BATCHADDGHPRODUCTCONFIGCART: function(e, n, u) {
t.default.req("/webapp-supplychain-jst/gh/batchAddGhProductConfigCart", e, {}, "POST", "json", "text", n, u);
}
};
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {
"navigation-bar": "../navigationBar/navigationBar",
"auth-setting": "../authSetting/authSetting",
"share": "./share"
}
}
\ No newline at end of file \ No newline at end of file
<view catchtouchmove="noScroll" class="share-box" wx:if="{{show}}">
<view bindtap="cancel" class="bg"></view>
<view class="info {{isVideo?'isVideo':''}} {{flag?'flag':''}}" style="top:{{viewTop}}px;">
<block wx:if="{{!goods}}">
<block wx:if="{{data.type}}">
<image src="{{data.shopPhoto||shopBg}}" style="height:200rpx;width:100%;"></image>
<view class="share-info">
<view class="name text-hidden" style="padding-right: 36rpx;">
<image src="{{item.brandLogo}}" wx:if="{{index<3}}" wx:for="{{data.carBrandList}}" wx:key="index"></image>
<text style="margin-right:6rpx;" wx:if="{{data.carBrandList.length>3}}">...</text> {{data.merchantName}}
</view>
<view class="share-info-p text-hidden" style="padding-right: 36rpx;">{{data.address}}</view>
<view class="share-info-p">营业时间:{{data.businessHours}}</view>
<view class="share-info-p">联系电话:{{data.phone}}</view>
<view class="tags-title">营业范围</view>
<view class="tags">
<view class="scope-item" wx:for="{{tags}}" wx:key="*this">{{item}}</view>
</view>
<view class="qr-img" style="margin-top:8.8rpx;">
<image class="qr" src="{{data.qr}}"></image>
<view>长按识别小程序码,查看商户</view>
</view>
</view>
</block>
<block wx:elif="{{isVideo}}">
<view class="v-name">
<image src="{{data.icon||'./images/car.png'}}"></image>
<view class="text-hide">{{data.name}}</view>
</view>
<view class="v-text">{{data.shareRecommend||'养车不再盲目!根据爱车行驶里程和用车时长,为您推荐以下项目'}}</view>
<image class="cover" src="{{data.photo||'./images/cover.png'}}"></image>
<view class="v-tips">我正在用这个小程序,推荐你试试~!</view>
<image class="v-qr" src="{{data.qr||'./images/cover.png'}}"></image>
<view class="v-qr-text">
<view>长按二维码</view>
识别小程序后查看更多
</view>
</block>
<block wx:else>
<view class="share-top">
<image src="{{bg}}" style="height:200rpx;width:100%;"></image>
<image class="share-user" src="{{data.photo}}"></image>
<image class="img-v" src="../../packageServicer/resources/images/v.png"></image>
<view class="servicer-name">
<view class="name">{{name}}</view>
<view class="group-box">
<view class="group" wx:if="{{data.accountGroup}}">{{data.accountGroup}}</view>
<view>{{data.duty}}</view>
</view>
</view>
</view>
<view class="share-info">
<view class="name text-hidden" style="padding-right: 36rpx;">
<image src="{{item.brandLogo}}" wx:if="{{index<3}}" wx:for="{{data.carBrandList}}" wx:key="*this"></image>
<text style="margin-right:4rpx;" wx:if="{{data.carBrandList.length>3}}">...</text> {{data.merchantName}}
</view>
<view class="share-info-p">联系电话:{{data.phone}}</view>
<view class="share-info-p">微信:{{data.wechatNum}}</view>
<view class="tags-title" style="padding:46rpx 0 20rpx">服务印象</view>
<view class="tags">
<view class="scope-item" wx:for="{{tags}}" wx:key="*this">{{item}}</view>
</view>
<view class="qr-img" style="padding-top:22rpx;">
<image class="qr" src="{{data.qr}}"></image>
<view>长按识别小程序码,保存名片</view>
</view>
</view>
</block>
</block>
<block wx:else>
<image src="{{data.goodsPhoto}}" style="height:500rpx;width:100%;"></image>
<view class="share-info goods" wx:if="{{data.marketType!=1}}">
<view class="name text-hidden">{{data.shopName}}</view>
<view class="goods-price">¥
<view class="new-price" wx:if="{{!data.interval}}">{{data.flashSalePrice}}</view>
<view class="new-price" style="font-size:32rpx;" wx:else>{{data.interval}}</view>
<view class="old-price">
秒杀价
<view>{{data.retailPrice}}</view>
</view>
</view>
<view class="merchantInfo">
<view class="merchantName text-hidden">{{data.merchantName}}</view>
<view class="share-info-p">营业时间:{{data.businessHours}}</view>
<view class="share-info-p text-hidden">店面地址:{{data.address}}</view>
<view class="share-info-p">联系电话:{{data.phone}}</view>
</view>
<view class="qr-img">
<image src="{{data.qr}}" style="width:190rpx;height:180rpx;"></image>
<view>长按识别小程序码</view>
<view>立抢优惠</view>
</view>
</view>
<view class="share-info goods show" wx:else>
<view class="name text-hidden">{{data.shopName}}</view>
<view class="goods-price" wx:if="{{data.showPrice}}">¥
<text>{{data.showPrice}}</text>
</view>
<view class="tags" wx:if="{{data.shopTags.length>0}}">
<view class="tag" wx:if="{{item}}" wx:for="{{data.shopTags}}" wx:key="index">{{item}}</view>
</view>
<view class="qr-img">
<image src="{{data.qr}}" style="width:126rpx;height:124rpx;"></image>
</view>
<view class="merchantInfo">
<view class="merchantName text-hidden">{{data.merchantName}}</view>
<view class="share-info-p">营业时间:{{data.businessHours}}</view>
<view class="share-info-p">联系电话:{{data.phone}}</view>
<view class="share-info-p text-hidden">店面地址:{{data.address}}</view>
</view>
<view class="tips">长按识别小程序码 立抢优惠</view>
</view>
</block>
</view>
<view class="choose-list">
<view class="list">
<view class="list-btn" wx:if="{{!hideWx}}">
<image src="images/wx.png"></image>
<view>微信好友</view>
<button bindtap="cancel" openType="share"></button>
</view>
<view bindtap="save" class="list-btn">
<image src="images/share.png"></image>
<view>保存分享</view>
</view>
</view>
<view bindtap="cancel" class="cancel">取消</view>
</view>
</view>
<view class="canvas">
<canvas canvasId="img" style="width:100%;height:100%;"></canvas>
</view>
.text-hide {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.share-box {
position: fixed;
z-index: 999999;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
}
.share-box .info {
position: absolute;
bottom: 26.5%;
left: 10000%;
transform: translateX(-50%);
width: 500rpx;
height: 840rpx;
background: #fff;
border-radius: 8rpx;
overflow: hidden;
}
.share-box .info.flag {
left: 50%;
}
.share-box .info.isVideo {
top: 12rpx;
}
.share-box .info>image {
vertical-align: top;
}
.share-box .bg {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
background: rgba(0,0,0,.5);
}
.choose-list {
height: 332rpx;
background: #f6f6f6;
}
.choose-list,.choose-list .cancel {
width: 100%;
position: absolute;
bottom: 0;
left: 0;
}
.choose-list .cancel {
height: 96rpx;
line-height: 96rpx;
text-align: center;
font-size: 28rpx;
color: #333;
background: #fff;
}
.list {
width: 100%;
height: 216rpx;
background: #fff;
display: flex;
}
.list-btn {
flex: 1;
text-align: center;
font-size: 24rpx;
color: #333;
padding-top: 40rpx;
position: relative;
}
.list-btn image {
width: 86.6rpx;
height: 86.6rpx;
margin-bottom: 13.6rpx;
}
.list-btn button {
width: 100%;
height: 100%;
position: absolute;
opacity: 0;
top: 0;
left: 0;
}
.share-info {
padding: 0 0 0 36rpx;
}
.share-info .name {
font-size: 24rpx;
color: #333;
font-weight: 700;
padding: 22rpx 0 13rpx;
}
.share-info.goods .name {
padding: 10rpx 0 5rpx;
}
.share-info .name image {
display: inline-block;
width: 36rpx;
height: 36rpx;
vertical-align: middle;
transform: translateY(-2rpx);
}
.share-info-p {
font-size: 20rpx;
margin-bottom: 4rpx;
color: #999;
}
.tags-title {
padding: 26rpx 0 20rpx;
font-size: 24rpx;
color: #333;
}
.qr-img {
padding-right: 36rpx;
text-align: center;
font-size: 20rpx;
color: #999;
}
.service {
font-size: 24rpx;
color: #333;
}
.service .tips {
padding: 22rpx 40rpx 2rpx;
color: #999;
}
.scope-item {
display: inline-block;
margin: 0 20rpx 20rpx 0;
height: 42rpx;
line-height: 42rpx;
padding: 0 16rpx;
text-align: center;
border: 1rpx solid hsla(0,0%,60%,.5);
border-radius: 25rpx;
font-size: 20rpx;
box-sizing: border-box;
color: #999;
}
.qr {
width: 156rpx;
height: 156rpx;
margin-bottom: 18rpx;
}
.share-top {
position: relative;
height: 200rpx;
width: 100%;
}
.share-user {
position: absolute;
left: 73.4rpx;
top: 47rpx;
width: 108rpx;
height: 108rpx;
border-radius: 100%;
}
.img-v {
position: absolute;
left: 153.4rpx;
top: 127rpx;
width: 28rpx;
height: 28rpx;
}
.servicer-name {
left: 218rpx;
color: #fff;
font-size: 0;
width: calc(100% - 218rpx);
}
.servicer-name,.servicer-name .name {
position: absolute;
top: 50%;
transform: translateY(-50%);
}
.servicer-name .name {
left: 0;
font-size: 28rpx;
}
.servicer-name .group {
font-size: 16rpx;
padding: 0 8rpx;
border: 2rpx solid #fff;
border-radius: 18rpx;
width: 92rpx;
height: 28rpx;
line-height: 28rpx;
text-align: center;
margin-right: 8rpx;
}
.servicer-name .group-box {
left: 130rpx;
font-size: 20rpx;
padding-left: 20rpx;
text-align: center;
}
.servicer-name .group-box,.servicer-name .group-box:after {
position: absolute;
top: 50%;
transform: translateY(-50%);
}
.servicer-name .group-box:after {
left: 0;
content: "";
width: 2rpx;
height: 22rpx;
background: hsla(0,0%,100%,.5);
}
.text-hidden {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tags {
height: 110rpx;
margin-bottom: 18rpx;
overflow: hidden;
font-size: 0;
}
.goods {
position: relative;
height: calc(100% - 500rpx);
padding-left: 20rpx;
}
.goods .qr-img {
position: absolute;
bottom: 5rpx;
right: 20rpx;
padding-right: 0;
font-size: 16rpx;
}
.goods .merchantInfo {
width: 276rpx;
margin-top: 62rpx;
color: #333;
}
.goods .merchantInfo .merchantName {
margin-bottom: 16rpx;
font-weight: 600;
font-size: 20rpx;
}
.goods .merchantInfo .share-info-p {
font-size: 16rpx;
margin-bottom: 8rpx;
}
.goods-price {
font-size: 24rpx;
color: #f6512b;
}
.goods-price .new-price {
font-size: 40rpx;
font-weight: 700;
}
.goods-price .old-price {
font-weight: 400;
font-size: 16rpx;
color: #999;
margin-left: 3.6rpx;
}
.goods-price .old-price>view {
text-decoration: line-through;
}
.goods-price>view {
display: inline-block;
}
.show .goods-price {
color: #f34f3e;
transform: translateY(-10rpx);
}
.show .goods-price text {
font-size: 40rpx;
}
.show.share-info.goods .name {
padding: 14rpx 0 0;
}
.show .tags {
position: absolute;
left: 20rpx;
top: 108rpx;
width: 100%;
height: 32rpx;
overflow: hidden;
}
.show .tag {
display: inline-block;
background: rgba(246,82,43,.1);
border-radius: 20rpx;
padding: 0 12rpx;
height: 32rpx;
line-height: 32rpx;
font-size: 16rpx;
color: #f17b28;
margin-right: 8rpx;
}
.show.goods .qr-img {
left: 20rpx;
bottom: 60rpx;
width: 126rpx;
height: 124rpx;
}
.show.goods .qr-img:after {
position: absolute;
right: -8rpx;
height: 110rpx;
width: 2rpx;
background: hsla(0,0%,59.2%,.2);
content: "";
top: 50%;
transform: translateY(-50%);
}
.show.goods .merchantInfo {
margin-top: 0;
width: 300rpx;
position: absolute;
left: 174rpx;
top: 150rpx;
}
.show.goods .tips {
width: 100%;
position: absolute;
text-align: center;
bottom: 18rpx;
left: 0;
font-size: 16rpx;
color: #999;
letter-spacing: 0;
}
.canvas {
width: 250px;
height: 420px;
position: fixed;
top: -1000%;
left: -1000%;
}
.info .v-name {
position: relative;
box-sizing: border-box;
padding: 0 28rpx 0 128rpx;
height: 136rpx;
line-height: 136rpx;
}
.info .v-name image {
position: absolute;
top: 50%;
left: 28rpx;
transform: translateY(-50%);
width: 80rpx;
height: 80rpx;
}
.info .v-text {
width: 448rpx;
margin: 0 auto 22rpx;
font-size: 24rpx;
}
.info .cover {
width: 400rpx;
height: 400rpx;
display: block;
margin: 0 auto 6rpx;
}
.info .v-tips {
font-size: 20rpx;
color: #999;
text-align: center;
}
.info .v-qr {
position: absolute;
left: 52rpx;
bottom: 16rpx;
width: 120rpx;
height: 120rpx;
}
.info .v-qr-text {
font-size: 24rpx;
position: absolute;
left: 202rpx;
top: 734rpx;
}
\ No newline at end of file \ No newline at end of file
var t = require("../restapi"), e = require("../../utils/util"), a = getApp();
Component({
properties: {},
data: {
icon: {
active: "https://img01.glsx.com.cn/weapp/resource/eims/radio_active.png",
normal: "https://img01.glsx.com.cn/weapp/resource/eims/radio_normal.png"
},
checkList: [],
maxNumber: 9999,
list: [],
oList: [],
showCheckall: !1,
isDelete: !1,
noPass: !1,
total: 0,
allcheck: !1
},
methods: {
onChange: function(t) {
var e = t.detail, a = this.data.list, o = this.data.showCheckall;
console.log(t), o = e.length == a.length, this.setData({
checkList: t.detail,
showCheckall: o
}), this.sum();
},
submitOrder: function() {
var t = this.data.checkList, a = this.data.oList, o = [];
if (console.log(t), !t || t.length <= 0) return (0, e.showToast)("请勾选下单的物品"), !1;
var r = !0, i = !1, n = void 0;
try {
for (var s, c = t[Symbol.iterator](); !(r = (s = c.next()).done); r = !0) !function() {
var t = s.value, e = a.find(function(e) {
return e.cartCode == t;
});
e && o.push(e);
}();
} catch (t) {
t = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(t);
i = !0, n = t;
} finally {
try {
!r && c.return && c.return();
} finally {
if (i) throw n;
}
}
console.log(o), wx.setStorageSync("order", o), this.triggerEvent("change", {
close: !1
}), wx.navigateTo({
url: "/packageIndex/pages/order/index"
});
},
updateNumber: function(a) {
console.log(a);
var o = this, r = o.data.maxNumber, i = Number(a.detail), n = a.currentTarget.dataset.code;
if (!a.detail) return !1;
if (i > r) return (0, e.showToast)("购买数量超过最大数量"), o.setData({
noPass: !1
}), !1;
o.setData({
noPass: !0
});
var s = o.getParams();
s.cartCode = n, s.total = i, (0, t.UPDATEGHPRODUCTCONFIGCART)(s, function(t) {
console.log(t), 0 == t.returnCode && o.getList();
});
},
sum: function() {
var t = this.data.oList, e = this.data.checkList, a = 0, o = !0, r = !1, i = void 0;
try {
for (var n, s = e[Symbol.iterator](); !(o = (n = s.next()).done); o = !0) !function() {
var e = n.value, o = t.find(function(t) {
return t.cartCode == e;
});
console.log(o), o && (a += Number(o.total));
}();
} catch (t) {
t = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(t);
r = !0, i = t;
} finally {
try {
!o && s.return && s.return();
} finally {
if (r) throw i;
}
}
this.setData({
total: a
});
},
allcheckEvent: function(t) {
console.log(t);
var e = this.data.oList, a = [];
if (t.detail) {
var o = !0, r = !1, i = void 0;
try {
for (var n, s = e[Symbol.iterator](); !(o = (n = s.next()).done); o = !0) {
var c = n.value;
a.push(c.cartCode.toString());
}
} catch (t) {
t = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(t);
r = !0, i = t;
} finally {
try {
!o && s.return && s.return();
} finally {
if (r) throw i;
}
}
}
this.setData({
allcheck: t.detail,
checkList: a
}), this.sum();
},
manageMethod: function(t) {
console.log(t);
var e = !1;
1 == t.currentTarget.id && (e = !0), this.setData({
isDelete: e
});
var a = {};
a.isDelete = e, this.triggerEvent("change", a);
},
clearEvent: function() {
var t = [];
(this.data.oList || []).map(function(e) {
t.push(e.cartCode);
}), this.setData({
checkList: [],
allcheck: !1
}), this.deleteProduct(t);
},
getParams: function() {
var t = a.globalData.userInfo, e = {};
return e.merchantCode = t.merchant.merchantId, e;
},
getList: function() {
var e = this, a = e.getParams();
a.pageSize = 1e5, a.pageNo = 1, (0, t.LISTGHSHOPPINGCART)(a, function(t) {
if (console.log(t), 0 == t.returnCode) {
var a = (t.data || {}).listGhShoppingCart || [], o = [], r = [];
a.map(function(t) {
var e = o.findIndex(function(e) {
return t.categoryId == e;
}), a = [];
if ((t.listCartConfig || []).map(function(t) {
"F" != t.option && a.push(t);
}), t.configList = a, e >= 0) r[e].list.push(t); else {
var i = {};
i.name = t.categoryName, i.id = t.categoryId, i.list = [ t ], r.push(i), o.push(t.categoryId);
}
}), console.log(r), e.setData({
list: r,
oList: a
}), e.sum();
}
});
},
deleteProduct: function(a) {
var o = this, r = o.getParams();
r.cartCodes = a, (0, t.DELGHPRODUCTCONFIGCART)(r, function(t) {
console.log(t), 0 == t.returnCode && ((0, e.showToast)("删除成功"), o.getList());
});
},
singleDelete: function(t) {
var e = this.data.checkList || [], a = t.currentTarget.id, o = [], r = e.findIndex(function(t) {
return t == a;
});
r >= 0 && e.splice(r, 1), console.log(r), o.push(a), this.setData({
checkList: e
}), console.log(e), this.deleteProduct(o);
},
batchDelete: function() {
var t = this.data.checkList, a = this.data.oList, o = [];
if (!t || t.length <= 0) return (0, e.showToast)("请勾选要删除的产品"), !1;
t.map(function(t) {
var e = a.find(function(e) {
return e.cartCode == t;
});
e && o.push(e.cartCode);
}), this.setData({
checkList: []
}), this.deleteProduct(o);
}
},
ready: function() {
this.getList();
}
});
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {
"van-checkbox": "../vant/checkbox/index",
"van-checkbox-group": "../vant/checkbox-group/index",
"van-stepper": "../vant/stepper/index",
"van-swipe-cell": "../vant/swipe-cell/index",
"navigation-bar": "../navigationBar/navigationBar",
"auth-setting": "../authSetting/authSetting",
"share": "../share/share"
}
}
\ No newline at end of file \ No newline at end of file
<view class="page">
<view class="c_head">
<view class="c_left">
<text>已选产品数量</text>
<text class="t1">共:</text>
<text class="t_color">{{total}}件</text>
</view>
<view class="c_right">
<view bindtap="manageMethod" id="1" wx:if="{{!isDelete}}">管理</view>
<view bindtap="manageMethod" id="2" wx:else>完成</view>
</view>
</view>
<van-checkbox-group bind:change="onChange" value="{{checkList}}">
<view class="c_list" wx:for="{{list}}" wx:key="index">
<view class="c_title">{{item.name}}</view>
<van-swipe-cell rightWidth="{{65}}" wx:for="{{item.list||[]}}" wx:for-index="idx" wx:for-item="k" wx:key="idx">
<view class="list_box">
<view class="cell">
<view class="radio_box">
<van-checkbox useIconSlot checkedColor="#FF8A31" iconSize="12px" name="{{k.cartCode}}">
<image class="radio_icon" mode="widthFix" slot="icon" src="{{common.inArray(k.cartCode,checkList)?icon.active:icon.normal}}"></image>
</van-checkbox>
</view>
<view class="cell_content">
<view class="cell_top">
<view class="ct_left">
<view class="ct_01">{{k.spaProductCode}}</view>
<view class="ct_02 van-ellipsis">{{k.spaProductName}}</view>
</view>
<view class="ct_stepper">
<van-stepper bind:change="updateNumber" buttonSize="18px" customClass="van_stepper" data-code="{{k.cartCode}}" id="{{item.id}}" inputClass="stepper_input" integer="{{true}}" max="{{maxNumber}}" maxlength="4" min="1" minusClass="stepper_minus" plusClass="stepper_plus" value="{{k.total}}"></van-stepper>
</view>
</view>
<view class="cell_bottom">
<view class="cb_01" wx:if="{{k.motorcycle!='通用'}}">
{{k.audiName}} {{k.motorcycle}}
</view>
<view class="cb_01" wx:if="{{k.configList.length>0}}">
{{k.configList.length>0?'+':''}}<text wx:for="{{k.configList}}" wx:for-index="jdx" wx:for-item="j" wx:key="jdx">{{j.attribInfoName}}{{jdx!=k.configList.length-1?'/':''}}</text>
</view>
<view class="cb_02">备注:{{k.remark||''}}</view>
</view>
</view>
</view>
</view>
<view bind:tap="singleDelete" class="swipe_cell_del" id="{{k.cartCode}}" slot="right">
<text class="t1">删除</text>
</view>
</van-swipe-cell>
</view>
</van-checkbox-group>
</view>
<wxs module="common" src="../../utils/common.wxs" />
\ No newline at end of file \ No newline at end of file
.page {
padding: 0 10px 70px;
}
.c_head {
display: flex;
align-items: center;
padding: 10px;
}
.c_head .c_left {
flex: 3;
font-family: PingFangSC-Regular;
font-size: 14px;
color: #333;
letter-spacing: .44px;
}
.c_head .c_right {
flex: 1;
text-align: right;
font-family: PingFangSC-Medium;
font-size: 16px;
color: #333;
letter-spacing: .5px;
font-weight: 700;
}
.c_left .t1 {
margin-left: 14px;
}
.c_left .t_color {
color: #ff8a31;
}
.radio_icon {
width: 12px;
height: 12px;
}
.c_list {
padding: 0 10px;
position: relative;
z-index: 1;
}
.c_list .c_title {
font-family: PingFangSC-Medium;
font-size: 12px;
color: #333;
letter-spacing: .75px;
font-weight: 700;
margin: 10px 0;
}
.cell {
display: flex;
align-items: top;
background: hsla(0,0%,84.7%,.2);
border-radius: 2px;
padding: 10px;
}
.radio_box {
padding-top: 4px;
}
.cell_content {
padding: 0 0 0 10px;
flex: 1;
}
.cell_top {
display: flex;
padding-bottom: 10px;
}
.cell_top .ct_left {
flex: 1;
}
.cell_top .ct_stepper {
width: 84px;
}
.ct_left .ct_01,.ct_left .ct_02 {
font-size: 14px;
color: #333;
}
.ct_left .ct_01 {
font-family: PingFangSC-Semibold;
font-weight: 700;
letter-spacing: .2px;
}
.ct_left .ct_02 {
font-family: PingFangSC-Regular;
letter-spacing: .88px;
}
.cell_bottom {
padding-top: 10px;
position: relative;
}
.cell_bottom:before {
display: block;
content: "";
height: 1px;
position: absolute;
left: 0;
right: 0;
top: 0;
background: hsla(0,0%,88.2%,.5);
}
.cell_bottom .cb_01 {
letter-spacing: .2px;
}
.cell_bottom .cb_01,.cell_bottom .cb_02 {
font-family: PingFangSC-Regular;
font-size: 12px;
color: #333;
}
.cell_bottom .cb_02 {
letter-spacing: .43px;
word-wrap: break-word;
word-break: break-all;
}
.list_box {
margin-bottom: 10px;
}
.van_stepper {
border: 1px solid #e1e1e1;
border-radius: 2px;
overflow: hidden;
background: #fff;
}
.stepper_input {
border-left: 1px solid #e1e1e1!important;
border-right: 1px solid #e1e1e1!important;
width: 40px!important;
font-size: 12px;
line-height: 18px;
}
.stepper_input,.stepper_minus,.stepper_plus {
background: #fff!important;
color: #333!important;
}
.footer {
height: 50px;
position: fixed;
left: 0;
right: 0;
bottom: 0;
background: #fff;
box-shadow: 0 1px 2px 1px hsla(0,0%,72.9%,.1);
z-index: 2;
}
.footer,.footer .f_left {
display: flex;
align-items: center;
}
.footer .f_left {
flex: 1;
padding-left: 10px;
}
.fooetr .right {
width: 140px;
}
.f_right .btn {
background-image: linear-gradient(90deg,#4387e7,#9869ff);
height: 50px;
border-radius: 0;
font-family: PingFangSC-Medium;
font-size: 14px;
color: #fff;
letter-spacing: .88px;
line-height: 50px;
padding: 0;
}
.radio_position {
margin: 4px 0 0;
}
.radio_text {
font-family: PingFangSC-Regular;
font-size: 16px;
color: #333;
letter-spacing: 1.14px;
}
.footer .f_left .f_clear,.footer .f_left .f_radio {
flex: 1;
}
.footer .f_left .f_clear {
text-align: center;
font-family: PingFangSC-Regular;
font-size: 16px;
color: #333;
letter-spacing: 1.14px;
}
.clear_icon {
width: 12px;
height: 12px;
margin: 5px 2px 0 0;
}
.swipe_cell_del {
position: relative;
width: 65px;
height: 100%;
text-align: center;
background: red;
color: #fff;
}
.swipe_cell_del .t1 {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
.cb_01 {
font-family: PingFangSC-Regular;
font-size: 12px;
color: #333;
letter-spacing: .17px;
}
\ No newline at end of file \ No newline at end of file
Component({
properties: {
list: Array,
flex: null,
defaultIndex: {
type: Number,
observer: function(t, e) {
this.setData({
count: t
});
}
}
},
data: {
count: 0
},
methods: {
click: function(t) {
var e = t.currentTarget.dataset.index;
this.setData({
count: e
}), this.triggerEvent("tabclick", e);
}
}
});
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {
"navigation-bar": "../navigationBar/navigationBar",
"auth-setting": "../authSetting/authSetting",
"share": "../share/share"
}
}
\ No newline at end of file \ No newline at end of file
<view class="tabbar {{flex?'flex':''}}">
<view bindtap="click" class="tabbar-item {{index!=list.length-1?'tabbar-line':''}} {{count==index?'active':''}}" data-index="{{index}}" wx:for="{{list}}" wx:key="index">
<view class="item">{{item}}</view>
</view>
</view>
.tabbar {
height: 102rpx;
line-height: 102rpx;
box-sizing: border-box;
border-bottom: 1rpx solid #eee;
background-color: #fff;
}
.flex {
display: flex;
}
.tabbar-item {
float: left;
margin-right: 80rpx;
font-size: 32rpx;
color: #333;
position: relative;
font-weight: 600;
}
.tabbar-item .item {
position: absolute;
left: 50%;
transform: translateX(-50%);
}
.flex .tabbar-item {
flex: 1;
text-align: center;
margin-right: 0;
}
.tabbar-item:last-of-type {
margin-right: 0;
}
.tabbar-item.active,.tabbar-line {
position: relative;
}
.tabbar-line:before {
content: "";
position: absolute;
top: 50%;
right: -1rpx;
transform: translateY(-50%);
width: 1rpx;
height: 62rpx;
background-color: hsla(0,0%,77.6%,.2);
}
.tabbar-item.active .item:after {
content: "";
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 100%;
height: 4rpx;
background-color: #ff7d12;
}
\ No newline at end of file \ No newline at end of file
(0, require("../common/component").VantComponent)({
props: {
title: String,
border: {
type: Boolean,
value: !0
}
}
});
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {
"navigation-bar": "../../navigationBar/navigationBar",
"auth-setting": "../../authSetting/authSetting",
"share": "../../share/share"
}
}
\ No newline at end of file \ No newline at end of file
<view class="van-cell-group__title" wx:if="{{title}}">
{{title}}
</view>
<view class="custom-class van-cell-group {{border?'van-hairline--top-bottom':''}}">
<slot></slot>
</view>
.van-ellipsis {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.van-multi-ellipsis--l2 {
-webkit-line-clamp: 2;
}
.van-multi-ellipsis--l2,.van-multi-ellipsis--l3 {
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
}
.van-multi-ellipsis--l3 {
-webkit-line-clamp: 3;
}
.van-clearfix:after {
display: table;
clear: both;
content: "";
}
.van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom {
position: relative;
}
.van-hairline--bottom:after,.van-hairline--left:after,.van-hairline--right:after,.van-hairline--surround:after,.van-hairline--top-bottom:after,.van-hairline--top:after,.van-hairline:after {
position: absolute;
box-sizing: border-box;
transform-origin: center;
content: " ";
pointer-events: none;
top: -50%;
right: -50%;
bottom: -50%;
left: -50%;
border: 0 solid #eee;
transform: scale(.5);
}
.van-hairline--top:after {
border-top-width: 1px;
}
.van-hairline--left:after {
border-left-width: 1px;
}
.van-hairline--right:after {
border-right-width: 1px;
}
.van-hairline--bottom:after {
border-bottom-width: 1px;
}
.van-hairline--top-bottom:after {
border-width: 1px 0;
}
.van-hairline--surround:after {
border-width: 1px;
}
.van-cell-group__title {
padding: 16px 16px 8px;
padding: var(--cell-group-title-padding,16px 16px 8px);
font-size: 14px;
font-size: var(--cell-group-title-font-size,14px);
line-height: 16px;
line-height: var(--cell-group-title-line-height,16px);
color: #969799;
color: var(--cell-group-title-color,#969799);
}
\ No newline at end of file \ No newline at end of file
var e = require("../mixins/link");
(0, require("../common/component").VantComponent)({
classes: [ "title-class", "label-class", "value-class", "right-icon-class", "hover-class" ],
mixins: [ e.link ],
props: {
title: null,
value: null,
icon: String,
size: String,
label: String,
center: Boolean,
isLink: Boolean,
required: Boolean,
clickable: Boolean,
titleWidth: String,
customStyle: String,
arrowDirection: String,
useLabelSlot: Boolean,
border: {
type: Boolean,
value: !0
}
},
methods: {
onClick: function(e) {
this.$emit("click", e.detail), this.jumpLink();
}
}
});
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {
"van-icon": "../icon/index",
"navigation-bar": "../../navigationBar/navigationBar",
"auth-setting": "../../authSetting/authSetting",
"share": "../../share/share"
}
}
\ No newline at end of file \ No newline at end of file
<view bind:tap="onClick" class="custom-class {{utils.bem( 'cell',[ size,{center:center,required:required,borderless:!border,clickable:isLink||clickable} ] )}}" hoverClass="van-cell--hover hover-class" hoverStayTime="70" style="{{customStyle}}">
<van-icon class="van-cell__left-icon-wrap" customClass="van-cell__left-icon" name="{{icon}}" wx:if="{{icon}}"></van-icon>
<slot name="icon" wx:else></slot>
<view class="van-cell__title title-class" style="{{titleWidth?'max-width:'+titleWidth+';min-width:'+titleWidth:''}}">
<block wx:if="{{title}}">{{title}}</block>
<slot name="title" wx:else></slot>
<view class="van-cell__label label-class" wx:if="{{label||useLabelSlot}}">
<slot name="label" wx:if="{{useLabelSlot}}"></slot>
<block wx:elif="{{label}}">{{label}}</block>
</view>
</view>
<view class="van-cell__value value-class">
<block wx:if="{{value||value===0}}">{{value}}</block>
<slot wx:else></slot>
</view>
<van-icon class="van-cell__right-icon-wrap right-icon-class" customClass="van-cell__right-icon" name="{{arrowDirection?'arrow'+'-'+arrowDirection:'arrow'}}" wx:if="{{isLink}}"></van-icon>
<slot name="right-icon" wx:else></slot>
<slot name="extra"></slot>
</view>
<wxs module="utils" src="../wxs/utils.wxs" />
\ No newline at end of file \ No newline at end of file
.van-ellipsis {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.van-multi-ellipsis--l2 {
-webkit-line-clamp: 2;
}
.van-multi-ellipsis--l2,.van-multi-ellipsis--l3 {
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
}
.van-multi-ellipsis--l3 {
-webkit-line-clamp: 3;
}
.van-clearfix:after {
display: table;
clear: both;
content: "";
}
.van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom {
position: relative;
}
.van-hairline--bottom:after,.van-hairline--left:after,.van-hairline--right:after,.van-hairline--surround:after,.van-hairline--top-bottom:after,.van-hairline--top:after,.van-hairline:after {
position: absolute;
box-sizing: border-box;
transform-origin: center;
content: " ";
pointer-events: none;
top: -50%;
right: -50%;
bottom: -50%;
left: -50%;
border: 0 solid #eee;
transform: scale(.5);
}
.van-hairline--top:after {
border-top-width: 1px;
}
.van-hairline--left:after {
border-left-width: 1px;
}
.van-hairline--right:after {
border-right-width: 1px;
}
.van-hairline--bottom:after {
border-bottom-width: 1px;
}
.van-hairline--top-bottom:after {
border-width: 1px 0;
}
.van-hairline--surround:after {
border-width: 1px;
}
.van-cell {
position: relative;
display: flex;
box-sizing: border-box;
width: 100%;
padding: 10px 16px;
padding: var(--cell-vertical-padding,10px) var(--cell-horizontal-padding,16px);
font-size: 14px;
font-size: var(--cell-font-size,14px);
line-height: 24px;
line-height: var(--cell-line-height,24px);
color: #323233;
color: var(--cell-text-color,#323233);
background-color: #fff;
background-color: var(--cell-background-color,#fff);
}
.van-cell:after {
position: absolute;
box-sizing: border-box;
transform-origin: center;
content: " ";
pointer-events: none;
top: auto;
right: 0;
bottom: 0;
left: 16px;
border-bottom: 1px solid #ebedf0;
transform: scaleY(.5);
}
.van-cell--borderless:after {
display: none;
}
.van-cell-group {
background-color: #fff;
background-color: var(--cell-background-color,#fff);
}
.van-cell__label {
margin-top: 3px;
margin-top: var(--cell-label-margin-top,3px);
font-size: 12px;
font-size: var(--cell-label-font-size,12px);
line-height: 18px;
line-height: var(--cell-label-line-height,18px);
color: #969799;
color: var(--cell-label-color,#969799);
}
.van-cell__value {
overflow: hidden;
text-align: right;
vertical-align: middle;
color: #969799;
color: var(--cell-value-color,#969799);
}
.van-cell__title,.van-cell__value {
flex: 1;
}
.van-cell__title:empty,.van-cell__value:empty {
display: none;
}
.van-cell__left-icon-wrap,.van-cell__right-icon-wrap {
display: flex;
align-items: center;
height: 24px;
height: var(--cell-line-height,24px);
font-size: 16px;
font-size: var(--cell-icon-size,16px);
}
.van-cell__left-icon-wrap {
margin-right: 5px;
}
.van-cell__right-icon-wrap {
margin-left: 5px;
color: #969799;
color: var(--cell-right-icon-color,#969799);
}
.van-cell__left-icon {
vertical-align: middle;
}
.van-cell__left-icon,.van-cell__right-icon {
line-height: 24px;
line-height: var(--cell-line-height,24px);
}
.van-cell--clickable.van-cell--hover {
background-color: #f2f3f5;
background-color: var(--cell-active-color,#f2f3f5);
}
.van-cell--required {
overflow: visible;
}
.van-cell--required:before {
position: absolute;
content: "*";
left: 8px;
left: var(--padding-xs,8px);
font-size: 14px;
font-size: var(--cell-font-size,14px);
color: #ee0a24;
color: var(--cell-required-color,#ee0a24);
}
.van-cell--center {
align-items: center;
}
.van-cell--large {
padding-top: 12px;
padding-top: var(--cell-large-vertical-padding,12px);
padding-bottom: 12px;
padding-bottom: var(--cell-large-vertical-padding,12px);
}
.van-cell--large .van-cell__title {
font-size: 16px;
font-size: var(--cell-large-title-font-size,16px);
}
.van-cell--large .van-cell__value {
font-size: 16px;
font-size: var(--cell-large-value-font-size,16px);
}
.van-cell--large .van-cell__label {
font-size: 14px;
font-size: var(--cell-large-label-font-size,14px);
}
\ No newline at end of file \ No newline at end of file
(0, require("../common/component").VantComponent)({
field: !0,
relation: {
name: "checkbox",
type: "descendant",
current: "checkbox-group",
linked: function(e) {
this.updateChild(e);
}
},
props: {
max: Number,
value: {
type: Array,
observer: "updateChildren"
},
disabled: {
type: Boolean,
observer: "updateChildren"
}
},
methods: {
updateChildren: function() {
var e = this;
(this.children || []).forEach(function(t) {
return e.updateChild(t);
});
},
updateChild: function(e) {
var t = this.data, a = t.value, n = t.disabled;
e.setData({
value: -1 !== a.indexOf(e.data.name),
parentDisabled: n
});
}
}
});
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {
"navigation-bar": "../../navigationBar/navigationBar",
"auth-setting": "../../authSetting/authSetting",
"share": "../../share/share"
}
}
\ No newline at end of file \ No newline at end of file
.van-ellipsis {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.van-multi-ellipsis--l2 {
-webkit-line-clamp: 2;
}
.van-multi-ellipsis--l2,.van-multi-ellipsis--l3 {
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
}
.van-multi-ellipsis--l3 {
-webkit-line-clamp: 3;
}
.van-clearfix:after {
display: table;
clear: both;
content: "";
}
.van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom {
position: relative;
}
.van-hairline--bottom:after,.van-hairline--left:after,.van-hairline--right:after,.van-hairline--surround:after,.van-hairline--top-bottom:after,.van-hairline--top:after,.van-hairline:after {
position: absolute;
box-sizing: border-box;
transform-origin: center;
content: " ";
pointer-events: none;
top: -50%;
right: -50%;
bottom: -50%;
left: -50%;
border: 0 solid #eee;
transform: scale(.5);
}
.van-hairline--top:after {
border-top-width: 1px;
}
.van-hairline--left:after {
border-left-width: 1px;
}
.van-hairline--right:after {
border-right-width: 1px;
}
.van-hairline--bottom:after {
border-bottom-width: 1px;
}
.van-hairline--top-bottom:after {
border-width: 1px 0;
}
.van-hairline--surround:after {
border-width: 1px;
}
\ No newline at end of file \ No newline at end of file
function e(e, a) {
e.$emit("input", a), e.$emit("change", a);
}
(0, require("../common/component").VantComponent)({
field: !0,
relation: {
name: "checkbox-group",
type: "ancestor",
current: "checkbox"
},
classes: [ "icon-class", "label-class" ],
props: {
value: Boolean,
disabled: Boolean,
useIconSlot: Boolean,
checkedColor: String,
labelPosition: String,
labelDisabled: Boolean,
shape: {
type: String,
value: "round"
},
iconSize: {
type: null,
value: 20
}
},
data: {
parentDisabled: !1
},
methods: {
emitChange: function(a) {
this.parent ? this.setParentValue(this.parent, a) : e(this, a);
},
toggle: function() {
var e = this.data, a = e.parentDisabled, t = e.disabled, n = e.value;
t || a || this.emitChange(!n);
},
onClickLabel: function() {
var e = this.data, a = e.labelDisabled, t = e.parentDisabled, n = e.disabled, i = e.value;
n || a || t || this.emitChange(!i);
},
setParentValue: function(a, t) {
var n = a.data.value.slice(), i = this.data.name, l = a.data.max;
if (t) {
if (l && n.length >= l) return;
-1 === n.indexOf(i) && (n.push(i), e(a, n));
} else {
var s = n.indexOf(i);
-1 !== s && (n.splice(s, 1), e(a, n));
}
}
}
});
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {
"van-icon": "../icon/index",
"navigation-bar": "../../navigationBar/navigationBar",
"auth-setting": "../../authSetting/authSetting",
"share": "../../share/share"
}
}
\ No newline at end of file \ No newline at end of file
<view class="van-checkbox custom-class">
<view bindtap="toggle" class="van-checkbox__icon-wrap">
<slot name="icon" wx:if="{{useIconSlot}}"></slot>
<van-icon class="{{utils.bem( 'checkbox__icon',[ shape,{disabled:disabled||parentDisabled,checked:value} ] )}}" customClass="icon-class" customStyle="line-height: 1.25em;" name="success" size="0.8em" style="{{computed.iconStyle(checkedColor,value,disabled,parentDisabled,iconSize)}}" wx:else></van-icon>
</view>
<view bindtap="onClickLabel" class="label-class {{utils.bem( 'checkbox__label',[ labelPosition,{disabled:disabled||parentDisabled} ] )}}">
<slot></slot>
</view>
</view>
<wxs module="utils" src="../wxs/utils.wxs" />
<wxs module="computed" src="index.wxs" />
\ No newline at end of file \ No newline at end of file
var utils = require('p_./components/vant/wxs/utils.wxs');
function iconStyle(checkedColor, value, disabled, parentDisabled, iconSize) {
var styles = [
['font-size', utils.addUnit(iconSize)]
];
if (checkedColor && value && !disabled && !parentDisabled) {
styles.push(['border-color', checkedColor]);
styles.push(['background-color', checkedColor])
};
return (styles.map((function(item) {
return (item.join(':'))
})).join(';'))
};
module.exports = ({
iconStyle: iconStyle,
});
\ No newline at end of file \ No newline at end of file
.van-ellipsis {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.van-multi-ellipsis--l2 {
-webkit-line-clamp: 2;
}
.van-multi-ellipsis--l2,.van-multi-ellipsis--l3 {
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
}
.van-multi-ellipsis--l3 {
-webkit-line-clamp: 3;
}
.van-clearfix:after {
display: table;
clear: both;
content: "";
}
.van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom {
position: relative;
}
.van-hairline--bottom:after,.van-hairline--left:after,.van-hairline--right:after,.van-hairline--surround:after,.van-hairline--top-bottom:after,.van-hairline--top:after,.van-hairline:after {
position: absolute;
box-sizing: border-box;
transform-origin: center;
content: " ";
pointer-events: none;
top: -50%;
right: -50%;
bottom: -50%;
left: -50%;
border: 0 solid #eee;
transform: scale(.5);
}
.van-hairline--top:after {
border-top-width: 1px;
}
.van-hairline--left:after {
border-left-width: 1px;
}
.van-hairline--right:after {
border-right-width: 1px;
}
.van-hairline--bottom:after {
border-bottom-width: 1px;
}
.van-hairline--top-bottom:after {
border-width: 1px 0;
}
.van-hairline--surround:after {
border-width: 1px;
}
.van-checkbox {
display: flex;
align-items: center;
overflow: hidden;
user-select: none;
}
.van-checkbox__icon-wrap,.van-checkbox__label {
line-height: 20px;
line-height: var(--checkbox-size,20px);
}
.van-checkbox__icon-wrap {
flex: none;
}
.van-checkbox__icon {
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
width: 1em;
height: 1em;
color: transparent;
text-align: center;
transition-property: color,border-color,background-color;
font-size: 20px;
font-size: var(--checkbox-size,20px);
border: 1px solid #c8c9cc;
border: 1px solid var(--checkbox-border-color,#c8c9cc);
transition-duration: .2s;
transition-duration: var(--checkbox-transition-duration,.2s);
}
.van-checkbox__icon--round {
border-radius: 100%;
}
.van-checkbox__icon--checked {
color: #fff;
color: var(--white,#fff);
background-color: #1989fa;
background-color: var(--checkbox-checked-icon-color,#1989fa);
border-color: #1989fa;
border-color: var(--checkbox-checked-icon-color,#1989fa);
}
.van-checkbox__icon--disabled {
background-color: #ebedf0;
background-color: var(--checkbox-disabled-background-color,#ebedf0);
border-color: #c8c9cc;
border-color: var(--checkbox-disabled-icon-color,#c8c9cc);
}
.van-checkbox__icon--disabled.van-checkbox__icon--checked {
color: #c8c9cc;
color: var(--checkbox-disabled-icon-color,#c8c9cc);
}
.van-checkbox__label {
word-wrap: break-word;
margin-left: 10px;
margin-left: var(--checkbox-label-margin,10px);
color: #323233;
color: var(--checkbox-label-color,#323233);
}
.van-checkbox__label--left {
float: left;
margin: 0 10px 0 0;
margin: 0 var(--checkbox-label-margin,10px) 0 0;
}
.van-checkbox__label--disabled {
color: #c8c9cc;
color: var(--checkbox-disabled-label-color,#c8c9cc);
}
.van-checkbox__label:empty {
margin: 0;
}
\ No newline at end of file \ No newline at end of file
(0, require("../common/component").VantComponent)({
relation: {
name: "row",
type: "ancestor",
current: "col"
},
props: {
span: Number,
offset: Number
},
data: {
viewStyle: ""
},
methods: {
setGutter: function(t) {
var e = t / 2 + "px", n = t ? "padding-left: " + e + "; padding-right: " + e + ";" : "";
n !== this.data.viewStyle && this.setData({
viewStyle: n
});
}
}
});
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {
"navigation-bar": "../../navigationBar/navigationBar",
"auth-setting": "../../authSetting/authSetting",
"share": "../../share/share"
}
}
\ No newline at end of file \ No newline at end of file
<view class="custom-class {{utils.bem( 'col',[span] )}} {{offset?'van-col--offset-'+offset:''}}" style="{{viewStyle}}">
<slot></slot>
</view>
<wxs module="utils" src="../wxs/utils.wxs" />
\ No newline at end of file \ No newline at end of file
.van-ellipsis {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.van-multi-ellipsis--l2 {
-webkit-line-clamp: 2;
}
.van-multi-ellipsis--l2,.van-multi-ellipsis--l3 {
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
}
.van-multi-ellipsis--l3 {
-webkit-line-clamp: 3;
}
.van-clearfix:after {
display: table;
clear: both;
content: "";
}
.van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom {
position: relative;
}
.van-hairline--bottom:after,.van-hairline--left:after,.van-hairline--right:after,.van-hairline--surround:after,.van-hairline--top-bottom:after,.van-hairline--top:after,.van-hairline:after {
position: absolute;
box-sizing: border-box;
transform-origin: center;
content: " ";
pointer-events: none;
top: -50%;
right: -50%;
bottom: -50%;
left: -50%;
border: 0 solid #eee;
transform: scale(.5);
}
.van-hairline--top:after {
border-top-width: 1px;
}
.van-hairline--left:after {
border-left-width: 1px;
}
.van-hairline--right:after {
border-right-width: 1px;
}
.van-hairline--bottom:after {
border-bottom-width: 1px;
}
.van-hairline--top-bottom:after {
border-width: 1px 0;
}
.van-hairline--surround:after {
border-width: 1px;
}
.van-col {
float: left;
box-sizing: border-box;
}
.van-col--1 {
width: 4.16666667%;
}
.van-col--offset-1 {
margin-left: 4.16666667%;
}
.van-col--2 {
width: 8.33333333%;
}
.van-col--offset-2 {
margin-left: 8.33333333%;
}
.van-col--3 {
width: 12.5%;
}
.van-col--offset-3 {
margin-left: 12.5%;
}
.van-col--4 {
width: 16.66666667%;
}
.van-col--offset-4 {
margin-left: 16.66666667%;
}
.van-col--5 {
width: 20.83333333%;
}
.van-col--offset-5 {
margin-left: 20.83333333%;
}
.van-col--6 {
width: 25%;
}
.van-col--offset-6 {
margin-left: 25%;
}
.van-col--7 {
width: 29.16666667%;
}
.van-col--offset-7 {
margin-left: 29.16666667%;
}
.van-col--8 {
width: 33.33333333%;
}
.van-col--offset-8 {
margin-left: 33.33333333%;
}
.van-col--9 {
width: 37.5%;
}
.van-col--offset-9 {
margin-left: 37.5%;
}
.van-col--10 {
width: 41.66666667%;
}
.van-col--offset-10 {
margin-left: 41.66666667%;
}
.van-col--11 {
width: 45.83333333%;
}
.van-col--offset-11 {
margin-left: 45.83333333%;
}
.van-col--12 {
width: 50%;
}
.van-col--offset-12 {
margin-left: 50%;
}
.van-col--13 {
width: 54.16666667%;
}
.van-col--offset-13 {
margin-left: 54.16666667%;
}
.van-col--14 {
width: 58.33333333%;
}
.van-col--offset-14 {
margin-left: 58.33333333%;
}
.van-col--15 {
width: 62.5%;
}
.van-col--offset-15 {
margin-left: 62.5%;
}
.van-col--16 {
width: 66.66666667%;
}
.van-col--offset-16 {
margin-left: 66.66666667%;
}
.van-col--17 {
width: 70.83333333%;
}
.van-col--offset-17 {
margin-left: 70.83333333%;
}
.van-col--18 {
width: 75%;
}
.van-col--offset-18 {
margin-left: 75%;
}
.van-col--19 {
width: 79.16666667%;
}
.van-col--offset-19 {
margin-left: 79.16666667%;
}
.van-col--20 {
width: 83.33333333%;
}
.van-col--offset-20 {
margin-left: 83.33333333%;
}
.van-col--21 {
width: 87.5%;
}
.van-col--offset-21 {
margin-left: 87.5%;
}
.van-col--22 {
width: 91.66666667%;
}
.van-col--offset-22 {
margin-left: 91.66666667%;
}
.van-col--23 {
width: 95.83333333%;
}
.van-col--offset-23 {
margin-left: 95.83333333%;
}
.van-col--24 {
width: 100%;
}
.van-col--offset-24 {
margin-left: 100%;
}
\ No newline at end of file \ No newline at end of file
Object.defineProperty(exports, "__esModule", {
value: !0
});
exports.RED = "#ee0a24", exports.BLUE = "#1989fa", exports.WHITE = "#fff", exports.GREEN = "#07c160",
exports.ORANGE = "#ff976a", exports.GRAY = "#323233", exports.GRAY_DARK = "#969799";
\ No newline at end of file \ No newline at end of file
function e(e, n, i) {
return n in e ? Object.defineProperty(e, n, {
value: i,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[n] = i, e;
}
function n(e, n, i) {
Object.keys(i).forEach(function(t) {
e[t] && (n[i[t]] = e[t]);
});
}
function i(n, i, t) {
var r = t.type, a = t.name, o = t.linked, d = t.unlinked, l = t.linkChanged, c = i.beforeCreate, h = i.destroyed;
"descendant" === r && (n.created = function() {
c && c.bind(this)(), this.children = this.children || [];
}, n.detached = function() {
this.children = [], h && h.bind(this)();
}), n.relations = Object.assign(n.relations || {}, e({}, "../" + a + "/index", {
type: r,
linked: function(e) {
s[r].linked.bind(this)(e), o && o.bind(this)(e);
},
linkChanged: function(e) {
l && l.bind(this)(e);
},
unlinked: function(e) {
s[r].unlinked.bind(this)(e), d && d.bind(this)(e);
}
}));
}
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.VantComponent = void 0;
var t = require("../mixins/basic"), s = {
ancestor: {
linked: function(e) {
this.parent = e;
},
unlinked: function() {
this.parent = null;
}
},
descendant: {
linked: function(e) {
this.children = this.children || [], this.children.push(e);
},
unlinked: function(e) {
this.children = (this.children || []).filter(function(n) {
return n !== e;
});
}
}
};
exports.VantComponent = function() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, s = {};
n(e, s, {
data: "data",
props: "properties",
mixins: "behaviors",
methods: "methods",
beforeCreate: "created",
created: "attached",
mounted: "ready",
relations: "relations",
destroyed: "detached",
classes: "externalClasses"
});
var r = e.relation;
r && i(s, e, r), s.externalClasses = s.externalClasses || [], s.externalClasses.push("custom-class"),
s.behaviors = s.behaviors || [], s.behaviors.push(t.basic), e.field && s.behaviors.push("wx://form-field"),
s.properties && Object.keys(s.properties).forEach(function(e) {
Array.isArray(s.properties[e]) && (s.properties[e] = null);
}), s.options = {
multipleSlots: !0,
addGlobalClass: !0
}, Component(s);
};
\ No newline at end of file \ No newline at end of file
function t(t) {
return void 0 !== t && null !== t;
}
function n(t) {
return /^\d+(\.\d+)?$/.test(t);
}
Object.defineProperty(exports, "__esModule", {
value: !0
});
var e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) {
return typeof t;
} : function(t) {
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
};
exports.isDef = t, exports.isObj = function(t) {
var n = void 0 === t ? "undefined" : e(t);
return null !== t && ("object" === n || "function" === n);
}, exports.isNumber = n, exports.range = function(t, n, e) {
return Math.min(Math.max(t, n), e);
}, exports.nextTick = function(t) {
setTimeout(function() {
t();
}, 1e3 / 30);
}, exports.getSystemInfoSync = function() {
return null == o && (o = wx.getSystemInfoSync()), o;
}, exports.addUnit = function(e) {
if (t(e)) return e = String(e), n(e) ? e + "px" : e;
};
var o = null;
\ No newline at end of file \ No newline at end of file
var e = require("../common/component"), t = require("./props");
(0, e.VantComponent)({
field: !0,
classes: [ "input-class", "right-icon-class" ],
props: Object.assign(Object.assign(Object.assign(Object.assign({}, t.commonProps), t.inputProps), t.textareaProps), {
size: String,
icon: String,
label: String,
error: Boolean,
center: Boolean,
isLink: Boolean,
leftIcon: String,
rightIcon: String,
autosize: [ Boolean, Object ],
readonly: {
type: Boolean,
observer: "setShowClear"
},
required: Boolean,
iconClass: String,
clearable: {
type: Boolean,
observer: "setShowClear"
},
clickable: Boolean,
inputAlign: String,
customStyle: String,
errorMessage: String,
arrowDirection: String,
showWordLimit: Boolean,
errorMessageAlign: String,
border: {
type: Boolean,
value: !0
},
titleWidth: {
type: String,
value: "90px"
}
}),
data: {
focused: !1,
innerValue: "",
showClear: !1
},
created: function() {
this.value = this.data.value, this.setData({
innerValue: this.value
});
},
methods: {
onInput: function(e) {
var t = (e.detail || {}).value, i = void 0 === t ? "" : t;
this.value = i, this.setShowClear(), this.emitChange();
},
onFocus: function(e) {
this.focused = !0, this.setShowClear(), this.$emit("focus", e.detail);
},
onBlur: function(e) {
this.focused = !1, this.setShowClear(), this.$emit("blur", e.detail);
},
onClickIcon: function() {
this.$emit("click-icon");
},
onClear: function() {
var e = this;
this.setData({
innerValue: ""
}), this.value = "", this.setShowClear(), wx.nextTick(function() {
e.emitChange(), e.$emit("clear", "");
});
},
onConfirm: function(e) {
var t = (e.detail || {}).value, i = void 0 === t ? "" : t;
this.value = i, this.setShowClear(), this.$emit("confirm", i);
},
setValue: function(e) {
this.value = e, this.setShowClear(), "" === e && this.setData({
innerValue: ""
}), this.emitChange();
},
onLineChange: function(e) {
this.$emit("linechange", e.detail);
},
onKeyboardHeightChange: function(e) {
this.$emit("keyboardheightchange", e.detail);
},
emitChange: function() {
var e = this;
this.setData({
value: this.value
}), wx.nextTick(function() {
e.$emit("input", e.value), e.$emit("change", e.value);
});
},
setShowClear: function() {
var e = this.data, t = e.clearable, i = e.readonly, n = this.focused, a = this.value;
this.setData({
showClear: !(!t || !n || !a || i)
});
},
noop: function() {}
}
});
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {
"van-cell": "../cell/index",
"van-icon": "../icon/index",
"navigation-bar": "../../navigationBar/navigationBar",
"auth-setting": "../../authSetting/authSetting",
"share": "../../share/share"
}
}
\ No newline at end of file \ No newline at end of file
<van-cell arrowDirection="{{arrowDirection}}" border="{{border}}" center="{{center}}" clickable="{{clickable}}" customClass="van-field" customStyle="{{customStyle}}" icon="{{leftIcon}}" isLink="{{isLink}}" required="{{required}}" size="{{size}}" title="{{label}}" titleWidth="{{titleWidth}}">
<slot name="left-icon" slot="icon"></slot>
<slot name="label" slot="title"></slot>
<view class="{{utils.bem( 'field__body',[type] )}}">
<textarea adjustPosition="{{adjustPosition}}" autoFocus="{{autoFocus}}" autoHeight="{{!!autosize}}" bindblur="onBlur" bindconfirm="onConfirm" bindfocus="onFocus" bindinput="onInput" bindkeyboardheightchange="onKeyboardHeightChange" bindlinechange="onLineChange" class="input-class {{utils.bem( 'field__input',[ inputAlign,type,{disabled:disabled,error:error} ] )}}" cursor="{{cursor}}" cursorSpacing="{{cursorSpacing}}" disableDefaultPadding="{{disableDefaultPadding}}" disabled="{{disabled||readonly}}" fixed="{{fixed}}" focus="{{focus}}" holdKeyboard="{{holdKeyboard}}" maxlength="{{maxlength}}" placeholder="{{placeholder}}" placeholderClass="{{utils.bem( 'field__placeholder',{error:error} )}}" placeholderStyle="{{placeholderStyle}}" selectionEnd="{{selectionEnd}}" selectionStart="{{selectionStart}}" showConfirmBar="{{showConfirmBar}}" style="{{computed.inputStyle(autosize)}}" value="{{innerValue}}" wx:if="{{type==='textarea'}}"></textarea>
<input adjustPosition="{{adjustPosition}}" autoFocus="{{autoFocus}}" bindblur="onBlur" bindconfirm="onConfirm" bindfocus="onFocus" bindinput="onInput" bindkeyboardheightchange="onKeyboardHeightChange" class="input-class {{utils.bem( 'field__input',[ inputAlign,{disabled:disabled,error:error} ] )}}" confirmHold="{{confirmHold}}" confirmType="{{confirmType}}" cursor="{{cursor}}" cursorSpacing="{{cursorSpacing}}" disabled="{{disabled||readonly}}" focus="{{focus}}" holdKeyboard="{{holdKeyboard}}" maxlength="{{maxlength}}" password="{{password||type==='password'}}" placeholder="{{placeholder}}" placeholderClass="{{utils.bem( 'field__placeholder',{error:error} )}}" placeholderStyle="{{placeholderStyle}}" selectionEnd="{{selectionEnd}}" selectionStart="{{selectionStart}}" type="{{type}}" value="{{innerValue}}" wx:else></input>
<van-icon catch:touchstart="onClear" class="van-field__clear-root van-field__icon-root" name="clear" wx:if="{{showClear}}"></van-icon>
<view bind:tap="onClickIcon" class="van-field__icon-container">
<van-icon class="van-field__icon-root {{iconClass}}" customClass="right-icon-class" name="{{rightIcon||icon}}" wx:if="{{rightIcon||icon}}"></van-icon>
<slot name="right-icon"></slot>
<slot name="icon"></slot>
</view>
<view class="van-field__button">
<slot name="button"></slot>
</view>
</view>
<view class="van-field__word-limit" wx:if="{{showWordLimit&&maxlength}}">
<view class="{{utils.bem( 'field__word-num',{full:value.length>=maxlength} )}}">{{value.length}}</view>/{{maxlength}}
</view>
<view class="van-field__error-message {{utils.bem( 'field__error',[ errorMessageAlign,{disabled:disabled,error:error} ] )}}" wx:if="{{errorMessage}}">
{{errorMessage}}
</view>
</van-cell>
<wxs module="utils" src="../wxs/utils.wxs" />
<wxs module="computed" src="index.wxs" />
\ No newline at end of file \ No newline at end of file
var utils = require('p_./components/vant/wxs/utils.wxs');
function inputStyle(autosize) {
if (autosize && autosize.constructor === 'Object') {
var style = '';
if (autosize.minHeight) {
style += 'min-height:' + utils.addUnit(autosize.minHeight) + ';'
};
if (autosize.maxHeight) {
style += 'max-height:' + utils.addUnit(autosize.maxHeight) + ';'
};
return (style)
};
return ('')
};
module.exports = ({
inputStyle: inputStyle,
});
\ No newline at end of file \ No newline at end of file
.van-ellipsis {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.van-multi-ellipsis--l2 {
-webkit-line-clamp: 2;
}
.van-multi-ellipsis--l2,.van-multi-ellipsis--l3 {
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
}
.van-multi-ellipsis--l3 {
-webkit-line-clamp: 3;
}
.van-clearfix:after {
display: table;
clear: both;
content: "";
}
.van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom {
position: relative;
}
.van-hairline--bottom:after,.van-hairline--left:after,.van-hairline--right:after,.van-hairline--surround:after,.van-hairline--top-bottom:after,.van-hairline--top:after,.van-hairline:after {
position: absolute;
box-sizing: border-box;
transform-origin: center;
content: " ";
pointer-events: none;
top: -50%;
right: -50%;
bottom: -50%;
left: -50%;
border: 0 solid #eee;
transform: scale(.5);
}
.van-hairline--top:after {
border-top-width: 1px;
}
.van-hairline--left:after {
border-left-width: 1px;
}
.van-hairline--right:after {
border-right-width: 1px;
}
.van-hairline--bottom:after {
border-bottom-width: 1px;
}
.van-hairline--top-bottom:after {
border-width: 1px 0;
}
.van-hairline--surround:after {
border-width: 1px;
}
.van-field {
--cell-icon-size: 16px;
--cell-icon-size: var(--field-icon-size,16px);
}
.van-field__body {
display: flex;
align-items: center;
}
.van-field__body--textarea {
line-height: 1.2em;
}
.van-field__body--textarea,.van-field__input {
min-height: 24px;
min-height: var(--cell-line-height,24px);
}
.van-field__input {
position: relative;
display: block;
box-sizing: border-box;
width: 100%;
margin: 0;
padding: 0;
line-height: inherit;
text-align: left;
background-color: initial;
border: 0;
resize: none;
color: #323233;
color: var(--field-input-text-color,#323233);
height: 24px;
height: var(--cell-line-height,24px);
}
.van-field__input--textarea {
height: 18px;
height: var(--field-text-area-min-height,18px);
min-height: 18px;
min-height: var(--field-text-area-min-height,18px);
}
.van-field__input--error {
color: #ee0a24;
color: var(--field-input-error-text-color,#ee0a24);
}
.van-field__input--disabled {
background-color: initial;
opacity: 1;
color: #969799;
color: var(--field-input-disabled-text-color,#969799);
}
.van-field__input--center {
text-align: center;
}
.van-field__input--right {
text-align: right;
}
.van-field__placeholder {
position: absolute;
top: 0;
right: 0;
left: 0;
pointer-events: none;
color: #969799;
color: var(--field-placeholder-text-color,#969799);
}
.van-field__placeholder--error {
color: #ee0a24;
color: var(--field-error-message-color,#ee0a24);
}
.van-field__icon-root {
display: flex;
align-items: center;
min-height: 24px;
min-height: var(--cell-line-height,24px);
}
.van-field__clear-root,.van-field__icon-container {
line-height: inherit;
vertical-align: middle;
padding: 0 8px;
padding: 0 var(--padding-xs,8px);
margin-right: -8px;
margin-right: -var(--padding-xs,8px);
}
.van-field__button,.van-field__clear-root,.van-field__icon-container {
flex-shrink: 0;
}
.van-field__clear-root {
font-size: 16px;
font-size: var(--field-clear-icon-size,16px);
color: #c8c9cc;
color: var(--field-clear-icon-color,#c8c9cc);
}
.van-field__icon-container {
font-size: 16px;
font-size: var(--field-icon-size,16px);
color: #969799;
color: var(--field-icon-container-color,#969799);
}
.van-field__icon-container:empty {
display: none;
}
.van-field__button {
padding-left: 8px;
padding-left: var(--padding-xs,8px);
}
.van-field__button:empty {
display: none;
}
.van-field__error-message {
text-align: left;
font-size: 12px;
font-size: var(--field-error-message-text-font-size,12px);
color: #ee0a24;
color: var(--field-error-message-color,#ee0a24);
}
.van-field__error-message--center {
text-align: center;
}
.van-field__error-message--right {
text-align: right;
}
.van-field__word-limit {
text-align: right;
margin-top: 4px;
margin-top: var(--padding-base,4px);
color: #646566;
color: var(--field-word-limit-color,#646566);
font-size: 12px;
font-size: var(--field-word-limit-font-size,12px);
line-height: 16px;
line-height: var(--field-word-limit-line-height,16px);
}
.van-field__word-num {
display: inline;
}
.van-field__word-num--full {
color: #ee0a24;
color: var(--field-word-num-full-color,#ee0a24);
}
\ No newline at end of file \ No newline at end of file
Object.defineProperty(exports, "__esModule", {
value: !0
});
exports.commonProps = {
value: {
type: String,
observer: function(e) {
e !== this.value && (this.setData({
innerValue: e
}), this.value = e);
}
},
placeholder: String,
placeholderStyle: String,
placeholderClass: String,
disabled: Boolean,
maxlength: {
type: Number,
value: -1
},
cursorSpacing: {
type: Number,
value: 50
},
autoFocus: Boolean,
focus: Boolean,
cursor: {
type: Number,
value: -1
},
selectionStart: {
type: Number,
value: -1
},
selectionEnd: {
type: Number,
value: -1
},
adjustPosition: {
type: Boolean,
value: !0
},
holdKeyboard: Boolean
}, exports.inputProps = {
type: {
type: String,
value: "text"
},
password: Boolean,
confirmType: String,
confirmHold: Boolean
}, exports.textareaProps = {
autoHeight: Boolean,
fixed: Boolean,
showConfirmBar: {
type: Boolean,
value: !0
},
disableDefaultPadding: {
type: Boolean,
value: !0
}
};
\ No newline at end of file \ No newline at end of file
(0, require("../common/component").VantComponent)({
props: {
dot: Boolean,
info: null,
size: null,
color: String,
customStyle: String,
classPrefix: {
type: String,
value: "van-icon"
},
name: {
type: String,
observer: function(n) {
this.setData({
isImageName: -1 !== n.indexOf("/")
});
}
}
},
methods: {
onClick: function() {
this.$emit("click");
}
}
});
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {
"van-info": "../info/index",
"navigation-bar": "../../navigationBar/navigationBar",
"auth-setting": "../../authSetting/authSetting",
"share": "../../share/share"
}
}
\ No newline at end of file \ No newline at end of file
<view bind:tap="onClick" class="custom-class {{classPrefix}} {{isImageName?'van-icon--image':classPrefix+'-'+name}}" style="color: {{color}};font-size: {{utils.addUnit(size)}};{{customStyle}}">
<van-info customClass="van-icon__info" dot="{{dot}}" info="{{info}}" wx:if="{{info!==null||dot}}"></van-info>
<image class="van-icon__image" mode="aspectFit" src="{{name}}" wx:if="{{isImageName}}"></image>
</view>
<wxs module="utils" src="../wxs/utils.wxs" />
\ No newline at end of file \ No newline at end of file
(0, require("../common/component").VantComponent)({
props: {
dot: Boolean,
info: null,
customStyle: String
}
});
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {
"navigation-bar": "../../navigationBar/navigationBar",
"auth-setting": "../../authSetting/authSetting",
"share": "../../share/share"
}
}
\ No newline at end of file \ No newline at end of file
<view class="custom-class van-info {{utils.bem( 'info',{dot:dot} )}}" style="{{customStyle}}" wx:if="{{info!==null&&info!==''||dot}}">{{dot?'':info}}</view>
<wxs module="utils" src="../wxs/utils.wxs" />
\ No newline at end of file \ No newline at end of file
.van-ellipsis {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.van-multi-ellipsis--l2 {
-webkit-line-clamp: 2;
}
.van-multi-ellipsis--l2,.van-multi-ellipsis--l3 {
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
}
.van-multi-ellipsis--l3 {
-webkit-line-clamp: 3;
}
.van-clearfix:after {
display: table;
clear: both;
content: "";
}
.van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom {
position: relative;
}
.van-hairline--bottom:after,.van-hairline--left:after,.van-hairline--right:after,.van-hairline--surround:after,.van-hairline--top-bottom:after,.van-hairline--top:after,.van-hairline:after {
position: absolute;
box-sizing: border-box;
transform-origin: center;
content: " ";
pointer-events: none;
top: -50%;
right: -50%;
bottom: -50%;
left: -50%;
border: 0 solid #eee;
transform: scale(.5);
}
.van-hairline--top:after {
border-top-width: 1px;
}
.van-hairline--left:after {
border-left-width: 1px;
}
.van-hairline--right:after {
border-right-width: 1px;
}
.van-hairline--bottom:after {
border-bottom-width: 1px;
}
.van-hairline--top-bottom:after {
border-width: 1px 0;
}
.van-hairline--surround:after {
border-width: 1px;
}
.van-info {
position: absolute;
top: 0;
right: 0;
box-sizing: border-box;
white-space: nowrap;
text-align: center;
transform: translate(50%,-50%);
transform-origin: 100%;
min-width: 16px;
min-width: var(--info-size,16px);
padding: 0 3px;
padding: var(--info-padding,0 3px);
color: #fff;
color: var(--info-color,#fff);
font-weight: 500;
font-weight: var(--info-font-weight,500);
font-size: 12px;
font-size: var(--info-font-size,12px);
font-family: PingFang SC,Helvetica Neue,Arial,sans-serif;
font-family: var(--info-font-family,PingFang SC,Helvetica Neue,Arial,sans-serif);
line-height: 14px;
line-height: calc(var(--info-size, 16px) - var(--info-border-width, 1px)*2);
background-color: #ee0a24;
background-color: var(--info-background-color,#ee0a24);
border: 1px solid #fff;
border: var(--info-border-width,1px) solid var(--white,#fff);
border-radius: 16px;
border-radius: var(--info-size,16px);
}
.van-info--dot {
min-width: 0;
border-radius: 100%;
width: 8px;
width: var(--info-dot-size,8px);
height: 8px;
height: var(--info-dot-size,8px);
background-color: #ee0a24;
background-color: var(--info-dot-color,#ee0a24);
}
\ No newline at end of file \ No newline at end of file
(0, require("../common/component").VantComponent)({
props: {
color: String,
vertical: Boolean,
type: {
type: String,
value: "circular"
},
size: String,
textSize: String
}
});
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {
"navigation-bar": "../../navigationBar/navigationBar",
"auth-setting": "../../authSetting/authSetting",
"share": "../../share/share"
}
}
\ No newline at end of file \ No newline at end of file
<view class="custom-class van-loading {{vertical?'van-loading--vertical':''}}">
<view class="van-loading__spinner van-loading__spinner--{{type}}" style="color: {{color}}; width: {{utils.addUnit(size)}}; height: {{utils.addUnit(size)}}">
<view class="van-loading__dot" wx:if="{{type==='spinner'}}" wx:for="item in 12" wx:key="index"></view>
</view>
<view class="van-loading__text" style="font-size: {{utils.addUnit(textSize)}};">
<slot></slot>
</view>
</view>
<wxs module="utils" src="../wxs/utils.wxs" />
\ No newline at end of file \ No newline at end of file
.van-ellipsis {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.van-multi-ellipsis--l2 {
-webkit-line-clamp: 2;
}
.van-multi-ellipsis--l2,.van-multi-ellipsis--l3 {
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
}
.van-multi-ellipsis--l3 {
-webkit-line-clamp: 3;
}
.van-clearfix:after {
display: table;
clear: both;
content: "";
}
.van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom {
position: relative;
}
.van-hairline--bottom:after,.van-hairline--left:after,.van-hairline--right:after,.van-hairline--surround:after,.van-hairline--top-bottom:after,.van-hairline--top:after,.van-hairline:after {
position: absolute;
box-sizing: border-box;
transform-origin: center;
content: " ";
pointer-events: none;
top: -50%;
right: -50%;
bottom: -50%;
left: -50%;
border: 0 solid #eee;
transform: scale(.5);
}
.van-hairline--top:after {
border-top-width: 1px;
}
.van-hairline--left:after {
border-left-width: 1px;
}
.van-hairline--right:after {
border-right-width: 1px;
}
.van-hairline--bottom:after {
border-bottom-width: 1px;
}
.van-hairline--top-bottom:after {
border-width: 1px 0;
}
.van-hairline--surround:after {
border-width: 1px;
}
.van-loading {
display: inline-flex;
align-items: center;
justify-content: center;
color: #c8c9cc;
color: var(--loading-spinner-color,#c8c9cc);
}
.van-loading__spinner {
position: relative;
box-sizing: border-box;
width: 30px;
width: var(--loading-spinner-size,30px);
max-width: 100%;
max-height: 100%;
height: 30px;
height: var(--loading-spinner-size,30px);
animation: van-rotate .8s linear infinite;
-webkit-animation: van-rotate var(--loading-spinner-animation-duration,.8s) linear infinite;
animation: van-rotate var(--loading-spinner-animation-duration,.8s) linear infinite;
}
.van-loading__spinner--spinner {
animation-timing-function: steps(12);
}
.van-loading__spinner--circular {
border: 1px solid transparent;
border-top-color: initial;
border-radius: 100%;
}
.van-loading__text {
margin-left: 8px;
margin-left: var(--padding-xs,8px);
color: #969799;
color: var(--loading-text-color,#969799);
font-size: 14px;
font-size: var(--loading-text-font-size,14px);
line-height: 20px;
line-height: var(--loading-text-line-height,20px);
}
.van-loading__text:empty {
display: none;
}
.van-loading--vertical {
flex-direction: column;
}
.van-loading--vertical .van-loading__text {
margin: 8px 0 0;
margin: var(--padding-xs,8px) 0 0;
}
.van-loading__dot {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.van-loading__dot:before {
display: block;
width: 2px;
height: 25%;
margin: 0 auto;
background-color: currentColor;
border-radius: 40%;
content: " ";
}
.van-loading__dot:first-of-type {
transform: rotate(30deg);
opacity: 1;
}
.van-loading__dot:nth-of-type(2) {
transform: rotate(60deg);
opacity: .9375;
}
.van-loading__dot:nth-of-type(3) {
transform: rotate(90deg);
opacity: .875;
}
.van-loading__dot:nth-of-type(4) {
transform: rotate(120deg);
opacity: .8125;
}
.van-loading__dot:nth-of-type(5) {
transform: rotate(150deg);
opacity: .75;
}
.van-loading__dot:nth-of-type(6) {
transform: rotate(180deg);
opacity: .6875;
}
.van-loading__dot:nth-of-type(7) {
transform: rotate(210deg);
opacity: .625;
}
.van-loading__dot:nth-of-type(8) {
transform: rotate(240deg);
opacity: .5625;
}
.van-loading__dot:nth-of-type(9) {
transform: rotate(270deg);
opacity: .5;
}
.van-loading__dot:nth-of-type(10) {
transform: rotate(300deg);
opacity: .4375;
}
.van-loading__dot:nth-of-type(11) {
transform: rotate(330deg);
opacity: .375;
}
.van-loading__dot:nth-of-type(12) {
transform: rotate(1turn);
opacity: .3125;
}
@-webkit-keyframes van-rotate {
0% {
transform: rotate(0deg);
}
to {
transform: rotate(1turn);
}
}
@keyframes van-rotate {
0% {
transform: rotate(0deg);
}
to {
transform: rotate(1turn);
}
}
\ No newline at end of file \ No newline at end of file
images/buy.png

613 Bytes

images/order.png

369 Bytes

No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
This diff is collapsed. Click to expand it.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!