|
@@ -9,30 +9,39 @@
|
|
|
placeholder="输入分类名称进行搜索"
|
|
|
v-model="keyword"
|
|
|
@search="searchData"
|
|
|
- @clear="searchData">
|
|
|
+ @clear="searchData"
|
|
|
+ >
|
|
|
</u-search>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<view class="main-container">
|
|
|
<view class="left-list" v-if="type == 'M'">
|
|
|
- <block v-for="(item, index) in leftList" :key='index'>
|
|
|
- <view class="item ellipsis" :class="leftCurrent == item.categoryId ? 'current':''" @tap="changeLeft(item.categoryId)">{{item.categoryName}}</view>
|
|
|
- </block>
|
|
|
+ <block v-for="(item, index) in leftList" :key="index">
|
|
|
+ <view
|
|
|
+ class="item ellipsis"
|
|
|
+ :class="leftCurrent == item.categoryId ? 'current' : ''"
|
|
|
+ @tap="changeLeft(item.categoryId)"
|
|
|
+ >{{ item.categoryName }}</view
|
|
|
+ >
|
|
|
+ </block>
|
|
|
</view>
|
|
|
<view class="right-list">
|
|
|
<scroll-view scroll-y style="height: 100%">
|
|
|
- <view class="item" v-for="(item, index) in rightList" :key='index'>
|
|
|
- <view class="name">{{item.goodsName}}</view>
|
|
|
- <view class="text">代码:{{item.goodsCode}}</view>
|
|
|
+ <view class="item" v-for="(item, index) in rightList" :key="index">
|
|
|
+ <view class="name">{{ item.goodsName }}</view>
|
|
|
+ <view class="text">代码:{{ item.goodsCode }}</view>
|
|
|
<view class="bottom">
|
|
|
- <view class="price">¥{{item.goodsAmount | priceFilter}}<text>/{{item.goodsUnit}}</text></view>
|
|
|
+ <view class="price"
|
|
|
+ >¥{{ item.goodsAmount | priceFilter }}<text>/{{ item.goodsUnit }}</text></view
|
|
|
+ >
|
|
|
<u-number-box
|
|
|
min="0"
|
|
|
:step="item.goodsUnit == '米' ? 1 : 1"
|
|
|
:name="item.goodsId"
|
|
|
v-model="item.num"
|
|
|
- @change="changeNum">
|
|
|
+ @change="changeNum"
|
|
|
+ >
|
|
|
<view slot="minus" class="ctrl">
|
|
|
<u-icon name="minus" color="#FFFFFF" size="12"></u-icon>
|
|
|
</view>
|
|
@@ -43,7 +52,7 @@
|
|
|
inputAlign="center"
|
|
|
border="none"
|
|
|
v-model="item.num"
|
|
|
- @blur="changeNum({name: item.goodsId, value: item.num, unit: item.goodsUnit})"
|
|
|
+ @blur="changeNum({ name: item.goodsId, value: item.num, unit: item.goodsUnit })"
|
|
|
></u--input>
|
|
|
</text>
|
|
|
<view slot="plus" class="ctrl">
|
|
@@ -69,17 +78,20 @@
|
|
|
<view class="right" @tap="clearCart"><text class="iconfont icon-shanchu"></text>清空购物车</view>
|
|
|
</view>
|
|
|
<view class="list">
|
|
|
- <view class="item" v-for="(item, index) in cartList" :key='index'>
|
|
|
- <view class="name">{{item.goodsName}}</view>
|
|
|
+ <view class="item" v-for="(item, index) in cartList" :key="index">
|
|
|
+ <view class="name">{{ item.goodsName }}</view>
|
|
|
<view class="bottom">
|
|
|
- <view class="price">¥{{item.goodsAmount | priceFilter}}<text>/{{item.goodsUnit}}</text></view>
|
|
|
+ <view class="price"
|
|
|
+ >¥{{ item.goodsAmount | priceFilter }}<text>/{{ item.goodsUnit }}</text></view
|
|
|
+ >
|
|
|
<u-number-box
|
|
|
:step="item.goodsUnit == '米' ? 1 : 1"
|
|
|
:min="item.goodsUnit == '米' ? 0.1 : 1"
|
|
|
:name="item.goodsId"
|
|
|
v-model="item.num"
|
|
|
@change="changeCartNum"
|
|
|
- @overlimit="overlimitFun(index)">
|
|
|
+ @overlimit="overlimitFun(index)"
|
|
|
+ >
|
|
|
<view slot="minus" class="ctrl">
|
|
|
<u-icon name="minus" color="#FFFFFF" size="12"></u-icon>
|
|
|
</view>
|
|
@@ -90,7 +102,7 @@
|
|
|
inputAlign="center"
|
|
|
border="none"
|
|
|
v-model="item.num"
|
|
|
- @blur="changeCartNum({name: item.goodsId, value: item.num, unit: item.goodsUnit})"
|
|
|
+ @blur="changeCartNum({ name: item.goodsId, value: item.num, unit: item.goodsUnit })"
|
|
|
></u--input>
|
|
|
</text>
|
|
|
<view slot="plus" class="ctrl">
|
|
@@ -108,7 +120,7 @@
|
|
|
<text class="iconfont icon-gouwuche1"></text>
|
|
|
<u-badge max="99" :value="totalNum" :offset="[1, 1]" absolute></u-badge>
|
|
|
</view>
|
|
|
- <view class="price"><text>合计:</text>¥{{totalPrice | priceFilter}}</view>
|
|
|
+ <view class="price"><text>合计:</text>¥{{ totalPrice | priceFilter }}</view>
|
|
|
<view class="btn">
|
|
|
<u-button type="primary" text="提交" @click="submitData"></u-button>
|
|
|
</view>
|
|
@@ -118,257 +130,260 @@
|
|
|
<!-- #endif -->
|
|
|
|
|
|
<!-- #ifndef H5 -->
|
|
|
- <web-view :src="webViewHref(`/packageMaterial/pages/sale/product`, pam, crossPagePam)" @message="crossPage.$listener"></web-view>
|
|
|
+ <web-view
|
|
|
+ :src="webViewHref(`/packageMaterial/pages/sale/product`, pam, crossPagePam)"
|
|
|
+ @message="crossPage.$listener"
|
|
|
+ ></web-view>
|
|
|
<!-- #endif -->
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- // #ifdef H5
|
|
|
- export default {
|
|
|
- data() {
|
|
|
- return {
|
|
|
- type: 'M',
|
|
|
- userMobile: '',
|
|
|
- orderNo: '',
|
|
|
- salesType: 'OUT',
|
|
|
- brandId: null,
|
|
|
- brandName: null,
|
|
|
- categoryId: null,
|
|
|
- categoryName: null,
|
|
|
- wbId: null, // 维保工单
|
|
|
- wbIsAllFee: null, // 维保工单是否包含全部费用
|
|
|
- wbPayType: null, // 维保工单费用支付方式
|
|
|
+// #ifdef H5
|
|
|
+export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ type: 'M',
|
|
|
+ userMobile: '',
|
|
|
+ orderNo: '',
|
|
|
+ salesType: 'OUT',
|
|
|
+ brandId: null,
|
|
|
+ brandName: null,
|
|
|
+ categoryId: null,
|
|
|
+ categoryName: null,
|
|
|
+ wbId: null, // 维保工单
|
|
|
+ wbIsAllFee: null, // 维保工单是否包含全部费用
|
|
|
+ wbPayType: null, // 维保工单费用支付方式
|
|
|
|
|
|
- keyword: '',
|
|
|
- leftList: [],
|
|
|
- leftCurrent: 0,
|
|
|
- rightList: [],
|
|
|
- loadStatus: 0,
|
|
|
- isShowDialog: false,
|
|
|
+ keyword: '',
|
|
|
+ leftList: [],
|
|
|
+ leftCurrent: 0,
|
|
|
+ rightList: [],
|
|
|
+ loadStatus: 0,
|
|
|
+ isShowDialog: false,
|
|
|
|
|
|
- cartList: [],
|
|
|
- }
|
|
|
- },
|
|
|
+ cartList: [],
|
|
|
+ }
|
|
|
+ },
|
|
|
|
|
|
- computed: {
|
|
|
- totalNum() {
|
|
|
- // let val = 0;
|
|
|
- // this.cartList.forEach(item => {
|
|
|
- // val = val + item.num;
|
|
|
- // })
|
|
|
- return this.cartList.length;
|
|
|
- },
|
|
|
- totalPrice() {
|
|
|
- let val = 0;
|
|
|
- this.cartList.forEach(item => {
|
|
|
- val = val + (item.num * (item.goodsAmount * 100) / 100);
|
|
|
- })
|
|
|
- return val;
|
|
|
- },
|
|
|
+ computed: {
|
|
|
+ totalNum() {
|
|
|
+ // let val = 0;
|
|
|
+ // this.cartList.forEach(item => {
|
|
|
+ // val = val + item.num;
|
|
|
+ // })
|
|
|
+ return this.cartList.length;
|
|
|
},
|
|
|
-
|
|
|
- onLoad({type, userMobile, orderNo, salesType, brandId, brandName, categoryId, categoryName, websitId, websitName, wbId, wbIsAllFee, wbPayType}) {
|
|
|
- this.type = type;
|
|
|
- this.userMobile = userMobile;
|
|
|
- this.orderNo = orderNo;
|
|
|
- this.salesType = salesType;
|
|
|
- this.brandId = brandId;
|
|
|
- this.brandName = brandName;
|
|
|
- this.categoryId = categoryId;
|
|
|
- this.categoryName = categoryName;
|
|
|
- this.websitId = websitId;
|
|
|
- this.websitName = websitName;
|
|
|
- this.wbId = wbId;
|
|
|
- this.wbIsAllFee = wbIsAllFee;
|
|
|
- this.wbPayType = wbPayType;
|
|
|
-
|
|
|
- uni.setNavigationBarTitle({
|
|
|
- title: type == 'M' ? '选择辅材' : '选择配件'
|
|
|
+ totalPrice() {
|
|
|
+ let val = 0;
|
|
|
+ this.cartList.forEach(item => {
|
|
|
+ val = val + (item.num * (item.goodsAmount * 100) / 100);
|
|
|
})
|
|
|
- if(type === 'M') {
|
|
|
- this.getLeftList();
|
|
|
- }else {
|
|
|
- this.getRightList();
|
|
|
- }
|
|
|
+ return val;
|
|
|
},
|
|
|
+ },
|
|
|
|
|
|
- methods: {
|
|
|
- // 获取左侧分类
|
|
|
- getLeftList() {
|
|
|
- this.$api.post('/pay/websitCategoryList', {
|
|
|
- pageNum: 1,
|
|
|
- pageSize: -1,
|
|
|
- }).then(res => {
|
|
|
- this.leftList = res.data.records;
|
|
|
- this.leftCurrent = res.data.records.length > 0 ? res.data.records[0].categoryId : 0;
|
|
|
- this.getRightList();
|
|
|
- })
|
|
|
- },
|
|
|
-
|
|
|
- // 获取右侧产品
|
|
|
- getRightList() {
|
|
|
- this.loadStatus = 1;
|
|
|
- let url = '', params = {};
|
|
|
- if(this.type === 'M') {
|
|
|
- url = '/pay/chargeList';
|
|
|
- params = {
|
|
|
- categoryId: this.leftCurrent,
|
|
|
- orderId: this.orderNo,
|
|
|
- }
|
|
|
- }else {
|
|
|
- url = '/pay/websitGoodsList';
|
|
|
- params = {
|
|
|
- categoryName: this.categoryName,
|
|
|
- brand: this.brandName,
|
|
|
- orderId: this.orderNo,
|
|
|
- // normType: 'M'
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- this.$api.post(url, {
|
|
|
- pageNum: 1,
|
|
|
- pageSize: -1,
|
|
|
- name: this.keyword,
|
|
|
- ...params
|
|
|
- }).then(res => {
|
|
|
- this.loadStatus = 0;
|
|
|
- let list = res.data.records.map(item => {
|
|
|
- return this.type === 'M' ? {
|
|
|
- goodsId: item.normId,
|
|
|
- goodsName: item.normName,
|
|
|
- goodsCode: item.normCode,
|
|
|
- goodsUnit: item.unit,
|
|
|
- goodsAmount: item.normAmount,
|
|
|
- num: 0
|
|
|
- } : {
|
|
|
- goodsId: item.goodsId,
|
|
|
- goodsName: item.goodsName,
|
|
|
- goodsCode: item.goodsCode,
|
|
|
- goodsUnit: item.goodsSalesUnit,
|
|
|
- goodsAmount: item.normAmount,
|
|
|
- normType: item.normType,
|
|
|
- num: 0
|
|
|
- }
|
|
|
- });
|
|
|
- for(let i = 0; i < list.length; i++) {
|
|
|
- for(let j = 0; j < this.cartList.length; j++) {
|
|
|
- if(list[i].goodsId == this.cartList[j].goodsId) {
|
|
|
- list[i].num = this.cartList[j].num;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- if(list.length < 1){
|
|
|
- this.loadStatus = 2;
|
|
|
- }
|
|
|
- this.rightList = list;
|
|
|
- }).catch(() => {
|
|
|
- this.loadStatus = 2;
|
|
|
- })
|
|
|
- },
|
|
|
+ onLoad({type, userMobile, orderNo, salesType, brandId, brandName, categoryId, categoryName, websitId, websitName, wbId, wbIsAllFee, wbPayType}) {
|
|
|
+ this.type = type;
|
|
|
+ this.userMobile = userMobile;
|
|
|
+ this.orderNo = orderNo;
|
|
|
+ // this.salesType = salesType;
|
|
|
+ // this.brandId = brandId;
|
|
|
+ // this.brandName = brandName;
|
|
|
+ this.categoryId = categoryId;
|
|
|
+ this.categoryName = categoryName;
|
|
|
+ this.websitId = websitId;
|
|
|
+ this.websitName = websitName;
|
|
|
+ this.wbId = wbId;
|
|
|
+ this.wbIsAllFee = wbIsAllFee;
|
|
|
+ this.wbPayType = wbPayType;
|
|
|
|
|
|
- // 切换一级菜单
|
|
|
- changeLeft(pid) {
|
|
|
- this.leftCurrent = pid;
|
|
|
- this.getRightList();
|
|
|
- },
|
|
|
+ uni.setNavigationBarTitle({
|
|
|
+ title: type == 'M' ? '选择辅材' : '选择配件'
|
|
|
+ })
|
|
|
+ if(type === 'M') {
|
|
|
+ this.getLeftList();
|
|
|
+ }else {
|
|
|
+ this.getRightList();
|
|
|
+ }
|
|
|
+ },
|
|
|
|
|
|
- // 搜索
|
|
|
- searchData() {
|
|
|
- this.getRightList();
|
|
|
- },
|
|
|
+ methods: {
|
|
|
+ // 获取左侧分类
|
|
|
+ getLeftList() {
|
|
|
+ this.$api.post('/pay/websitCategoryList', {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: -1,
|
|
|
+ }).then(res => {
|
|
|
+ this.leftList = res.data.records;
|
|
|
+ this.leftCurrent = res.data.records.length > 0 ? res.data.records[0].categoryId : 0;
|
|
|
+ this.getRightList();
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
- changeNum(e) {
|
|
|
- let obj = this.rightList.find((item) => item.goodsId === e.name);
|
|
|
- if(e.unit && e.unit != '米') {
|
|
|
- e.value = Math.floor(e.value);
|
|
|
- obj.num = Math.floor(obj.num);
|
|
|
- }
|
|
|
- // 判断对象数组中是否存在该对象
|
|
|
- let index = this.cartList.findIndex((item) => item.goodsId === obj.goodsId);
|
|
|
- // 如果是0,就删除
|
|
|
- if(index !== -1 && e.value == 0) {
|
|
|
- this.cartList.splice(index, 1);
|
|
|
+ // 获取右侧产品
|
|
|
+ getRightList() {
|
|
|
+ this.loadStatus = 1;
|
|
|
+ let url = '', params = {};
|
|
|
+ if(this.type === 'M') {
|
|
|
+ url = '/pay/chargeList';
|
|
|
+ params = {
|
|
|
+ categoryId: this.leftCurrent,
|
|
|
+ orderId: this.orderNo,
|
|
|
}
|
|
|
- // 如果有就替换,没有就添加
|
|
|
- else if (index !== -1) {
|
|
|
- this.cartList.splice(index, 1, obj);
|
|
|
+ }else {
|
|
|
+ url = '/pay/websitGoodsList';
|
|
|
+ params = {
|
|
|
+ categoryName: this.categoryName,
|
|
|
+ brand: this.brandName,
|
|
|
+ orderId: this.orderNo,
|
|
|
+ // normType: 'M'
|
|
|
}
|
|
|
- else {
|
|
|
- if(e.value > 0) {
|
|
|
- this.cartList.push(obj);
|
|
|
+ }
|
|
|
+
|
|
|
+ this.$api.post(url, {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: -1,
|
|
|
+ name: this.keyword,
|
|
|
+ ...params
|
|
|
+ }).then(res => {
|
|
|
+ this.loadStatus = 0;
|
|
|
+ let list = res.data.records.map(item => {
|
|
|
+ return this.type === 'M' ? {
|
|
|
+ goodsId: item.normId,
|
|
|
+ goodsName: item.normName,
|
|
|
+ goodsCode: item.normCode,
|
|
|
+ goodsUnit: item.unit,
|
|
|
+ goodsAmount: item.normAmount,
|
|
|
+ num: 0
|
|
|
+ } : {
|
|
|
+ goodsId: item.goodsId,
|
|
|
+ goodsName: item.goodsName,
|
|
|
+ goodsCode: item.goodsCode,
|
|
|
+ goodsUnit: item.goodsSalesUnit,
|
|
|
+ goodsAmount: item.normAmount,
|
|
|
+ normType: item.normType,
|
|
|
+ num: 0
|
|
|
+ }
|
|
|
+ });
|
|
|
+ for(let i = 0; i < list.length; i++) {
|
|
|
+ for(let j = 0; j < this.cartList.length; j++) {
|
|
|
+ if(list[i].goodsId == this.cartList[j].goodsId) {
|
|
|
+ list[i].num = this.cartList[j].num;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- },
|
|
|
+ if(list.length < 1){
|
|
|
+ this.loadStatus = 2;
|
|
|
+ }
|
|
|
+ this.rightList = list;
|
|
|
+ }).catch(() => {
|
|
|
+ this.loadStatus = 2;
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
- changeCartNum(e) {
|
|
|
- let obj = this.cartList.find((item) => item.goodsId === e.name);
|
|
|
- if(e.unit && e.unit != '米') {
|
|
|
- e.value = Math.floor(e.value);
|
|
|
- obj.num = Math.floor(obj.num);
|
|
|
- }
|
|
|
- let index = this.cartList.findIndex((item) => item.goodsId === obj.goodsId);
|
|
|
- this.cartList.splice(index, 1, obj);
|
|
|
+ // 切换一级菜单
|
|
|
+ changeLeft(pid) {
|
|
|
+ this.leftCurrent = pid;
|
|
|
+ this.getRightList();
|
|
|
+ },
|
|
|
|
|
|
- this.getRightList();
|
|
|
- },
|
|
|
+ // 搜索
|
|
|
+ searchData() {
|
|
|
+ this.getRightList();
|
|
|
+ },
|
|
|
|
|
|
- overlimitFun(index) {
|
|
|
- this.$modal({
|
|
|
- content: '把该产品从购物车移除?'
|
|
|
- }).then(() => {
|
|
|
- this.cartList.splice(index, 1);
|
|
|
- this.getRightList();
|
|
|
- }).catch(() => {})
|
|
|
- },
|
|
|
+ changeNum(e) {
|
|
|
+ let obj = this.rightList.find((item) => item.goodsId === e.name);
|
|
|
+ if(e.unit && e.unit != '米') {
|
|
|
+ e.value = Math.floor(e.value);
|
|
|
+ obj.num = Math.floor(obj.num);
|
|
|
+ }
|
|
|
+ // 判断对象数组中是否存在该对象
|
|
|
+ let index = this.cartList.findIndex((item) => item.goodsId === obj.goodsId);
|
|
|
+ // 如果是0,就删除
|
|
|
+ if(index !== -1 && e.value == 0) {
|
|
|
+ this.cartList.splice(index, 1);
|
|
|
+ }
|
|
|
+ // 如果有就替换,没有就添加
|
|
|
+ else if (index !== -1) {
|
|
|
+ this.cartList.splice(index, 1, obj);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ if(e.value > 0) {
|
|
|
+ this.cartList.push(obj);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
|
|
|
- clearCart() {
|
|
|
- this.$modal({
|
|
|
- content: '确定清空购物车?'
|
|
|
- }).then(() => {
|
|
|
- this.cartList = [];
|
|
|
- this.getRightList();
|
|
|
- }).catch(() => {})
|
|
|
- },
|
|
|
+ changeCartNum(e) {
|
|
|
+ let obj = this.cartList.find((item) => item.goodsId === e.name);
|
|
|
+ if(e.unit && e.unit != '米') {
|
|
|
+ e.value = Math.floor(e.value);
|
|
|
+ obj.num = Math.floor(obj.num);
|
|
|
+ }
|
|
|
+ let index = this.cartList.findIndex((item) => item.goodsId === obj.goodsId);
|
|
|
+ this.cartList.splice(index, 1, obj);
|
|
|
|
|
|
- submitData() {
|
|
|
- if(this.cartList.length < 1) return this.$toast('请选择');
|
|
|
- this.$setStorage('materialSaleData', {
|
|
|
- type: this.type,
|
|
|
- brandId: this.brandId,
|
|
|
- brandName: this.brandName,
|
|
|
- categoryId: this.type == 'P' ? this.categoryId : '',
|
|
|
- categoryName: this.type == 'P' ? this.categoryName : '',
|
|
|
- websitId: this.websitId,
|
|
|
- websitName: this.websitName,
|
|
|
- salesType: this.salesType,
|
|
|
- userMobile: this.userMobile,
|
|
|
- orderNo: this.orderNo,
|
|
|
- wbId: this.wbId,
|
|
|
- wbIsAllFee: this.wbIsAllFee,
|
|
|
- wbPayType: this.wbPayType,
|
|
|
- goodsList: this.cartList
|
|
|
- });
|
|
|
- this.$navToPage({
|
|
|
- url: `/packageMaterial/pages/sale/order`
|
|
|
- })
|
|
|
- },
|
|
|
+ this.getRightList();
|
|
|
+ },
|
|
|
|
|
|
+ overlimitFun(index) {
|
|
|
+ this.$modal({
|
|
|
+ content: '把该产品从购物车移除?'
|
|
|
+ }).then(() => {
|
|
|
+ this.cartList.splice(index, 1);
|
|
|
+ this.getRightList();
|
|
|
+ }).catch(() => {})
|
|
|
},
|
|
|
- }
|
|
|
|
|
|
- // #endif
|
|
|
- // #ifndef H5
|
|
|
- export default {
|
|
|
- data() {
|
|
|
- return {
|
|
|
- pam: {},
|
|
|
- }
|
|
|
+ clearCart() {
|
|
|
+ this.$modal({
|
|
|
+ content: '确定清空购物车?'
|
|
|
+ }).then(() => {
|
|
|
+ this.cartList = [];
|
|
|
+ this.getRightList();
|
|
|
+ }).catch(() => {})
|
|
|
},
|
|
|
- onLoad(pam) {
|
|
|
- this.pam = pam;
|
|
|
+
|
|
|
+ submitData() {
|
|
|
+ if(this.cartList.length < 1) return this.$toast('请选择');
|
|
|
+ this.$setStorage('materialSaleData', {
|
|
|
+ type: this.type,
|
|
|
+ salesType: this.salesType,
|
|
|
+ brandId: this.brandId,
|
|
|
+ brandName: this.brandName,
|
|
|
+ categoryId: this.type == 'P' ? this.categoryId : '',
|
|
|
+ categoryName: this.type == 'P' ? this.categoryName : '',
|
|
|
+ websitId: this.websitId,
|
|
|
+ websitName: this.websitName,
|
|
|
+ userMobile: this.userMobile,
|
|
|
+ orderNo: this.orderNo,
|
|
|
+ wbId: this.wbId,
|
|
|
+ wbIsAllFee: this.wbIsAllFee,
|
|
|
+ wbPayType: this.wbPayType,
|
|
|
+ goodsList: this.cartList
|
|
|
+ });
|
|
|
+ this.$navToPage({
|
|
|
+ url: `/packageMaterial/pages/sale/order`
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ },
|
|
|
+}
|
|
|
+
|
|
|
+// #endif
|
|
|
+// #ifndef H5
|
|
|
+export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ pam: {},
|
|
|
}
|
|
|
+ },
|
|
|
+ onLoad(pam) {
|
|
|
+ this.pam = pam;
|
|
|
}
|
|
|
- // #endif
|
|
|
+}
|
|
|
+// #endif
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
@@ -378,17 +393,17 @@
|
|
|
::v-deep .u-search {
|
|
|
height: 60rpx;
|
|
|
input {
|
|
|
- background: #F7F8FF !important;
|
|
|
+ background: #f7f8ff !important;
|
|
|
}
|
|
|
.u-search__content {
|
|
|
- background: #F7F8FF !important;
|
|
|
+ background: #f7f8ff !important;
|
|
|
height: 60rpx;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
.empty-container {
|
|
|
height: 100%;
|
|
|
- background: #FFFFFF;
|
|
|
+ background: #ffffff;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
align-items: center;
|
|
@@ -425,15 +440,15 @@
|
|
|
align-items: center;
|
|
|
padding: 0 20rpx;
|
|
|
&.current {
|
|
|
- color: #FFFFFF;
|
|
|
+ color: #ffffff;
|
|
|
background: $theme-color;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
.right-list {
|
|
|
flex: 1;
|
|
|
- background: #FFFFFF;
|
|
|
- background: #FFFFFF;
|
|
|
+ background: #ffffff;
|
|
|
+ background: #ffffff;
|
|
|
height: 100%;
|
|
|
box-sizing: border-box;
|
|
|
.item {
|
|
@@ -526,7 +541,7 @@
|
|
|
left: 0;
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
- background: rgba($color: #000000, $alpha: .6);
|
|
|
+ background: rgba($color: #000000, $alpha: 0.6);
|
|
|
}
|
|
|
.dialog-container {
|
|
|
width: 100%;
|