完善本地生活购物车
This commit is contained in:
parent
9f0244fbf5
commit
88d3dc1263
@ -64,4 +64,19 @@ export function payTest(data) {
|
||||
return request.post("abutment/payTest", data)
|
||||
}
|
||||
|
||||
export function delLocalGoods(params) {
|
||||
return request.post("LocalStoreGoods/delGoods", params)
|
||||
}
|
||||
|
||||
export function getLocalGoodsList(params) {
|
||||
return request.get('LocalStoreGoods/lists', {params})
|
||||
}
|
||||
|
||||
export function addCart(data) {
|
||||
return request.post("LocalStoreGoods/addCart", data)
|
||||
}
|
||||
|
||||
export function cartNum(data) {
|
||||
return request.post("LocalStoreGoods/num", data)
|
||||
}
|
||||
|
||||
|
||||
@ -95,33 +95,18 @@
|
||||
</u-field>
|
||||
</view>
|
||||
|
||||
<!-- <view class="form-item open-shop">
|
||||
<view class="form-item open-shop" v-if="scheme.store_type_status == 1">
|
||||
<u-checkbox @change="changeOpenShop" v-model="open_shop" shape="circle">
|
||||
<text style="font-size: 28rpx;">是否开店</text>
|
||||
</u-checkbox>
|
||||
|
||||
<view v-if="open_shop" class="open-category m-t-20">
|
||||
<view class="open-item active">
|
||||
<view>分类一</view>
|
||||
<view>¥100</view>
|
||||
</view>
|
||||
|
||||
<view class="open-item">
|
||||
<view>分类一</view>
|
||||
<view>¥100</view>
|
||||
</view>
|
||||
|
||||
<view class="open-item">
|
||||
<view>分类一</view>
|
||||
<view>¥100</view>
|
||||
</view>
|
||||
|
||||
<view class="open-item">
|
||||
<view>分类一</view>
|
||||
<view>¥100</view>
|
||||
<view v-if="open_shop && scheme.sort_type.length > 0" class="open-category m-t-20">
|
||||
<view v-for="(item, index) in scheme.sort_type" @click="selectSortType(index)" :key="index" :class="'open-item ' + ((selectIndex == index ) ? 'active': '') + ' '">
|
||||
<view>{{item.title}}</view>
|
||||
<view>¥{{item.money}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
|
||||
<view class="form-item">
|
||||
<u-field v-model="reason" :label-width="150" type="textarea" label="申请原因:"
|
||||
@ -311,7 +296,6 @@
|
||||
</u-select>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@ -322,7 +306,8 @@
|
||||
getSuperiorInfo,
|
||||
getDistribution,
|
||||
veryfiyDistribute,
|
||||
makeMyWxImage
|
||||
makeMyWxImage,
|
||||
getScheme
|
||||
} from "@/api/user";
|
||||
import area from '@/utils/area'
|
||||
import {
|
||||
@ -373,9 +358,13 @@
|
||||
fileList: [],
|
||||
wxImage: '',
|
||||
open_shop: false, //是否开店
|
||||
selectIndex: -1,
|
||||
scheme: []
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
// 获取店铺类型及合作方案
|
||||
this.getSchemeFun()
|
||||
// 获取上级及个人信息
|
||||
this.getSuperiorInfoFun()
|
||||
// 判断是否是分销会员
|
||||
@ -577,6 +566,14 @@
|
||||
changeOpenShop(e) {
|
||||
this.open_shop = e.value
|
||||
},
|
||||
|
||||
async getSchemeFun() {
|
||||
const {code, data} = await getScheme()
|
||||
if (code == 1) {
|
||||
this.scheme = data
|
||||
console.log(this.scheme)
|
||||
}
|
||||
},
|
||||
|
||||
async formSubmit() {
|
||||
let {
|
||||
@ -776,6 +773,10 @@
|
||||
new Date().getTime(),
|
||||
path: '/pages/index/index?invite_code=' + this.userInfo.procurement.distribution_code
|
||||
}
|
||||
},
|
||||
|
||||
selectSortType(i) {
|
||||
this.selectIndex = i
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
||||
@ -1282,7 +1282,7 @@
|
||||
"navigationBarTitleText": "店铺详情"
|
||||
},
|
||||
"meta": {
|
||||
"auth": true
|
||||
"auth": false
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user