完善商品分类及商品管理
This commit is contained in:
@ -177,6 +177,7 @@ exports.default = void 0;
|
||||
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
|
||||
var _vuex = __webpack_require__(/*! vuex */ 33);
|
||||
var _app = __webpack_require__(/*! @/api/app */ 50);
|
||||
var _user = __webpack_require__(/*! @/api/user */ 34);
|
||||
var _store = __webpack_require__(/*! @/api/store */ 40);
|
||||
var _tools = __webpack_require__(/*! @/utils/tools */ 41);
|
||||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
||||
@ -187,28 +188,67 @@ var _default = {
|
||||
list: [{
|
||||
image: "http://jianbing-media.stnav.com/frontend/img/banner.png",
|
||||
title: "昨夜星辰昨夜风,画楼西畔桂堂东"
|
||||
}]
|
||||
}],
|
||||
userAddress: '',
|
||||
addressId: 0
|
||||
};
|
||||
},
|
||||
onLoad: function onLoad() {
|
||||
var _this = this;
|
||||
(0, _tools.setTabbar)();
|
||||
this.getUserAddress();
|
||||
|
||||
//更改收货地址
|
||||
uni.$on('selectaddress', function (params) {
|
||||
_this.addressId = params.id;
|
||||
_this.updateUserAddress();
|
||||
});
|
||||
},
|
||||
onShow: function onShow() {},
|
||||
methods: {
|
||||
// 选择门店
|
||||
chooseStore: function chooseStore() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/store/choose_store'
|
||||
onShow: function onShow() {
|
||||
this.getUser();
|
||||
this.getCartNum();
|
||||
},
|
||||
onUnload: function onUnload() {
|
||||
// 取消全局监听
|
||||
uni.$off(['selectaddress']);
|
||||
},
|
||||
methods: _objectSpread(_objectSpread({}, (0, _vuex.mapActions)(['getCartNum', 'getUser'])), {}, {
|
||||
// 获取默认物流地址
|
||||
getUserAddress: function getUserAddress() {
|
||||
var _this2 = this;
|
||||
(0, _user.getDefaultAddress)().then(function (res) {
|
||||
if (res.code == 1) {
|
||||
var _res$data = res.data,
|
||||
id = _res$data.id,
|
||||
province = _res$data.province,
|
||||
city = _res$data.city,
|
||||
district = _res$data.district,
|
||||
address = _res$data.address;
|
||||
_this2.userAddress = "".concat(province, " ").concat(city, " ").concat(district, " ").concat(address);
|
||||
_this2.addressId = id;
|
||||
}
|
||||
});
|
||||
},
|
||||
// 选择收货地址
|
||||
chooseAddress: function chooseAddress() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/store/choose_store'
|
||||
// 用户切换物流地址
|
||||
updateUserAddress: function updateUserAddress() {
|
||||
var _this3 = this;
|
||||
(0, _user.getOneAddress)(this.addressId).then(function (res) {
|
||||
if (res.code == 1) {
|
||||
var _res$data2 = res.data,
|
||||
id = _res$data2.id,
|
||||
province = _res$data2.province,
|
||||
city = _res$data2.city,
|
||||
district = _res$data2.district,
|
||||
address = _res$data2.address;
|
||||
_this3.userAddress = "".concat(province, " ").concat(city, " ").concat(district, " ").concat(address);
|
||||
_this3.addressId = id;
|
||||
}
|
||||
});
|
||||
},
|
||||
// 立即下单
|
||||
buy: function buy() {
|
||||
console.log(this.$buyType);
|
||||
this.$buyType = 1;
|
||||
uni.navigateTo({
|
||||
url: '/pages/store/store'
|
||||
});
|
||||
@ -219,7 +259,7 @@ var _default = {
|
||||
url: '/pages/signin/signin'
|
||||
});
|
||||
}
|
||||
},
|
||||
}),
|
||||
computed: _objectSpread(_objectSpread({}, (0, _vuex.mapGetters)(['cartNum', 'userInfo', 'inviteCode', 'appConfig', 'cityInfo'])), {}, {
|
||||
statusBar: function statusBar() {
|
||||
return uni.getSystemInfoSync().statusBarHeight + 10;
|
||||
|
||||
@ -1 +1 @@
|
||||
<view class="content"><view class="store u-flex u-row-between u-p-32"><view><view data-event-opts="{{[['tap',[['chooseStore',['$event']]]]]}}" class="lg bold-600 u-flex" bindtap="__e">MEET轻食店<u-icon class="right-icon" vue-id="8dd740cc-1" name="arrow-right" size="28" bind:__l="__l"></u-icon></view><view data-event-opts="{{[['tap',[['chooseAddress',['$event']]]]]}}" class="u-flex u-m-t-8" bindtap="__e"><u-icon vue-id="8dd740cc-2" name="map" size="32" bind:__l="__l"></u-icon>请选择收货地址</view></view><view><u-button vue-id="8dd740cc-3" shape="circle" hair-line="{{false}}" hover-class="none" customStyle="{{({backgroundColor:themeColor,color:'#fff',border:'none',padding:'36rpx'})}}" data-event-opts="{{[['^click',[['signin']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">签到</u-button></view></view><view class="swiper u-relative"><u-swiper vue-id="8dd740cc-4" height="524" list="{{list}}" border-radius="0" bind:__l="__l"></u-swiper><view class="balance bg-white u-flex"><view class="u-flex u-row-center"><u-image vue-id="8dd740cc-5" src="{{cloudPath+'img/icon_balance.png'}}" width="52" height="52" bind:__l="__l"></u-image><view class="u-m-l-60 u-text-center"><view class="nr">{{userInfo.user_money||0.00}}</view><view class="text-default xs">余额</view></view></view><view class="u-flex u-row-center"><u-image vue-id="8dd740cc-6" src="{{cloudPath+'img/icon_points.png'}}" width="52" height="52" bind:__l="__l"></u-image><view class="u-m-l-60 u-text-center"><view class="nr">{{userInfo.user_integral||0}}</view><view class="text-default xs">积分</view></view></view><view class="u-flex u-row-center"><u-image vue-id="8dd740cc-7" src="{{cloudPath+'img/icon_coupon.png'}}" width="52" height="52" bind:__l="__l"></u-image><view class="u-m-l-60 u-text-center"><view class="nr">{{userInfo.coupon||0}}</view><view class="text-default xs u-text-center">券</view></view></view></view></view><view class="order u-flex u-row-between"><view data-event-opts="{{[['tap',[['buy',['$event']]]]]}}" class="bg-white u-text-center" bindtap="__e"><view class="text-default xxl">预约下单</view><view class="xs text-999">极速送达更便捷</view><view class="u-flex u-row-center"><u-image vue-id="8dd740cc-8" src="{{cloudPath+'img/icon_p_order.png'}}" width="132" height="132" bind:__l="__l"></u-image></view></view><view class="bg-white u-text-center"><view class="text-default xxl">现在点单</view><view class="xs text-999">下单更便捷</view><view class="u-flex u-row-center"><u-image vue-id="8dd740cc-9" src="{{cloudPath+'img/icon_order.png'}}" width="132" height="133" mode="aspectFit" bind:__l="__l"></u-image></view></view></view><view class="mx20 u-m-b-64"><u-image vue-id="8dd740cc-10" src="{{cloudPath+'img/activity.png'}}" height="264" bind:__l="__l"></u-image></view></view>
|
||||
<view class="content"><view class="store u-flex u-row-between u-p-32"><view class="flex1 u-line-1"><view class="lg bold-400 u-flex"><navigator class="u-flex" url="/pages/store/choose_store" hover-class="none">MEET轻食店<u-icon class="right-icon" vue-id="8dd740cc-1" name="arrow-right" size="28" bind:__l="__l"></u-icon></navigator></view><view class="u-m-t-8 u-line-1"><navigator class="u-flex" url="/bundle/pages/address/address?type=1" hover-class="none"><u-icon vue-id="8dd740cc-2" name="map" size="32" bind:__l="__l"></u-icon><view class="u-line-1">{{''+(userAddress||'请选择收货地址')+''}}</view></navigator></view></view><view><u-button vue-id="8dd740cc-3" shape="circle" hair-line="{{false}}" hover-class="none" customStyle="{{({backgroundColor:themeColor,color:'#fff',border:'none',padding:'36rpx'})}}" data-event-opts="{{[['^click',[['signin']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">签到</u-button></view></view><view class="swiper u-relative"><u-swiper vue-id="8dd740cc-4" height="524" list="{{list}}" border-radius="0" bind:__l="__l"></u-swiper><view class="balance bg-white u-flex"><view><navigator class="u-flex u-row-center" url="/pages/my/wallet" hover-class="none"><u-image vue-id="8dd740cc-5" src="{{cloudPath+'img/icon_balance.png'}}" width="52" height="52" bind:__l="__l"></u-image><view class="u-m-l-60 u-text-center"><view class="nr">{{userInfo.user_money||0.00}}</view><view class="text-default xs">余额</view></view></navigator></view><view><navigator class="u-flex u-row-center" url="/bundle/pages/points/points" hover-class="none"><u-image vue-id="8dd740cc-6" src="{{cloudPath+'img/icon_points.png'}}" width="52" height="52" bind:__l="__l"></u-image><view class="u-m-l-60 u-text-center"><view class="nr">{{userInfo.user_integral||0}}</view><view class="text-default xs">积分</view></view></navigator></view><view><navigator class="u-flex u-row-center" url="/bundle/pages/coupon/coupon" hover-class="none"><u-image vue-id="8dd740cc-7" src="{{cloudPath+'img/icon_coupon.png'}}" width="52" height="52" bind:__l="__l"></u-image><view class="u-m-l-60 u-text-center"><view class="nr">{{userInfo.coupon||0}}</view><view class="text-default xs u-text-center">券</view></view></navigator></view></view></view><view class="order u-flex u-row-between"><view class="bg-white u-text-center"><navigator url="/pages/store/store?type=1" hover-class="none"><view class="text-default xxl">预约下单</view><view class="xs text-999">极速送达更便捷</view><view class="u-flex u-row-center"><u-image vue-id="8dd740cc-8" src="{{cloudPath+'img/icon_p_order.png'}}" width="132" height="132" bind:__l="__l"></u-image></view></navigator></view><view class="bg-white u-text-center"><navigator url="/pages/store/store?type=2" hover-class="none"><view class="text-default xxl">现在点单</view><view class="xs text-999">下单更便捷</view><view class="u-flex u-row-center"><u-image vue-id="8dd740cc-9" src="{{cloudPath+'img/icon_order.png'}}" width="132" height="133" mode="aspectFit" bind:__l="__l"></u-image></view></navigator></view></view><view class="mx20 u-m-b-64"><u-image vue-id="8dd740cc-10" src="{{cloudPath+'img/activity.png'}}" height="264" bind:__l="__l"></u-image></view></view>
|
||||
@ -380,6 +380,36 @@ var _default = {
|
||||
}
|
||||
}, _callee4);
|
||||
}))();
|
||||
},
|
||||
// 测试账号一键登录
|
||||
testLogin: function testLogin() {
|
||||
var _this5 = this;
|
||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
||||
var _yield$accountLogin, code, data;
|
||||
return _regenerator.default.wrap(function _callee5$(_context5) {
|
||||
while (1) {
|
||||
switch (_context5.prev = _context5.next) {
|
||||
case 0:
|
||||
_context5.next = 2;
|
||||
return (0, _app.accountLogin)({
|
||||
account: '15005837859',
|
||||
password: 'wang199765',
|
||||
client: _tools.client
|
||||
});
|
||||
case 2:
|
||||
_yield$accountLogin = _context5.sent;
|
||||
code = _yield$accountLogin.code;
|
||||
data = _yield$accountLogin.data;
|
||||
if (code == 1) {
|
||||
_this5.loginHandle(data);
|
||||
}
|
||||
case 6:
|
||||
case "end":
|
||||
return _context5.stop();
|
||||
}
|
||||
}
|
||||
}, _callee5);
|
||||
}))();
|
||||
}
|
||||
}),
|
||||
computed: _objectSpread({}, (0, _vuex.mapGetters)(['appConfig']))
|
||||
|
||||
@ -1 +1 @@
|
||||
<view class="login"><view class="u-flex u-row-center logo"><u-image vue-id="35a7246c-1" src="{{cloudPath+'img/login-logo.png'}}" width="574rpx" height="432rpx" bind:__l="__l"></u-image></view><view class="u-text-center text-gray"><view>小程序需要登录注册才能使用相关功能,申请获取以下权限</view><view class="u-m-t-20">获得你的公开信息(昵称、头像、手机号码等)</view></view><view class="u-m-t-56"><view class="u-m-b-32"><u-button vue-id="35a7246c-2" hover-class="none" customStyle="{{({backgroundColor:themeColor,color:'#fff',border:'none',padding:'16rpx 0'})}}" hair-line="{{false}}" shape="circle" data-event-opts="{{[['^click',[['mpLogin']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">快捷登录</u-button></view><view><u-button vue-id="35a7246c-3" hover-class="none" customStyle="{{$root.a0}}" plain="{{true}}" hair-line="{{false}}" shape="circle" data-event-opts="{{[['^click',[['mobileLogin']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">手机号登录/注册</u-button></view></view><view class="u-m-t-32 u-flex u-row-center"><view><u-checkbox bind:input="__e" vue-id="35a7246c-4" shape="circle" active-color="{{themeColor}}" value="{{form.allow}}" data-event-opts="{{[['^input',[['__set_model',['$0','allow','$event',[]],['form']]]]]}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="sm row-start">已阅读并同意</view></u-checkbox></view><view class="u-flex protocol"><navigator style="{{'color:'+(themeColor)+';'}}" hover-class="none" url="/pages/server_explan/server_explan?type=0">《服务协议》</navigator>和<navigator style="{{'color:'+(themeColor)+';'}}" hover-class="none" url="/pages/server_explan/server_explan?type=1">《隐私政策》</navigator></view></view><mplogin bind:close="__e" bind:update="__e" bind:input="__e" vue-id="35a7246c-5" value="{{mpLoginPopup}}" data-event-opts="{{[['^close',[['e0']]],['^update',[['handleSubmitInfo']]],['^input',[['__set_model',['','mpLoginPopup','$event',[]]]]]]}}" bind:__l="__l"></mplogin><mobile-login bind:close="__e" bind:update="__e" bind:input="__e" vue-id="35a7246c-6" value="{{mobilePopup}}" data-event-opts="{{[['^close',[['e1']]],['^update',[['handleSubmitMobile']]],['^input',[['__set_model',['','mobilePopup','$event',[]]]]]]}}" bind:__l="__l"></mobile-login></view>
|
||||
<view class="login"><view class="u-flex u-row-center logo"><u-image vue-id="35a7246c-1" src="{{cloudPath+'img/login-logo.png'}}" width="574rpx" height="432rpx" bind:__l="__l"></u-image></view><view class="u-text-center text-gray"><view>小程序需要登录注册才能使用相关功能,申请获取以下权限</view><view class="u-m-t-20">获得你的公开信息(昵称、头像、手机号码等)</view></view><view class="u-m-t-56"><view class="u-m-b-32"><u-button vue-id="35a7246c-2" hover-class="none" customStyle="{{({backgroundColor:themeColor,color:'#fff',border:'none',padding:'16rpx 0'})}}" hair-line="{{false}}" shape="circle" data-event-opts="{{[['^click',[['mpLogin']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">快捷登录</u-button></view><view><u-button vue-id="35a7246c-3" hover-class="none" customStyle="{{$root.a0}}" plain="{{true}}" hair-line="{{false}}" shape="circle" data-event-opts="{{[['^click',[['mobileLogin']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">手机号登录/注册</u-button></view><u-button vue-id="35a7246c-4" hover-class="none" customStyle="{{({backgroundColor:themeColor,color:'#fff',border:'none',padding:'16rpx 0'})}}" hair-line="{{false}}" shape="circle" data-event-opts="{{[['^click',[['testLogin']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">测试账号一键登录</u-button></view><view class="u-m-t-32 u-flex u-row-center"><view><u-checkbox bind:input="__e" vue-id="35a7246c-5" shape="circle" active-color="{{themeColor}}" value="{{form.allow}}" data-event-opts="{{[['^input',[['__set_model',['$0','allow','$event',[]],['form']]]]]}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="sm row-start">已阅读并同意</view></u-checkbox></view><view class="u-flex protocol"><navigator style="{{'color:'+(themeColor)+';'}}" hover-class="none" url="/pages/server_explan/server_explan?type=0">《服务协议》</navigator>和<navigator style="{{'color:'+(themeColor)+';'}}" hover-class="none" url="/pages/server_explan/server_explan?type=1">《隐私政策》</navigator></view></view><mplogin bind:close="__e" bind:update="__e" bind:input="__e" vue-id="35a7246c-6" value="{{mpLoginPopup}}" data-event-opts="{{[['^close',[['e0']]],['^update',[['handleSubmitInfo']]],['^input',[['__set_model',['','mpLoginPopup','$event',[]]]]]]}}" bind:__l="__l"></mplogin><mobile-login bind:close="__e" bind:update="__e" bind:input="__e" vue-id="35a7246c-7" value="{{mobilePopup}}" data-event-opts="{{[['^close',[['e1']]],['^update',[['handleSubmitMobile']]],['^input',[['__set_model',['','mobilePopup','$event',[]]]]]]}}" bind:__l="__l"></mobile-login></view>
|
||||
@ -1 +1 @@
|
||||
<view class="my u-relative"><view class="my-bg"><view class="u-text-center text-fff lg" style="{{'padding-top:'+(statusBar+'px')+';'}}">我的</view><view class="u-p-t-60 px32 text-fff"><navigator class="row-between" url="{{isLogin?'/pages/my/profile':'/pages/login/login'}}" hover-class="none"><view><block wx:if="{{isLogin}}"><view class="row u-col-top"><view><u-avatar vue-id="704e9d00-1" src="{{userInfo.avatar?userInfo.avatar:cloudPath+'img/icon_avatar_empty2.png'}}" size="112" bind:__l="__l"></u-avatar></view><view class="u-m-l-32 nr u-m-10"><view>{{userInfo.nickname}}</view><view class="u-m-t-16">{{userInfo.mobile||userInfo.sn}}</view></view></view></block><block wx:if="{{!isLogin}}"><view class="row u-col-top"><view><u-avatar vue-id="704e9d00-2" src="{{cloudPath+'img/icon_avatar_empty2.png'}}" size="112" bind:__l="__l"></u-avatar></view><view class="u-m-l-32 nr u-m-10"><view>点击登录</view><view class="u-m-t-16">登录体验更多功能</view></view></view></block></view><view><u-icon vue-id="704e9d00-3" name="arrow-right" size="40" color="#fff" bind:__l="__l"></u-icon></view></navigator></view></view><view class="block px32"><view class="bg-white u-m-t-34 balance row-between br16 u-p-l-22 u-p-r-22 box-shadown"><view data-event-opts="{{[['tap',[['toWallet',['$event']]]]]}}" class="u-flex u-row-center" bindtap="__e"><u-image vue-id="704e9d00-4" src="{{cloudPath+'img/icon_balance.png'}}" width="52" height="52" bind:__l="__l"></u-image><view class="u-m-l-60 u-text-center"><view class="nr">{{userInfo.user_money||0.00}}</view><view class="xs">余额</view></view></view><view><u-line class="u-line" vue-id="704e9d00-5" direction="col" length="47" bind:__l="__l"></u-line></view><view class="u-flex u-row-center"><u-image vue-id="704e9d00-6" src="{{cloudPath+'img/icon_points.png'}}" width="52" height="52" bind:__l="__l"></u-image><view class="u-m-l-60 u-text-center"><view class="nr">{{userInfo.user_integral||0}}</view><view class="xs">积分</view></view></view><view><u-line class="u-line" vue-id="704e9d00-7" direction="col" length="47" bind:__l="__l"></u-line></view><view class="u-flex u-row-center"><u-image vue-id="704e9d00-8" src="{{cloudPath+'img/icon_coupon.png'}}" width="52" height="52" bind:__l="__l"></u-image><view class="u-m-l-60 u-text-center"><view class="nr">{{userInfo.coupon||0}}</view><view class="xs u-text-center">券</view></view></view></view><view class="bg-white u-m-t-32 service br16 u-p-t-32 u-p-l-22 u-p-r-22 box-shadown"><view class="nr bold-600">服务功能</view><view><u-grid vue-id="704e9d00-9" col="{{4}}" border="{{false}}" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{menuList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><u-grid-item bind:click="__e" vue-id="{{('704e9d00-10-'+index)+','+('704e9d00-9')}}" data-event-opts="{{[['^click',[['tapMenu',['$0'],[[['menuList','',index]]]]]]]}}" bind:__l="__l" vue-slots="{{['default']}}"><u-image vue-id="{{('704e9d00-11-'+index)+','+('704e9d00-10-'+index)}}" src="{{item.image}}" width="64" height="64" bind:__l="__l"></u-image><view class="grid-text mt10">{{item.name}}</view></u-grid-item></block></u-grid></view></view><view class="br16 u-m-t-32"><u-image vue-id="704e9d00-12" src="{{cloudPath+'img/activity.png'}}" height="264" bind:__l="__l"></u-image></view></view></view>
|
||||
<view class="my u-relative"><view class="my-bg"><view class="u-text-center text-fff lg" style="{{'padding-top:'+(statusBar+'px')+';'}}">我的</view><view class="u-p-t-60 px32 text-fff"><navigator class="row-between" url="{{isLogin?'/pages/my/profile':'/pages/login/login'}}" hover-class="none"><view><block wx:if="{{isLogin}}"><view class="row u-col-top"><view><u-avatar vue-id="704e9d00-1" src="{{userInfo.avatar?userInfo.avatar:cloudPath+'img/icon_avatar_empty2.png'}}" size="112" bind:__l="__l"></u-avatar></view><view class="u-m-l-32 nr u-m-10"><view>{{userInfo.nickname}}</view><view class="u-m-t-16">{{userInfo.mobile||userInfo.sn}}</view></view></view></block><block wx:if="{{!isLogin}}"><view class="row u-col-top"><view><u-avatar vue-id="704e9d00-2" src="{{cloudPath+'img/icon_avatar_empty2.png'}}" size="112" bind:__l="__l"></u-avatar></view><view class="u-m-l-32 nr u-m-10"><view>点击登录</view><view class="u-m-t-16">登录体验更多功能</view></view></view></block></view><view><u-icon vue-id="704e9d00-3" name="arrow-right" size="40" color="#fff" bind:__l="__l"></u-icon></view></navigator></view></view><view class="block px32"><view class="bg-white u-m-t-34 balance row-between br16 u-p-l-22 u-p-r-22 box-shadown"><view><navigator class="u-flex u-row-center" url="/pages/my/wallet" hover-class="none"><u-image vue-id="704e9d00-4" src="{{cloudPath+'img/icon_balance.png'}}" width="52" height="52" bind:__l="__l"></u-image><view class="u-m-l-60 u-text-center"><view class="nr">{{userInfo.user_money||0.00}}</view><view class="text-default xs">余额</view></view></navigator></view><view><u-line class="u-line" vue-id="704e9d00-5" direction="col" length="47" bind:__l="__l"></u-line></view><view><navigator class="u-flex u-row-center" url="/bundle/pages/points/points" hover-class="none"><u-image vue-id="704e9d00-6" src="{{cloudPath+'img/icon_points.png'}}" width="52" height="52" bind:__l="__l"></u-image><view class="u-m-l-60 u-text-center"><view class="nr">{{userInfo.user_integral||0}}</view><view class="text-default xs">积分</view></view></navigator></view><view><u-line class="u-line" vue-id="704e9d00-7" direction="col" length="47" bind:__l="__l"></u-line></view><view><navigator class="u-flex u-row-center" url="/bundle/pages/coupon/coupon" hover-class="none"><u-image vue-id="704e9d00-8" src="{{cloudPath+'img/icon_coupon.png'}}" width="52" height="52" bind:__l="__l"></u-image><view class="u-m-l-60 u-text-center"><view class="nr">{{userInfo.coupon||0}}</view><view class="text-default xs u-text-center">券</view></view></navigator></view></view><view class="bg-white u-m-t-32 service br16 u-p-t-32 u-p-l-22 u-p-r-22 box-shadown"><view class="nr bold-600">服务功能</view><view><u-grid vue-id="704e9d00-9" col="{{4}}" border="{{false}}" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{menuList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><u-grid-item bind:click="__e" vue-id="{{('704e9d00-10-'+index)+','+('704e9d00-9')}}" data-event-opts="{{[['^click',[['tapMenu',['$0'],[[['menuList','',index]]]]]]]}}" bind:__l="__l" vue-slots="{{['default']}}"><u-image vue-id="{{('704e9d00-11-'+index)+','+('704e9d00-10-'+index)}}" src="{{item.image}}" width="64" height="64" bind:__l="__l"></u-image><view class="grid-text mt10">{{item.name}}</view></u-grid-item></block></u-grid></view></view><view class="br16 u-m-t-32"><u-image vue-id="704e9d00-12" src="{{cloudPath+'img/activity.png'}}" height="264" bind:__l="__l"></u-image></view></view></view>
|
||||
@ -1 +1 @@
|
||||
<view class="content"><view><navigator class="header" hover-class="none" url="/pages/goods_search/goods_search"><u-search vue-id="2553bd08-1" placeholder="请输入商品名" disabled="{{true}}" bind:__l="__l"></u-search></navigator></view><view><view class="store u-flex u-row-between u-p-32"><view><view data-event-opts="{{[['tap',[['chooseStore',['$event']]]]]}}" class="lg bold-600 u-flex" bindtap="__e">MEET轻食店<u-icon class="right-icon" vue-id="2553bd08-2" name="arrow-right" size="28" bind:__l="__l"></u-icon></view><view data-event-opts="{{[['tap',[['chooseAddress',['$event']]]]]}}" class="u-flex u-m-t-8" bindtap="__e"><u-icon vue-id="2553bd08-3" name="map" size="32" bind:__l="__l"></u-icon>请选择收货地址</view></view><view><u-button vue-id="2553bd08-4" shape="circle" hair-line="{{false}}" hover-class="none" customStyle="{{({backgroundColor:themeColor,color:'#fff',border:'none',padding:'36rpx'})}}" data-event-opts="{{[['^click',[['signin']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">自取</u-button></view></view><cate-one vue-id="2553bd08-5" list="{{cateList}}" bind:__l="__l"></cate-one></view></view>
|
||||
<view class="content"><view><navigator class="header" hover-class="none" url="/pages/goods_search/goods_search"><u-search vue-id="2553bd08-1" placeholder="请输入商品名" disabled="{{true}}" bind:__l="__l"></u-search></navigator></view><view><view class="store u-flex u-row-between u-p-32"><view><view data-event-opts="{{[['tap',[['chooseStore',['$event']]]]]}}" class="lg bold-400 u-flex" bindtap="__e">MEET轻食店<u-icon class="right-icon u-m-l-4" vue-id="2553bd08-2" name="arrow-right" size="28" bind:__l="__l"></u-icon></view><view data-event-opts="{{[['tap',[['chooseAddress',['$event']]]]]}}" class="u-flex u-m-t-8" bindtap="__e"><u-icon vue-id="2553bd08-3" name="map" size="32" bind:__l="__l"></u-icon>门店地址</view></view><view><u-button vue-id="2553bd08-4" shape="circle" hair-line="{{false}}" hover-class="none" customStyle="{{({backgroundColor:themeColor,color:'#fff',border:'none',padding:'36rpx'})}}" data-event-opts="{{[['^click',[['signin']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">自取</u-button></view></view><cate-one vue-id="2553bd08-5" list="{{cateList}}" bind:__l="__l"></cate-one></view></view>
|
||||
@ -17,8 +17,4 @@
|
||||
background-color: #FFFAFB;
|
||||
height: 108rpx;
|
||||
}
|
||||
.store .right-icon {
|
||||
font-weight: bold;
|
||||
margin-left: 4rpx;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user