| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- import request from '@/utils/requestAdmin'
- //返送验证码
- export function getVerificationCode(tel,userType){
- return request({
- url: `/miniapp/sendYzm?tel=`+ tel+"&userType="+userType,
- method: 'post',
- })
- }
- //登录
- export function login(tel,code,userType,jsCode){
- return request({
- url: `/miniapp/login`,
- method: 'post',
- params: {
- phone:tel,
- userType:userType,
- code:code,
- jsCode
- }
- })
- }
- export function getAdminUserInfo(){
- return request({
- url: `/miniapp/getAdminUserInfo`,
- method: 'post',
- })
- }
- export function getQrcodeNum(code){
- return request({
- url: `/ywy/getQrcodeNum`,
- method: 'post',
- params: {
- qrCode:code
- }
- })
- }
- export function active(data){
- return request({
- url: `/ywy/active`,
- method: 'post',
- data: data
- })
- }
- export function getRetailDetail(id){
- return request({
- url: `/store/show`,
- method: 'post',
- params: {
- id:id
- }
- })
- }
- export function removeRetail(id){
- return request({
- url: `/store/delete`,
- method: 'post',
- params: {
- id:id
- }
- })
- }
- export function getStoreList(pageIndex,pageSize,storeName){
- return request({
- url: `/store/queryPage`,
- method: 'post',
- params: {
- pageIndex:pageIndex,
- pageSize:pageSize,
- storeName:storeName
- }
- })
- }
- export function addStore(store_name,contact_name,contact_phone,address){
- return request({
- url: `/store/save`,
- method: 'post',
- params: {
- store_name:store_name,
- contact_name:contact_name,
- contact_phone:contact_phone,
- address:address
- }
- })
- }
- export function updateStore(id,store_name,contact_name,contact_phone,address){
- return request({
- url: `/store/update`,
- method: 'post',
- params: {
- id:id,
- store_name:store_name,
- contact_name:contact_name,
- contact_phone:contact_phone,
- address:address
- }
- })
- }
- /**
- * 查询上货记录
- * @param pageIndex
- * @param pageSize
- * @returns {*}
- */
- export function queryActiveRecord(pageIndex,pageSize){
- return request({
- url: `/ywy/queryActiveRecord`,
- method: 'post',
- params: {
- pageIndex:pageIndex,
- pageSize:pageSize
- }
- })
- }
- export function ywyList(keyword){
- return request({
- url: `/jxs/jxsRetailListQuery`,
- method: 'post',
- params: {
- keyword:keyword
- }
- })
- }
- export function areaList(keyword){
- return request({
- url: `/jxs/jxsAreaList`,
- method: 'post',
- })
- }
- export function addYwy(data){
- return request({
- url: `/jxs/jxsSaveRetail`,
- method: 'post',
- data: data
- })
- }
- export function updateYwy(data){
- return request({
- url: `/jxs/jxsUpdateYwy`,
- method: 'post',
- data: data
- })
- }
- export function delYwy(id){
- return request({
- url: `/jxs/deleteYwy`,
- method: 'post',
- params: {
- ywyId:id
- }
- })
- }
- export function getYwyByIdDetail(id){
- return request({
- url: `/jxs/getYwyByIdDetail`,
- method: 'post',
- params: {
- ywyId:id
- }
- })
- }
|