作者 macbook

联系客服

... ... @@ -155,6 +155,9 @@
<el-form-item label="商品折扣:">
<el-input v-model="detailForm.discount" placeholder="请输入商品折扣"></el-input>
</el-form-item>
<el-form-item label="客服电话:">
<el-input v-model="detailForm.service_phone" placeholder="请输入客服电话"></el-input>
</el-form-item>
<!-- <el-form-item label="开通会员赠送优惠券:" prop="coupon_list">-->
<!-- <el-input style="display: none;" v-model="detailForm.goods_list"></el-input>-->
<!-- <el-button class="choose-coupon" :disabled="disabledFlag" @click="chooseCoupon('activity')">-->
... ... @@ -354,7 +357,7 @@
<div class="form-item-tip">请在快递鸟后台配置此回调地址</div>
</el-form-item>
</div>
</div>
<div v-if="type=='wxOfficialAccount'">
<el-form-item label="公众号名称:">
... ... @@ -595,4 +598,4 @@
<div @click="submitFrom('yes')" class="dialog-define-btn display-flex-c cursor-pointer">确定
</div>
</div>
</div>
\ No newline at end of file
</div>
... ...
... ... @@ -19,7 +19,7 @@ use app\api\model\Package;
*/
class User extends Base
{
protected $noNeedLogin = ['package','login', 'mobilelogin', 'accountLogin', 'wxMiniProgramLogin', 'getWxMiniProgramSessionKey', 'getUserDefaultFields'];
protected $noNeedLogin = ['package','login', 'mobilelogin', 'accountLogin', 'wxMiniProgramLogin', 'getWxMiniProgramSessionKey', 'getUserDefaultFields','serviePhone'];
protected $noNeedRight = '*';
public function _initialize()
... ... @@ -663,4 +663,27 @@ class User extends Base
$description = \addons\shopro\model\Richtext::get(2)['content'];
$this->success('分销说明',compact('description'));
}
/**
* @ApiWeigh (81)
* @ApiTitle (联系客服)
* @ApiSummary (联系客服)
* @ApiMethod (GET)
*
* @ApiReturn({
"code": 1,
"msg": "联系客服",
"time": "1608621344",
"data": {
"service_phone": "0311-02056" //客服电话
}
})
*/
public function serviePhone()
{
$user = json_decode(\addons\shopro\model\Config::where(['name' => 'user'])->value('value'), true);
$this->success('联系客服',[
'service_phone' => $user['service_phone']
]);
}
}
... ...
此 diff 太大无法显示。
... ... @@ -28,8 +28,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
title: '会员配置',
// tip: '配置默认会员信息',
// message: '默认昵称、头像、分组、余额、积分',
tip: '会员商品折扣',
message: '会员商品折扣',
tip: '会员商品折扣、客服',
message: '会员商品折扣、客服',
icon: 'user-icon',
leaf: '#E0B163',
background: 'linear-gradient(180deg, #FCE6B7 0%, #E9A848 100%)',
... ... @@ -255,6 +255,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
money:'',
score:'',
discount:'',
service_phone:'',
},
share: {
title: '',
... ... @@ -517,4 +518,4 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
}
};
return Controller;
});
\ No newline at end of file
});
... ...