forked from angelo/web-retail-h5
Compare commits
10 Commits
3e3399c1ed
...
1fccecc01b
| Author | SHA1 | Date |
|---|---|---|
|
|
1fccecc01b | |
|
|
461f2150a1 | |
|
|
613030787a | |
|
|
d7d7369aee | |
|
|
f669985619 | |
|
|
e778f671ca | |
|
|
7b52076c44 | |
|
|
51379fe674 | |
|
|
07392e129e | |
|
|
41e3f87453 |
|
|
@ -28,7 +28,11 @@
|
||||||
</view>
|
</view>
|
||||||
<!-- 复购 -->
|
<!-- 复购 -->
|
||||||
|
|
||||||
<view key="repurchase" v-if="repurchaseList.length > 0" class="goods-flexs">
|
<view
|
||||||
|
key="repurchase"
|
||||||
|
v-if="repurchaseList.length > 0 && !isZeroLevel"
|
||||||
|
class="goods-flexs"
|
||||||
|
>
|
||||||
<view class="goods-view">
|
<view class="goods-view">
|
||||||
<area-product-list
|
<area-product-list
|
||||||
:list="repurchaseList"
|
:list="repurchaseList"
|
||||||
|
|
@ -75,6 +79,10 @@ export default {
|
||||||
default: 'normal', // 'normal' or 'small'
|
default: 'normal', // 'normal' or 'small'
|
||||||
validator: value => ['normal', 'small'].includes(value),
|
validator: value => ['normal', 'small'].includes(value),
|
||||||
},
|
},
|
||||||
|
userInfo: {
|
||||||
|
type: Object,
|
||||||
|
default: () => {},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
'area-product-list': areaProductList,
|
'area-product-list': areaProductList,
|
||||||
|
|
@ -95,12 +103,13 @@ export default {
|
||||||
...mapGetters(['isZeroLevel']),
|
...mapGetters(['isZeroLevel']),
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
const userInfo = uni.getStorageSync('userInfo')
|
const userInfo = uni.getStorageSync('userInfo') || this.userInfo
|
||||||
if (userInfo.memberSign != MEMBER_SIGN.ZERO_LEVEL) {
|
if (userInfo.memberSign == MEMBER_SIGN.ZERO_LEVEL) {
|
||||||
this.getAreaListById(REISSUE_AREA.id, this.rescissionList)
|
this.upgrade.name = '会员专区'
|
||||||
this.getAreaListById(REGIEST_AREA.id, this.registList)
|
|
||||||
}
|
}
|
||||||
this.getAreaListById(UPGRADE_AREA.id, this.upgradeList)
|
this.getAreaListById(UPGRADE_AREA.id, this.upgradeList)
|
||||||
|
this.getAreaListById(REISSUE_AREA.id, this.rescissionList)
|
||||||
|
this.getAreaListById(REGIEST_AREA.id, this.registList)
|
||||||
this.getAreaListById(REPURCHASE_AREA.id, this.repurchaseList)
|
this.getAreaListById(REPURCHASE_AREA.id, this.repurchaseList)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,144 @@
|
||||||
|
<template>
|
||||||
|
<view>
|
||||||
|
<u-picker
|
||||||
|
@cancel="pickershow = false"
|
||||||
|
:show="pickershow"
|
||||||
|
ref="uPicker"
|
||||||
|
:defaultIndex="defaultIndex"
|
||||||
|
:columns="columns"
|
||||||
|
@confirm="confirm"
|
||||||
|
keyName="name"
|
||||||
|
@change="changeHandler"
|
||||||
|
></u-picker>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import * as api from '@/config/goods'
|
||||||
|
import { mapGetters } from 'vuex'
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
columns: [],
|
||||||
|
pickershow: false,
|
||||||
|
diqu: '',
|
||||||
|
form: {},
|
||||||
|
defaultIndex: [],
|
||||||
|
user: '',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
props: {
|
||||||
|
defaultCode: {
|
||||||
|
type: Array,
|
||||||
|
default: () => [],
|
||||||
|
},
|
||||||
|
cityList: {
|
||||||
|
type: Array,
|
||||||
|
default: () => [],
|
||||||
|
},
|
||||||
|
provinceList: {
|
||||||
|
type: Array,
|
||||||
|
default: () => [],
|
||||||
|
},
|
||||||
|
countyList: {
|
||||||
|
type: Array,
|
||||||
|
default: () => [],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
defaultCode: {
|
||||||
|
deep: true,
|
||||||
|
handler(n) {
|
||||||
|
if (this.cityList.length > 0) {
|
||||||
|
this.getDefaultIndex(n)
|
||||||
|
} else {
|
||||||
|
this.getAllAreaList(
|
||||||
|
uni.getStorageSync('pkCountry') || this.user.pkSettleCountry
|
||||||
|
).then(res => {
|
||||||
|
if (res) {
|
||||||
|
this.getDefaultIndex(n)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
created() {},
|
||||||
|
methods: {
|
||||||
|
getDefaultIndex(province) {
|
||||||
|
const cityList = this.cityList.filter(item => item.parent === province)
|
||||||
|
const countyList = this.countyList.filter(
|
||||||
|
item => item.parent === cityList[0].pkId
|
||||||
|
)
|
||||||
|
|
||||||
|
const columns = [this.provinceList, cityList]
|
||||||
|
if (countyList.length) {
|
||||||
|
columns.push(countyList)
|
||||||
|
}
|
||||||
|
this.columns = columns
|
||||||
|
this.defaultIndex = [0, 0]
|
||||||
|
if (countyList.length) {
|
||||||
|
this.defaultIndex.push(0)
|
||||||
|
}
|
||||||
|
this.$emit('getAddressData', columns)
|
||||||
|
},
|
||||||
|
setShow(province) {
|
||||||
|
this.pickershow = true
|
||||||
|
this.getDefaultIndex(province)
|
||||||
|
},
|
||||||
|
getCityList(province) {
|
||||||
|
const cityList = this.cityList.filter(item => item.parent === province)
|
||||||
|
return cityList
|
||||||
|
},
|
||||||
|
getCountyList(city) {
|
||||||
|
const countyList = this.countyList.filter(item => item.parent === city)
|
||||||
|
return countyList
|
||||||
|
},
|
||||||
|
changeHandler(e) {
|
||||||
|
const {
|
||||||
|
columnIndex,
|
||||||
|
value,
|
||||||
|
values, // values为当前变化列的数组内容
|
||||||
|
index,
|
||||||
|
indexs,
|
||||||
|
// 微信小程序无法将picker实例传出来,只能通过ref操作
|
||||||
|
picker = this.$refs.uPicker,
|
||||||
|
} = e
|
||||||
|
// 当第一列值发生变化时,变化第二列(后一列)对应的选项
|
||||||
|
if (columnIndex === 0) {
|
||||||
|
const province = this.provinceList[index]
|
||||||
|
const cityList = this.getCityList(province.pkId)
|
||||||
|
picker.setColumnValues(1, cityList)
|
||||||
|
if (this.countyList.length) {
|
||||||
|
const city = cityList[0]
|
||||||
|
const countyList = this.getCountyList(city.pkId)
|
||||||
|
picker.setColumnValues(2, countyList)
|
||||||
|
}
|
||||||
|
// picker为选择器this实例,变化第二列对应的选项
|
||||||
|
} else if (columnIndex === 1 && this.countyList.length) {
|
||||||
|
const city = cityList[indexs[columnIndex]]
|
||||||
|
const countyList = this.getCountyList(city.pkId)
|
||||||
|
picker.setColumnValues(2, countyList)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 回调参数为包含columnIndex、value、values
|
||||||
|
confirm(e) {
|
||||||
|
this.pickershow = false
|
||||||
|
this.$emit('setAddress', e.value)
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.picker {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
width: 100%;
|
||||||
|
border-width: 0.5px !important;
|
||||||
|
border-color: #dadbde !important;
|
||||||
|
border-style: solid;
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 6px 9px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
111
config/goods.js
111
config/goods.js
|
|
@ -5,82 +5,115 @@
|
||||||
* @Date: 2022-11-23 11:10:29
|
* @Date: 2022-11-23 11:10:29
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
* @Descripttion:
|
* @Descripttion:
|
||||||
* @version:
|
* @version:
|
||||||
* @Author: kBank
|
* @Author: kBank
|
||||||
* @Date: 2022-11-23 11:10:29
|
* @Date: 2022-11-23 11:10:29
|
||||||
*/
|
*/
|
||||||
const http = uni.$u.http
|
const http = uni.$u.http
|
||||||
|
|
||||||
//商品列表
|
//商品列表
|
||||||
export const getAllGoods = (params) => http.post('/sale/api/wares/query-spe-wares', params)
|
export const getAllGoods = params =>
|
||||||
|
http.post('/sale/api/wares/query-spe-wares', params)
|
||||||
//商品详情
|
//商品详情
|
||||||
export const waresDetail = (params) => http.post('/sale/api/wares/query-spe-wares-detail', params)
|
export const waresDetail = params =>
|
||||||
|
http.post('/sale/api/retail-wares/wares-detail', params)
|
||||||
//嗨粉海粉短信
|
//嗨粉海粉短信
|
||||||
export const verification = (params) => http.get('/member/api/sms/fans-verification', { params })
|
export const verification = params =>
|
||||||
|
http.get('/member/api/sms/fans-verification', { params })
|
||||||
//嗨粉选择省市区
|
//嗨粉选择省市区
|
||||||
export const getAllAreaList = (params) => http.get('system/api/area/provinceList', { params })
|
export const getAllAreaList = params =>
|
||||||
|
http.get('system/api/area/provinceList', { params })
|
||||||
//嗨粉选择国家
|
//嗨粉选择国家
|
||||||
export const getCountry = (params) => http.get('system/api/country/list', { params })
|
export const getCountry = params =>
|
||||||
|
http.get('system/api/country/list', { params })
|
||||||
//海粉注册
|
//海粉注册
|
||||||
export const regShareMember = (params) => http.post('/member/api/member/reg-share-member', params)
|
export const regShareMember = params =>
|
||||||
|
http.post('/member/api/member/reg-share-member', params)
|
||||||
//hi粉注册
|
//hi粉注册
|
||||||
export const hiRegister = (params) => http.post('/member/api/fans/register', params)
|
export const hiRegister = params =>
|
||||||
|
http.post('/member/api/fans/register', params)
|
||||||
//幂等性
|
//幂等性
|
||||||
export const generate = (params) => http.get('/system/api/idempotent/generate', { params })
|
export const generate = params =>
|
||||||
|
http.get('/system/api/idempotent/generate', { params })
|
||||||
//发货
|
//发货
|
||||||
export const deliveryList = (params) => http.get('/system/pub/enums/delivery-list', { params })
|
export const deliveryList = params =>
|
||||||
|
http.get('/system/pub/enums/delivery-list', { params })
|
||||||
//海粉渠道
|
//海粉渠道
|
||||||
export const jxhhSource = (params) => http.get('/sale/api/t-source/list/' + params)
|
export const jxhhSource = params =>
|
||||||
|
http.get('/sale/api/t-source/list/' + params)
|
||||||
//海粉分类
|
//海粉分类
|
||||||
export const optionList = (params) => http.post('/sale/api/twares-category-category/option-list', params )
|
export const optionList = params =>
|
||||||
|
http.post('/sale/api/twares-category-category/option-list', params)
|
||||||
//海粉商品
|
//海粉商品
|
||||||
export const sharingWares = (params) => http.get('/sale/api/wares/sharing-zone-wares', { params })
|
export const sharingWares = params =>
|
||||||
|
http.get('/sale/api/wares/sharing-zone-wares', { params })
|
||||||
//分享邮费查询
|
//分享邮费查询
|
||||||
export const queryAdressPostage = (params) => http.post('/sale/api/order/self-order-postage', params)
|
export const queryAdressPostage = params =>
|
||||||
|
http.post('/sale/api/order/self-order-postage', params)
|
||||||
//嗨粉分享确认订单
|
//嗨粉分享确认订单
|
||||||
export const confirmFunShareOrder = (params) => http.post('/sale/api/order/confirm-self-fun-order', params)
|
export const confirmFunShareOrder = params =>
|
||||||
|
http.post('/sale/api/order/confirm-self-fun-order', params)
|
||||||
//海粉商品详情
|
//海粉商品详情
|
||||||
export const sharingWaresDetail = (params) => http.get('/sale/api/wares/query-spe-sharing-wares-detail', { params })
|
export const sharingWaresDetail = params =>
|
||||||
|
http.get('/sale/api/wares/query-spe-sharing-wares-detail', { params })
|
||||||
//海粉订单确认
|
//海粉订单确认
|
||||||
export const confirmShareOrder = (params) => http.post('/sale/api/order/confirm-share-order', params)
|
export const confirmShareOrder = params =>
|
||||||
|
http.post('/sale/api/order/confirm-share-order', params)
|
||||||
|
|
||||||
//获取购物车
|
//获取购物车
|
||||||
export const getShopping = (params) => http.get('/sale/api/shopping/getShopping', { params })
|
export const getShopping = params =>
|
||||||
|
http.get('/sale/api/shopping/getShopping', { params })
|
||||||
//分类列表
|
//分类列表
|
||||||
export const classifyList = (params) => http.get('/sale/api/area-classify/list', { params })
|
export const classifyList = params =>
|
||||||
|
http.get('/sale/api/area-classify/list', { params })
|
||||||
//加减购物车
|
//加减购物车
|
||||||
export const plusReduceShopping = (params) => http.post('/sale/api/shopping/plusReduceShopping', params)
|
export const plusReduceShopping = params =>
|
||||||
|
http.post('/sale/api/shopping/plusReduceShopping', params)
|
||||||
//多删购物车
|
//多删购物车
|
||||||
export const batchDelShopping = (params) => http.post('/sale/api/shopping/batchDelShopping', params)
|
export const batchDelShopping = params =>
|
||||||
|
http.post('/sale/api/shopping/batchDelShopping', params)
|
||||||
//添加购物车
|
//添加购物车
|
||||||
export const addShopping = (params) => http.post('/sale/api/shopping/addShopping', params)
|
export const addShopping = params =>
|
||||||
|
http.post('/sale/api/shopping/addShopping', params)
|
||||||
//菜单权限
|
//菜单权限
|
||||||
export const menuList = (params) => http.get('/system/api/menu/list', { params })
|
export const menuList = params => http.get('/system/api/menu/list', { params })
|
||||||
//海粉分享
|
//海粉分享
|
||||||
export const shareCode = (params) => http.get('/member/api/share/share-code-h5', { params })
|
export const shareCode = params =>
|
||||||
|
http.get('/member/api/share/share-code-h5', { params })
|
||||||
//嗨粉分享
|
//嗨粉分享
|
||||||
export const fansCode = (params) => http.get('/member/api/share/fans-code-h5', { params })
|
export const fansCode = params =>
|
||||||
|
http.get('/member/api/share/fans-code-h5', { params })
|
||||||
//获取购物车数量
|
//获取购物车数量
|
||||||
export const getShoppingCount = (params) => http.get('/sale/api/shopping/getShoppingCount', { params })
|
export const getShoppingCount = params =>
|
||||||
|
http.get('/sale/api/shopping/getShoppingCount', { params })
|
||||||
//获取购物车数小
|
//获取购物车数小
|
||||||
export const getSmallCount = (params) => http.get('/sale/api/shopping/getAreaShoppingCount', { params })
|
export const getSmallCount = params =>
|
||||||
|
http.get('/sale/api/shopping/getAreaShoppingCount', { params })
|
||||||
//获取分享前缀
|
//获取分享前缀
|
||||||
export const prefix = (params) => http.get('/member/api/member/query-country-prefix/' + params, )
|
export const prefix = params =>
|
||||||
|
http.get('/member/api/member/query-country-prefix/' + params)
|
||||||
//校验分享编号
|
//校验分享编号
|
||||||
export const validateMember = (params) => http.get('/member/api/member/validate-share-member/' + params, )
|
export const validateMember = params =>
|
||||||
|
http.get('/member/api/member/validate-share-member/' + params)
|
||||||
|
|
||||||
//获取国家
|
//获取国家
|
||||||
export const currencyList = (params) => http.get('/system/api/country/list' , {params} )
|
export const currencyList = params =>
|
||||||
|
http.get('/system/api/country/list', { params })
|
||||||
//0元注册时
|
//0元注册时
|
||||||
export const checkShare = (params) => http.get('/member/api/share/check-share-code' , {params} )
|
export const checkShare = params =>
|
||||||
|
http.get('/member/api/share/check-share-code', { params })
|
||||||
|
|
||||||
//海粉订单详情
|
//海粉订单详情
|
||||||
export const waresinfo = (params) => http.post('/sale/api/wares/query-confirm-waresinfo', params)
|
export const waresinfo = params =>
|
||||||
|
http.post('/sale/api/wares/query-confirm-waresinfo', params)
|
||||||
|
|
||||||
//hi粉确认订单
|
//hi粉确认订单
|
||||||
export const fansConfirm = (params) => http.post('/sale/api/order/fans-confirm-order', params)
|
export const fansConfirm = params =>
|
||||||
|
http.post('/sale/api/order/fans-confirm-order', params)
|
||||||
//购物车注册下单校验弹框
|
//购物车注册下单校验弹框
|
||||||
export const energyShop = (params) => http.post('/sale/api/wares/query-energy-silo', params)
|
export const energyShop = params =>
|
||||||
|
http.post('/sale/api/wares/query-energy-silo', params)
|
||||||
//hi粉确认订单
|
//hi粉确认订单
|
||||||
export const energyShopSilo = (params) => http.post('/sale/api/order/valid-silo', params)
|
export const energyShopSilo = params =>
|
||||||
|
http.post('/sale/api/order/valid-silo', params)
|
||||||
|
|
|
||||||
|
|
@ -50,3 +50,11 @@ export const validRelation = params =>
|
||||||
// 升级订单
|
// 升级订单
|
||||||
export const upgradeOrder = data =>
|
export const upgradeOrder = data =>
|
||||||
http.post('/sale/api/retail-order/confirm-upg-order', data)
|
http.post('/sale/api/retail-order/confirm-upg-order', data)
|
||||||
|
|
||||||
|
// 确认收货
|
||||||
|
export const confirmReceipt = orderCode =>
|
||||||
|
http.put(`/sale/api/my-order/confirm/${orderCode}`)
|
||||||
|
|
||||||
|
// 获取注册升级区域列表
|
||||||
|
export const getRegionAreaList = params =>
|
||||||
|
http.get('/retail-member/api/retail-member/query-region', { params })
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ export const getAllGoods = params =>
|
||||||
http.post('/sale/api/wares/query-spe-wares', params)
|
http.post('/sale/api/wares/query-spe-wares', params)
|
||||||
//商品详情
|
//商品详情
|
||||||
export const waresDetail = params =>
|
export const waresDetail = params =>
|
||||||
http.post('/sale/api/wares/query-spe-wares-detail', params)
|
http.post('/sale/api/retail-wares/wares-detail', params)
|
||||||
//获取国家
|
//获取国家
|
||||||
export const countryList = params =>
|
export const countryList = params =>
|
||||||
http.get('/system/api/country/list', { params })
|
http.get('/system/api/country/list', { params })
|
||||||
|
|
|
||||||
|
|
@ -15,12 +15,11 @@ module.exports = vm => {
|
||||||
|
|
||||||
// 初始化请求配置
|
// 初始化请求配置
|
||||||
uni.$u.http.setConfig(config => {
|
uni.$u.http.setConfig(config => {
|
||||||
// config.baseURL = 'https://p1.hzs413.com/inter-api';
|
|
||||||
// 192.168.0.100:8080
|
// 192.168.0.100:8080
|
||||||
|
|
||||||
//#ifdef DEV_SERVER
|
//#ifdef DEV_SERVER
|
||||||
console.log('DEV_SERVER')
|
console.log('DEV_SERVER')
|
||||||
config.baseURL = 'http://t-app.beida777.com/prod-api'
|
config.baseURL = 'http://t-bl.beida777.com/prod-api'
|
||||||
//#endif
|
//#endif
|
||||||
|
|
||||||
//#ifdef QA_SERVER
|
//#ifdef QA_SERVER
|
||||||
|
|
|
||||||
120
manifest.json
120
manifest.json
|
|
@ -1,34 +1,34 @@
|
||||||
{
|
{
|
||||||
"name": "retail-h5",
|
"name" : "retail-store-h5",
|
||||||
"appid": "__UNI__31B4587",
|
"appid" : "__UNI__31B4587",
|
||||||
"description": "",
|
"description" : "",
|
||||||
"versionName": "1.0.0",
|
"versionName" : "1.0.0",
|
||||||
"versionCode": "100",
|
"versionCode" : "100",
|
||||||
"transformPx": false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus": {
|
"app-plus" : {
|
||||||
"usingComponents": true,
|
"usingComponents" : true,
|
||||||
"nvueStyleCompiler": "uni-app",
|
"nvueStyleCompiler" : "uni-app",
|
||||||
"compilerVersion": 3,
|
"compilerVersion" : 3,
|
||||||
"splashscreen": {
|
"splashscreen" : {
|
||||||
"alwaysShowBeforeRender": true,
|
"alwaysShowBeforeRender" : true,
|
||||||
"waiting": true,
|
"waiting" : true,
|
||||||
"autoclose": true,
|
"autoclose" : true,
|
||||||
"delay": 0
|
"delay" : 0
|
||||||
},
|
},
|
||||||
/* 模块配置 */
|
/* 模块配置 */
|
||||||
"modules": {
|
"modules" : {
|
||||||
"Bluetooth": {},
|
"Bluetooth" : {},
|
||||||
"Barcode": {},
|
"Barcode" : {},
|
||||||
"Camera": {},
|
"Camera" : {},
|
||||||
"Fingerprint": {},
|
"Fingerprint" : {},
|
||||||
"FaceID": {}
|
"FaceID" : {}
|
||||||
},
|
},
|
||||||
/* 应用发布信息 */
|
/* 应用发布信息 */
|
||||||
"distribute": {
|
"distribute" : {
|
||||||
/* android打包配置 */
|
/* android打包配置 */
|
||||||
"android": {
|
"android" : {
|
||||||
"permissions": [
|
"permissions" : [
|
||||||
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
||||||
|
|
@ -45,62 +45,58 @@
|
||||||
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
||||||
],
|
],
|
||||||
"abiFilters": [
|
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ]
|
||||||
"armeabi-v7a",
|
|
||||||
"arm64-v8a",
|
|
||||||
"x86"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
/* ios打包配置 */
|
/* ios打包配置 */
|
||||||
"ios": {
|
"ios" : {
|
||||||
"dSYMs": false
|
"dSYMs" : false
|
||||||
},
|
},
|
||||||
/* SDK配置 */
|
/* SDK配置 */
|
||||||
"sdkConfigs": {
|
"sdkConfigs" : {
|
||||||
"push": {}
|
"push" : {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/* 快应用特有相关 */
|
/* 快应用特有相关 */
|
||||||
"quickapp": {},
|
"quickapp" : {},
|
||||||
/* 小程序特有相关 */
|
/* 小程序特有相关 */
|
||||||
"mp-weixin": {
|
"mp-weixin" : {
|
||||||
"appid": "wxe26d23c09932e93b",
|
"appid" : "wxe26d23c09932e93b",
|
||||||
"setting": {
|
"setting" : {
|
||||||
"urlCheck": false,
|
"urlCheck" : false,
|
||||||
"es6": false,
|
"es6" : false,
|
||||||
"minified": false
|
"minified" : false
|
||||||
},
|
},
|
||||||
"usingComponents": true
|
"usingComponents" : true
|
||||||
},
|
},
|
||||||
"mp-alipay": {
|
"mp-alipay" : {
|
||||||
"usingComponents": true
|
"usingComponents" : true
|
||||||
},
|
},
|
||||||
"mp-baidu": {
|
"mp-baidu" : {
|
||||||
"usingComponents": true
|
"usingComponents" : true
|
||||||
},
|
},
|
||||||
"mp-toutiao": {
|
"mp-toutiao" : {
|
||||||
"usingComponents": true
|
"usingComponents" : true
|
||||||
},
|
},
|
||||||
"uniStatistics": {
|
"uniStatistics" : {
|
||||||
"enable": false
|
"enable" : false
|
||||||
},
|
},
|
||||||
"vueVersion": "2",
|
"vueVersion" : "2",
|
||||||
"h5": {
|
"h5" : {
|
||||||
"template": "index.html",
|
"template" : "index.html",
|
||||||
"router": {
|
"router" : {
|
||||||
"mode": "hash"
|
"mode" : "hash"
|
||||||
},
|
},
|
||||||
"devServer": {
|
"devServer" : {
|
||||||
"https": false,
|
"https" : false,
|
||||||
"port": 8899,
|
"port" : 8999,
|
||||||
"proxy": {
|
"proxy" : {
|
||||||
"/prod-api": {
|
"/prod-api" : {
|
||||||
"target": "http://t-mana.beida777.com",
|
"target" : "http://t-mana.beida777.com",
|
||||||
"changeOrigin": true
|
"changeOrigin" : true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"fallbackLocale": "zh-Hans"
|
"fallbackLocale" : "zh-Hans"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -111,12 +111,8 @@ export default {
|
||||||
loading: false,
|
loading: false,
|
||||||
hasMore: true,
|
hasMore: true,
|
||||||
BONUS_FIELD_MAP: {
|
BONUS_FIELD_MAP: {
|
||||||
retailRangeIncome: '直推收益',
|
repurRangeIncome: '复购级差收益',
|
||||||
retailSameLevelIncome: '平级收益',
|
retailRangeIncome: '直推级差收益',
|
||||||
retailAreaIncome: '区域收益',
|
|
||||||
// welfareLevelGapIncome: '福利级差收益',
|
|
||||||
// welfareDividendIncome: '福利分红收益',
|
|
||||||
backPoints: '重消收益',
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,64 @@
|
||||||
|
import { getRegionAreaList } from '@/config/order.js'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
regionList: [],
|
||||||
|
provinceList: [],
|
||||||
|
cityList: [],
|
||||||
|
countyList: [],
|
||||||
|
regionCity: '',
|
||||||
|
regionProvince: '',
|
||||||
|
regionCounty: '',
|
||||||
|
gradeValue: null,
|
||||||
|
defaultRegionSelectCode: [],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {},
|
||||||
|
methods: {
|
||||||
|
getRegionAreaList(gradeValue) {
|
||||||
|
if (!gradeValue) return
|
||||||
|
this.gradeValue = gradeValue
|
||||||
|
const params = {
|
||||||
|
type: 'county',
|
||||||
|
}
|
||||||
|
getRegionAreaList(params).then(res => {
|
||||||
|
this.provinceList = res.data.filter(item => item.parent === 0)
|
||||||
|
this.cityList = res.data.filter(item =>
|
||||||
|
this.provinceList.find(province => province.pkId === item.parent)
|
||||||
|
)
|
||||||
|
this.countyList = res.data.filter(item =>
|
||||||
|
this.cityList.find(city => city.pkId === item.parent)
|
||||||
|
)
|
||||||
|
this.getProvinceFilterList()
|
||||||
|
this.getCityFilterList()
|
||||||
|
this.getCountyFilterList()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getProvinceFilterList() {
|
||||||
|
if (!this.cityList.length) {
|
||||||
|
this.provinceList = []
|
||||||
|
}
|
||||||
|
this.provinceList = this.provinceList.filter(
|
||||||
|
item => !!this.cityList.find(city => city.parent === item.pkId)
|
||||||
|
)
|
||||||
|
},
|
||||||
|
getCityFilterList() {
|
||||||
|
if (this.gradeValue === 80) return
|
||||||
|
if (!this.countyList.length) {
|
||||||
|
this.cityList = []
|
||||||
|
}
|
||||||
|
this.cityList = this.cityList.filter(
|
||||||
|
item => !!this.countyList.find(county => county.parent === item.pkId)
|
||||||
|
)
|
||||||
|
},
|
||||||
|
getCountyFilterList() {
|
||||||
|
if (!this.gradeValue || this.gradeValue === 80) {
|
||||||
|
this.countyList = []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
onShow() {
|
||||||
|
// this.getRegionAreaList()
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
@ -28,58 +28,8 @@
|
||||||
</swiper>
|
</swiper>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<special-area-wrapper size="small" />
|
<view style="padding-bottom: 140rpx">
|
||||||
<view class="goods-sort">
|
<special-area-wrapper :userInfo="userInfo" size="small" />
|
||||||
<view class="goods_content" style="padding-bottom: 130rpx">
|
|
||||||
<view
|
|
||||||
class="goods-center-lists"
|
|
||||||
v-for="item in goodsList"
|
|
||||||
:key="item.waresId"
|
|
||||||
@click="goDetails(item)"
|
|
||||||
>
|
|
||||||
<view
|
|
||||||
class="fly"
|
|
||||||
v-show="item.preSaleStatus == 3 || item.isSale == 1"
|
|
||||||
></view>
|
|
||||||
<view class="goods-flex-s">
|
|
||||||
<view class="goods-img">
|
|
||||||
<image :src="item.cover1"></image>
|
|
||||||
</view>
|
|
||||||
<view class="padding_s goods-info">
|
|
||||||
<view class="goods-name">{{ item.waresName }}</view>
|
|
||||||
<view class="goods-sales-wrapper">
|
|
||||||
<view class="goods-sales"
|
|
||||||
>累计销量{{ formatSales(item.sales) }}</view
|
|
||||||
>
|
|
||||||
<view
|
|
||||||
class="goods-price"
|
|
||||||
v-if="item.specialArea == 31 && userInfo.isMakerSpace == 1"
|
|
||||||
>
|
|
||||||
<span v-if="priceSymbolVisible" class="price-symbol">
|
|
||||||
{{ priceSymbol }}
|
|
||||||
</span>
|
|
||||||
<span>{{ formatCurrency(item.vipPrice) }}</span>
|
|
||||||
</view>
|
|
||||||
<view class="goods-price" v-if="item.specialArea != 31">
|
|
||||||
<span v-if="priceSymbolVisible" class="price-symbol">
|
|
||||||
{{ priceSymbol }}
|
|
||||||
</span>
|
|
||||||
<span>{{ formatCurrency(item.waresPrice) }}</span>
|
|
||||||
</view>
|
|
||||||
<view
|
|
||||||
class="goods-price"
|
|
||||||
v-if="item.specialArea == 31 && userInfo.isMakerSpace == 0"
|
|
||||||
>
|
|
||||||
<span v-if="priceSymbolVisible" class="price-symbol">
|
|
||||||
{{ priceSymbol }}
|
|
||||||
</span>
|
|
||||||
<span>{{ formatCurrency(item.waresPrice) }}</span>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
<cl-tabbar :current="0"></cl-tabbar>
|
<cl-tabbar :current="0"></cl-tabbar>
|
||||||
<div>
|
<div>
|
||||||
|
|
@ -98,7 +48,7 @@
|
||||||
ref="child2"
|
ref="child2"
|
||||||
@childMethodTrigger="callChildMethod"
|
@childMethodTrigger="callChildMethod"
|
||||||
></znNewsPopup>
|
></znNewsPopup>
|
||||||
<RegionSelect v-if="userInfo.memberCode != 'BF66886688'" />
|
<!-- <RegionSelect v-if="userInfo.memberCode != 'BF66886688'" /> -->
|
||||||
<!-- 直推排行弹窗
|
<!-- 直推排行弹窗
|
||||||
<directrank-popup
|
<directrank-popup
|
||||||
@callznMethodTrigger="callznMethod"
|
@callznMethodTrigger="callznMethod"
|
||||||
|
|
|
||||||
|
|
@ -22,9 +22,8 @@
|
||||||
<text class="svip-text">{{ userInfo.pkGradeVal || '-' }}</text>
|
<text class="svip-text">{{ userInfo.pkGradeVal || '-' }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="awards-container">
|
<!-- <view class="awards-container">
|
||||||
<view class="award-tag">
|
<view class="award-tag">
|
||||||
<!-- <u-icon name="star-fill" color="#FAD65A" size="14"></u-icon> -->
|
|
||||||
<text class="award-label">荣誉奖衔:</text>
|
<text class="award-label">荣誉奖衔:</text>
|
||||||
<text class="award-value">{{
|
<text class="award-value">{{
|
||||||
userInfo.pkMaxAwardsVal || userInfo.pkAwardsVal || '无'
|
userInfo.pkMaxAwardsVal || userInfo.pkAwardsVal || '无'
|
||||||
|
|
@ -32,7 +31,6 @@
|
||||||
</view>
|
</view>
|
||||||
<view style="display: flex; gap: 10rpx">
|
<view style="display: flex; gap: 10rpx">
|
||||||
<view class="award-tag">
|
<view class="award-tag">
|
||||||
<!-- <u-icon name="star-fill" color="#FAD65A" size="14"></u-icon> -->
|
|
||||||
<text class="award-label">当月奖衔:</text>
|
<text class="award-label">当月奖衔:</text>
|
||||||
<text class="award-value">{{
|
<text class="award-value">{{
|
||||||
userInfo.pkAwardsVal || '无'
|
userInfo.pkAwardsVal || '无'
|
||||||
|
|
@ -43,7 +41,7 @@
|
||||||
<text class="award-value">{{ userInfo.pkRangeAwardsVal }}</text>
|
<text class="award-value">{{ userInfo.pkRangeAwardsVal }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view
|
<view
|
||||||
|
|
@ -54,113 +52,6 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 新增信息展示 -->
|
|
||||||
<view
|
|
||||||
class="extra-info-card"
|
|
||||||
v-if="
|
|
||||||
[MEMBER_SIGN.NORMAL_LEVEL, MEMBER_SIGN.ZERO_LEVEL].includes(
|
|
||||||
Number(userInfo.memberSign)
|
|
||||||
) && isNormal
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<view
|
|
||||||
class="info-grid"
|
|
||||||
:class="{
|
|
||||||
'multiple-items': userInfo.memberSign === MEMBER_SIGN.NORMAL_LEVEL,
|
|
||||||
}"
|
|
||||||
>
|
|
||||||
<view class="info-item">
|
|
||||||
<text class="info-value">{{ userInfo.pkGradeVal || '-' }}</text>
|
|
||||||
<text class="info-label">会员等级</text>
|
|
||||||
</view>
|
|
||||||
<template v-if="userInfo.memberSign === MEMBER_SIGN.NORMAL_LEVEL">
|
|
||||||
<view class="info-item">
|
|
||||||
<text class="info-value">{{ totalBox || '0' }}</text>
|
|
||||||
<text class="info-label">总盒数</text>
|
|
||||||
</view>
|
|
||||||
<view class="info-item">
|
|
||||||
<text class="info-value">
|
|
||||||
{{ smallAreaBox || '0' }}
|
|
||||||
</text>
|
|
||||||
<text class="info-label">小区盒数</text>
|
|
||||||
</view>
|
|
||||||
</template>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<!-- 市场动态 -->
|
|
||||||
<view class="my_order" v-if="marketWrapperVisible && isNormal">
|
|
||||||
<view class="my_title">
|
|
||||||
<text class="thetitle">{{ '市场动态' }}</text>
|
|
||||||
</view>
|
|
||||||
<view class="market-stats-container">
|
|
||||||
<view
|
|
||||||
class="stat-block primary"
|
|
||||||
@click="goTo('/pages/mine/marketDynamic/achievement-list')"
|
|
||||||
>
|
|
||||||
<view class="stat-content">
|
|
||||||
<view class="stat-item">
|
|
||||||
<text class="stat-label">总业绩</text>
|
|
||||||
<view class="stat-value">
|
|
||||||
<text class="stat-value__integer">{{
|
|
||||||
formattedTotalSumPv.integer
|
|
||||||
}}</text>
|
|
||||||
<text class="stat-value__decimal">{{
|
|
||||||
formattedTotalSumPv.decimal
|
|
||||||
}}</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="stat-divider"></view>
|
|
||||||
<view class="stat-item">
|
|
||||||
<text class="stat-label">小区业绩</text>
|
|
||||||
<view class="stat-value">
|
|
||||||
<text class="stat-value__integer">{{
|
|
||||||
formattedSmallAreaPv.integer
|
|
||||||
}}</text>
|
|
||||||
<text class="stat-value__decimal">{{
|
|
||||||
formattedSmallAreaPv.decimal
|
|
||||||
}}</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="stat-more-arrow">
|
|
||||||
<u-icon name="arrow-right" color="#fff" size="14"></u-icon>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view
|
|
||||||
class="stat-block secondary"
|
|
||||||
@click="goTo('/pages/mine/marketDynamic/box-list')"
|
|
||||||
>
|
|
||||||
<view class="stat-content">
|
|
||||||
<view class="stat-item">
|
|
||||||
<text class="stat-label">总盒数</text>
|
|
||||||
<view class="stat-value">
|
|
||||||
<text class="stat-value__integer">{{
|
|
||||||
formattedTotalBox.integer
|
|
||||||
}}</text>
|
|
||||||
<!-- <text class="stat-value__decimal">{{
|
|
||||||
formattedTotalBox.decimal
|
|
||||||
}}</text> -->
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="stat-divider"></view>
|
|
||||||
<view class="stat-item">
|
|
||||||
<text class="stat-label">小区盒数</text>
|
|
||||||
<view class="stat-value">
|
|
||||||
<text class="stat-value__integer">{{
|
|
||||||
formattedSmallAreaBox.integer
|
|
||||||
}}</text>
|
|
||||||
<!-- <text class="stat-value__decimal">{{
|
|
||||||
formattedSmallAreaBox.decimal
|
|
||||||
}}</text> -->
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="stat-more-arrow">
|
|
||||||
<u-icon name="arrow-right" color="#fff" size="14"></u-icon>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="my_order">
|
<view class="my_order">
|
||||||
<view class="my_title">
|
<view class="my_title">
|
||||||
<text class="thetitle">{{ '我的订单' }}</text>
|
<text class="thetitle">{{ '我的订单' }}</text>
|
||||||
|
|
@ -338,11 +229,11 @@
|
||||||
</u-button>
|
</u-button>
|
||||||
</view>
|
</view>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
<RegionSelect
|
<!-- <RegionSelect
|
||||||
v-if="isNormal"
|
v-if="isNormal"
|
||||||
ref="regionSelect"
|
ref="regionSelect"
|
||||||
@success="getRegionSelect"
|
@success="getRegionSelect"
|
||||||
/>
|
/> -->
|
||||||
<!-- <talentList :drShow="drShow" @closeShow="closeShow"></talentList> -->
|
<!-- <talentList :drShow="drShow" @closeShow="closeShow"></talentList> -->
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -387,7 +278,7 @@ export default {
|
||||||
ifshow: true,
|
ifshow: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
url: '/pages/bonus/menu',
|
url: '/pages/bonus/index',
|
||||||
name: '奖金明细',
|
name: '奖金明细',
|
||||||
imgurl: '../../static/images/mark2.png',
|
imgurl: '../../static/images/mark2.png',
|
||||||
menuKey: 'incomeDetail',
|
menuKey: 'incomeDetail',
|
||||||
|
|
@ -443,13 +334,13 @@ export default {
|
||||||
menuKey: 'bankInfo',
|
menuKey: 'bankInfo',
|
||||||
ifshow: true,
|
ifshow: true,
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
url: '/pages/bonus/regional-assessment/index',
|
// url: '/pages/bonus/regional-assessment/index',
|
||||||
name: '区域考核',
|
// name: '区域考核',
|
||||||
imgurl: '../../static/images/mark5.png',
|
// imgurl: '../../static/images/mark5.png',
|
||||||
menuKey: 'areaAssessment',
|
// menuKey: 'areaAssessment',
|
||||||
ifshow: false,
|
// ifshow: false,
|
||||||
},
|
// },
|
||||||
// {
|
// {
|
||||||
// url: '/pages/mine/addNewPv/index',
|
// url: '/pages/mine/addNewPv/index',
|
||||||
// name: '新增业绩',
|
// name: '新增业绩',
|
||||||
|
|
@ -480,7 +371,7 @@ export default {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.isNormal = isNormal
|
this.isNormal = isNormal
|
||||||
this.getRegionSelect()
|
// this.getRegionSelect()
|
||||||
this.getMemberBoxCount()
|
this.getMemberBoxCount()
|
||||||
this.getMarketDynamicBoxCount()
|
this.getMarketDynamicBoxCount()
|
||||||
// this.getUserAwardss()
|
// this.getUserAwardss()
|
||||||
|
|
@ -878,7 +769,7 @@ export default {
|
||||||
box-shadow: 0px 4px 20px 0px rgba(204, 204, 204, 0.4);
|
box-shadow: 0px 4px 20px 0px rgba(204, 204, 204, 0.4);
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
padding: 0 20rpx;
|
padding: 0 20rpx;
|
||||||
margin-top: 20rpx;
|
margin-top: 40rpx;
|
||||||
|
|
||||||
.my_title {
|
.my_title {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
@ -1180,7 +1071,7 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
.btnbox {
|
.btnbox {
|
||||||
margin-top: 30rpx;
|
margin-top: 190rpx;
|
||||||
padding: 20rpx 22rpx 150rpx 22rpx;
|
padding: 20rpx 22rpx 150rpx 22rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -104,6 +104,15 @@
|
||||||
:text="'查看物流'"
|
:text="'查看物流'"
|
||||||
color="#005BAC"
|
color="#005BAC"
|
||||||
></u-button>
|
></u-button>
|
||||||
|
<u-button
|
||||||
|
type="primary"
|
||||||
|
v-if="item.orderStatus == 3"
|
||||||
|
@click="confirmReceipt(item)"
|
||||||
|
shape="circle"
|
||||||
|
style="margin-left: 10px"
|
||||||
|
:text="'确认收货'"
|
||||||
|
color="#005BAC"
|
||||||
|
></u-button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -493,6 +502,34 @@ export default {
|
||||||
this.cancelCode = val.orderCode
|
this.cancelCode = val.orderCode
|
||||||
this.cancleOrder = true
|
this.cancleOrder = true
|
||||||
},
|
},
|
||||||
|
confirmReceipt(item) {
|
||||||
|
uni.showModal({
|
||||||
|
title: '提示',
|
||||||
|
content: '确认收货?',
|
||||||
|
success: res => {
|
||||||
|
if (res.confirm) {
|
||||||
|
api.confirmReceipt(item.orderCode).then(res => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '确认收货成功',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 1500,
|
||||||
|
})
|
||||||
|
this.queryParams.pageNum = 1
|
||||||
|
this.orderLists = []
|
||||||
|
this.getDataList()
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: 'none',
|
||||||
|
duration: 1500,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
})
|
||||||
|
},
|
||||||
getDetails(item) {
|
getDetails(item) {
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '加载中',
|
title: '加载中',
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,28 @@
|
||||||
disabled
|
disabled
|
||||||
/>
|
/>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
|
<u-form-item
|
||||||
|
v-if="[60, 70, 80].includes(gradeValue) && provinceList.length"
|
||||||
|
@click="regionSelectHandle"
|
||||||
|
required
|
||||||
|
label="会员区域"
|
||||||
|
borderBottom
|
||||||
|
prop="regionProvince"
|
||||||
|
>
|
||||||
|
<view class="disFlex justBwn">
|
||||||
|
<view v-if="regionAddress.length">
|
||||||
|
{{ regionAddress.map(item => item.name).join('-') }}
|
||||||
|
</view>
|
||||||
|
<view
|
||||||
|
v-else
|
||||||
|
class="uni-input-placeholder input-placeholder"
|
||||||
|
style="position: relative !important"
|
||||||
|
>请选择区域</view
|
||||||
|
>
|
||||||
|
<!-- <u-input v-model="form.regionProvince" border="none" disabled /> -->
|
||||||
|
<u-icon name="arrow-right"></u-icon>
|
||||||
|
</view>
|
||||||
|
</u-form-item>
|
||||||
<u-form-item
|
<u-form-item
|
||||||
v-show="isRegiest"
|
v-show="isRegiest"
|
||||||
:label="'推荐编号'"
|
:label="'推荐编号'"
|
||||||
|
|
@ -401,6 +423,13 @@
|
||||||
:defaultCode="defaultCode"
|
:defaultCode="defaultCode"
|
||||||
@addressData="addressData"
|
@addressData="addressData"
|
||||||
></v-address>
|
></v-address>
|
||||||
|
<RegionAddress
|
||||||
|
ref="regionAddress"
|
||||||
|
:provinceList="provinceList"
|
||||||
|
:cityList="cityList"
|
||||||
|
:countyList="countyList"
|
||||||
|
@setAddress="setRegionAddress"
|
||||||
|
></RegionAddress>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -415,14 +444,19 @@ import {
|
||||||
REPURCHASE_AREA,
|
REPURCHASE_AREA,
|
||||||
REISSUE_AREA,
|
REISSUE_AREA,
|
||||||
} from '@/util/specialAreaMap'
|
} from '@/util/specialAreaMap'
|
||||||
|
import regionSelect from '@/pages/commonMixins/regionSelect'
|
||||||
|
import RegionAddress from '@/components/region-address.vue'
|
||||||
export default {
|
export default {
|
||||||
|
mixins: [regionSelect],
|
||||||
components: {
|
components: {
|
||||||
'v-address': address,
|
'v-address': address,
|
||||||
mustAgreeMent,
|
mustAgreeMent,
|
||||||
agreement,
|
agreement,
|
||||||
|
RegionAddress,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
regionAddress: [],
|
||||||
isDeliveryWay: true,
|
isDeliveryWay: true,
|
||||||
pt: false,
|
pt: false,
|
||||||
isDp: false,
|
isDp: false,
|
||||||
|
|
@ -433,6 +467,7 @@ export default {
|
||||||
defaultCode: [],
|
defaultCode: [],
|
||||||
moren: '',
|
moren: '',
|
||||||
addressList: [],
|
addressList: [],
|
||||||
|
userInfo: uni.getStorageSync('User'),
|
||||||
deliList: [],
|
deliList: [],
|
||||||
transList: [],
|
transList: [],
|
||||||
queryCardList: [],
|
queryCardList: [],
|
||||||
|
|
@ -444,7 +479,6 @@ export default {
|
||||||
isTrans: false,
|
isTrans: false,
|
||||||
countryIndex: 0,
|
countryIndex: 0,
|
||||||
isCountry: false,
|
isCountry: false,
|
||||||
userInfo: '',
|
|
||||||
countryList: [],
|
countryList: [],
|
||||||
isClick: 0,
|
isClick: 0,
|
||||||
specialArea: '',
|
specialArea: '',
|
||||||
|
|
@ -466,6 +500,7 @@ export default {
|
||||||
transType: 1,
|
transType: 1,
|
||||||
pkGradeVal: '',
|
pkGradeVal: '',
|
||||||
placeParentName: '',
|
placeParentName: '',
|
||||||
|
// regionProvince: '',
|
||||||
},
|
},
|
||||||
deliList: [],
|
deliList: [],
|
||||||
diqu: '',
|
diqu: '',
|
||||||
|
|
@ -574,6 +609,7 @@ export default {
|
||||||
},
|
},
|
||||||
delId: '',
|
delId: '',
|
||||||
selTable: [],
|
selTable: [],
|
||||||
|
gradeValue: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -618,8 +654,6 @@ export default {
|
||||||
this.getPageList()
|
this.getPageList()
|
||||||
// 幂等性
|
// 幂等性
|
||||||
this.getGenerate()
|
this.getGenerate()
|
||||||
// 登录信息
|
|
||||||
this.userInfo = uni.getStorageSync('User')
|
|
||||||
this.setPageTitle(this.specialArea)
|
this.setPageTitle(this.specialArea)
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
|
@ -627,6 +661,12 @@ export default {
|
||||||
this.getAddressList()
|
this.getAddressList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
regionSelectHandle() {
|
||||||
|
this.$refs.regionAddress.setShow(this.provinceList[0].pkId)
|
||||||
|
},
|
||||||
|
setRegionAddress(area) {
|
||||||
|
this.regionAddress = area
|
||||||
|
},
|
||||||
setPageTitle(areaId) {
|
setPageTitle(areaId) {
|
||||||
const areaList = [
|
const areaList = [
|
||||||
REGIEST_AREA,
|
REGIEST_AREA,
|
||||||
|
|
@ -788,6 +828,10 @@ export default {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
if (res.data.isEnough) {
|
if (res.data.isEnough) {
|
||||||
this.form.pkGradeVal = res.data.pkGradeVal
|
this.form.pkGradeVal = res.data.pkGradeVal
|
||||||
|
if ([60, 70, 80].includes(res.data.gradeValue)) {
|
||||||
|
this.gradeValue = res.data.gradeValue
|
||||||
|
this.getRegionAreaList(res.data.gradeValue)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.form.pkGradeVal = ''
|
this.form.pkGradeVal = ''
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
@ -1144,6 +1188,19 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
goBuy() {
|
goBuy() {
|
||||||
|
const extParams = {}
|
||||||
|
if ([60, 70, 80].includes(this.gradeValue) && this.provinceList.length) {
|
||||||
|
if (!this.regionAddress.length) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请选择会员区域',
|
||||||
|
icon: 'none',
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
extParams.regionProvince = this.regionAddress[0]?.pkId || -1
|
||||||
|
extParams.regionCity = this.regionAddress[1]?.pkId || -1
|
||||||
|
extParams.regionCounty = this.regionAddress[2]?.pkId || -1
|
||||||
|
}
|
||||||
this.$refs.uForm.validate().then(res => {
|
this.$refs.uForm.validate().then(res => {
|
||||||
this.isLoading = true
|
this.isLoading = true
|
||||||
let deleteList = []
|
let deleteList = []
|
||||||
|
|
@ -1154,7 +1211,7 @@ export default {
|
||||||
})
|
})
|
||||||
api
|
api
|
||||||
.confirmRegOrder(
|
.confirmRegOrder(
|
||||||
Object.assign({}, this.form, this.allGoodsData, {
|
Object.assign({}, this.form, extParams, this.allGoodsData, {
|
||||||
deleteList: deleteList,
|
deleteList: deleteList,
|
||||||
shopList: deleteList,
|
shopList: deleteList,
|
||||||
parentCode: this.form.parent,
|
parentCode: this.form.parent,
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<special-area-wrapper />
|
<special-area-wrapper :userInfo="userInfo" />
|
||||||
|
|
||||||
<cl-tabbar :current="1"></cl-tabbar>
|
<cl-tabbar :current="1"></cl-tabbar>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -22,7 +22,9 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {}
|
return {
|
||||||
|
userInfo: uni.getStorageSync('User'),
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onLoad() {},
|
onLoad() {},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,28 @@
|
||||||
disabled
|
disabled
|
||||||
/>
|
/>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
|
<u-form-item
|
||||||
|
v-if="[60, 70, 80].includes(gradeValue) && provinceList.length"
|
||||||
|
@click="regionSelectHandle"
|
||||||
|
required
|
||||||
|
label="会员区域"
|
||||||
|
borderBottom
|
||||||
|
prop="regionProvince"
|
||||||
|
>
|
||||||
|
<view class="disFlex justBwn">
|
||||||
|
<view v-if="regionAddress.length">
|
||||||
|
{{ regionAddress.map(item => item.name).join('-') }}
|
||||||
|
</view>
|
||||||
|
<view
|
||||||
|
v-else
|
||||||
|
class="uni-input-placeholder input-placeholder"
|
||||||
|
style="position: relative !important"
|
||||||
|
>请选择区域</view
|
||||||
|
>
|
||||||
|
<!-- <u-input v-model="form.regionProvince" border="none" disabled /> -->
|
||||||
|
<u-icon name="arrow-right"></u-icon>
|
||||||
|
</view>
|
||||||
|
</u-form-item>
|
||||||
<u-form-item label="会员编号" required borderBottom prop="memberCode">
|
<u-form-item label="会员编号" required borderBottom prop="memberCode">
|
||||||
<u-input
|
<u-input
|
||||||
disabled
|
disabled
|
||||||
|
|
@ -328,6 +350,13 @@
|
||||||
:defaultCode="defaultCode"
|
:defaultCode="defaultCode"
|
||||||
@addressData="addressData"
|
@addressData="addressData"
|
||||||
></v-address>
|
></v-address>
|
||||||
|
<RegionAddress
|
||||||
|
ref="regionAddress"
|
||||||
|
:provinceList="provinceList"
|
||||||
|
:cityList="cityList"
|
||||||
|
:countyList="countyList"
|
||||||
|
@setAddress="setRegionAddress"
|
||||||
|
></RegionAddress>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -343,12 +372,16 @@ import {
|
||||||
REPURCHASE_AREA,
|
REPURCHASE_AREA,
|
||||||
REISSUE_AREA,
|
REISSUE_AREA,
|
||||||
} from '@/util/specialAreaMap'
|
} from '@/util/specialAreaMap'
|
||||||
|
import regionSelect from '@/pages/commonMixins/regionSelect'
|
||||||
|
import RegionAddress from '@/components/region-address.vue'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
'v-address': address,
|
'v-address': address,
|
||||||
mustAgreeMent,
|
mustAgreeMent,
|
||||||
agreement,
|
agreement,
|
||||||
|
RegionAddress,
|
||||||
},
|
},
|
||||||
|
mixins: [regionSelect],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
isDeliveryWay: true,
|
isDeliveryWay: true,
|
||||||
|
|
@ -406,6 +439,7 @@ export default {
|
||||||
orderItemsParams: [],
|
orderItemsParams: [],
|
||||||
isLoading: false,
|
isLoading: false,
|
||||||
centerCodeId: '',
|
centerCodeId: '',
|
||||||
|
regionAddress: [],
|
||||||
rules: {
|
rules: {
|
||||||
parent: [
|
parent: [
|
||||||
{
|
{
|
||||||
|
|
@ -488,6 +522,8 @@ export default {
|
||||||
},
|
},
|
||||||
delId: '',
|
delId: '',
|
||||||
selTable: [],
|
selTable: [],
|
||||||
|
regionAddress: [],
|
||||||
|
gradeValue: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
|
|
@ -538,6 +574,12 @@ export default {
|
||||||
this.getAddressList()
|
this.getAddressList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
regionSelectHandle() {
|
||||||
|
this.$refs.regionAddress.setShow(this.provinceList[0].pkId)
|
||||||
|
},
|
||||||
|
setRegionAddress(area) {
|
||||||
|
this.regionAddress = area
|
||||||
|
},
|
||||||
setPageTitle(areaId) {
|
setPageTitle(areaId) {
|
||||||
const areaList = [
|
const areaList = [
|
||||||
REGIEST_AREA,
|
REGIEST_AREA,
|
||||||
|
|
@ -674,8 +716,13 @@ export default {
|
||||||
}
|
}
|
||||||
api.memLevel(params).then(res => {
|
api.memLevel(params).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
|
console.log(res.data, 'res.data.memLevel')
|
||||||
if (res.data.isEnough) {
|
if (res.data.isEnough) {
|
||||||
this.form.pkGradeVal = res.data.pkGradeVal
|
this.form.pkGradeVal = res.data.pkGradeVal
|
||||||
|
if ([60, 70, 80].includes(res.data.gradeValue)) {
|
||||||
|
this.gradeValue = res.data.gradeValue
|
||||||
|
this.getRegionAreaList(res.data.gradeValue)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.form.pkGradeVal = ''
|
this.form.pkGradeVal = ''
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
@ -957,6 +1004,19 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
goBuy() {
|
goBuy() {
|
||||||
|
const extParams = {}
|
||||||
|
if ([60, 70, 80].includes(this.gradeValue) && this.provinceList?.length) {
|
||||||
|
if (!this.regionAddress.length) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请选择会员区域',
|
||||||
|
icon: 'none',
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
extParams.regionProvince = this.regionAddress[0]?.pkId || -1
|
||||||
|
extParams.regionCity = this.regionAddress[1]?.pkId || -1
|
||||||
|
extParams.regionCounty = this.regionAddress[2]?.pkId || -1
|
||||||
|
}
|
||||||
this.$refs.uForm.validate().then(res => {
|
this.$refs.uForm.validate().then(res => {
|
||||||
this.isLoading = true
|
this.isLoading = true
|
||||||
let deleteList = []
|
let deleteList = []
|
||||||
|
|
@ -966,7 +1026,7 @@ export default {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
upgradeOrder(
|
upgradeOrder(
|
||||||
Object.assign({}, this.form, this.allGoodsData, {
|
Object.assign({}, this.form, extParams, this.allGoodsData, {
|
||||||
deleteList: deleteList,
|
deleteList: deleteList,
|
||||||
shopList: deleteList,
|
shopList: deleteList,
|
||||||
parentCode: this.form.parent,
|
parentCode: this.form.parent,
|
||||||
|
|
|
||||||
|
|
@ -74,30 +74,7 @@
|
||||||
{{ userInfo.pkGradeVal }}
|
{{ userInfo.pkGradeVal }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="index-view">
|
|
||||||
<view class="user-name">荣誉奖衔</view>
|
|
||||||
<view class="user-right">
|
|
||||||
{{ userInfo.pkMaxAwardsVal || userInfo.pkAwardsVal }}
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<!-- <view class="index-view">
|
|
||||||
<view class="user-name">{{'代理等级'}}</view>
|
|
||||||
<view class="user-right">
|
|
||||||
{{userInfo.agentGrade}}
|
|
||||||
</view>
|
|
||||||
</view> -->
|
|
||||||
<!-- <view class="index-view">
|
|
||||||
<view class="user-name">{{ '真实奖衔' }}</view>
|
|
||||||
<view class="user-right">
|
|
||||||
{{ userInfo.awardsVal }}
|
|
||||||
</view>
|
|
||||||
</view> -->
|
|
||||||
<view class="index-view">
|
|
||||||
<view class="user-name">当月奖衔</view>
|
|
||||||
<view class="user-right">
|
|
||||||
{{ userInfo.pkAwardsVal }}
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="index-view none">
|
<view class="index-view none">
|
||||||
<view class="user-name">{{ '创建日期' }}</view>
|
<view class="user-name">{{ '创建日期' }}</view>
|
||||||
<view class="user-right">
|
<view class="user-right">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue