Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
王文桦
/
sxBusinessMp
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit dc57f320
authored
Aug 03, 2020
by
wwh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
1 parent
344d003c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
32 deletions
src/components/common/action_bar.wpy
src/components/goods/item.wpy
src/components/zanui/expand-tab.wpy
src/pages/goods/list.wpy
src/components/common/action_bar.wpy
View file @
dc57f32
...
@@ -42,33 +42,27 @@
...
@@ -42,33 +42,27 @@
};
};
methods = {
methods = {
tap(e) {
tap(e) {
let openid = wx.getStorageSync('openid'),formid = e.detail.formId;
//
let openid = wx.getStorageSync('openid'),formid = e.detail.formId;
let mtoken = wx.getStorageSync('mtoken');
//
let mtoken = wx.getStorageSync('mtoken');
Open.sendFormid({
//
Open.sendFormid({
btoken: 'LESTORE_BUSINESS_LITE',
//
btoken: 'LESTORE_BUSINESS_LITE',
mtoken: 'LESTORE_BUSINESS_LITE',
//
mtoken: 'LESTORE_BUSINESS_LITE',
utoken: mtoken,
//
utoken: mtoken,
form_id: formid,
//
form_id: formid,
openid: openid
//
openid: openid
}).then(res => {})
//
}).then(res => {})
this.$emit('tap');
this.$emit('tap');
},
},
back(e) {
back(e) {
if(this.cancelText == '我要选货'){
// let openid = wx.getStorageSync('openid'),formid = e.detail.formId;
// let mtoken = wx.getStorageSync('mtoken');
this.$emit('choose');
// Open.sendFormid({
console.log('choose')
// btoken: 'LESTORE_BUSINESS_LITE',
return;
// mtoken: 'LESTORE_BUSINESS_LITE',
};
// utoken: mtoken,
let openid = wx.getStorageSync('openid'),formid = e.detail.formId;
// form_id: formid,
let mtoken = wx.getStorageSync('mtoken');
// openid: openid
Open.sendFormid({
// }).then(res => {})
btoken: 'LESTORE_BUSINESS_LITE',
mtoken: 'LESTORE_BUSINESS_LITE',
utoken: mtoken,
form_id: formid,
openid: openid
}).then(res => {})
wepy.navigateBack();
wepy.navigateBack();
}
}
}
}
...
...
src/components/goods/item.wpy
View file @
dc57f32
...
@@ -23,18 +23,18 @@
...
@@ -23,18 +23,18 @@
<text class="muted mr20 xs">销量:{{item.real_sales}}</text>
<text class="muted mr20 xs">销量:{{item.real_sales}}</text>
<view class="opration" @tap.stop="operation({{index}})">操作</view>
<view class="opration" @tap.stop="operation({{index}})">操作</view>
<view class="opration-detail" wx:if="{{item.checked}}">
<view class="opration-detail" wx:if="{{item.checked}}">
<view class="opration-item"
style="margin-right: 42rpx"
@tap="upDownGoods({{item.product_uuid}},'down',{{index}})">
<view class="opration-item" @tap="upDownGoods({{item.product_uuid}},'down',{{index}})">
<image src="http://static.ledouya.com/FtJ3ABXHZ8N1a9amE3vfWrQ4WwBH"></image>
<image src="http://static.ledouya.com/FtJ3ABXHZ8N1a9amE3vfWrQ4WwBH"></image>
<view>下架</view>
<view>下架</view>
</view>
</view>
<view class="opration-item" style="margin-right: 42rpx" @tap='del({{item.product_uuid}},{{index}})'>
<
!-- <
view class="opration-item" style="margin-right: 42rpx" @tap='del({{item.product_uuid}},{{index}})'>
<image src="http://static.ledouya.com/FvkN3sG_QEAatg_FgUPQp_dCuzU7"></image>
<image src="http://static.ledouya.com/FvkN3sG_QEAatg_FgUPQp_dCuzU7"></image>
<view>删除</view>
<view>删除</view>
</view>
</view>
<view class="opration-item" @tap='openPoster({{item.product_uuid}},{{item.price_current}},{{item.price_original}},{{index}})'>
<view class="opration-item" @tap='openPoster({{item.product_uuid}},{{item.price_current}},{{item.price_original}},{{index}})'>
<image src="http://static.ledouya.com/Fl7lTQUKWQV1eCJcZ6M9dYtJS9zI"></image>
<image src="http://static.ledouya.com/Fl7lTQUKWQV1eCJcZ6M9dYtJS9zI"></image>
<view>推广</view>
<view>推广</view>
</view>
</view>
-->
</view>
</view>
<view class="opration-right" wx:if="{{item.checked}}"></view>
<view class="opration-right" wx:if="{{item.checked}}"></view>
</view>
</view>
...
@@ -224,7 +224,8 @@
...
@@ -224,7 +224,8 @@
color: #1795DB;
color: #1795DB;
}
}
.opration-detail {
.opration-detail {
width:465rpx;
// width:465rpx;
width:160rpx;
height:78rpx;
height:78rpx;
background:rgba(26,42,50,1);
background:rgba(26,42,50,1);
border-radius:8rpx;
border-radius:8rpx;
...
...
src/components/zanui/expand-tab.wpy
View file @
dc57f32
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<text>{{item.title}}</text>
<text>{{item.title}}</text>
</view>
</view>
</view>
</view>
<view
<
!-- <
view
class="zan-tab__expand zan-tab__item {{tab.selectedId == 'EXPAND' ? 'zan-tab__item--selected' : ''}}"
class="zan-tab__expand zan-tab__item {{tab.selectedId == 'EXPAND' ? 'zan-tab__item--selected' : ''}}"
data-component-id="EXPAND"
data-component-id="EXPAND"
data-item-id="EXPAND"
data-item-id="EXPAND"
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<text class="ml10">{{expandText}}</text>
<text class="ml10">{{expandText}}</text>
</view>
</view>
</view>
</view>
</view>
</view>
-->
</view>
</view>
</view>
</view>
</template>
</template>
...
...
src/pages/goods/list.wpy
View file @
dc57f32
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
</view>
</view>
<SpreadPoster :posterFlag.sync='posterFlag' :picture.sync='picture'></SpreadPoster>
<SpreadPoster :posterFlag.sync='posterFlag' :picture.sync='picture'></SpreadPoster>
<!--操作栏-->
<!--操作栏-->
<ActionBar
@tap.user="add" okText="新增商品" cancelText="我要选货
" />
<ActionBar
@tap.user='choose' okText="我要选货" cancelText="取消
" />
</view>
</view>
<view class="container" wx:if="{{industryId == 2}}">
<view class="container" wx:if="{{industryId == 2}}">
<!--TAB 页-->
<!--TAB 页-->
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
</view>
</view>
<SpreadPoster :posterFlag.sync='posterFlag' @childFn.user='parentFn'></SpreadPoster>
<SpreadPoster :posterFlag.sync='posterFlag' @childFn.user='parentFn'></SpreadPoster>
<!--操作栏-->
<!--操作栏-->
<
ActionBar @tap.user="add" @choose.user='choose' okText="新增商品" cancelText="我要选货" /
>
<
!-- <ActionBar @tap.user="add" @choose.user='choose' okText="新增商品" cancelText="我要选货" /> --
>
</view>
</view>
</view>
</view>
</template>
</template>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment